blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
4188b479296f9b5cdedef51d037e67878b1fb803
b627da650f75bdcf7e0dc0ef5c4419cf53a1d690
/src/zqh_devices/zqh_ddr_mc/zqh_ddr_mc_main.py
cb205c53a770ca03b57ecfbad6ffb45dbb02a6fd
[]
no_license
Jusan-zyh/zqh_riscv
4aa8a4c51e19fb786ba0c2a120722f1382994a52
bccde2f81b42ac258b92c21bb450ec6ff848387a
refs/heads/main
2023-08-06T12:56:52.420302
2021-09-21T01:25:41
2021-09-21T01:25:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,949
py
from phgl_imp import * from .zqh_ddr_mc_parameters import * from .zqh_ddr_mc_bundles import * from .zqh_ddr_mc_dfi import zqh_ddr_mc_dfi from zqh_ddr_phy.zqh_ddr_phy_bundles import zqh_ddr_phy_reg_io from zqh_ddr_phy.zqh_ddr_phy_bundles import zqh_ddr_phy_dfi_io from zqh_tilelink.zqh_tilelink_node_module_main import zq...
[ "zhouqinghua888@163.com" ]
zhouqinghua888@163.com
92fec1ce9fc6f69938d911f0cf774ec4d242e8ba
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/Ablation4_ch016_ep010_relu/Gather3_W_fix3blk_C_change/train/pyr_3s/L5/step10_a.py
30cc7ceb82670b2470f06022d3884335d04fb3b3
[]
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
41,705
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
ab4216252416679138e20fa13c9abdb37f7c73cc
6bf7149077f539ab599db1f717c93aca82724512
/workshop/hash_table.py
ba0fadca7da8cd71e7f09c41d5295d8c1bd7a111
[]
no_license
KalinHar/OOP-Python-SoftUni
8b53e8b734b364878c5372525c4249fdd32f0899
9787eea7ab5101e887ed4aaeb0a8b3b80efcfdd7
refs/heads/master
2023-07-09T08:15:59.765422
2021-08-16T06:01:08
2021-08-16T06:01:19
380,813,294
0
1
null
null
null
null
UTF-8
Python
false
false
2,142
py
class HashTable: """"The HashTable should have an attribute called array of type: list, where all the values will be stored. Upon initialization the default length of the array should be 4. After each addition of an element if the HashTable gets too populated, double the length of the array ...
[ "kalix@abv.bg" ]
kalix@abv.bg
2d51025b2c26636f61f241d2edba06d8ab30ce3b
2ff7e53d5e512cd762217ca54317982e07a2bb0c
/workers/teams.py
08a5c3d8c4bb452769dbe5ba2ba246afe463dd8c
[]
no_license
nanxijw/Clara-Pretty-One-Dick
66d3d69426642b79e8fd4cc8e0bec23adeeca6d6
50de3488a2140343c364efc2615cf6e67f152be0
refs/heads/master
2021-01-19T09:25:07.555284
2015-02-17T21:49:33
2015-02-17T21:49:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,575
py
#Embedded file name: workers\teams.py from collections import OrderedDict from carbon.common.lib.const import DAY from workers.specializationGroups import SPECIALIZATION_GROUPS from workers import SPECIALIZATION_TREE, TEAM_EXPIRY_TIME, ACT_MANUFACTURING, ACT_TIMERESEARCH, ACT_MATERIALRESEARCH, ACT_COPYING from workers....
[ "billchang.e@gmail.com" ]
billchang.e@gmail.com
50b3adca54114a81cf9d772ab931a17649bffe20
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/ac5d7bdf621085929c6aac9ce645ed1e969d83d6-<upsample_bilinear2d>-bug.py
6a100acbf6afecfbc207cec1ef74d402571d74a0
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
def upsample_bilinear2d(g, input, output_size): w_scale = (float(output_size[(- 1)]) / input.type().sizes()[(- 1)]) h_scale = (float(output_size[(- 2)]) / input.type().sizes()[(- 2)]) return g.op('Upsample', input, width_scale_f=w_scale, height_scale_f=h_scale, mode_s='bilinear')
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
e742a8d7a489489cf8389f696da60f11ce328b01
7e8060ad317fe7d87fcbb1c756461cea8a067d08
/stepik/python575/04/data.py
4cf4b044a631697a73e55abfcd034c6cae5ac243
[ "Unlicense" ]
permissive
ornichola/learning-new
f9b8f2d210f36f2c05a14e7cca56d32495e60778
abb6e74f9f8794a0d3b897618207d4be0b0ff3e1
refs/heads/master
2023-05-25T19:18:42.931439
2023-04-17T17:22:57
2023-04-17T17:22:57
115,291,570
4
25
null
null
null
null
UTF-8
Python
false
false
873
py
EMPTY_BASKET_MSG_BY_LANG = { 'ar': 'سلة التسوق فارغة', 'ca': 'La seva cistella està buida.', 'cs': 'Váš košík je prázdný.', 'da': 'Din indkøbskurv er tom.', 'de': 'Ihr Warenkorb ist leer.', 'en-gb': 'Your basket is empty.', 'el': 'Το καλάθι σας είναι άδειο.', 'es': 'Tu carrito esta vacío...
[ "1502708+ornichola@users.noreply.github.com" ]
1502708+ornichola@users.noreply.github.com
76d1a50508b5e4db9d644f0039cdda8067c2cec6
bdb2506fb9562005c2f1b4c88330fa108f6219db
/universities/migrations/0034_auto_20190524_1202.py
9aaf27e69164a336a78189ebeb6999ba65f192c2
[]
no_license
naeem23/University-Admission-Assistant---UAA
abc68766585d8a4e69de142cd077ad3a1c372162
744f14b5bbdd1ff96c6a01967946278813a5b6db
refs/heads/master
2023-05-13T00:15:11.138977
2019-08-04T13:24:58
2019-08-04T13:24:58
200,491,140
1
0
null
2023-04-21T20:35:21
2019-08-04T12:39:09
Python
UTF-8
Python
false
false
416
py
# Generated by Django 2.0.6 on 2019-05-24 06:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('universities', '0033_auto_20190524_1157'), ] operations = [ migrations.AlterField( model_name='unit', name='apply_fe...
[ "sddqnaeem@gmail.com" ]
sddqnaeem@gmail.com
8d6f4e88f682ea1c927160c22cf56ee0341b844f
fd67592b2338105e0cd0b3503552d188b814ad95
/egoi_api/model/basic_product.py
f8053ee1ebfb627520211e031b7e1f988bba1a5a
[]
no_license
E-goi/sdk-python
175575fcd50bd5ad426b33c78bdeb08d979485b7
5cba50a46e1d288b5038d18be12af119211e5b9f
refs/heads/master
2023-04-29T20:36:02.314712
2023-04-18T07:42:46
2023-04-18T07:42:46
232,095,340
5
2
null
null
null
null
UTF-8
Python
false
false
13,923
py
# coding: utf-8 """ APIv3 (New) # Introduction This is our new version of API. We invite you to start using it and give us your feedback # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We've created a developer focused portal to give your organiza...
[ "integrations@e-goi.com" ]
integrations@e-goi.com
6e1f03e077d0e57e92f90437bab40c9bfb2d7cd9
9259591e4794aecd85c199b645ffb05ccbebd993
/vendor/gevent/tests/test__example_echoserver.py
4ad822933ebe0ca21b4b4900cc08d01ea98ceda7
[ "Apache-2.0" ]
permissive
swdotcom/swdc-sublime
000e20b2d2d9fa214480d2a94fcb97a88b83f67f
eab2007ab408e44d38163a121bf95c5d2018d6e4
refs/heads/main
2022-03-10T05:57:44.701151
2022-03-09T23:53:14
2022-03-09T23:53:14
127,207,312
14
5
Apache-2.0
2022-03-09T23:53:15
2018-03-28T22:47:16
Python
UTF-8
Python
false
false
1,198
py
from gevent.socket import create_connection, timeout import gevent.testing as greentest import gevent from gevent.testing import util from gevent.testing import params class Test(util.TestServer): example = 'echoserver.py' def _run_all_tests(self): def test_client(message): if greentest.P...
[ "bo@software.com" ]
bo@software.com
b33ca1bb9ae544c6ac0d8334c423b03ce1a3f44f
c8bb7f70297ac36891f82e1c79e9492d06839ba1
/event_study.py
e7e7a161e5c5dd1c0db45acb57085aeb2ed2683b
[]
no_license
minmhan/python-misc
2a56ee6ac42a1cf2aae3bc6c5db48da6a0e7f702
ee9e8884dddf8d866f2566f5adbffd7e2da1214a
refs/heads/master
2020-04-03T10:06:37.560482
2018-11-16T11:55:02
2018-11-16T11:55:02
63,070,324
0
0
null
null
null
null
UTF-8
Python
false
false
2,387
py
# -*- coding: utf-8 -*- """ Created on Sat Sep 10 13:17:16 2016 @author: minmhan """ import pandas as pd import numpy as np import math import copy import QSTK.qstkutil.qsdateutil as du import datetime as dt import QSTK.qstkutil.DataAccess as da import QSTK.qstkutil.tsutil as tsu import QSTK.qstkstudy.EventProfiler a...
[ "minmhan@gmail.com" ]
minmhan@gmail.com
91dc5ef3fcb38142899d99897fed0d5cd4eb4936
d44bb7f2dbae939e7870a29452c827b47aee694e
/tools/androguard/demos/jvm_format_5.py
6abf0f4c6a9772e9b24d30465f553c5353c465d9
[ "Apache-2.0" ]
permissive
dan7800/ProjectKrutz
330f9fd3fc5e1dae3dd6964da25a2d34702ace4a
609f255c1424afc1cd73160e50d0c16a9235e02e
refs/heads/master
2021-01-18T19:37:32.040024
2016-06-02T16:43:42
2016-06-02T16:43:42
16,557,215
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
#!/usr/bin/env python import sys PATH_INSTALL = "./" sys.path.append(PATH_INSTALL + "/core") sys.path.append(PATH_INSTALL + "/core/bytecodes") sys.path.append(PATH_INSTALL + "/core/analysis") import jvm, analysis TEST = "./examples/java/test/orig/Test1.class" j = jvm.JVMFormat( open(TEST).read() ) x ...
[ "cap7879@g.rit.edu" ]
cap7879@g.rit.edu
6aa5972765809c437caadd31c6b3c19a296537b3
0e2b51f3334ea66a348fa2a8d19e6b2b3cb4d9e3
/virtual/bin/isort
85dabf8bb7361693da95521be527f39742e92736
[ "MIT" ]
permissive
erastus-1/GramApp
b9510d3b29c404bd39efaaaca62888fc5223f302
d926a8a894b5dc673d077b35f9df867dab737372
refs/heads/main
2023-02-19T22:09:47.700449
2021-01-19T09:01:52
2021-01-19T09:01:52
330,213,311
0
0
null
null
null
null
UTF-8
Python
false
false
254
#!/home/erastus/Desktop/myPyFiles/instagram/virtual/bin/python3 # -*- coding: utf-8 -*- import re import sys from isort.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "erastuskariuki15@gmail.com" ]
erastuskariuki15@gmail.com
1d7607df51aea75af8b6a5214267a69c5374161a
224832fed9b1cac2f7f2deac01ece91dcb61daca
/videoLesson/并发/多进程中的几个方法.py
39109a56206f16b8c2407ac2bd3acc82a6a2c5f6
[]
no_license
existenceE/into
aff0584c1e0b69df91292e4d2eb0dba83f373e3a
6e24bb7d49219a75799a42bcb09475d16fc36781
refs/heads/master
2020-03-12T23:18:34.357303
2019-04-08T01:50:16
2019-04-08T01:50:16
130,863,399
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
#join() from multiprocessing import Process import time def func(arg1, arg2): print('*' * arg1) time.sleep(5) print("*" * arg2) if __name__ == "__main__": p = Process(target=func, args=(10,20)) p.start() #想让上面整体执行完再执行下面这一句 print('hahahahhah') # 之间任意可以执行 p.join() #作用是感知一个子进程的结束 将异...
[ "mxn2013@gmail.com" ]
mxn2013@gmail.com
4f47fb3b74582a5f09d98fab8c0dbd678a6761f2
06e34e2dface0b87fa785cab7e65422a5f20ba18
/Solutions/390-Elimination-Game/python.py
452866aa7bde02c6a6eaaefd12e5270c1b7a70e7
[]
no_license
JerryHu1994/LeetCode-Practice
c9841b0ce70451c19c8a429a3898c05b6233e1d4
b0ce69985c51a9a794397cd98a996fca0e91d7d1
refs/heads/master
2022-02-10T04:42:28.033364
2022-01-02T04:44:22
2022-01-02T04:44:22
117,118,143
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
class Solution(object): def lastRemaining(self, n): """ :type n: int :rtype: int """ head, step, left, remaining = 1, 1, True, n while remaining > 1: if left or remaining % 2 == 1: head += step left, step, remaining = not left, ...
[ "hjr01211@gmail.com" ]
hjr01211@gmail.com
0c21230d9d375fedfd2e394dda9262f52fcc7dcf
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/0/apj.py
330d48ea716c00527f6c678f5382514efc4e2b59
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
4e129f51613be10f0a81c23f841f9ccacc050b36
8924949c75ff8d784a297bbca00137b9332d1826
/comz/comz.py
b3175cd2aa417f8583b78d701d6c5225da23b100
[ "MIT" ]
permissive
nburton4/comz
6f5e0ad02f64196166bbad02511da17dce9c29f6
96ffcb82d6a4690dfd49eaa45dd0ccc4f679f3bb
refs/heads/master
2022-04-09T06:31:22.397284
2020-02-07T03:14:37
2020-02-07T03:14:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
43,385
py
# -*- coding: UTF-8 -*-. # Author Sazxt # My Team : Black Coder crush # Apa lo Mau Liat ? Mau Recode ? Silahkan Stah :v # Style Coding Setiap Orang Berbeda # <!-- Napom : # cp037 , cp424 , cp1026 , cp875 , cp424 import command import obfus as kntod import sys as _sys from obfus import * import datasav as _dat import os...
[ "karuma1363@gmail.com" ]
karuma1363@gmail.com
e697fbaf94ba2ebb51faae055ef51122fefbd2de
a5b6816e036cf662527ea6663d579905c5ae0f22
/Python/email.py
7be1246f3266e604482a4de2e547e914a84a613d
[]
no_license
pawarspeaks/Hacktoberfest-2021
ff549b6a3c9c3246149907d723ee136ebf98194b
b98b4ee012591eae5068245df24f9f36449b5ca9
refs/heads/main
2023-08-20T18:45:46.428698
2021-10-26T04:10:26
2021-10-26T04:10:26
421,274,810
4
0
null
null
null
null
UTF-8
Python
false
false
328
py
import smtplib, ssl import this port = 465 # For SSL password = input("Type your password and press enter: ") # Create a secure SSL context context = ssl.create_default_context() with smtplib.SMTP_SSL("smtp.gmail.com", port, context=context) as server: server.login("my@gmail.com", password) # TODO: Send ema...
[ "noreply@github.com" ]
pawarspeaks.noreply@github.com
ed16b1d77c66cc838622a7e910a67abceccaed53
ff3f4b3117847f70fe68741288f28576fe2cc5e3
/개념/03 String/04.KarpRabin.py
569c39f18664f548ccafb88c450985034c23b303
[]
no_license
manuck/myAlgo
087bbe99672c40762759e9202fe371c394736fb1
c673687d23a2d5cc06b6a6d5fb1bc0cb2e2b7bd9
refs/heads/master
2021-07-01T00:13:27.590848
2020-12-17T18:10:16
2020-12-17T18:10:16
203,954,477
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
p = 'abcdabcef' # pattern t = 'alksdabcdabcflaskjflkabcdjsaflkjasdkdsajfabcdabceflksadjabcdaksfjffsdaf' # text n = len(t) m = len(p) th, ph, h0 = 0, 0, 1 for i in range(m): th = (th * 10 + ord(t[i])) % 997 ph = (ph * 10 + ord(p[i])) % 99...
[ "snc9000@naver.com" ]
snc9000@naver.com
87b087a12e8d887b8b39bbde29dff501f0114d80
7701773efa258510951bc7d45325b4cca26b3a7d
/pandas_explore/groupby_exclude_rows_explore.py
362aafd71d484f1dd7589b4ba052a5fabdfe9b8b
[]
no_license
Archanciel/explore
c170b2c8b5eed0c1220d5e7c2ac326228f6b2485
0576369ded0e54ce7ff9596ec4df076e69067e0c
refs/heads/master
2022-06-17T19:15:03.647074
2022-06-01T20:07:04
2022-06-01T20:07:04
105,314,051
0
1
null
null
null
null
UTF-8
Python
false
false
1,089
py
import pandas as pd OWNER = 'OWNER' DEPWITHDR = 'DEP/WITHDR' DATEFROM = 'FROM' DATETO = 'TO' CAPITAL = 'CAPITAL' YIELD = 'YIELD AMT' TOTAL = 'TOTAL' df = pd.DataFrame({ OWNER: 2*['JOE']+3*['ROB']+['BOB']*2, DEPWITHDR: [10000, 20000, 4000, 20000, -8000, 5000,-2000], CAPITAL: [10000, 30000, 4000, 24000, 16000, 5000,...
[ "jp.schnyder@gmail.com" ]
jp.schnyder@gmail.com
8d0964ffbec68fa0d7945807c48d817f580dde8a
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_6687.py
3a903cd069e9b01f670034f08534f3c4a74062aa
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
# A way to get the count of non zero values in a coo_matrix of pythons scipy module? len(A.data)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
5ae97e84ebf5e0983970ba1e63857d7679a5fa67
21d989b866e0c1b0204be65c38f0baf86639389d
/anchovy/submodule/gtoolkit/analytics/templatetags/gtoolkit_analytics.py
34a2a7d274b25f5425228479c893a474edcaba7e
[]
no_license
arpsabbir/anchovy
07b489d2ac39bbcc7aed0e9e70580b04f9c0ec2e
eefd311c6f1edad483b89f9a513bcc2f9dfabe14
refs/heads/master
2021-05-28T00:14:36.797796
2013-07-02T11:27:51
2013-07-02T11:27:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,643
py
# -*- coding: utf-8 -*- import random import hashlib import urllib from django import template from django.conf import settings from gtoolkit.image.static_switcher import get_device_name register = template.Library() @register.simple_tag def google_analytics(request, player): u""" GoogleAnalytics用のタグを出す ...
[ "root@admin-no-iMac.local" ]
root@admin-no-iMac.local
45b17f650c995b24ad4c2475763c805885377128
05e2277cf1af409123f43fc0a3226014dd170556
/2523.py
ef745f698d9c69b3b3cc10ba3ad7c5f373f669f4
[]
no_license
2021-01-06/baekjoon
4dec386574ce9f51f589a944b71436ce1eb2521e
ca8f02ecbed11fe98adfd1c18ce265b10f1298bc
refs/heads/main
2023-05-06T08:19:53.943479
2021-05-14T03:25:55
2021-05-14T03:25:55
327,730,237
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
# 별 찍기네 # 3 # * # ** # *** # ** # * n = int(input()) for i in range(1, n): print('*' * i) for i in range(n, 0, -1): print('*' * i)
[ "noreply@github.com" ]
2021-01-06.noreply@github.com
c699ffa23c98dfee81a22c1b71993067ed69517e
52d9daeefbae6a1c6346e61f22122184b1beef20
/02839.py
6ce18019d313ffba81ebe8a45550fe4d3fe5886e
[]
no_license
chiseungii/baekjoon
4034947f63c515bdebc24c3f48247a7f00319ab3
6d0fb79292ef4927ab6343f6b82ea63609f560b5
refs/heads/master
2021-06-13T14:50:17.762402
2021-05-26T16:00:41
2021-05-26T16:00:41
188,278,746
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
N = int(input()) five = N // 5 rest = N - five * 5 complete = False while five: rest = N - five * 5 if rest % 3 == 0: print(five + rest // 3) complete = True break five -= 1 if not complete: if N % 3 == 0: print(N // 3) else: print(-1)
[ "noreply@github.com" ]
chiseungii.noreply@github.com
743e5c6e82cf120fda00c029b6c48fe7ae714279
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/10/11/11.py
f8dfcbc6ccc7db28c05e94760d121563dfe6f2ca
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,274
py
from sys import stdin def main(): n,k = map(int,stdin.readline().split()) b = [''.join(stdin.readline().strip().split('.')).rjust(n, '.') for _ in xrange(n)] #print b def it(s, dir): while 0 <= s[0] < n and 0 <= s[1] < n: yield b[s[0]][s[1]] s = s[0]+dir[0], s[1]+dir[1] ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
1c36a5374d5c8154c4bfc0dd7280581794d25a67
7ec5d6b69609cd58835b60960a4ffa7241654a7f
/xtrabackup_main/bug723097_test.py
58f642e0368c9f6ea9df5876e4fb05e7e7e937dd
[ "Apache-2.0" ]
permissive
isabella232/kewpie
4721ab3280bfd2296c003229900f71a8385f9174
47d67124fa755719eda3ca5a621a2abf0322d3f9
refs/heads/master
2023-03-07T14:47:14.310718
2015-05-22T00:36:38
2015-05-22T00:36:38
312,541,849
0
0
Apache-2.0
2021-02-23T14:52:18
2020-11-13T10:17:28
null
UTF-8
Python
false
false
4,823
py
#! /usr/bin/env python # -*- mode: python; indent-tabs-mode: nil; -*- # vim:expandtab:shiftwidth=2:tabstop=2:smarttab: # # Copyright (C) 2011 Patrick Crews # # # 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 Softwar...
[ "gleebix@gmail.com" ]
gleebix@gmail.com
f2ca31b0b29d473a58aa7c34ab4512d732fc3c3c
335d85ea1780c7b52af0fa57a0040b38981ff74b
/catalog/views/borrowed_books.py
96e004427c9d2e3f408c0e02a8ecbc1855c34b35
[]
no_license
marvinxu99/py_django_pg_dev_0.3
cf2c3393b2ae86ff0a0a5a3271d89c62ec439cf7
c6a8b740a721565d6df3dc27afa71f6fafef7787
refs/heads/master
2022-12-08T09:35:46.893104
2020-09-07T04:10:27
2020-09-07T04:10:27
273,426,169
1
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
from django.views import generic from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.mixins import PermissionRequiredMixin from catalog.models import BookInstance class BorrowedBooksByUserListView(LoginRequiredMixin, generic.ListView): """Generic class-based view listing books on l...
[ "marvinxu99@hotmail.com" ]
marvinxu99@hotmail.com
559ddf9c12b6f67a562a97ae621c50de4e36dff3
a2ac73af04a07bb070cd85c88778608b561dd3e4
/addons/web/__init__.py
c279e9c675ac7ba54b3d276ffce403686f3cb13d
[]
no_license
sannareddy/openerp-heimai
c849586d6099cc7548dec8b3f1cc7ba8be49594a
58255ecbcea7bf9780948287cf4551ed6494832a
refs/heads/master
2021-01-15T21:34:46.162550
2014-05-13T09:20:37
2014-05-13T09:20:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
/usr/share/pyshared/openerp/addons/web/__init__.py
[ "549636719@qq.com" ]
549636719@qq.com
a94b91c2eac8b39434380c786c4e476c6334c12b
85fb86763883948596635614c1fc97edfe8d89a5
/time_axis_rcnn/model/time_segment_network/util/func/conv_nd_kernel.py
c4f9cd1ca7ed76c776587d6b3cb226955c3e803b
[]
no_license
kioco/AU_R-CNN
554ede0ada8e092a5d352a2ca44ad6e4ee6e67f5
47365178addbf3911adca66affd05790396f5fe4
refs/heads/master
2020-07-10T13:01:18.413951
2019-08-25T03:50:36
2019-08-25T03:50:36
204,268,607
3
0
null
2019-08-25T08:43:24
2019-08-25T08:43:24
null
UTF-8
Python
false
false
10,174
py
import functools import six from chainer.backends import cuda def mulexp(xs, init=None): if init is not None: return functools.reduce('{} * {}'.format, xs, init) else: return functools.reduce('{} * {}'.format, xs) def andexp(xs, init=None): if init is not None: return functools...
[ "sharpstill@163.com" ]
sharpstill@163.com
4611c08af8786ff653f3208c933d6057afea539c
149be52b50530c0ae4f8d55436dbbb43b697959c
/library/tests/test_setup.py
faa652f8b4b58ec9ed299b63621303563570eb51
[ "MIT" ]
permissive
MisterBrash/unicorn-hat-hd
33ab8fc574c430e08882ac321d39ab759849b887
0fae7163cb8f4fc1ecf8f248ac50fc34f209db2b
refs/heads/master
2020-09-14T06:17:38.716261
2019-11-21T00:21:32
2019-11-21T00:21:32
223,046,686
0
0
MIT
2019-11-20T23:54:35
2019-11-20T23:27:28
null
UTF-8
Python
false
false
787
py
"""Test various import and setup routines.""" import sys import mock def test_setup(): """Test that the library sets up correctly with numpy and spidev.""" sys.modules['spidev'] = mock.MagicMock() import unicornhathd unicornhathd.setup() def test_brightness(): """Test brightness API change and a...
[ "phil@gadgetoid.com" ]
phil@gadgetoid.com
db392c34c0bf0e5732f02484d72458bdf0c6a8b3
a37c48267bfb8476476dad7219c4e3329f9e2991
/Packs/MapRegex/Scripts/MapRegex/MapRegex.py
31434c61cb941d663c335c975788df225549ac05
[ "MIT" ]
permissive
adambaumeister/content
611ce9fba412a5eb28fbefa8a43282e98d3f9327
01b57f8c658c2faed047313d3034e8052ffa83ce
refs/heads/master
2023-03-09T18:16:18.623380
2022-07-13T18:11:09
2022-07-13T18:11:09
274,290,989
2
0
MIT
2023-03-06T12:22:17
2020-06-23T02:36:53
Python
UTF-8
Python
false
false
466
py
import re import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # Get the arguments args = demisto.args() # Get the input value value = args.get('value') results = value # Get and parse the JSON input try: json_regex = json.loads(args.get('json_regex')) except Exception as e...
[ "noreply@github.com" ]
adambaumeister.noreply@github.com
da7aa349d0ea6f96debf864458efd245c4681025
1ac340af4d1dbeb50d01cc9b093868c17e1080e6
/Functions/Exercises/More Exercises/04. tribonacci_sequence.py
9d3179ac316d09da4c9ce6dd0adcb6a74abb595b
[]
no_license
geodimitrov/Python-Fundamentals-SoftUni
d7a53431aeac53e543216ed076b13aba2a5e3448
9f848f9921ffa03c0ae6c8664a344ac8eb489e04
refs/heads/main
2023-04-13T13:29:42.469616
2021-04-21T19:10:28
2021-04-21T19:10:28
323,114,691
1
0
null
null
null
null
UTF-8
Python
false
false
380
py
def tribonacci_sequence(n): sequence = [] result = 0 for i in range(n): if i == 0: result = 1 elif i < 3: result = sum(sequence[:i]) else: result = sum(sequence[i-3:i]) sequence.append(result) return " ".join(map(str, sequence)) # re...
[ "geo.dimitrov@yahoo.com" ]
geo.dimitrov@yahoo.com
6c2e32ecbc3cf03975f27c8c67dc06c8dd7b9615
3b5d0c88a747baccf62f6c189ab001cf192181cb
/4/construct_rectangular.py
a75fb99320a21f21669eb9bbe3bffb8e3278dc49
[ "Apache-2.0" ]
permissive
OZ-T/leetcode
273f652ae39017026f517a9c4a81b60cfaa5bc4c
c70489f82876107f51f43cee9cdcbf25bb43145b
refs/heads/master
2023-07-23T19:59:57.092165
2021-08-28T09:23:51
2021-08-28T09:23:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
from math import ceil, sqrt class Solution(object): def constructRectangle(self, area): """ :type area: int :rtype: List[int] """ L = int(ceil(sqrt(area))) while area % L != 0: L += 1 return [L, area // L]
[ "guotiexin@gmail.com" ]
guotiexin@gmail.com
3fc58e473b97133da5ada143e2335e12a2e0f32e
81026fb32d5fe66e291c824f8bb8e251d6ce56d5
/01 Looping/problem.py
4ed6897d5da8e0f35b8bb8a7de798fa73997396b
[]
no_license
rifqirosyidi/coding-python
b1e148d1787d741cdc0ce2c36dd13ff6b8d2c17b
0d98d55d0aaf2cca4129f1b98365a5866eb28dd2
refs/heads/master
2020-08-11T12:51:57.567318
2019-10-29T15:38:14
2019-10-29T15:38:14
214,567,920
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
# Problem : Print bilangan ganjil dari 1 - 21 # Gunakan Forloop mulai dari 1 - 21 # Gunakan if Untuk Cek apakah i % 2 tidak sama dengan 0 => Ganjil # Print out hasilnya
[ "rief.rosyidi@gmail.com" ]
rief.rosyidi@gmail.com
49aa744d1ce891e71d3a0f447332b476e97edccd
3aa52a1efedb1aede32ad1d323882e2714a48bfb
/examples/scan/synscan.py
6dd85314a05e285239a95fb473c5e9bddff33800
[]
no_license
clicknull/uberscapy
3382b87ef8ae0ce630ef312316a32cd4c8df2159
00d62cb808aa7fe06ca3434fc4aa67e0b61d600e
refs/heads/master
2020-06-13T11:04:39.998474
2015-03-04T15:48:15
2015-03-04T15:48:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
758
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- # __author__ = '090h' __license__ = 'GPL' from sys import argv, exit from os import path from scapy.all import * # Classic SYN Scan can be initialized by executing the following command from Scapy’s prompt: sr1(IP(dst="72.14.207.99")/TCP(dport=80,flags="S")) # From t...
[ "oleg.kupreev@gmail.com" ]
oleg.kupreev@gmail.com
29b85e6afc60c2131ec932e04627aecb62639088
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02797/s058152655.py
23c80510cf52097793fea75a238329006a81ca27
[]
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
146
py
n, k, s = map(int,input().split()) t1 = [str(s)] * k if s != 10**9: t2 = [str(s+1)] * (n-k) else: t2 = [str(1)] * (n-k) print(*(t1+t2))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f6012b13f0825392f9576e9ec1cfd62b238f173c
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/GC7JWFhDdhyTsptZ8_17.py
8769e8901086308592498dd0c26022831b436b82
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
def sexy_primes(n, limit): primes = list(filter(lambda x: list(filter(lambda y: x % y == 0,range(1,x))) == [1],range(2,limit + 1))) lst = [] for el in primes: if el + 6 in primes: if n == 2: lst.append((el,el+6)) elif n == 3 and el + 12 in primes: lst.append((el,el+6,el+12)) ret...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
383b33e4dbf6d15e75a3ad1f845b7bf0c0689beb
ba55ba44101d2ad78f7714a04c0f8634cec3f4c7
/tests/test_tls.py
ed240ae157046b1a08a2eabff87a1a6dca75626f
[ "BSD-3-Clause" ]
permissive
kaz3w/aioquic
03240336f41a3c7df35aa4480b0fa5fbf60e3626
62e9ba26a30de99f605a049370220897a40ae63a
refs/heads/main
2023-06-16T07:57:17.156750
2021-07-09T08:39:24
2021-07-09T08:39:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
52,431
py
import binascii import datetime import ssl from unittest import TestCase from unittest.mock import patch from cryptography.exceptions import UnsupportedAlgorithm from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import ec from aioquic import tls from aioquic.buffe...
[ "jeremy.laine@m4x.org" ]
jeremy.laine@m4x.org
b56262104a963ccbe046f4dcdf86406e6f6223f3
daa60221ed36dc8e20dd0a2a96521ffa2bdc94c5
/simics/monitorCore/funMgr.py
e09d50d7f3643135a3d3b0f9be123905ae232006
[ "BSD-2-Clause" ]
permissive
mfthomps/RESim
7dbddc1d46653c0443dec9c7930517753bbe5e78
cc83ed799cd37934e1659e1d20abf6c36449e0bf
refs/heads/master
2023-08-10T04:27:36.365806
2023-06-29T15:22:55
2023-06-29T15:22:55
183,653,459
160
30
null
null
null
null
UTF-8
Python
false
false
3,681
py
''' * This software was created by United States Government employees * and may not be copyrighted. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyrig...
[ "mfthomps@nps.edu" ]
mfthomps@nps.edu
06180e5e5805f30ed10ee555db7a5296631999da
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/ABC/215_d.py
ce4d7cc5e15e2632e829f371e9fb407cca1b59b4
[]
no_license
recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,882
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): import sys input = sys.stdin.readline from pprint import pprint INF = 1 << 63 def do(): def factorization(n): arr = [] temp...
[ "kanai@wide.ad.jp" ]
kanai@wide.ad.jp
c541e933b67dea18f11320877d5647c58507e2aa
75d684e2b78769e349a779c62d3a818f6ae3769c
/djreact_youtube/articles/migrations/0001_initial.py
9e3a68b870ca2ec34b92a15c835617e896616ac5
[]
no_license
mahidulmoon/djangorestapi-practice-with-cleancoding-
82e27decf723bbc7e25cdf5589697e20e2449778
6975b7b924f2ac190a937488ac3ea6c591224344
refs/heads/master
2022-12-25T12:45:00.468210
2020-10-09T13:21:11
2020-10-09T13:21:11
296,070,737
1
0
null
null
null
null
UTF-8
Python
false
false
537
py
# Generated by Django 3.1.1 on 2020-09-28 04:53 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(...
[ "mahidulmoon@gmail.com" ]
mahidulmoon@gmail.com
4c7df98707d80926080b23d47d5341cf2fc8f5df
13ce98780a7e6e7e1412ae91a0fa97a91cf66a73
/seleniumbase/undetected/webelement.py
673c7b69d86aeec408e77e81fda051196e8919ba
[ "MIT" ]
permissive
seleniumbase/SeleniumBase
c607312c0b8f45297088c1283150eb73ea32c553
63d95c42fc84bbcea415c6d8a3a201587b89c92e
refs/heads/master
2023-09-06T05:58:07.923058
2023-09-02T14:14:03
2023-09-02T14:14:03
17,420,614
3,656
944
MIT
2023-09-13T21:12:20
2014-03-04T23:07:33
Python
UTF-8
Python
false
false
417
py
import selenium.webdriver.remote.webelement from seleniumbase.config import settings class WebElement(selenium.webdriver.remote.webelement.WebElement): def uc_click(self): super().click() if ( hasattr(settings, "PAGE_LOAD_STRATEGY") and settings.PAGE_LOAD_STRATEGY ...
[ "mdmintz@gmail.com" ]
mdmintz@gmail.com
ed2127ff46fe44d98905796c40b20ba12b07b29a
c008b687c596490fe9761253d43fecbec9feab46
/backend/tbi_help_3894/urls.py
aeeafd4c13a7c15eaf74f157dc10a68f59743d4c
[]
no_license
crowdbotics-apps/tbi-help-3894
88f4e3c3803c2bf9a4eb909f59e3fdf117cad3f3
c42314abcaaf0bb4fd1eb6826000e8e7684b5866
refs/heads/master
2022-12-13T00:36:40.273169
2019-05-27T05:09:58
2019-05-27T05:09:58
188,774,566
0
0
null
2022-12-09T04:03:17
2019-05-27T05:09:43
Python
UTF-8
Python
false
false
1,050
py
"""tbi_help_3894 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cl...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
1afa349b66e5036393fa2fb550cc3e0d705ff7f3
b3e8bc762b4de32d527f6b172c87ecb67477dc33
/api/benchmark.py
1b6f6741dfe903b93fb4f68439b12c326a900c22
[]
no_license
filipeximenes/talk-graphene-django
c69d5b80a20dc2d89e33620233ad6b3769c755a2
6320db9385d5807b5fb29f74132b5c15cb499008
refs/heads/master
2020-04-07T17:54:43.022595
2018-12-11T23:20:54
2018-12-11T23:20:54
158,588,857
1
0
null
null
null
null
UTF-8
Python
false
false
570
py
import json from django.db import connection, reset_queries from api.schemaV1 import schema as schemaV1 from api.schemaV2 import schema as schemaV2 def print_result(result): print(json.dumps(result.data, indent=2)) query = """ query { bands { name artists { full_name } albums { tit...
[ "filipeximenes@gmail.com" ]
filipeximenes@gmail.com
529f592280438f603f248ecc542f5feceac2a74d
6e1170f1e5856112f688573d0f4edac9670690bb
/soft/bench.fai-pep/customize.py
d45c426e76246af86403ff8019249920ec0b10e3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
ctuning/ck-mlperf
39e8b65964bd2d132d3f7a0da27d141ea3047287
bd14e18fdfd1eb7f9dd5635d4af3de01affd9629
refs/heads/master
2022-09-30T02:12:20.778184
2022-09-23T14:40:50
2022-09-23T14:40:50
149,591,037
35
14
BSD-3-Clause
2020-09-15T21:40:24
2018-09-20T10:17:03
Python
UTF-8
Python
false
false
2,219
py
# # Collective Knowledge (individual environment - setup) # # See CK LICENSE.txt for licensing details # See CK COPYRIGHT.txt for copyright details # # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net # import os ############################################################################## # ...
[ "Grigori.Fursin@cTuning.org" ]
Grigori.Fursin@cTuning.org
4ada464d19fe6f7d985a1e6416b9347aa9383644
65f9576021285bc1f9e52cc21e2d49547ba77376
/LINUX/android/vendor/qcom/proprietary/common/scripts/mpgen/mpgen_kconfig.py
da250483037f1a0b3f0d8ad97baa3a1d1daef1f6
[]
no_license
AVCHD/qcs605_root_qcom
183d7a16e2f9fddc9df94df9532cbce661fbf6eb
44af08aa9a60c6ca724c8d7abf04af54d4136ccb
refs/heads/main
2023-03-18T21:54:11.234776
2021-02-26T11:03:59
2021-02-26T11:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
""" Copyright (c) 2017 Qualcomm Technologies, Inc. All Rights Reserved. Confidential and Proprietary - Qualcomm Technologies, Inc. """ import sys import os class parameter: def __init__(self, name, value): self.name = name self.value = value return class Kconfig(list): def __init__(self, path): print('Kcon...
[ "jagadeshkumar.s@pathpartnertech.com" ]
jagadeshkumar.s@pathpartnertech.com
d99a4387cc88561d92049d7f3b6447ec4c26a90c
b733a463ba1a21ac4c2756e8552ff4b251ce6b55
/ResNet/resnet_v1_152.py
bce8d416b794d3ef39c941261501bda888c3c11f
[]
no_license
fengjiran/tensorflow_learning
003047cdb396572e3535043dfff8671befcd0f21
44dce5bb39c8d6421ea6181338b0ea4b0e5e9797
refs/heads/master
2023-04-04T07:53:55.707703
2022-03-30T09:35:52
2022-03-30T09:35:52
100,839,372
3
0
null
2023-03-24T22:50:54
2017-08-20T04:58:21
Python
UTF-8
Python
false
false
215
py
from __future__ import division from __future__ import print_function import tensorflow as tf fc_initializer = tf.contrib.layers.xavier_initializer conv2d_initializer = tf.contrib.layers.xavier_initializer_conv2d
[ "fengjiran@foxmail.com" ]
fengjiran@foxmail.com
95d97657d82d589b6081e3352838e5bae798e43f
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/tests/terraform/checks/resource/yandexcloud/test_IAMCloudElevatedMembers.py
88c842158993950a2eb7bda8181fda20ad527ec0
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
1,455
py
import unittest from pathlib import Path from checkov.runner_filter import RunnerFilter from checkov.terraform.checks.resource.yandexcloud.IAMCloudElevatedMembers import check from checkov.terraform.runner import Runner class TestIAMCloudElevatedMembers(unittest.TestCase): def test(self): test_files_dir =...
[ "noreply@github.com" ]
bridgecrewio.noreply@github.com
d6e157abe6866fae85155ce4602c455f05d28134
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/w3lib/http.py
c7b94a23649a041c8c03585e7581aa0748108d07
[ "MIT" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
2,745
py
from base64 import urlsafe_b64encode def headers_raw_to_dict(headers_raw): r""" Convert raw headers (single multi-line bytestring) to a dictionary. For example: >>> import w3lib.http >>> w3lib.http.headers_raw_to_dict(b"Content-type: text/html\n\rAccept: gzip\n\n") # doctest: +SKIP {'C...
[ "354142480@qq.com" ]
354142480@qq.com
571aed269fb7d699ef5d146553deb1ef0003cbaa
873257c67e1bb2756053f88c4f9331d14c00424b
/NGC5258/SFR/script/T_dust.py
63333a39044d0b588591f24f173a2a766bd42346
[]
no_license
heh15/Arp240
64058dd9c84653e3a7035e5ee088c55a6b4119e3
cae7bf59ebaaa9f69d2204a1be522f4c0b76d7f7
refs/heads/master
2020-08-27T12:14:36.002105
2020-06-19T00:42:34
2020-06-19T00:42:34
156,797,417
0
0
null
null
null
null
UTF-8
Python
false
false
6,463
py
''' July. 28th, 2019 Copy from the SFR_compare.py, same settings. ''' import numpy as np import os,glob import scipy.ndimage as sni import sys import re import itertools from shutil import copytree from astropy.io import fits from astropy.utils.data import get_pkg_data_filename import astropy.units as u import matpl...
[ "heh15@mcmaster.ca" ]
heh15@mcmaster.ca
8c73107499d8db6700dcf061755b70c6cacbc3ca
9c88ee174f74a5a8352ec8cf487a302aa87053d0
/pylark/api_service_mail_mail_group_permission_member_get_list.py
590c8f1433dbbd9a33c41f362f6445fdb990f2bf
[ "Apache-2.0" ]
permissive
duzx1/pylark
bcf34231218ec5079b8f9820a77864fbcffa4426
a54cce6b814935fd3c72668b262b54c8ee461484
refs/heads/master
2023-08-23T13:10:00.324018
2021-11-01T06:29:28
2021-11-01T06:29:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,602
py
# Code generated by lark_sdk_gen. DO NOT EDIT. from pylark.lark_request import RawRequestReq, _new_method_option from pylark import lark_type, lark_type_sheet, lark_type_approval import attr import typing import io @attr.s class GetMailGroupPermissionMemberListReq(object): user_id_type: lark_type.IDType = attr.i...
[ "chyroc@qq.com" ]
chyroc@qq.com
67fc97fad0efaba36cf3aadb14005341659109dd
c59d6587ed5d7e7c4f4cbad2e4c8188eee741ad9
/movie/views.py
54d41329603d345df7de319a079831fad2fd68fa
[]
no_license
n1k0din/kekino-api
921d83b1be0c50e7dfb0b2411ba63fd9f3dc8039
4fef4b1c6bdec970fae1b599be4c719eee06e999
refs/heads/master
2023-08-27T18:21:16.640031
2021-11-07T11:13:01
2021-11-07T11:13:01
425,223,294
0
0
null
null
null
null
UTF-8
Python
false
false
3,261
py
from random import choice, shuffle from django.db.models import Q from django.shortcuts import render from rest_framework.decorators import api_view from rest_framework.response import Response from movie.models import KinopoiskMovie from movie.utils import db, get_movie_frames SPECIAL_GENRES = [ 'аниме', 'м...
[ "nik726@gmail.com" ]
nik726@gmail.com
f211d7edd2966d5307737478782dcd650256554e
edf8b4fdc80ff333eb6cb60aff8cf41968892516
/ex02/5_1.py
a4004e0cd9224f3a3d4a12e8d4d2c549ec5f52f2
[]
no_license
khimacademy/c101
aad84d70e240885b41a4c948bffc462aa5a9b174
2100231a5e838884bc285bf33b12feb41ffad2b5
refs/heads/master
2020-03-16T22:48:45.057623
2018-05-11T15:07:47
2018-05-11T15:07:47
133,053,323
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
num1 = 55 num2 = 13 print(num1 <= num2) print(num1 != num2)
[ "sarang.khim@gmail.com" ]
sarang.khim@gmail.com
9a83807ab892beeeaab91ec230ce7cf4aded1124
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/memori.py
b93073b24295e1696f85a44dedf9aed320326ffc
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
2,650
py
ii = [('BentJDO2.py', 10), ('EmerRN.py', 3), ('CookGHP3.py', 11), ('LyelCPG2.py', 1), ('MarrFDI.py', 5), ('RogePAV2.py', 6), ('CoolWHM2.py', 8), ('KembFFF.py', 1), ('GodwWSL2.py', 33), ('RogePAV.py', 2), ('SadlMLP.py', 9), ('FerrSDO3.py', 7), ('WilbRLW.py', 10), ('WilbRLW4.py', 9), ('RennJIT.py', 1), ('AubePRP2.py', 6)...
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
60e53a56cf566828a6c8cb4c85ef2197056eb319
f4b60f5e49baf60976987946c20a8ebca4880602
/lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/ospf/aifstats.py
10b10e4174c722f7e0ec247c230f62a642716f5c
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
3,927
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "collinsctk@qytang.com" ]
collinsctk@qytang.com
7c1f76048a53e4a641f20492bad5d49ca49bb022
c7057c901bbf20355e05572eab2ce926395104d8
/backup_codes/testOnly.py
9104f1308c593e43203d252bbb6fd315a9cb5e7e
[]
no_license
windhaunting/Real-time-Configuration-Adaptation-for-Video-Analytics
159e099528e44bea9c2ef744c025f5efb2703bbc
1bd986e7bde5068bd5769f580cb41810603517ae
refs/heads/main
2023-07-29T09:25:33.717695
2021-09-14T13:49:31
2021-09-14T13:49:31
189,781,117
0
0
null
null
null
null
UTF-8
Python
false
false
889
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 13 11:05:56 2019 @author: fubao """ import cv2 from skimage import io def verify_image(img_file): try: img = io.imread(img_file) except: return False return True def read_imgfile(path, width=None, height=None): ...
[ "freadream@gmail.com" ]
freadream@gmail.com
96eef48d39b91b25629eb3f20e373776be2c1ccb
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/165/61143/submittedfiles/testes.py
c48fa1ac8913cd0e3b1433e043dbbfb0a4a15e99
[]
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
179
py
# -*- coding: utf-8 -*- n=int(input('digite um numero de quatro digitos:')) x=n//100 y=n%100 a=x//10 b=x%10 l=(b*10)+a if (l*y)==n: print('Vampiro') else: print('Nao')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9dadd30a1fa1e2eb18811916ae39194e25c86a2d
faf379f569be64de13ea9269a128a053d7d37b35
/backend/workflow/biolink_client.py
00d520cb44cbb18dc33f3fc67964bd5082e3f919
[ "MIT" ]
permissive
STARInformatics/biomed-workbench
167f9d832b35bcf9d15012882d22239b7d1bcf8d
510f533d9ec1296f69b0a5e979da5831d0aeb2dd
refs/heads/develop
2023-01-08T19:21:16.322751
2019-05-17T22:48:41
2019-05-17T22:48:41
179,548,523
0
0
MIT
2023-01-03T20:18:54
2019-04-04T17:53:25
JavaScript
UTF-8
Python
false
false
5,812
py
import requests class BioLinkWrapper(object): def __init__(self): self.endpoint = 'https://api.monarchinitiative.org/api/' self.params = { 'fetch_objects': 'true', } def get_obj(self, obj_id): url = '{0}bioentity/{1}'.format(self.endpoint, obj_id) response =...
[ "lhannest@sfu.ca" ]
lhannest@sfu.ca
48656ff85afd088f04d22f98e013dafb8fdcef40
a829617f9ad158df80a569dd02a99c53639fa2c6
/py/hep/cernlib/hbook.py
d43fb285f5cab7044a679abad6390920588fdd7f
[]
no_license
alexhsamuel/pyhep
6db5edd03522553c54c8745a0e7fe98d96d2b7ae
c685756e9065a230e2e84c311a1c89239c5d94de
refs/heads/master
2021-01-10T14:24:08.648081
2015-10-22T13:18:50
2015-10-22T13:18:50
44,745,881
1
0
null
null
null
null
UTF-8
Python
false
false
22,934
py
#----------------------------------------------------------------------- # # module hep.cernlib.hbook # # Copyright 2003 by Alex Samuel. All rights reserved. # #----------------------------------------------------------------------- """HBOOK library interface.""" #----------------------------------------------------...
[ "alex@alexsamuel.net" ]
alex@alexsamuel.net
ba56febc6250a84d924a4ae68bdc91eb38fa5256
ffe70cb32a9c9d47317243d8763c9e0a825adbd0
/perfrunner/utils/go_dependencies.py
0a01e5cb9a45cfed7b1eb8886ebcb820aeae4d81
[ "Apache-2.0" ]
permissive
sharujayaram/perfrunner
9623d1f60b67c8efafa9cb692b6818d76f5d7bd9
8fe8ff42a5c74c274b569ba2c45cd43b320f48eb
refs/heads/master
2021-06-06T10:21:58.136665
2019-05-24T01:18:32
2019-05-24T01:18:32
138,637,411
0
1
null
2018-06-25T18:57:10
2018-06-25T18:57:10
null
UTF-8
Python
false
false
2,242
py
"""Fetch go dependencies by examining the manifest file. This utility will: - fetch the manifest file from one of host - get the revision for required projects and packages - get those dependencies using govendor """ import collections import xml.etree.ElementTree from argparse import ArgumentParser from typing impor...
[ "pavel.paulau@gmail.com" ]
pavel.paulau@gmail.com
48c161204ff62141efc382945928027c91991488
c184a05109156a6b7d4ea8bb7926a82c350817ed
/core/models.py
31599254e67ebb0977d7cc45627436034ce0414f
[]
no_license
eng-olavo/basedjango
451cffba5c1434e2bba9a9cb620f0ed3aef99cfe
4b07b1dec596f4fc778f69b5349397bfd1165bdf
refs/heads/master
2023-08-18T13:49:45.713423
2021-10-21T20:53:51
2021-10-21T20:53:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,380
py
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior # * Remove `managed =...
[ "olavo.melo.br.DIO@gmail.com" ]
olavo.melo.br.DIO@gmail.com
361616e633a284c7bddfc27928fc5562b0e2c4a9
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/HUAWEI-MA5200-MIB.py
a0b56db7a7097f2a88a9bb1dc53f9a41df459408
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
2,814
py
# # PySNMP MIB module HUAWEI-MA5200-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-MA5200-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:34:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
09cdd4a557dd43efa274e21a39adf8ffd58d3da9
015383d460fa4321391d964c4f65c4d0c044dcc1
/.venv/lib/python3.7/site-packages/faker/providers/company/no_NO/__init__.py
c86b9bf805df73e323a8680ce3fa6f9af72fa510
[ "Unlicense" ]
permissive
kobbyrythm/temperature_stories_django
8f400c8d3c8190b0e83f7bcfece930d696c4afe9
552d39f1f6f3fc1f0a2f7308a7da61bf1b9b3de3
refs/heads/main
2023-07-03T21:28:46.020709
2021-07-20T09:44:29
2021-07-20T09:44:29
468,728,039
3
0
Unlicense
2022-03-11T11:41:47
2022-03-11T11:41:46
null
UTF-8
Python
false
false
486
py
from .. import Provider as CompanyProvider class Provider(CompanyProvider): formats = [ '{{last_name}} {{company_suffix}}', '{{last_name}} {{company_suffix}}', '{{last_name}} {{company_suffix}}', '{{last_name}}-{{last_name}} {{company_suffix}}', '{{last_name}}, {{last_name}...
[ "b.scharlau@abdn.ac.uk" ]
b.scharlau@abdn.ac.uk
7ac9556ab218cdb1c15677a80a21d1483c5604a7
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/jWk79SoDXnfm8ymhw_6.py
01361f68de019d5271025ee1e2a3d31c0709e7f1
[]
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
765
py
""" Create a function that takes a string and censors words **over four characters** with `*`. ### Examples censor("The code is fourty") ➞ "The code is ******" censor("Two plus three is five") ➞ "Two plus ***** is five" censor("aaaa aaaaa 1234 12345") ➞ "aaaa ***** 1234 *****" ### Notes *...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
92b0615dc088814795cb836716f37042c0e2a0bb
ca4fff998b3a345595adfc8a33fb273f2ac10a58
/tensorflow/python/keras/distribute/multi_worker_testing_utils.py
8ba7e30338a1fe665067d5ff9e5af9e1a7b73641
[ "Apache-2.0" ]
permissive
yair-ehrenwald/tensorflow
d485cef7847ab027639550fe2b19fd7521ea640e
eaceb03d7f5ec31c0d27c464f17ae003027980ca
refs/heads/master
2023-05-04T19:43:16.142132
2021-03-21T06:10:13
2021-03-21T06:16:59
287,766,702
2
0
Apache-2.0
2020-08-15T14:51:47
2020-08-15T14:51:46
null
UTF-8
Python
false
false
3,666
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
c09c12cd755e14ba3f4570439285c6c150667015
63b0fed007d152fe5e96640b844081c07ca20a11
/Project Euler/5.py
ab24fd117616727d58e0f1285a406d5748e29e26
[]
no_license
Nikkuniku/AtcoderProgramming
8ff54541c8e65d0c93ce42f3a98aec061adf2f05
fbaf7b40084c52e35c803b6b03346f2a06fb5367
refs/heads/master
2023-08-21T10:20:43.520468
2023-08-12T09:53:07
2023-08-12T09:53:07
254,373,698
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
import math n=int(input()) l = list(range(1,n+1)) ans=1 # 2数を受け取って最小公倍数を返す関数 def lcm(a, b): y = a*b / math.gcd(a, b) return int(y) for i in range(len(l)): ans = lcm(ans,l[i]) print(ans)
[ "ymdysk911@gmail.com" ]
ymdysk911@gmail.com
5862253b3a625dbae40cfba6197f38fbdc7c84a2
a73fd25dd9a8e6df0b1bf3eee0bccf5297722bc7
/]tasks/2017.11.20.urban_mapper_heights/fine_tune_urban_mapper_fmap_gridExp.py
3a679066cd7e2959c66996a99e5cbab7e9033096
[]
no_license
bohaohuang/sis
23d0260d85903b62518fb8fb588661597248ad0d
28a59f3182f0ba58ba582449377c6588af1d4cde
refs/heads/master
2021-05-05T17:00:33.808099
2019-09-06T17:46:02
2019-09-06T17:46:02
117,362,230
2
0
null
null
null
null
UTF-8
Python
false
false
12,253
py
import os import time import argparse import numpy as np import tensorflow as tf import sis_utils from network import unet from dataReader import image_reader, patch_extractor from rsrClassData import rsrClassData TRAIN_DATA_DIR = 'dcc_urban_mapper_height_train_p_f' VALID_DATA_DIR = 'dcc_urban_mapper_height_valid_p_f'...
[ "bohao.huang@duke.edu" ]
bohao.huang@duke.edu
c96de337d4f0a7148bef2d0c071ec5e9c60e61c2
9055b8f8b1ca2e357473179a5ff551f69541bd34
/grammar/join字符串拼接.py
cd76a9d0c82207e784d808266af811d32ca96c17
[]
no_license
YanlinWang128/PyhonStudy
879c72cbdc1f467a7b4721561692e2deb6a665e9
6b9de9afcfa7ba0b4c55025ddcf87664b170c6e7
refs/heads/master
2020-03-30T18:42:11.520471
2018-11-09T08:38:29
2018-11-09T08:38:29
151,511,393
2
0
null
null
null
null
UTF-8
Python
false
false
826
py
# @Time : 2018/10/31 10:22 # @Author : Yanlin Wang # @Email : wangyl_a@163.com # @File : join字符串拼接.py from math import sqrt # 注意 join 拼接的是字符串,必须配合str(x) for x in b 转为字符串 a = {1: 1, 2: 2, 3: 3} b = sorted(list(a.keys())) # b.sort() 不返回列表 # 列表满足迭代协议, 逐个拼接, 逗号为指定的分隔符, 用于间隔迭代器中的元素, 第一个元素之后开始出现逗号 print(','.jo...
[ "wangyl_a@163.com" ]
wangyl_a@163.com
46bad396f4e9d80e3a2ba9777057c25bbb3040d6
825383f4a5a45ece630db8169bc8ab638fadb992
/src/ttyrec2video/renderer.py
e657cec2d0c0b402052b7aeaec0074ee53c286d2
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jwodder/ttyrec2video
2af72cef4e8f53fd900753571cd3acc2affabfb1
16674084b4745a2c49d42aa18055f8845895830c
refs/heads/master
2023-05-25T09:47:38.470622
2023-05-12T19:02:39
2023-05-12T19:02:39
108,762,088
0
0
null
null
null
null
UTF-8
Python
false
false
3,873
py
import attr from PIL import Image, ImageDraw import pyte DEFAULT_BG = (0,0,0) CURSOR_BG = (0x9A, 0x9A, 0x9A) FG = {} FG.update({ v: (int(v[:2], 16), int(v[2:4], 16), int(v[4:], 16)) for v in pyte.graphics.FG_BG_256 }) FG.update({ v: FG[pyte.graphics.FG_BG_256[k-30]] for k,v in pyte.graphics.FG.item...
[ "git@varonathe.org" ]
git@varonathe.org
343e39cea98570180479eda2f5cf49117abc9e5e
86fcd7e56f7409dc05fb1cc07496a38e39ef2607
/vispy/util/fonts/__init__.py
6491ff503f90f40742d3d3ab0339b892d0d9e8b9
[ "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
alexjc/vispy
a1622f7920df5f0ddd11acf56302896fabd5cb37
2e528cf3915c8274848d9f3662809485f3dbcf3f
refs/heads/master
2021-01-15T08:57:01.427072
2014-12-08T20:02:11
2014-12-08T20:02:11
26,930,099
1
1
null
null
null
null
UTF-8
Python
false
false
576
py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014, Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # -------------------------------------------------------------------------...
[ "larson.eric.d@gmail.com" ]
larson.eric.d@gmail.com
90c8d046ceb947f5ede0c9af1539002a851bedfc
b3db0c8aac2eb3cb098c9b4e811747684617534e
/food_rec/pipeline/apply_guidelines_to_recipes_pipeline.py
0ad7acac45acd58c40929cade8c49bd34d8f18f4
[]
no_license
solashirai/FoodRec
814c58431c134a1e561414dbfe2c64f842cd53fd
a14fcf2cafaf26c5bb6396485a16052c6925aa6f
refs/heads/master
2023-04-07T04:40:13.249868
2021-04-19T02:29:36
2021-04-19T02:29:36
359,238,418
0
0
null
null
null
null
UTF-8
Python
false
false
1,491
py
from frex.pipelines import Pipeline from frex.models import Candidate, Explanation from food_rec.models import * from food_rec.services.guideline import GuidelineKgQueryService from food_rec.pipeline_stages import * from food_rec.pipeline import GenerateGuidelinesApplicableToUserPipeline from typing import Generator, O...
[ "solashakashirai@gmail.com" ]
solashakashirai@gmail.com
8a47e76a6c6383f9172f0cf5825eee9b5a9d8735
5736b861a24e568c65887cbabc38d9d4959581b0
/smartdb/smartdb/pipelines.py
42bd56f6b984580fcf674fb5520af9d67f9779ed
[]
no_license
Pysion-lin/smartDB_spider
3abc9f117871eeaa0f421fccf90084841dbad90f
1b2ce2531b45533052a2de39c659e86a3cdb717e
refs/heads/master
2021-03-26T00:43:54.697439
2020-03-16T09:37:32
2020-03-16T09:37:32
247,659,631
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html class SmartdbPipeline(object): def process_item(self, item, spider): return item
[ "root@localhost.localdomain" ]
root@localhost.localdomain
60dbb070be2bd01f3d450c256c7c28ea366e8f31
d55f8836d27dcbe56ce62623f1a69f33c0fd950d
/UpWork_Projects/andy_upwork/gncLiveWell/gncLiveWell/middlewares.py
b02e76c42511b69284c80858f03dbb1f71b77f39
[ "MIT" ]
permissive
SurendraTamang/Web-Scrapping
f12f0f8fcb4b6186ecab38c8036181e4d1560bed
2bb60cce9010b4b68f5c11bf295940832bb5df50
refs/heads/master
2022-11-11T10:32:31.405058
2020-06-17T19:34:33
2020-06-17T19:34:33
273,258,179
0
1
null
2020-06-18T14:20:43
2020-06-18T14:20:42
null
UTF-8
Python
false
false
3,591
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class GnclivewellSpiderMiddleware: # Not all methods need to be defined. If a method is not defined, # scrapy act...
[ "p.byom26@gmail.com" ]
p.byom26@gmail.com
0bfb97498df2f1701f9bebe38ab2ff4c6eab6e46
81c64d1b4a229e8706adab76fabac4a5d92668b4
/compute_quant_results.py
bd6687f19dd931e8e0830f9bedbac849def5d0ca
[]
no_license
MichiganCOG/video-frame-inpainting
7610843c8f2b07f60c28bb6dc3ff842e124c795f
da2872999c38c3aab0357cb6e7e0db9100638505
refs/heads/master
2023-07-22T20:12:33.742469
2021-08-08T19:32:27
2021-08-08T19:32:27
208,148,391
9
8
null
2023-07-22T16:04:38
2019-09-12T21:19:55
Python
UTF-8
Python
false
false
3,423
py
import argparse import os import numpy as np from PIL import Image from skimage.measure import compare_ssim, compare_psnr import torchvision import torch from torchvision.transforms.functional import to_tensor from torch.autograd import Variable from src.util.util import get_folder_paths_at_depth, makedir def main(...
[ "szetor@umich.edu" ]
szetor@umich.edu
ef212bee7b307d5af07a71bb3504900ad71c0f2b
b337af4607d1cd8470589a54e99b3ffd9b2245d2
/code/development/program-y/test/programytest/aiml_tests/client.py
415acb17ba7f90c08076c7faa0fe5efde836898e
[ "MIT" ]
permissive
frdino131/RyanCBT
587dfa1e3228ed7a62f34c73239d9552f18983fb
69a72d5a463a0cfc15890e96558476bc03b620e7
refs/heads/master
2018-10-21T22:40:21.522384
2018-08-06T22:48:30
2018-08-06T22:48:30
121,197,342
0
2
null
null
null
null
UTF-8
Python
false
false
1,098
py
import logging from programy.clients.client import BotClient from programy.config.programy import ProgramyConfiguration from programy.clients.events.console.config import ConsoleConfiguration class TestClient(BotClient): def __init__(self, debug=False, level=logging.ERROR): if debug is True: ...
[ "hilbert.cantor@gmail.com" ]
hilbert.cantor@gmail.com
a631972b3a9aee006f71313c7755d8ede5310967
767c07db1fb131047af3d9b0a065b8fdc8aac9ab
/53-pd/pd_intro1.py
93e17525bdc905ea012eba098644cdd3b2c0f070
[]
no_license
DUanalytics/pyAnalytics
e52c5469da30a5f436ec0f3120d9f15fb82fd9b3
107a08bebe46ea51afccfeae4a666213bb405d41
refs/heads/master
2023-07-08T04:32:54.758902
2023-07-03T14:37:04
2023-07-03T14:37:04
202,094,535
394
31
null
null
null
null
UTF-8
Python
false
false
791
py
#Panda Introduction and Topics #----------------------------- #%library import pandas as pd print(dir(pd), end =', ') len(dir(pd)) #initial #help pd.read_csv? #read from dataset from pydataset import data mtcars = data('mtcars') mtcars.head() #write to csv mtcars.to_csv('data/mtcarsCSV.csv') #read a csv/ excel df = ...
[ "dup1966@gmail.com" ]
dup1966@gmail.com
d2d4d1c78a6667eb7efb0e971528401619a962a1
4e67c2edd71493a98a3f13e5b2073c1d05b1b656
/Semestre 03/Projeto Integrados 03/04.29.2021/8update.py
7533c83eb1cb63c5e388428127c5f2f27dde0148
[]
no_license
felipellima83/UniCEUB
05991d7a02b13cd4e236f3be3a34726af2dc1504
dbc44866545b5247d1b5f76ec6e9b7778e54093e
refs/heads/master
2023-07-08T19:04:19.830473
2021-08-12T12:33:49
2021-08-12T12:33:49
249,958,282
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
""" CEUB - Bacharelado em Ciência da Computação (BCC) - Prof. Barbosa Teclas de atalho: ctlr <d>, duplica linha. ctrl <y>, apaga linha. ctrl </>, comenta linha. """ import mysql.connector conexao = mysql.connector.connect(user='root', password='spfc99', ...
[ "felipellima83@gmail.com" ]
felipellima83@gmail.com
14bb19358e26fcc8718f4e0e000b9d67768601fa
e1386d15b6e67c2e4e301bfb6d2fdfa817ac082d
/delivery/services/external_program_service.py
c0c0cf39ce27029feb9aa7a105da2d19af17d25d
[ "MIT" ]
permissive
arteria-project/arteria-delivery
002272f5371a77968fad15061ec6aa00068fab14
46830f5b891dabb3a1352719842d1a9706641032
refs/heads/master
2023-09-04T07:53:12.783287
2023-08-04T13:26:41
2023-08-04T13:26:41
71,244,793
0
8
MIT
2023-08-09T14:52:04
2016-10-18T12:15:20
Python
UTF-8
Python
false
false
1,563
py
from tornado.process import Subprocess from tornado import gen from subprocess import PIPE from delivery.models.execution import ExecutionResult, Execution class ExternalProgramService(object): """ A service for running external programs """ @staticmethod def run(cmd): """ Run...
[ "johan.dahlberg@medsci.uu.se" ]
johan.dahlberg@medsci.uu.se
57d67b470f59ec082bfe79a471955eabe3878bf5
9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c
/baomoicrawl/venv/Lib/site-packages/twisted/mail/pop3.py
78d80bff155fbea7265e52f1def1864ee59bb0e5
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler
b0fdedee2942a12d9f64dfed93f43802dc5ab340
87c8c07433466bbc43a24ea089f75baeb467c356
refs/heads/master
2022-11-27T21:36:33.917491
2020-08-10T23:24:42
2020-08-10T23:24:42
286,583,216
0
0
null
null
null
null
UTF-8
Python
false
false
56,975
py
# -*- test-case-name: twisted.mail.test.test_pop3 -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Post-office Protocol version 3. @author: Glyph Lefkowitz @author: Jp Calderone """ import base64 import binascii import warnings from hashlib import md5 from zope.in...
[ "thuy4tbn99@gmail.com" ]
thuy4tbn99@gmail.com
327c23adf0fffdfd9f3520432fb566491ac72756
a643c2ed78b48e4cacf140776fbedd0191881e18
/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi
6b02a890071515d73d10d7f0336e6a7583112fc1
[ "Apache-2.0" ]
permissive
padamstx/openapi-generator
5ae41f68a4f9349d76c1db81b9ff82e18e5b4b7c
00604aff594864447c134ddb1982565136e27857
refs/heads/master
2023-03-08T20:11:36.318959
2022-09-28T16:34:17
2022-09-28T16:34:17
160,528,958
0
1
Apache-2.0
2023-02-24T16:13:11
2018-12-05T14:17:50
Java
UTF-8
Python
false
false
4,236
pyi
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from unit_test_api import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noq...
[ "noreply@github.com" ]
padamstx.noreply@github.com
c0c4012d8350ca2b5f71d17ac24d296acaca9871
437b1f6c3450a53e6e51eda62c85e3b4e098c8d2
/Python_para_zumbis_lista3/4.py
c89757408b1a9d5b6d876da94240030206d6bf9b
[]
no_license
pocceschi/aprendendo_git
16d5194b2372970b469ff8db42290f7f152b538b
704e4e40cd0e36b02e09bf411f42f23ab931d5fc
refs/heads/main
2023-04-07T05:25:03.549470
2021-04-01T23:29:04
2021-04-01T23:29:04
353,849,682
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
n = int(input("Digite um número inteiro: ")) cont = 0 x = 0 while True: n = n + x cont = cont + 1 if cont == 10: break else: x = n + x print(n) print(x)
[ "pedrobh94@hotmail.com" ]
pedrobh94@hotmail.com
4444e76825140004a02ffea2e5a24da57fecd5e8
b8b988d6618582df25cb5ca40e646f28d4f61b85
/setup.py
1a9995ccda2e0417ca9f140599baf66c2567b906
[]
no_license
philippeowagner/django-kudos
3bb2f4d188eb4480697c87081abf81447350659c
91b1b93d3d339099c366a0a2c3bf0974f323aa03
refs/heads/master
2021-01-15T09:51:31.926321
2012-03-23T15:43:33
2012-03-23T15:43:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,100
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys from setuptools import setup, find_packages from distutils.command.install_data import install_data from distutils.command.install import INSTALL_SCHEMES def read(*path): return open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *path)).read() ...
[ "me@mylesbraithwaite.com" ]
me@mylesbraithwaite.com
de99e322f4b3c4474edd7fddc556e4c0890264e9
6ecff67d6103ddbd787f78c35182722b83b8a37e
/백준/Python/1697.py
18719dded12fcf57eb077a47169680e937e4847c
[]
no_license
jsungmin6/Algorithm
9ef2339aa00921e7df756a8dff569954a008c118
bc1ea9de9f7ba3f1aa6616ebef8719540d72e0bf
refs/heads/master
2023-05-27T06:24:16.123307
2021-06-11T09:22:21
2021-06-11T09:22:21
259,299,624
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
from collections import deque MAX=100001; n, k = map(int, input().split()) array=[0]*MAX def bfs(n): q=deque([n]) while q: now_pos = q.popleft() if now_pos == k: return array[now_pos] for next_pos in (now_pos-1,now_pos+1,now_pos*2): if 0<=next_pos<MAX and not ar...
[ "jsungmin506@gmail.com" ]
jsungmin506@gmail.com
bf2dbd614e7b830ccf83e100fa94ce21dfc27af0
52b5773617a1b972a905de4d692540d26ff74926
/.history/equiLeader_20200827132917.py
8e1e7797d4b9881af6e6bdb56f3aaf8d1b434e3e
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
def equi(A): # return the number of equal leaders that both occur in the sequences # first find the equileader # then count them in both sequences store = {} candidate = -1 for i in A: if i in store: store[i] +=1 else: store[i] = 1 for i in s...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
57fa2182a2f8c4f38e5321b631906efea88d34dc
83e2fe88d4537403ee710b631d7d3e8c65415092
/services/web__joop_nl.py
70f36269372c0acac0b342a7eb97f535f2452f23
[]
no_license
ArchiveTeam/NewsGrabber-Services
b01f560b18bd5395673132321c16bcf7602608f1
2d52eb06a6ca767f4b1d1e623505fa427b6af459
refs/heads/master
2020-01-23T21:40:57.220775
2019-07-01T09:56:38
2019-07-01T09:56:38
74,690,301
3
8
null
2019-06-03T19:49:47
2016-11-24T16:41:59
Python
UTF-8
Python
false
false
143
py
refresh = 21600 version = 20161106.01 urls = ['http://www.joop.nl/'] regex = [r'^https?:\/\/[^\/]*joop\.nl'] videoregex = [] liveregex = []
[ "Arkiver@hotmail.com" ]
Arkiver@hotmail.com
10bb62699d59313927fd3fc434b9609058ef8ca8
0fefd630aa4b500a1a218f5f12d351dfeb79d4a7
/Exam/01.SytmosDelivery.py
1a7882eadbb2714fa4ad138486e4991047ddd44c
[ "MIT" ]
permissive
bozhikovstanislav/Python-Fundamentals
a7e7659d7ce8996f9e5dc17a8a0c5fcd5fbab65f
072fd2c8bc962d20d4c526947349fdeae0bc94a5
refs/heads/master
2020-04-15T00:22:02.395202
2019-03-10T15:46:48
2019-03-10T15:46:48
164,237,382
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
PI_CONSTANT = 3.141592653589793 a = float(input()) b = float(input()) c = float(input()) n = int(input()) volume_truck = a * b * c volume_barrel = 0 count_of_barrels = -1 for x in range(0, n): r = float(input()) h = float(input()) volume_barrel += PI_CONSTANT * r * r * h volume_left = volume_truck -...
[ "bozhikov.stanislav@gmail.com" ]
bozhikov.stanislav@gmail.com
0d1a2424cf5607b6e8278d16a7193f73dd11d6a0
724d58882c9fbcfe80c1f2801e28e1c40ad98f52
/users/user_tasks.py
b8275904abfd8ca77161869d26f112591b6ee8cb
[]
no_license
jerryjazzz/dancedeets-server
018aca47ba5bc01c06215f9bf2af4e3130912ade
8e0098d1f07edaf1951b53bcbefd4a5c8e4ab007
refs/heads/master
2021-06-01T21:27:19.873848
2016-07-20T22:57:17
2016-07-20T22:57:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,720
py
import logging from mapreduce import mapreduce_pipeline import app import base_servlet import fb_api from util import fb_mapreduce from . import users GET_FRIEND_APP_USERS = """ SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = %s) AND is_app_user = 1 """ class LookupAppFriendUsers(fb_api.Loo...
[ "mlambert@gmail.com" ]
mlambert@gmail.com
41e7ca60aaf807c73f1d718701b98cbc4abea679
9e6aafe15292c47dad6dce2510518b6594833ac6
/POUZERATTE/Chatbox/v1.1_client.py
6df301d9a99e9226ca1e857bd52e6f2a587f8530
[]
no_license
Asparfan/infres2-2020
537a9251a1e3945763671e4fd4fad82d953971c5
e0d3efb9e57471c985e3e9ce1427c7d95f697e95
refs/heads/master
2020-12-31T08:58:02.489324
2020-02-07T16:02:26
2020-02-07T16:02:26
238,962,634
0
0
null
2020-02-07T15:50:07
2020-02-07T15:50:06
null
UTF-8
Python
false
false
1,112
py
#!/usr/bin/env python3 """ @author Alexis Pouzeratte - INFRES11 @version 1.1 1. Client/Serveur monothread ~. Stockage des messages en DB """ import socket import sys _PORT = 8888 _HOST = socket.gethostbyname('localhost') _EXIT_STRINGS = "Extinction de la connexion." def main(): # Création du socket client ...
[ "you@example.com" ]
you@example.com
31a37a640878f28611fc82d70e70dfbb22c117ef
0c600073c42d2e027645fadff866014c2b233bb5
/benchbuild/environments/adapters/buildah.py
bc79db51464825760865eaa55278af1c0851ba83
[ "MIT" ]
permissive
boehmseb/benchbuild
bc0025a0f9404789fb153577152f558044221143
04655f86ff0b28cd0770048e1213aeca3d0ee557
refs/heads/master
2023-02-08T05:30:05.420512
2021-09-21T17:48:21
2021-09-21T17:48:21
227,843,001
0
0
MIT
2023-01-20T04:01:47
2019-12-13T13:10:43
Python
UTF-8
Python
false
false
12,846
py
import abc import json import logging import os import typing as tp from plumbum import local from benchbuild.environments.adapters.common import ( run, bb_buildah, MaybeCommandError, CommandError, ImageCreateError, ) from benchbuild.environments.domain import model, events from benchbuild.setting...
[ "simbuerg@fim.uni-passau.de" ]
simbuerg@fim.uni-passau.de
f5c0f931d3f60cfb5a5c25b6be7905a44b2342d1
c6606aad71d30889739c6612202519057648682c
/Python/Exercise Problems/connect_n_ropes_with_minimum_cost.py
4d5779c15d5942fc6e82d4104bf7194d7103ad73
[]
no_license
sonam2905/My-Projects
c10cb1bef32dfbee62b81c35e161e03c584423f2
4c7d6be8b5af2909f4795af034864354f59dd4c5
refs/heads/master
2023-08-25T10:16:20.575102
2021-10-31T15:49:27
2021-10-31T15:49:27
419,038,346
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
# Python3 program to connect n # ropes with minimum cost import heapq def minCost(arr, n): # Create a priority queue out of the # given list heapq.heapify(arr) # Initializ result res = 0 # While size of priority queue # is more than 1 while(len(arr) > 1): # Extract shortest two ropes from arr firs...
[ "noreply@github.com" ]
sonam2905.noreply@github.com
eb4289f9b51570cf4327a2d1ed1de866a7b4411f
6cec5dbb37bc431574ec043b44577cec6862d080
/test/utils/test_random.py
c172c239e102dd7529e46d4b968247178a14e636
[ "MIT" ]
permissive
IanLiYi1996/pytorch_geometric
cdffb929d2be669e4fb60dd6431423bef44563a1
f8cb788f7407762c1216c662251e22137f127dd5
refs/heads/master
2020-06-05T06:29:57.815862
2019-06-17T11:49:59
2019-06-17T11:49:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,149
py
import torch from torch_geometric.utils import (erdos_renyi_graph, stochastic_blockmodel_graph) def test_erdos_renyi_graph(): torch.manual_seed(1234) edge_index = erdos_renyi_graph(5, 0.2, directed=False) assert edge_index.tolist() == [ [0, 1, 1, 1, 2, 4], ...
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
49784dff888546000f60103965089abd29f99dd5
0d0afd1dce972b4748ce8faccd992c019794ad9e
/integra/patrimonial_personalizacao/models/hr_job.py
a7b3c698f32d8941dd01ab10e75d2eafc3e20a4b
[]
no_license
danimaribeiro/odoo-erp
e2ca2cfe3629fbedf413e85f7c3c0453fd16941e
d12577bf7f5266b571cbedeb930720d653320e96
refs/heads/master
2020-01-23T21:32:16.149716
2016-11-05T15:35:40
2016-11-05T15:35:40
67,892,809
0
1
null
null
null
null
UTF-8
Python
false
false
699
py
# -*- coding: utf-8 -*- from osv import fields, orm , osv from integra_rh.constantes_rh import * from pybrasil.data import agora class hr_job_orcamento(osv.osv_memory): _name = 'hr.job.orcamento' _description = u'Cargos - orçamento' _columns = { 'job_id': fields.many2one('hr.job', u'Cargo', ond...
[ "danimaribeiro@gmail.com" ]
danimaribeiro@gmail.com
1b62182def1563d26a16b30fb7f290c49e2fb3f6
58eccf3a22c618c3b002ef16729b931f78dff5f8
/seeburg_manager.py
4f756aee9c77d0a426a5d5c763c373a340900606
[]
no_license
sbelectronics/pi-seeburg
e68ec1751ffa70745654013537d8a475e9fe3e07
f753b200209e1facf0d525c0d4c68e0deb26fa92
refs/heads/master
2021-04-28T15:19:19.976085
2018-10-27T16:55:59
2018-10-27T16:55:59
121,987,177
5
0
null
null
null
null
UTF-8
Python
false
false
1,629
py
import argparse import os import smbus from seeburg import SeeburgThread from ioexpand import MCP23017 glo_seeburg = None def parse_args(): parser = argparse.ArgumentParser() defs = {"vfd": False, "interactive": True, "stereo_url": None} _help = 'Enable VFD display (default: %s)'...
[ "smbaker@gmail.com" ]
smbaker@gmail.com
e3a6a402dc2ea5cf76e91177021fbb16299f8308
77932f8fd7b295681ab60c722389a500b61d05cf
/geneshot-benchmark/pipeline/scripts/GeneshotBenchmark.py
d3b3b430b42fa70f8d7283b1a44d82d7c5c61a2b
[]
no_license
denis-torre/analysis-pipelines
2b228dc40709365d868032fd1a379feb6b3268b1
de430f3b6695a7b88b9ba5ee4b66f0ae6981e282
refs/heads/master
2021-07-16T23:40:31.334568
2020-05-14T15:14:23
2020-05-14T15:14:23
153,810,952
0
0
null
null
null
null
UTF-8
Python
false
false
1,578
py
################################################################# ################################################################# ############### Geneshot Benchmarking - Python Support ############ ################################################################# ######################################################...
[ "denis.torre@mssm.edu" ]
denis.torre@mssm.edu
b55cfad7d7a2d9f6ac0f0bffc9f6875bb5f7ae11
80b5bc903e5ceb368f374f9a1313e1dc7ac698c2
/bcoffice/boards/migrations/0030_auto_20180621_0944.py
ca27a4ec92e7d82c47d10ae5f3043f571320f93e
[]
no_license
Bobur-kobilov/back
830471f7d36f9120aa04e3ae884f7091f0ba4333
5a852c4d24da3db6226ce17c437c4ae9c6b01141
refs/heads/master
2022-10-01T22:50:24.073570
2019-08-02T01:51:19
2019-08-02T01:51:19
200,145,509
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
# Generated by Django 2.0.4 on 2018-06-21 00:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('boards', '0029_auto_20180621_0941'), ] operations = [ migrations.AlterField( model_name='coingu...
[ "bobur0114jon@gmail.com" ]
bobur0114jon@gmail.com
b44a4cd1502ca28e87cf2a3e4f6f27f3a0782d86
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02718/s254926836.py
f67450ec3425393cd4ee32c1b620f8e54ea9fdc4
[]
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
220
py
N, M = (int(x) for x in input().split()) A = list(map(int, input().split())) sum=0 cnt=0 for i in range(N): sum+=A[i] sum/=4*M for i in range(N): if A[i]>=sum: cnt+=1 if cnt>=M: print("Yes") else: print("No")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
748e09572e7a5f292e167d45d89772a9e122346a
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/travelport/models/carrier_list.py
3a45cff69759174f4a370ee76e21241deff280f4
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
703
py
from __future__ import annotations from dataclasses import dataclass, field __NAMESPACE__ = "http://www.travelport.com/schema/air_v52_0" @dataclass class CarrierList: class Meta: namespace = "http://www.travelport.com/schema/air_v52_0" carrier_code: list[str] = field( default_factory=list, ...
[ "chris@komposta.net" ]
chris@komposta.net
4e052af955b2200e14b5c9b437eccb40828a693a
142362be3c4f8b19bd118126baccab06d0514c5b
/apps/personal/models.py
0bdf22d8806001df3865a0be98218d85daa0e0de
[]
no_license
dkramorov/astwobytes
84afa4060ffed77d5fd1a6e8bf5c5c69b8115de6
55071537c5c84d0a27757f11ae42904745cc1c59
refs/heads/master
2023-08-27T07:10:51.883300
2023-08-02T16:52:17
2023-08-02T16:52:17
191,950,319
0
0
null
2022-11-22T09:15:42
2019-06-14T13:44:23
HTML
UTF-8
Python
false
false
4,363
py
# -*- coding: utf-8 -*- from django.db import models from apps.main_functions.string_parser import kill_quotes, get_request_ip from apps.main_functions.models import Standard from apps.main_functions.functions import object_fields from apps.personal.utils import get_user_name class Shopper(Standard): """Модель по...
[ "zergo01@yandex.ru" ]
zergo01@yandex.ru
f95d03fa1b9142c7a1205e9c1d2d27bfdab842c9
995514f414eee6bbe9083ec39ecd3027cf9fd7d8
/1.6/17.py
c970fd829ac9c4a873f004fc3d1fe79f4c77bbf6
[]
no_license
j16949/Programming-in-Python-princeton
e02376ebb714264a1329aacad30347e4ae79f909
392391b98815cc1ae2b49e1057a10bc5b37e801f
refs/heads/master
2023-08-08T11:52:04.362780
2023-08-01T13:02:41
2023-08-01T13:02:41
313,943,770
0
0
null
null
null
null
UTF-8
Python
false
false
1,973
py
#----------------------------------------------------------------------- # randomsurfer.py #----------------------------------------------------------------------- import stdio import stdarray import sys import random # Accept an integer moves as a command-line argument. Read a # transition matrix from standard input...
[ "kkwert@sina.com" ]
kkwert@sina.com
d9938c8fd134361c47fba6d0b8e4866cc9656dbf
f3d75509d63297588227b7652462bb95bfed3c52
/les_3_task_4.py
fcdf2e971a16ee3d687b74f49faa5915324ef9d2
[]
no_license
snlnrush/python-alg-and-data
220faa912ab1ce7ad53c62aa905d792ef4c5d280
a4a3d20e46dc48bf394733e7cf6dccabdcf9bed4
refs/heads/master
2022-06-17T01:59:26.439289
2020-05-08T10:19:08
2020-05-08T10:19:08
260,943,073
0
0
null
2020-05-07T15:02:13
2020-05-03T14:30:07
Python
UTF-8
Python
false
false
1,060
py
""" 4. Определить, какое число в массиве встречается чаще всего. """ import random list_numbers = [random.randint(0, 10) for _ in range(20)] # Генерируем список чисел dict_values = {} # Создаем словарь для подсчета количества значений max_pair = None max_value = 0 print('Initial list of numbers:', list_numbers) for e...
[ "cross-fire@list.ru" ]
cross-fire@list.ru
0432e15f9bdcf0f005912d6f2e1622f8cf245104
ec81ab4caaa041a17b68e389e5d6977f142343ae
/typecast/formats.py
a49fa7cce26277ebb983af3b668a23c99737131f
[ "MIT" ]
permissive
backgroundcheck/typecast
d910f6ab0349b0487c4fd7cbc9330148d45112c8
4bce9ea884317337059c889319b84697e8559b89
refs/heads/master
2021-01-21T18:00:41.779656
2015-10-01T20:07:27
2015-10-01T20:07:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,679
py
import re DATE_REGEXES = {} def sub_regex(match): char = match.group(1) if char in ['H', 'M', 'S', 'm', 'd', 'y']: return '\d{1,2}' if char in ['Y']: return '\d{4}' if char in ['z', 'b', 'B', 'Z']: return '\w{0,100}' if char in ['X']: return '[\d:]{0,10}' raise...
[ "friedrich@pudo.org" ]
friedrich@pudo.org