blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7b82c25e5304b7c96b5e806747765e2034a79e7f | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/tests/integration/awslambda/test_awslambda.py | 8945922a57ac8b6c5f7981839bf3b5781ed63fa2 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 1,668 | py | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights ... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
c90c7a102ee45edee6765f20db29b6be78091415 | d8d3a09ed5cfd4b35ce1f5c98c5f9aa2b41b7548 | /psquery/psquery.py | cb6ec73b8033c7d68f991b45daf774f4c3a79bc5 | [
"BSD-3-Clause"
] | permissive | KshitijAggarwal/psquery | 101f03d05c495673ae3c0ab7d12449929ee2dd22 | 55d41d428ed6c7decc19b7e404022856c7ebe0bb | refs/heads/master | 2022-12-25T00:41:04.050057 | 2020-09-22T21:49:51 | 2020-09-22T21:49:51 | 286,840,721 | 1 | 0 | BSD-3-Clause | 2020-08-11T20:22:51 | 2020-08-11T20:22:50 | null | UTF-8 | Python | false | false | 6,343 | py | import numpy as np
import requests
from urllib.parse import quote as urlencode
from urllib.request import urlretrieve
import http.client as httplib
from astropy.io import ascii
from astropy.table import Table
from astropy import coordinates, units
def query_radec(ra, dec, ndet=5, radius=5/3600):
""" c... | [
"caseyjlaw@gmail.com"
] | caseyjlaw@gmail.com |
518c5fa92974fd3d01b3b92fdbe17560cb10dfc5 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/brocade_mpls_rpc/ping_mpls/output/__init__.py | 5b03575895228badcbdf72e118fe05542ad1ad4d | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,657 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
047b2c2c4c49c39e1b61d11d2b9303c61a4f9af5 | 608aeaeebe616116e92c541b58debcba4a20466d | /Turtle graphics/Sept_24/marina_turtle.py | cbad4eb9dca2daa07f7cfe9bd67c74e6118d8ef7 | [] | no_license | marinasupernova/100daysofcode | c8008a60cc56efbebda5e52c531507d78d8b7717 | 77c2515c19e71667de8a1983cc43d186f9566a27 | refs/heads/master | 2023-04-30T08:26:21.710429 | 2021-05-13T09:08:19 | 2021-05-13T09:08:19 | 287,949,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import turtle
'''turtle.shape('turtle')
turtle.setup(500, 500)
turtle.Screen().bgcolor("blue")
turtle.Screen().colormode(255)
turtle.Screen().bgcolor(29, 162, 216)
turtle.shape('turtle')(9, 185, 13)
turtle.pencolor(0, 128, 0)'''
import random
stamp = turtle.Turtle()
stamp.shape('turtle')
stamp.penup()
turtle.colormod... | [
"marina.de.suvorova@gmail.com"
] | marina.de.suvorova@gmail.com |
2b432d03da3f4a527efc427e98b7ff80666c9f59 | 0a97a31af519500cdc3e0704e6fba75afcbfe82e | /监督学习/广义线性模型.py | c759aa10305c4dad709f57d9c0972dee987a2886 | [] | no_license | yooq/sklearn_test | fca9f5b1c37410bba1f78d7170183508397eee5d | a3b88fd67948c4be4f3f2b759c240b16fc740fe7 | refs/heads/master | 2022-11-06T04:30:03.283340 | 2020-06-22T03:51:05 | 2020-06-22T03:51:05 | 261,703,482 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | from sklearn import linear_model
import numpy as np
# 基于普通最小二乘法的线性模型 复杂度(n_samples,n_features)-->O(n_sample*n_features*n_features)
# 必须满秩,趋向于奇异矩阵,可能产生大的方差
train_x = np.random.normal(size=(10000,2))
train_y = np.random.normal(size=(10000,1))
reg = linear_model.LinearRegression()
reg.fit(train_x,train_y) #train
test_x=... | [
"990250040@qq.com"
] | 990250040@qq.com |
a5a449a62b641b3c799995a523997b823834698c | d138deda43e36f6c79c5e3a9ef1cc62c6a92e881 | /python/paddle/fluid/incubate/fleet/utils/http_server.py | 50933ce5d1bd35ac4596740f33c0a58c46a4f478 | [
"Apache-2.0"
] | permissive | seiriosPlus/Paddle | 51afd6f5c85c3ce41dd72953ee659d1539c19f90 | 9602a182b2a4979247c09df1ec283fc39cb4a981 | refs/heads/develop | 2021-08-16T16:05:10.848535 | 2020-12-27T15:15:19 | 2020-12-27T15:15:19 | 123,257,829 | 2 | 0 | Apache-2.0 | 2019-12-10T08:22:01 | 2018-02-28T08:57:42 | C++ | UTF-8 | Python | false | false | 5,719 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | seiriosPlus.noreply@github.com |
d8a7ce4f9742c8b8fae36ea3f000567f512d1726 | a90ba084b85683f4c52d0e638cfb6108207ced38 | /15.py | 7fcce1f1bc58279a9627540a3e75f97cebc015c9 | [] | no_license | JiayuZhai/leetcode_python3 | 4a9260d00a52cde9ec37e6292e64d04161e66111 | 5755c3edd6d949af18d0247d2103379510dfab85 | refs/heads/master | 2020-04-02T21:22:42.270736 | 2019-03-29T23:28:48 | 2019-03-29T23:28:48 | 154,796,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | class Solution:
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums_hash = {}
result = list()
for num in nums:
nums_hash[num] = nums_hash.get(num, 0) + 1
if 0 in nums_hash and nums_hash[0] >= 3:
... | [
"zhaijiayu2013@gmail.com"
] | zhaijiayu2013@gmail.com |
32331f9923b0abcb27dcc217b52866eb23ab0f62 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Machine Learning Scientist with Python/17. Advanced Deep Learning with Keras/02. Two Input Networks Using Categorical Embeddings, Shared Layers, and Merge Layers/08. Evaluate the model on the tournament test data.py | bf90f3b6ddce7112fd8971933ef1651d802cd0a0 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | '''
Evaluate the model on the tournament test data
The model you fit to the regular season data (model) in the previous exercise and the tournament dataset (games_tourney) are available in your workspace.
In this exercise, you will evaluate the model on this new dataset. This evaluation will tell you how well you can ... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
05e1cbf165c15afc12c8ac326b1e7768bc1bfae2 | bd8906d5afd0c45ebb7b52b4385a2f81a518fa90 | /기존자료/PBR_OE.py | ca8a8b40f9d5a0b6196d4c2f4845f7205d3fc3fd | [] | no_license | lshlsh135/LeeSangHoon | e791b3ee3f92263867d33b77c033708849972aac | 9e8928cef02b91e26fdd39341de235ffd91b57f7 | refs/heads/master | 2021-01-22T13:30:10.063276 | 2017-10-10T01:10:31 | 2017-10-10T01:10:31 | 100,658,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 6 09:02:25 2017
@author: SH-NoteBook
"""
#==============================================================================
# Dependent double sorting 1) PBR 2) OPerating Income 3x3
#==============================================================================
import ... | [
"lshlsh135@naver.com"
] | lshlsh135@naver.com |
68e354cf9bb17764fb19b91af524da42412395d7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2799/60632/302627.py | 3b6036464689386d371592ec284dcc29f7406dd0 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # n = int(input())
# data = list(map(int, input().split(' ')))
# sign = [0 for i in range(n)]
# big = max(data)
# for i in range(10):
# big *= 2
# for j in range(len(data)):
# if sign[j] == 0:
# if (big / data[j]) % 2 == 0 or (big / data[j]) % 3 == 0:
# sign[j] = 1
# for i in... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d0b4d757feef83d09309557fa073ee91775a08b7 | 19f3de5ab4e37219a1a191987004e6dbc8688ecd | /api/mon/backends/dummy/__init__.py | 79e161384c6f0b8eacf73bda967e4352237f4b48 | [
"Apache-2.0"
] | permissive | cgvarela/esdc-ce | da8800ff66e1d6b838fed66c3ecca23fdeeb40ea | 0acf9d2b45b1e281e4cc4b6e86fb898ec6261911 | refs/heads/master | 2021-01-20T10:37:03.196599 | 2017-08-21T12:28:09 | 2017-08-21T12:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from api.mon.backends.abstract import AbstractMonitoringBackend
# noinspection PyAbstractClass
class DummyMonitoring(AbstractMonitoringBackend):
pass
def get_monitoring(dc, **kwargs):
return DummyMonitoring(dc, **kwargs)
# noinspection PyUnusedLocal
def del_monitoring(dc):
return True
MonitoringBack... | [
"daniel@kontsek.sk"
] | daniel@kontsek.sk |
07cb440b206147097505e877f206d0ce437e4f70 | 1d36f1a3c527e364b50cb73d0ce82b5b5db917e6 | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py | d9c005afdde904b3042e59e1b107f18c3cb3c6c3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | emreyalcin26/azure-sdk-for-python | 08c0a294e49e9c3a77867fb20ded4d97722ea551 | 6927458c7baa5baaf07c3b68ed30f6e517e87c9a | refs/heads/master | 2022-10-17T02:25:23.373789 | 2020-06-12T23:43:40 | 2020-06-12T23:43:40 | 272,001,096 | 1 | 0 | MIT | 2020-06-13T12:06:11 | 2020-06-13T12:06:11 | null | UTF-8 | Python | false | false | 4,850 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | emreyalcin26.noreply@github.com |
d1c2b3918a9f6fa2cc58ca49a0e63fc503ecfc08 | 003ffcf8144565404636f3d74590a8d6b10a90a4 | /128-longest-consecutive-sequence/128-longest-consecutive-sequence.py | c2f514546ac47f771794502a68f0738f327b9634 | [] | no_license | congve1/leetcode | fb31edf93049e21210d73f7b3e7b9b82057e1d7a | ce1e802b5052da2cdb919d6d7e39eed860e0b61b | refs/heads/master | 2020-05-13T19:19:58.835432 | 2019-05-06T00:44:07 | 2019-05-06T00:44:07 | 181,652,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | class Solution(object):
def longestConsecutive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
| [
"congve1@live.com"
] | congve1@live.com |
b018dd5983ede679e8b423cb97e64dbf50ee8a90 | 8434418b00897f019396b9270fe430c8254a4e42 | /backend/migrations/0005_user.py | 4f02dbfd89a1dc6bc99b3290924f69f0da472d1f | [] | no_license | JoeTanto2/learnlanguages | 7d13dbce38b8583f757a7dec9f362a0060ce410d | a0d7657256737252434b4eade881c05486b121af | refs/heads/main | 2023-07-17T11:33:59.165687 | 2021-09-04T16:58:16 | 2021-09-04T16:58:16 | 378,680,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | # Generated by Django 3.2.4 on 2021-06-20 01:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0004_auto_20210619_2344'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"77851879+JoeTanto2@users.noreply.github.com"
] | 77851879+JoeTanto2@users.noreply.github.com |
b79e1e04b78d413c490b186cd0a47f46e410a55c | 6bb7145391c4fb056ed8331c5527ab916b29a80a | /pyLensingToysCtypes/opencl_ctypes/test_ctypes.py | 08fc45b96b47a6d7448885ab5646a9a81791d096 | [
"MIT"
] | permissive | linan7788626/HackDays | ed36d0d4deb87e6ae4d31cdec2c029a058893756 | b786b6f19a39e23aabb0f82d707e37f2073452c9 | refs/heads/master | 2020-03-24T04:40:04.254952 | 2019-10-14T13:15:26 | 2019-10-14T13:15:26 | 142,460,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | #!/usr/bin/env python
import numpy as np
import ctypes as ct
#-------------------------------------------------------------
llt = ct.CDLL("./libcl_test.so")
#llt.main_test.argtypes = []
#llt.main_test.restype = ct.c_int
llt.opencl_lq_py.argtypes = [np.ctypeslib.ndpointer(dtype = ct.c_float), \
... | [
"linan7788626@gmail.com"
] | linan7788626@gmail.com |
ed6993ca0cce683b0776839795043c4f2a619da7 | c57edcd861e7ed6607b60411a175e041ceaf94bc | /bin/scm/update.py | 4cded309ad86a603d9d028dcf814a100174516a3 | [
"BSD-3-Clause",
"MIT"
] | permissive | johnttaylor/Outcast | 0aba3c25e2f0a78014a99ddfb6fc2733448720dc | 581429021e21bc95d54ec1f20f475f585d4dac47 | refs/heads/master | 2023-06-26T04:05:29.725493 | 2023-02-04T23:24:27 | 2023-02-04T23:24:27 | 31,170,546 | 1 | 0 | BSD-3-Clause | 2021-11-28T17:47:35 | 2015-02-22T16:58:23 | Python | UTF-8 | Python | false | false | 1,606 | py | # Short help
def display_summary():
print("{:<13}{}".format( 'update', "Updates a previously mounted SCM Repository" ))
# DOCOPT command line definition
USAGE = """
Updates a previously mounted repository
===============================================================================
usage: evie [common-opts] ... | [
"john.t.taylor@gmail.com"
] | john.t.taylor@gmail.com |
15be4f1fc37b0f83d56ae396fb053acf6c1717d2 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200413223417.py | a1d80e0be19ba770f23ef4cf0ffc72ce896a451f | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,775 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
def rho_free(x,xp,beta):
"""
Uso: devuelve elemento de matriz dsnsidad para el caso de una partícula libre en un toro infinito.
"""
return (2.*np.pi*beta)... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
6b3c3dfc8452c37f757e4b50df72e7167e48c61f | f1aee004e8c56948ee21c47605e5e4536c294dc8 | /venv/Session9.py | d6ae2dcd93bb4ce5fa169680d14c225d99a102bb | [] | no_license | ishantk/GW2019B | a417aaf7ba76e2aa58728325f8239ba8155eade7 | dca3dfe875025520a0743f6749dc001d43c8aae6 | refs/heads/master | 2020-04-28T04:55:30.983663 | 2019-04-19T12:24:28 | 2019-04-19T12:24:28 | 174,999,930 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | """
Object Oriented Programming in Python
Object:
MULTI VALUE CONTAINER
Homogeneous Data Storage Container
Hetrogeneous Data Storage Container
We modularize data in a software as Objects
amazon.in
data ?
OLA/Uber
data ?
User -> ... | [
"er.ishant@gmail.com"
] | er.ishant@gmail.com |
3c341598bfb2f952e4fe96957908abd089c3b150 | 6e68584f2819351abe628b659c01184f51fec976 | /Centre_College/CSC_339_SP2015/vindiniumAI/pybrain/tools/customxml/networkwriter.py | 13248caa0a3fae26fa89f9b3bb868339c12ce71b | [
"WTFPL"
] | permissive | DanSGraham/code | 0a16a2bfe51cebb62819cd510c7717ae24b12d1b | fc54b6d50360ae12f207385b5d25adf72bfa8121 | refs/heads/master | 2020-03-29T21:09:18.974467 | 2017-06-14T04:04:48 | 2017-06-14T04:04:48 | 36,774,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | __author__ = 'Tom Schaul, tom@idsia.ch'
from inspect import isclass
from handling import XMLHandling
from pybrain.structure.connections.shared import SharedConnection
from pybrain.structure.networks.network import Network
from pybrain.structure.networks.recurrent import RecurrentNetwork
from pybrain.utilities... | [
"dan.s.graham@gmail.com"
] | dan.s.graham@gmail.com |
f1199e543f60965aa63419b4b29d9d53c642c807 | 81d0bfe1262008587ddf5ac12ae034d6922b9747 | /.history/test_20201016160356.py | 399f94e7dc76be25655509501ed0ec45d3d82480 | [] | no_license | elvinyeka/Smart-Mobile | 525fffac14b8c460e85002bbf154bf54b4a341fe | a32f557306ae1bfe3ae01f5a8beef93727cfbc47 | refs/heads/master | 2023-06-09T09:52:18.446572 | 2021-07-06T11:35:34 | 2021-07-06T11:35:34 | 313,988,596 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py |
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'data.sqlite')
db = SQLAlchemy(app)
class human(db.Model):
id = db.Column(db.Integer, ... | [
"elvinyeka@gmail.com"
] | elvinyeka@gmail.com |
de9c9b7997de677fbcf4c66a44a1025276e645f8 | 3e95c88724c7a4bb0fe59e17c169aee3f00e912c | /one/settings.py | 87c1aa00288bac06e205d377b2ae4e0e00478856 | [] | no_license | namraht/app_backend | ccdf96d6957419575e9abe9e4a9b3583c8202b56 | 6ea928a0fb2b0fd01c3cc2d9f70e82a91198d007 | refs/heads/master | 2020-09-27T01:53:35.363935 | 2016-09-07T15:13:40 | 2016-09-07T15:13:40 | 67,616,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | """
Django settings for one project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# Bu... | [
"admin"
] | admin |
b8cf8ad619979c7e445d6e6dfcf1f630f719006b | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/test breakpoint fpga 1.prg.py | 3a19bac69ce58b2af113344ab27e9ace365f0705 | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | prg_comment = ""
prg_version = "0.7"
def program(prg, cmd):
prg.add(2000, "TTL Repumper MOT OFF")
prg.add(17000, "TTL Repumper MOT ON")
prg.add(22000, "TTL Repumper MOT OFF")
prg.add(47000, "BREAKPOINT")
prg.add(48000, "NOP")
prg.add(62000, "TTL Repumper MOT ON")
prg.add(65000, "TTL Repumper... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
c9be4cefa7b04bafd26fc048a904462bd89f5115 | fea7c1a500a2f5ff178ac2a05ae7e75f3a068450 | /guild/click_util.py | e8bf52ebd5336057c04f083ea6266b1f6315ccc0 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | wheatdog/guildai | 35926997ca9dd768c65ddaa7b38a6de79b5fca30 | 817cf179d0b6910d3d4fca522045a8139aef6c9e | refs/heads/master | 2021-03-23T06:57:16.910757 | 2020-03-15T09:17:24 | 2020-03-15T09:17:24 | 247,433,137 | 0 | 0 | Apache-2.0 | 2020-03-15T09:05:10 | 2020-03-15T09:05:09 | null | UTF-8 | Python | false | false | 6,405 | py | # Copyright 2017-2020 TensorHub, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"g@rre.tt"
] | g@rre.tt |
5621938a0283d1474db95d37161864dcda9ccb0e | 147d5d23501d4b65549688bf72f9e2e9a765ca01 | /chapter13/list1303_2.py | 93c6b320696e79bc2fc53a6aa23af217d578b1f9 | [] | no_license | chc1129/python_game_development | 41b735f58359bf067c2ac1db9a4d290c81d6fc6d | 3728d36d6436d7f45f72602f5365222ef715ffe4 | refs/heads/master | 2020-07-25T17:46:58.953753 | 2019-10-06T02:56:51 | 2019-10-06T02:56:51 | 208,332,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import tkinter
FNT = ("Times New Roman", 30)
class GameCharacter:
def __init__(self, job, life, imgfile):
self.job = job
self.life = life
self.img = tkinter.PhotoImage(file=imgfile)
def draw(self, x, y):
canvas.create_image(x+200, y+280, image=self.img)
canvas.create_te... | [
"chc1129@gmail.com"
] | chc1129@gmail.com |
48ab7b9c72c21248eb5d8a4c7334d02ba0e55ea2 | a550aece79bda789826b463280b91abffbf2d372 | /books/python-3-oop-packt/Chapter9/9_16_log_delete_warnings_object.py | 4718628bde7a6dc25b3f1f6afdb333173f9f1641 | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 584 | py | import sys
inname, outname = sys.argv[1:3]
class WarningFilter:
def __init__(self, insequence):
self.insequence = insequence
def __iter__(self):
return self
def __next__(self):
l = self.insequence.readline()
while l and 'WARNING' not in l:
l = self.insequence.rea... | [
"phiratio161@gmail.com"
] | phiratio161@gmail.com |
f57498b04eb5d5d92b6be6d51b1207a22d3a77e6 | ddc48a84bf1e1010b1253ea6914fc9fb4fdd1499 | /mirocommunity_site/views.py | 80eb734443c31a2d62d20f25cd6c9ddead878451 | [] | no_license | stephenjudge/mirocommunity.org | 44a8b0ab7d20d670844b9195ff1afb180d2df3c5 | 9767707d0cc21c3d2c1270bd1b22b4bc88985e9d | refs/heads/master | 2021-01-16T18:54:27.457643 | 2012-04-28T05:49:27 | 2012-04-28T05:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | from __future__ import with_statement
from django.http import Http404, HttpResponseRedirect
from django.conf import settings
from django.views.generic import FormView
from mirocommunity_site.forms import NAME_TO_COST, SiteCreationForm
from mirocommunity_site.utils.shell import check_output
class SiteCreationView(Fo... | [
"stephen.r.burrows@gmail.com"
] | stephen.r.burrows@gmail.com |
031e2f7f05a7747f61ab01d64e317ad71de61cd5 | f27a837cbae217b604d27a8d6480543bfd03e3cf | /convertor/models.py | 12379780dc1b68bd23ac8a6d10a381bc56d5056e | [] | no_license | maddrum/industria_task | 608fc353fbb81f403e53663f7d2731e8f7609f7a | d92d93aa4db738182add866a6d1f097a0bc63491 | refs/heads/main_task | 2020-04-21T09:35:09.117778 | 2019-02-06T18:16:25 | 2019-02-06T18:16:25 | 169,454,320 | 0 | 0 | null | 2019-02-06T20:18:39 | 2019-02-06T18:24:08 | Python | UTF-8 | Python | false | false | 416 | py | from django.db import models
class Currencies(models.Model):
"""Stores information for currency type and exchange rates to BGN"""
currency_code = models.CharField(max_length=3, unique=True)
exchange_rate = models.DecimalField(max_digits=19, decimal_places=2)
units = models.IntegerField()
created_o... | [
"maddrum9@gmail.com"
] | maddrum9@gmail.com |
f9cf3c1ac0515fea656de68720caf35945d040b1 | 2990b0841b63f300a722107933c01c7237a7976b | /all_xuef/程序员练级+Never/想研究的/编译原理/lox/语言特性-goodORbad/IMPLICIT VARIABLE DECLARATION.py | 68cde5a22a2a2d9cca068f6c9ec29de8d603b04c | [] | no_license | xuefengCrown/Files_01_xuef | 8ede04751689e0495e3691fc5d8682da4d382b4d | 677329b0189149cb07e7ba934612ad2b3e38ae35 | refs/heads/master | 2021-05-15T04:34:49.936001 | 2019-01-23T11:50:54 | 2019-01-23T11:50:54 | 118,802,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py |
#IMPLICIT VARIABLE DECLARATION
"""
Lox has distinct syntax for declaring a new variable and assigning to an existing one.
Some languages collapse those to only assignment syntax. Assigning to a non-existent
variable automatically brings it into being. This is called implicit variable declaration
and exists in Python, ... | [
"643472092@qq.com"
] | 643472092@qq.com |
302b4a82f08a8e783bdb57b79c3d95fc4b44b637 | 94c1805df5a09c39159d502f420d19ad54b567fc | /runtime/deps/gyp/test/mac/gyptest-strip.py | a729521e18459b5bcad40c81a18794d040aa2b34 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tmikov/jscomp | 9805a5a4d06520549c57380f0df4a1c0aa0dab56 | 83828441cb38ec96603a6a60be06977d4852940a | refs/heads/develop | 2021-01-19T02:56:35.102659 | 2016-04-12T06:19:30 | 2016-04-12T06:19:30 | 36,981,674 | 237 | 13 | Apache-2.0 | 2018-10-14T09:48:12 | 2015-06-06T13:49:26 | C | UTF-8 | Python | false | false | 1,991 | py | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that stripping works.
"""
import TestGyp
import TestMac
import re
import subprocess
import sys
import time
if sys.platform =... | [
"tmikov@gmail.com"
] | tmikov@gmail.com |
d54f201c8e2429da38ec9fe33d32630210072aa2 | 5a0dfe1326bb166d6dfaf72ce0f89ab06e963e2c | /leetcode/lc46.py | dc10fed90d665bbeb30eadbff38d77ee7b5be0a2 | [] | no_license | JasonXJ/algorithms | 7bf6a03c3e26f917a9f91c53fc7b2c65669f7692 | 488d93280d45ea686d30b0928e96aa5ed5498e6b | refs/heads/master | 2020-12-25T15:17:44.345596 | 2018-08-18T07:20:27 | 2018-08-18T07:20:27 | 67,798,458 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | class Solution(object):
def permute(self, nums):
rv = []
def inner(current_pos):
if current_pos == len(nums):
rv.append(nums[:])
return
for i in range(current_pos, len(nums)):
nums[current_pos], nums[i] = nums[i], nums[current_p... | [
"lxj2048@gmail.com"
] | lxj2048@gmail.com |
a88c219d8502de660f7b3dee54d42f24c61b4a8f | fbfa6271a072091a962372ff5ca11c3bbc8d35b0 | /paypal_store/views.py | 36e40c60e5ebb3aa02668cdeeab4d9dfd9ef658e | [] | no_license | andrewhstead/we_are_social | 96681ed412cd65b9c82efc40c877173c5bd34a8a | 8b5858cc6278a8397511592d8beb4c843824d1c4 | refs/heads/master | 2021-04-26T23:14:04.443505 | 2018-03-20T21:08:32 | 2018-03-20T21:08:32 | 123,952,133 | 1 | 1 | null | 2018-03-06T02:16:41 | 2018-03-05T17:10:31 | Python | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render
@csrf_exempt
def paypal_return(request):
args = {'post': request.POST, 'get': request.GET}
return render(request, 'paypal/paypal_return.html', args)
def p... | [
"andrew@andrewstead.co.uk"
] | andrew@andrewstead.co.uk |
17a063b381d125444fbbc8c5a7717c929799f779 | 6a185868a6a41384f44334b23fea9079a2a35ded | /programmers/Level 1/[카카오 인턴] 키패드 누르기.py | 027c30da1c06be44597bacbec7cac7504bd7824a | [] | no_license | kimhyeongju/coding_practice | ec096e574877a4d21babdc0162d96a9c75ee5686 | 599b3ecf3100622e165abfc54c0ad90a270ccb51 | refs/heads/master | 2023-03-25T21:34:34.893277 | 2021-03-19T17:49:54 | 2021-03-19T17:49:54 | 296,621,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | """
스마트폰 전화 키패드의 각 칸에 다음과 같이 숫자들이 적혀 있습니다.
1 2 3
4 5 6
7 8 9
* 0 #
이 전화 키패드에서 왼손과 오른손의 엄지손가락만을 이용해서 숫자만을 입력하려고 합니다.
맨 처음 왼손 엄지손가락은 * 키패드에 오른손 엄지손가락은 # 키패드 위치에서 시작하며, 엄지손가락을 사용하는 규칙은 다음과 같습니다.
1. 엄지손가락은 상하좌우 4가지 방향으로만 이동할 수 있으며 키패드 이동 한 칸은 거리로 1에 해당합니다.
2. 왼쪽 열의 3개의 숫자 1, 4, 7을 입력할 때는 왼손 엄지손가락을 사용합니다.
3. 오른쪽 열의 3개의 숫... | [
"hengzhu1994@gmail.com"
] | hengzhu1994@gmail.com |
fa3f90ffe4bfad6434f6964e87b272d2d93809c5 | ba14dedcc99297ac424580d52c276cc2862bcaeb | /___Python/Thomas/pycurs_180625/p02_datenstrukturen/m04_woertebuchinv.py | df433fe78101941704a68bbd1d8fac3191647005 | [
"Apache-2.0"
] | permissive | uvenil/PythonKurs201806 | ac8ddf7255f7c420f5e7c2c1d1f28d4d2c83e410 | 85afa9c9515f5dd8bec0c546f077d8cc39568fe8 | refs/heads/master | 2020-03-22T00:06:04.163119 | 2018-06-30T22:17:14 | 2018-06-30T22:17:14 | 139,224,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Wörterbuch (Dictionary, Hashtabelle, Hashtable, Hashmap, associative Array)
dic_wbde = {"Tisch": "table",
"Stuhl": "chair",
"Schreibtisch": "desk"}
print(dic_wbde)
print("")
# 1. Ansatz
dic_wbed = {}
for wort in dic_wbde:
dic_wbed[(dic_wbde[wort])] = wort
print(dic_wbed)
print("")
... | [
"uvenil@web.de"
] | uvenil@web.de |
e697f41734c9f43348dffac8e05ca0fd53526c68 | 1cbcf8660d3ea833b0a9aa3d36fe07839bc5cfc5 | /apps/models/db_source/sa_saledelivery.py | 103db76ea27ba4cfb02e9865273e02af493ace41 | [] | no_license | zhanghe06/migration_project | f77776969907740494281ac6d7485f35d4765115 | 0264b292873b211bfeca0d645cc41abc9efe883f | refs/heads/master | 2022-12-12T10:55:43.475939 | 2019-09-29T09:19:13 | 2019-09-29T09:19:13 | 185,584,884 | 0 | 1 | null | 2022-12-08T05:04:58 | 2019-05-08T10:31:57 | Python | UTF-8 | Python | false | false | 6,373 | py | # coding: utf-8
from sqlalchemy import Column, Index, Integer, Numeric, String, TIMESTAMP, Unicode
from sqlalchemy.dialects.mssql.base import UNIQUEIDENTIFIER
from apps.databases.db_source import source_db
Base = source_db.Model
metadata = Base.metadata
def to_dict(self):
return {c.name: getattr(self, c.name, N... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
f0159182a9e342c10c576a73730aecb7a468d6ea | 28691ec55ebce9ec7045d12ea9675932ce12d671 | /py2rhino-project/branches/sandbox/py2rhino/data/gen_py2rhino/Application/send_keystrokes.py | cd815494c46a559e3485c11a18fb905a5aca5aaa | [] | no_license | ianclarksmith/design-automation | 1e71315193effc0c18b4a8b41300bda6f41a3f09 | e27cc028fe582395f4a62f06697137867bb0fc33 | refs/heads/master | 2020-04-22T22:28:39.385395 | 2009-10-26T02:48:37 | 2009-10-26T02:48:37 | 37,266,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | send_keystrokes = {
"class": "Application",
"method": "send_keystrokes",
"doc": """
Sends a string of printable characters, including spaces, to Rhino's command line.
""",
"syntax": """
Rhino.SendKeystrokes ([strKeys [, blnAddReturn]])
""",
"params": {
... | [
"patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb"
] | patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb |
bbc5ca6763e6c0bbe542f270557c8fb51f61b3ce | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_rotten.py | 7b4beb2a0dca9546c368ca1bc1e206fad2c103ff | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py |
#calss header
class _ROTTEN():
def __init__(self,):
self.name = "ROTTEN"
self.definitions = [u'decayed: ', u'very bad: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsondata[o... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c6b1ff023bf9d8c3eb6f671ad575614bae342c8e | bb5f4da85db4258f9b2e43df2761e632b1855763 | /python/ods/algorithms.py | 4bf851d77996a8d6d6b28cddad8f5e29ac65ace5 | [
"CC-BY-2.5",
"CC-BY-4.0"
] | permissive | mando20/ods | 7da239bfefc10b23e897d605a23616b542fbf8ac | 8a28923b8fe1ddbbcbe72714614e1ca0eec19153 | refs/heads/master | 2021-01-17T11:45:27.826851 | 2014-01-10T16:30:56 | 2014-01-10T16:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | import random
from utils import new_zero_array, new_array, _new_array
from binaryheap import BinaryHeap
def merge_sort(a):
if len(a) <= 1:
return a
m = len(a)//2
a0 = merge_sort(a[:m])
a1 = merge_sort(a[m:])
merge(a0, a1, a)
return a
def merge(a0, a1, a):
i0 = i1 = 0
for i in r... | [
"morin@scs.carleton.ca"
] | morin@scs.carleton.ca |
a08b4fd10ddbdc2c4b7be69c89e051aa4e82bc9d | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/N/NinaC/obesity_scraper_3.py | 28f61303e93b420f3d5f0dd745f652d09678ee08 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | ###################################################################################
# Twitter API scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Get results f... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
b6718a63606cb7039c095752a4dc4581f5c0c02b | ae10f1a79935ee71eb9418ff347be1969e955d08 | /backend/young_waterfall_28182/wsgi.py | 93118937ed5da1300a31cf63ad8aa4976c36e961 | [] | no_license | crowdbotics-apps/young-waterfall-28182 | 214af2f75e754b5503fbba6efb6ff5aac45653d5 | f58d78f5052d09d4f2d4799dc3a96b9834d29d05 | refs/heads/master | 2023-06-03T11:28:35.801870 | 2021-06-23T04:34:31 | 2021-06-23T04:34:31 | 379,479,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for young_waterfall_28182 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
19dec605d9f329e026d3c47f435b38fe62442047 | 9ef6ccf1002de965fd18848d93177b6c49a3e2e3 | /problem145.py | 2b2724f6e6ced975ebcd4283852f2e176e5b368f | [] | no_license | noahc66260/ProjectEuler | 8051ef6f020a2620f67dcb070261e3ad08b050d9 | 14b16263cd034b43682c03b7752895ef4d64a5ca | refs/heads/master | 2018-12-28T06:33:11.973682 | 2014-10-04T20:20:31 | 2014-10-04T20:20:31 | 24,800,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | # This question is ripping my cock off. I can code a solution but it's
# intolerably slow to the point that I don't think this is how it should
# be done. I'm leaving it for now.
def reverseInt(n):
listn = list(str(n))
listn.reverse()
return int(''.join(listn))
def everyDigitOdd(n):
listn = list(str(n))
for... | [
"nruderman.s@gmail.com"
] | nruderman.s@gmail.com |
d4e2da1eb34a8cc7d57eac71d01597145266b64c | 186c04fff4c0ca95c12c3f8a117c7c95ce70b2e4 | /spacy/lang/ro/lex_attrs.py | 48027186bdd2bdedb4118739006600ea8ae6f644 | [
"MIT"
] | permissive | IndicoDataSolutions/spaCy | 58c9d4bcc854ab278516c050dee8b2b92f528a8c | 4e28b5acd702691e5ce64cf7a1f9da4af5a271b5 | refs/heads/master | 2023-01-01T05:35:35.393944 | 2022-03-03T19:21:34 | 2022-03-03T19:21:34 | 60,737,647 | 5 | 2 | MIT | 2022-12-22T01:57:03 | 2016-06-08T23:30:42 | Python | UTF-8 | Python | false | false | 1,659 | py | # coding: utf8
from __future__ import unicode_literals
from ...attrs import LIKE_NUM
_num_words = set("""
zero unu doi două trei patru cinci șase șapte opt nouă zece
unsprezece doisprezece douăsprezece treisprezece patrusprezece cincisprezece șaisprezece șaptesprezece optsprezece nouăsprezece
douăzeci treizeci patru... | [
"ines@ines.io"
] | ines@ines.io |
2a38258d1eaa904c331128048d8dd3a176e68480 | 13589d5cd43b03a7941d17b76f5c9662949d32aa | /square_root_of_a_number.py | 0ea22d322784b81163b7b89937c0f4706b8284fe | [] | no_license | Anwesh43/AnAlgorithmADay | 6e97b60e9eb827a37aff972c56811fc85093814c | d8c29e412302ccdc0255c5c5271ba7523a6ef4e6 | refs/heads/master | 2021-01-13T14:57:22.779850 | 2017-07-24T20:37:12 | 2017-07-24T20:37:12 | 76,656,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | def get_square_root(a,b,n):
mid = int((a+b)/2)
square = mid*mid
if square == n:
return mid
if(a == b):
return -1
if square < n:
return get_square_root(mid+1,b,n)
else:
return get_square_root(a,mid-1,n)
def square_root(n):
if n == 1:
return 1
return... | [
"anweshthecool0@gmail.com"
] | anweshthecool0@gmail.com |
41fabc4be0159eea8367bc5b6d7c10512ed32a70 | 4acf49297ca00213522757908c23125679fa729a | /conekta/models/update_product.py | 0058d2e711142fe50b9ee76c3d16df868659b26d | [
"MIT"
] | permissive | conekta/conekta-python | b95c4a913726dfc6b6849c97c2f459c9f143758c | 2fee65f13833fb1232148f3a2606660863e54200 | refs/heads/main | 2023-07-14T05:38:00.598706 | 2023-07-07T16:43:37 | 2023-07-07T16:43:37 | 12,024,074 | 23 | 34 | MIT | 2023-07-06T15:02:30 | 2013-08-10T17:21:30 | Python | UTF-8 | Python | false | false | 2,753 | py | # coding: utf-8
"""
Conekta API
Conekta sdk # noqa: E501
The version of the OpenAPI document: 2.1.0
Contact: engineering@conekta.com
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
from __future__ import annotations
import pprint
import ... | [
"noreply@github.com"
] | conekta.noreply@github.com |
168f9f4ac79d63c92b474b823a2a977e7ff6df79 | 929fc8dd47b91c963c8c2f81d88e3d995a9dfc7c | /src/JiuZhangSuanFa/DFS/135. Combination Sum.py | 2996094440c144bb32a747223b3bf5da643d5026 | [] | no_license | 1325052669/leetcode | fe7571a9201f4ef54089c2e078810dad11205b14 | dca40686c6a280bd394feb8e6e78d40eecf854b9 | refs/heads/master | 2023-04-01T17:53:30.605822 | 2021-04-10T15:17:45 | 2021-04-10T15:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | class Solution:
"""
@param candidates: A list of integers
@param target: An integer
@return: A list of lists of integers
"""
def combinationSum(self, candidates, target):
# write your code here
res = []
self.recur(sorted(candidates), 0, [], target, res)
return r... | [
"js7995@nyu.edu"
] | js7995@nyu.edu |
83208b332cbac60c35ab6568cfa625fed4f2b1a6 | fb095aef915d538a1f3f7041bfdc6dd2a43dbbb4 | /backend/users/migrations/0003_auto_20210325_2057.py | b625f337c3a5547a80bf6f52757d9f7df61fb8f0 | [] | no_license | crowdbotics-apps/ctc-25267 | dfeaa4548dd75ff485bb89257af74e299d97c459 | d52a36da7db4f6e3af45012141815986d4dd13b2 | refs/heads/master | 2023-03-30T03:50:12.898149 | 2021-03-25T21:02:10 | 2021-03-25T21:02:10 | 351,570,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # Generated by Django 2.2.19 on 2021-03-25 20:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0002_auto_20210325_2045"),
]
operations = [
migrations.RemoveField(
model_name="user",
name="group",
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5c6dfb34f7379b83649e430df6930fa9ca50154e | e3a30242cb6481f0bd218c560cf4cfd1da125fc8 | /백준/BFS_DFS/뱀과 사다리 게임.py | 29b7c4ee1f2ce62e03fdb05698c7b77e7f8a6bee | [] | no_license | su-ram/Problem-Solving | 2f7897a00b807c527bf5354655c6f8daf318b72a | dd24808346dee9ba7fd3b4899fd375aa0476f886 | refs/heads/master | 2023-08-27T23:35:46.342362 | 2021-10-29T05:27:24 | 2021-10-29T05:27:24 | 290,809,045 | 0 | 0 | null | 2020-09-21T18:05:36 | 2020-08-27T15:14:09 | Python | UTF-8 | Python | false | false | 753 | py | N, M = map(int, input().split())
jumps = {}
for _ in range(N+M):
s,t = map(int, input().split())
jumps[s] = t
from collections import deque
def BFS(start,d):
que = deque([(start,d)])
visited = [False] * 101
visited[start] = d
while que:
num, d = que.popleft()
for i in range(1... | [
"swamys@naver.com"
] | swamys@naver.com |
9c76ec6f6efe72f06017e95b9beb980cae52a725 | 5220345999e9b07e58ef9e25caf939875c6ac276 | /codalab/apps/web/tests/test_submission_metadata_page.py | 1dd27965bdc3c528b277566629936b4fda4088a8 | [
"Apache-2.0"
] | permissive | quxiaofeng/codalab-competitions | e9859ca8869cff65a35384405ee8fac73b42edc4 | 194c11fb3c832c2e9dd0f3e5fa5ae688144c2751 | refs/heads/master | 2020-06-21T21:59:24.372149 | 2019-07-17T00:26:28 | 2019-07-17T00:26:28 | 197,561,539 | 1 | 0 | NOASSERTION | 2019-07-18T10:01:13 | 2019-07-18T10:01:12 | null | UTF-8 | Python | false | false | 2,468 | py | import datetime
import mock
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import Client
from django.contrib.auth import get_user_model
from apps.web.models import (Competition,
CompetitionParticipant,
Com... | [
"eric@ckcollab.com"
] | eric@ckcollab.com |
8446aaf9b51807b9d0ad27551ec6cbd54b1e739a | 2e51637a93d6f230e63cc5459773660cb131abff | /gdbinit.py | 25a8a42c155a4ccae5e4c82afb46c305c00d3c83 | [] | no_license | Yeuoly/YeuolyDBG | c072dff80d68a7c1f74538e4558fb0c5335e589a | f6b9f73cd271664ec212d2f62da9d7054fbb7ff1 | refs/heads/main | 2023-08-25T09:16:52.227770 | 2021-10-15T09:05:53 | 2021-10-15T09:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import sys
from os import path
directory, file = path.split(__file__)
directory = path.expanduser(directory)
directory = path.abspath(directory)
sys.path.append(directory)
import commands | [
"admin@srmxy.cn"
] | admin@srmxy.cn |
7da2ca60073cf342ae43280021bc2bd68c3abc77 | 14d8418ca5990217be67aee89fdaa310db03fbba | /models/xen_auto_discovery_method.py | 143bbc26b9dbdb9464fee4b4e8794db45443a5e8 | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,505 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
231ba12d25aa243173c4122fcc9f158f75f9547a | 94b603a26fd0942181d4a3da2f9f830034c74ce0 | /leetcode/weekly177/2_validate_binary_tree.py | 699b72740d475f5fa622a0311b61e778cdf1d9cd | [
"Unlicense"
] | permissive | jan25/code_sorted | 55336e10bb9ee74610ce1ba62617db979ddf8e26 | 2a5af4f8c95a66ccca3223a261362a17be05728f | refs/heads/master | 2023-01-25T00:50:56.846461 | 2022-12-21T17:40:30 | 2022-12-21T17:40:30 | 34,155,896 | 3 | 0 | Unlicense | 2019-02-07T23:07:10 | 2015-04-18T06:54:30 | C++ | UTF-8 | Python | false | false | 536 | py | '''
https://leetcode.com/contest/weekly-contest-177/problems/validate-binary-tree-nodes/
'''
class Solution:
def validateBinaryTreeNodes(self, n: int, leftChild: List[int], rightChild: List[int]) -> bool:
seen = set()
edges = 0
for i in range(n):
l, r = leftChil... | [
"abhilashgnan@gmail.com"
] | abhilashgnan@gmail.com |
8078fbe8157a0bdb530c4bfb4e0cab2e36034a7b | a4830a0189c325c35c9021479a5958ec870a2e8b | /tools/migrations/0017_auto_20181218_2219.py | 1d05038d33fdfba2359f84612bc212339dafb392 | [] | no_license | solutionprovider9174/steward | 044c7d299a625108824c854839ac41f51d2ca3fd | fd681593a9d2d339aab0f6f3688412d71cd2ae32 | refs/heads/master | 2022-12-11T06:45:04.544838 | 2020-08-21T02:56:55 | 2020-08-21T02:56:55 | 289,162,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2018-12-18 22:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tools', '0016_auto_20160803_1844'),
]
operations = [
migrations.AddField(
... | [
"guangchengwang9174@yandex.com"
] | guangchengwang9174@yandex.com |
2da43289348d7e394eb80869ebe8c5ff6de65fd9 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4014/codes/1671_1099.py | 31d48710efa6c20b2205809d5e5bfc26fd983e64 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # Teste seu código aos poucos. Não teste tudo no final, pois fica mais difícil de identificar erros.
# Ao testar sua solução, não se limite ao caso de exemplo. Teste as diversas possibilidades de saída
a=float(input("a:"))
b=float(input("b:"))
c=float(input("c:"))
print("Entradas:",a,",",b,",",c,)
if(a>=b+c) or (b>=c+a... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
de2e8a67c4fd12f13056514c540d6785e484d56a | 0cc42a58e7fb0571b6702cb2bd56034a632854be | /PlaneLenser/InterpolateLineOfSightTable.py | c0bf3a8669cc0bef01e5b184208cc72ac9816573 | [] | no_license | davidharvey1986/timeDelay | 0b5dab97f8d30e60811e7f2884729f005862e971 | 2a633d6762f97646e93b56fd619dec471942e1fa | refs/heads/master | 2020-12-06T01:09:50.293629 | 2020-08-04T12:57:31 | 2020-08-04T12:57:31 | 232,296,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,559 | py | import os
import sys
import re
import math
import PlaneLenser.ReadLineOfSightPDFTable as ReadLineOfSightPDFTable
import PlaneLenser.ValueBinner as ValueBinner
import numpy as np
import matplotlib.pyplot as plt
def getPathBase(fBase):
return os.path.join("../WesselsCodeOriginal/", "LoS_PDFs", fBase)
def getFilesAn... | [
"davidharvey1986@googlemail.com"
] | davidharvey1986@googlemail.com |
e332307b24e6dc39ad09d4aebd64dc242dcc474d | ec8817e9793028058ca151ae4fae794d36e2278e | /dbn/recurrent_layer.py | 4567d9f212780704da720bcdb4fb997e254fb58c | [] | no_license | shawntan/python-dbn | 61e002daca0ba8225aa8f077608615084d30b75e | 305fec4866015d5f1bc5d2b9d2340dd7e1bfdb53 | refs/heads/master | 2020-05-17T12:26:54.520362 | 2013-09-22T19:52:31 | 2013-09-22T19:52:31 | 8,597,833 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import theano.tensor as T
import numpy as np
import utils as U
import theano
from layers import Sigmoid
NO_UPDATES = theano.OrderedUpdates()
theano_rng = U.theano_rng
class Recurrent(Sigmoid):
def __init__(self,size):
super(Recurrent,self).__init__(size)
self.W = U.create_shared(U.initial_weights(... | [
"shawn@wtf.sg"
] | shawn@wtf.sg |
030dc4614b846e7ea698e64ab2aa8b2416e24993 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /tests/kyu_5_tests/test_directions_reduction.py | 5f19167950d5a79f572e3e2a2215d9aca2cc5f35 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import unittest
from katas.kyu_5.directions_reduction import dir_reduc
class DirectionsReductionTestCase(unittest.TestCase):
def test_equal_1(self):
self.assertEqual(dir_reduc(
['NORTH', 'SOUTH', 'SOUTH', 'EAST', 'WEST', 'NORTH', 'WEST']),
['WEST'])
def test_equal_2(self):
... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
8f46e0a017ac12d08d3b3d355f2dd40cfe50e6e1 | 6d0364f7aca2ea76444299d84d467a55b8dfabde | /tools/harness-automation/cases/router_8_2_5.py | 0aeb143608e84be9ba95c693cdf7d0c1e1f5f71e | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | particle-iot/openthread | b862853867a75a591bcb3dae8f70c2ac9c35eaba | 668256290d1c48319b0b96d41559efb48dcc0821 | refs/heads/master | 2020-03-13T13:02:45.358306 | 2019-07-09T11:38:23 | 2019-07-09T11:38:23 | 131,131,221 | 1 | 0 | BSD-3-Clause | 2019-05-19T03:42:57 | 2018-04-26T09:19:12 | C++ | UTF-8 | Python | false | false | 1,875 | py | #!/usr/bin/env python
#
# Copyright (c) 2016, The OpenThread Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notic... | [
"jonhui@nestlabs.com"
] | jonhui@nestlabs.com |
237e25b994ad7a73577b74bc4694db3ecfee6896 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/program/database/data/FunctionDefinitionDBAdapter.pyi | bce92120455f51b6ca00e79db88185994ec64ef8 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 607 | pyi | import java.lang
class FunctionDefinitionDBAdapter(object):
"""
Adapter to access the Function Signature Definition database table.
"""
def __init__(self): ...
def equals(self, __a0: object) -> bool: ...
def getClass(self) -> java.lang.Class: ...
def hashCode(self) -> int: ...
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
62a92246a59e59ff2550f7bd3adf80dc11d0cb97 | 1fa16c1df35fd8247f9274b26a70523a514210f0 | /dependencies/amitools-0.1.0/amitools/fs/Imager.py | c45cdcf01b8b37c5fbea9b1d30fa8040c2b7c498 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | limi/AGSImager | 25a816b1c5b9ce8553cd6e3a47babce574f15119 | d3771800308e61a7a07df4a9b361e5bd5ba9e409 | refs/heads/master | 2023-01-10T11:19:52.248376 | 2020-04-14T19:59:23 | 2020-04-14T19:59:23 | 255,813,813 | 0 | 0 | MIT | 2020-04-15T05:26:57 | 2020-04-15T05:26:56 | null | UTF-8 | Python | false | false | 7,613 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import os.path
import sys
import unicodedata
from .ADFSDir import ADFSDir
from .ADFSFile import ADFSFile
from .ADFSVolume import ADFSVolume
from .MetaDB import MetaDB
from . import DosType
from amitools.fs.block.BootBlock import Bo... | [
"optiroc@gmail.com"
] | optiroc@gmail.com |
b2b3c34a0adb938dfa4546d8be279a631088e40e | b088d5dc4321f9f145c7bceb20a0b9479b374c65 | /level1&2/42587.py | adb68fdace5001ff14fec77dddcaf1c5ab6d92af | [] | no_license | heojungeun/codingtestPractice | 55bfc2b13791f5cb3133b0815991a0c696f8482c | 65d668bf6df82967f89d4ec4eb3a1e11de603729 | refs/heads/master | 2022-09-17T00:34:05.887237 | 2020-05-30T06:45:30 | 2020-05-30T06:45:30 | 261,093,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | def solution(priorities, location):
answer = 0
from queue import Queue
q = Queue()
for x in priorities:
q.put(x)
while True:
maxp = max(priorities)
tmp = q.get()
if tmp < maxp:
q.put(tmp)
if location==0:
location = q.qsize()-1
... | [
"heocube@naver.com"
] | heocube@naver.com |
7b3096f8d428b3ad01b37c1e55e4dbeb979e817f | e60bbe26a33a44213893e14e8445ce60248658c7 | /apps/goods/urls.py | 94063f290fdba68c7ad1e6ad4e9e5e57b5e3e188 | [] | no_license | rahzpheon/dailyfresh | 2270d2ff6f2be003be9c6bd16d7b9e1f1f3e2375 | cce53c42f9f42bf32bca52c4b22fa48ea1da5c18 | refs/heads/master | 2021-09-10T00:31:36.511786 | 2018-03-20T11:34:25 | 2018-03-20T11:34:25 | 126,006,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from django.conf.urls import url
from apps.goods.views import IndexView,DetailView,ListView
urlpatterns = [
url(r'^index$', IndexView.as_view(), name='index'), # 首页
url(r'^detail/(?P<sku_id>\d+)$', DetailView.as_view(), name='detail'),
url(r'^list/(?P<type_id>\d+)/(?P<page>\d+)$', ListView.as_view(), name=... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
2bf3622b7d8406fdbaa549b0f7ae22080f44e813 | 417eefbc54e4bda0891e878392f4ddb9a11d462e | /homerun/homerun/wsgi.py | 409a8bb15eea91a9c330820843413203de347b57 | [] | no_license | btimby/django-homerun | c72505e2fe2a1ff6c1371f0b396616b36a8fbd73 | e569f1e2017ea272bbfed9cc6e5487bedf92d62a | refs/heads/master | 2021-01-01T05:43:13.137636 | 2013-10-30T03:49:41 | 2013-10-30T03:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | """
WSGI config for homerun project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` ... | [
"btimby@gmail.com"
] | btimby@gmail.com |
5e296b9991e5704a9ab792aeeb02386d8af3a29b | 2ce290176f1f2e5184a77262843cc46f65ac0e96 | /transaction/urls.py | ee15b2c6d922f292b0abb233f729f701caf66da9 | [] | no_license | AnkitAvi11/Expense_Management_System-Django | 33303b9f83ea1447a3de8131ca84ec43ecde5c17 | f7a3c3457349437d1a710a9a0def3a2db582ca0f | refs/heads/master | 2022-11-09T00:01:43.288375 | 2020-06-27T23:56:25 | 2020-06-27T23:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from django.urls import path, re_path
from . import views
urlpatterns = [
path('create-wallet/', views.addWallet, name='postwallet'),
path('addtransaction/', views.addtransaction, name='addtransaction'),
path('wallet-setting/', views.walletSetting, name='wallet-setting'),
path('api/wallet/', views.get... | [
"kumar.ankit383@gmail.com"
] | kumar.ankit383@gmail.com |
70ddad65f3f3e11d19161eaef5b4f7949fe7dff9 | bf227496009b0bedf5a7c558241813caacafd3ad | /config/conf3beaconstest.py | 0e27ca84c99f5770436baadc8a93bda2f1dd3cff | [] | no_license | switchdoclabs/SDL_Pi_BeaconAir | 09d5f4949064797f43876bb1d222c7a69c2f7730 | 65eca60e1be1b3fb94e7c9a45ea38d4ded6602de | refs/heads/main | 2023-02-08T17:36:09.663899 | 2021-01-02T18:12:58 | 2021-01-02T18:12:58 | 326,029,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | #
#
# configuration file - contains customization for exact system
# SDL December 2020
#
serverURL = "http://192.168.1.40"
DEBUG = True
LIGHT_BRIGHTNESS_SENSITIVITY = 2.0
LIGHT_DISTANCE_SENSITIVITY = 2.0
# configuration for house
# list of iBeacons with x,y coordinates. Top left corner of image is 0,0
# list of lis... | [
"you@example.com"
] | you@example.com |
1a58da3a48280a6b25c5ea6593c0fbfec7c81d17 | 1b81f854ddb40c6ed9b60b6a439289e30a094283 | /docs/conf.py | 21fab1207d049d275b629d8374ce052e8acf9bd8 | [
"MIT"
] | permissive | uyjulian/ControlPack | 9705f7815fb574fb162b2679250ee64831a20a9b | 279fea8766f6f9096133528e616c8fd3c15eef38 | refs/heads/master | 2020-12-24T06:02:35.576795 | 2018-04-12T17:09:56 | 2018-04-12T17:09:56 | 21,796,328 | 17 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,211 | py | # -*- coding: utf-8 -*-
#
# Control Pack documentation build configuration file, created by
# sphinx-quickstart on Sat Jul 8 17:11:10 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... | [
"uyjulian@gmail.com"
] | uyjulian@gmail.com |
0ca3110110a4f65e138e5b1cec94873ec7bd6b44 | 2a46ad4e83dcd903451fb5fba8d04da266dbd49e | /Algorithm/Leetcode/Codes/SearchInRotatedSortedArrayII.py | 93215f2eb511a346d4c4e3e69950494c9eebf457 | [] | no_license | chloeeekim/TIL | e248801508340cb2eb9f3cfddc486b7dd7250386 | c5a94e81aa2f2dfcc626820205ca9feaad069fad | refs/heads/master | 2022-03-02T04:05:24.439271 | 2022-02-22T01:25:14 | 2022-02-22T01:25:14 | 190,150,063 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | """
81. Search in Rotated Sorted Array II : https://leetcode.com/problems/search-in-rotated-sorted-array-ii/
정렬된 리스트와 정수 하나가 주어졌을 때, target이 포함되어 있는지 확인하는 문제
- 리스트는 증가하는 방향으로 정렬되어 있지만 rotate 되어 있다
- ex) [0,1,2,4,5,6,7]은 [4,5,6,7,0,1,2]가 될 수 있다
- 리스트 내에 중복이 존재할 수 있다
Example:
- Input : nums = [2,5,6,0,0,1,2], target =... | [
"hiyaku0317@gmail.com"
] | hiyaku0317@gmail.com |
d3641bce1a93d60e3088345bc23dbaa5abf2058f | bcf2b93fd27a3dcdf1168d91bed6efb171740785 | /0x0F-python-object_relational_mapping/5-filter_cities.py | 7e87f2e77770657abbb77d71a05d117db47117f0 | [] | no_license | Relaxforever/holbertonschool-higher_level_programming | c3c4e1dba0ce27d25f86145db9e8fd0cbb4f3630 | 9c2131902414a2fc3a488842071d13a98118d9bd | refs/heads/master | 2020-07-22T22:40:01.259101 | 2020-02-13T16:45:57 | 2020-02-13T16:45:57 | 207,353,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | #!/usr/bin/python3
""" module gets a database and prints it in ascending order """
import MySQLdb
import sys
if __name__ == "__main__":
con = MySQLdb.connect(host="localhost",
user=sys.argv[1],
passwd=sys.argv[2],
db=sys.argv[3],
... | [
"869@holbertonschool.com"
] | 869@holbertonschool.com |
f5516da0b4aa1dffff41aea7b26e4443c1273604 | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2023/minimum_absolute_difference_queries.py | fef40e1d4c315856ad5039eac78d205063336e2b | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 722 | py | """
https://leetcode.com/problems/minimum-absolute-difference-queries/
"""
class Solution:
def minDifference(self, nums: list[int], queries: list[list[int]]) -> list[int]:
N = max(nums)
freqs = [[0] * (N + 1)]
# Canculate frequency of number at each position.
for num in nums:
... | [
"mengyu.jiang@gmail.com"
] | mengyu.jiang@gmail.com |
62f2f0c353540b56735abd364f0f5e4c25014b40 | e582d60b7996faf7b87c6d857613e63581d415b9 | /elliot/evaluation/metrics/coverage/item_coverage/item_coverage.py | f12f049a7ee1f9876e5fc3805d785621fc9d1ffe | [] | no_license | Abdel57Grota/Reenvisioning-the-comparison-between-Neural-Collaborative-Filtering-and-Matrix-Factorization | d6e51c32094550789673846acdf9891557b790c1 | 2a2b0148e881cf8ba45c48ad9d42f52421585284 | refs/heads/main | 2023-09-03T09:47:41.894117 | 2021-11-09T09:17:35 | 2021-11-09T09:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | """
This is the implementation of the Item Coverage metric.
It directly proceeds from a system-wise computation, and it considers all the users at the same time.
"""
__version__ = '0.1'
__author__ = 'Vito Walter Anelli, Claudio Pomo'
__email__ = 'vitowalter.anelli@poliba.it, claudio.pomo@poliba.it'
from elliot.evalua... | [
"claudio.pomo@poliba.it"
] | claudio.pomo@poliba.it |
1fcb08c0f892047cf02781111c756ce75805456d | c9a5890bd71bba53655d34d83e124756560f0ebf | /algo/algos/polynome-tex5.py | b142327095172797cdc73b5a1e8161d66f8677d0 | [] | no_license | exo7math/cours-exo7 | 34cad929e9b4f54b817e31919eaf627db07c7f5c | 54f435a3de79b20ef6fdaf15d8061c80f776d8a7 | refs/heads/master | 2023-03-19T03:10:46.698777 | 2023-03-17T19:44:30 | 2023-03-17T19:44:30 | 75,659,073 | 42 | 44 | null | 2022-12-01T09:47:42 | 2016-12-05T19:31:40 | TeX | UTF-8 | Python | false | false | 695 | py | def produit_assez_rapide(P,Q):
p = degre(P) ; q = degre(Q)
if (p == 0): return [P[0]*k for k in Q] # Condition initiale: P=cst
if (q == 0): return [Q[0]*k for k in P] # Condition initiale: Q=cst
n = (max(p,q)+1)//2 # demi-degré
P1,P2 = decoupe(P,n) #... | [
"arnaud.bodin@univ-lille.fr"
] | arnaud.bodin@univ-lille.fr |
f8748a1df2af7d334c67a4af542aac4cebe935a1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_191/ch120_2020_03_26_14_47_01_217089.py | 8191535c746926ce39b422f8d00e63594e649a26 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | import random
d=100
print(d)
while d>0:
a=int(input('Quantidade: '))
if a>0:
p=input('Aposta(n,p): ')
r=random.randint(0,36)
if p=='n':
f=int(input('Numero de 1 a 36: '))
if d==r:
d=d+35*a
print(d)
else:
... | [
"you@example.com"
] | you@example.com |
ca251ea395432732db15ce548a28aa734c49e10b | 536a0a72dff61e9d147864c5c089f3b5d61d67d9 | /RESOURCES/jobj.tst.py | f7623d3e204bb27488f45480a181b88c2023ea6f | [
"MIT"
] | permissive | ihgazni2/eobj | 37f7bc7221937ba06abd826dfdad22178ef39114 | d5d73759c4b4be9244c08afcb82d470c7f3cf35d | refs/heads/master | 2020-08-01T14:17:29.466564 | 2020-04-16T13:55:02 | 2020-04-16T13:55:02 | 211,020,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | d = {'arr': [1, 2, 3], 'x': {'y': 100, 'z': {'u': 200}}}
o = ele2jobj(d)
arr = [[100],[200,300]]
o = ele2jobj(arr)
del o.x.y
o
d
del o.arr1
>>> d = {'arr': [1, 2, 3], 'x': {'y': 100, 'z': {'u': 200}}}
>>> o = ele2jobj(d)
>>>
>>> del o.arr1
>>> o
{'arr': [1, 3], 'x': {'y': 100, 'z': {'u': 200}}}
>>>
>>> d
{'arr':... | [
"terryinzaghi@163.com"
] | terryinzaghi@163.com |
25550cee9f8cb64f1c870039d9fa6529f8344b7c | 5865cc1b70db72b7a9a9a07547f05a1f47959bb1 | /supervised_learning/0x01-multiclass_classification/1-main.py | 37606bdf5cda5cae9bf9ec1b565eb6a4538b0a2c | [] | no_license | nildiert/holbertonschool-machine_learning | c8cefc3a784348f09128c0f4d82d65b9d56000c5 | 273f81feaa14fe24ac4db5d82be0d13299e857b8 | refs/heads/master | 2020-12-21T12:27:48.280880 | 2020-09-25T17:58:33 | 2020-09-25T17:58:33 | 236,429,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python3
import numpy as np
oh_encode = __import__('0-one_hot_encode').one_hot_encode
oh_decode = __import__('1-one_hot_decode').one_hot_decode
lib = np.load('../data/MNIST.npz')
Y = lib['Y_train'][:10]
print(Y)
Y_one_hot = oh_encode(Y, 10)
Y_decoded = oh_decode(Y_one_hot)
print(Y_decoded)
Y_decoded ... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
59caa532ad0c9bef6485d2966c66bbdd6e597fa0 | 382df78024f588acea08039a0b0a9e24f297b6a3 | /python/matplotlib/simple_plot.py | 167c0e211fd048c9d5e039704358048c41cd5d4d | [] | no_license | id774/sandbox | c365e013654790bfa3cda137b0a64d009866d19b | aef67399893988628e0a18d53e71e2038992b158 | refs/heads/master | 2023-08-03T05:04:20.111543 | 2023-07-31T14:01:55 | 2023-07-31T14:01:55 | 863,038 | 4 | 1 | null | 2020-03-05T06:18:03 | 2010-08-26T01:05:11 | TeX | UTF-8 | Python | false | false | 280 | py | import matplotlib.pyplot as plt
from numpy.random import randn
x1 = randn(50).cumsum()
x2 = randn(50).cumsum()
x3 = randn(50).cumsum()
x4 = randn(50).cumsum()
plt.figure()
plt.plot(x1, 'k--')
plt.plot(x2, 'r--')
plt.plot(x3, 'g--')
plt.plot(x4, 'b--')
plt.savefig('image.png')
| [
"idnanashi@gmail.com"
] | idnanashi@gmail.com |
583e80f30dcd6488decd5a82c3723edcad5c79c8 | ece829db4a6a28f1732c534952389e13c71cb25b | /Status/migrations/0003_auto_20160723_0103.py | 0efa84676d9ffa4bf41055f2a44c6e16e8a03aee | [] | no_license | huangy10/SportscarStyle | 8d5597cf6839e3705917ad591d96014cb35740ab | 5fdf748b95198cd464d94c51f49be9f52ac3c5c1 | refs/heads/master | 2020-04-04T05:37:03.821637 | 2016-12-01T06:31:17 | 2016-12-01T06:31:17 | 45,738,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('Status', '0002_auto_20160710_0504'),
]
operations = [
migrations.AlterField(
model_name='status',
na... | [
"woody1573@163.com"
] | woody1573@163.com |
989d7a00a4af6cc31dcc792036b62634c53dc479 | 22e78415f5553289ed3cec38567cbe4964861cac | /users/admin.py | 7ec48c94cb9be29e951d19f9cfa4c1ccdb538169 | [] | no_license | Tanmoy-Sarkar/NewspaperApp | 5dbe2dd209b877f6b0c3e2c5ca5f402455229f24 | 35f455d6128df959b2eb2543ada8d7844a711295 | refs/heads/master | 2022-09-11T17:43:39.856907 | 2020-05-26T17:49:16 | 2020-05-26T17:49:16 | 266,339,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
# Register your models here.
from .forms import CustomUserCreationForm,CustomUserChangeForm
from .models import CustomUser
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserChangeForm
model = CustomUs... | [
"tanmoy9920@gmail.com"
] | tanmoy9920@gmail.com |
b3ed91795ad00506e232d0da320633942aa33e3d | cfd2e1f12208dad79bc4b899e81ce1f7de84e80c | /demos/scripts/Vogels_et_al_2011.py | a7630891b58b5e31d50993ef1307ababafba6039 | [] | no_license | zhouyanasd/DL-NC | 334adafdea1dd8c4c08c7efef3abc3b623344f0d | 396521096f65b27aa24efb1deda7b215876166b2 | refs/heads/master | 2023-03-22T04:57:19.790975 | 2023-03-14T08:57:01 | 2023-03-14T08:57:01 | 64,385,964 | 41 | 9 | null | 2023-02-15T17:52:34 | 2016-07-28T10:22:45 | Python | UTF-8 | Python | false | false | 3,177 | py | from brian2 import *
# ###########################################
# Defining network model parameters
# ###########################################
NE = 8000 # Number of excitatory cells
NI = NE/4 # Number of inhibitory cells
tau_ampa = 5.0*ms # Glutamatergic synaptic time constant
tau_gaba = 10... | [
"zhouyanasd@gmail.com"
] | zhouyanasd@gmail.com |
ba49d636ae70b941606cbcd0486fba198ea7813c | a5b563bc83fce5a652a01dd3b07550cb53e54ea3 | /ME555_Hw2-master/test_1.py | 8b1978990ab2b231ff0397fbd2ee167686e5d444 | [] | no_license | ljc19800331/HW_Python | d89b38ced5476453f5a0ae98752c7cd34bf351c0 | 08a503b57f48e306bb3898f3c31785144b96e0cb | refs/heads/master | 2020-03-27T06:42:09.504267 | 2018-11-28T21:32:40 | 2018-11-28T21:32:40 | 146,128,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import numpy as np
import matplotlib.pyplot as plt
import time
import random
import Robot_setting
from Robot_setting import *
# Fixing random state for reproducibility
np.random.seed(19680801)
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
area = 100
colors = np.random.rand(N)
plt.xlabel('x') # Set up axe... | [
"maguangshen@gmail.com"
] | maguangshen@gmail.com |
da7cb09c85ed91cfebb4a20d23afab9a4056a379 | 335944885d937316236102a80f76a696b48b51e1 | /src/python/module/nifty/graph/agglo/__init__.py | a458b5bf9440a1fd3e7be5b5ccb409df7f9828ef | [
"MIT"
] | permissive | chaubold/nifty | b33153c3ba2dd7907c1f365b76a31471f9313581 | c351624a7f14278eb241fb730f44bdd275563dec | refs/heads/master | 2021-01-11T17:43:23.443748 | 2017-01-22T12:48:21 | 2017-01-22T12:48:21 | 79,821,703 | 0 | 3 | null | 2017-12-22T10:47:30 | 2017-01-23T16:16:55 | C++ | UTF-8 | Python | false | false | 2,375 | py | from _agglo import *
import numpy
__all__ = []
for key in _agglo.__dict__.keys():
__all__.append(key)
from ...tools import makeDense as __makeDense
def sizeLimitClustering(graph, nodeSizes, minimumNodeSize,
edgeIndicators=None,edgeSizes=None,
sizeRegularizer=0... | [
"thorsten.beier@iwr.uni-heidelberg.de"
] | thorsten.beier@iwr.uni-heidelberg.de |
6b494f23ee72c35cb84c954d9b2ac0ec5ff83c57 | e8d9821b53db4bb2a2d68b2a1774116fac22fbef | /python-web-spider-book/10-Cookies/CookiesPool/login/cookies.py | 80562400f5e06ded00316d0fac5b1fadb0ad1a15 | [] | no_license | ArmstrongLLQ/Python_learn | 9ab5197a8bb81a51f7d2896aac2b2f35f13e080d | d7d3c15838ad3a681fabd11c0ba75172989f1e05 | refs/heads/master | 2022-03-25T09:10:51.421073 | 2019-11-25T07:32:50 | 2019-11-25T07:32:50 | 186,932,486 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | # -*- coding: utf-8 -*-
import requests
class WeiboCookies():
def __init__(self, username, password):
self.url = 'https://passport.weibo.cn/signin/login?entry=mweibo&res=wel&wm=3349&r=https://m.weibo.cn/'
self.headers = {
'Referer': 'https://m.weibo.cn/',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) A... | [
"armstrong_lab@163.com"
] | armstrong_lab@163.com |
6147634f636d12f2325bff10dfd21d71f2b1b4b2 | 344dfd891cde88940c86f1d488d426c79c3825ac | /w13/drfdemo/api/models.py | b7ac39ef631541de80f04db083344a48a6fa3c6d | [] | no_license | bobur554396/WT2018Spring | b32b02d4ffdc1598fb41322e97cecc0eeffa92b3 | 6a79748747991aa1e28b359a72ddf3a9b3a9d1d0 | refs/heads/master | 2021-05-11T00:53:05.640173 | 2018-04-13T05:12:33 | 2018-04-13T05:12:33 | 118,312,848 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from django.db import models
class Todo(models.Model):
title = models.CharField(max_length=100)
created_at = models.DateTimeField(auto_now=True)
def __str__(self):
return self.title
| [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
e5313a06bff498c8ddfd3abf4775b8e6f778f624 | 5db3d51ff9a0bd7647c2315a358cb4ec9299d9d5 | /test_3d.py | 01d4a1ba2680d219e91211207dfa0b7e8a377369 | [] | no_license | bikiranguha/Thesis_project | 866385f51bd476448730c8169eb0b3c1dacba84e | 1a52ba0fed86afb522bda067b8011b6940b4088d | refs/heads/master | 2020-03-31T06:52:16.627848 | 2018-12-28T02:59:33 | 2018-12-28T02:59:33 | 151,997,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.axes3d import Axes3D
import numpy as np
#from pylab import meshgrid
# function to be plotted
def z_func(a, b):
return (a - 3) * (a - 3) + (b - 2) * (b - 2)
x1 = np.arange(15.0, 0, -0.1) # x1 >= 0 according to given conditions
x2 = np.arange(-15.0, 1, 0.1) ... | [
"bikiranguha@gmail.com"
] | bikiranguha@gmail.com |
8e03b65678946acff97df34f7474d624d3b1da0d | 9fbdbc648035372f7f845954d040216789ac0aa8 | /orientation/DS_final/rename.py | 75483ac362542877c709078f6e64746054a38518 | [] | no_license | tmcclintock/redmapper_lensing_tests | 39a5ce06cc0e55c9d8f9970ab0dd96f93ec608d9 | aa07b1a64f4dd5fd830be8e085a2bbac7803a1c7 | refs/heads/master | 2020-04-14T21:29:32.421374 | 2019-09-25T20:48:14 | 2019-09-25T20:48:14 | 164,130,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import os
import numpy as np
h = 0.7
y1zs = np.loadtxt("Y1_meanz.txt")
zs = ["0.2", "0.35", "0.5", "0.65"]
ls = ["20", "30", "45", "60", "10000"]
inpath = "DeltaSigma_same_mass_redshift_distribution_z_%s_%s_lam_%s_%s.dat"
outpath = "DS_MASSSELECTION_l%d_z%d.txt"
#NOTE - I need to add two more blank columns to the o... | [
"tmcclintock89@gmail.com"
] | tmcclintock89@gmail.com |
0b68b6fa781838cf8a90f535420924801ee58f41 | 125bc51efb95f383257e7bdb50ae74e5dc05b7f7 | /src/belajarSubstring.py | 555cb2c2df7ed916e99ce9cbb354c86317602c0a | [] | no_license | frestea09/learn_ch1_python | f9688fffda5f0fa312b82bd25081b986fa0779e9 | 510ea59bf85ec024ebc473db2533e92becaefbf3 | refs/heads/master | 2020-05-26T18:22:31.171688 | 2019-05-26T05:42:08 | 2019-05-26T05:42:08 | 188,334,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from __future__ import print_function
def main():
variablePertama = "Python"
print(variablePertama[0:3])
if __name__ == "__main__":
main() | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
a5953f55326505e1a8e896d042006306a5163ac1 | 0178aa46cbc3366e1d063def92378cfd1f3a9664 | /checkout/webhook_handler.py | 1d6d2caafd9c82221fd360d52bee9ca1de40f629 | [] | no_license | richardthorp/boutique_ado_v1 | dbf40b1ffeb0ad55ebbc62cd9cecbce916fd32d9 | 695542ea594287e367575d4953b207112b25330d | refs/heads/master | 2023-05-30T17:36:01.167308 | 2021-07-01T07:48:30 | 2021-07-01T07:48:30 | 365,285,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | from django.http import HttpResponse
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.conf import settings
from .models import Order, OrderLineItem
from products.models import Product
from profiles.models import UserProfile
import time
import json
class StripeWH... | [
"richardthorp@hotmail.co.uk"
] | richardthorp@hotmail.co.uk |
ca2de8a0859d08c5b215dcfde90799979102b480 | 5c00b0626b4ec2bc428e565c97b4afc355198cc4 | /torchsim/research/research_topics/rt_2_1_2_learning_rate/experiments/ta_classification_accuracy_experiment.py | 482912fea6df3ae4ae505f007f196a9811e0c4e2 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | andreofner/torchsim | 8cff778a324d4f7dc040f11a12d0dc8cd66375b7 | 81d72b82ec96948c26d292d709f18c9c77a17ba4 | refs/heads/master | 2021-10-24T05:25:33.740521 | 2019-03-22T10:20:00 | 2019-03-22T10:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,960 | py | from eval_utils import run_just_model, parse_test_args
from torchsim.research.experiment_templates.task0_train_test_classification_acc_template import \
Task0TrainTestClassificationAccTemplate
from torchsim.research.research_topics.rt_1_1_4_task0_experiments.experiments.experiment_template_params import \
Trai... | [
"jan.sinkora@goodai.com"
] | jan.sinkora@goodai.com |
bfe5e1ba3ae0161458b0aff41aa88c0e55537a4b | 592aa4ed17f6a5a4c77a774d4be0f21d08062546 | /part2/05-sifr/part1/02.py | 2a3c11a2e36728cc495375f6915e5a994cda1687 | [] | no_license | permCoding/algopro20 | 9ce6f2d1006d16b90d70556ba5a50f872f61261d | 5b067d4a49a1e4545429e86a4deddf1d17ab7e24 | refs/heads/master | 2023-04-20T10:20:01.670554 | 2021-05-10T12:51:13 | 2021-05-10T12:51:13 | 294,161,048 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | # из строки в список кодов и обратно
line = 'Привед Медвед...'
lst = [ord(smb) for smb in line]
print(lst)
result = [chr(item) for item in lst]
print(''.join(result))
| [
"ttxiom@gmail.com"
] | ttxiom@gmail.com |
1645c6cad013926349e1d26ee8c6295279aa6bc1 | e87893e47c134854adca03ae7e7a4a3cce2188a4 | /mse-20190531/setup.py | bc7b227a4a6870c4f32d4f7dd26ecbb17f71a8a1 | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python2-sdk | 29ebddd9fc1828c7c9bedafb4ea22a07435455fd | c3e320c44b8f2584f520219dda3904554041648b | refs/heads/master | 2023-07-01T17:52:09.632578 | 2021-08-02T06:58:54 | 2021-08-02T06:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | # -*- coding: utf-8 -*-
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
105b746bfb0c97536f34cf858a0f2402bb81e241 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /GPibesdkGf433vHBX_4.py | 085b9b67bd5f7f6a637897c9ec9a03391dfa0879 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | """
[Goldbach's Conjecture](https://en.wikipedia.org/wiki/Goldbach%27s_conjecture)
is amongst the oldest and well-known unsolved mathematical problems. In
correspondence with [Leonhard
Euler](https://en.wikipedia.org/wiki/Leonhard_Euler) in 1742, German
mathematician [Christian
Goldbach](https://en.wikipedia.org/wik... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1a5b3bb032a2e5672df0376a092d182290d421e5 | 5391e92d4d197da8ec995806658700e4580c4894 | /cv-deeplearning/model.py | c3c73a47311d25de79d4f04c1af37648fe5d97a9 | [] | no_license | dw363851601/EmotionRecognitionOnHologram | cf34470c1039dbe9302c17125366ead42a2eb05f | dff5be0cd0d169331a83e3edc3f27f690eddea07 | refs/heads/master | 2020-12-09T19:07:26.059968 | 2016-12-25T06:22:04 | 2016-12-25T06:22:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,178 | py | # Simple CNN model for CIFAR-10
import numpy
import matplotlib.pyplot as plt
from time import time
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import Flatten
from keras.constraints import maxnorm
from keras.optimizers import SGD
from keras.layer... | [
"antlowhur@yahoo.com"
] | antlowhur@yahoo.com |
8c6d42028956d013e3fb9bda34c34f18cb040c10 | 089541b30391d590aa172936ed64f331923e440f | /fxakeys/fxaoauth.py | 592a7fc477c82d06ba8f70bd24bb27e24572daf8 | [] | no_license | tarekziade/fxakeys | a998e24929fdb27f3f69f52c2c12b3731b5cc400 | facad48d518d4818b1069960640682608da5a201 | refs/heads/master | 2021-01-20T06:59:52.348423 | 2015-01-20T20:45:39 | 2015-01-20T20:45:39 | 28,179,114 | 0 | 1 | null | 2015-01-05T16:46:19 | 2014-12-18T10:32:49 | Python | UTF-8 | Python | false | false | 1,197 | py | # uses https://github.com/mozilla/PyFxA/tree/rfk/assertion-and-oauth-helpers
import os
from fxa.oauth import Client as OAuthClient
from fxa.core import Client
EMAIL = os.environ.get('FXA_USER', "tarek@mozilla.com")
PASSWORD = os.environ.get('FXA_PASSWORD')
CLIENT_ID = "021fd64aa9661fa1"
AUTH_SERVER = "https://stable.... | [
"tarek@ziade.org"
] | tarek@ziade.org |
55ada8edacc7dbd44e9c4294403ba8ca33aed17d | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/EcoAppInfo.py | 95dc9ca38d46125d73ceee06c93ff6531c17d02c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,316 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class EcoAppInfo(object):
def __init__(self):
self._app_code = None
self._app_name = None
@property
def app_code(self):
return self._app_code
@app_code.setter
... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
7d4056153f8243a56f753b468a645df7976d8a59 | 20a9787564f76ae0fcf2332a8655b21bae0646a3 | /PnC_Problems/combinations.py | 2f94b3a5dcb2fa7f07f1e4a0cdacbb70cd6afcba | [] | no_license | nidhiatwork/Python_Coding_Practice | 3b33a40c947413c2695d3ee77728fa69430f14cd | 9d5071a8ddcda19181d3db029fb801d4e3233382 | refs/heads/master | 2023-02-08T20:50:47.522565 | 2023-02-04T10:04:10 | 2023-02-04T10:04:10 | 194,607,759 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | '''
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
Input: n = 4, k = 2
Output:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]
'''
class Solution:
def combine(self, n, k):
def backtrack(first = 1, curr = []):
# if the combination is done
... | [
"nidhi.bhushan123@gmail.com"
] | nidhi.bhushan123@gmail.com |
a00322efe87cdb1e528958949461479c35ff71ce | acda0bc700943654156d491eaa0b766bea0ae7bd | /apps/reportes/excel_compras.py | b78ac0a88cf1eac3c8baf532c20afa3e3216eeac | [] | no_license | bluehawkarthur/casa_campo | a11baaec966d51a1e733ad2dd48bb77a0ecd6cb5 | 22a57b58a722769e8e25330457ed868d230f5c05 | refs/heads/master | 2021-01-18T15:05:47.674205 | 2016-10-26T20:03:55 | 2016-10-26T20:03:55 | 68,387,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,736 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import StringIO
import xlsxwriter
from django.utils.translation import ugettext
from django.db.models import Avg, Sum, Max, Min
import decimal
from apps.compras.models import Compras
def WriteToCompras(weather_data, fecha_de, fecha_a, total, town=None):
output = StringIO.... | [
"josedanielf9@gmail.com"
] | josedanielf9@gmail.com |
9ff992753acc8984026428d8344c247f599cf9bf | ec5650aaa12fceaf77f6f59f843bf984d79b39cd | /adv.py | 43c3310d024d248ee024d17b1435abbc6abd2f9f | [] | no_license | cvandeyar/calculator_1_exercise | 17a0ea46ccc18f6821f2383f25bb7fb13241a9cc | 1e912b13e09ce4826d07f04f1e8587162d309b9d | refs/heads/master | 2020-06-18T13:30:07.959272 | 2019-07-11T03:50:22 | 2019-07-11T03:50:22 | 196,317,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | """Advanced functions for calculator."""
from arithmetic import add, cube, multiply
# NOTE: to actually have these work, you'll need to copy these functions
# into arithmetic.py --- that's where calculator.py will look for them!
def add_mult(num1, num2, num3):
"""Add num1 and num2 and multiply sum by num3."""
... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
bfe7b5964fe4bc6859511d7d8b9fe6b87fbbffd9 | fe5a6394e09b88dfc13279f56a4dab4cf9f15e52 | /source_py2/python_toolbox/caching/cached_property.py | de41e0f46b829fbd48d8bae582134d21b45d8a3c | [
"Python-2.0",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | alilosoft/python_toolbox | acba8f93d675650eac7f9313177af28e0388f2e0 | 7ba9d35d82a99eb243117e850a2b4b2058cd24fc | refs/heads/master | 2022-10-14T10:21:32.693760 | 2019-04-23T09:01:30 | 2019-04-23T09:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | # Copyright 2009-2017 Ram Rachum.
# This program is distributed under the MIT license.
'''
Defines the `CachedProperty` class.
See its documentation for more details.
'''
from python_toolbox import decorator_tools
from python_toolbox import misc_tools
class CachedProperty(misc_tools.OwnNameDiscoveringDescriptor):
... | [
"ram@rachum.com"
] | ram@rachum.com |
5377d6c3bc12039277ba4a6274799c98a98841ed | 2c942aec676880cd1a80251005f6d8a3f6fe605a | /aoc/2020/2020_07.py | ed0a067e85ab1bf25c3a24d18cb54583fd04abdb | [] | no_license | rsprenkels/python | 53ac1c89b5d60642f1a0c692a8bbac6b6d99d4c0 | 1e621ed146bdc52b735613c124a1bab36a36a39a | refs/heads/master | 2021-06-24T03:37:05.056202 | 2020-12-21T17:19:24 | 2020-12-21T17:19:24 | 151,983,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | def read_input():
with open('2020_07.txt') as f:
lines = [line.rstrip().rstrip('.') for line in f.readlines()]
result = {}
for line in lines:
bagtype, contents = line.split(' contain ')
bagtype = bagtype.rstrip(' bags')
result[bagtype] = {}
fo... | [
"ron.sprenkels@gmail.com"
] | ron.sprenkels@gmail.com |
97e2c939bed93a40d9cf934a4a00623c788ee443 | 210e1cffcd8a705c2a8a1485ed5532b9169f5d10 | /whoville/cloudbreak/models/cloud_storage_supported_response.py | 4e79c1e6195a5984637baff6fb34b531912f8e8f | [
"Apache-2.0"
] | permissive | mikchaos/whoville | 2a45bc6636d448733d8d2368ac88a980cf6954ea | 6eabaea4b74ac0b632c03db8252590131c6ce63b | refs/heads/master | 2020-04-19T08:53:04.430990 | 2019-01-29T05:01:57 | 2019-01-29T05:01:57 | 168,092,002 | 0 | 0 | Apache-2.0 | 2019-01-29T05:00:06 | 2019-01-29T05:00:06 | null | UTF-8 | Python | false | false | 4,863 | py | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | [
"chaffelson@gmail.com"
] | chaffelson@gmail.com |
b66ecac904b0bfc74639f495c782e2ab42fead17 | 4ef3f7344de72d4a6f6275b19bec8b8e76950ace | /web_dynamic/3-hbnb.py | 640c44b363bd3fbcf5f796f18cac9599d85358e3 | [
"LicenseRef-scancode-public-domain"
] | permissive | Nukemenonai/AirBnB_clone_v4 | 72f0eb179724ca6323149180fafd26c412b71c3d | 02235f6da53a637e56b5ce2be54fc7f07493446e | refs/heads/master | 2022-07-16T08:44:35.953496 | 2020-05-20T23:12:20 | 2020-05-20T23:12:20 | 264,218,864 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | #!/usr/bin/python3
""" Starts a Flash Web Application """
from models import storage
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.place import Place
from os import environ
from flask import Flask, render_template
import uuid
app = Flask(__name__)
# app.jinja... | [
"david.giovanni.ovalle@gmail.com"
] | david.giovanni.ovalle@gmail.com |
8b5f499bd346e63e8214aa9c699e9dd6034d93ee | f70d80def7ee61ed2e27b7bafbc277d47c8079c7 | /projects/migrations/0001_initial.py | 7dcbb5f0adfc9bbad994b0158f267a62e54b947b | [] | no_license | Patrick322/portfolio-2 | ff60c29f09b2c6f03455b5ad3a30a125cbce450a | 915ced53d1b0b0cabb2e5c62b238dbd538d59666 | refs/heads/master | 2022-10-02T09:36:56.577804 | 2020-02-28T08:54:32 | 2020-02-28T08:54:32 | 243,439,553 | 0 | 0 | null | 2022-09-16T18:18:49 | 2020-02-27T05:34:35 | Python | UTF-8 | Python | false | false | 1,046 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-02-27 13:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='descript... | [
"patrickbuong@gmail.com"
] | patrickbuong@gmail.com |
aed82e441b85ed4312cf3aa9291086f440ce7e11 | 7b15c40c00ba2008024979d0e520a922bc2f8229 | /mianshi_prep/AMZ_VO_prep/hard_questions/0460_LFU_Cache.py | f7be806c8edd772df40005d567baa264e1b0471c | [] | no_license | axd8911/Leetcode | aa9875a5b55c7d5e961d9a3ea55823d06eb08a88 | 1c6cab14f4dac4f3f29f1b5ce13bb5289724fdb4 | refs/heads/master | 2022-07-07T12:59:38.251218 | 2021-06-22T06:27:05 | 2021-06-22T06:27:05 | 173,857,144 | 0 | 1 | null | 2022-06-22T01:22:30 | 2019-03-05T02:23:42 | Python | UTF-8 | Python | false | false | 2,199 | py | class Node:
def __init__(self,key,val,freq):
self.key = key
self.val = val
self.freq = freq
self.prev = None
self.next = None
class LFUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.dic = {}
self.head = {}
self.t... | [
"axd8911@hotmail.com"
] | axd8911@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.