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
7f7bc5dacb84f4e18c258d76fd91a9bb8cc3af3b
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/12/23/12.py
da0396d4cf15e8267cd6d9041247bc41bc9c3b63
[]
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,511
py
# -*- coding:utf-8 -*- import os, itertools curr_dir = os.path.dirname(os.path.abspath(__file__)) srcfilename = os.path.join(curr_dir, 'C-large.in') dstfilename = os.path.join(curr_dir, 'output.txt') def solve(numbers_): numbers = sorted(numbers_) memory = dict((k, [k]) for k in numbers) for r in xrange(2...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
0716ae0a297c478efb4cabc07dd95d1ade9b0765
0c85cba348e9abace4f16dfb70531c70175dac68
/cloudroast/networking/networks/api/security_groups/test_security_groups_quotas.py
711c5f5a1d12b995b33e7c5f496a7e31ad6fa4c0
[ "Apache-2.0" ]
permissive
RULCSoft/cloudroast
31157e228d1fa265f981ec82150255d4b7876af2
30f0e64672676c3f90b4a582fe90fac6621475b3
refs/heads/master
2020-04-04T12:20:59.388355
2018-11-02T21:32:27
2018-11-02T21:32:27
155,923,262
1
0
null
null
null
null
UTF-8
Python
false
false
7,301
py
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
[ "leonardo.maycotte@rackspace.com" ]
leonardo.maycotte@rackspace.com
47b06042aeb032ae4e939d3b48da59ba5b47905c
ce083128fa87ca86c65059893aa8882d088461f5
/python/flask-webservices-labs/flask-spyne-fc20-labs/examples-fc20-labs/.venv/bin/pserve
aa6ac24579b1b2bb05f169edd556d6441a8b4c09
[]
no_license
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
325
#!/root/NetBeansProjects/fedora/python/flask-webservices-labs/flask-spyne-fc20-labs/examples-fc20-labs/.venv/bin/python # -*- coding: utf-8 -*- import re import sys from pyramid.scripts.pserve import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(mai...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
0fdeff39871fc700ab63276af189ae59086ca209
9025fc04844a202f00e691728c87eb10906e87c3
/Python/3/hue.py
47ddef65c29489500d3964a4d7a381559351461c
[]
no_license
felipemarinho97/online-judge-exercices
e046e3fd951f4943c43e199f557d96f82d8ed286
28cff9b31431e1c1edeeba0b66689e871491ac0a
refs/heads/master
2021-01-20T00:33:09.782364
2017-04-23T15:19:04
2017-04-23T15:19:04
89,148,286
0
0
null
2017-04-23T15:21:01
2017-04-23T14:34:29
Python
UTF-8
Python
false
false
580
py
# coding: utf-8 # Melhor Ataque # Felipe Marinho (C) | 116110223 | <felipe.marinho@ccc.ufcg.edu.br> times = int(raw_input()) lista_times = [] lista_gols = [] total_gols = 0 maior = -1 for i in range(times) : time = raw_input() lista_times.append(time) gols = int(raw_input()) lista_gols.append(gols) total_gols += ...
[ "felipevm97@gmail.com" ]
felipevm97@gmail.com
0d68ac6e207b37d788e51c89ec289b18727b302d
c22c83592571b64c3da4a3f3c4d1bbaaee50a318
/encryption.py
ea49016c24dde788787f3a42249522bd0f17076a
[]
no_license
tt-n-walters/thebridge-week1
eaef2887122dd4f778ab94ab3c819f1e63a1985f
8598125af12b21794e93f09407984009c36aaf25
refs/heads/master
2023-06-16T14:31:45.955254
2021-07-09T12:14:40
2021-07-09T12:14:40
382,301,941
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
import hashlib password = "password1" encoded_password = password.encode() encrypted = hashlib.sha256(encoded_password).hexdigest() # https://resources.nicowalters.repl.co/hash
[ "nico.walters@techtalents.es" ]
nico.walters@techtalents.es
ccfd104c316ff6d373be371b1562c7625f50c37c
41f09c4f9990f8d2ce57aef92be1580f8a541656
/show_lbiflist.py
69778715a9ac37d8e3b06516f36e4ea83cfb6002
[]
no_license
jebpublic/pybvccmds
d3111efe6f449c3565d3d7f1c358bdd36bc1a01a
997eead4faebf3705a83ce63b82d853730b23fbf
refs/heads/master
2016-09-05T18:56:52.509806
2015-02-25T17:41:47
2015-02-25T17:41:47
31,315,416
0
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
#!/usr/bin/python import sys import json import pybvc from pybvc.netconfdev.vrouter.vrouter5600 import VRouter5600 from pybvc.common.status import STATUS from pybvc.controller.controller import Controller from pybvc.common.utils import load_dict_from_file if __name__ == "__main__": f = "cfg.yml" d = {} ...
[ "jeb@elbrys.com" ]
jeb@elbrys.com
17aec2e9e4241eb7c8589ae7042a57c2077d973f
209c876b1e248fd67bd156a137d961a6610f93c7
/python/paddle/fluid/tests/unittests/xpu/test_reduce_max_op_xpu.py
9256b135ba8d04c2c3984633b176dd0a68c66765
[ "Apache-2.0" ]
permissive
Qengineering/Paddle
36e0dba37d29146ebef4fba869490ecedbf4294e
591456c69b76ee96d04b7d15dca6bb8080301f21
refs/heads/develop
2023-01-24T12:40:04.551345
2022-10-06T10:30:56
2022-10-06T10:30:56
544,837,444
0
0
Apache-2.0
2022-10-03T10:12:54
2022-10-03T10:12:54
null
UTF-8
Python
false
false
2,573
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "noreply@github.com" ]
Qengineering.noreply@github.com
95f07028ed1317b33c687e3f152ed408d54accea
0d2f636592dc12458254d793f342857298c26f12
/11-2(tag).py
1baa801108cd7920160b82b12b955e92548f7030
[]
no_license
chenpc1214/test
c6b545dbe13e672f11c58464405e024394fc755b
8610320686c499be2f5fa36ba9f11935aa6d657b
refs/heads/master
2022-12-13T22:44:41.256315
2020-09-08T16:25:49
2020-09-08T16:25:49
255,796,035
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
def mymax(n1,n2): if n1 > n2: print("較大值是 : ", n1) else: print("較大值是 : ", n2) x1,x2 = eval(input("請輸入2個數值:")) mymax(x1,x2) """自己做的 def mymax(n1,n2): print("最大值為:",max(n1,n2)) a = input("請輸入2個數值:") mymax(a,b)"""
[ "kkbuger1523@gmail.com" ]
kkbuger1523@gmail.com
b8fd4f4290f8a0877f2b1b3efb49106e25a3f001
43ab33b2f50e47f5dbe322daa03c86a99e5ee77c
/rcc/models/od_mcomplex_type_definition_method_def.py
07a0da5592495c471d676699b1ab4f6c2e885f62
[]
no_license
Sage-Bionetworks/rcc-client
c770432de2d2950e00f7c7bd2bac22f3a81c2061
57c4a621aecd3a2f3f9faaa94f53b2727992a01a
refs/heads/main
2023-02-23T05:55:39.279352
2021-01-21T02:06:08
2021-01-21T02:06:08
331,486,099
0
0
null
null
null
null
UTF-8
Python
false
false
7,896
py
# coding: utf-8 """ nPhase REST Resource REDCap REST API v.2 # noqa: E501 The version of the OpenAPI document: 2.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from rcc.configuration import Configuration class ODMcomplexTypeDefinitionMethodD...
[ "thomas.yu@sagebase.org" ]
thomas.yu@sagebase.org
95edf831f37b676ba3fb2731a59d15664766b478
3c099a78896ca4b775d28fccf38c2bfdf6a1a555
/zMiscellaneous/WebScraping/ScrapingEcommerce.py
91e6ae08778622a1632ba801532cb50101916bff
[]
no_license
anmolparida/selenium_python
db21215837592dbafca5cced7aecb1421395ed41
78aec8bf34d53b19fb723a124ad13342c6ce641c
refs/heads/master
2022-12-03T23:52:32.848674
2020-08-30T19:26:30
2020-08-30T19:26:30
282,207,788
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
import requests from bs4 import BeautifulSoup # Getting Value from the First Page url = 'https://scrapingclub.com/exercise/list_basic/?page=1' response = requests.get(url) soup = BeautifulSoup(response.text, 'lxml') items = soup.find_all('div', class_='col-lg-4 col-md-6 mb-4') count = 0 for i in items: ...
[ "anmolparida@gmail.com" ]
anmolparida@gmail.com
6bdee705a979426573bc0d836de6cc21f8c69502
a14dd601cde67f67d0ba38dfd1362f7c0109cef1
/graphs/past/perfect-friends.py
84d3237c7bc95823da7474a6ccbd297330ad8192
[]
no_license
Meaha7/dsa
d5ea1615f05dae32671af1f1c112f0c759056473
fa80219ff8a6f4429fcf104310f4169d007af712
refs/heads/main
2023-09-03T18:52:41.950294
2021-11-05T09:14:42
2021-11-05T09:14:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
from collections import defaultdict from graphs.util import build def dfs(graph, src, vis): vis.add(src) count = 1 for nbr in graph[src]: if nbr not in vis: count += dfs(graph, nbr, vis) return count def main(edges): graph, vis = build(edges), set() csl = [] for src i...
[ "nikhilgoyal104ah4@gmail.com" ]
nikhilgoyal104ah4@gmail.com
d47d43472d31e0e542659aeb3cc520cb97087223
1643a5a0d1acd3bdc851718c223ba0b14bbec1c3
/backend/rn_push_notificatio_27417/settings.py
0f648a30594df5a74b623cf3269344d5cfcda383
[]
no_license
crowdbotics-apps/rn-push-notificatio-27417
90c614ad558b2810e2b2cfe55e2dae7b97f1359e
ea9c37615be4e9e872a63d226562e4ca7bc2b6c5
refs/heads/master
2023-05-23T06:29:28.261563
2021-05-27T12:29:04
2021-05-27T12:29:04
370,993,920
0
1
null
null
null
null
UTF-8
Python
false
false
7,141
py
""" Django settings for rn_push_notificatio_27417 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
919204b02732c69b3cdce838f4f06670d71c72c5
5c5e7b03c3373e6217665842f542ca89491290ff
/2015/day25.py
cb3f0bf727f854fd9f2f893b07c4884439f6ee3e
[]
no_license
incnone/AdventOfCode
9c35214e338e176b6252e52a25a0141a01e290c8
29eac5d42403141fccef3c3ddbb986e01c89a593
refs/heads/master
2022-12-21T21:54:02.058024
2022-12-15T17:33:58
2022-12-15T17:33:58
229,338,789
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
from getinput import get_input from util import ncr def get_idx(row, col): if row == col == 1: return 1 return ncr(row+col-1, 2) + col def get_val(row, col): mod = 33554393 rat = 252533 startval = 20151125 return startval*pow(rat, get_idx(row, col)-1, mod) % mod def parse_input(s):...
[ "incohatus.none+git@gmail.com" ]
incohatus.none+git@gmail.com
5bb05fab43f5353a702c4e9a5694f8f08030eda9
c74f234dc478b49f367106b414df2473ac35b93c
/mysite/polls/urls.py
5c7dd5797f18fd2607e2b916de5c2ac36d13007c
[]
no_license
Richiewong07/Django
05994f552cea2cb612c6c1957a0a9a39605fdf5c
09ac06a60c623d79bb8ecafd014ac7dbc74e8535
refs/heads/master
2021-04-15T14:00:00.394201
2018-03-24T00:34:15
2018-03-24T00:34:15
126,238,394
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
from django.conf.urls import url from . import views urlpatterns = [ # r^$ MEANS DON'T ADD ANYTHING TO OUR URL # views.index IS WHAT YOU WANT TO DISPLAY # 127.0.0.1/polls/ url(r'^$', views.index, name="index"), # SET QUESTION_ID TO A NUMBER # 127.0.0.1/polls/1 url(r'^(?P<question_id>[0-9...
[ "richiewong07@yahoo.com" ]
richiewong07@yahoo.com
7b76e148b73b644e42f7a1abb259e77dad11fdcc
4f4c2e5a8a71a2058069b90eb75e11b1ec80efa9
/euler/Problem_38-Pandigital_multiples.py
3b25e4c08a2411b5567f23fe50c40e8e254addf0
[]
no_license
mingyyy/dataquest_projects
20e234f1d0d3dd8be1f0202b7ed3bce172474e38
885ffe4338300cb9c295f37f6140c50ff3b72186
refs/heads/master
2022-12-11T17:25:44.053404
2020-01-10T09:24:28
2020-01-10T09:24:28
190,170,724
0
0
null
2022-12-08T05:55:21
2019-06-04T09:29:53
Jupyter Notebook
UTF-8
Python
false
false
525
py
""" Take the number 192 and multiply it by each of 1, 2, and 3: By concatenating each product we get the 1 to 9 pandigital, 192384576. We will call 192384576 the concatenated product of 192 and (1,2,3) The same can be achieved by starting with 9 and multiplying by 1, 2, 3, 4, and 5, giving the pandigital, 918273645, w...
[ "j.yanming@gmail.com" ]
j.yanming@gmail.com
4058a4aba52d9076ba294a27d437eb8344f2cdb7
668cc2cd1109cf1c207a57ae7decc5ae5edc9728
/backend/users/migrations/0002_auto_20201104_1426.py
d51fe7ac08131e041c8abbbf9f79c5410e4a4133
[]
no_license
crowdbotics-apps/logictech-22290
7538661024c163c16881371468f84c181d1ee93f
f17151874e1fd60a1cc81b247a5e0599421ac6e8
refs/heads/master
2023-01-09T21:14:45.728461
2020-11-04T14:30:13
2020-11-04T14:30:13
310,025,912
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
# Generated by Django 2.2.17 on 2020-11-04 14:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0001_initial'), ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
d47b3bb24581ca86d9a76530a019eaca62ae8e66
f3b233e5053e28fa95c549017bd75a30456eb50c
/p38a_input/L2EE/2EE-2J_MD_NVT_rerun/set_4.py
2b3fa06318de66ab34d51136748b9f7c26eaed64
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
import os dir = '/mnt/scratch/songlin3/run/p38a/L2EE/MD_NVT_rerun/ti_one-step/2EE_2J/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_4.in' temp_pbs = filesdir + 'temp_4.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in l...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
eaf3840aa3f8986f9ac5af4ac914a14e080bd347
cc7ad1a2aa5d691c15ff7838d1e5126ab2c2bee0
/basic_notifications/views.py
b7e1ecc497a68ddf9693738e0e033c9b746371b7
[]
no_license
demirantay/lingooapp
9632be8a7d3dd00e7a4ac13618f32975da389729
c842bb032668ef1bd5e7f4282acd4990843c8640
refs/heads/master
2023-03-14T08:00:37.681334
2021-01-09T09:36:48
2021-01-09T09:36:48
285,181,982
1
0
null
null
null
null
UTF-8
Python
false
false
3,688
py
# Main Imports import json # Django Imports from django.shortcuts import render, get_object_or_404, HttpResponse from django.http import HttpResponseRedirect from django.core.exceptions import ObjectDoesNotExist from django.core.files import File from django.contrib.auth.models import User from django.utils import tim...
[ "demir99antay@gmail.com" ]
demir99antay@gmail.com
7ec56d1dfd873785b0db9c891aacd95142031aa1
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/sQN3Jb43teMbC7rGJ_18.py
795c8a4678747c53bbb24bcd6b59c6e238410b4e
[]
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
176
py
def make_transpose(m): dm = len(m) dn = len(m[0]) tm = [[0] * dm for i in range(dn)] for i in range(dm): for j in range(dn): tm[j][i] = m[i][j] return tm
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
c2ea0ec2e21e9047ed990c7351593ad82edc44ad
536bce6ca78a9a151247b51acb8c375c9db7445f
/chapter1/1.5-interest_rate.py
15aba2121680fc7d7fffc673afd05db59b2923ce
[]
no_license
clicianaldoni/aprimeronpython
57de34313f4fd2a0c69637fefd60b0fb5861f859
a917b62bec669765a238c4b310cc52b79c7df0c9
refs/heads/master
2023-01-28T18:02:31.175511
2023-01-23T08:14:57
2023-01-23T08:14:57
112,872,454
0
0
null
2017-12-02T19:55:40
2017-12-02T19:55:40
null
UTF-8
Python
false
false
464
py
p = 5 # Interest rate % A = 1000 # Initial amount years = 3 # Number of years to grow # Formula for calculating sum: A(1 + p/100)^n # To avoid integer division we convert p to float sum = A * (1 + (float(p)/100))**years print("After %g years with %g%% interest rate and an initial amount of %g we have %g." ...
[ "martin@rodvand.net" ]
martin@rodvand.net
e57bf9dec7e340b0469004ecf5111d0ea081f482
674f5dde693f1a60e4480e5b66fba8f24a9cb95d
/armulator/armv6/opcodes/concrete/ldc_ldc2_immediate_a2.py
c145465c0a7b80a8b878d200a1c3998d5b55001d
[ "MIT" ]
permissive
matan1008/armulator
75211c18ebc9cd9d33a02890e76fc649483c3aad
44f4275ab1cafff3cf7a1b760bff7f139dfffb07
refs/heads/master
2023-08-17T14:40:52.793120
2023-08-08T04:57:02
2023-08-08T04:57:02
91,716,042
29
7
MIT
2023-08-08T04:55:59
2017-05-18T16:37:55
Python
UTF-8
Python
false
false
788
py
from armulator.armv6.arm_exceptions import UndefinedInstructionException from armulator.armv6.bits_ops import substring, bit_at from armulator.armv6.opcodes.abstract_opcodes.ldc_ldc2_immediate import LdcLdc2Immediate class LdcLdc2ImmediateA2(LdcLdc2Immediate): @staticmethod def from_bitarray(instr, processor)...
[ "matan1008@gmail.com" ]
matan1008@gmail.com
fea4d5a004cb0d120f3829c1fa2cbf4b2df64e17
046333321b2717c6391a111fc2f74b04bbbeb7af
/chapter13(enumrate function)/sorted.py
cbe84261ffe34d30f366d660bdb7c5115a530460
[]
no_license
jyash28/Python-practice
b0c9df42bc93716d8721a1420ee1f3170b40b18c
cd3a61934618145cbaa20e62194ebb1642ba9941
refs/heads/main
2023-07-03T18:06:38.407491
2021-07-13T09:47:07
2021-07-13T09:47:07
314,485,686
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
guitars= [ {"model1" : 'famaha f310' ,"price": 8400}, {"model2" : 'faith neptune' ,"price": 100000}, {"model3" : 'faith appolo venus' ,"price": 35000}, {"model4" : 'taylor' ,"price": 450000} ] sorted_guitars = sorted(guitars, key= lambda d: d["price"],reverse = True) print(sorted_guitars)
[ "jyash548@gmail.com" ]
jyash548@gmail.com
e22cf41bebc21fe5ea70c17604946adc4fe9a69e
ef5bde73d58734f5081f127fe344ae85c53b8b68
/config_modify.py
8c8255c6e3156d5372724911ccee779d14d2e548
[]
no_license
ychnlgy/VoxCeleb1
a3a6337f322ec1c78f926e2f529db001f7ec8349
930ce2c5c9f0828705afb096c7ee33bfe4b6b96e
refs/heads/master
2020-06-11T10:40:35.462721
2019-07-09T16:42:24
2019-07-09T16:42:24
193,934,200
1
0
null
null
null
null
UTF-8
Python
false
false
364
py
import argparse import voxceleb1 if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--path", required=True) args = parser.parse_args() config = voxceleb1.training.Config(args.path) del config.param_dict["_dob"] kvs = ["--%s %s" % item for item in config.p...
[ "ychnlgy@gmail.com" ]
ychnlgy@gmail.com
c33973915a1487aa198d9586d9ef07976496fe35
9c6dcd6964c0bbbc960106736a3adf83f99ae613
/Balatarin/bipartiteMongo.py~
0ac84299fccd071931a5ee43aa4271ca00d40bdf
[]
no_license
Roja-B/Trajectories
5ab065991c34ba74b6951ad090401c0cb14f222b
e1ce1c6ac8095f92853e0ebe7a41eb8a82e7eff2
refs/heads/master
2016-09-05T17:56:45.643404
2013-01-24T03:54:21
2013-01-24T03:54:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
#!/usr/lib/python3.0 # This program extracts bipartite edgelist of users and links belonging to a specific time window (both the link and the votes should come from that time window) # Author: Roja Bandari # October 2012 from pymongo import Connection from PARAMETERS import * import datetime import time import sys ...
[ "roja@ucla.edu" ]
roja@ucla.edu
a9520d4013f01df3a621233c6de34a7732d48832
2a05456121813e2c5c3a0e9a88c0c381a038633b
/euler089.py
b32e61c3f1608a6ae354bef88b3f646d1612cf92
[]
no_license
Octaith/euler
022fab72f7d2a72327694ea1970aa3e13a560673
457676a99013c7c5fd33697b82be998d07c464d9
refs/heads/master
2020-09-26T21:04:08.656499
2014-09-14T07:47:51
2014-09-14T07:47:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
789
py
roman = ( ('M', 1000), ('CM', 900), ('D', 500), ('CD', 400), ('C', 100), ('XC', 90), ('L', 50), ('XL', 40), ('X', 10), ('IX', 9), ('V', 5), ('IV', 4), ('I', 1) ) def roman_to_dec(s): result = 0 index = 0 for numeral, integer in roman: whil...
[ "banteeg@gmail.com" ]
banteeg@gmail.com
ede98906221ceb5af90a8e165e9a48203a10f212
a1dae20db0338e735f0b4eb2804a069533bc5a9b
/render.py
f36dcfdfed83a87bd98faa44c513dbe54b05c932
[]
no_license
thoppe/TwitterSquares
4d78e80680c3b01673d602c2564811bf42090aa6
a01dd65456fa70478a0ed03cd7c994c0a678e3ef
refs/heads/master
2020-03-20T08:17:42.525989
2018-06-19T22:05:20
2018-06-19T22:05:20
137,304,270
3
0
null
null
null
null
UTF-8
Python
false
false
4,058
py
"""Render Twitter Squares Usage: render.py <term> <n_images> [--resolution=<n>] Options: -h --help Show this screen. -r --resolution=<n> Output resolution [default: 1200] """ import glob import os import sys import random from tqdm import tqdm import numpy as np import cv2 from docopt import doco...
[ "travis.hoppe@gmail.com" ]
travis.hoppe@gmail.com
fccc5e04254af51c2fc4a03cdf992b81f31a1d28
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/sql/v20190601preview/__init__.py
82b3a2004814746567987c5300774fdd220485e0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,559
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from ._enums import * from .database import * from .get_database import * from .get_managed_database import...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
8ce1689b4605bab929cceaf30bd0e1e4bc9293a9
b40d1a26ea04a19ec0da7bf55db84b7ee36cc898
/leetcode.com/python/1007_Minimum_Domino_Rotations_For_Equal_Row.py
974ee558096c8fe9a393d9b91f507186e8e356d7
[ "MIT" ]
permissive
partho-maple/coding-interview-gym
5e8af7d404c28d4b9b52e5cffc540fd51d8025cf
20ae1a048eddbc9a32c819cf61258e2b57572f05
refs/heads/master
2022-09-11T16:36:01.702626
2022-03-14T08:39:47
2022-03-14T08:39:47
69,802,909
862
438
MIT
2022-08-18T06:42:46
2016-10-02T14:51:31
Python
UTF-8
Python
false
false
2,177
py
# Source: https://tinyurl.com/v3zqer7 # Approach 1 class Solution(object): def minDominoRotations(self, A, B): """ :type A: List[int] :type B: List[int] :rtype: int """ result = float("inf") for domino in range(1, 7): # Since each domino can have only 1 to 6 ...
[ "partho.biswas@aurea.com" ]
partho.biswas@aurea.com
59ab5667a34c44fdb895072c8f91f93182bc126b
acf314ab0fa399018764b2ebd96e33c66362994e
/0x0F-python-object_relational_mapping/1-filter_states.py
3db5e1107d420d574d6614b5ae1f741eb6da16ad
[]
no_license
glyif/holbertonschool-higher_level_programming
98f9c2da0b71a4e9e2dd9f6fde755875e9015f34
14c02d79e2008db1b992b08f9faa55b20dbe0691
refs/heads/master
2021-01-20T06:53:16.179354
2017-09-28T18:14:12
2017-09-28T18:14:12
89,939,980
0
1
null
null
null
null
UTF-8
Python
false
false
975
py
#!/usr/bin/python3 """ mysqldb filter states """ import sys import MySQLdb def db_connection(user_name, password, db_name, host="localhost"): """ db_connection - connects to db :param user_name: username :param password: password :param db_name: database name :param host: host - default to lo...
[ "122@holbertonschool.com" ]
122@holbertonschool.com
2b6dbf579ae37711f46b26057e43ff7b642659e2
77c8c500d4077ad733fbfe2c6a85a1dd47bd3cb5
/chelseashin/ProblemSolving/2156_포도주시식.py
940cea71221cff29f679eb73ae27638dc45e2bad
[]
no_license
chelseashin/AlgorithmStudy2021
786f03c4c17bc057518d428481e7d710d24ec98e
1a4744a621ed25715fc9060c5224f0b1092d9c00
refs/heads/master
2023-06-22T22:27:47.289806
2021-07-28T02:54:22
2021-07-28T02:54:22
326,441,667
1
5
null
2021-06-29T01:27:40
2021-01-03T15:44:16
Python
UTF-8
Python
false
false
848
py
# 참고 : https://pacific-ocean.tistory.com/152 # https://claude-u.tistory.com/204 # dp[i]의 최댓값을 구하는 것은 세 가지 방법에 의해 결정된다. # 1) OXOO: 연속 두 개 # 2) OXO: 하나 띄고 한 개 # 3) X: i 번째를 마시지 않는 경우 from sys import stdin input = stdin.readline n = int(input()) a = [0] + [int(input()) for _ in range(n)] dp = [0, a[1]] if n > 1: dp....
[ "chaewonshin95@gmail.com" ]
chaewonshin95@gmail.com
0324dd3dc62f88495cb95ea7424deef660c43536
e2e39726195c7bc075b9bd56e757acd136527d5c
/typings/vtkmodules/vtkIOXML/__init__.pyi
5a9a78845d01dba6a9f4391c9438656d0f13da23
[ "BSD-3-Clause" ]
permissive
gen4438/vtk-python-stubs
a652272183d2d1ee48d4639e86bcffc1ac454af0
c9abd76362adf387af64ce5ddbd04c5d3bebe9da
refs/heads/main
2023-04-04T02:13:15.459241
2021-04-15T10:47:28
2021-04-15T10:53:59
358,224,363
1
0
null
null
null
null
UTF-8
Python
false
false
3,682
pyi
""" This type stub file was generated by pyright. """ import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore import vtkmodules.vtkCommonExecutionModel as __vtkmodules_vtkCommonExecutionModel import vtkmodules.vtkIOXMLParser as __vtkmodules_vtkIOXMLParser from .vtkXMLReader import vtkXMLReader from .vtkXMLDataRe...
[ "g1e2n04@gmail.com" ]
g1e2n04@gmail.com
ee9cee9c908ac3278c8545a66f4d96149faae702
7ce05272d21c903abc85ebc74544009aacd80c82
/Advance_Python/Python_Database_Programming/Other/add_user_in_bank.py
5c2f984a2d9a435280b32ffcf34ffcf45b74ed87
[]
no_license
sachinyadav3496/PythonInternBatch2018
8899a866f60a39b4c7eff4f5bc79ec2586833403
8e2610ad80c39ea747e8a6547ebe540e7b019a79
refs/heads/master
2021-06-26T09:18:58.178457
2020-10-03T09:49:32
2020-10-03T09:49:32
136,880,809
18
34
null
2020-10-03T09:49:33
2018-06-11T05:56:26
Jupyter Notebook
UTF-8
Python
false
false
548
py
import pymysql as sql db = sql.connect(host='localhost',port=3306,user='bank_app',password='redhat',database='bank_app') c = db.cursor() f = open('bank_data.csv') data = [] for line in f : d = line.split(',') d[2] = float(d[2][:-1]) data.append(d) f.close() for var in data : name = var[0] p...
[ "sachinyadav3496@gmail.com" ]
sachinyadav3496@gmail.com
073b6b152e0805dbc16dce1d402482e505bd9770
9d5723c09148cc353e5339a706ba582a162dceec
/hunkim/lab12-5.py
822c653469deeadaddde45a16a92e53b9bc3eaab
[]
no_license
SilverQ/dl_study
424bce279c059c290a4c766e87fadb150fff82da
663b432abc5afd0eed278368a5fea19ece6a383c
refs/heads/master
2022-11-14T08:27:10.937535
2020-07-02T10:05:04
2020-07-02T10:05:04
82,505,280
0
0
null
null
null
null
UTF-8
Python
false
false
6,120
py
''' The original script shows how to predict the next day's closing stock prices using a basic RNN https://github.com/hunkim/DeepLearningZeroToAll/blob/master/lab-12-5-rnn_stock_prediction.py At first, let's understand the original code and prior arts completely ''' import tensorflow as tf import numpy as np import ma...
[ "scor9947@hanmail.net" ]
scor9947@hanmail.net
f5b2ea2f20edbedb90a3351960045e897c52f2c3
db98aeb4883d2aa9969970d353b9d6212c7dbde2
/lectures/07-python-dictionaries/examples/dna9.py
f71e08b870a9f5ce84946e6c88096ad74de04bfa
[ "MIT" ]
permissive
qianwenluo/biosys-analytics
cec7e84477e01f9aa17e30c1fd8286710deed617
f936095931fa8f237de8bdf058b960db86effa49
refs/heads/master
2020-04-15T20:19:25.669143
2019-05-07T17:52:17
2019-05-07T17:52:17
164,988,099
0
1
MIT
2019-01-10T04:12:20
2019-01-10T04:12:20
null
UTF-8
Python
false
false
478
py
#!/usr/bin/env python3 """Tetra-nucleotide counter""" import sys import os from collections import defaultdict args = sys.argv[1:] if len(args) != 1: print('Usage: {} DNA'.format(os.path.basename(sys.argv[0]))) sys.exit(1) arg = args[0] dna = '' if os.path.isfile(arg): dna = ''.join(open(arg).read().spl...
[ "kyclark@gmail.com" ]
kyclark@gmail.com
908d6b9bdd11c832f27b876675752c230f0dd8e9
901bfc797cc369c0bea21167ac471d0311cb93ac
/e3/DiffieHellman.py
bf11a36e45a5949541a91c675a66430dd0b9b984
[ "MIT" ]
permissive
NigrumAquila/subject_cryptographic_protection
022216fd1481febc3a010efdfd11ab3398c73d00
2b4015b3c1b6d57391e866a70d308e78e5cab719
refs/heads/master
2021-03-17T15:58:10.590822
2020-05-01T06:30:54
2020-05-01T06:30:54
247,001,657
3
0
null
null
null
null
UTF-8
Python
false
false
858
py
import __main__ if __main__.__file__ != 'main.py': exit('run main.py') from .DHlib.DHalg import encrypt, decrypt, getSharedSecret, printAllKeys, printParams from lib.colors import * from lib.duty import * key = getSharedSecret() printAllKeys() while True: printParams(); message = typedText('Enter me...
[ "kononenko-1999@bk.ru" ]
kononenko-1999@bk.ru
2ed5006395d6e55cc012484b9d82f09f074e11cf
8fc2ab3d29a30e603e19b30bb9517928de529167
/hackerank_whatsnext.py
2d44363c21597514612dc972cc035e6441f66752
[]
no_license
rushilchugh/Practise
35a9861bec6786580dc0a440eb25d78e43cb7bc9
98fd593b95dad641bef1d519c6c6ed1daaae630f
refs/heads/master
2020-03-13T21:14:14.013604
2018-04-27T12:23:50
2018-04-27T12:23:50
131,291,684
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
__author__ = 'Rushil' #SetCount(x) - Number of ones in an binary number x #Johnny wants to find a binary number, D, that is the smallest binary number >B where setCount(B) = setCount(D) #He then wants to compress D into an array of integers,C (in the same way that integer array A contains the compressed form of bi...
[ "noreply@github.com" ]
rushilchugh.noreply@github.com
2ae309ab7516c2e17c6d104bf77aa92bce5dbd7d
26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f
/byceps/services/board/models/topic.py
ddc5451016c5f326ba92595817d09bd24677a035
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
leathe/byceps
40c1f8a1aab3521fcac45d88eab6364d448d4e67
cd0c618af63fed1cd7006bb67da46eac0ddbb1c7
refs/heads/master
2020-12-02T09:02:51.087511
2019-12-14T17:00:22
2019-12-14T17:00:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,529
py
""" byceps.services.board.models.topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from datetime import datetime from sqlalchemy.ext.associationproxy import association_proxy from ....blueprints.board.authorization import ( B...
[ "homework@nwsnet.de" ]
homework@nwsnet.de
a4315be2234838908f42b3d2d0d042647f384c92
a80884040ce1c178274a3068d216f440dd541844
/tests/regression/test_tee_map_completion.py
07635a9b627669bb5320d9242fc4ef3be123bf53
[ "MIT" ]
permissive
maki-nage/rxsci
a4aae51edc1ef684b55df22e34c11aa1d54ef740
915e59ebf593c4b313265bb87cf0e1209ec2ee0f
refs/heads/master
2023-01-19T14:32:11.638497
2023-01-17T08:06:35
2023-01-17T08:06:35
242,592,973
9
2
MIT
2022-11-08T21:54:16
2020-02-23T21:23:56
Python
UTF-8
Python
false
false
464
py
import rx import rx.operators as ops import rxsci as rs def test_completion(): data = [1, 2, 3] actual_data = [] actual_completed = [] rx.from_(data).pipe( rs.ops.tee_map( ops.count(), rs.math.sum(reduce=True), ) ).subscribe( on_next=actual_data.app...
[ "romain.picard@oakbits.com" ]
romain.picard@oakbits.com
28d7d37773b000b74a0651e75715b1992064c925
5d5f6ba3bdcb52b4750a5f28afa8a1a1019bfc9e
/python_basics/python_fundamentals/functionsIntermediate/functionsIntermediate1.py
d4c0b59e7de7fe8d6ba8eb493267361224b8c5de
[]
no_license
eDiazGtz/pythonLearning
06e96f2f5a6e48ac314cb815cf9fbf65d0b7c2c8
57d7b2292cf5d9769cce9adf765962c3c0930d6c
refs/heads/master
2023-06-18T02:16:09.293375
2021-05-03T18:09:52
2021-05-03T18:09:52
335,090,531
0
0
null
2021-05-03T18:09:53
2021-02-01T21:35:24
Python
UTF-8
Python
false
false
1,200
py
import random # random.random() returns a random floating number between 0.000 and 1.000 # random.random() * 50 returns a random floating number between 0.000 and 50.000 # random.random() * 25 + 10 returns a random floating number between 10.000 and 35.000 # round(num) returns the rounded integer value of num 0.5 roun...
[ "ediaz-gutierrez@hotmail.com" ]
ediaz-gutierrez@hotmail.com
c8770ff0014c49e8aef32a4df572380d038204df
23f3349e8b50f0cb3e461bbd65c1ea8dec792d0b
/2_semestr/lec_05.py
683d1a2c6fabbc138893e0adaa2d19cb1db944a8
[]
no_license
JacobLutin/Python_bmstu
d17866dbab0e74f0f9d600c4dbd9d53eb5c5b7be
66fd8679de7556978b9cd1e9fd8646a8d7d6daa8
refs/heads/master
2020-05-29T14:40:09.310602
2017-03-27T05:18:58
2017-03-27T05:18:58
64,742,311
0
0
null
null
null
null
UTF-8
Python
false
false
1,240
py
import numpy as np a = np.arange(12) a1 = np.copy(a) print("Исходная матрицы") a2 = np.reshape(a1, (3, 4)) print(a2, '\n') a2 = a2.T print("Транспонированная матрица") print(a2, '\n') #min, max, sum, сортировка b = np.array([[2, 8, 0], [6, 1, 3], [4, 7, 5]]) print("Новая исходная матрица\n", b, '\n') dsum = b.sum...
[ "jacoblutin@gmail.com" ]
jacoblutin@gmail.com
dcf32321584fe37884e0f4817db5a71e31b2c2c1
b0c2f67b2878a312c6e6ffa5fe4158bd55dad69c
/chap4/exp4.1.py
55fe517c4d14c71d71fb13cf69c53d6a324056ee
[]
no_license
loukey/pythonDemo
efda51be07beede0be2a8cdaae9b7e153bc790bc
9e6f64908ccba64d32ffc58edbb8d6f8ab6bf68d
refs/heads/master
2021-01-20T04:39:24.054749
2017-05-19T05:41:00
2017-05-19T05:41:00
89,711,134
3
0
null
null
null
null
UTF-8
Python
false
false
270
py
# -*- coding: utf-8 -*- #例4.1简单地打印数字 #很有趣的是,Python没有do..while以及while..until #但是我们也可以强行实现 while True: print 'Please enter a number:' number = input() print number if number==0: break print 'List Ended'
[ "529768926@qq.com" ]
529768926@qq.com
e8cb6b230d208935d065fedcf70f0c591e8ba666
8bdd86dd0ae6b6f7aae17ff0ef2d887afd06d2fa
/examples/sharecuts.py
e78cac870e69efa96b9030c63a0ef69e72d5fb6a
[ "MIT" ]
permissive
shuxiaokai/looter
b0504600e4d5730eff2aab27fbe19d2fd5fb1f18
2be094576e31fd13123719ca94e42cb31475dffa
refs/heads/master
2023-04-18T01:19:51.827004
2020-05-17T08:11:28
2020-05-17T08:11:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
""" 捷径社区的捷径排行榜 """ from pprint import pprint import requests import looter as lt domain = 'https://sharecuts.cn' total = [] def crawl(url): items = requests.get(url, headers=lt.DEFAULT_HEADERS).json() for item in items: data = {} data['name'] = item['name'] data['category'] = item['Ca...
[ "2582347430@qq.com" ]
2582347430@qq.com
6075bf7ba52d2c689ce7e8d799b2bdfa2bb43e1b
4ad06bae18751fd71df145d126e3624ea90e05e6
/flat_sharp/interpolation.py
b8f5c77d79fd72a53d69363fa13955e41a1408be
[]
no_license
daniellengyel/flat_sharp
04d82399e44d178e52c56acf1ba2ff3a75e4c27f
4a1e3f4abbebc7a5342aaa63080493b77aff5677
refs/heads/master
2021-04-22T16:14:26.238625
2020-07-09T13:03:44
2020-07-09T13:03:44
249,861,447
0
0
null
null
null
null
UTF-8
Python
false
false
5,933
py
import numpy as np from utils import * from data_getters import * from postprocessing import * import copy import torch def interpolate_models(model1, model2, beta): params1 = model1.named_parameters() params2 = model2.named_parameters() new_model = copy.deepcopy(model2) new_params = new_model.named...
[ "daniel.lengyel@berkeley.edu" ]
daniel.lengyel@berkeley.edu
3c2914aeeb137940e884af34f7f4ae1b9a1cb124
306d2a92fb331aec6ddf0794b538d6e3385a0df9
/app/api/news/views.py
4821c74644481851dbbc7b49363e6c122d7dddf6
[]
no_license
Zarinabonu/ForceApp
f343d3a52aee08890230c5425c9e238df99c5a7f
13f8e8613999c4850fc6f0bfcec66f897eecbe4a
refs/heads/master
2020-12-10T08:00:25.072289
2020-01-20T13:14:07
2020-01-20T13:14:07
233,540,795
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
from rest_framework.generics import ListAPIView from app.api.news.serializers import NewsSerializer from app.model import News class NewsListAPIView(ListAPIView): serializer_class = NewsSerializer def get_queryset(self): qs = News.objects.all() v = self.request.GET.get('-views') l_se...
[ "zarinabonu199924@gmail.com" ]
zarinabonu199924@gmail.com
fa4627fc540dc0fe3e22751b5e32ea7167da0399
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc029/B/4327177.py
e0009a3dbc5483db0e2de0f6c57fab864e879af1
[]
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
264
py
from collections import Counter input() A=list(map(int,input().split())) A.sort(reverse=True) C=Counter(A) ans=0 for a in A: if C[a]==0: continue C[a]-=1 t=2**a.bit_length()-a if C[t]: C[t]-=1 ans+=1 print(ans)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
955d81f88ec11f246f6d9dcdd6f9b8a4d2744fe8
c8dc80a0082b2d59de0e1df24b25483f55510c57
/0x0F-python-object_relational_mapping/11-model_state_insert.py
55472dd9df2fb8c159784fb95664ea3259b05a3a
[]
no_license
Daransoto/holbertonschool-higher_level_programming
51d81fac1dc3a6bd0799283332a3bcf5e2480330
4fa5f95b462f0e22b1e87189d162f0cb8c5625b6
refs/heads/master
2020-07-22T23:03:01.184032
2020-02-13T21:36:18
2020-02-13T21:36:18
207,358,507
0
4
null
null
null
null
UTF-8
Python
false
false
605
py
#!/usr/bin/python3 """ Inserts Louisiana state. """ import sys from sqlalchemy import create_engine from model_state import Base, State from sqlalchemy.orm import sessionmaker if __name__ == "__main__": engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}' .format(sys.argv[1], sys....
[ "901@holbertonschool.com" ]
901@holbertonschool.com
d5b2d0a9e571234c680d803851735c7c32986bee
62912bea20c56093f27fb2826e0f5f4a26a3ed0b
/symphony/cli/pyinventory/api/user.py
26b7cb869b430045ee70020b452c8fdb9a7edcd2
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
sijad/magma
5c2b6520e207f05c29f29248627b90629f1f4088
78b5f16432d7070a84da74b90d4f1e3f8348fa37
refs/heads/master
2021-04-09T06:34:15.295104
2020-03-20T19:28:42
2020-03-20T19:31:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,129
py
#!/usr/bin/env python3 # Copyright (c) 2004-present Facebook All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from typing import List from ..client import SymphonyClient from ..consts import Entity, User from ..exceptions import EntityNotFoundE...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
fda194aff772871c7c4b2ea781497dc72cf05c8a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_cryings.py
62b48a889fcdd5f58f940b8aca110dd0c8ff2b83
[ "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
223
py
from xai.brain.wordbase.verbs._cry import _CRY #calss header class _CRYINGS(_CRY, ): def __init__(self,): _CRY.__init__(self) self.name = "CRYINGS" self.specie = 'verbs' self.basic = "cry" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ca010878792d0bc73fec72213f7db9f251dfd0e5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_bandaged.py
9ef009f331d8a4fe83aa934179c391e624957156
[ "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
245
py
from xai.brain.wordbase.nouns._bandage import _BANDAGE #calss header class _BANDAGED(_BANDAGE, ): def __init__(self,): _BANDAGE.__init__(self) self.name = "BANDAGED" self.specie = 'nouns' self.basic = "bandage" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
cd846f89d90d6f2f5ce61fa895e49409d4e39009
604ffaf79c5f9c816bb1a2151ae33fbf29bca52b
/cloudstoragetui/keypress.py
6eaf37d5320d02c08c43e2c2b52b735c33eabb6f
[ "MIT" ]
permissive
joeyism/cloud-storage-tui
1069092b51f1d11daa033ea5896b625e42e55691
8fda9bc8551756e88db706944489f1bbcc95a52c
refs/heads/master
2023-05-31T00:33:07.979555
2021-06-07T17:19:26
2021-06-07T17:19:26
352,346,198
0
0
null
null
null
null
UTF-8
Python
false
false
1,773
py
import curses from typing import List from cloudstoragetui.constants import KEY_QUIT, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_ENTER, ESC, UP, DOWN, LEFT, RIGHT from cloudstoragetui.draw import DrawnBox from cloudstoragetui.cursor_state import CursorState from cloudstoragetui.debug import log def _extract_min_max(b...
[ "sham.joey@gmail.com" ]
sham.joey@gmail.com
8020760bc5cd0a1d148739c5991cea3a09beb85f
5aadc1f06bdb68a73bb003b23cc85af528d61bf4
/detection_network/src/rl/ppo.py
b71a185fbb72e8e16bc734d17634f6bdea14b165
[]
no_license
zideajang/zi_full_self_drive_system
81dca2ca0541dfab7c021c6e3a0e58701bbf1693
fee2e4057619a19a585fbd8b9622f69c25946be1
refs/heads/master
2023-09-03T02:41:35.720600
2021-09-27T02:37:41
2021-09-27T02:37:41
358,083,188
1
1
null
null
null
null
UTF-8
Python
false
false
2,307
py
import torch import torch.optim as optim class RolloutStorage: def __init__(self,num_steps,num_processes,action_size): pass class PPO(object): def __init__( self, controller, clip_param, lr, baseline_decay, action_size = 18, ppo_epoch=1, ...
[ "you@example.com" ]
you@example.com
1fe3fb6fa971710011542bc58df695cb0c6d7730
c3082eb2adc43b311dd3c9ff16fd3ed9df85f266
/python/examples/fastapi/dynamic-response/main.py
e9ecf608f59322153963fae72ce85a28b0f05e1f
[]
no_license
szabgab/slides
78818c7138331b3ba9e221c81da3678a46efe9b3
63bba06678554db737602f2fbcd6510c36037e8a
refs/heads/main
2023-08-31T07:13:51.536711
2023-08-29T13:17:59
2023-08-29T13:17:59
122,212,527
87
69
null
2023-05-19T06:55:11
2018-02-20T14:57:03
Python
UTF-8
Python
false
false
164
py
from fastapi import FastAPI import datetime app = FastAPI() @app.get("/") async def root(): return {"message": f"Hello World at {datetime.datetime.now()}"}
[ "gabor@szabgab.com" ]
gabor@szabgab.com
a9582fe1ff3a16c1aa108f54b5ff1ae3984f5ccb
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_171/ch65_2019_06_07_01_24_18_525767.py
79aa0ff8a8f6334244edcac2ba434f9ec46d556f
[]
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
206
py
def acha_bigramas(string): lista=[] i=0 while i<len(string): if string[i:i+2] not in lista and len(string[i:i+2])>3: lista.append(string[i:i+2]) i+=1 return lista
[ "you@example.com" ]
you@example.com
c5248a3cae6dcafab9c6ad505abc712db1980a72
74ec860957869ea48af8535bf32f9fd87cc81011
/dna-methylation/scripts/develop/illumina450k/residuals/plot/scatter_comparison.py
22a26b4bf6f95cc4078b5e99f2a407784322a5a3
[]
no_license
GillianGrayson/dna-methylation
f1a0878f4aa8c917bee9e5230387d6145826fb3a
e602ba91f3d275d92aadf0f874ac6f189adf547b
refs/heads/master
2022-02-08T03:31:22.423781
2022-02-01T16:50:37
2022-02-01T16:50:37
164,105,085
0
1
null
2020-03-20T18:08:24
2019-01-04T12:30:29
Python
UTF-8
Python
false
false
2,721
py
import pydnameth as pdm import pandas as pd import os.path from scripts.develop.routines import * max_rows = 10 fn = 'scatter_comparison_rows.xlsx' rows_dict = {} if os.path.isfile(fn): df = pd.read_excel(fn) tmp_dict = df.to_dict() for key in tmp_dict: curr_dict = tmp_dict[key] rows_dict[...
[ "hewitt.archie@yandex.ru" ]
hewitt.archie@yandex.ru
8df0a5de30770486d65f5750ddf7332158529917
385ce240ae264a1449079c21bd0c4cbe7c0fe3b8
/myowntests/ifelseladder.py
6be8802a946907017b902d6c6c70418b5968deb2
[]
no_license
Maxcousin123/Python-workspace
3ed60ae80d790b5c055bf47872ff0fdd39f4ec58
326b023190a12e082dcb35ae5ab8ef644c32159b
refs/heads/master
2022-11-24T11:05:08.707003
2020-07-29T06:32:08
2020-07-29T06:32:08
283,415,557
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
maths=int(input('fill your math grade')) physics=int(input('fill your physics grade')) chemistry=int(input('fill your chemistry grade')) av=(maths+physics+chemistry)/3 if maths<35: print('Exam Failed') else:print('Exam passed') if physics<35: print('Exam failed') else:print('Exam passed') if physics<35: ...
[ "66350396+Maxcousin123@users.noreply.github.com" ]
66350396+Maxcousin123@users.noreply.github.com
c737af5d1ff073a22f5a3aaaf91937cb8797fb95
8164fd930d78efbd3885198efbfd9692c585319b
/week7/CrawWeb/craw_web.py
b837f0305e260bb319dc6622a4866529aa9c6f96
[]
no_license
kobso1245/Hack_BG
7a7b7524b20fada3d9856a583e02c6959d442e66
7ffdb8ccefd67aeca5a49c9a9354e65c77149ad4
refs/heads/master
2020-05-31T17:43:10.316633
2015-10-05T21:43:20
2015-10-05T21:43:20
30,460,888
0
1
null
null
null
null
UTF-8
Python
false
false
194
py
from Crawler import * from Histogram import * from Plotter import * if __name__ == '__main__': craw("http://register.start.bg/", "histogram2") plot("path_to_database_file/websites.db")
[ "kalo.evt@mail.bg" ]
kalo.evt@mail.bg
414d29786eb51284f28473d7090b7778c546c6c3
dd860973103347b382d8a04ef68a9376561725ea
/wazimap_ng/profile/serializers/highlights_serializer.py
003ee147dc77b5daa5f28a8c58f772775589eb56
[ "Apache-2.0" ]
permissive
mauricemojito/wazimap-ng
7a7da6c9fc653054c376d77c22df120ed0abb653
e03748cb1258cbafb43faba441bbc37dd0556a2a
refs/heads/master
2023-03-12T01:45:53.173039
2020-09-30T13:55:29
2020-09-30T13:55:29
342,342,503
0
0
Apache-2.0
2021-02-25T18:55:09
2021-02-25T18:34:39
Python
UTF-8
Python
false
false
2,545
py
from wazimap_ng.datasets.models import IndicatorData from wazimap_ng.utils import mergedict def get_subindicator(highlight): subindicators = highlight.indicator.subindicators idx = highlight.subindicator if highlight.subindicator is not None else 0 return subindicators[idx] def sibling(highlight, geogra...
[ "adi@openup.org.za" ]
adi@openup.org.za
a6269498158572202304da939470fc4fdd2e3b1f
060ce17de7b5cdbd5f7064d1fceb4ded17a23649
/fn_github/tests/test_releases.py
afd754d1f6b234e0108ff323b9fb987cfd825a66
[ "MIT" ]
permissive
ibmresilient/resilient-community-apps
74bbd770062a22801cef585d4415c29cbb4d34e2
6878c78b94eeca407998a41ce8db2cc00f2b6758
refs/heads/main
2023-06-26T20:47:15.059297
2023-06-23T16:33:58
2023-06-23T16:33:58
101,410,006
81
107
MIT
2023-03-29T20:40:31
2017-08-25T14:07:33
Python
UTF-8
Python
false
false
4,464
py
# -*- coding: utf-8 -*- """Tests using pytest_resilient_circuits""" import pytest from .common_config import github_config, TS from resilient_circuits.util import get_config_data, get_function_definition from resilient_circuits import SubmitTestFunction, FunctionResult PACKAGE_NAME = "fn_github" FUNCTION_NAME = "gith...
[ "travis@example.org" ]
travis@example.org
8ebabb8929c847e3c9edcd7a71bcd0940adfa0c2
d44bfb67b8b19f3773558870a71a42e0cd3ec002
/telemetry-library/telemetry/telemetry_mqtt.py
cc84776095c2500d7a5842bdd8449b8635c5956f
[ "Apache-2.0" ]
permissive
Abstract-Horizon/pyros-telemetry
764cdbb8cc98b7d72b1b2a04490c4989c003cbd2
7ecb5deaf266689555cbf0721f9c156e4dfe28d7
refs/heads/master
2023-08-17T19:52:24.684594
2021-10-11T17:46:40
2021-10-11T17:46:40
272,370,230
0
0
null
null
null
null
UTF-8
Python
false
false
6,580
py
################################################################################ # Copyright (C) 2016-2020 Abstract Horizon # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License v2.0 # which accompanies this distribution, and is available at # http...
[ "natdan@users.noreply.github.com" ]
natdan@users.noreply.github.com
09da46de08db8efd21ef86e80c0bd1b0bfa4641f
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/fbs_0140+360/sdB_FBS_0140+360_lc.py
757218cb78912bdc16ba760e680f6cef9c974b74
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[25.926708,36.25925], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_FBS_0140+360 /sdB_FBS_0140+360_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if __name...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
0f923332d74ab03086681ff9097adf5ed4fd7603
70ec704fdd3e30c5df97323cd4c9532ebfd544ea
/ml_wiki/ch2/selenium-login.py
d53a91bf593dc64f47bd9b445885c8954f53b454
[]
no_license
smart1004/learn_src
e02c13c82bae65b7de2a572e4a1ae58e2ea11588
353f92f7657a6f676a271d8d7f00d7c20e39d234
refs/heads/master
2021-01-25T11:49:49.906805
2018-04-08T13:26:18
2018-04-08T13:26:18
123,435,997
3
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
from selenium import webdriver USER = "<아이디>" PASS = "<비밀번호>" # PhantomJS 드라이버 추출하기 --- (※1) browser = webdriver.PhantomJS() browser.implicitly_wait(3) # 로그인 페이지에 접근하기 --- (※2) url_login = "https://nid.naver.com/nidlogin.login" browser.get(url_login) print("로그인 페이지에 접근합니다.") # 텍스트 박스에 아이디와 비밀번호 입력하기 --- (※3) ...
[ "kusung25@naver.com" ]
kusung25@naver.com
38459d585c7f1861e8774c7571859a85236be08b
6515a47190986c4f3b6beececfabab42e3d34e34
/Models/GPT2_Model/Model/GPT2LMHead.py
7f0304b3b13ce6e44e8c037aec7823bb34427b7e
[]
no_license
jk96491/Advanced_Models
f4140936f5004ed9a9464ad745b33e52d63157fa
cde49356fec3c53296446a54f4be497a89dd08cd
refs/heads/master
2023-06-14T02:26:43.869417
2021-06-30T13:07:31
2021-06-30T13:07:31
143,489,382
60
16
null
null
null
null
UTF-8
Python
false
false
782
py
import torch.nn as nn class GPT2LMHead(nn.Module): def __init__(self, model_embeddings_weights, config): super(GPT2LMHead, self).__init__() self.n_embd = config.n_embd self.set_embeddings_weights(model_embeddings_weights) def set_embeddings_weights(self, model_embeddings_weig...
[ "jk96491@naver.com" ]
jk96491@naver.com
1e236e30d75c559339f1261b732a9a70d9df7122
35053a371d85c2d45a4f52239d8a70b38194ef48
/Can Place Flowers.py
86bf8aeeb427181d1fe805cbf5b1d1bcb364a643
[]
no_license
Kuehar/LeetCode
51d169c81a2e572ea854399fc78e1130220388f9
4555c20455f181f9dd7b3aba2a8779dea795edfb
refs/heads/master
2023-04-16T10:13:03.584541
2023-04-06T11:47:21
2023-04-06T11:47:21
243,361,421
4
0
null
null
null
null
UTF-8
Python
false
false
930
py
class Solution: def canPlaceFlowers(self, flowerbed: List[int], n: int) -> bool: if n == 0: return True if len(flowerbed) == 0: return False if len(flowerbed) == 1: return flowerbed[0] == 0 pre,cur = flowerbed[0],flowerbed[1] if pre + cur == 0: flower...
[ "noreply@github.com" ]
Kuehar.noreply@github.com
2e79679ebdc6ebb91b85f95ac5bccc7866b865ab
ace30d0a4b1452171123c46eb0f917e106a70225
/filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/openstackclient/tests/functional/image/v2/test_image.py
6faff94a3295cd738875bfb8fda2baf1ac162efb
[ "Python-2.0" ]
permissive
juancarlosdiaztorres/Ansible-OpenStack
e98aa8c1c59b0c0040c05df292964520dd796f71
c01951b33e278de9e769c2d0609c0be61d2cb26b
refs/heads/master
2022-11-21T18:08:21.948330
2018-10-15T11:39:20
2018-10-15T11:39:20
152,568,204
0
3
null
2022-11-19T17:38:49
2018-10-11T09:45:48
Python
UTF-8
Python
false
false
3,865
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
[ "jcdiaztorres96@gmail.com" ]
jcdiaztorres96@gmail.com
4fe46a3e69863bca6e98c1cb6ab5c17fd36f8261
5c531de5e4759c904e608b4fc653b2b041f79a0e
/779. K-th Symbol in Grammar.py
06e46cf683b3f090a9b595db7b7a9fd6675029aa
[]
no_license
jianhui-ben/leetcode_python
133c7e6e5c7316d00607ba2e327239e002de28b2
fcc16124cc24a5993e27f5d97e78d8f290e68230
refs/heads/master
2022-06-05T22:32:18.034581
2022-05-17T02:27:11
2022-05-17T02:27:11
250,683,308
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
#779. K-th Symbol in Grammar #On the first row, we write a 0. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence of 1 with 10. #Given row N and index K, return the K-th indexed symbol in row N. (The values of K are 1-indexed.) (1 indexed). #Examples:...
[ "jianhui.ben@gmail.com" ]
jianhui.ben@gmail.com
600d648aef968fa6d9aaf3ddd8d410059382df4b
65f856bb3c782fe2fec794192260d5b7aa997ef3
/wsc_django/wsc_django/apps/shop/services.py
0a53f3c8e183bdcaeeefad41252f7a5440069671
[ "MIT" ]
permissive
hzh595395786/wsc_django
0c8faf0cac1d8db8d9e3fa22f6914b6b64bf788b
c0a4de1a4479fe83f36108c1fdd4d68d18348b8d
refs/heads/main
2023-06-06T07:26:17.979944
2021-06-24T13:14:53
2021-06-24T13:14:53
336,303,377
2
0
null
null
null
null
UTF-8
Python
false
false
4,909
py
from uuid import uuid4 from django.db.models import Count from product.constant import ProductStatus from shop.models import Shop, HistoryRealName, ShopRejectReason, PayChannel from shop.utils import get_shop_mini_program_qcode, put_qcode_file_to_tencent_cos from user.models import User from shop.constant import ( ...
[ "595395786@qq.com" ]
595395786@qq.com
a4988105b8f44db42f20393940d9d3a3ae4e6178
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/191/bmi.py
0ee130d805eb92fd958498062113b022207001d6
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,056
py
# data """Luke Skywalker,172,77 # C-3PO,167,75 # R2-D2,96,32 # Darth Vader,202,136 # Leia Organa,150,49 # Owen Lars,178,120 # Beru Whitesun lars,165,75 # R5-D4,97,32 # Biggs Darklighter,183,84 # Obi-Wan Kenobi,182,77 # A...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
94171e19440d59601861aee4f580b056a82ba31e
104085f6878411a137521b17c06612e5f648ef33
/service_pro/service_pro/doctype/agent_payment_request/agent_payment_request_dashboard.py
bf5bad55f86a6116faab28263273e7b0828fce28
[ "MIT" ]
permissive
ksbbalean/service-pro
d39f0d12977dd66627b9f7c0336c605d7be4c388
c89b39a8e9967dada50dc0db4b08460ed45843bf
refs/heads/master
2023-04-13T05:35:19.842021
2021-04-22T11:05:18
2021-04-22T11:05:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
from frappe import _ def get_data(): return { 'fieldname': 'agent_payment_request', 'transactions': [ { 'label': _('Linked Forms'), 'items': ["Journal Entry"] } ] }
[ "jangeles@bai.ph" ]
jangeles@bai.ph
9efe79a16c6f27bddfc4536d573389398935b830
3b5d1a53af8d2f4094005f342403eabc7af9c980
/moderation_module/storage/logging_data.py
5f1eb3107e2c0a2e75844b5cbdd60700cde60414
[ "MIT" ]
permissive
alentoghostflame/StupidAlentoBot
daa828be3d47b24d3e13d500155a6a0d2019f724
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
refs/heads/master
2021-06-30T17:50:14.997416
2021-06-08T03:54:24
2021-06-08T03:54:24
237,541,303
2
0
null
null
null
null
UTF-8
Python
false
false
387
py
from alento_bot import guild_data_transformer import logging import typing logger = logging.getLogger("main_bot") @guild_data_transformer(name="guild_logging_config") class GuildLoggingConfig: def __init__(self): self.toggled_on: bool = False self.log_channel_id: int = 0 self.exempt_chan...
[ "alexanderschoenhofen@gmail.com" ]
alexanderschoenhofen@gmail.com
6f361c7d8b2af01f6ee96c8df06630eaf5cef7f8
1929a989d1e2a5c5caabad32aa8baf4444250574
/h2o-py/tests/testdir_munging/pyunit_upload_large.py
3d4d69107d8603c202a6d6e94a6ae18df88df391
[ "Apache-2.0" ]
permissive
codelibs/h2o-3
9c417c0c6ee4ae9a6eaffe5a0373c0d78c37527e
cf96fb28da4732870a0d65c24f0d99f422d140d1
refs/heads/master
2023-05-27T10:04:14.408620
2023-04-28T18:16:48
2023-04-28T18:16:48
253,197,280
0
0
Apache-2.0
2020-04-05T09:22:41
2020-04-05T09:22:40
null
UTF-8
Python
false
false
772
py
from __future__ import print_function import sys sys.path.insert(1,"../../") import h2o import os import tempfile from tests import pyunit_utils def generate_large_file(path, size): with open(path, "wb") as f: f.seek(size-1) f.write(b"\0") assert size == os.stat(path).st_size def upload_larg...
[ "michalk@h2o.ai" ]
michalk@h2o.ai
6f927f95ffc8e9ede4b6ba26df040a784d1f5146
8f5cb19e9c6a0670100b4a4fbdbb892d94ccd4a8
/deployment/georegistry.py
5c1e240d6a6b964f6e177dd39a8f7f9b1dc6a607
[]
no_license
invisibleroads/georegistry
84438e680e56ac716f60d23784f05469c4888841
df56cc17b01a794bfbd53f354bb5fa9abeb420cc
refs/heads/master
2023-08-24T03:34:50.554375
2011-05-05T16:36:19
2011-05-05T16:36:19
966,680
1
2
null
null
null
null
UTF-8
Python
false
false
2,359
py
'GeoRegistry API Python wrapper' # Import system modules import urllib import urllib2 import simplejson # Core baseURL = 'http://georegistry.invisibleroads.com' def updateFeatures(key, srid, featureCollection, tags, public=False): 'Update features using the GeoRegistry web service' # Initialize url = ba...
[ "support@invisibleroads.com" ]
support@invisibleroads.com
8071db56a1faa459eccd4c3bfbd0c735f51f2c1e
6ace7e15e3191d1b8228ad7922a8552ca84f84e7
/.history/image_detector_20200614203341.py
2465a36001cd934f7bd739e37f170e75e719b85c
[]
no_license
mehmetaliarican/Similar-Image-Finder
f72e95be50c51aa03fc64954a03124b199ca64b1
a9e0015c443b4a73394099cccf60329cfc4c7cef
refs/heads/master
2022-10-27T00:57:43.173993
2020-06-14T18:02:16
2020-06-14T18:02:16
272,256,295
0
1
null
null
null
null
UTF-8
Python
false
false
2,485
py
from skimage.metrics import structural_similarity as ssim from imutils import paths import matplotlib.pyplot as plt import numpy as np import cv2 import glob import os import argparse ap = argparse.ArgumentParser() ap.add_argument("-t", "--threshold", type=float, default=0.9, help="threshold") ap.add_a...
[ "m.ali.arican@gmail.com" ]
m.ali.arican@gmail.com
5268cff948f9c48f0fd6138032a6afd729243dd6
2a6412a9359a1df5f8f12e319e73b9e4e46fd64c
/specializedSubjects/AlgorithmII/dijkstra_ON2.py
f7130f780bcfbbcb7e2864c816bf76de51c44942
[]
no_license
danganhvu1998/myINIAD
504d1147a02f12e593f30e369daf82f85aa01bfd
01547673dd3065efb6c7cc8db77ec93a5a4f5d98
refs/heads/master
2022-03-17T12:58:34.647229
2022-02-08T06:34:19
2022-02-08T06:34:19
143,675,719
1
4
null
null
null
null
UTF-8
Python
false
false
770
py
import networkx as nx import matplotlib.pyplot as plt def get_min(D, X): arg_min= -1 min_value= float('inf') for i in range(len(D)): if D[i] < min_value: if i in X: arg_min= i min_value= D[i] return arg_min def dijkstra(src, G): D= [float('inf')...
[ "danganhvu1998@gmail.com" ]
danganhvu1998@gmail.com
62f8f6e45e2c8fa0b96b0ee822ef9e2ee1a0d83b
44a7b4879c1da661cc2e8aa51c7fcc24cfb0fd3b
/src/scs_core/osio/manager/user_manager.py
f14e3e70118f2019ef5dd083551e6ca93ec113de
[ "MIT" ]
permissive
seoss/scs_core
21cd235c9630c68f651b9a8c88120ab98fe5f513
a813f85f86b6973fa77722a7d61cc93762ceba09
refs/heads/master
2021-08-08T08:09:56.905078
2020-04-16T19:46:52
2020-04-16T19:46:52
156,239,538
0
0
null
null
null
null
UTF-8
Python
false
false
2,315
py
""" Created on 21 Mar 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ from scs_core.osio.client.rest_client import RESTClient from scs_core.osio.data.user import User from scs_core.osio.data.user_metadata import UserMetadata # ---------------------------------------------------------------------...
[ "bruno.beloff@southcoastscience.com" ]
bruno.beloff@southcoastscience.com
2db16db5c0570084ec0dbb9abc064697f824fa90
f51aff57f826aeea1be21e2d0c03cce0adaadefc
/exp/utils/rand.py
70cd3809130978b9f18a56c77772c3f8afb2594d
[ "MIT" ]
permissive
zv5dmjq5/vivit
0a26f8b61e6f00da75fce7a9bbc75b0185ffea76
a05f448d1badb2db42e724c80676ce7e309194d2
refs/heads/master
2023-07-12T06:36:10.627912
2021-08-26T12:02:59
2021-08-26T12:02:59
370,409,161
1
0
MIT
2021-08-10T12:58:27
2021-05-24T16:00:04
Python
UTF-8
Python
false
false
1,198
py
"""Utility functions to control random seeds.""" import torch class temporary_seed: """Temporarily set PyTorch seed to a different value, then restore current value. This has the effect that code inside this context does not influence the outer loop's random generator state. """ def __init__(se...
[ "Anonymous" ]
Anonymous
a645386e0c34474857014299151a5d45a2ce0535
b8115bc7503581bf3bb44bfa87b270793aff4381
/ddsp/training/data_preparation/ddsp_prepare_tfrecord.py
f7a4c0f3576f5ff085e50c33af5f4a887ed246f2
[ "Apache-2.0" ]
permissive
pollinations/ddsp
7a5cfd18efcd8a77729d26231d294a4c03c2d286
4bbb3b1b0aa9e9a4c1f77e8758f409cbd1ec03f7
refs/heads/main
2023-06-21T18:21:37.230721
2021-07-22T09:45:54
2021-07-22T09:45:54
388,399,770
0
0
Apache-2.0
2021-07-22T09:14:11
2021-07-22T09:14:10
null
UTF-8
Python
false
false
3,340
py
# Copyright 2021 The DDSP Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
[ "no-reply@google.com" ]
no-reply@google.com
8e1fb53a12cc8169be23e1cdcdc37884cdf551ec
a6cbc03780b5c390f4f8ce9063bd8a7f6d75e8aa
/mail2.py
1c0dfcd906c6beffc8d5efcafb1c822ea969e238
[]
no_license
KimaruThagna/Email_and_Regex
5f825554bd17e56ff091a79187c5ab7a758960d9
c250e37d6e09f1a9c35fb6af873ff1c77707a8fd
refs/heads/master
2021-09-06T11:59:04.784389
2018-02-06T12:16:58
2018-02-06T12:16:58
110,789,925
2
1
null
null
null
null
UTF-8
Python
false
false
1,992
py
#This example still uses gmail but this time includes an attachment import os,smtplib from email.mime.text import MIMEText from email.encoders import encode_base64 from email.mime.multipart import MIMEMultipart from tkinter.filedialog import askopenfilename from email.mime.base import MIMEBase # function that sends the...
[ "thagana44@gmail.com" ]
thagana44@gmail.com
d5ab6e2c2301fa7c2de21056b961275cd20e463d
840b98f14f181f7dbd693f2ee4b3c46e5be59305
/demos/demo_pycloudmessenger/POM1/NeuralNetworks/pom1_NN_worker_pycloudmessenger.py
3bb1b70be16f54c7404843da2a380711222b695e
[ "Apache-2.0" ]
permissive
Musketeer-H2020/MMLL-Robust
4ef6b2ff5dff18d4d2b2a403a89d9455ba861e2b
ccc0a7674a04ae0d00bedc38893b33184c5f68c6
refs/heads/main
2023-09-01T18:47:46.065297
2021-09-28T15:34:12
2021-09-28T15:34:12
386,264,004
0
0
null
null
null
null
UTF-8
Python
false
false
7,786
py
# -*- coding: utf-8 -*- ''' @author: Marcos Fernandez Diaz November 2020 Example of use: python pom1_NN_worker_pycloudmessenger.py --user <user> --password <password> --task_name <task_name> --id <id> Parameters: - user: String with the name of the user. If the user does not exist in the pycloudmessenger...
[ "rober.diaz@gmail.com" ]
rober.diaz@gmail.com
95986ae73d179770f7292b38dbaaf00b540d68bb
67ecf1aca10c6b3504027edc131d3f295a66ae08
/00-deleteintreeview.py
d3e2d07a7e5d08d4338fd394ee4a32966af7637f
[ "MIT" ]
permissive
UncleEngineer/TkinterTrick
5efa58dee8612d48d18040debe7868c6b5815e3c
471a5f4906ddad195731410e9df1a2b35f466fcb
refs/heads/master
2020-03-16T09:57:28.696335
2018-06-22T10:23:39
2018-06-22T10:23:39
132,626,504
1
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
from tkinter import * from tkinter import ttk root = Tk() tree = ttk.Treeview(root) tree["columns"]=("one","two") tree.column("one", width=100 ) tree.column("two", width=100) tree.heading("one", text="coulmn A") tree.heading("two", text="column B") tree.insert("" , 0, text="Line 1", values=("1A","...
[ "noreply@github.com" ]
UncleEngineer.noreply@github.com
d2af03e3a4906a1fa23e9f3a1ce18e723be2b7dd
a5b4d77e760c6131ba1c5f040265a3b08d3c0478
/enemy_bot/enemy_bot_level5/burger_detect/scripts/image_save.py
e695863b746ba773cd8cf5ea415ec5f9c57f2dab
[ "BSD-3-Clause" ]
permissive
kenjirotorii/burger_war_kit
700b511739299a9d90d23c70262ecf4856d234b7
d9b1b443f220980a4118c13cdf22174696c3db9c
refs/heads/main
2023-03-21T23:32:24.415502
2021-03-11T15:59:12
2021-03-11T15:59:12
337,704,943
0
1
BSD-3-Clause
2021-03-11T15:59:13
2021-02-10T11:36:22
Python
UTF-8
Python
false
false
1,046
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy import random # from geometry_msgs.msg import Twist from sensor_msgs.msg import Image import sys from cv_bridge import CvBridge, CvBridgeError import cv2 import time import os dir="Image/test/" num=10*1000 class ImageGet(): def __init__(self): r...
[ "you@example.com" ]
you@example.com
327f5bed18063bc5103443d55e4856bea69453da
009c5522fe7fd1b6ffad167097535e592818c9d7
/app/inheritance/abstract/migrations/0003_auto_20191223_0545.py
02758dcc786385764c2036954dc49dd6a0eb3c57
[]
no_license
moorekwon/django-document
d891d3d329bc697598517c0918e912da89cf5f6a
983de2babdabd106e17467af27bac4efced170b8
refs/heads/master
2021-09-29T00:37:04.647977
2019-12-26T09:07:55
2019-12-26T09:07:55
228,784,209
0
0
null
2021-09-22T18:10:05
2019-12-18T07:35:12
Python
UTF-8
Python
false
false
740
py
# Generated by Django 3.0 on 2019-12-23 05:45 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('abstract', '0002_childa_childb'), ] operations = [ migrations.AlterField( model_name='childa', ...
[ "raccoonhj33@gmail.com" ]
raccoonhj33@gmail.com
37cda467832d9959605d1668f2ef07cc8c293df9
ece6f45409ee2bcbff1be64fa1ac98e7805e0e18
/API:Data_Visualization/population_json.py
78c7c29a84dd29b055d74f7b1bbb767d4b2871b3
[]
no_license
PickertJoe/python_exercises
5b9ac3334eec32e35a477d126c911d4ca07a4343
77955427db9c3342c9a51618a0cd9cf6f884fbee
refs/heads/master
2022-12-12T11:57:08.267814
2019-12-08T21:52:31
2019-12-08T21:52:31
184,834,676
1
0
null
2022-12-08T05:14:43
2019-05-04T00:16:12
Python
UTF-8
Python
false
false
1,293
py
# A program to read and analyze the data in population_data.json import json from comma import comma from country_code import code_search from pygal.maps.world import World from pygal.style import RotateStyle # Importing the data in the json file into a list filename = "chapter_16/population_data.json" with open(file...
[ "pickertjoe@gmail.com" ]
pickertjoe@gmail.com
65c4da75fb004f1520cb29a69802bcce620518d9
40c4b0c31a5870a9201d3d42a63c5547092e5912
/frappe/recorder.py
8cbcaa01bb980c8cbdc9a77613591f7700643486
[ "MIT" ]
permissive
ektai/frappe3
fab138cdbe15bab8214cf623d9eb461e9b9fb1cd
44aa948b4d5a0d729eacfb3dabdc9c8894ae1799
refs/heads/master
2022-12-25T15:48:36.926197
2020-10-07T09:19:20
2020-10-07T09:19:20
301,951,677
0
0
null
null
null
null
UTF-8
Python
false
false
5,212
py
# -*- coding: utf-8 -*- # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals from collections import Counter import datetime import inspect import json import re import time import traceback import frappe import sqlparse from pygmen...
[ "63931935+ektai@users.noreply.github.com" ]
63931935+ektai@users.noreply.github.com
871e74c940da56c3387dffad57b313ca22cdc089
9d961bd6a590cc96db0c1f9c72d84e3a66636edf
/심심풀이땅콩/[백준]4673.py
76fb463f5fde7bf3313b00ca4769b70034e63f75
[]
no_license
0equal2/Python_Programming
bae65338929e8e1a88247b8d23de805caa026702
2ac1d0262320220f49cbdb45e787e55e994d0b0f
refs/heads/master
2023-05-14T22:13:41.583214
2021-06-09T03:04:51
2021-06-09T03:04:51
304,628,012
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
###[백준]4673 memo=[0]*10001 for i in range(1,10001): newnum=i+sum(list(map(int,list(str(i))))) if newnum<=10000: memo[newnum]=1 if memo[i]==0: print(i)
[ "duddms0115@gmail.com" ]
duddms0115@gmail.com
4b99c672e34294a5f110b6531518b6d7056de15a
1be2cbc9fd62cf77cc05a64807acf7d857b84eee
/blackopt/config.py
a2114330cc418e849f46670ef206413bcc1d54b6
[]
no_license
ikamensh/blackopt
4fdce2c0147b1a5a85024c9b59925d3d1a35b13f
a6ab24ce1be21a5ca9e26d0bb1f59bb50fd007a2
refs/heads/master
2023-01-23T12:55:42.087216
2020-12-05T19:18:30
2020-12-05T19:18:30
178,232,685
0
0
null
2020-10-18T20:57:29
2019-03-28T15:33:53
Python
UTF-8
Python
false
false
382
py
import os default_workspace = "_blackopt_workspace" _rootdir = default_workspace def set_rootdir(path): path = os.path.expanduser(path) global _rootdir _rootdir = path def prepend_rootdir(prefix): prefix = os.path.expanduser(prefix) path = os.path.join(prefix, default_workspace) global _rootd...
[ "ikkamens@amazon.com" ]
ikkamens@amazon.com
3cc86621a38c55c60af190e6064d74da255a9e2b
14d8adc86adc14c1d64a5550b1bbd5663e984545
/combination_sum_ii.py
97ed76da8e3052e379884a175fa1c814d6591641
[]
no_license
milllu/leetcode
e1b68ef7774cc0c1b49325ec1b87280d27570d94
458b3e72cd82a203b10bdca747c4c3ba85708f75
refs/heads/master
2020-03-30T23:41:46.180308
2018-10-11T01:08:31
2018-10-11T01:08:31
151,709,941
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
""" 给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。 candidates 中的每个数字在每个组合中只能使用一次。 说明: 所有数字(包括目标数)都是正整数。 解集不能包含重复的组合。 示例 1: 输入: candidates = [10,1,2,7,6,1,5], target = 8, 所求解集为: [ [1, 7], [1, 2, 5], [2, 6], [1, 1, 6] ] 示例 2: 输入: candidates = [2,5,2,1,2], target = 5, 所求解集为: [ [1,2,2...
[ "3351440959@qq.com" ]
3351440959@qq.com
aace7c3ac8ae4dfbaf9a425ce523bb342eaafc68
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/pg_2204+034/sdB_pg_2204+034_coadd.py
1d84ed11150bebd234261af2a75e6b07e15f708b
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[331.818708,3.705497], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_2204+034/sdB_pg_2204+034_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
c0bdac944aed5cb00d3ab2541709a23fecbc22e3
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/application_gateway_rewrite_rule_set.py
bf4a4ba184e7533ad006b1884070f8b6fb8071ac
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,111
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
c61d44bcc8be1346b3b1a8bb2742d5847838cc8a
2b115f9c5929fedd06d4dd6969100ab2df484adf
/messenger/urls.py
9903187e19c8320adcd0f81ea319f70a102f44a3
[]
no_license
sorXCode/Avina-API
0b790bfd8ac8b9c84d1db45db0819e0585d954b9
7687ba7434b77d6c33944c65fff0409459a9d5ce
refs/heads/master
2023-04-11T01:17:35.570752
2021-04-14T15:01:45
2021-04-14T15:01:45
342,429,666
0
1
null
null
null
null
UTF-8
Python
false
false
303
py
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from .views import StartMessaging, Conversation urlpatterns = [ path('', StartMessaging.as_view()), path('<str:product_uid>', Conversation.as_view()), ] urlpatterns = format_suffix_patterns(urlpatterns)
[ "sorxcode@gmail.com" ]
sorxcode@gmail.com
a21618f0ce0aa6432175d36b0042e7df8e21bb69
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/prime-big-291.py
dac9afb7dc0a8d107113bc4bc06e8af627553a69
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,479
py
# Get the n-th prime starting from 2 def get_prime(n:int) -> int: candidate:int = 2 found:int = 0 while True: if is_prime(candidate): found = found + 1 if found == n: return candidate candidate = candidate + 1 return 0 # Never happens def is_prime...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
4808cbaedeec5b5afd0caf7172bca3b9c3bb2900
557ca4eae50206ecb8b19639cab249cb2d376f30
/Chapter04/spiral.py
b642ee9c1d01400018b8cff8264cad308b034929
[]
no_license
philipdongfei/Think-python-2nd
781846f455155245e7e82900ea002f1cf490c43f
56e2355b8d5b34ffcee61b38fbfd200fd6d4ffaf
refs/heads/master
2021-01-09T19:57:49.658680
2020-03-13T06:32:11
2020-03-13T06:32:11
242,441,512
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
import turtle def draw_spiral(t, n, length=3, a=0.1, b=0.0002): theta = 0.0 for i in range(n): t.fd(length) dtheta = 1 / (a + b * theta) t.lt(dtheta) theta += dtheta def main(): bob = turtle.Turtle() draw_spiral(bob, n=1000) turtle.mainloop() if __name__ == "__m...
[ "philip.dongfei@gmail.com" ]
philip.dongfei@gmail.com
f94dc3e35df3d080642dc8f8fd2a3ffb9b4675a5
0d2c2ffe431b159a87bcd78c97147422dce8d778
/GUI学习/01PyQt5快速开发与实战/ch05高级界面控件/11timer2.py
c00045f390bd96d04ec0f63ccf8a09b77033800c
[]
no_license
YuanXianguo/Python-Project-ITC
9e297fc1e1e8ec2b136e6e8b1db0afaaba81c16c
afd14cbe501147ec66b4aa0c1c7907b3ae41d148
refs/heads/master
2020-04-16T13:54:33.727825
2019-12-20T02:16:52
2019-12-20T02:16:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
import sys from PyQt5.QtWidgets import QApplication, QLabel from PyQt5.QtCore import Qt, QTimer def test(): print(1) if __name__ == '__main__': app = QApplication(sys.argv) label = QLabel('<font color=red size=128><b>' 'Hello PyQt,窗口会在3秒后消失!</b></font>') # 无边框窗口 label.setWindowFla...
[ "736913978@qq.com" ]
736913978@qq.com
a11c216ccd83de27c2498fc31e7adcb24de5c462
69f83bcff8a2bd9c8ef082a2141a39a5322c4b2a
/pyenv/env/lib/python2.7/site-packages/transport/tester.py
a0c92e0c385d219b834498f737ba0f7ed0dcd5a7
[]
no_license
md848-cornell/NRF-ROKIX-sensor-mesh
ab12f6572a992ed5c468eb08b8c4586b52b411b2
b244207af0fb0fce6e2722c384d3c6c25d5ac025
refs/heads/master
2020-05-21T10:56:15.013174
2019-05-16T16:12:11
2019-05-16T16:12:11
186,021,295
0
1
null
2020-03-07T21:39:41
2019-05-10T16:35:25
C
UTF-8
Python
false
false
679
py
""" Copyright (c) 2017 Nordic Semiconductor ASA CoAP transport class for tests. """ from transport.base import TransportBase from ipaddress import ip_address class TesterTransport(TransportBase): def __init__(self, port=None): TransportBase.__init__(self, port) self.tester_opened = ...
[ "Mike DiDomenico" ]
Mike DiDomenico
6f08a86ea414a778c093cdd193e66adf1fa27fb9
6219e6536774e8eeb4cadc4a84f6f2bea376c1b0
/scraper/storage_spiders/kuchevn.py
a9cc915cd7f15c2358aed743c2373312c26e7f93
[ "MIT" ]
permissive
nguyenminhthai/choinho
109d354b410b92784a9737f020894d073bea1534
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
refs/heads/master
2023-05-07T16:51:46.667755
2019-10-22T07:53:41
2019-10-22T07:53:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='page_title']/h1", 'price' : "//meta[@property='og:price:amount']/@content", 'category' : "", 'description' : "//...
[ "nguyenchungthuy.hust@gmail.com" ]
nguyenchungthuy.hust@gmail.com
c0fc94a656f1cee1a7c8ee20e88f8085721c9112
c67f449dc7187f154df7093a95ddcc14a3f0a18f
/youngseokcoin/test/functional/net.py
a4a15da130025b87c9678b54942f92c910989ea7
[ "MIT" ]
permissive
youngseokaaa-presentation/A_system_to_ensure_the_integrity_of_Internet_of_things_by_using_Blockchain
cee9ba19e9d029759fc2fe4a43235c56fd9abe43
b2a47bc63386b5a115fc3ce62997034ebd8d4a1e
refs/heads/master
2023-02-17T07:58:43.043470
2021-01-11T05:40:28
2021-01-11T05:40:28
295,317,246
0
0
null
null
null
null
UTF-8
Python
false
false
4,225
py
#!/usr/bin/env python3 # Copyright (c) 2017 The Youngseokcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC calls related to net. Tests correspond to code in rpc/net.cpp. """ import time from test_f...
[ "youngseokaaa@gmail.com" ]
youngseokaaa@gmail.com
84c6051cd1c083c73006b2058485e017d4f6a001
4d259f441632f5c45b94e8d816fc31a4f022af3c
/eventlet/prod_worker.py
51d9d239ff441f414a29933caf1e28379ec9f8d3
[]
no_license
xiaoruiguo/lab
c37224fd4eb604aa2b39fe18ba64e93b7159a1eb
ec99f51b498244c414b025d7dae91fdad2f8ef46
refs/heads/master
2020-05-25T01:37:42.070770
2016-05-16T23:24:26
2016-05-16T23:24:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
from eventlet.queue import Queue import eventlet q = Queue() def worker(): while True: q.get() a = 0 for i in xrange(1000000): a = a + 1 print 'get' def producer(): while True: a = 0 for i in xrange(1000000): a = a + 1 q.put('lol'...
[ "junmein@junmeinde-macbook-pro-3.local" ]
junmein@junmeinde-macbook-pro-3.local
29ff7530a12d24ef2ff8f6e0744b6cf91faba8cf
a5b09349bb10685621788f815acfcef23e93b540
/tests/test_set_item.py
6e7fa7390740d64e413f0be77568016de3a82fe9
[]
no_license
yishuihanhan/slimurl
05d95edf3b83a118bc22a4fda4f0e8ca9d4662f7
d6ee69b0c825dcc4129bb265bd97e61218b73ccc
refs/heads/master
2020-04-02T08:34:55.228207
2017-01-10T10:09:50
2017-01-10T10:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
#!/usr/bin/env python # encoding: utf-8 from slimurl import URL def check_set(url, args, result): key, value = args url[key] = value assert url == result def test_set(): cases = [ ["http://example.net/", ('foo', 'bar'), "http://example.net/?foo=bar"], ["http://example.net/", ('foo'...
[ "me@mosquito.su" ]
me@mosquito.su
75dbe56cf58aa518de51464a64dfaa8d7f95feea
9e929843f73b099456bab9df1b08971288e3b839
/tests/integration_tests/vectors_tests/test_lower_than_or_equals.py
bedb21d4a788496d3c2bbb9138f82d33ab29733b
[ "MIT" ]
permissive
lycantropos/cppstd
fd20a37c46bd730d15b6e5c34e795f39907fad75
2a44dad540a8cc36e7fac8805cf2f5402be34aee
refs/heads/master
2023-01-11T01:13:25.821513
2020-11-12T23:19:40
2020-11-12T23:19:40
302,339,499
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
from hypothesis import given from tests.utils import (BoundPortedVectorsPair, equivalence) from . import strategies @given(strategies.vectors_pairs, strategies.vectors_pairs) def test_basic(first_pair: BoundPortedVectorsPair, second_pair: BoundPortedVectorsPair) -> None: f...
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
1c1917ab1339c7cbb623080afbb9a8125b03933c
7c25e479b21b1e3e69a6be140f6511a892901182
/python_practice/middle_linked_list.py
5379e1fe8bdae8d8f5d08bb398c0fd1504ec458c
[]
no_license
ahrav/Python-Django
6be3e3b5a39a6eabcf2b97b071232f8b85de64d3
8a2a3f706aab557b872f27e780bd7e4ebd274f72
refs/heads/master
2022-09-09T01:29:31.391833
2019-05-23T03:34:15
2019-05-23T03:34:15
181,137,783
0
0
null
2022-08-23T00:22:08
2019-04-13T07:40:44
Python
UTF-8
Python
false
false
670
py
class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self): self.head = None def push(self, new_data): new_node = Node(new_data) new_node.next = self.head self.head = new...
[ "ahravdutta02@gmail.com" ]
ahravdutta02@gmail.com
4b30d61e07bfa3a4839fcb6fe9d0d2e52479a80d
401f783a202949adbf144b5780bcd87a6daf2299
/code/python/Day-69/SnakeGame.py
c61b7e9c28275ea314027b26a33f30786ac67215
[]
no_license
TalatWaheed/100-days-code
1934c8113e6e7be86ca86ea66c518d2f2cedf82a
b8fd92d4ddb6adc4089d38ac7ccd2184f9c47919
refs/heads/master
2021-07-04T14:28:45.363798
2019-03-05T13:49:55
2019-03-05T13:49:55
140,101,486
0
1
null
null
null
null
UTF-8
Python
false
false
2,380
py
# SNAKES GAME # Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting import curses from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN from random import randint curses.initscr() win = curses.newwin(20, 60, 0, 0) win.keypad(1) curses.noecho() curses.curs_set(0) win.border(0) win.nodela...
[ "noreply@github.com" ]
TalatWaheed.noreply@github.com