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
acf7265f83b087668eff3bc00aef78b8cd67583e
f93137d5bbb9e13aafcaf583fa269744fd407584
/hub-outside/jupyterhub_config.py
c504f79e360bbf8b5ddee69b9ac5b8fb2a390685
[]
no_license
minrk/jupyterhub-swarm
0f9a19d48ed9605c9e67ad7860984fd4a625bc6b
aa43c27ca9808bab8b22cbffdbcb646250658c4b
refs/heads/master
2023-08-25T15:25:05.043178
2017-03-05T17:39:18
2017-03-05T17:39:18
83,953,793
8
0
null
null
null
null
UTF-8
Python
false
false
641
py
# JupyterHub config file for Docker Swarm # This time, the Hub is on the host. from dockerspawner import DockerSpawner from tornado import gen c.JupyterHub.spawner_class = DockerSpawner c.DockerSpawner.use_docker_client_env = True # tell containers to listen on all IPs c.DockerSpawner.container_ip = '0.0.0.0' # hub_...
[ "benjaminrk@gmail.com" ]
benjaminrk@gmail.com
bb390bf594395d7caee096479d54b72e3070416b
602111e42ffb0c79462fece7360ddc8fb30e3fc5
/app.py
9c88fb6b191a3c5e5a94ff1ec3aeb6ffab0839cf
[]
no_license
pekkipo/Word_calculator_task
7aa3dce16a3d745e28953f5b7f22c0d207a34d5e
1dd815626b634c17d161a86c8f1d6f81be824c7f
refs/heads/master
2021-03-13T02:53:38.820363
2017-05-16T17:13:57
2017-05-16T17:13:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
from calculator import Calculator import sys #equation = "2+2*1983-20" #print(sys.argv[1]) #calculator = Calculator(equation) calculator = Calculator(sys.argv[1]) calculator.show_answer()
[ "pekkipodev@gmail.com" ]
pekkipodev@gmail.com
a517137850529083914e343ae308127dd5e9394e
bd02997a44218468b155eda45dd9dd592bb3d124
/baekjoon_2448.py
3c0bd285bf55a47300cb38c46cfa168f8f2f09a9
[]
no_license
rheehot/ProblemSolving_Python
88b1eb303ab97624ae6c97e05393352695038d14
4d6dc6aea628f0e6e96530646c66216bf489427f
refs/heads/master
2023-02-13T03:30:07.039231
2021-01-04T06:04:11
2021-01-04T06:04:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
''' Problem Solving Baekjoon 2448 Author: Injun Son Date: August 11, 2020 ''' import sys N = int(input()) graph = [[" "]*(2*N -1) for i in range(N)] def divide_and_conquer(start_y, start_x, size): if size==3: graph[start_y][start_x]="*" graph[start_y+1][start_x-1] = graph[start_y+1][start_x+1]= "*...
[ "ison@sfu.ca" ]
ison@sfu.ca
b6833ebbd09a7756b5af54b8271570a3c0c44b93
6a95b330e1beec08b917ff45eccfd6be3fd4629f
/kubernetes/test/test_v1_self_subject_rules_review_spec.py
873762d5722bd171261ae2249977facc72ea0e25
[ "Apache-2.0" ]
permissive
TokkoLabs/client-python
f4a83d6540e64861b59e322c951380a670578d7f
f1ad9c6889105d8510472606c98f8d3807f82020
refs/heads/master
2023-07-14T01:36:46.152341
2017-12-21T21:32:11
2017-12-21T21:32:11
115,042,671
0
0
Apache-2.0
2021-08-06T03:29:17
2017-12-21T20:05:15
Python
UTF-8
Python
false
false
1,063
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
[ "mehdy@google.com" ]
mehdy@google.com
27571bf8c40cd9b0affe81141bd1d401990017d4
1ccb25e51f3cc5048451a035fd129bdaeaf32304
/etc/lispd/settings_global.py
331cd07fe8ea7532ed768ede28f1e058095f88bc
[]
no_license
steffann/pylisp
2afee981bc17576586c5ed95f49a48b35b2ee2a5
84d084b03dfb408d439ffa2b4b60495e8ca78b5e
refs/heads/master
2021-06-01T12:56:11.698515
2019-05-30T18:05:55
2019-05-30T18:05:55
7,473,077
3
2
null
null
null
null
UTF-8
Python
false
false
2,084
py
from ipaddress import IPv4Address from pylisp.application.lispd.address_tree.container_node import ContainerNode from pylisp.application.lispd.address_tree.etr_node import ETRNode from pylisp.application.lispd.etr_registration import ETRRegistration from pylisp.packet.lisp.control import LocatorRecord, KEY_ID_HMAC_SHA_...
[ "sander@steffann.nl" ]
sander@steffann.nl
62d4ac541ea03f5b81c9f26fb234673ff3ed493e
19aa6f9eb5d9c652aa94ae7f8efc41e15bcf749d
/setup.py
9ebc8c41f5efe83b3677d3d816edfef5aefaf3ba
[ "Apache-2.0" ]
permissive
betatim/stravalib
26b4089308de2ea5c38cb9162764fd493c9a8b27
4d12988e8b5566321b120b8833358ce53caa20a1
refs/heads/master
2021-01-19T07:02:18.904445
2014-11-10T02:15:44
2014-11-10T02:15:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,303
py
# -*- coding: utf-8 -*- import os.path import re import warnings import sys try: from setuptools import setup, find_packages except ImportError: from distribute_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages version = '0.3.0' news = os.path.join(os.path.dirna...
[ "hans@xmpl.org" ]
hans@xmpl.org
0b0035f2d70c94ab12b70d821106a3e75da9d75e
0e8b6f94467c25dd2440f7e2ea1519244e689620
/MarlinJobs/CalibrationConfigFiles/Stage67Config_5x5_30x30.py
a56598ab10b875488146e6ea315231ffda35f8df
[]
no_license
StevenGreen1/HighEnergyPhotonAnalysis
97a661eaca2efd00472f1969855c724c9d505369
8a82ac57f56aad5bdbe99d4a5afb771592bc1725
refs/heads/master
2021-01-10T14:08:50.550184
2015-10-12T12:43:47
2015-10-12T12:43:47
43,491,318
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
# Calibration config file for testing # Digitisation Constants - ECal CalibrECal = 42.4520342634 # Digitisation Constants ILDCaloDigi - HCal CalibrHCalBarrel = 49.1710071886 CalibrHCalEndcap = 53.4569694414 CalibrHCalOther = 28.2164381239 # Digitisation Constants NewLDCCaloDigi - HCal CalibrHCal = -1 # Digitisation...
[ "sg1sg2sg3@hotmail.co.uk" ]
sg1sg2sg3@hotmail.co.uk
471c7784eb79dd3d5d2f38b2942e7f582d64878f
79e1b7919f34ec0425bb98cc4888e092e94e0273
/Rule Engine/Actor_1.py
c7b5b5d6b747619306fbe0df8525b7a50488dc0b
[]
no_license
hamhochoi/K59_training
099e0c193b94677045bd3622f04440d49a3765fb
845ab3ac64035bf25a72c8dd380cc133092f2e42
refs/heads/master
2021-01-19T08:59:34.938053
2018-10-24T17:46:29
2018-10-24T17:46:29
87,705,721
0
0
null
2018-01-13T16:49:23
2017-04-09T12:09:21
null
UTF-8
Python
false
false
1,945
py
from kombu import Producer, Connection, Consumer, exceptions, Exchange, Queue, uuid from kombu.utils.compat import nested import json import datetime import MySQLdb from Actor_Base import Actor_Base class Actor_1(Actor_Base): def __init__(self, actor_name, actor_id): Actor_Base.__init__(self, actor_name, a...
[ "dothanhwork2017@gmail.com" ]
dothanhwork2017@gmail.com
6a46bd2a94e48162538a19cc54d4f958f1722c3c
f16edd43636be69cf10da4b2585dce6671337945
/excluders/diagonal.py
1b815a2e9a2b4e7b57347c8d016748f3e3dcdfad
[]
no_license
yp000925/aic19-track2-reid
268d1ac96b94c895143624eebd01d2db53da1a09
6d48fd5c44581775187fdb553e92543c3187ab66
refs/heads/master
2020-07-09T12:27:12.387611
2019-08-23T10:08:13
2019-08-23T10:08:13
203,968,624
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
class Excluder(object): def __init__(self, gallery_fids): # Store the gallery data self.gallery_fids = gallery_fids def __call__(self, query_fids): # Only make sure we don't match the exact same image. return self.gallery_fids == query_fids[..., None]
[ "yp000925@outlook.com" ]
yp000925@outlook.com
ab45e27d71a7f1817d483f534fba22dcfde59cf2
9c4be0c7d5890c3e2ee8a3662d2e1dc0db3989e7
/00_笔记/partial.py
e5b68beaca41b01360a5af9d950cea156b36e585
[]
no_license
xyktl/python-study
0916b899897a8078fb2728c020abdcb8b4c2b38d
2c1ce6169489b296ceb66b5f9ab09f7a5097dbde
refs/heads/master
2021-05-23T00:32:55.554806
2020-04-05T04:38:27
2020-04-05T04:38:27
253,156,411
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# -*- coding: utf-8 -*- # 偏函数:固定原来函数的参数,改变某一个参数的默认值 from functools import partial # 用偏函数改进,将默认的转化为10进制 改变 为默认转化为二进制 int2 = partial(int, base=2) # base 代表进制 print(int("2")) print(int2("10000")) def mod(n, m): return n % m # 将第一个参数设置为默认为100 mod1 = partial(mod, 100) print(mod(100, 7)) print(mod1(7))
[ "1635976271@qq.com" ]
1635976271@qq.com
e92e2a2ced27c2669e33ae054db021474edc58fa
0cb970785a746a30f9b44b3e5234157818688197
/Dictionary/updatingdictionary.py
89038835be6009ee469e918f7bb0ce2cd72060c1
[]
no_license
charan2108/pythonprojectsNew
4255bbb81b6cf0d47c51c131ed93a0bb331a669c
b2f273d44937ec576daa0235d0d0326ff5149bf8
refs/heads/main
2023-05-03T16:55:33.242693
2021-05-26T11:18:17
2021-05-26T11:18:17
371,001,254
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
charlie = {1:'a', 2:'b', 3:'c', 4:'d', 5:'6'} print("Old dict is", charlie) # updating dictionary charlie[6] = '7' print("The updated dictionary is", charlie) # case 2 charlie = {1:'a', 2:'b', 3:'c', 4:'d', 5:'6'} print("Old dict is", charlie) # update charlie[3] = '8' print("Updated dict is", charlie)
[ "sumacharan.adabala@gmail.com" ]
sumacharan.adabala@gmail.com
4bffe06590bf5af53206f1c7d7ca5cff6ead7f4d
7debfe476f148e2703cf26e3b0c15f90eff5adb8
/tests/suite.py
4c63da96328f3b31cc32d8e092690715e45b8d06
[]
no_license
Early-Modern-OCR/emop-controller
821767ffe5989ea46f9fd6fce5553a3caf4dc076
aa3884f7c8742f5a3357fb554e86b36ebe0043fb
refs/heads/master
2021-01-10T17:13:03.215121
2016-10-27T16:15:11
2016-10-27T16:15:11
45,821,350
0
4
null
2016-03-29T16:54:06
2015-11-09T07:10:11
Python
UTF-8
Python
false
false
582
py
import unittest import tests.test_emop_payload as test_emop_payload import tests.test_emop_scheduler as test_emop_scheduler import tests.test_emop_settings as test_emop_settings import tests.test_emop_slurm as test_emop_slurm import tests.test_emop_submit as test_emop_submit import tests.test_utilities as test_utiliti...
[ "treydock@tamu.edu" ]
treydock@tamu.edu
27446b7c1fa50b56dc86e6da25745945c4d46d3d
65e31a53b32533878f9ba36af798f4bc333a3562
/contest18A/b.py
d54ef4a45a9fa2ad974d87042a190e30e9a31f3f
[]
no_license
liketheflower/python_coding
8b16f0a6419eadb2b853841cbd20b1c83af0880b
e826eaa51359e6a202362ea8b50b57b3fe89fa9e
refs/heads/master
2021-09-03T18:20:01.270733
2018-01-11T02:28:54
2018-01-11T02:28:54
111,971,349
0
1
null
null
null
null
UTF-8
Python
false
false
811
py
#definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def findFrequentTreeSum(self, root): """ :type root: TreeNode :rtype: List[int] """ def ...
[ "jim.morris.shen@gmail.com" ]
jim.morris.shen@gmail.com
7e67712057b91b38001c9158f13d6cb78fccb589
86fc644c327a8d6ea66fd045d94c7733c22df48c
/scripts/managed_cpe_services/customer/dual_cpe_dual_wan_site/dual_cpe_dual_wan_site_services/cpe_secondary_inet_wan/service_customization.py
505597175b129fcec94894d5dd92b60e4ecc6681
[]
no_license
lucabrasi83/anutacpedeployment
bfe703657fbcf0375c92bcbe7560051817f1a526
96de3a4fd4adbbc0d443620f0c53f397823a1cad
refs/heads/master
2021-09-24T16:44:05.305313
2018-10-12T02:41:18
2018-10-12T02:41:18
95,190,459
0
0
null
null
null
null
UTF-8
Python
false
false
4,562
py
# # This computer program is the confidential information and proprietary trade # secret of Anuta Networks, Inc. Possessions and use of this program must # conform strictly to the license agreement between the user and # Anuta Networks, Inc., and receipt or possession does not convey any rights # to divulge, reproduce,...
[ "sebastien.pouplin@tatacommunications.com" ]
sebastien.pouplin@tatacommunications.com
4c4a6460d335c2b74a4cd816aea200ce4ca0ccc5
ebd6f68d47e192da7f81c528312358cfe8052c8d
/swig/Examples/test-suite/python/argcargvtest_runme.py
b0345746f3a2c4f6f51aa1597f19891e4a5d821f
[ "LicenseRef-scancode-swig", "GPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "Apache-2.0" ]
permissive
inishchith/DeepSpeech
965ad34d69eb4d150ddf996d30d02a1b29c97d25
dcb7c716bc794d7690d96ed40179ed1996968a41
refs/heads/master
2021-01-16T16:16:05.282278
2020-05-19T08:00:33
2020-05-19T08:00:33
243,180,319
1
0
Apache-2.0
2020-02-26T05:54:51
2020-02-26T05:54:50
null
UTF-8
Python
false
false
505
py
from argcargvtest import * largs = ["hi", "hola", "hello"] if mainc(largs) != 3: raise RuntimeError("bad main typemap") targs = ("hi", "hola") if mainv(targs, 1) != "hola": print(mainv(targs, 1)) raise RuntimeError("bad main typemap") targs = ("hi", "hola") if mainv(targs, 1) != "hola": raise Runtime...
[ "inishchith@gmail.com" ]
inishchith@gmail.com
fdc8fcaca32f1c566265a8933485a242890e8f97
6b6e20004b46165595f35b5789e7426d5289ea48
/config_app/config_web.py
bb283c3cf6b3c76534430ec388c88dc388760618
[ "Apache-2.0" ]
permissive
anwarchk/quay
2a83d0ab65aff6a1120fbf3a45dd72f42211633b
23c5120790c619174e7d36784ca5aab7f4eece5c
refs/heads/master
2020-09-12T18:53:21.093606
2019-11-15T19:29:02
2019-11-15T19:29:02
222,517,145
0
0
Apache-2.0
2019-11-18T18:32:35
2019-11-18T18:32:35
null
UTF-8
Python
false
false
260
py
from config_app.c_app import app as application from config_app.config_endpoints.api import api_bp from config_app.config_endpoints.setup_web import setup_web application.register_blueprint(setup_web) application.register_blueprint(api_bp, url_prefix='/api')
[ "jimmy.zelinskie+git@gmail.com" ]
jimmy.zelinskie+git@gmail.com
e984dba7902ebbe46a1619a86bd35bd94a7babf3
b0abca60080d98e58fe3545a7ddd1b30a33f9a8f
/tests/samplerTest.py
3a89b8e40b8a6f6cef8189998406e086f1e8b0f4
[ "MIT" ]
permissive
beefoo/media-tools
33e0da078b67111c88bf60f99c67f761c6aa40ca
0bb39562eded1c66b6acfc8f223a8f349ea64df1
refs/heads/master
2023-02-10T04:12:58.981067
2023-01-29T17:35:55
2023-01-29T17:35:55
150,456,769
19
4
MIT
2022-11-16T19:05:25
2018-09-26T16:28:24
Python
UTF-8
Python
false
false
1,749
py
# -*- coding: utf-8 -*- import argparse import inspect import math import numpy as np import os from pprint import pprint import random import sys # add parent directory to sys path to import relative modules currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.di...
[ "brian@youaremyjoy.org" ]
brian@youaremyjoy.org
7eb0aba203004184438423a41d640a07367875b1
ce56eb24748546ee209737626c5045a67f3b4d56
/pages/urls.py
50ecfec1ba7dec213dde9252997d9b7af6245cc3
[]
no_license
Zarate96/carzone-HZarate
0a3db6b1015920b103875f449bcb046854e0daf6
092710c7283010d4d93da2d0483fba59d9682046
refs/heads/master
2023-07-09T06:38:05.981989
2021-08-05T23:52:04
2021-08-05T23:52:04
346,936,100
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='home'), path('about/', views.about, name='about'), path('services/', views.services, name='services'), path('contact/', views.contact, name='contact'), ]
[ "you@example.com" ]
you@example.com
02a2babd93f8f73f638b246aa7d58020c8fe883e
0a523a851b959983964bf4d30a9c945bc88d9229
/ch19/19.4.py
98fc305de26f81b7df74a727d2adcf05d32ce08c
[]
no_license
alexforcode/py_arcadegames_craven
a5cf0ca40cd8a5718a3f0a7eed9e913ef278b259
fa8313f8b72a7e8aabdd9eb0907375bfec8fed98
refs/heads/master
2021-09-09T23:06:51.219835
2018-03-20T05:59:07
2018-03-20T05:59:07
125,969,094
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
# Factorials # I - no recursion def factorialNorec(n): answer = 1 for i in range(2, n+1): print( i,"*",answer,"=", i*answer) answer *= i return answer print("I can calculate a factorial!") n = int(input("Enter a number: ")) answer = factorialNorec(n) print(answer) # II - with recursion ...
[ "alex.for.code@gmail.com" ]
alex.for.code@gmail.com
4b1ce8ef77264b20393584bb35f5b86a1f58281b
1ad12a71c3d5d2b3810ce03e8bd138c4ffb66eb8
/xlsxwriter/test/comparison/test_utf8_01.py
3ffaa724c6e1f1ba9d60c2139487035bd0a5453e
[ "BSD-2-Clause-Views" ]
permissive
idreamsfy/XlsxWriter
b52929229b16e2ee1eaca0cda9980a5a0aad5769
129044ed821de67895b4562c6b71f90eba5be6b4
refs/heads/master
2021-01-02T20:39:20.415882
2020-02-07T21:07:55
2020-02-07T21:07:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
############################################################################### # _*_ coding: utf-8 # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from __future__ import unicode_literals from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
6952c56285f1e214f00fff54e47344f89aa0551f
f019ca1e4029b4077472087d1b677052583c0392
/contrib/devtools/update-translations.py
8a3434b72407e9dcc5d9e47dfd6b151915394dba
[ "MIT" ]
permissive
mirzaei-ce/core-civilbit
9204dd9c4c3ce04f867105da4e7fa9a56af1f8ba
cab3e53bdc6b04a84f4bc48114efc07865be814a
refs/heads/master
2021-04-26T05:03:32.282526
2017-10-16T15:39:44
2017-10-16T15:39:44
107,148,188
0
0
null
null
null
null
UTF-8
Python
false
false
7,581
py
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the following...
[ "mirzaei@ce.sharif.edu" ]
mirzaei@ce.sharif.edu
db257346a928dc22bf8d176774dea470832a0fdc
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Difference/trend_Lag1Trend/cycle_7/ar_/test_artificial_32_Difference_Lag1Trend_7__20.py
3dbf1d87ddad70a2d569380c3af7f8592ee3ea7a
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
269
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 7, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
62d4000f13337fbd0c23c9195836cbfe4b02995e
6be845bf70a8efaf390da28c811c52b35bf9e475
/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/file/cmd/matchfiletimes/types.py
9bc27bcb6b6f19dd09cb7973e2c073d3b6a09f38
[]
no_license
kyeremalprime/ms
228194910bf2ed314d0492bc423cc687144bb459
47eea098ec735b2173ff0d4e5c493cb8f04e705d
refs/heads/master
2020-12-30T15:54:17.843982
2017-05-14T07:32:01
2017-05-14T07:32:01
91,180,709
2
2
null
null
null
null
UTF-8
Python
false
false
417
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: types.py from types import * MSG_KEY_PARAMS = 65536 MSG_KEY_PARAMS_FLAGS = 65537 MSG_KEY_PARAMS_SRC = 65538 MSG_KEY_PARAMS_DST = 65539 MSG_KEY_PARAMS...
[ "kyeremalprime@gmail.com" ]
kyeremalprime@gmail.com
25879e5da19061ec747539e84b360032f075314c
118984fdbacf5eb71159eb511ccd055987498886
/CH04/EX4.25.py
01faa1f997645843a122d8472e6e27349274dc6e
[]
no_license
6igsm0ke/Introduction-to-Programming-Using-Python-Liang-1st-edtion
321c6256be6ff78adbc8e3ddc73f2f43a51a75ab
159489f3af296f87469ddddf3a1cb232917506b0
refs/heads/master
2023-06-05T20:03:17.951911
2021-06-18T18:04:42
2021-06-18T18:04:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,136
py
# 4.25 (Geometry: intersecting point) Two points on line 1 are given as (x1, y1) and (x2, # y2) and on line 2 as (x3, y3) and (x4, y4), as shown in Figure 4.9a–b. # The intersecting point of the two lines can be found by solving the following linear # equation: # (y1 - y2)x - (x1 - x2)y = (y1 - y2)x1 - (x1 - x2)y1 # (y...
[ "47993441+OmarAlmighty@users.noreply.github.com" ]
47993441+OmarAlmighty@users.noreply.github.com
8f1429661369faf758b61575fd42b5bc86a95d17
3ee0e115fe9c89bdc940ad560f4c9a744fd7ac93
/ax/utils/report/render.py
091d23564b30b0adcc64f41895953198e2e0c78a
[ "MIT" ]
permissive
fatihbaltaci/Ax
002dc54d2302f0f19c446a75f67f320a9564b330
02a75884c9a8639190d2a6fcaa1d8f0eff17e21f
refs/heads/master
2020-06-15T21:34:38.064695
2019-07-05T08:52:24
2019-07-05T08:59:54
195,397,903
1
0
MIT
2019-07-05T11:26:39
2019-07-05T11:26:39
null
UTF-8
Python
false
false
3,066
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os import pkgutil from typing import List import ax.utils.report as report_module from ax.plot.render import _js_requires, _load_css_resource as _load_plot_css_resource from jinja2 import Environment, FunctionLoader ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
48966573b3ccff4d335a81a542df3d35be49b47d
0502750293383c6dae2aaf4013717d9c83f52c62
/exercism/python/archive/acronym/newtest.py
28b2376c25a888e8a7576e9f06dd72c099b2206a
[]
no_license
sebito91/challenges
fcfb680e7fc1abfa9fea9cd5f108c42795da4679
b4f2d3b7f8b7c78f02b67d67d4bcb7fad2b7e284
refs/heads/master
2023-07-08T15:43:42.850679
2023-06-26T19:38:51
2023-06-26T19:38:51
117,160,720
5
0
null
null
null
null
UTF-8
Python
false
false
993
py
""" Module to help convert long names to acronyms """ # -*- coding: utf-8 -*- from __future__ import unicode_literals import re def abbreviate(src): """ function that receives a string into an acronym """ if not src: return None words = (re.split(r'(?u)\W+', src.split(":")[0], flags=re.IGNORECAS...
[ "sebito91@gmail.com" ]
sebito91@gmail.com
a6333accb75c919531bbba0ff26b76dbc8898d8f
20cda6f6b14d9b91e64d43b8261f7832572be85f
/pyschema/SampleEnvironmentData.py
6b9cb8c8def3d9f20e9c86b8326acbb31a55197e
[]
no_license
ess-dmsc/lauschangriff
f9f2bacb7a5483423919fbfc8948e8a56a070800
3735c5f84798efc280e0931bc48129339658f400
refs/heads/master
2021-08-19T13:22:41.702602
2020-04-21T15:13:18
2020-04-21T15:13:18
168,178,331
0
0
null
null
null
null
UTF-8
Python
false
false
5,069
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: import flatbuffers class SampleEnvironmentData(object): __slots__ = ['_tab'] @classmethod def GetRootAsSampleEnvironmentData(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) ...
[ "mark.koennecke@psi.ch" ]
mark.koennecke@psi.ch
926bf017a4c177bae11a69c0714626e0533301a3
f569978afb27e72bf6a88438aa622b8c50cbc61b
/test/test_toutiao_video_statistics.py
be083a0903dbb735003c47d341458dc396a5b60b
[]
no_license
strangebank/swagger-petstore-perl
4834409d6225b8a09b8195128d74a9b10ef1484a
49dfc229e2e897cdb15cbf969121713162154f28
refs/heads/master
2023-01-05T10:21:33.518937
2020-11-05T04:33:16
2020-11-05T04:33:16
310,189,316
1
0
null
null
null
null
UTF-8
Python
false
false
994
py
# coding: utf-8 """ 通过头条视频id批量获取已分享视频数据信息 # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import douyin_open.ToutiaoVideoDataVideoData from models.toutiao_video_statistics import ...
[ "strangebank@gmail.com" ]
strangebank@gmail.com
e5f4cd294d0b7cb0f29b9667034d2467931de8df
719d8aa7a80ed0f491f2d92c3b73f367f925f4a5
/api/recipe/migrations/0001_initial.py
060d5800cad1190bb971a9f2c93c728d1dacf727
[]
no_license
SamuelPerron/food-tracker
a90f204f6d59135c0ff5c9ff236197c305707c27
be30ca816f68cb7d702bb0bc00e5e6846886743f
refs/heads/v1
2022-12-21T08:12:53.386321
2020-09-19T14:01:59
2020-09-19T14:01:59
291,377,165
0
0
null
2020-09-19T14:02:00
2020-08-30T01:22:15
JavaScript
UTF-8
Python
false
false
3,488
py
# Generated by Django 3.1 on 2020-08-30 14:28 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('ingredient', '0006_auto_20200830_1428'), migrations.swappable_dep...
[ "samuelperron@hotmail.fr" ]
samuelperron@hotmail.fr
d7a40c4a589175943aab751eb5cb6bf119427f2e
524d048724ff1092b7968edc183644af63efa775
/scripts/plot-package-degrees.py
5865eb4ea03e438597dc49d38b9f6be63d067dda
[ "MIT" ]
permissive
luispedro/bioconda-paper
6e6ae5f42018078441c420c4e11931e95f8632dd
c3ff827f4aae9f354950b10677615e5419b521df
refs/heads/master
2021-07-25T21:21:19.884750
2017-11-03T15:05:54
2017-11-03T15:05:54
109,258,683
0
0
null
2017-11-02T11:56:22
2017-11-02T11:56:22
null
UTF-8
Python
false
false
450
py
""" Get number of direct dependencies of each package and plot histogram """ import glob import matplotlib.pyplot as plt import seaborn as sns import json import pandas as pd import common plt.figure(figsize=(4,2)) packages = pd.read_table(snakemake.input[0]) deps = packages["deps"] plt.hist(deps, range(0,30), lw...
[ "johannes.koester@tu-dortmund.de" ]
johannes.koester@tu-dortmund.de
35d1bb4b5b74b5e793055bdfbd29789e43bf5335
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/7RrPMoWifqRHPPqj2_9.py
a7f731043b1d7063265ad2269af2856598187c13
[]
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,786
py
""" Traditional safes use a three-wheel locking mechanism, with the safe combination entered using a dial on the door of the safe. The dial is marked with clockwise increments between 0 and 99. The three-number combination is entered by first dialling to the right (clockwise), then to the left (anti- clockwise), and...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
933c04997750820d8729c195d1bfc0561c37e61a
a8b37bd399dd0bad27d3abd386ace85a6b70ef28
/airbyte-integrations/connectors/source-surveymonkey/unit_tests/test_source.py
855f9eb5a67e525e09ddfddb3b9616a6ecb8a1b6
[ "MIT", "LicenseRef-scancode-free-unknown", "Elastic-2.0" ]
permissive
thomas-vl/airbyte
5da2ba9d189ba0b202feb952cadfb550c5050871
258a8eb683634a9f9b7821c9a92d1b70c5389a10
refs/heads/master
2023-09-01T17:49:23.761569
2023-08-25T13:13:11
2023-08-25T13:13:11
327,604,451
1
0
MIT
2021-01-07T12:24:20
2021-01-07T12:24:19
null
UTF-8
Python
false
false
2,731
py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import pytest from source_surveymonkey.source import SourceSurveymonkey source_config = {"start_date": "2021-01-01T00:00:00", "access_token": "something"} new_source_config = { "start_date": "2021-01-01T00:00:00", "origin": "USA", "credentials":...
[ "noreply@github.com" ]
thomas-vl.noreply@github.com
5cdc8e12e948803e9d8734e338616866213517ce
8a166a0ad64efccb6231b2a351a65a54d6e0fa8e
/tests/test_skyFrame.py
b34183b1f99b61905213e7c90176ff6d21c290a4
[]
no_license
frossie-shadow/astshim
6c29d584b5e6522e319f81672eb9512f0f62d8d0
f6b1fd7af3e7147e4266d1bb44b9a8be5df29870
refs/heads/master
2021-01-19T17:50:13.479819
2017-08-03T17:56:29
2017-08-03T17:56:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,611
py
from __future__ import absolute_import, division, print_function import math import unittest from numpy.testing import assert_allclose import astshim from astshim.test import MappingTestCase class TestSkyFrame(MappingTestCase): def test_FrameBasics(self): frame = astshim.SkyFrame() self.assertE...
[ "rowen@uw.edu" ]
rowen@uw.edu
a12121b9dd7ff1a7f27650f58285ab40f1cc24d0
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/88/usersdata/247/57952/submittedfiles/listas.py
8c143189b0bcb439cfc47b950ff8661a182f19d2
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
import math lista=[ ] n=int(input('digite: ')) for i in range(1,n+1,1): valor=float(input('valor ')) lista.append(valor) def maior(lista): maior=lista[0] for i in range(0,len(lista),1): if lista[i]>maior: maior=lista[i] return maior def degrau(lista): b=[ ] for i in range...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
53d1210d03c754588e5ea17f22fe6346f79b5413
d489eadec9d4499ed066223f8e4881f14c3cc777
/tests/data/stubs/stub-su.py
c32c91dee1e3f7b5c062de1c929822f5df70b0ad
[ "BSD-3-Clause" ]
permissive
lumatijev/mitogen
d0121faa8c3aa87a08b09bbe5967d6c0a3ac1263
b610b0c93bbab1bc0fbe86cfcc4f3a56fd2b2c14
refs/heads/master
2020-04-28T15:48:12.177452
2019-03-13T16:59:48
2019-03-13T16:59:48
175,389,282
0
0
BSD-3-Clause
2019-03-13T09:34:01
2019-03-13T09:34:00
null
UTF-8
Python
false
false
420
py
#!/usr/bin/env python import json import os import subprocess import sys os.environ['ORIGINAL_ARGV'] = json.dumps(sys.argv) os.environ['THIS_IS_STUB_SU'] = '1' # This must be a child process and not exec() since Mitogen replaces its stderr # descriptor, causing the last user of the slave PTY to close it, resulting i...
[ "dw@botanicus.net" ]
dw@botanicus.net
b163acd35bcc7f3b75c18a3efeefa528ec1d50c2
521eadbad7f2e9c3a451c8cf2e543703d73f9ffa
/src/core/utils/network_data/data_utils.py
8def2b88d09becdbc284e1326c7beeb2f5e432be
[ "Apache-2.0" ]
permissive
AndyJZhao/IDGL
36f429937424e7bcbac157cf71373bcd8f4052d8
7ef0df82582d5775fde476b621fa592e226c5294
refs/heads/master
2022-11-22T15:29:33.848697
2020-07-26T21:10:47
2020-07-26T21:10:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,526
py
# https://github.com/tkipf/gcn/blob/master/gcn/utils.py import os import sys import numpy as np import pickle as pkl import networkx as nx import scipy.sparse as sp from sklearn.neighbors import kneighbors_graph import torch from ..generic_utils import * from ..constants import VERY_SMALL_NUMBER def parse_index_file...
[ "hugochan2013@gmail.com" ]
hugochan2013@gmail.com
5af27eff3654787ebd5e820efb7c78b3bbbb5993
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/41/usersdata/137/25417/submittedfiles/funcoes.py
0662735dff26b55c6f586040557d908a46dbf399
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
# -*- coding: utf-8 -*- from __future__ import division #escreva suas funcoes aqui def somaColunaA(A): b=[] for j in range (0,A.shape[1],1): b.append(sum(A[:,j])) return b def somaLinhaA(A): b=[] for i in range (0,A.shape[0],1): b.append(sum(A[i,:])) return b def matriz(A,d): ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
3921c03d911247c2858f580bf2491fb0e50311af
7bbbc275ac9e4773a14bdbbe5028dd76e64ecd27
/detector/utils/nms.py
946f7ac66c0d139ab2db5bac21dc3e903b4973f4
[ "MIT" ]
permissive
bearcatt/single-shot-detector
866ecc216788009adfaed66b5dfa927c9212d037
649d55aa84f1c988afd920ed8abc601512405825
refs/heads/master
2020-06-08T13:31:01.341832
2019-06-22T14:08:39
2019-06-22T14:08:39
193,235,835
1
0
MIT
2019-06-22T13:15:54
2019-06-22T13:15:54
null
UTF-8
Python
false
false
4,174
py
import tensorflow as tf from detector.constants import PARALLEL_ITERATIONS from .box_utils import decode def multiclass_non_max_suppression( boxes, scores, score_threshold, iou_threshold, max_boxes_per_class): """Multi-class version of non maximum suppression. It operates independently ...
[ "antoshchenko.b@gmail.com" ]
antoshchenko.b@gmail.com
8c925aeaa6877efadc25054e5fd33fac498fa9d4
7332b77d5747d66b6ca4e9555d044af731e67e73
/Beginner/Chef and the Wildcard Matching.py
8eedbc437f6af98ae1def6ae39ee5a231a33e9e3
[]
no_license
harshitpoddar09/CodeChef-Solutions
54c10f3576fc934b532ecca554c0e9a19d8caf83
dea8e38b212a98c57b591e57c089982863f72532
refs/heads/main
2023-04-28T20:32:15.486422
2021-05-15T04:27:48
2021-05-15T04:27:48
348,275,049
1
1
null
null
null
null
UTF-8
Python
false
false
278
py
# cook your dish here def match(x,y): for i in range(len(x)): if x[i]!='?' and y[i]!='?': if x[i]!=y[i]: return 'No' return 'Yes' t=int(input()) for i in range(t): x=str(input()) y=str(input()) print(match(x,y))
[ "noreply@github.com" ]
harshitpoddar09.noreply@github.com
2501243e83e29f186abcc6e72a712d992b0368ca
2412ab2a7fdefe1d165a6ec63292fdbe965c5131
/parseMirandaOutput.py
af35937d90d1ae2f4ac708dc26f0520b7aa2cf1e
[]
no_license
cfc424/NGS
e7651d9cbd1309821f5251c3ab3c9c7ba9e19352
a7fd0631adc7365d358e49f407e2ebe796163443
refs/heads/master
2023-03-21T14:36:05.877307
2019-11-13T01:09:13
2019-11-13T01:09:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,183
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #from __future__ import division, with_statement ''' Copyright 2013, 陈同 (chentong_biology@163.com). =========================================================== ''' __author__ = 'chentong & ct586[9]' __author_email__ = 'chentong_biology@163.com' #==========================...
[ "chentong_biology@163.com" ]
chentong_biology@163.com
35ca65d32b319a1902f82ea5fdc69ac012a5fa64
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayOverseasOpenIndrpreorderQueryModel.py
2aeaf2a89ea67160cb44b7dcec140e406617b782
[ "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,466
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOverseasOpenIndrpreorderQueryModel(object): def __init__(self): self._pre_order_id = None self._scene_type = None @property def pre_order_id(self): return s...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
12e75b21c5167696970f967adf2a585c7f75cfc6
f72f2bfff534ba2b05f843689b7318650053484c
/python/diveintopython-5.4/py/plural/stage4/plural4.py
836b1ee695aad1359c8d7277dd7ba6366fddf58c
[]
no_license
mutanthost/code
bb7d631c470ae92ef9f7a8eaee2b3524f8de223a
cafe25512f117fe18d212a4af94a1ac90140cfe0
refs/heads/master
2016-09-13T23:35:33.480275
2016-05-24T17:56:49
2016-05-24T17:56:49
58,413,090
0
0
null
null
null
null
UTF-8
Python
false
false
1,625
py
U2FsdGVkX1/wQcHrvenZEOdD/L9i223ooRECcbXHeXEdi/3WmraZt0kQW65jb/At BJ1Vh/boNulSEAHok+VVHJhcPXQ8m8eiJCyBXC0JcpelzaYS9QFe21eR1s6HqeSf hogA3mEtx0Ipypau//gQ2ncLhU1Yumt+fFl33ORfb2Anpyn3bzF8X7/IfkPsCAvT c8IToRU8KyNr3NxAI0O/s+AJsJu5gx/mDHQC8OAUPsimlRjYNblbZXP2qSJROSJZ LrSL86dk+tfLGYnvL1m0067CGg1yw/75c1gSTNmq7kFTkjFn5Wm3hOQXdY9h...
[ "mhuston@teleflora.com" ]
mhuston@teleflora.com
cc509a7a3323d6d8357e7572cd3c6b22e838e5fa
11058e6dfaa0876ee7fac59082ad132f6c6f85a2
/bundle/python-mode/pymode/libs3/rope/base/oi/memorydb.py
e4c3a1c83c73828e3227af514e134146c211ed46
[ "MIT", "Apache-2.0", "LGPL-2.0-or-later", "LGPL-2.1-or-later", "LGPL-3.0-only" ]
permissive
Jenkin0603/myvim
5e0f71b82abacece2cf61d0e2c02903564db140b
01a6751f09962fdb17dfcabbb79ae7be8dac5fad
refs/heads/master
2021-07-04T12:47:29.482867
2015-09-24T13:02:47
2015-09-24T13:02:47
42,576,919
0
1
MIT
2020-10-01T19:10:37
2015-09-16T09:11:46
C#
UTF-8
Python
false
false
2,719
py
from rope.base.oi import objectdb class MemoryDB(objectdb.FileDict): def __init__(self, project, persist=None): self.project = project self._persist = persist self.files = self self._load_files() self.project.data_files.add_write_hook(self.write) def _load_files(self)...
[ "zhouzhj.qmail@qq.com" ]
zhouzhj.qmail@qq.com
2ed33fb2f2a70645bbaf0b35da134ccef8367c27
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_sorcerers.py
7e86af56b2b86706139f9acd6b40f6d30df37d4d
[ "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
230
py
#calss header class _SORCERERS(): def __init__(self,): self.name = "SORCERERS" self.definitions = sorcerer self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['sorcerer']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
81a2b1a258555862ae14320d63b2b862e4d8754b
76e76d6685a989954b6e15beaa67105b26a72d8c
/lshknn/__init__.py
5bee7edf9043f151bda4c884e7114d7cffd8c844
[ "MIT" ]
permissive
LiuChuang0059/lshknn
92c5d3748530c630abe9bfb4721250e4e4cc40bc
6b149b67fd9346151d0f8e00e62c7ae459c6d025
refs/heads/master
2022-03-04T10:16:37.026780
2019-11-14T18:49:20
2019-11-14T18:49:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,366
py
import numpy as np from ._lshknn import knn_from_signature class Lshknn: '''Local sensitive hashing k-nearest neighbors Calculate k-nearest neighbours of vectors in a high dimensional space using binary signatures of random hyperplanes as a coarse grain vector representation. Usage: >>> # M...
[ "fabio.zanini@fastmail.fm" ]
fabio.zanini@fastmail.fm
481bc8133d749e72cf218fb00942759c300b5b8c
31014bf4464a5fae77ff86241ae15cfdd71ccb9e
/gnomics/objects/interaction_objects/protein_protein_domain.py
fc5e1e6fba5b830f084addd124de22279b876232
[ "BSD-3-Clause", "BSD-2-Clause-Views" ]
permissive
izhangcd/Gnomics
14de8f90960f88d3eb2f2a49c94fa3a0f8048a2d
bd0fb4e7be009b2afe1c2667f2890c712ae0ad9d
refs/heads/master
2021-09-09T03:42:40.953105
2018-03-13T16:05:17
2018-03-13T16:05:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,893
py
# # # # # # # IMPORT SOURCES: # # # # Get protein domains from protein. # # PRE-CODE import faulthandler faulthandler.enable() # IMPORTS # Imports for recognizing modules. import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "../../..")) # Import modules. import gnomics.objects...
[ "charles.kronk@gmail.com" ]
charles.kronk@gmail.com
4095e34a365bbe7a4a4f613abe4fe43eacf97995
fde42eaffc246930a26532ece13bab26fcfbfc87
/Ubuntu/i3xrocks/rofication-statusi3blocks.py
89d3cd17936db4bef4b636cda4c39be9ea7752cc
[]
no_license
danieldugas/Vitrified-Code
7d8216d4f670c5fd9b863e577462f5a00dc1c2c9
6deeedaa0bd293ed09222fed50dca0b3392cfa1f
refs/heads/master
2023-08-16T20:01:57.816011
2023-08-16T08:46:23
2023-08-16T08:46:28
57,390,585
1
1
null
null
null
null
UTF-8
Python
false
false
1,159
py
#!/usr/bin/env python3 import os from typing import Union from rofication import RoficationGui, RoficationClient, resources, Resource if __name__ == '__main__': # defaults label_icon: Resource = resources.notify_none label_color: Resource = resources.label_color value_color: Resource = resources.value...
[ "exodaniel@gmail.com" ]
exodaniel@gmail.com
fb279d713acf1f7a4e3452cf41de6a304143f2ff
3fcd2c184abaa9bef5f4a916fbf0e9587da06346
/Concurrent_Programming/multhread/Queue/queue_test1.py
f44c681602a95a975042edc05341aa95bf437806
[]
no_license
chinitacode/Python_Learning
865ff42722e256776ae91d744b779fa476e23f45
49aa02367e3097aca107b70dab43b5f60a67ef9f
refs/heads/master
2020-06-29T01:05:39.331297
2020-03-21T14:29:51
2020-03-21T14:29:51
200,393,997
0
0
null
null
null
null
UTF-8
Python
false
false
2,930
py
import time import queue import threading def worker(i): while True: item = q.get() if item is None: print("线程%s发现了一个None,可以休息了^-^" % i) break # do_work(item)做具体的工作 time.sleep(0.5) print("线程%s将任务<%s>完成了!" % (i, item)) # 做完后发出任务完...
[ "ziyu_zhou_victoria@163.com" ]
ziyu_zhou_victoria@163.com
c272853ba3632f128009140ae20b9240050a5358
25d6b22bbaaa73dc4b591d671eafca69b266bbc9
/leroyparser/items.py
7a58c5ae308007624739b8328d25ee5a04e042bc
[]
no_license
machukhinktato/leroymerlin
009ad08ec246340ad5d59f6d29e7045c74937e45
681ced25d24dd49a7e5824408db151a3f5edf0a7
refs/heads/master
2023-01-18T19:52:17.048216
2020-12-01T06:54:19
2020-12-01T06:54:19
314,791,131
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.loader.processors import TakeFirst from scrapy.loader.processors import MapCompose def convert_to_int(string): integer = int(string.replace(' ', '')) retur...
[ "tarabrinmv@gmail.com" ]
tarabrinmv@gmail.com
f59ea91c20e9ea45d8a0e306f0c21c95c8bca791
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_116/1331.py
693ee102e467841461a58e12ad6d3da38a9df13b
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,286
py
import os def check_game_state(matrix): flag = False for row in xrange(4): player = matrix[row][0] if player == "T": player = matrix[row][1] if player == ".": continue flag = True for col in xrange(4): if matrix[row][col] n...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
5a5762d778c3b4bab5054e14978282396e1ccf3d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03167/s847960212.py
b2bb14f88f8bbfc64fd01bf105c76bfc6505e754
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
import sys sys.setrecursionlimit(10**7) input = sys.stdin.readline h,w = map(int,input().split()) a=[input() for _ in range(h)] mod=10**9+7 dp=[[0]*w for _ in range(h)] dp[0][0]=1 for i in range(h): for j in range(w): if i+1<h and a[i+1][j]=='.': dp[i+1][j]+=dp[i][j]%mod ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f7022d27199c3860953d5ab9b0af21f52f68295a
a4cdb382d1f6e09e5250bb0a0758399d3e9a51af
/pyqtTest/QComboBoxTest/Ui_adduser.py
8dc66122696bec17332c9fcbec6f2afe0a0d7cd3
[]
no_license
lukoou3/pythonTest
051229851b78498eafe514d229b5bd4560640c54
75cce072b0b7af418b540dc12ff8d123d137ba5c
refs/heads/master
2020-04-14T23:28:01.017981
2019-03-20T14:59:07
2019-03-20T14:59:07
164,203,248
0
0
null
null
null
null
UTF-8
Python
false
false
4,002
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Administrator\Desktop\qcombobox2\adduser.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(...
[ "18638489474@163.com" ]
18638489474@163.com
3162d2a3276723ed0e709f75493ad789288948a3
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/KoubeiTradeTicketUsedRefundModel.py
8fc695e1e4d96c2bf6b93b05f4ab440a11061cbd
[ "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,904
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class KoubeiTradeTicketUsedRefundModel(object): def __init__(self): self._request_id = None self._ticket_code = None self._trans_id = None @property def request_id(self...
[ "jiandong.jd@antfin.com" ]
jiandong.jd@antfin.com
f1351490341f3ba865dfb9e5cb9da99e1c8216da
55940b1d627768de8ac11387f60559bbb42047a0
/AlarmPrice.py
8d1d9887e132282a7c634763c23d4d81f9579f1b
[]
no_license
fengmm521/bitmextrade
8920a28d03f406db18d2a5d3fd806b72fb319c2f
400e3fcd6d1b70eaccad01eab6df2b3e8f674877
refs/heads/master
2021-05-03T04:26:10.993003
2018-05-26T13:17:22
2018-05-26T13:17:22
120,615,689
7
1
null
null
null
null
UTF-8
Python
false
false
4,879
py
#!/usr/bin/python # -*- coding: utf-8 -*- # encoding: utf-8 #客户端调用,用于查看API返回结果 import threading import sys import os import time class WorkerThread(threading.Thread): """ This just simulates some long-running task that periodically sends a message to the GUI thread. """ def __init__(self,ws,priceA...
[ "fengmm521@gmail.com" ]
fengmm521@gmail.com
7a818c0e0fa279b08ed406d5f91993c5710fbc81
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/29/usersdata/86/9961/submittedfiles/atividade.py
c0da279f3f14d72af2e71942f0140acdc1e7321e
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
# -*- coding: utf-8 -*- from __future__ import division import math n = int(input('n:')) cont = 1 while n//10!=0: n=n/10 cont=cont+1 print(cont)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
39bdf35c201d45e1a79f0670fff3a43c434d8f05
db82ec070fd356ea5a5aebd5ada39c7fe58a2b38
/知识/课程代码/appium课堂代码/samples/lesson4/test_swipe.py
9fb3f1d0b5a7e79f5aad841490823a60b8a7ab20
[]
no_license
peng211217610/Python
8d7217af06262fda2133e50c634eac0148e2ace5
e65889e87aa51e1cb94601d3470e3906ad9e2d0a
refs/heads/master
2023-08-22T16:55:51.592534
2023-08-10T09:43:22
2023-08-10T09:43:22
379,676,153
0
1
null
null
null
null
UTF-8
Python
false
false
1,659
py
# coding=utf8 from appium import webdriver import time import traceback desired_caps = {} desired_caps['platformName'] = 'Android' #测试平台 desired_caps['platformVersion'] = '8' #平台版本,不能写错 desired_caps['deviceName'] = 'test' #设备名称,多设备时需区分 # desired_caps['app'] = r'd:\apk\HiSpace.apk' #app 文件 名,指定了要安装的app 在电脑上的路径 ...
[ "peng211217610@163.com" ]
peng211217610@163.com
0270b9336d3dc18bc7148d2ca04307d911f6a913
53ccc4f5198d10102c8032e83f9af25244b179cf
/SoftUni Lessons/Python Development/Python Basics April 2019/Lessons and Problems/10 - For Loop/07. Vowels Sum .py
db6f7c1b6e4be8ea5eaa8ca1a5bc726aded0f3a3
[]
no_license
SimeonTsvetanov/Coding-Lessons
aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d
8f70e54b5f95911d0bdbfda7d03940cb824dcd68
refs/heads/master
2023-06-09T21:29:17.790775
2023-05-24T22:58:48
2023-05-24T22:58:48
221,786,441
13
6
null
null
null
null
UTF-8
Python
false
false
261
py
word = input() total = 0 for i in word: if i == "a": total += 1 elif i == "e": total += 2 elif i == "i": total += 3 elif i == "o": total += 4 elif i == "u": total += 5 print(total)
[ "noreply@github.com" ]
SimeonTsvetanov.noreply@github.com
1f8229e70c66c50295adc2baa347b773e9ec2781
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_dawned.py
e1a2fa8e46d8a51eed8bb17a997d3430ca3a5e22
[ "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
226
py
from xai.brain.wordbase.nouns._dawn import _DAWN #calss header class _DAWNED(_DAWN, ): def __init__(self,): _DAWN.__init__(self) self.name = "DAWNED" self.specie = 'nouns' self.basic = "dawn" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
1dcdb78ad1cfb08a96cb5c8fe9aadb578f12e229
a83494de379ae98dd822b5d2ca92889d39ea618f
/datasets.py
af76c7cbf7b2eda73f967f4140870337cdec4dfc
[]
no_license
gpleiss/limits_of_large_width
7c84483e9691d48d7ea2bca35614edc3cd0f3544
6eed0535c14de39045e293b66a2325d91dcd8037
refs/heads/main
2023-08-27T06:36:00.092129
2021-11-08T23:25:04
2021-11-08T23:25:07
417,913,435
2
1
null
null
null
null
UTF-8
Python
false
false
5,494
py
import logging import torch import os from scipy.io import loadmat from sklearn.impute import SimpleImputer from torchvision.datasets import MNIST, CIFAR10 from math import ceil, floor import numpy as np import pandas as pd def set_seed(seed): torch.manual_seed(seed) if torch.cuda.is_available(): torc...
[ "gpleiss@gmail.com" ]
gpleiss@gmail.com
36ebd5b6a53dd3613a338a0182a6a2cddc732f4a
c0c8aeb5aaf08925d8c9e1d660b02c89cbc7ad71
/Algorithms/Medium/229. Majority Element II/answer.py
bc800279d916760c846c754349285bd09bdb7261
[ "Apache-2.0" ]
permissive
kenwoov/PlayLeetCode
b2fdc43d799c37683a9efdc31c4df159cf553bf5
4012a2f0a099a502df1e5df2e39faa75fe6463e8
refs/heads/master
2022-12-17T05:54:22.775972
2020-09-26T14:08:43
2020-09-26T14:08:43
214,839,611
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
from typing import List class Solution: def majorityElement(self, nums: List[int]) -> List[int]: res = [] a = b = count1 = count2 = 0 for n in nums: if n == a: count1 += 1 elif n == b: count2 += 1 elif count1 == 0: ...
[ "kenwoov@outlook.com" ]
kenwoov@outlook.com
8650fb59feb7a871ab366039bf92298feb1a5e0b
43fd8b12dc1b6a2fc7cf4d9b8a80d3f1ae0fac66
/Spider/python2爬取百度百科/html_downloader.py
69044f6e356df4b1aac258fbd3678cf93ec55583
[]
no_license
gxiang666/python_file
e707f829b2c35e6126bea79e299333faabe76b19
2ee0f52d53892d193dc83c10564f7326e0bad0da
refs/heads/master
2022-12-07T04:16:29.166707
2019-10-25T02:59:26
2019-10-25T02:59:26
139,252,161
1
0
null
2022-11-22T02:38:40
2018-06-30T13:35:14
Python
UTF-8
Python
false
false
282
py
# _*_coding:utf-8_*_ import urllib2 class HtmlDownloader(object): def download(self, url): if url is None: return None response = urllib2.urlopen(url) if response.getcode() != 200: return None return response.read()
[ "1528357474@qq.com" ]
1528357474@qq.com
03d96c32202d6b7349e2dc7107294609327e0f88
bcb367fb21bf9ce85e00ad38eab21d3fdbff5c32
/project/migrations/0001_initial.py
7055529cb67ba27c08fceb77a8c6de6ca75e37e6
[]
no_license
eduardostalinho/djangorestframeworkcrashcourse
0182e0171ecc576b60407699799b84567a1b9ac5
4658953b4d1bd24fe208c13091210fd142a13b0b
refs/heads/master
2021-01-10T12:30:50.814445
2016-02-01T12:19:14
2016-02-01T12:19:14
50,837,613
0
0
null
null
null
null
UTF-8
Python
false
false
1,841
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-30 13:41 from __future__ import unicode_literals from django.conf import settings import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True ...
[ "eduardooc.86@gmail.com" ]
eduardooc.86@gmail.com
631c6dc7c25b44d9ea036a8b1bb13d4027d1bd82
0c110eb32f2eaea5c65d40bda846ddc05757ced6
/scripts/mastersort/scripts_dir/p7659_run1M5.py
5fb03cd149feb6b76f15cf682d3f59d297bf0b04
[]
no_license
nyspisoccog/ks_scripts
792148a288d1a9d808e397c1d2e93deda2580ff4
744b5a9dfa0f958062fc66e0331613faaaee5419
refs/heads/master
2021-01-18T14:22:25.291331
2018-10-15T13:08:24
2018-10-15T13:08:24
46,814,408
0
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
from __future__ import with_statement import os, csv, shutil,tarfile, uf, dcm_ops dest_root = '/ifs/scratch/pimri/soccog/test_working' dst_path_lst = ['7659', 'run1M5'] uf.buildtree(dest_root, dst_path_lst) uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3240/E3240_e1826369/s1864693_5610_1M5_s...
[ "katherine@Katherines-MacBook-Pro.local" ]
katherine@Katherines-MacBook-Pro.local
2780bc58af3cd99654fe2a7b0e3c5c302a631902
25b81256057c9a2de014ab511e04703dc617f050
/lib_cinci/sklearn_evaluation/input_utils.py
50e2691736f5cb5a2a8cb14a636f1a7be75e614e
[ "MIT" ]
permissive
conorhenley/cincinnati
7b9b2fc6d13e49ad5e95a557cd79b28bd17f0565
5ca86a8a31099365188969493e0dd369b4faefc0
refs/heads/master
2021-01-13T06:50:18.403686
2016-05-26T20:21:12
2016-05-26T20:21:12
64,249,902
1
0
null
2016-07-26T19:51:03
2016-07-26T19:51:03
null
UTF-8
Python
false
false
1,062
py
#Functions with input utilities #verify format, convert #Check format #1 columns - could be binary #2 columns - raise exception (not a valid format) #3 columns - should be binary def transform_target_variable(y): ''' 1. Determines y format (binary, single-column or unknown) 2. If format is not correct, raises e...
[ "edu.blancas@gmail.com" ]
edu.blancas@gmail.com
3e88faf7d40500bb47573e4446e74ad1d6a63a7b
fd3843eaf0ba0b175264a9cb22c7579feb2cf3a0
/tests/call-information/test_get_base_gas_price.py
939984e295ee17f0eaf44a877a8c5c499074a99e
[]
no_license
skydogch/ethereum-alarm-clock
6f19cccea4d5f7d0c50bb59c2be049a3ab6cdce1
806ea83df9411ed7cb042b3f937df48d37fdf5e1
refs/heads/master
2021-01-18T12:31:42.427424
2015-09-25T04:59:45
2015-09-25T04:59:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
878
py
from populus.contracts import get_max_gas from populus.utils import wait_for_transaction deploy_max_wait = 15 deploy_max_first_block_wait = 180 deploy_wait_for_block = 1 geth_max_wait = 45 def test_getting_base_gas_used(geth_node, rpc_client, deployed_contracts): alarm = deployed_contracts.Alarm client_cont...
[ "pipermerriam@gmail.com" ]
pipermerriam@gmail.com
6cc78a9efe8ebc79714868dcc434812748cb3672
e6e5141787917abdb07308f832a36a467cc664f6
/source/dbAutomation/checkDbDictionary/scriptTest/testOpenForm.py
81c5f442aabdca03d0177391ae1160bcc21c4792
[]
no_license
temp9999gi/projectautomation
a34ef13dc371c018bbb5808e0d8dec285e396dc9
4e1f3eed5fb481956d045019034d5fb4bd5828dd
refs/heads/master
2020-05-17T10:58:45.758691
2007-08-21T14:36:14
2007-08-21T14:36:14
33,873,113
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
# -*- coding: utf-8 -*- from win32com.client import Dispatch import pythoncom from CommonUtil import * #from Constants import * ComUtil = CommonUtil() #import win32com.client #a=win32com.client.Dispatch("access.application.8") #self.xl = Dispatch("Excel.Application") try: a=Dispatch("Access.Applicatio...
[ "kusung25@40af2166-402a-0410-87ae-1d88bcb22c19" ]
kusung25@40af2166-402a-0410-87ae-1d88bcb22c19
0ae1fe9c9c122eb57ae2b092f97adacc657dc97b
fb9371054b6ce236c6b202cc51c6bc98a3483060
/python_project/project/alarm_system/server/core/serialize.py
c19340c5383f9075822a65245faa5990dfe51a3c
[]
no_license
skymoonfp/python_learning
621d5e72c5b356fd507e4a00c463ea8d565588fb
1e8340303809d8c7c3af3201084b158c1784f22e
refs/heads/master
2020-06-04T10:07:27.009212
2019-06-19T13:52:44
2019-06-19T13:52:44
191,978,868
0
0
null
null
null
null
UTF-8
Python
false
false
3,816
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ ************************** 文件: serialize.py IDE: PyCharm 创建时间: 2019/5/30 10:19 @author: skymoon """ import pickle # import global_settings import time from server.config import hosts from server.core.redis_helper import RedisHelper def host_config_serial...
[ "954918@qq.com" ]
954918@qq.com
fe46b5d7f56053c721d40e24392d82c303c2d8c4
3034cb06289f747066571c4ab54ca81996c22319
/module_utils/RubrikLib/rubrik_lib/models/windows_cluster_detail.py
600806c33a46f068d474389db35525dffe441dd2
[]
no_license
tarunactivity/ansible-rubrik
b2f644805f13a553bd0635e6ddc230257d125ef7
5d978c23902fd32d92cc90c75e48e5fe2209f8e0
refs/heads/master
2023-04-29T04:25:26.834701
2023-04-20T21:58:47
2023-04-20T21:58:47
116,251,368
0
0
null
2018-01-04T11:18:38
2018-01-04T11:18:37
null
UTF-8
Python
false
false
1,739
py
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
[ "tarun.activity+github@gmail.com" ]
tarun.activity+github@gmail.com
ab2b9fd823ce1f373cef087c2e932b3397e40ebc
b1b6a3828ce26800b50884967eb475eaad70972c
/schoolpro/wsgi.py
f98f5990261556b46521ddc8ae8cb2093dac7f13
[]
no_license
AkshaySRajguru/students
3bfc83d240632355c8184668e290b6394079e585
40b549c12210939bf424aa92f68f5f42322e9784
refs/heads/main
2023-09-03T12:19:51.502724
2021-11-15T19:51:18
2021-11-15T19:51:18
427,950,047
0
0
null
2021-11-14T14:25:00
2021-11-14T14:25:00
null
UTF-8
Python
false
false
395
py
""" WSGI config for schoolpro 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "shivamrohillaa@gmail.com" ]
shivamrohillaa@gmail.com
649adb7f04efcc81edcd4d200e2ff889756dbac7
c7d3d0e9597f5ddcdbe5ee5930ad5418b655b12b
/Python/remove-duplicates-from-sorted-array.py
8b14b10c2e74fbb2a072835c87afdb86c1769081
[]
no_license
Eleveil/leetcode
eb43c67f7da0c9bc145ee886f63fc685e40fe1b5
35ac047ea9d4b24460ef5b2d8486d79621a788e9
refs/heads/master
2020-09-03T09:28:29.793603
2019-09-27T07:20:11
2019-09-27T07:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,764
py
''' Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. Example 1: Given nums = [1,1,2], Your function should return len...
[ "1215470124@qq.com" ]
1215470124@qq.com
76153762a499b547d176483ffa23df0c91099286
c689a2d03b6a68c303953a0c80fa56214dd37689
/server/handler/GameHandler.py
957c51f4772800baa0a2a7e82f35934a0dcfd50a
[ "Apache-2.0" ]
permissive
xiaojieluo/dove-admin
8d13ad7a454c8fef54e5499557f8d4f13a941976
09e1c7c0e8b40cf0c677a867615b066805fb3f5d
refs/heads/master
2022-12-09T20:41:21.023609
2017-07-22T15:52:38
2017-07-22T15:52:38
96,974,836
1
0
Apache-2.0
2022-12-07T23:58:00
2017-07-12T06:49:13
JavaScript
UTF-8
Python
false
false
1,060
py
from handler.APIHandler import APIHandler from sanic.response import json from web import log from model import Game from settings import api_settings class index(APIHandler): async def get(self, request): log.info(request.args) # args = request.args # if args.get('pages', None) is not ...
[ "xiaojieluoff@gmail.com" ]
xiaojieluoff@gmail.com
6a3dce93a26a63c3cc0ee590c63ab8687d15dc0d
c818eafff8fb9cfb052e9c016aa7de67de246f21
/sales/migrations/0037_customerdeposit.py
62ddc5d5f5dd2ab44fa277ad2462cdd651e65685
[]
no_license
mugagambi/mgh-server
a4275b07243f476db9d63e568c8b9331190b75f0
da966882bd695df606622ab816cd93fab1d53773
refs/heads/master
2021-10-22T05:52:15.354561
2019-03-08T11:50:19
2019-03-08T11:50:19
120,087,420
1
0
null
null
null
null
UTF-8
Python
false
false
1,201
py
# Generated by Django 2.0.3 on 2018-04-25 20:53 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('sales', '0036_auto_20180425_2342'), ] operations = [ migrations.CreateModel( ...
[ "mugagambi@gmail.com" ]
mugagambi@gmail.com
febfdac4d70b47bf324bf728ffd89ddb288a1cb2
27aaadf435779c29012233cb1dacf27bd9dd0d0f
/arms-20210519/setup.py
3545111bdde5ce4edafb0a4cba2a41e7f1f25ddf
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-python-sdk
afadedb09db5ba6c2bc6b046732b2a6dc215f004
e02f34e07a7f05e898a492c212598a348d903739
refs/heads/master
2023-08-22T20:26:44.695288
2023-08-22T12:27:39
2023-08-22T12:27:39
288,972,087
43
29
null
2022-09-26T09:21:19
2020-08-20T10:08:11
Python
UTF-8
Python
false
false
2,651
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
9b210b44cf6d20e480ff3b93beafcec63f1e0af0
467f7f01de1a7995e4a9fe97ec880edb9e64af3c
/app_main/web_sliders/admin.py
3facba23dfb25ca62dd4c8e9f9fb488d1ff60086
[]
no_license
gfcarbonell/app_main
00f0fd53b883d7a119852b7a282e22612ac0593c
0cdee47c717078f9e78a687a1e0da8f4304c7f02
refs/heads/master
2020-06-17T22:24:09.399604
2017-02-15T23:23:20
2017-02-15T23:23:20
74,966,359
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
# -*- encoding: utf-8 -*- from django.contrib import admin from .models import WebSlider from infos_systems.admin import InfoSystemAdmin @admin.register(WebSlider) class WebSliderAdmin(InfoSystemAdmin, admin.ModelAdmin): list_display = ['get_name', 'is_selected', 'position'] + [ 'slug', 'registration...
[ "r.gian.f.carbonell.s@gmail" ]
r.gian.f.carbonell.s@gmail
4e674ae5d8a6381bc63d298739a6a7fd00e4e4b3
b1b027f19916db64a19332f9770e14fd97077202
/examples/adwords/adwords_appengine_demo/views/init_view.py
5a73b0e02ff7e4d336ddb114226224eec23a48e3
[ "Apache-2.0" ]
permissive
josephtyler/googleads-python-lib
f563423cf5e106c28ca2fbc5b65bde06ecb9b383
90ff7ff9097d5ccae3a5ee652347b71ff53a7b29
refs/heads/master
2020-12-25T19:27:20.609864
2015-10-01T18:17:50
2015-10-01T18:17:50
43,512,777
0
0
null
2015-10-01T18:16:39
2015-10-01T18:16:38
null
UTF-8
Python
false
false
1,255
py
#!/usr/bin/python # # Copyright 2014 Google Inc. 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 b...
[ "msaniscalchi@google.com" ]
msaniscalchi@google.com
09de634c006899a0c972fac0a77c6b3fb3ede327
19e9e1d5708486eee93da1568426fdefb70cfcd0
/homework07/djangorest/todolist/models.py
c316e341aaa280000e6400010c183ba2bdb69991
[]
no_license
Jumas-Cola/pybook-assignments
d11d1ca62e833b2466b08d0a5950b5a7db442fb6
600c1ccee29fef31c9e6b1d4368231647b0f5282
refs/heads/master
2020-04-05T08:06:58.828614
2019-08-15T11:43:48
2019-08-15T11:43:48
156,701,626
0
0
null
2018-11-08T12:11:37
2018-11-08T12:11:37
null
UTF-8
Python
false
false
889
py
from django.db import models class Tasklist(models.Model): name = models.CharField(max_length=200, default=None) def __str__(self): return "{}".format(self.name) class Task(models.Model): name = models.CharField(max_length=200, blank=True) description = models.TextField(max_length=1000, bla...
[ "kbbyfl91@gmail.com" ]
kbbyfl91@gmail.com
c14e1175704e614fade939e260ba8f12d4a19128
1bca4fc0734aa41bb1c6da461ec3b84ff3dd99bc
/test/functional/walletbackup.py
2472dbe5795c5744f2823bd429117f76d2089de0
[ "MIT" ]
permissive
wolfoxonly/qqc
12f892c9030c5232d403b609decf5b297cd8ceaf
807e67ba65b555ab38a655ae4823fa9af2ae3bc4
refs/heads/master
2020-03-10T20:46:31.603204
2018-04-15T14:33:17
2018-04-15T14:33:17
129,576,997
0
0
null
null
null
null
UTF-8
Python
false
false
7,346
py
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The QQcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet backup features. Test case is: 4 nodes. 1 2 and 3 send transactions between each other,...
[ "OFIChain@163.com" ]
OFIChain@163.com
2df75a15f025ae1750eaa44c6457d06693ea25c1
0db97db08743783019efe022190f409d22ff95bd
/aliyun/api/rest/Rds20140815AllocateInstancePublicConnectionRequest.py
f7d0ca8fc2d1d0b64ee5351d83f6955f0d5a465e
[ "Apache-2.0" ]
permissive
snowyxx/aliyun-python-demo
8052e2a165f1b869affe632dda484d6ca203bd9b
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
refs/heads/master
2021-01-10T03:37:31.657793
2016-01-21T02:03:14
2016-01-21T02:03:14
49,921,095
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
''' Created by auto_sdk on 2015.08.04 ''' from aliyun.api.base import RestApi class Rds20140815AllocateInstancePublicConnectionRequest(RestApi): def __init__(self,domain='rds.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.ConnectionStringPrefix = None self.DBInstanceId = None self.Po...
[ "snowyxx@126.com" ]
snowyxx@126.com
c64b3869eed8c804b83df3b2f560016ad3ea049c
cd77df7e0adf69f78cd86e0b09ffeba7acd7e1ba
/utilspy/obsolete_2011_1107/TRAPFREQ_ernie1.py
c85e5a00ea412583e7ccd882c515c3d2c29bb0de
[]
no_license
huletlab/apparatus3-seq
963b6ded59f53ae6ad714569559fe6f2cd08b610
3520f243c1d6d47dcf126cd4aa9e0f6cdaf2fb9a
refs/heads/master
2021-01-25T04:53:00.095687
2014-02-21T04:42:41
2014-02-21T04:42:41
3,621,818
1
1
null
null
null
null
UTF-8
Python
false
false
897
py
""" Create a bunch of TRAPFREQ ramps in advance to minimize sequence compilation time during a Vary Param """ import sys, math sys.path.append('L:/software/apparatus3/seq/utilspy') sys.path.append('L:/software/apparatus3/seq/seqspy') sys.path.append('L:/software/apparatus3/convert') import wfm, numpy ...
[ "pmd323@gmail.com" ]
pmd323@gmail.com
5ca16650fd95e5f97edef610f1a96da74daf59be
fd3127c5d7eb784d9500fc4a1e666b8a9a357034
/associate/tests.py
baf2657d72c3f558cf4c0b03c585257e6fc74da6
[]
no_license
NedelkoA/device-activity
f041dd5bb7c34e11cd0a69019c6072ef1333181f
eaf3741b95ae292455d608bbca46ff8bab5f92ff
refs/heads/master
2020-03-28T03:54:51.346449
2018-09-21T13:51:35
2018-09-21T13:51:35
147,680,742
0
0
null
null
null
null
UTF-8
Python
false
false
3,978
py
from django.test import TestCase from django.contrib.auth.models import User from django.shortcuts import reverse from rest_framework.test import APITestCase from rest_framework import status from .models import Device, Activity class ApiTestCase(APITestCase): def setUp(self): self.device = { ...
[ "nedartem@mail.ru" ]
nedartem@mail.ru
eb3b48fbedf5e88c2c07fc8063788a85a9094346
f12770add2dd48d2262612fcb1aaecc4a714b4fb
/django/remoteomd-old/remoteomddata/views.py
030dc21e0025b6a9206eed0701796ecfdfe9a3bd
[]
no_license
github188/vending
3558666b57b37e843e72d194d80f6a8ef5dbc7a4
ce3e2f1fcbb4d132f7b01a99400d917d7ca174a6
refs/heads/master
2021-06-16T09:54:09.214694
2017-01-28T01:31:30
2017-01-28T01:31:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,263
py
from django.contrib.auth.decorators import login_required from django.shortcuts import render @login_required def index(request): hrefDict = [ {"name":"ADMIN", "href":"/admin_omd"}, {"name":"API", "href":"/api/list/"}] context = { "hrefDict":hrefDict, } return r...
[ "jeson.peng@gmail.com" ]
jeson.peng@gmail.com
d48abe5f9c9396fca38f1d6e54a66c37dd975dbd
348dde459756e4375aa6ffc25652f016fa6f2691
/people/match_to_openstates.py
a560910694c1ce96b491d4f30ae268615c465f70
[]
no_license
openstates/maintenance-scripts
d203722fc79baffa18c603672ead52f0ac1236b0
8f7bdbe7b6bbfebbf84af058251cbad9bf1089f8
refs/heads/main
2021-06-24T07:55:37.884611
2021-05-17T19:42:45
2021-05-17T19:42:45
223,991,055
0
1
null
null
null
null
UTF-8
Python
false
false
4,611
py
#!/usr/bin/env python import csv import os import glob from collections import defaultdict import click from ..utils import get_data_dir, load_yaml, role_is_active, get_all_abbreviations, dump_obj def get_chamber_and_district(person): for role in person["roles"]: if role_is_active(role): retu...
[ "dev@jamesturk.net" ]
dev@jamesturk.net
46ceb286370d0d8420f9b15cd0b8433cdb31eac2
3b60e6f4bbc011003ac4929f01eb7409918deb79
/Analysis_v1/Simulation/Submitted/CP2ADDfragments/ADDGravToGG_NegInt-0_LambdaT-13000_M-1000To2000_TuneCP2_13TeV-pythia8_cfi.py
6bfc9dbe8682f941f3053441b1408007bc1721a1
[]
no_license
uzzielperez/Analyses
d1a64a4e8730325c94e2bc8461544837be8a179d
1d66fa94763d7847011ea551ee872936c4c401be
refs/heads/master
2023-02-09T04:54:01.854209
2020-09-07T14:57:54
2020-09-07T14:57:54
120,850,137
0
0
null
2020-06-17T16:48:16
2018-02-09T03:14:04
C++
UTF-8
Python
false
false
1,252
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP2Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", maxEventsToPrint = cms.untracked.int32(1), pythiaPylistVerbosity = cms.untracked....
[ "uzzie.perez@cern.ch" ]
uzzie.perez@cern.ch
3d8c5722824566a69e0abbc76de328c5919fa2ac
4cef505611a04383310ce6556fac7acb02dbc8a1
/Showtime_meta_data_validation/common_lib/validation_lib/meta_data_validation.py
654b67f3a6dbae49449a3ecb1065ecfbdcfde3fd
[]
no_license
Sayan8981/Projectx
9d8727eec144da35f2acffc787f3c769beef02e1
bcf93fe885e4cd68bb2c30c408a3b03e785965c3
refs/heads/master
2022-03-26T18:13:02.831185
2020-01-16T06:52:31
2020-01-16T06:52:31
187,637,492
0
0
null
null
null
null
UTF-8
Python
false
false
6,507
py
from fuzzywuzzy import fuzz import os import sys """ source_details={"source_credits":vudu_credits,"source_credit_present":vudu_credit_present,"source_title":vudu_title,"source_description":vudu_description, "source_genres":vudu_genres,"source_alternate_titles":vudu_alternate_titles,"source_release_year":vudu_release_...
[ "noreply@github.com" ]
Sayan8981.noreply@github.com
0b40bc6d4810e891222388d6bbe9685da2fc2ca4
4faeec31a746be194eb8fc803d7ff07d71716d5f
/ka_hr_payroll/models/hr_status.py
f5e5532cde610ceb01e339a5958ecefcf47318d0
[]
no_license
CakJuice/odoo-sample-code
d2762fdfe29959c9edec2627c4eff2edbf48c9c3
97273e0d30ae568a4ddda0d7c5691319d6388a26
refs/heads/master
2020-03-28T07:54:56.210634
2018-09-08T13:08:54
2018-09-08T13:08:54
147,932,949
0
0
null
null
null
null
UTF-8
Python
false
false
2,343
py
# -*- coding: utf-8 -*- """Author: @CakJuice <hd.brandoz@gmail.com> Website: https://cakjuice.com """ from odoo import models, fields, api class KaHrPayrollStatus(models.Model): """Data status of employee _inherit = 'hr.status' """ _inherit = 'hr.status' is_default_payroll = fields.Boolean...
[ "hd.brandoz@gmail.com" ]
hd.brandoz@gmail.com
3c420e671d4e18393c64ebef334aa76e3a4dc374
2d8da5cacd21dd425688d67e1a92faa50aefc6bc
/intersection-of-two-arrays.py
ff1d026306896b82c85b001a6d43ee815836e31d
[]
no_license
stella-shen/Leetcode
970857edb74ae3ccf4bcce0c40e972ab8bcc5348
16ad99a6511543f0286559c483206c43ed655ddd
refs/heads/master
2021-01-19T02:48:49.918054
2018-11-29T10:36:43
2018-11-29T10:36:43
47,523,042
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
class Solution(object): def intersection(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ return list(set(nums1) & set(nums2)) if __name__ == '__main__': nums1 = [1, 2, 2, 1] nums2 = [2, 2] sol = Solution() ...
[ "szsxt818@gmail.com" ]
szsxt818@gmail.com
dbb55007f36d09ba7ab6a06c1d02a2944c565e32
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R3/benchmark/startCirq120.py
920c813e7e1d059bcf923c1f7bae3072e9ffc62e
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,852
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=11 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
09602ff253a82b063a9b042855b9182ddf3259c1
783ec4d842cf7a9bc537783f02f74869458b1f26
/800-1000/875_爱吃香蕉的珂珂.py
bb9e9981d56c2c4a5384c5c6515adfa7cfeacf90
[]
no_license
ZhiyuSun/leetcode-practice
ba676fec5b9906ee6e3e4c52883f36992c03544d
79d4e3946309f6e37e18c1958243d63faf99861c
refs/heads/master
2021-08-06T01:51:58.884707
2021-07-07T02:38:00
2021-07-07T02:38:00
220,183,174
6
0
null
null
null
null
UTF-8
Python
false
false
970
py
""" """ # 2021.03.08 直奔题解,但不得不说,这道题很巧妙 # 精华1:使用二分查找 # 精华2:(p-1)//k+1,找到一个堆里面可以吃几次 class Solution: def minEatingSpeed(self, piles, H): # Can Koko eat all bananas in H hours with eating speed K? def possible(K): return sum((p-1) // K + 1 for p in piles) <= H lo, hi = 1, max(pile...
[ "zcgyxlgy@sina.com" ]
zcgyxlgy@sina.com
1585db9257538bebe2c458f431410490c1907a51
ea6401d08e683192e61f47b85c921262e430f67b
/env/mvp/srcBAK/mvp_landing/urls.py
6a3891ad0f8e0687e0247f858b9c4a61d3a9f600
[]
no_license
kevinelong/code-guild
32df96d536ca7a27b97195f1ab57f079eb3f30fc
ab85791f1708e9f66fb84f5ce976cca903fa1e0e
refs/heads/master
2021-01-22T10:07:53.328299
2014-10-03T17:05:18
2014-10-03T17:05:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
from django.conf.urls import patterns, include, url from django.conf import settings from django.conf.urls.static import static from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^blog/', include('blog.urls')), url(r'^$', 'signups.views.home', name='home')...
[ "gdholly@gmail.com" ]
gdholly@gmail.com
97cafcf9a9be8877bc98aec450bf49dd7f02740a
2e7fda1edd25fce67f2809cbee54637bc8920b23
/experiments/2D_car/car_env.py
8a8ed2be67e37d93053ca0de277566dcfadda10b
[ "MIT" ]
permissive
Utschie/Reinforcement-learning-with-tensorflow
2aec8603617c638b2ef87cc87de978452a431d6a
55f9dc1a1fe15296bca6d4b68283434272a465bb
refs/heads/master
2022-12-28T05:38:03.705941
2020-10-11T04:06:35
2020-10-11T04:06:35
281,174,612
1
0
MIT
2020-07-20T16:51:02
2020-07-20T16:51:01
null
UTF-8
Python
false
false
7,953
py
""" Environment for 2D car driving. You can customize this script in a way you want. View more on [莫烦Python] : https://morvanzhou.github.io/tutorials/ Requirement: pyglet >= 1.2.4 numpy >= 1.12.1 """ import numpy as np import pyglet pyglet.clock.set_fps_limit(10000) class CarEnv(object): n_sensor = 5 act...
[ "mz@email.com" ]
mz@email.com
9f5cb5a0ead834218b3ba562a371ad01ea85071c
6b943681cd07ae7c935a9c4f0df216a370e44941
/autocomplete.py
cd7d42c16fe5498126e1f56afcadce22b2253e51
[]
no_license
jessapp/coding-challenges
dadb2e5233cb5a40c36c17dfd40f34b0684ace9b
a7f1db6d0fad2fd55bca70c1e22b50d8482189a1
refs/heads/master
2021-01-22T19:49:20.483458
2020-01-24T03:55:28
2020-01-24T03:55:28
85,246,630
1
0
null
null
null
null
UTF-8
Python
false
false
548
py
"""Create a function which implements autocomplete given a certain set of words""" def autocomplete(words, first_letter): word_dict = {} for word in words: if word[0] not in word_dict: word_dict[word[0]] = [word] else: word_dict[word[0]].append(word) if first_lett...
[ "jess.appelbaum@gmail.com" ]
jess.appelbaum@gmail.com
d3fdb5e4458fd9ea4c69e88d7d3ad7511d23c2a8
525bdfe2c7d33c901598a501c145df94a3e162b0
/dz_others/subject28_json_xml/t27_1/local_server(cgi).py
e354ebc436b629ab9b713e45a36f1b9bde729a4d
[]
no_license
davendiy/ads_course2
f0a52108f1cab8619b2e6e2c6c4383a1a4615c15
e44bf2b535b34bc31fb323c20901a77b0b3072f2
refs/heads/master
2020-04-06T09:37:12.983564
2019-05-09T10:28:22
2019-05-09T10:28:22
157,349,669
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
#!/usr/bin/env python3 # -*-encoding: utf-8-*- # t27_01_local_webserver.py # Локальний веб-сервер from http.server import HTTPServer, CGIHTTPRequestHandler HOST = '' # Комп'ютер для з'єднання PORT = 8001 # Порт для з'єднання print('=== Local webserver ===') print("стартова сторінка:", "htt...
[ "davendiy@gmail.com" ]
davendiy@gmail.com
4582ba15b99df59beed60bab2635c96a76e7f251
5dd28677e75073587a5cbcb8388778680761e6c6
/google_translator_docx.py
fb21075879ac7e400aba4022e9104457f23b348b
[]
no_license
renauddahou/Google_documentTranslator
5a6ff84957f9c21cef159a6ae90ce9be83476b3d
1ea7bfa739d4a2e6018a304b62fc775a98f3d285
refs/heads/master
2022-01-18T11:31:58.502197
2019-03-22T15:44:52
2019-03-22T15:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,032
py
#author: hanshiqiang365 (微信公众号) import os,sys,time import traceback,subprocess import googletrans from docx import Document from googletrans import Translator from PyQt5.QtCore import QThread, QSize from PyQt5 import QtCore, QtWidgets from PyQt5.QtGui import QIcon g_log = None g_trans = Translator(service_urls=['tra...
[ "noreply@github.com" ]
renauddahou.noreply@github.com
a8666fe2de8a2cd28b48e80ddc289727a3107ffa
3e37d1cad3ee9c3321bd1b44299bdc67f0dda275
/structures.py
795726da03a61fb2c7054586ef1f1653774183d4
[]
no_license
hbradlow/delaunay
328cfc3e55e8b462f2f12f52b4b2b2dea2d7777f
99d54f6fb965674e5f5955b7f80473941eb03f47
refs/heads/master
2016-09-05T18:26:29.396354
2013-05-03T09:10:25
2013-05-03T09:10:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,044
py
import math id = 0 def generate_id(): global id id += 1 return id from itertools import product, islice def det_old(M,prod=1): dim = len(M) if dim == 1: return prod * M.pop().pop() it = product(xrange(1,dim),repeat=2) prod *= M[0][0] return det([[M[x][y]-M[x][0]*(M[0][y]/M[0][0...
[ "hbradlow@berkeley.edu" ]
hbradlow@berkeley.edu
d36e8d50802e5409c998985e6174bda1eaca7f2e
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2359/60785/291501.py
f1cad9005ab1db88917b0f42627a5cb67824b27e
[]
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
625
py
t=int(input()) for ee in range(t): n=int(input()) num = [int(i) for i in input().split()] res=[] for i in range(n): for j in range(n): if i==j: continue for k in range(n): if num[i]+num[j]==num[k]: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
edd885ec81ff449b96544d624c9363527277b405
07645299e51aa4fb5c9229f0122e7c9771e2b2fd
/djangosige/apps/estoque/migrations/0001_initial.py
427bd76f73bb15af59dc576e6e3a97543d1edbfb
[ "MIT" ]
permissive
brenothales/djangoSIGE
22ab8940ce91b218a6bda118a29d16cc2d6dd314
b4b7bca6a6c98edce06f411b344626c575f78f83
refs/heads/master
2020-12-02T22:17:53.588716
2017-07-02T19:28:34
2017-07-02T19:28:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,060
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-06-25 17:50 from __future__ import unicode_literals from decimal import Decimal import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependen...
[ "thiagovilelap@hotmail.com" ]
thiagovilelap@hotmail.com
53ef6a4ae7474b3083d89a09e90ff2eaa3b3fd3a
91468ea90bd2c1b83fd772842b295ffd8eabdcda
/Doliot_client_ws.py
1b13a1a8fd1cd8704bc0a1ae892b64f7845ba596
[]
no_license
aballah-chamakh/Doliot-Rassperry_pi-as-client
3bc1ecaf243f343e34dafffa41768b5379283293
7a1765936f91dea591783abe146bc5e66a6869f3
refs/heads/master
2020-04-05T17:52:02.888923
2019-02-11T22:08:45
2019-02-11T22:08:45
157,079,132
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
import requests import json import websocket data = {'email':'abdallah@gmail.com','password':'abdallahchamakh'} headers = {'Content-Type':'application/json'} res = requests.post('http://192.168.1.28/api/token/',data=json.dumps(data),headers=headers) token = res.json()['token'] print(token) headers = {'Conten...
[ "chamakhabdallah8@gmail.com" ]
chamakhabdallah8@gmail.com
f77cc183ecd75dd11658ba5b5b8b55664a119222
e16612fb73dc7435dd7696557008c412e52fcaee
/src/collective/cmisbrowser/connector/rest.py
530e0ccdc9bbbf9b44efc13bf0238c6d3b2ed01b
[]
no_license
jean/collective.cmisbrowser
0f216e5c3b85884cedbd7bfbbc9c8a1572d5ca7d
13ed80aac3a9108d9ce45a0e66abf3ddad57eefa
refs/heads/master
2020-12-25T03:00:34.007981
2012-02-14T09:34:56
2012-02-14T09:34:56
3,438,515
0
0
null
null
null
null
UTF-8
Python
false
false
6,501
py
# -*- coding: utf-8 -*- # Copyright (c) 2011 Infrae. All rights reserved. # See also LICENSE.txt # $Id$ import time import logging import urllib2 from cmislib.model import CmisClient import cmislib.exceptions from zExceptions import NotFound from plone.memoize import ram from zope.interface import implements from ...
[ "thefunny@gmail.com" ]
thefunny@gmail.com
4835118e4fb79d1838e79d1a4d6bc8825fc1edd3
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/127/usersdata/205/35545/submittedfiles/ex11.py
8a02e9d5095cab04c8a7595fad90bb1fb948d8d3
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
# -*- coding: utf-8 -*- a1=int(input('digite a1:')) m1=int(input('digite m1:')) d1=int(input('digite d1:')) a2=int(input('digite a2:')) m2=int(input('digite m2:')) d2=int(input('digite d2:')) if(a1>a2): print('%d/%d/%d/ %d' % (d2,m2,a2)) elif(a1<a2): print(a2) elsi: if(m1>m2): print(m1) elif(m1<m...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
7e4fec806fb9c3c26201084e32c1b70f09230287
9fd1e88ae01342d21e8fca85fae94c5cb3823b88
/python/tvm/auto_scheduler/workload_registry.py
6c3b4d179a33170d01a792a2120190f2f0f1ac09
[ "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Apache-2.0", "BSD-2-Clause" ]
permissive
gussmith23/tvm
1bf32224275e0242287c6b23cc7649d878bf40c3
e02dc69fef294eb73dd65d18949ed9e108f60cda
refs/heads/master
2022-06-13T17:38:50.709735
2020-09-14T14:51:06
2020-09-14T14:51:06
157,422,354
3
0
Apache-2.0
2018-11-13T17:51:08
2018-11-13T17:51:07
null
UTF-8
Python
false
false
6,104
py
# 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 # "License"); you may not u...
[ "noreply@github.com" ]
gussmith23.noreply@github.com