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
12a50275d49eb47f247e28b62b8b6aec74918723
ba3231b25c60b73ca504cd788efa40d92cf9c037
/nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/appqoe/appqoepolicy_lbvserver_binding.py
8ee87e1e11a7806b4dc6076f7173a54e13258719
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
zhuweigh/vpx13
f6d559ae85341e56472e3592cbc67062dac34b93
b36caa3729d3ca5515fa725f2d91aeaabdb2daa9
refs/heads/master
2020-07-04T22:15:16.595728
2019-09-20T00:19:56
2019-09-20T00:19:56
202,435,307
0
0
null
null
null
null
UTF-8
Python
false
false
5,627
py
# # Copyright (c) 2008-2019 Citrix Systems, 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 l...
[ "zhuwei@xsky.com" ]
zhuwei@xsky.com
0777d5132fd348e362404fcaf64c9b94d87dde03
07c0500edd527522036760a8cadd4e62e5eb1dcb
/python/union.py
eddcceb5df8731716bf71ff7d29e74468f32ad9c
[]
no_license
amarsyelane/pythonprograms
261323dc453b42d3ba21ae8496d55bfded130dbd
fffc1a0edfd25577beb84e64059ff3d38bc91c35
refs/heads/master
2020-06-24T23:37:09.630903
2019-07-27T16:47:00
2019-07-27T16:47:00
199,127,095
0
1
null
null
null
null
UTF-8
Python
false
false
165
py
def union_list(list1,list2): list3 = list(set(list1) | set(list2)) return list3 list1 = [1,2,3,4,5,6] list2 = [7,1,8,2,9,3] print(union_list(list1,list2))
[ "root@localhost.localdomain" ]
root@localhost.localdomain
9db6d4b5e220c435d6b8050e7284d665f189d8ca
b7054c7dc39eeb79aa4aecb77a8de222400b19a7
/flask_project/d116/s9day116/s4.py
f36a629ef052544a1412614a0f0fd9f2f349f15c
[]
no_license
csuxh/python_fullstack
89027133c7f9585931455a6a85a24faf41792379
f78571976b3bef104309e95304892fdb89739d9e
refs/heads/master
2023-05-11T09:36:40.482788
2019-06-12T14:21:26
2019-06-12T14:21:26
145,090,531
0
0
null
null
null
null
UTF-8
Python
false
false
1,285
py
from flask import Flask,url_for app = Flask(__name__) # 步骤一:定制类 from werkzeug.routing import BaseConverter class RegexConverter(BaseConverter): """ 自定义URL匹配正则表达式 """ def __init__(self, map, regex): super(RegexConverter, self).__init__(map) self.regex = regex def to_python(self, v...
[ "csuxh@foxmail.com" ]
csuxh@foxmail.com
026f639e2ed9a7f66dd6b76d9b08614d82558dcf
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_capabilities.py
b55c60ffb16290122194860366c1e164cb963345
[ "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
268
py
from xai.brain.wordbase.nouns._capability import _CAPABILITY #calss header class _CAPABILITIES(_CAPABILITY, ): def __init__(self,): _CAPABILITY.__init__(self) self.name = "CAPABILITIES" self.specie = 'nouns' self.basic = "capability" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
7bb1a27b99e94f1e6998524a589ab4c12d7a6f47
7142c3941481e661075154d714a29d5e283a3074
/AddingItemsToTheSet1.py
afcece78482c26ddc68528e02fb846b611a5ffc8
[]
no_license
nirajan5/Demo
5642a9669fedcca47b0304ac423c0b3e6333b8e2
2451875bf5698cd38af69baa117c14099951bc9f
refs/heads/master
2023-07-27T17:04:03.689673
2021-09-15T11:14:25
2021-09-15T11:14:25
406,732,005
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
Months = set(["January","February", "March", "April", "May", "June"]) print("\nprinting the original set ... ") print(Months) print("\nAdding other months to the set..."); Months.add("July"); Months.add ("August"); print("\nPrinting the modified set..."); print(Months) print("\nlooping through the set elements ... ") f...
[ "jhanirajan5@gmail.com" ]
jhanirajan5@gmail.com
d9265b72e4b21399cff19be1d8ba9b2a8d85c546
94bd78e63de94859eb076e52683f73f6ea91eae3
/726.py
66ae50ab0507c371d78444f0c6784ac873ce6cc8
[]
no_license
MadSkittles/leetcode
70598c1c861a8ff5d2f7c921a311307d55770acc
817bbb73dfe095b9c9358dc459ba6605a2a9a256
refs/heads/master
2021-11-30T04:56:02.432749
2021-11-12T03:28:47
2021-11-12T03:28:47
123,558,601
2
1
null
null
null
null
UTF-8
Python
false
false
2,240
py
class Solution: def countOfAtoms(self, formula): res = '' c = self.f(formula) for element in sorted(c.keys()): res += element + (str(c[element]) if c[element] > 1 else '') return res def f(self, formula: str): from collections import Counter if not fo...
[ "noreply@github.com" ]
MadSkittles.noreply@github.com
b20577618c5c7056d9ef2c7eb75c7e3783a2ada2
b453635bb1a1b767179250ddf5200dd5982752e3
/apps/home/urls.py
c0bb3f878ae81bbf037a8a83efc38440cbcde5c5
[ "Unlicense" ]
permissive
orhan1616/django-russian-ecommerce
21e5c52f13fea5e7bb2f4fac2e4b9657729b33a5
9e64a0500ae529fc81e6ed2fb335b33d0ae5354a
refs/heads/main
2023-06-17T22:06:39.199411
2021-07-07T11:54:21
2021-07-07T11:54:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
# apps/home/urls.py # Django modules from django.urls import path # Django locals from apps.home import views urlpatterns = [ path('', views.homepage, name='homepage'), path('aboutus/', views.aboutuspage, name='aboutuspage'), path('contactus/', views.contactuspage, name='contactuspage'), ]
[ "ingafter60@outlook.com" ]
ingafter60@outlook.com
13173968ed6a9c4b62bcd9f9f66a07bacb5f1b35
e1b8fb9a5500516f28d3d7e9a5f259c49ef35f14
/top/api/rest/SkusCustomGetRequest.py
70aeced78d8d92d2a43572c618d79dcdc9b6eee7
[]
no_license
htom78/taobao_comet_py
9224dbca1a413a54bcc5569873e4c7a9fc9ba059
ad8b2e983a14d3ab7665244449f79dd72f390815
refs/heads/master
2020-05-17T10:47:28.369191
2013-08-27T08:50:59
2013-08-27T08:50:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
''' Created by auto_sdk on 2013-06-16 16:36:02 ''' from top.api.base import RestApi class SkusCustomGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.fields = None self.outer_id = None def getapiname(self): return 'taobao.skus.cust...
[ "tomhu@ekupeng.com" ]
tomhu@ekupeng.com
9953ddae4f7a966b2c28335395b9fe7a270804e1
653a3d9d66f3d359083cb588fc7c9ece8bb48417
/test/runtime/frontend_test/onnx_test/defs_test/math_test/sqrt_test.py
9374a12650ad590ad76c5896649b7ba2359b530a
[ "Zlib", "MIT" ]
permissive
leonskim/webdnn
fec510254b15f3dec00f5bed8f498737b372e470
f97c798c9a659fe953f9dc8c8537b8917e4be7a2
refs/heads/master
2020-04-15T18:42:43.632244
2019-01-10T10:07:18
2019-01-10T10:07:18
164,921,764
0
0
NOASSERTION
2019-01-09T19:07:35
2019-01-09T19:07:30
Python
UTF-8
Python
false
false
820
py
import numpy as np from test.runtime.frontend_test.onnx_test.util import make_node, make_tensor_value_info, make_model from test.util import wrap_template, generate_kernel_test_case from webdnn.frontend.onnx import ONNXConverter @wrap_template def template(x_shape, description: str = ""): vx = np.random.rand(*x_...
[ "y.kikura@gmail.com" ]
y.kikura@gmail.com
b9d91097495c60f324c7dcc2ec855d4b5c1f5550
9acfe8ea905a7613b232cf9e512311289d4e5e27
/CodeForce/Round4_2/task3.py
8513d85beef58c02028922218a82b9bb0ca9bdec
[]
no_license
antofik/Python
e790ecb61babb23fad198ba996f24b31fdff9f39
bb6ab6cd87d7bfb1d6efca6623b4b00c387313a8
refs/heads/master
2020-12-24T14:27:39.341992
2014-03-09T07:32:07
2014-03-09T07:32:07
17,551,107
1
0
null
null
null
null
UTF-8
Python
false
false
3,426
py
# coding=utf-8 """ C. Система регистрации ограничение по времени на тест:5 seconds ограничение по памяти на тест:64 megabytes ввод:standard input вывод:standard output В скором времени в Берляндии откроется новая почтовая служба "Берляндеск". Администрация сайта хочет запустить свой проект как можно быстрее, поэтому о...
[ "antofik@gmail.com" ]
antofik@gmail.com
28968f4cf0904ba68959fcbeb4aeeacea48d661f
c20534744b07252421aef4e157101eeb2f8a7090
/django/project4/books/models.py
d9420ddcc23642a44a7fe1fb1bfa357abbd5ae0d
[]
no_license
lee-seul/development_practice
eb34a9be21ba2b8f20646420e903f07343f55f95
b56fcdded15bf437e365c7d8ffe6981127adb5d4
refs/heads/master
2020-12-25T23:10:16.112757
2018-04-02T07:36:14
2018-04-02T07:36:14
44,519,248
2
0
null
null
null
null
UTF-8
Python
false
false
703
py
from django.db import models class Author(models.Model): saluation = models.CharField(max_length=100) name = models.CharField(max_length=50) email = models.EmailField() def __unicode__(self): return self.name class Publisher(models.Model): name = models.CharField(max_length=50) addres...
[ "blacksangi14@naver.com" ]
blacksangi14@naver.com
b377681d860d1c9cfb40f5ae30246ba53a8f0ef7
2225034e851e936b813005ce3948d76a2c0f85aa
/accounts/migrations/0003_alter_user_user_type.py
065708962d7354caf2b9947eac6e7ae9b7753fb4
[]
no_license
khaled-hamada/doctor-online-app-task
83a6f6864467552f4b08f0832a441ddcaaa8a3e7
a6d5c8284cc21f21bb5227281ff27b3c3a1ad8d6
refs/heads/main
2023-07-12T06:52:11.425656
2021-08-24T13:17:18
2021-08-24T13:17:18
399,429,996
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
# Generated by Django 3.2.6 on 2021-08-23 11:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_alter_user_user_type'), ] operations = [ migrations.AlterField( model_name='user', name='user_type'...
[ "khaledosman737@gmail.com" ]
khaledosman737@gmail.com
27f44b74cc5fedd3f218a356d0844f7d2ffac7e5
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/96/usersdata/184/53936/submittedfiles/estatistica.py
54102a6b3c85cedfd1bbea3a41e1c235f0059378
[]
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
890
py
# -*- coding: utf-8 -*- def media(lista): soma = 0 for i in range(0,len(lista),1): soma = soma + lista[i] resultado = soma/len(lista) return resultado def variância(lista): media=media(lista) soma=0 variância=0 for i in range(0,len(lista),1): soma=((lista[i]-media)**2) ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
a6df2cb4a8a4471534fc5fe9ba7d6996c2dff035
cc44edfa1edbedea3ad044805be7548e0ccba70d
/0x0F-python-object_relational_mapping/13-model_state_delete_a.py
c044b9f72162be0367f0edae4457370fc78e42b1
[]
no_license
set808/holbertonschool-higher_level_programming
421f0da1f91cd56eb2daa4e07a51b4a505d53edc
eb276a4e68e5cc43498459eec78fc05f72e2cd48
refs/heads/master
2020-03-09T13:07:43.824914
2018-09-08T00:26:46
2018-09-08T00:26:46
128,802,718
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
#!/usr/bin/python3 """List objects that contain the letter a """ from sys import argv from model_state import Base, State from sqlalchemy import (create_engine) from sqlalchemy import update from sqlalchemy.orm import sessionmaker def main(argv): engine = create_engine( 'mysql+mysqldb://{}:{}@localhost:3...
[ "spencertaylor808@gmail.com" ]
spencertaylor808@gmail.com
ed42e215d09f16cabbe9caef947294944b5956c2
c80ec1805a7e6cb1bd3f4b3e383ef4f4cf164765
/gen/datehandler/__init__.py
b3a56bafa582242949c6717acefc05dda78990b6
[]
no_license
balrok/gramps_addon
57c8e976c47ea3c1d1298d3fd4406c13909ac933
0c79561bed7ff42c88714edbc85197fa9235e188
refs/heads/master
2020-04-16T03:58:27.818732
2015-02-01T14:17:44
2015-02-01T14:17:44
30,111,898
2
1
null
null
null
null
UTF-8
Python
false
false
3,166
py
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2004-2007 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at you...
[ "carl.schoenbach@gmail.com" ]
carl.schoenbach@gmail.com
228724cb4ba363074d939a34c441ba86ebe9c6c2
25cb0013b8e635dd5a7cc189819d43191f571fe2
/tests/parser/test_wikipedia.py
09d7a2f3bcca27a44bfcb1147cb6ef82d0cd2e7c
[ "MIT" ]
permissive
openmicroanalysis/pyxray
e40a1c575b8f5002f162c611c4ffcf00ff028907
b06478f6c251d92e878713d18d5c7bc063bac0fb
refs/heads/master
2023-03-18T11:41:28.806694
2023-03-10T09:35:58
2023-03-10T09:35:58
57,978,665
4
2
MIT
2023-03-10T09:35:59
2016-05-03T15:10:14
Python
UTF-8
Python
false
false
299
py
#!/usr/bin/env python """ """ # Standard library modules. # Third party modules. # Local modules. from pyxray.parser.wikipedia import WikipediaElementNameParser # Globals and constants variables. def test_wikipedia(): parser = WikipediaElementNameParser() assert len(list(parser)) > 0
[ "philippe.pinard@gmail.com" ]
philippe.pinard@gmail.com
3f786d9369922895b5661bc3d6051ba8a9589b3a
3a891a79be468621aae43defd9a5516f9763f36e
/desktop/core/ext-py/nose-1.3.7/examples/plugin/setup.py
4dd5dad316fc51c1078d9f21e31d231609ef1249
[ "Apache-2.0", "LGPL-2.1-only" ]
permissive
oyorooms/hue
b53eb87f805063a90f957fd2e1733f21406269aa
4082346ef8d5e6a8365b05752be41186840dc868
refs/heads/master
2020-04-15T20:31:56.931218
2019-01-09T19:02:21
2019-01-09T19:05:36
164,998,117
4
2
Apache-2.0
2019-01-10T05:47:36
2019-01-10T05:47:36
null
UTF-8
Python
false
false
523
py
""" An example of how to create a simple nose plugin. """ try: import ez_setup ez_setup.use_setuptools() except ImportError: pass from setuptools import setup setup( name='Example plugin', version='0.1', author='Jason Pellerin', author_email = 'jpellerin+nose@gmail.com', description =...
[ "ranade@cloudera.com" ]
ranade@cloudera.com
85100f9a205b487eaaf3372ea12fccd23da2983d
9316e155538af98001c6d7551e721b6160c99bd7
/run_ants.py
716f1e81bac243ddd8c7e9ef3e5e5a461ccb5298
[ "Apache-2.0" ]
permissive
binarybottle/mindboggle_sidelined
2c7c6591d199a5b715cb028d3374c1a426fb4341
1431d4877f4ceae384486fb66798bc22e6471af7
refs/heads/master
2016-09-06T17:24:32.646682
2015-02-16T04:45:44
2015-02-16T04:45:44
30,854,143
3
0
null
null
null
null
UTF-8
Python
false
false
1,650
py
""" Run antsCorticalThickness.sh on Mindboggle-101 brains """ import os run_all = True if run_all: names = ['OASIS-TRT-20', 'MMRR-21', 'NKI-RS-22', 'NKI-TRT-20', 'Afterthought', 'Colin27', 'Twins-2', 'MMRR-3T7T-2', 'HLN-12'] numbers = [20,21,22,20,1,1,2,2,12] i1 = 0 names = [names[i1]] ...
[ "arno@binarybottle.com" ]
arno@binarybottle.com
bdbbde89fa8e66deaf81f53dee472784536d88c9
61747f324eaa757f3365fd7bf5ddd53ea0db47d1
/casepro/cases/migrations/0017_outgoing_text.py
f5a2e63d2c2bc3469b928f6e54c6172ceabe1ef8
[ "BSD-3-Clause" ]
permissive
BlueRidgeLabs/casepro
f8b0eefa8f961dd2fdb5da26a48b619ebc1f8c12
8ef509326f3dfa80bb44beae00b60cc6c4ac7a24
refs/heads/master
2022-01-24T09:01:18.881548
2017-12-05T18:46:05
2017-12-05T18:49:42
113,502,588
0
0
null
2017-12-07T21:57:37
2017-12-07T21:57:37
null
UTF-8
Python
false
false
404
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('cases', '0016_case_contact'), ] operations = [ migrations.AddField( model_name='outgoing', name='tex...
[ "rowanseymour@gmail.com" ]
rowanseymour@gmail.com
a1c71cac28e8106d69520a88204e6eebf415bd96
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_omniscient.py
d973e99c473ac2a6a285eb5b5832fff3a0311952
[ "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
413
py
#calss header class _OMNISCIENT(): def __init__(self,): self.name = "OMNISCIENT" self.definitions = [u'having or seeming to have unlimited knowledge: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jsonda...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
033ff5a1c621db3638e1544b4a2d3c6f3741a08d
0130c8b14927097663157846adc4b146d67d2fda
/tests/st/ops/gpu/test_fused_relu_grad_bn_reduce_grad.py
4e5f6afbc529a5aefef225ba6b5e26b43a8557f6
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-3-Clause", "NCSA", "LLVM-exception", "Zlib", "BSD-2-Clause", "MIT" ]
permissive
Shigangli/akg
e8be3e0ee1eafe3e42b4cc4d424c28f08ef4c0bc
3766c54e0b109541932d147a6b5643a334b82403
refs/heads/master
2023-09-06T05:13:40.571583
2021-11-23T03:44:54
2021-11-23T03:44:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,586
py
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # 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 agre...
[ "1027252281@qq.com" ]
1027252281@qq.com
a74d54cf192a18fe0dd00295cc02d80e22709ea2
da85a249f6ffc68c71bc27b1246a77704d15770e
/tests/debug-tests/utils.py
4003318523fa789c9a341c578a8c9671aae29397
[ "BSD-3-Clause" ]
permissive
efajardo-nv/ucx-py
d8d268fc094afd28512c843dfa49f6afcb55d4bb
90e7ae0214ea23588040d00f9c9497aba0f09b65
refs/heads/master
2022-05-22T10:32:24.411103
2020-03-31T18:10:46
2020-03-31T18:10:46
257,774,594
0
0
BSD-3-Clause
2020-04-22T02:52:27
2020-04-22T02:52:26
null
UTF-8
Python
false
false
2,379
py
import argparse from distributed.comm.utils import from_frames from distributed.utils import nbytes, parse_bytes import numpy as np import ucp ITERATIONS = 50 def cuda_array(size): # import cupy # return cupy.empty(size, dtype=cupy.uint8) # return rmm.device_array(size, dtype=np.uint8) import numba...
[ "quasiben@gmail.com" ]
quasiben@gmail.com
4f47113183c2cf8e5d890bfebbab7cf2f9c5bc3a
2cc44ba2a9b9b752fd1b1ebfd1a3681fe87c8617
/models/datamodel.py
a3054c3669606379b4b05d100a9265744241b4ac
[]
no_license
jorgec/iNav-Python-SDK
47c6a2b5e9a4eb246b9ee997b67a9726e2f9db30
57260980f8e2f5130f1abc21fd6dab7404ea05ac
refs/heads/master
2020-08-29T23:46:45.733005
2019-10-29T04:47:55
2019-10-29T04:47:55
218,206,231
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
import json class DataModel: class Meta: fields = {} def as_dict(self): return {key: str(getattr(self, value)) for key, value in self.Meta.fields.items()} def serialize(self): return json.dumps(self.as_dict())
[ "jorge.cosgayon@gmail.com" ]
jorge.cosgayon@gmail.com
c476de20becad6e2a53cd18d6249c626d55d01c1
e8199f1d424592affe19b50fd96a02815067d1b1
/Apple/329. Longest Increasing Path in a Matrix.py
4b7821d007aef9791d6d78446d5a4277649b4273
[]
no_license
srajsonu/LeetCode-Solutions-Python
39a809e4c6d555a3a3055ce03d59cfa40b93a287
8ec31c8df2885f3da533424ba13060b7d3e3af78
refs/heads/master
2023-03-19T10:05:42.578615
2021-03-13T17:21:36
2021-03-13T17:21:36
280,716,200
0
1
null
2020-10-06T09:54:02
2020-07-18T18:32:04
Python
UTF-8
Python
false
false
1,003
py
from collections import deque class Solution: def isValid(self, A, i, j): if i < 0 or i >= len(A) or j < 0 or j >= len(A[0]): return False return True def dfs(self, A, i, j, dp): ans = 0 row = [1, 0, -1, 0] col = [0, 1, 0, -1] if dp[i][j]: ...
[ "srajsonu02@gmail.com" ]
srajsonu02@gmail.com
b0778fa352eb1a191c385864773583a269064c75
2713e8a47e68d82907a4cedc6434ef1cd72d85e7
/fluo/middleware/locale.py
5ced4754e4f221eba613a13a5729fba9f5901d25
[ "MIT" ]
permissive
rsalmaso/django-fluo
a283b8f75769ac6e57fa321c607819899e0c31c8
24b9f36e85b247ea209b9c40b17599e7731f5ded
refs/heads/main
2023-01-12T01:37:06.975318
2022-12-30T22:08:40
2022-12-30T22:08:40
48,948,936
1
0
null
null
null
null
UTF-8
Python
false
false
7,060
py
# Copyright (C) 2007-2022, Raffaele Salmaso <raffaele@salmaso.org> # # 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 # to use, cop...
[ "raffaele@salmaso.org" ]
raffaele@salmaso.org
37ba7f3e9c1e421d8f3ae6e4fce5cdd0f88f331e
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_157/923.py
9d23b8f1fd1c482d24b4c5e1908d21f090e72531
[]
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,051
py
import copy d = {('i','j'): 'k', ('j','i'): '-k', ('j','k'): 'i', ('k','j'): '-i', ('k','i'): 'j', ('i','k'): '-j'} def mul_q(q1, q2): sign = 1 if q1[0] == '-': sign *= -1 q1 = q1[1:] if q2[0] == '-': sign *= -1 q2 = q2[1:] if q1 == '1': ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
1720eccbd3a5a5d87381eb2743badc0aabfe950c
2bd385ec885cc67617524d4cc251a33a7fac95a1
/models/eagleedu_syllabus.py
300b71f24090838271ffc1127bcdd072d0714bcf
[]
no_license
development-team-work/eagleedu_core
47eed702c95a4c8ba6625bd516946c56133b98a9
59cbdef95b6092a93ac12ab11bea237da345b3e7
refs/heads/master
2021-01-02T03:13:00.957763
2020-02-10T10:30:11
2020-02-10T10:30:11
239,466,974
0
0
null
2020-02-10T08:55:19
2020-02-10T08:55:18
null
UTF-8
Python
false
false
752
py
# -*- coding: utf-8 -*- from eagle.exceptions import ValidationError from eagle import fields, models, api, _ class EagleeduSyllabus(models.Model): _name = 'eagleedu.syllabus' _description = "Syllabus " _rec_name='syllabus_display' name = fields.Char(string='Name', help="Enter the Name of the Syllab...
[ "rapidgrps@princegroup-bd.com" ]
rapidgrps@princegroup-bd.com
3d30699e50d84cb0530efc016de11719e7b37e03
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch096/woColorJ/Sob_k25_s001_EroM/pyr_Tcrop255_p20_j15/pyr_1s/L4/step09_1side_L4.py
82aff74ef2922ec79600254bd74c9122ba6bd036
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
5,656
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
43506dfa09f5bd26109c821562d504b8dc7d7c6d
6e357be547cbeb153c4778e3552716f40a21b007
/문제풀이/최빈수 구하기/최빈수 구하기.py
4cbf3d1271b85b37526f4112add6f9b8fb5b88c7
[]
no_license
hyunsang-ahn/algorithm
db6a8fdf77806f06652a3f4c2e3234b50c1bb717
c3a3c93c452e4b35202529e3209a26fbdc0c2ad7
refs/heads/master
2021-10-22T04:44:09.808795
2019-03-08T06:50:30
2019-03-08T06:50:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
import sys sys.stdin = open('input.txt', 'r') T = int(input()) for tc in range(1,T+1): n = int(input()) arr = list(map(int, input().split())) num_dic = {} for i in arr: num_dic[i] = arr.count(i) res = max(list(num_dic.values())) print("#", end="") print(tc, end=" ") res_list =...
[ "happylovetkd@naver.com" ]
happylovetkd@naver.com
b4ea18da6321d5abc400a5a0d5cc3b4564cb4c65
eff5cd25fa442b70491262bada0584eaaf8add46
/tfx/components/base/executor_spec.py
71518533a6ad04f0c3753e2968b7c9a2eb32c332
[ "Apache-2.0" ]
permissive
fsx950223/tfx
c58e58a85e6de6e9abcb8790acbf36424b5b2029
527fe2bab6e4f62febfe1a2029358fabe55f418c
refs/heads/master
2021-01-04T12:12:51.010090
2020-01-26T04:43:14
2020-01-26T04:43:14
240,543,231
1
0
Apache-2.0
2020-02-14T15:48:12
2020-02-14T15:48:11
null
UTF-8
Python
false
false
2,989
py
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
[ "tensorflow-extended-team@google.com" ]
tensorflow-extended-team@google.com
bdbdec718b149a290f3085cd6eb64c14f9d426c8
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_014/ch58_2020_04_21_19_49_08_495191.py
1d881d5e8a3270339654288032b617d7b21bba59
[]
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
168
py
def conta_a (s): i = 0 contador = 0 while i < len(s): if s[i] == 'a': contador = contador + 1 i += 1 return contador
[ "you@example.com" ]
you@example.com
e6b2f84f0083b67ae2d203f72298316f4eff734e
44b389338c12b0dc2018d8022031b58090c58a63
/ProjectEuler/Problem034.py
410d4e54f8c5ce48b11c1c93332c1f0b88526652
[]
no_license
llcawthorne/old-python-learning-play
cbe71b414d6fafacec7bad681b91976648b230d3
5241613a5536cd5c086ec56acbc9d825935ab292
refs/heads/master
2016-09-05T17:47:47.985814
2015-07-13T01:25:44
2015-07-13T01:25:44
38,983,419
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
#!/usr/bin/env python3 """Project Euler Problem 034 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. Find the sum of all numbers which are equal to the sum of the factorial of their digits. Note: as 1! = 1 and 2! = 2 are not sums they are not included. """ import math # 9! * 8 is only a 7 digit number...
[ "LLC@acm.org" ]
LLC@acm.org
77216f0de3ae8de629843bafb7defbf5cc5f8d29
200ec10b652f9c504728890f6ed7d20d07fbacae
/forms.py
0becace3be7e76cd20e14cf95376646cfe47f020
[]
no_license
Ks-Ksenia/flask_shop
f4edc17669c29ae02a89e836c3c48230147ae84f
9eb44fd22bf99913c9824ea35e3922cb14ef2451
refs/heads/master
2023-03-01T13:55:20.749127
2021-02-14T09:29:04
2021-02-14T09:29:04
338,767,599
0
0
null
null
null
null
UTF-8
Python
false
false
3,349
py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, \ SubmitField, SelectField, TextAreaField, FormField, FieldList from wtforms.validators import Email, DataRequired, Length, EqualTo, required from wtforms.fields.html5 import TelField, EmailField from wtforms.widgets impo...
[ "demag74@mail.ru" ]
demag74@mail.ru
9f07b90ac5d6626a6da98f349aa934ab9f7f771f
e2e1732b6eb1a7a6dfeba76762851ad06eb8e482
/wangban/wangban/spiders/redisspider.py
eabd738eb7841186dc293026c518f1ae4a617c48
[]
no_license
nightqiuhua/bigCrawlers
551e80d55df492c89ae0e0e0bd70c0e5f873068d
19b86130c8af057d06014865d150e3d2ed6cc319
refs/heads/main
2023-03-23T01:13:26.021850
2021-03-03T15:09:28
2021-03-03T15:09:28
344,165,235
0
0
null
null
null
null
UTF-8
Python
false
false
4,206
py
from scrapy import signals from scrapy.exceptions import DontCloseSpider from wangban_utils.redis_util import get_redis_conn from scrapy.spiders import Spider from items import HangzhouItem import socket from datetime import datetime import os from urllib.parse import urljoin import json import time from wangban_utils....
[ "1320551630@qq.com" ]
1320551630@qq.com
8e0110d97e1eef72cc626068e9dc37da471245a5
3b2940c38412e5216527e35093396470060cca2f
/top/api/rest/TmallTraderateFeedsGetRequest.py
5b6fa08b6e0e7bdd1d538ab76409fcdd3e1390ad
[]
no_license
akingthink/goods
842eb09daddc2611868b01ebd6e330e5dd7d50be
ffdb5868a8df5c2935fc6142edcdf4c661c84dca
refs/heads/master
2021-01-10T14:22:54.061570
2016-03-04T09:48:24
2016-03-04T09:48:24
45,093,302
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
''' Created by auto_sdk on 2015-01-20 12:44:31 ''' from top.api.base import RestApi class TmallTraderateFeedsGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.child_trade_id = None def getapiname(self): return 'tmall.traderate.feeds.g...
[ "yangwenjin@T4F-MBP-17.local" ]
yangwenjin@T4F-MBP-17.local
b65a444228c179437b655748fdf4aa97e4c9f16b
86f8bf3933208329eb73bfcba5e1318dbb2ddafa
/hello_world/django/benckmark/settings.py
59dcfe2806efd190dafb6247412c676e1aacfc40
[]
no_license
TakesxiSximada/benchmarks
42ce5466c813e45db78f87ca391806fbb845a16c
9cd2fc732ed006fd3554e01b1fc71bfcb3ada312
refs/heads/master
2021-01-15T23:02:14.063157
2015-05-30T18:52:08
2015-05-30T18:52:08
36,551,678
0
0
null
null
null
null
UTF-8
Python
false
false
2,237
py
""" Django settings for benckmark project. Generated by 'django-admin startproject' using Django 1.8.dev20141227141312. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/...
[ "takesxi.sximada@gmail.com" ]
takesxi.sximada@gmail.com
eeee37bc3e3fdfee9d00d5b5551c681844a5fc81
65c539e235155b15946cbc7f8838bf69f56086c0
/learn_torch/mini_cnn.py
31436782fa363b25b8c0d230125bba80acf52950
[]
no_license
xkcomeon/any-whim
08a070a8ae8d795cb76e77f0f0f61edea7e5d60e
ce7160686d3689fbd4350420d1f130d7cce5c2c4
refs/heads/master
2023-03-20T08:16:43.446082
2021-03-14T14:48:02
2021-03-14T14:48:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,614
py
# 写一个中文的单字识别的cnn # 尽可能的搞定旋转缩放之类的分类问题 import os import cv2 import numpy as np # 读取单字图片文件 def read_imginfos(file): # 目前读取的数据是单字识别,这里读取的格式为,图片文件的第一个汉字代表了其类别 class_types = set() imginfos = [] for i in os.listdir(file): if i.endswith('.jpg') or i.endswith('.png'): class_types...
[ "opaquism@hotmail.com" ]
opaquism@hotmail.com
844498d5a39b662dec59c8f2370751615f418417
3365e4d4fc67bbefe4e8c755af289c535437c6f4
/.history/src/core/dialogs/waterfall_dialog_20170814144141.py
dbaa69a0f387bec839f238e48d9d55b0e64da868
[]
no_license
kiranhegde/OncoPlotter
f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1
b79ac6aa9c6c2ca8173bc8992ba3230aa3880636
refs/heads/master
2021-05-21T16:23:45.087035
2017-09-07T01:13:16
2017-09-07T01:13:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,426
py
''' Refs: Embedding plot: https://sukhbinder.wordpress.com/2013/12/16/simple-pyqt-and-matplotlib-example-with-zoompan/ ''' from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar import matplotlib.pyplot a...
[ "ngoyal95@terpmail.umd.edu" ]
ngoyal95@terpmail.umd.edu
49ede39dee06aaa502ae7e4507c81c91e49f634c
dbbdf35bff726681ae34ad08eeda5f30929e2ae9
/supervised_learning/0x00-binary_classification/8-neural_network.py
6f3dce07188aef74a022e7625d340e1657f4161c
[]
no_license
jorgezafra94/holbertonschool-machine_learning
0b7f61c954e5d64b1f91ec14c261527712243e98
8ad4c2594ff78b345dbd92e9d54d2a143ac4071a
refs/heads/master
2023-02-03T20:19:36.544390
2020-12-21T21:49:10
2020-12-21T21:49:10
255,323,504
1
1
null
null
null
null
UTF-8
Python
false
false
1,439
py
#!/usr/bin/env python3 """ neural network with one hidden layer performing binary classification: """ import numpy as np class NeuralNetwork(): """ Here is my first Holberton NeuralNetwork Class here we are going to use One hidden layer the main things to keep in mind about a neuron is the ecuat...
[ "947@holbertonschool.com" ]
947@holbertonschool.com
78d93dc4ea64e77ecc661aa7c3d513d1758e2027
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_109/ch27_2019_08_14_18_40_36_940230.py
4266c60b91cf6eb8413093db272fd574351c5621
[]
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
215
py
def n(a, c): tempo = ((a*365)*c)*10 tempo = (tempo/3600) return tempo a = int(input('Insira há quantos anos você fuma: ')) c = int(input('Insira quantos cigarros você usa por dia: ')) print(n(a, c))
[ "you@example.com" ]
you@example.com
22483da0f47eecf1240954f46e0762ee7f16d6d1
97cb12cc1243ffa1e29c98ed013a03b377d0e9cd
/setup.py
1e3612c418f41668b0949274eda9949bd59dac26
[ "MIT" ]
permissive
brettatoms/flask-appconfig
675097323f06b7dcd40f6e8225991e24a349d4a3
3e023569f156166abe3992bb3abe0fdad1c38630
refs/heads/master
2021-01-18T04:47:44.432958
2015-07-17T23:02:04
2015-07-17T23:02:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='flask-appconfig', version='0.11.0.dev1', description=('Configures Flask applications in a canonical w...
[ "git@marcbrinkmann.de" ]
git@marcbrinkmann.de
a897a4faf3b4f6073bc4505c1ef6077f10815dac
b4cfb1f9813df98a791c0dfeab5183996f900f13
/core/forms.py
34183f3bf2d149ad1d532f1b606456e800d6fc30
[]
no_license
KiwiState/TestDjango
6fedf22603950bd4345dc6dc93ed7ab67c811769
c09ef5f02cf4297d97393cd3a495475478e023ef
refs/heads/master
2023-06-09T20:26:16.070432
2021-07-08T13:49:05
2021-07-08T13:49:05
377,001,555
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
from django import forms from django.forms import ModelForm from .models import Pintura,Contacto,Usuarios class PinturaForm(ModelForm): class Meta: model = Pintura fields = ['titulo','descripcion','categoria','imagen','id_pintura','id'] class ContactoForm(ModelForm): class Meta: model ...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
f9c00636facae578d804121b09edd4a003c90297
cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98
/leet/amazon/strings_and_arrays/454_4Sum_II.py
39caa53fc72f97bde6109f3bfd501894873bb480
[]
no_license
arsamigullin/problem_solving_python
47715858a394ba9298e04c11f2fe7f5ec0ee443a
59f70dc4466e15df591ba285317e4a1fe808ed60
refs/heads/master
2023-03-04T01:13:51.280001
2023-02-27T18:20:56
2023-02-27T18:20:56
212,953,851
0
0
null
null
null
null
UTF-8
Python
false
false
1,724
py
import collections from typing import List class Solution: def fourSumCount(self, A: List[int], B: List[int], C: List[int], D: List[int]) -> int: dp = collections.defaultdict(int) for a in A: for b in B: dp[a+b]+=1 cnt = 0 for c in C: for d ...
[ "ar.smglln@gmail.com" ]
ar.smglln@gmail.com
98ae7611ae59d9ad96d11df5d4be3d5ffffa1b93
798960eb97cd1d46a2837f81fb69d123c05f1164
/symphony/cli/pyinventory/graphql/enum/user_role.py
053133dc005e0a4f2ac8fe4e406670c5ecde4190
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
kyaaqba/magma
36d5fa00ce4f827e6ca5ebd82d97a3d36e5f5b5b
fdb7be22a2076f9a9b158c9670a9af6cad68b85f
refs/heads/master
2023-01-27T12:04:52.393286
2020-08-20T20:23:50
2020-08-20T20:23:50
289,102,268
0
0
NOASSERTION
2020-08-20T20:18:42
2020-08-20T20:18:41
null
UTF-8
Python
false
false
300
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from enum import Enum class UserRole(Enum): USER = "USER" ADMIN = "ADMIN" OWNER = "OWNER" MISSING_ENUM = "" @classmethod def _missing_(cls, value: object) -> "UserRole": return cls.MISSING_ENUM
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e5986fafc4c92267351701bf782014ee5e3e3e90
11757061e3f4d4b6535c311ed5005b620c98d1b5
/lang/test/python/test_scope.py
f2a8fe1b5c8f0a8e2c252d5dee22b1b06f9bb5f3
[ "MIT" ]
permissive
nijeshu/taichi
580176d65cae80c87ab508a7db3f71f4815cbcdc
bd02798208b2d363e605434d10d739fe03e9c07f
refs/heads/master
2020-08-06T15:41:47.510747
2019-10-05T19:12:08
2019-10-05T19:12:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
import taichi as ti ti.runtime.print_preprocessed = True def test_scope(): # In the future the following code should throw an exception at the python front end # instead of crashing the compiler return for arch in [ti.x86_64, ti.cuda]: # ti.reset() ti.cfg.arch = arch x = ti.var(ti.f32) N = 1 ...
[ "yuanmhu@gmail.com" ]
yuanmhu@gmail.com
dcd595986262113e80ae7f4168553bdf37ea6ab5
03f1a5380641564750daa9c4de90e85e8e1c9c35
/notifier/signal.py
51d23490edad463787e514f13def9a6ded7100a9
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
stockec/siis
f4e4a792a1f6623030a3299f0978b681d7c85d52
82f54415b4ed82ff12d17a252dd6da32bc31a586
refs/heads/master
2020-07-18T11:28:26.411702
2019-09-01T22:01:59
2019-09-01T22:01:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,781
py
# @date 2018-08-07 # @author Frederic SCHERMA # @license Copyright (c) 2018 Dream Overflow # service worker class Signal(object): SIGNAL_UNDEFINED = 0 SIGNAL_SOCIAL_ENTER = 10 # broker copy position entry signal SIGNAL_SOCIAL_EXIT = 11 # broker copy position exit signal SIGNAL_SOCIAL_UPDATED...
[ "frederic.scherma@gmail.com" ]
frederic.scherma@gmail.com
91b5d980d481c438768b83a4d5b7df79eea6bc96
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractRemnancetlCom.py
2f4d11c779dbeaec9f911463a4b61cbe7a01a777
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
541
py
def extractRemnancetlCom(item): ''' Parser for 'remnancetl.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'translated'), ('Loiterous', 'Loiterous...
[ "something@fake-url.com" ]
something@fake-url.com
16f944de1e71ab6bfb26e39281def4a786a69efa
7a704e838d89f942a1099fec141f1fbe9828e528
/v2_plugin/example/maskrcnn-service/engine.py
030d0989e1e8c9dbb2e97a53f39056e2bf88d710
[ "Apache-2.0" ]
permissive
cap-ntu/Video-to-Retail-Platform
3ee00d22b7fd94925adac08c5ea733ee647f4574
757c68d9de0778e3da8bbfa678d89251a6955573
refs/heads/hysia_v2
2023-02-14T05:22:16.792928
2021-01-10T02:31:43
2021-01-10T02:31:43
212,741,650
63
20
Apache-2.0
2021-01-10T02:32:00
2019-10-04T05:22:08
Python
UTF-8
Python
false
false
2,754
py
import ssl from pathlib import Path from typing import Dict import numpy as np import torch from maskrcnn_benchmark.config import cfg from maskrcnn_benchmark.structures.bounding_box import BoxList from common.engine import BaseEngine from .mask_rcnn_predictor import COCODemo # cancel ssl certificate verify ssl._crea...
[ "YLI056@e.ntu.edu.sg" ]
YLI056@e.ntu.edu.sg
cf4e7fec26789b171a8ebaa8eabc49d62d29ff3c
ecbc02f304557c6069637f2871d4d4c9c3e04e98
/tests/core/test_source_map.py
56189b92496db80f7f6c3b9c500dbff0e3840aca
[ "MIT" ]
permissive
charles-cooper/vyper-debug
6b6e12ccc1ca9217caff7f21bc176b69d1bc8fc5
2678de107615c705a3e55edf811b23259990d1c4
refs/heads/master
2020-05-21T01:05:39.122973
2019-05-09T17:59:46
2019-05-09T17:59:46
185,847,661
1
0
MIT
2019-05-09T17:57:59
2019-05-09T17:57:59
null
UTF-8
Python
false
false
881
py
from vdb.source_map import produce_source_map def test_source_map_output(): code = """ a_map: map(bytes32, bytes32) @public def func1(a: int128) -> int128: b: int128 = 2 c: int128 = 3 g: bytes[10] return a + b + c + 1 @public def func2(a: int128): x: uint256 """ sm = produce_source_...
[ "jacques@dilectum.co.za" ]
jacques@dilectum.co.za
ea8866cc497b0eb9b862a1e59a2461097b8b4615
2469fc10932f11bb273fc6194b0c67779b6337f3
/1. 상수형 자료형/jump_to_Python_숫자형_5월_18일.py
e74a3289fb8d5209ea04451bb4c95eb2ccd8e4b7
[]
no_license
iopasd753951/Learn_Python
925d20bbcaa871ebdc427a4e0d31ee8e81c51f72
5488d0a8e4ebd8140a488f93d31bf7a13459daaf
refs/heads/master
2020-03-25T01:01:48.908415
2018-11-05T14:38:43
2018-11-05T14:38:43
143,218,566
1
0
null
null
null
null
UTF-8
Python
false
false
340
py
# coding: utf-8 # In[5]: a = int(input()) b = int(input()) c = int(input()) total = (a + b + c) // 3 print("점수 평균 :", total) # In[6]: a = 17 // 3 print(a) # In[7]: a = 17 % 3 print(a) # In[ ]: a = int(input()) if a % 2 == 0 : print("짝수") elif a % 2 == 1 : print("홀수") else : print("몰라")
[ "iopasd753951@gmail.com" ]
iopasd753951@gmail.com
dbe515b084f3cf998bb1cdf2e0a248687292e570
3428950daafacec9539a83809cf9752000508f63
/코딩테스트책/7-6.py
75ee8b86c6f39502de4fa3772176543822e986e7
[]
no_license
HyunAm0225/Python_Algorithm
759b91743abf2605dfd996ecf7791267b0b5979a
99fb79001d4ee584a9c2d70f45644e9101317764
refs/heads/master
2023-05-24T05:29:12.838390
2021-06-15T16:36:33
2021-06-15T16:36:33
274,587,523
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
# 이진 탐색 # 떡 자르기 문제 n, m = map(int,input().split()) array = list(map(int,input().split())) # 이진 탐색을 위한 시작점과 끝점 설정 start = 0 end = max(array) # 이진 탐색 수행(반복적) result = 0 while(start <=end): total = 0 mid = (start+end)//2 for x in array: # 잘랐을 때 떡의 양 계산 if x > mid: total += x - ...
[ "tlfgjawlq@naver.com" ]
tlfgjawlq@naver.com
24ff3174bfa172b59160d3c30a8b202d43863cd5
1b87d5f7cba7e068f7b2ea902bba494599d20a78
/experimental/modeswitch/x11vmode.py
65e6243a8af467c60e50248a8f876db8546c600e
[ "BSD-3-Clause" ]
permissive
jpaalasm/pyglet
906d03fe53160885665beaed20314b5909903cc9
bf1d1f209ca3e702fd4b6611377257f0e2767282
refs/heads/master
2021-01-25T03:27:08.941964
2014-01-25T17:50:57
2014-01-25T17:50:57
16,236,090
2
2
null
null
null
null
UTF-8
Python
false
false
7,453
py
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import ctypes import os import fcntl import mutex import time import select import struct import signal import sys import threading from pyglet.window.xlib import xlib import lib_xf86vmode as xf86vmode class ModeList(object): ...
[ "joonas.paalasmaa@gmail.com" ]
joonas.paalasmaa@gmail.com
157bf7e582510d1c353c498ec1b026dbd39bdb35
714cfd73f40383d6a8cde7144f56c8777fafe8e3
/src/misc/features/create_tsfresh.py
17491a3e84e3976649b1f9a54c33d16a0fea2547
[ "BSD-2-Clause" ]
permissive
Ynakatsuka/g2net-gravitational-wave-detection
bed60d39534b4aced1469964369b0fec17c7b7c7
482914a64e0140f27e0058202af1fdea06f7b258
refs/heads/main
2023-09-06T00:35:07.096235
2021-10-29T07:44:34
2021-10-29T07:44:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,834
py
import multiprocessing import os import warnings import hydra import pandas as pd import tsfresh from base import BaseG2NetFeatureEngineeringDataset, G2NetFeatureEngineering from omegaconf import DictConfig class TsFreshFeatures(BaseG2NetFeatureEngineeringDataset): def _engineer_features(self, signals): ...
[ "nk.tsssa@gmail.com" ]
nk.tsssa@gmail.com
c8f9ad715eef34b8164134cbcfba734dc4d275cf
161eee91b961e3387526772233c9c63239b4af8d
/travelproject/travelapp/views.py
36c603dfff29f9e9dfc316fad551faceb00f6a5f
[]
no_license
sreekripa/travell
5ead55c80068796e297c4bf126e89e7542bbfdfc
b8085d8aaca4bfb4c09c67adea14094c777724c8
refs/heads/master
2023-05-02T23:18:28.387407
2021-05-17T08:49:54
2021-05-17T08:49:54
368,113,199
0
0
null
null
null
null
UTF-8
Python
false
false
448
py
from django.http import HttpResponse from django.shortcuts import render from.models import place from.models import blog # Create your views here. def fun(request): obj=place.objects.all() ob=blog.objects.all() return render(request,"index.html",{'results':obj,'res':ob}) def add(request): num1=int(r...
[ "kripas1990@gmail.com" ]
kripas1990@gmail.com
6414416c57b15df463a316ab5eb47dfd60c206ad
ac1e944eb288c8b13a0bef0ee7de85ee6d30b4c0
/django/portfolio/portfolio/settings.py
76fb42fa653d4ce899544cb20f47fd381ab5663a
[]
no_license
Jayson7/random-projects
05dd175d00e9bd62cb39973c3439846f641675c8
cdbebb896a0ecea0de543f16ecf4661e519ec0bb
refs/heads/master
2023-06-19T01:54:08.339954
2021-07-19T01:40:09
2021-07-19T01:40:09
383,971,840
0
0
null
null
null
null
UTF-8
Python
false
false
3,783
py
from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key ...
[ "lexxiijoo70@gmail.com" ]
lexxiijoo70@gmail.com
e210432980b1cb9606281d024f148ab4962d8f97
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_211/266.py
73a2efd2c2aea6e7baf64b46d9dff97a79692c99
[]
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
3,588
py
import sys import time ### I/O wrapper ### class FileParser: """Read numbers/strings from file (or stdin by default), one line by one. """ def __init__(self, filepath=None, type=None): if filepath is None: self.fd = sys.stdin else: self.fd = open(filepath, type) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
07fc07bcebb263a435c469b86d08d4dc46022037
60cb975f3e0251c73c457271bce8a7b2036e422b
/studysrc/day01/testIf.py
cd4b701787955e49548fb8081304b49a80d6e252
[]
no_license
49257620/reboot
0a2341f23bc1a6f3ae47b59f772919228c623544
86b348228d1a25d78c45b0e9022d7c773544373b
refs/heads/master
2018-11-17T19:19:58.969710
2018-09-25T03:15:57
2018-09-25T03:15:57
125,727,532
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
# encoding utf-8 promote = input('看到西瓜了吗?(看到输入\'Y\'或者\'y\'):') money = 100.0 priceBaozi = 11.5 priceXigua = 23.8 print('>>>买了一斤包子,花费'+str(priceBaozi)+'元') money = money - priceBaozi if promote == 'Y' or promote == 'y': print('>>>买了一个西瓜,花费'+str(priceXigua)+'元') money = money - priceXigua print('剩余:' + str(mon...
[ "49257620@qq.com" ]
49257620@qq.com
7f5fad0d8b83d94bd6cdc61d8149280442be7b1a
71460b3fa81c386b99a260ccf59c109bcde3b953
/realtime_data_processor.py
2826b5f671b03c4c43341dc13008b15195657c8a
[ "MIT" ]
permissive
ec500-software-engineering/exercise-1-modularity-ZhibinHuang
831f07f31bfaa2a5c3b043e9fb66942208ca6020
ab36bf593fa61fe183c57af15a011d4353581d6d
refs/heads/master
2020-04-21T21:49:56.137069
2019-02-14T23:40:19
2019-02-14T23:40:19
169,891,502
1
0
null
null
null
null
UTF-8
Python
false
false
2,039
py
import time import random import threading from common_types import SensorDataType from common_types import Message, MessageUrgency class RealTimeDataProcessor(threading.Thread): def __init__(self, in_queue, notification_man): super().__init__() self._in_queue = in_queue self._notification...
[ "noreply@github.com" ]
ec500-software-engineering.noreply@github.com
568a052bbe4f8f62f7f7f617b5b3f6e9d966ea8a
a80e9eb7ade3d43ce042071d796c00dd10b93225
/ch_6/stars_data_dict2.py
8633d4020bddd3caec1f4b9297bb5e9acdc1657d
[]
no_license
ksjpswaroop/python_primer
69addfdb07471eea13dccfad1f16c212626dee0a
99c21d80953be3c9dc95f3a316c04b0c5613e830
refs/heads/master
2020-07-14T17:37:45.923796
2014-06-06T22:30:48
2014-06-06T22:30:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,415
py
# Exercise 6.13 infile = open('stars.dat', 'r') data = {} for line in infile.readlines()[1:]: words = line.split() name = ' '.join(words[:-3]) if words[-3] == '-': distance = '-' apparent_brightness = '-' else: distance = float(words[-3]) apparent_brightness = float(words...
[ "noahwaterfieldprice@gmail.com" ]
noahwaterfieldprice@gmail.com
8a2be07e1e5c38ef9e5fb4cc1ec1310b15899623
202be9ce15e7e41bad55e6bbe4d0c941ecbb6781
/1037 在霍格沃茨找零钱.py
e054872072ec15b2a83bb4a99f9fb821c4ae05fb
[]
no_license
junyechen/Basic-level
ae55ab4e13fd38595772786af25fcc91c055f28c
a6e15bc3829dfe05cefc248454f0433f8070cdfb
refs/heads/master
2020-04-29T08:01:21.936408
2019-07-06T04:16:14
2019-07-06T04:16:14
175,972,034
1
0
null
null
null
null
UTF-8
Python
false
false
1,445
py
''' 如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 —— 就如海格告诉哈利的:“十七个银西可(Sickle)兑一个加隆(Galleon),二十九个纳特(Knut)兑一个西可,很容易。”现在,给定哈利应付的价钱 P 和他实付的钱 A,你的任务是写一个程序来计算他应该被找的零钱。 输入格式: 输入在 1 行中分别给出 P 和 A,格式为 Galleon.Sickle.Knut,其间用 1 个空格分隔。这里 Galleon 是 [0, 10​7​​] 区间内的整数,Sickle 是 [0, 17) 区间内的整数,Knut 是 [0, 29) 区间内的整数。 输出格式: 在一行中用与输入同样的格式输出哈利应该被找的零钱。如...
[ "chenjunyeword@outlook.com" ]
chenjunyeword@outlook.com
f208947393151e0fea908eb59eb830d80620d0fe
b4916436d437d98f79ae2af4e56fa1acd5f84e7f
/pycozmo/robot.py
33d37092a81e8891be669da54fffd7932716207c
[ "MIT", "Apache-2.0" ]
permissive
VictorTagayun/pycozmo
b875f3e0008efeae39f3cea80418aee66af8511e
dd971aad2d32419deae00b1294922b416ba2e2b9
refs/heads/master
2020-07-30T07:22:21.715324
2019-09-13T09:32:51
2019-09-13T09:32:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,602
py
import math from . import util from . import protocol_encoder MIN_HEAD_ANGLE = util.Angle(degrees=-25) MAX_HEAD_ANGLE = util.Angle(degrees=44.5) MIN_LIFT_HEIGHT = util.Distance(mm=32.0) MAX_LIFT_HEIGHT = util.Distance(mm=92.0) LIFT_ARM_LENGTH = util.Distance(mm=66.0) LIFT_PIVOT_HEIGHT = util.Distance(mm=45.0) MA...
[ "zayfod@gmail.com" ]
zayfod@gmail.com
2f3bad0b23444dbe7cdadc422637b213f444f4f0
7f21abecb951371885ca007bd24eebbb61e8d0a0
/lesson_012/python_snippets/04_queues.py
81fbb8e8c8b542f08790a434e6a058aaf9c808bf
[]
no_license
zaboevai/python_base
a076b0d8798f103347dddcf0be0d09fb02815609
c689568c926db5ff4f9cdb4f5c335fac7a434130
refs/heads/develop
2022-11-25T11:04:21.678107
2021-06-09T19:48:52
2021-06-09T19:48:52
191,818,125
23
18
null
2022-11-22T07:57:23
2019-06-13T19:01:48
Python
UTF-8
Python
false
false
4,284
py
# -*- coding: utf-8 -*- # Кроме блокировок и примитивов синхронизации существует еще один способ обмена данными между потоками. # Это очереди - Queue - https://docs.python.org/3.6/library/queue.html # В очередь можно положить элемент и взять его. Queue гарантирует что потоки не помешают друг другу # - операции очереди...
[ "you@example.com" ]
you@example.com
0e4a1d59e13199cb3b7d2caf6557074911679da9
da9cbae7c2b9789951874f4b2dd9eba990753bbd
/run2018/crab_V0cumu_HIMB2018_Ks_SBPos_Mid_sysMCBias_v1.py
cdc96fb1d89a9fba410816b27db346a1d6940c11
[]
no_license
BetterWang/QWCumuDiff
d0be53a87dd345153b603a16617f572d5adc288c
cccb286bb9ee4b9cb3aa78cc839ae993c66624f1
refs/heads/master
2021-09-13T01:30:37.988189
2021-08-25T13:36:57
2021-08-25T13:36:57
81,896,082
0
0
null
null
null
null
UTF-8
Python
false
false
2,008
py
from CRABAPI.RawCommand import crabCommand from CRABClient.UserUtilities import config from CRABClient.ClientExceptions import ClientException from httplib import HTTPException config = config() config.General.requestName = 'HIMB0_V0Cumu_Ks_SBPos_Mid_sysMCBias_v2' config.General.workArea = 'CrabArea' config.General.t...
[ "BetterWang@gmail.com" ]
BetterWang@gmail.com
841dc8000e963e39aa4a57d8541acaba350bf449
2b8c88dfee5c5a784357515eafe8cd5f997c8774
/leetcode/54.spiral-matrix.py
a4bbfff15df9fe1594001407e0139df5d8c37fd6
[]
no_license
archenRen/learnpy
e060f3aa2f77c35fc1b12345720af6c8b528da57
934ef76b97297f746a722a48c76672c7bc744cd9
refs/heads/master
2022-04-28T20:25:59.114036
2020-05-03T02:16:03
2020-05-03T02:16:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
# # @lc app=leetcode id=54 lang=python3 # # [54] Spiral Matrix # # https://leetcode.com/problems/spiral-matrix/description/ # # algorithms # Medium (31.36%) # Likes: 1345 # Dislikes: 450 # Total Accepted: 264.2K # Total Submissions: 842.4K # Testcase Example: '[[1,2,3],[4,5,6],[7,8,9]]' # # Given a matrix of m x...
[ "wangdi03@ppdai.com" ]
wangdi03@ppdai.com
7bd4527bda1c4953bf8f336080c3691c2b70fad9
0f30dbffc77960edf69fa18c78c6d1a1658bb3dc
/tests/test_cu_linear_operator.py
3ad17786ed37a887b11b56d0139e1ac2267065ec
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ameli/imate
859c5ed35540cc44058cd908ce44485487acd041
de867f131a4cda7d60a68bf0558e896fae89d776
refs/heads/main
2023-08-29T07:03:53.512434
2023-08-15T23:39:30
2023-08-15T23:39:30
308,965,310
5
1
null
null
null
null
UTF-8
Python
false
false
1,169
py
#! /usr/bin/env python # SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu> # SPDX-License-Identifier: BSD-3-Clause # SPDX-FileType: SOURCE # # This program is free software: you can redistribute it and/or modify it # under the terms of the license found in the LICENSE.txt file in the root # d...
[ "sia.sunrise@gmail.com" ]
sia.sunrise@gmail.com
b5c178156f40eedcd15619cedc40e1807107e05c
82fce9aae9e855a73f4e92d750e6a8df2ef877a5
/Lab/venv/lib/python3.8/site-packages/OpenGL/GL/ARB/texture_buffer_range.py
7d62ab26b7cb24e42b8cd5f95489e5d880249a37
[]
no_license
BartoszRudnik/GK
1294f7708902e867dacd7da591b9f2e741bfe9e5
6dc09184a3af07143b9729e42a6f62f13da50128
refs/heads/main
2023-02-20T19:02:12.408974
2021-01-22T10:51:14
2021-01-22T10:51:14
307,847,589
0
0
null
null
null
null
UTF-8
Python
false
false
1,228
py
'''OpenGL extension ARB.texture_buffer_range This module customises the behaviour of the OpenGL.raw.GL.ARB.texture_buffer_range to provide a more Python-friendly API Overview (from the spec) ARB_texture_buffer_object (which was promoted to core in OpenGL 3.1) introduced the ability to attach the data store of a...
[ "rudnik49@gmail.com" ]
rudnik49@gmail.com
58f2641de9afc33cf7980ff3ad484fd18b82cdfe
3f566babc0230a9d1d2a8ab6a4f0fee9bf2f497b
/tools/mayaCore/cmds/pSets.py
e162540227c1b10025df837e4030443add8ac9ad
[]
no_license
snaress/studio_dev
3118e6d7b5ab7e9f7f318cf0c2c4145ad61d5f7f
a58608922abe1d47bf3d807c5db11e265aad85a2
refs/heads/master
2021-01-21T13:17:58.396068
2016-04-25T00:42:27
2016-04-25T00:42:27
51,249,314
0
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
try: import maya.cmds as mc except: pass def getAllSets(suffixes=None): """ Get all sets ending with given suffixes :param suffixes: Set suffixes :type suffixes: list :return: Sets list :rtype: list """ setList = [] for s in mc.ls(type='objectSet') or []: for ext i...
[ "jln.buisseret@gmail.com" ]
jln.buisseret@gmail.com
572594fbea40e8ffdd3e9a85fce23c0041774610
ca4e57a6861f1e24d1521bf5b775aee3b6db7725
/lex1.py
1d60b17dd7ce6380a7e868149f8d16909811c278
[]
no_license
mathi98/madhu
e296a477f3684a596c74a228c9ce867f1f60c3f8
cae2adb19ccf7c7f12212d694cd0d09614cd5d81
refs/heads/master
2020-05-23T01:06:54.830389
2019-06-28T14:13:07
2019-06-28T14:13:07
186,582,298
0
2
null
null
null
null
UTF-8
Python
false
false
183
py
k=int(input()) l=list(map(str,input().split())) a=sorted(l,key=len) for i in range(len(a)-1): if len(a[i])==len(a[i+1]) and a[i]>a[i+1]: a[i],a[i+1]=a[i+1],a[i] print(*a)
[ "noreply@github.com" ]
mathi98.noreply@github.com
90af24bb6ece2824041e3e25a9bab47b6f3f620d
ad14c9b6454c3e8e657e994914bdfe97c2188c22
/oostepbystep/person.py
ed964445701ac3ae80004664d035181f4263c8b3
[]
no_license
woodyyan/twa-python-bootcamp
1e6ecdac10a7fb3366ce7180eae93678afe1d9a8
3ef20a88e6954662e227ccf804b76ebc5fb6d74d
refs/heads/master
2020-09-12T13:23:02.585373
2019-12-25T12:24:33
2019-12-25T12:24:33
222,439,401
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
class Person: def __init__(self, name, age): self.name = name self.age = age def introduce(self): return 'My name is %s. I am %s years old.' % (self.name, self.age)
[ "colorguitar@hotmail.com" ]
colorguitar@hotmail.com
2b5f99242912f7e6a226598779f4b87dc13a02f9
762c28b8cda476574d71453701d90caf56973556
/network/loss_lib.py
8b9b49cbad66a3cc2ee3da483ed518f89e61978b
[]
no_license
RuiLiFeng/code
cf480e6f4ad598512b8147374687c6a379a9dc43
6bc288bd7d9e3dfc7f6847aaaa12bcf21f4950de
refs/heads/master
2020-07-11T19:52:45.847382
2019-09-02T13:57:35
2019-09-02T13:57:35
204,631,332
2
1
null
null
null
null
UTF-8
Python
false
false
6,058
py
# coding=utf-8 # Copyright 2018 Google LLC & Hwalsuk Lee. # # 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 ...
[ "frl1996@mail.ustc.edu.cn" ]
frl1996@mail.ustc.edu.cn
7b59590b96288ab93d3835dd03615e1183066465
ab00b17a719d02ef7eea2189b052787b5dc3f3e1
/jsk_arc2017_common/scripts/install_data.py
a29ba3942b2439d13ed1730325a124d43ba226ed
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
708yamaguchi/jsk_apc
aa826cd991dbde43327887d03f686d278e37b8f1
b5d0c08f9a8628237b2c7fcf1d4fb60a632d99cb
refs/heads/master
2021-01-17T21:15:56.575294
2017-06-30T04:24:47
2017-06-30T05:41:40
84,169,587
0
0
null
2017-07-23T07:38:15
2017-03-07T07:39:52
Common Lisp
UTF-8
Python
false
false
1,190
py
#!/usr/bin/env python import multiprocessing import jsk_data PKG = 'jsk_arc2017_common' def download_data(path, url, md5): p = multiprocessing.Process( target=jsk_data.download_data, kwargs=dict( pkg_name=PKG, path=path, url=url, md5=md5, ...
[ "www.kentaro.wada@gmail.com" ]
www.kentaro.wada@gmail.com
85d948583795cd31b49710278b255196b01efc9a
73330107dd79b9973e7fbcd9aeda8039690139c6
/Word Break.py
46e17ae0c2f22f0f9bdf0737cf3597433dfd68e4
[]
no_license
nithinveer/leetcode-solutions
2f908cd204c130034def8934d41ef6869029a403
196e58cd38db846653fb074cfd0363997121a7cf
refs/heads/master
2021-06-25T22:28:50.391671
2021-04-20T07:04:19
2021-04-20T07:04:19
219,891,708
0
2
null
null
null
null
UTF-8
Python
false
false
1,862
py
class Solution(object): def __init__(self): self.found = False self.memo = {} def dfs(self, tmp, idx): # print(tmp,idx) #base case if tmp in self.wordDict and idx == len(self.s)-1: print(tmp, idx) self.found = True return True ...
[ "nithinveer@iitj.ac.in" ]
nithinveer@iitj.ac.in
76c2bec4f5e99360815ec228c4951542e0b41029
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/CJ/16_0_1_AndriyM_problem_a.py
4457b1d99d97d7ebbca30cc6d77b89935bc71794
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
689
py
def digits(n): return set(map(int, str(n))) def last_seen(n): max_mult = 1000 digs = digits(n) current_mult = 1 while current_mult < max_mult and len(digs) < 10: current_mult += 1 digs = digs | digits(n*current_mult) if len(digs) == 10: return str(current_mult*n) ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
511a86f6ac8020ec418a0b6a7242cf42893a18d8
fe2ac50a9b03ae6b43ee12676799a3ae51495310
/venv_coupe/Scripts/pip-script.py
73b270447d1f10e8b0533c078a061ac573264c91
[]
no_license
rvfedorin/CoupeCounter
482faaaaa005b64b26b7939d1b98810f19cb1b6b
86caeaa34dbfe71c7f8b76b8db9ee92e5dd0532e
refs/heads/master
2020-03-30T01:53:16.502119
2018-10-05T09:40:10
2018-10-05T09:40:10
150,600,160
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
#!C:\Users\Wolf\PycharmProjects\coupe_count\venv_coupe\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip' __requires__ = 'pip==9.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys...
[ "35657347+rvfedorin@users.noreply.github.com" ]
35657347+rvfedorin@users.noreply.github.com
a167c98b6d931efedb00c817e8c755d196939060
7087a5dd1772c9456f098bc024a894dcaeef5432
/backup/build/new-calkube/kubernetes-6.0.0_snapshot-py2.7.egg/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py
27c1aca77257c666ab13d4af8626047f70c14a6a
[]
no_license
santhoshchami/kubecctl-python
5be7a5a17cc6f08ec717b3eb1c11719ef7653aba
cd45af465e25b0799d65c573e841e2acb983ee68
refs/heads/master
2021-06-23T11:00:43.615062
2019-07-10T16:57:06
2019-07-10T16:57:06
145,669,246
0
0
null
null
null
null
UTF-8
Python
false
false
6,939
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.10.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
[ "root@kube-node02.local" ]
root@kube-node02.local
c5d18fc4ec58ba588b22d10547e718a9c6c64f06
9644567f9cd3415e6c8b1470fde72ab178bb8eb0
/flask/lib/python2.7/site-packages/flask_ponywhoosh/views.py
45f5a9aeb475a8bb6957dc593b119433011ad8a6
[ "Apache-2.0" ]
permissive
Ahmad31/Web_Flask_Cassandra
01d44ee03fcb457ea3a01629f6fd29870663b8ff
76acb074fce521e904f3b2a41e6ab69571f4369e
refs/heads/master
2021-06-10T02:42:53.494515
2019-11-27T16:22:48
2019-11-27T16:22:48
88,625,344
3
1
Apache-2.0
2021-03-19T22:23:05
2017-04-18T12:59:21
Python
UTF-8
Python
false
false
3,007
py
''' flask_ponywhoosh.views module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Perform full-text searches over your database with Pony ORM and PonyWhoosh, for flask applications. :copyright: (c) 2015-2017 by Jonathan Prieto-Cubides & Felipe Rodriguez. :license: MIT (see LICENSE.md) ''' import re from pprint imp...
[ "aku.anwar.aan@gmail.com" ]
aku.anwar.aan@gmail.com
4d75e4757f1aec208f56653737558c8d8f20f81c
9a50339b63586a405d16acf732f877d17742f45b
/phase/migrations/0003_phasesubcategory_category.py
488d0763a9d715cb7a1161ce37f23b6542996d66
[]
no_license
ahsanhabib98/PPPsPerformance
777798caa1e41fbcf9d084b8166cae2e9628b3ef
1a9af5eb447cac81f9dc929a74e3fddf21d87588
refs/heads/master
2020-04-22T23:35:52.842941
2019-02-14T19:51:03
2019-02-14T19:51:03
170,747,015
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
# Generated by Django 2.0.5 on 2019-01-29 15:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('phase', '0002_auto_20190129_2108'), ] operations = [ migrations.AddField( model_name='phasesubc...
[ "ahredoan@gmail.com" ]
ahredoan@gmail.com
75a1839ac3f3ee5ea8197ccce4cc2e3fc8b2821b
1462c42bef31c022040b4cae73a96d852e857b51
/loaner/web_app/backend/api/shelf_api.py
de3b892d75dd8ee46ea078402abd727c6ff6615c
[ "Apache-2.0" ]
permissive
Getechsupport/getechgraband-go
f5e54754a2f300bfd2c8be54edd386841c5fae6c
6d2a040ef9617fabd8c691ec1c787cf5ec9edb73
refs/heads/master
2022-08-17T12:11:06.299622
2020-03-10T16:22:34
2020-03-10T16:22:34
243,598,161
0
0
Apache-2.0
2022-07-07T17:22:55
2020-02-27T19:21:54
Python
UTF-8
Python
false
false
8,087
py
# Copyright 2018 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 by applicable law or a...
[ "email" ]
email
2e257e337febe1511c2d9627bf695efa744fc08f
b3e9a8963b9aca334b93b95bc340c379544e1046
/euler/53.py
848c9371fe27dc537186b3b102125dfaaa2271db
[]
no_license
protocol7/euler.py
86ea512c2c216968e6c260b19469c0c8d038feb7
e2a8e46a9b07e6d0b039a5496059f3bf73aa5441
refs/heads/master
2022-09-08T22:49:47.486631
2022-08-23T20:07:00
2022-08-23T20:07:00
169,478,759
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
#!/usr/bin/env python3 from functools import lru_cache @lru_cache(maxsize=None) def factorial(n): if n == 1: return 1 return n * factorial(n-1) assert 24 == factorial(4) def combos(n, r): return factorial(n) / (factorial(r) * factorial(n - r)) assert 1144066 == combos(23, 10) def find(): c...
[ "niklas@protocol7.com" ]
niklas@protocol7.com
258d8ef0453118d55ac07e5b1516bb5578fe9f11
646cadb1c72ef4a060343baf2fcbe271958b6878
/tigerjython/Pi2GoEx/Ligth1a.py
36d10f7d5715c2c72b027fbe61929c76909918e4
[]
no_license
tigerjython/tjinstall
bd75cf8e4ae27b639a13865ef1ec5710391a2938
aab61519b5299c2ab4f423c6fc5d8ea7c7860a99
refs/heads/master
2021-01-17T08:53:50.386905
2018-01-12T06:56:28
2018-01-12T06:56:28
40,659,466
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
# Light1a.py from raspibrick import * def onDark(value): print "dark event with v:", value def onBright(value): print "bright event with v:", value robot = Robot() ls = LightSensor(LS_FRONT_LEFT) while not robot.isEscapeHit(): continue robot.exit() print "All done"
[ "support@tigerjython.com" ]
support@tigerjython.com
a51bcd3afd92f603fd92b6ce8517474dbb4ae72b
d741f71eb48b23fdda1339daee10ccb039da1ee6
/leetcode7.py
f66dd37a370eca0129bd9f10c89bc749bd2596fd
[]
no_license
HawkinYap/Leetcode
a5b42bf3aa41e7f1ba60a5a804909035fa8e1ec9
5e7bc7368db4dfcd8597dc0462a8a0b5bfd46e54
refs/heads/master
2020-06-30T07:15:24.453955
2020-04-18T07:38:22
2020-04-18T07:38:22
199,663,089
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
class Solution: def reverse(self, x): """ :type x: int :rtype: int """ strx = str(x) if strx[0] == '-': strx = strx[len(strx)-1:0:-1] if int(strx) < 2 ** 31-1: return(-int(strx)) else: return(0) ...
[ "Gallowsgogo@gmail.com" ]
Gallowsgogo@gmail.com
a0babf5d131fe0f8d29fd070ae89e73f9667fea3
9e4f5cf305e818caccb543b9b0c60876afc682c2
/Python-Matic-SDK/examples/deploy.py
7f36ee16da523d8d51697000b451f539e59d4dba
[ "MIT" ]
permissive
bellyfat/Matic-for-python-developers
1ed2062e1826d7847ade449d47a311901c1b53dd
ea33737a89384ce9e6f6dc97b12f0a608994e28d
refs/heads/main
2023-07-16T04:48:19.934602
2021-09-12T15:21:09
2021-09-12T15:21:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
from maticvigil.EVCore import EVCore evc = EVCore(verbose=False) r = evc.deploy( contract_file='microblog.sol', contract_name='Microblog', inputs={ '_ownerName': 'anomit', '_blogTitle': 'TheBlog' } ) print('Contract Address deployed at') print(r['contract'])
[ "noreply@github.com" ]
bellyfat.noreply@github.com
cc01ee431f998edf052d5fb58191cf1d5e445aa9
aa91f6e8d59286f65e7f6ed065823c80b7694439
/scripts/lab/fasttext/f1.py
80a8f85cdbe7ed8c70a4524cd5fa968237443bd0
[ "MIT" ]
permissive
davidyuqiwei/davidyu_stock
7f93bcc2c50a0e2c356e3b517dbf7e2e7467093f
c234911f49d5980f2dff651333f8ca957333e094
refs/heads/master
2023-01-07T02:08:04.330559
2023-01-02T16:31:37
2023-01-02T16:31:37
163,694,812
13
2
null
2022-12-18T03:55:10
2018-12-31T20:07:30
Jupyter Notebook
UTF-8
Python
false
false
8,678
py
# _*_ coding:utf-8 _*_ ''' @Author: Ruan Yang @Date: 2018.12.9 @Purpose: 处理wikizh文本的二分类问题,判断语句是否通顺 @Attention: 本例中的负样本是 shuffle 正样例得到,所以容易形成分类 @算法:CNN @本例是二分类问题 ''' import codecs paths=r"/home/davidyu/gits/fastText-Study" train_data_name="train.txt" test_data_name="test.txt" x_train=[] x_test=[]...
[ "davidyuqiwei@outlook.com" ]
davidyuqiwei@outlook.com
a05d56db574368bf8580a4bd6667b10b1c1cae4d
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/smsdroid/testcase/firstcases/testcase7_000.py
9a66eb49f61b413902721cb5c99ff03f5fba9cc3
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
7,530
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
635db05bfab567250fafbb0dbbf2098cf6aebaad
2324dea2cb3003c8ab7e8fd80588d44973eb8c77
/Euler_1_31a.py
92b658671b702b3c61f6fb98880583468f309a1e
[]
no_license
MikeOcc/MyProjectEulerFiles
5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56
4d066d52380aade215636953589bf56d6b88f745
refs/heads/master
2021-01-16T18:45:44.133229
2015-05-27T18:28:43
2015-05-27T18:28:43
5,876,116
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
# # Euler 31 # # from itertools import * #print list(product([200,100,50,20,10,5,2,1] , repeat = 200)) cur = [100, 50, 20, 10, 5, 2, 1] fac = [ 2, 4, 10, 20, 40, 100, 200] val = 200 ctr = 8 cntdown = 8 cnt = 200 for i in range(0,2): cnt-=i*cur[0] print cnt,cur[0] if cnt == 0: cnt = 200 ...
[ "mike.occhipinti@mlsassistant.com" ]
mike.occhipinti@mlsassistant.com
64900c6259cb79e029298d9d679b01edffaba0e0
66b13f9aa90bb0091684334c68a574c390fb58a1
/gen-cards.py
2f95a50ff3eee68a49acce58d153ab71aa31fb67
[ "MIT" ]
permissive
sugar-activities/4246-activity
d67c8038698b4fd5dab19ff9bf9ea2c3647692e8
5ddd5fe21b2ddfc5f926e434b7f8a23e20f54263
refs/heads/master
2021-01-19T23:14:32.545612
2017-04-21T05:05:53
2017-04-21T05:05:53
88,937,416
0
0
null
null
null
null
UTF-8
Python
false
false
6,603
py
# -*- coding: utf-8 -*- #Copyright (c) 2009, Walter Bender #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 #to use, copy, modify, me...
[ "ignacio@sugarlabs.org" ]
ignacio@sugarlabs.org
ea08b87bbcf0c0cf423313d7133d5767e513cc77
e73f0bd1e15de5b8cb70f1d603ceedc18c42b39b
/adventOfCode/2018/25/25.py
361d1e18d2d39530b5332aaf11d459fb81790990
[]
no_license
thran/the_code
cbfa3b8be86c3b31f76f6fbd1deb2013d3326a4a
ba73317ddc42e10791a829cc6e1a3460cc601c44
refs/heads/master
2023-01-05T14:39:16.708461
2022-12-25T08:37:39
2022-12-25T08:37:39
160,978,160
2
0
null
null
null
null
UTF-8
Python
false
false
705
py
import queue import pandas as pd import numpy as np df = pd.read_csv('input.txt', header=None) distances = df.loc[:, :4] df['selected'] = False df['constellation'] = None value = 3 c = 0 while (~df.selected).sum() > 0: x = df.index[~df.selected][0] q = queue.Queue() q.put(x) c += 1 df.loc[x, ...
[ "thran@centrum.cz" ]
thran@centrum.cz
ae9068dfc07c4682726c4eb7283a242f767290cd
17ebca3c537e27bb1dff0d8f047ad63c1d7ebcf0
/Tests/goldman_02.22.2021.py
ddb9353ab5e51c092092c223b1b2d5b46d2d4272
[]
no_license
reading-stiener/For-the-love-of-algos
ad95283b55bfaf112302bf187fe0cefd6104f3f7
d6f0d0985ac124eeb5ad1caee8563d3d0f186a25
refs/heads/master
2023-03-07T10:51:31.851212
2021-02-23T05:27:08
2021-02-23T05:27:08
292,468,905
1
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
def numOfIds(pool): count_eights = pool.count("8") count_rest = len(pool) - count_eights group_tens = count_rest // 10 if count_eights <= group_tens: return count_eights else: eights_less = 11 - count_rest % 10 if count_eights - group_tens >= eights_less: return ...
[ "apradha1@conncoll.edu" ]
apradha1@conncoll.edu
d53bc612dcccd471686a70bf5243cfdd00224af9
1f41b828fb652795482cdeaac1a877e2f19c252a
/maya_menus/_MAINMENU_PMC_Rigging/28.Constraint/10.Tangent Constraint( curve, upObject, targets ).py
189af8a0a6847beda077c61b234044b4bb945a5c
[]
no_license
jonntd/mayadev-1
e315efe582ea433dcf18d7f1e900920f5590b293
f76aeecb592df766d05a4e10fa2c2496f0310ca4
refs/heads/master
2021-05-02T07:16:17.941007
2018-02-05T03:55:12
2018-02-05T03:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
from sgMaya import sgCmds import pymel.core sels = pymel.core.ls( sl=1 ) curve = sels[0] upObject = sels[1] targets = sels[2:] for target in targets: sgCmds.tangentConstraint( curve, upObject, target )
[ "kimsung9k@naver.com" ]
kimsung9k@naver.com
d1034770b6e251685d6bebfce77b1a4c9de647a3
d7ccb4225f623139995a7039f0981e89bf6365a4
/.history/mall/settings_20211012161345.py
b5f7915f5c98d58a5332fffcaf4ae14c3dbc5b92
[]
no_license
tonnymuchui/django-mall
64fd4abc3725c1bd0a3dcf20b93b490fe9307b37
55c083d8433be3c77adc61939cd197902de4ce76
refs/heads/master
2023-08-23T04:59:20.418732
2021-10-13T15:59:37
2021-10-13T15:59:37
415,668,388
1
0
null
null
null
null
UTF-8
Python
false
false
4,187
py
""" Django settings for mall project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import django_he...
[ "tonykanyingah@gmail.com" ]
tonykanyingah@gmail.com
6cc0eea8dd978ecbdfed41def4734537c2ada346
4bcb9dd0701dacd001cace60e0d6543c86b4ef4b
/PostYourFoodAd/migrations/0003_auto_20170422_1232.py
709fc44f49897fcf4f4e28ae44ad572807f80baf
[]
no_license
kbidve/Hostelied_commit
8576d317060021fec68cbcf5051b2bc32e461aba
2d439ab979dcb38c9cfa156799d194ab50f964bf
refs/heads/master
2021-01-22T20:34:52.827418
2017-05-19T14:46:45
2017-05-19T14:46:45
85,331,991
0
0
null
null
null
null
UTF-8
Python
false
false
2,071
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-22 12:32 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('UserAdministrator'...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
fc3413eab8a3777a066cf659f7a1f321ad1121b6
cb7c3673ad937c282a39be74d0aee8628e75928d
/tests/test_scripts/test_gen_jsonld.py
d38e0436a0414fd74dea9cbb7fa269db34e04ed9
[ "CC0-1.0" ]
permissive
bpow/linkml
649d6d48f39a8c51efa92fba7eb25c1d8854b472
ab83c0caee9c02457ea5a748e284dee6b547fcd6
refs/heads/main
2023-05-05T18:46:04.501897
2021-05-13T21:17:03
2021-05-13T21:17:03
371,163,928
0
0
CC0-1.0
2021-05-26T20:42:13
2021-05-26T20:42:12
null
UTF-8
Python
false
false
4,620
py
import os import re import unittest # This has to occur post ClickTestCase from functools import reduce from typing import List, Tuple import click from rdflib import Graph, URIRef from linkml import METAMODEL_NAMESPACE from linkml.generators.jsonldcontextgen import ContextGenerator from linkml.generators import json...
[ "solbrig@jhu.edu" ]
solbrig@jhu.edu
a063a23ba0ef1a9b820232f028f24b1b463d0067
a6fd4108016deab24ed5e4d528a4c009b597bf01
/info_manager/migrations/0005_auto_20190927_1057.py
db9f59b6a8145a322760a05e004c10fbf5330d38
[ "Apache-2.0" ]
permissive
UniversitaDellaCalabria/info-manager
2da8f4087ed180c05a710a7d17dff7e71814dac9
f4be641467f65d591ec28bbdf6ed681cdfed0e80
refs/heads/master
2022-12-04T17:56:56.349256
2022-01-05T22:50:12
2022-01-05T22:50:12
198,625,639
1
0
Apache-2.0
2022-11-22T09:47:21
2019-07-24T11:51:11
Python
UTF-8
Python
false
false
648
py
# Generated by Django 2.2.2 on 2019-09-27 08:57 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('info_manager', '0004_itemtranslation'), ] operations = [ migrations.AddField( model_name='item', ...
[ "giuseppe.demarco@unical.it" ]
giuseppe.demarco@unical.it
a9947e37c78fdb42ea17249f91dbf7f64fc41328
a708f1d36586d2b01c99f2cb44aa4612b10192f6
/bfs/733图像渲染.py
7dabfbbb5f104bfb03e623af54d96f324c7e0529
[]
no_license
LeopoldACC/Algorithm
2477e8a371e9cdc5a47b582ca2a454539b96071e
fc1b0bec0e28d31e9a6ff722b3a66eacb0278148
refs/heads/master
2023-01-25T02:28:14.422447
2020-12-03T15:01:10
2020-12-03T15:01:10
197,297,197
2
0
null
null
null
null
UTF-8
Python
false
false
662
py
class Solution: def floodFill(self, image: List[List[int]], sr: int, sc: int, newColor: int) -> List[List[int]]: if not image: return image dirs = [(-1,0),(1,0),(0,-1),(0,1)] q = collections.deque([(sr,sc)]) ori = image[sr][sc] m,n = len(image),len(image[0]) ...
[ "zhenggong9831@gmail.com" ]
zhenggong9831@gmail.com
99fc9c9e5797d077f8302e1cc617697317de6463
e23778e9cbedd6a9fcd28eb4263dab33da4a2d5a
/clowningaround/urls.py
80d331a8cd46688fc9c8832a1a1843527b1e6924
[]
no_license
eustone/clowingaround
92667e2580c80dddf4489a1724d44e8c9823e215
1723d9aa5645510f711f0ab6478174b0aa66d84e
refs/heads/master
2022-12-09T02:35:24.270583
2020-04-03T07:08:38
2020-04-03T07:08:38
252,653,240
0
0
null
2022-12-08T03:58:11
2020-04-03T06:44:31
Python
UTF-8
Python
false
false
1,065
py
"""clowningaround URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
[ "emalaya@gmail.com" ]
emalaya@gmail.com
fc54124378398c17d473cfeb673ecf5b28789142
cdf4e1b9db499766780d28762f6c71ac2e438a90
/getting_file_dates.py
fff141b456cacfb572b9bc589156326889adbecf
[]
no_license
sa-i/20200414py3interm
cd33af18bbb6b4ac98308905244cf71b014666e9
6bcb0a871f3894f4eb1a53b792ea5cc849d302e7
refs/heads/master
2022-05-09T08:52:11.242286
2020-04-17T21:57:45
2020-04-17T21:57:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
#!/usr/bin/env python import os from datetime import datetime for file_name in os.listdir(): if file_name.endswith('.py'): raw_file_timestamp = os.path.getmtime(file_name) file_timestamp = datetime.fromtimestamp(raw_file_timestamp) print(file_timestamp.date(), file_name)
[ "jstrickler@gmail.com" ]
jstrickler@gmail.com
b8e48ca6481e0eb739d7e2645271b4d774c19b9a
27c04f9daf823c851bef35f91d261c677295d00c
/backend/asgi.py
185382269e27551e31283442e62bb9840e7e8111
[]
no_license
wlgud0402/crawling_estate_stock_backend
865e6ed8811892c0823a8ac2cd11dba45dcdca2e
dfe2e06ccc3e993fd8cf9fe641d1aed097e375ad
refs/heads/master
2023-04-29T16:13:03.224377
2021-05-25T15:48:57
2021-05-25T15:48:57
349,053,194
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings') application = get_asgi_application()
[ "wlgudrlgus@naver.com" ]
wlgudrlgus@naver.com
dac54cc515d226209428a3bc5cc34eb7813b2419
8eab8ab725c2132bb8d090cdb2d23a5f71945249
/virt/Lib/site-packages/jedi/third_party/typeshed/third_party/2/tornado/httpclient.pyi
16bdb2856786d54de4bf56a7c7a95877725004ff
[ "MIT", "Apache-2.0" ]
permissive
JoaoSevergnini/metalpy
6c88a413a82bc25edd9308b8490a76fae8dd76ca
c2d0098a309b6ce8c756ff840bfb53fb291747b6
refs/heads/main
2023-04-18T17:25:26.474485
2022-09-18T20:44:45
2022-09-18T20:44:45
474,773,752
3
1
MIT
2022-11-03T20:07:50
2022-03-27T22:21:01
Python
UTF-8
Python
false
false
3,219
pyi
from typing import Any from tornado.util import Configurable class HTTPClient: def __init__(self, async_client_class=..., **kwargs) -> None: ... def __del__(self): ... def close(self): ... def fetch(self, request, **kwargs): ... class AsyncHTTPClient(Configurable): @classmethod def configurab...
[ "joao.a.severgnini@gmail.com" ]
joao.a.severgnini@gmail.com
162669aaa9caa5ed418da539dc6c63763eae311f
61361b4338c7434ae5fcfb225ef327c0e5bc7b5e
/etsydb/etsy/migrations/0003_auto_20151206_0002.py
b89556d6baba547e97cf83f04c93ade61426a01d
[]
no_license
mdamien/scrapy-etsy
a253284f6bcfc1cd04f551ddfb6d0cdb9bf0a9c3
3c379b4dafa181f11007c2e6902bb2689140a335
refs/heads/master
2021-01-10T07:31:03.894077
2016-01-23T22:32:14
2016-01-23T22:32:14
47,045,325
1
1
null
null
null
null
UTF-8
Python
false
false
608
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-06 00:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('etsy', '0002_auto_20151206_0001'), ] operations = [ migrations.AlterField( ...
[ "damien@dam.io" ]
damien@dam.io
803f20b222f2a786b77c9b6d52e761c321aa2191
5ea136ca2e8066b77b39afdf15e3d0e6bc74761f
/scripts/generate-solve-files.py
dd2e19d28cb4d8b659ccf6ea89552ca96714641b
[]
no_license
reneang17/ttbar
4023421846a70c22c13a2962520f7723ad35636b
75f4fff1b5d79af097ea04aab437e2963215a232
refs/heads/master
2020-06-12T15:07:11.918815
2019-06-28T22:24:07
2019-06-28T22:24:07
194,339,531
0
0
null
null
null
null
UTF-8
Python
false
false
4,010
py
#!/usr/bin/env python3 # # todo: # import argparse import os import re import pickle import stat import pyIdSolver parser = argparse.ArgumentParser() parser.add_argument("file", \ help="list of prototypes to be solved") parser.add_argument("--num", "-n", action="store_true",\ ...
[ "reneang17@gmail.com" ]
reneang17@gmail.com