blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
8e568cef4ff7a3c2ea02171de032c587fa1c42e7
e2271fa026cdfb5aaf145970e1d9252b8c2dd001
/atcoder.jp/abc178/abc178_c/Main.py
4dae8aa7e22ee6d31f247f4df27595077e5df5f9
[]
no_license
tsuchan19991218/atcoder_achievement
802daaae640d5157f1bd55cc5d6ef08546fc4ca2
15502aba97dada1809deed05ea6c349122578a01
refs/heads/master
2023-06-11T11:52:11.896838
2021-07-02T20:44:40
2021-07-02T20:44:40
290,015,565
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
n = int(input()) ans_max = 1 for i in range(n): ans_max = ans_max * 10 % 1000000007 ans_mid = 1 for i in range(n): ans_mid = ans_mid * 9 % 1000000007 ans_mid = ans_mid * 2 % 1000000007 ans_min = 1 for i in range(n): ans_min = ans_min * 8 % 1000000007 ans = (ans_max - (ans_mid - ans_min)) % 1000000007 prin...
[ "ylwrvr.t.koga+git@gmail.com" ]
ylwrvr.t.koga+git@gmail.com
bceb5d5fd70239529410c669bae6ea96ca0148fd
dbaec1262c8966d66512cadd343249786a8c266d
/tests/test_scraper.py
1d196eeb7ad9cd52a2a34f6599ba263fbe8d42da
[]
no_license
andreqi/django-manolo
96e50021a843cff1c223692853993c5dbb685acd
01552875a47c4da90c89db6f0b9c05a269fa07ca
refs/heads/master
2020-04-01T18:00:59.213208
2014-11-20T21:28:04
2014-11-20T21:28:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
# -*- coding: utf-8 -*- """ test_django-manolo ------------ Tests for `django-manolo` models module. """ import datetime from datetime import timedelta as td import unittest import dataset import sqlalchemy from django.conf import settings from manolo.models import Manolo from manolo.management.commands.scraper im...
[ "aniversarioperu1@gmail.com" ]
aniversarioperu1@gmail.com
15eb534642b2dbaf5eb98339e0cd15a18f7b59d6
4c228cca5bfdf3bd34dab2bedd7350ff501230b3
/tools/ex_network.py
daaafecdccaa5dfaf16ca6adbc450de5273af72f
[]
no_license
gauenk/xi_uai18
3575b4b6db3393f4bc6a640a6b3c607a2d6bca6f
c24040f43e3d8779b7c2fff88f8ab787cf22c385
refs/heads/master
2022-02-24T04:29:14.037754
2020-04-04T16:57:17
2020-04-04T16:57:17
234,967,333
0
0
null
2021-03-29T23:13:54
2020-01-19T21:05:51
Python
UTF-8
Python
false
false
2,877
py
import plotly.graph_objects as go import networkx as nx def plot_network(G): # # plot the edges # edge_x = [] edge_y = [] for edge in G.edges(): x0, y0 = G.nodes[edge[0]]['pos'] x1, y1 = G.nodes[edge[1]]['pos'] edge_x.append(x0) edge_x.append(x1) edge_x...
[ "kent.gauen@gmail.com" ]
kent.gauen@gmail.com
160d7d9d48b6a414a9ecd73aba6f83be96999fd9
93fbde41d85a69b2f964a7945fd1a4df0bc0a836
/hello.py
16eb3c09053e619d2b890734dd37ba0680aeb854
[ "MIT" ]
permissive
cwp9fq/cs3240-labdemo
01b9b05e4487c6ad21d1c017acfcd74119553f05
e3b7c21f3ced5ec907c749752dd0f23c37c02caf
refs/heads/master
2021-01-18T21:22:13.588941
2015-02-16T19:57:17
2015-02-16T19:57:17
30,884,773
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
__author__ = 'Cameron Peters' print("hello")
[ "cwp9fq@virginia.edu" ]
cwp9fq@virginia.edu
64d5e06ad1a58f2d209bdbe9eafa0fa0247f8fd4
65bdb5b22b98e04c439b6a00761f48802bf1f03e
/for_loop.py
94972872b01be9e70aa07397d24ca456e31c1430
[]
no_license
sourav03561/GitLearning
158fd57bab16d700016778f5c80ac0cc2df9218f
31cfb33585a7d2fd0ecc0f8adb921cd97902eaaf
refs/heads/master
2022-11-11T14:11:39.490706
2020-06-22T08:17:59
2020-06-22T08:17:59
274,072,260
0
0
null
2020-06-22T08:02:37
2020-06-22T07:43:36
Python
UTF-8
Python
false
false
66
py
for i in range(10) print('yahoo') print('done with for loop')
[ "cmbubai03561@gmail.com" ]
cmbubai03561@gmail.com
410b0d4c2ba2e579c33b1c115448ef5426cd3d43
deb41063447ace96175948ab088aea75c601a1a4
/coremltools/converters/mil/mil/ops/tests/test_const.py
44610cfbb670686463b81ed98c4743128d33cd6e
[ "BSD-3-Clause" ]
permissive
flrngel/coremltools
d3812e6a2358c9a6d61a79d1576df42417e0828c
8b3500eb55c7d06f0cd825c33042b63279de30ce
refs/heads/main
2023-06-17T05:30:01.259581
2021-07-13T03:21:41
2021-07-13T03:22:34
384,216,428
1
0
BSD-3-Clause
2021-07-08T18:32:06
2021-07-08T18:32:06
null
UTF-8
Python
false
false
2,053
py
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from coremltools.converters.mil import testing_reqs from coremltools.converters.mil.testing_reqs impo...
[ "noreply@github.com" ]
noreply@github.com
985a61e35a1166affcae13bcd6cc900782271bde
9825db945e7bfe68319b086e9fb7091a63645d5c
/transcribe/mommy_recipes.py
69965c1794946191d35991093b0493aa8e916c17
[]
no_license
lupyanlab/telephone
e1ee095d5698dc228deec5ba5878a46b76d43f2d
136f27fb2b41263f53fba6bd44711cf57598a1a4
refs/heads/master
2020-04-12T07:33:05.849287
2017-04-04T01:16:14
2017-04-04T01:16:14
41,316,823
1
1
null
2015-11-17T04:44:40
2015-08-24T17:20:23
Python
UTF-8
Python
false
false
1,059
py
from unipath import Path from django.conf import settings from django.core.files import File from model_mommy.recipe import Recipe, foreign_key, related import grunt.models as grunt_models import ratings.models as ratings_models import transcribe.models as transcribe_models django_file_path = Path(settings.APP_DIR...
[ "pierce.edmiston@gmail.com" ]
pierce.edmiston@gmail.com
bb5bf27549da60b54e5a034ea948dda8c9c4d2d6
eba05d8b5f45c109b68c5d19f7658fe62f9083ec
/client/verta/tests/test_entities.py
839a00dcf025688f0b5b507482ed6082c33d058e
[ "Apache-2.0" ]
permissive
fagan2888/modeldb
4b47d5ded2024ae1f61fda6d2980f8228e3937a5
7182cb9432eeb10b84abc89f925106abf5c43d21
refs/heads/master
2023-01-15T01:01:42.090856
2020-11-21T01:49:54
2020-11-21T01:49:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,592
py
import six import itertools import os import shutil import requests import pytest from verta._registry import RegisteredModels from verta._tracking.deployable_entity import _CACHE_DIR from . import utils import verta import verta._internal_utils._utils import json from verta.external.six.moves.urllib.parse import...
[ "noreply@github.com" ]
noreply@github.com
e10f712169e012afe52d661cee1079d73d473cf5
a4deea660ea0616f3b5ee0b8bded03373c5bbfa2
/executale_binaries/register-variants/vpblendvb_xmm_xmm_xmm_xmm.gen.vex.py
24114f1b5661dc25199fcafb0f1753e89bd770d4
[]
no_license
Vsevolod-Livinskij/x86-64-instruction-summary
4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd
c276edab1b19e3929efb3ebe7514489f66087764
refs/heads/master
2022-02-02T18:11:07.818345
2019-01-25T17:19:21
2019-01-25T17:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
import angr proj = angr.Project('vpblendvb_xmm_xmm_xmm_xmm.exe') print proj.arch print proj.entry print proj.filename irsb = proj.factory.block(proj.entry).vex irsb.pp()
[ "sdasgup3@illinois.edu" ]
sdasgup3@illinois.edu
4dd821a81a1d423a6da9d639e298646c725eca01
8a3dfe493abbddf222cc98efc61ba6b9917f1601
/blender_implementations/flow_aggregation/flow_aggregation.py
d6d03a92fbeecf408f600485adca147117fe8eab
[]
no_license
lorentzo/Growth_models
fa95f80547a545374ab0fb738c5fddff9d5b4d19
fbc4cab2fd4d5cdeade2492407a80fdc5d585a51
refs/heads/master
2020-04-28T22:41:07.006889
2019-07-04T11:20:33
2019-07-04T11:20:33
175,626,424
0
1
null
null
null
null
UTF-8
Python
false
false
7,057
py
# # This source file is part of Growth_models. # Visit https://github.com/lorentzo/Growth_models for more information. # # This software is released under MIT licence. # # Copyright (c) Lovro Bosnar # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated docum...
[ "lovro.bosnar1@gmail.com" ]
lovro.bosnar1@gmail.com
62b1a67e47cc7c72d8dad45edd8e4105d1937e55
c081330ffd5cefc00191685f7753b116620fa898
/Gallery3D/Box.py
41798addaa7d58a592802be983367c34e27ac709
[]
no_license
yuki67/Figure
c660ce6cbccd611615df54c96ca6411343cb1ce8
78ab63ce518f99340d290c27de50f53b92561318
refs/heads/master
2021-01-22T05:20:28.531749
2017-05-10T13:09:15
2017-05-10T13:09:15
81,650,064
1
0
null
null
null
null
UTF-8
Python
false
false
119
py
from Figure3D import point_3d, Box a = point_3d(-10.0, -10.0, 10.0) b = point_3d(10.0, 10.0, 15.0) figure = Box(a, b)
[ "123syokutaku@gmail.com" ]
123syokutaku@gmail.com
9f19d3c5fcbc1f51d9dacb5e5af1b29b1945cd46
bbe2634c490964e3749cd4acaa825f69892d4e4e
/process.py
f3151ee13045d6cd28abc1626bd2a49b26dd3809
[]
no_license
shailesh001/DeepLearningTests
f40eb9a4390f5408d4c2d1d65ddc84686fedc710
3c061df6a395960c4cc12d696f7af0d056e722df
refs/heads/master
2021-01-24T17:02:56.370083
2017-03-10T16:35:19
2017-03-10T16:35:19
81,821,187
0
0
null
null
null
null
UTF-8
Python
false
false
1,104
py
import numpy as np import pandas as pd def get_data(): df = pd.read_csv('ecommerce_data.csv') data = df.as_matrix() print(data) X = data[:, :-1] # Every thing but the Last column Y = data[:, -1] # Last column only print(X) print(Y) # 0 based index. Set Column 2 and 3 X[:, 1] =...
[ "shailesh001@mac.com" ]
shailesh001@mac.com
25a5ae8f34319e5428b6334c8d864c2d599441d7
6836433498d3ab4a5c3259e74ccb6a5e311d89ee
/ARCHIVE/Nishant/Nishant_coord_mapping/coord_read.py
6fd0c95dc45dd8227c7ff635f0720e4125e2a213
[]
no_license
stephmarky/3300-p1
2ad1e38dcc7c2aecab12f225c87f91db304b6257
5027e8b3eab4cddc6b6965971e4a131b429350bb
refs/heads/master
2021-04-29T18:39:20.336312
2018-06-14T01:00:57
2018-06-14T01:00:57
121,697,077
0
0
null
null
null
null
UTF-8
Python
false
false
1,737
py
import csv import random final_array = [] coordinate_array = [] randarray = [] with open('country_center_coordinates.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: coordinate = [] coord = row[1] coord = coord.split(',') coord[0] = coord[...
[ "ng352@cornell.edu" ]
ng352@cornell.edu
b4ec9a7097d8d6e2db9d55de85ff23e2c3508cc0
7bc79430d2eebe3331e5b0ea9d78eee23506a95a
/sac/models.py
2633abf4f1ada389941d2dd0bba85e8ae535a7cf
[]
no_license
IwanBurcev/rl_experiments
f0c7fa41b44d72aff10d862682adb92dad525491
66155195595fca5f3698d0f35c51a02133218fcf
refs/heads/main
2023-01-24T23:50:07.442931
2020-12-02T11:10:47
2020-12-02T11:10:47
316,952,907
0
0
null
null
null
null
UTF-8
Python
false
false
7,144
py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.distributions import Normal use_cuda = torch.cuda.is_available() device = torch.device("cuda" if use_cuda else "cpu") class ModelsOverseer(): def __init__(self, state_dim, hidden_dim, acti...
[ "iwanburcev@yandex.ru" ]
iwanburcev@yandex.ru
83428b6418ce8e4237ff44919b4a35afb15468e5
c45f5b2283866ca12bf9090dd53bdc3b2f53724c
/python3/doit/string2.py
17ae1d2c3449b71cb059ff59662e7392ec153def
[]
no_license
YounSik89/python
50f826dbb365516ba9c754a40fe356cb4f465388
6b331bf2cb570d41160f7753885f7d86bb007e3a
refs/heads/master
2021-08-29T16:21:20.560963
2017-12-14T09:33:27
2017-12-14T09:33:27
114,213,846
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
a = "Younsik is a student, he is a programmer" print(a[3]) # 앞에서 4번째 문자 print(a[0]) # 가장 첫 문자 = 앞에서 첫번째 문자. print(a[-1]) # 가장 마지막 문자 = 뒤에서 첫번째 문자 print(a[-2]) # 뒤에서 두번째 문자 b = a[0]+a[1]+a[2]+a[3] print(b) c = a[0:4] #맨 마지막 4는 안들어간다. print(c) d = a[7:14] print(d) e = a[10:] print(e) b = a[:15] print(b) print(a[:]) pri...
[ "younsik89c@gmail.com" ]
younsik89c@gmail.com
535dfe56603f221ea285f2a1714ed7358865a71e
d7a0ecb277e42340bd0ce269f25e5ebd24d1d6d8
/Python/Les 5/3. If else.py
19d95cdceb78e91de02b19daf306d2d4ff67e01c
[]
no_license
diooo1231/programming1
e327c8054ff31d14a184d6879a3b009e2e897dc0
d7f241375c6131306287e8ae4ce6fa2111e524ce
refs/heads/master
2020-03-28T01:31:23.916339
2018-11-06T23:13:32
2018-11-06T23:13:32
147,511,067
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
leeftijd = input("Geef je leeftijd: ") paspoort = input("Nederlands paspoort: (ja/nee) ") if int(leeftijd) >= 18 and paspoort == "ja": print("Gefeliciteerd, je mag stemmen!") else: print("Helaas, je mag niet stemmen.")
[ "dio.snel@student.hu.nl" ]
dio.snel@student.hu.nl
1a2624a3c3bc10919d6a6c4abd705d1cc12b5ca3
80cdc0bc432827479a437fd37f9bef216b5b8500
/postgres_kernel/commands.py
bdc0dfb55a35f356e69f0f5d652e75bdc38a7d20
[]
no_license
mreithub/postgres_kernel
d4b99036fbd3477f9b8454b665e16b3a9fc5a636
551b0b5f94fa28fa4fa03a900e065adb535963f8
refs/heads/master
2021-01-10T06:15:00.565197
2016-04-04T14:11:45
2016-04-04T14:11:45
54,680,382
0
0
null
null
null
null
UTF-8
Python
false
false
5,776
py
import itertools def _getHtmlCheckConstraints(kernel, tblName): # check constraints rows = list(kernel.yieldQuery(''' SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) FROM pg_catalog.pg_constraint r WHERE r.conrelid = %s::regclass AND r.contype = 'c' ORDER BY 1;''', (tblName,))) if len(rows) > 0: yi...
[ "git@manuel.reithuber.net" ]
git@manuel.reithuber.net
481cc0ed3a68956681f31a999d32922fb66e12af
02b10de4dca09b516600540ce718d951a3b6781b
/main.py
1157aba07b6429d243d30fca0283dbeadd31801e
[]
no_license
maloyan/Algebra
378729a570b37a85bd143e65b9bebbcd727447cb
6d4e9a6d1e67d93f763677399e8ac9c52a4d3dd4
refs/heads/master
2021-04-25T04:15:46.066862
2017-12-30T19:05:31
2017-12-30T19:05:31
115,112,443
1
0
null
null
null
null
UTF-8
Python
false
false
257
py
import numpy as np import bch import gf def main(): print(gen_pow_matrix(7)) #print(euclid(np.array([2, 3, 6]), np.array([1, 0, 1]), gen_pow_matrix(19), 0)) #(array([13]), array([13, 12]), array([15, 7])) if __name__ == "__main__": main()
[ "maloyan@ispras.ru" ]
maloyan@ispras.ru
9515eeb1cee4807edd450367209ff62ce30c779c
16ef3f6acfc1fbadcd8019b5152ec2da3910c5f3
/src/ututi/migration/008_add_deleted_columns_for_content_items.py
93cec7035f0aff1abf76bf51cb58d794128bb47a
[]
no_license
Ututi/ututi
19bf1e3c5afb8ac783775bc8107e5089c48654b6
e1f55f155761d7b350893fc0badb70c9c51c4b2f
refs/heads/master
2021-05-27T21:01:04.444713
2013-01-04T12:27:22
2013-01-04T12:27:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
import pkg_resources def upgrade(engine): connection = engine.connect() statements = pkg_resources.resource_string('ututi.migration', '008_add_deleted_columns_for_content_items.sql') connection.execute(statements) def downgrade(engine): connection = engine.connect() statements = pkg_resources.res...
[ "ignas.mikalajunas@gmail.com" ]
ignas.mikalajunas@gmail.com
2627bc5bee346deeab204fa6ec44e5c9cc13abfc
8b9e9de996cedd31561c14238fe655c202692c39
/hackerrank/hackerrank_AntiPalindromic_Strings.py
e118373c79db90167cc964fa3d7cbc28599314dd
[]
no_license
monkeylyf/interviewjam
0049bc1d79e6ae88ca6d746b05d07b9e65bc9983
33c623f226981942780751554f0593f2c71cf458
refs/heads/master
2021-07-20T18:25:37.537856
2021-02-19T03:26:16
2021-02-19T03:26:16
6,741,986
59
31
null
null
null
null
UTF-8
Python
false
false
1,030
py
"""hackerrank_AntiPalindromic_Strings.py https://www.hackerrank.com/contests/101hack19/challenges/antipalindromic-strings """ def main(): """if n == 1, then there is m antipalindromic string. if n == 2, then there is m * (m - 1) antipalindromic string if n >= 3, then there is m * (m - 1) * (m - 1)... ...
[ "laituan1986@gmail.com" ]
laituan1986@gmail.com
a4b3a0761970ff05e0eeef42367686402f942201
46a5338c5979c54e335af3d5a0523d5325845a0d
/python/fishsey/paper/paper1/slopeone_userBased_test_tp.py
17a46d1086bdc86be2df08826d443e026b814de5
[]
no_license
fishsey/code
658284367b8435fa233a473341b90d746330a873
b4275042e18ee02eb29ee285df7dce6d4d31a0c4
refs/heads/master
2021-07-11T18:57:11.052981
2017-10-06T11:15:35
2017-10-06T11:15:35
105,975,719
0
0
null
null
null
null
UTF-8
Python
false
false
7,305
py
# -*- coding: utf-8 -*- """ Created on Sun Mar 06 10:17:13 2016 @author: fishsey """ def topKUser(u, i): global maxlen, minSim, userSimArrayObj, trainArrayObj rowNum = trainArrayObj.shape[0] ls = [] temp = [] #遍历每个用户 for otherUser in range(rowNum): if trainArrayObj[otherUser, i]...
[ "ally1984aikx@gmail.com" ]
ally1984aikx@gmail.com
fd9051b479df526f24d4937d65fc91e13c2b0021
837fcd0d7e40de15f52c73054709bd40264273d2
/More_exercise-master/Repeated_element_list.py
db01da889fb9c8d678166fab52513a0e563108a2
[]
no_license
NEHAISRANI/Python_Programs
dee9e05ac174a4fd4dd3ae5e96079e10205e18f9
aa108a56a0b357ca43129e59377ac35609919667
refs/heads/master
2020-11-25T07:20:00.484973
2020-03-08T12:17:39
2020-03-08T12:17:39
228,554,399
0
1
null
2020-10-01T06:41:20
2019-12-17T07:04:31
Python
UTF-8
Python
false
false
477
py
list1 = [1, 342, 75, 23, 98] list2 = [75, 23, 98, 12, 78, 10, 1] index=0 new=[] while index<len(list1): if list1[index] in list2: new.append(list1[index]) index=index+1 new.sort() print new #"-------------------" # without in operator index=0 new=[] while index<len(list1): var1=0 ...
[ "nehai18@navgurukul.org" ]
nehai18@navgurukul.org
7adbca764e3ddd8a62ada01668aa930b79ee74f6
443ad4fc2877031810dedb2390cca4aa646536a4
/profile_dashboard/views.py
e093f0b788c23234340e343f124edf417c935660
[]
no_license
ilhanfn/C08
0d6f97d215241f3c54f96f71b7f671944e5528fe
2d023e5d751a486cc6020ad5c96eae34cb009bd0
refs/heads/main
2023-08-30T08:22:16.743023
2021-11-04T07:18:19
2021-11-04T07:18:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
from django.shortcuts import redirect, render from .models import Profile from .forms import UserUpdateForm, ProfileUpdateForm from django.contrib.auth.decorators import login_required @login_required def profile(request): if request.method == 'POST': u_form = UserUpdateForm(request.POST, instance=request....
[ "visianitawidya@gmail.com" ]
visianitawidya@gmail.com
0d948fbf2edf9bfd6ca10356cb953a4d41037295
2262ccf008ccecc1a263b8bf9954e80337147f1d
/plot_gpx_osm.py
aa55517fae601764aae495aaa8699e417e843dc6
[]
no_license
AndrQuiroz/plot-gpx-osm
2e74771afddffa38e4f5065727d81a25d6f293d8
b587e36351f34eb1172526ac1602f8aba9d2954a
refs/heads/master
2022-09-09T09:42:33.899091
2015-02-20T00:03:15
2015-02-20T00:03:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,831
py
#!/usr/bin/env python ''' Plot GPX file create bitmaps from a GPX trace using OpenStreetMap (c) Olivier Friard 2014 require: - osm.py - python-shapely - gpx_import.py 2014-07-10: added plotting of waypoints GPX added plot dots option (-d) 2014-04-18: added argument parsing function: gpx_map.py -h 2014-0...
[ "olivier.friard@unito.it" ]
olivier.friard@unito.it
3b2d656e435c6628f3cd15756996fac6543a69e9
6b3793ee6f0109da63e2b040f98d2f9910032661
/OrderingStringsOfVaryingLengthLexicographically.py
09fe99c075c8e2454ad30301e968511562bc410e
[]
no_license
louis297/rosalind
28998252947ab904015f33d431881caaa9c713fb
cabd487e97f2bb68fd4bfa2cedc5e80f662a117e
refs/heads/master
2021-01-10T07:37:49.960238
2016-01-04T21:36:23
2016-01-04T21:36:23
48,143,470
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
f_name = raw_input("Please Input File Name:") f_in = open(f_name,"r") s = f_in.read().rstrip() lt = s.split('\n') ltt = lt[0].rstrip() lttt = ltt.split() ll = [' '] for i in lttt: ll.append(i) n = int(lt[1]) single = [] temp = [] result = [] for i in range(len(ll)): single.append([ll[i]]) result.append(single)...
[ "xl297@georgetown.edu" ]
xl297@georgetown.edu
52a051a1f273e344066b4ddedd4c4d3304bced08
b21525fdcbb9724d51fd4b317c24f218d05144d2
/FastBridgeApp/data/Latin/cicero_de_provinciis_consularibus.py
ade71b6415b0619a3190b8717db404d9d95ebc33
[]
no_license
HCDigitalScholarship/FastBridge
6202da636bcc2b6a6c7efe7b2a6d067510e7fa57
9037b0d5dee5da7d93ea53538595883559b07cda
refs/heads/master
2023-09-02T02:58:47.683943
2023-06-06T19:20:09
2023-06-06T19:20:09
218,993,365
1
5
null
2023-06-06T19:20:10
2019-11-01T13:45:05
Python
UTF-8
Python
false
false
261,464
py
import text nan="" section_words = {'start': -1, '1.1': 7, '1.2': 16, '1.3': 23, '1.4': 32, '1.5': 40, '1.6': 48, '1.7': 56, '1.8': 64, '1.9': 72, '1.10': 80, '1.11': 89, '1.12': 97, '1.13': 106, '1.14': 112, '2.1': 115, '2.2': 125, '2.3': 133, '2.4': 142, '2.5': 151, '2.6': 160, '2.7': 169, '2.8': 178, '2.9': 187, '2....
[ "carter.langen@gmail.com" ]
carter.langen@gmail.com
f373f7fb41cef8b368430594ebbdee6e8ea6d030
30ab9750e6ca334941934d1727c85ad59e6b9c8a
/zentral/contrib/nagios/events/__init__.py
32a043fbbf1aebc95d5d5f0da9196c0e025d5d16
[ "Apache-2.0" ]
permissive
ankurvaishley/zentral
57e7961db65278a0e614975e484927f0391eeadd
a54769f18305c3fc71bae678ed823524aaa8bb06
refs/heads/main
2023-05-31T02:56:40.309854
2021-07-01T07:51:31
2021-07-01T14:15:34
382,346,360
1
0
Apache-2.0
2021-07-02T12:55:47
2021-07-02T12:55:47
null
UTF-8
Python
false
false
1,158
py
import logging from zentral.core.events import event_cls_from_type, register_event_type from zentral.core.events.base import BaseEvent logger = logging.getLogger('zentral.contrib.nagios.events') ALL_EVENTS_SEARCH_DICT = {"tag": "nagios"} class NagiosEvent(BaseEvent): tags = ["nagios"] class NagiosHostEvent(N...
[ "eric.falconnier@112hz.com" ]
eric.falconnier@112hz.com
fa23b69c5b3e88b6089bccdcc5b53e24c3dd7df9
05ff9c2d32ecd44ed308cf4d2db549a7cac95abc
/2016/2016.10.py
9344fdefb90ada4de12d10b1d0e20eefa1e1d26d
[]
no_license
boriskashentsev/AdventOfCode
e1a423f654c44b70259921cb281f161fa9d6cdc4
508b7a36234ddb4912fb7ca8c60d1b6a07ac67ee
refs/heads/master
2023-01-12T03:27:00.889805
2022-12-05T06:06:45
2022-12-05T06:06:45
226,345,203
0
0
null
2022-12-05T06:06:12
2019-12-06T14:20:06
Python
UTF-8
Python
false
false
1,883
py
import sys sys.path.append('./') from utils.filename import calculateFileName filename = calculateFileName(sys.argv) f = open(filename, "r") input = f.read() lines = input.split('\n') comparingValues = [17, 61] if len(sys.argv) > 1: comparingValues = [3, 5] bots = {} output = {} instructions = {} botsWithTwoCh...
[ "boris.kashentsev@gmail.com" ]
boris.kashentsev@gmail.com
14874d1fcd7fe2d2da7e2966f6726b4912378c09
ba6921a268198bc0af433622c021533905f5d462
/airflow/providers/amazon/aws/operators/rds.py
df010261896fd2fd0c7fce7e1fdcbca2572dabba
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
potiuk/airflow
b6447765b1a7b586a3d6c8d7ba9262f6bf68fbfd
ca2f3013bcb123c4b3973a5b85de77094bf2c459
refs/heads/main
2023-08-30T13:05:50.698888
2023-05-21T21:08:14
2023-05-21T21:26:14
173,467,275
8
7
Apache-2.0
2023-05-21T21:58:40
2019-03-02T15:50:53
Python
UTF-8
Python
false
false
29,868
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
noreply@github.com
d1caf6aee040ebe1bd1322927c54f2163f35b3c7
b2e4f2a9d8fabf3f667dfc2141e96af1f342f5b2
/pyutils/mask-faster-rcnn/lib/layer_utils/proposal_target_layer.py
69333a4e4ff1f1bffb971a2b27b272d051e29f1f
[ "MIT" ]
permissive
ChopinSharp/MAttNet
ba927d80f15c0b99105540d40809cad2f08d36d4
3d82fe08ad5526665d0478aee08c5113d79cc209
refs/heads/master
2021-08-08T05:48:01.993261
2020-08-11T04:58:12
2020-08-11T04:58:12
227,971,922
1
1
MIT
2019-12-14T05:35:02
2019-12-14T05:35:01
null
UTF-8
Python
false
false
8,775
py
# -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick, Sean Bell and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from...
[ "mwb@zju.edu.cn" ]
mwb@zju.edu.cn
9f4ade293e4deed7bf08590e33fecbb9a8b287d9
35b58dedc97622b1973456d907ede6ab86c0d966
/Test/2020年4月29日/001.py
c8895768d64c6ebb9f086308a28346ccff33c6e5
[]
no_license
GithubLucasSong/PythonProject
7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635
e3602b4cb8af9391c6dbeaebb845829ffb7ab15f
refs/heads/master
2022-11-23T05:32:44.622532
2020-07-24T08:27:12
2020-07-24T08:27:12
282,165,132
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
# import re # import json # sss = '{"testfan-token": "${neeo_001>data>data}$"}' # # find = re.findall('\${.*?}\$',sss) # # for i in find: # find = i # print(find) # # print(re.sub(find,'1',sss)) import requests # response = requests.request(method='get', url='http://www.neeo.cc:6002/pinter/bank/api/query2',params...
[ "1433880147@qq.com" ]
1433880147@qq.com
ea6b2d4d03567346555f14b0f328b489162ee17d
02f2fd8ff4f907eb1916848634c252fb907cce30
/db_method/push.py
24d5f9e0a447241af24bebb48b1acb82c595eb59
[]
no_license
Act-mobile-health/MedicalWeb
61b1572d5b4a0d3c65e64a09d6743b67a13707d0
560a39f9b35babf8e5524eb8e39b1eff4a2ff4a8
refs/heads/master
2020-05-25T20:05:43.869842
2017-07-13T14:00:42
2017-07-13T14:00:42
84,962,419
4
6
null
2017-07-20T03:09:28
2017-03-14T15:02:52
HTML
UTF-8
Python
false
false
890
py
# -*- coding:UTF-8 -*- import jpush from jpush import common P_id = "110000000091" MESSAGE = u"你好!!!" def a(): TAG = P_id app_key = "8f1da9d68218066965ad2157" master_secret = "91d325746680fcd8c7154471" _jpush = jpush.JPush(app_key, master_secret) push = _jpush.create_push() # if you set the log...
[ "zhangyc@TestPC" ]
zhangyc@TestPC
da6253440114fd11e1f73ef79045bbbb0205b7dd
f8b913d6e20cd08b78941aa0398ab4662f6a4998
/agenda/core/admin.py
25e0e7c09ed1c3d944e788fd2e7d812d9e02312b
[]
no_license
gabrieltren/curso-django
1f8c3f96a497701b8f3c37b373a05ca4af1c1b79
3150e7705c7aab1bd1772469f8c561676d332ce4
refs/heads/master
2023-04-08T09:03:59.077642
2021-04-02T19:15:03
2021-04-02T19:15:03
353,197,939
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
from django.contrib import admin from core.models import Evento # Register your models here. class EventoAdmin(admin.ModelAdmin): list_display = ('id','titulo','data_evento','data_criacao') list_filter = ('titulo',) admin.site.register(Evento, EventoAdmin)
[ "gabriel.silveira1207@gmail.com" ]
gabriel.silveira1207@gmail.com
655d835a33331e2fef799e77dcd0b891a8f0eb1e
e3d07719d97ed4f5fc2663a868d6bd6621ca2d06
/conwaycode.py
e60fa84720c9e805a64966b929845cab3d5d028c
[]
no_license
Xapakas/ConwaysGame
df19bcf18fd924250aea74640bc1a7f25567271f
f0562087f55bc41e071710dccfd76944a4b470b4
refs/heads/master
2020-04-26T20:37:44.369614
2019-03-04T20:33:10
2019-03-04T20:33:10
173,816,422
0
0
null
null
null
null
UTF-8
Python
false
false
4,197
py
# Conway's Game of Life from graphics import * import time def getInitialSetup(): r_file = open("conway.txt", "r") l_grid = [] l_add = [] s_add = r_file.readline() s_add = s_add.strip() i_cols = len(s_add) i_lines_read = 0 while s_add != "": for i_num in range(len...
[ "noreply@github.com" ]
noreply@github.com
57eebd45cf857ba05fc7d6a24572be047b3d5429
7f51d5a95f02c15f7cc9f1eb8ca291705f55f8a7
/utilfuncs/preproc/preprocess.py
e59b9e41ed5653a5a14f608a58f5564774fd327a
[]
no_license
darkyed/non-local-means
987a8a40309b484504108922604339f320074d07
a23e271063885f2ee3888e2eb413a6e26d350963
refs/heads/main
2023-01-30T09:01:46.787533
2020-12-04T22:30:55
2020-12-04T22:30:55
313,636,998
1
0
null
null
null
null
UTF-8
Python
false
false
1,935
py
import os, cv2 import numpy as np from PIL import Image from utilfuncs.preproc.addnoise import add_gaussian_noise, add_saltnpepper def open_image_arr(path): return np.asarray(Image.open(path), dtype='int64') def make_gray_dir(gray_path): if not os.path.isdir(gray_path): os.mkdir(gray_path) def save_g...
[ "saumitra.sharma@iitgn.ac.in" ]
saumitra.sharma@iitgn.ac.in
ab365082f599ed3b687a2489f5401a36a1891558
894ea5f3087894c10288f65f32b7c4f667ce79f5
/opencv_learning/D3.py
c32fda158a73f185dde3d20545df7ce53a70db1e
[]
no_license
j32u4ukh/CupoyLearning
dfe1af1992c38329ce9f7fa99aa9154a45e9b982
1d813a72b0f1456bc4019d42ac207d51883f892f
refs/heads/main
2023-02-16T23:51:10.084030
2021-01-18T16:05:33
2021-01-18T16:05:33
319,019,881
0
0
null
null
null
null
UTF-8
Python
false
false
2,474
py
import cv2 import numpy as np from utils.opencv import showImages """Working directory: CupoyLearning 調整 飽和 / 對比 / 明亮 * 改變到 HSL color space 來調整飽和度 * 對灰階圖實作直方圖均衡 * alpha / beta 調整 對比 / 明亮 """ path = "data/image/lena.png" # 以彩色圖片的方式載入 img = cv2.imread(path) """ 改變飽和度 轉換成 HLS color space, 改變 s channel 的值 """ # 改變不同...
[ "j32u4ukh@gmail.com" ]
j32u4ukh@gmail.com
e6c242f7656466c344365678cdf6869daa23683b
8dbb2a3e2286c97b1baa3ee54210189f8470eb4d
/kubernetes-stubs/client/models/v2beta2_metric_target.pyi
e58a49afa7ff802b89fffd13f6b7a5441e8e92a4
[]
no_license
foodpairing/kubernetes-stubs
e4b0f687254316e6f2954bacaa69ff898a88bde4
f510dc3d350ec998787f543a280dd619449b5445
refs/heads/master
2023-08-21T21:00:54.485923
2021-08-25T03:53:07
2021-08-25T04:45:17
414,555,568
0
0
null
2021-10-07T10:26:08
2021-10-07T10:26:08
null
UTF-8
Python
false
false
694
pyi
import datetime import typing import kubernetes.client class V2beta2MetricTarget: average_utilization: typing.Optional[int] average_value: typing.Optional[str] type: str value: typing.Optional[str] def __init__( self, *, average_utilization: typing.Optional[int] = ..., ...
[ "nikhil.benesch@gmail.com" ]
nikhil.benesch@gmail.com
f45766ae0ebc407cf3095029ed15a6dec1dae165
f96143430d469b111616fba826e6da4eba08626e
/AegeanTools/fitting.py
feb93ff10e7abfe58b49b6d0c577c7c6f7bc2d1e
[]
no_license
jnothman/Aegean
4e3776c46f4933f5c804946de1d02915ae28a01f
d6fda00c612c1e6d34ca1c71e1a8f97494ab430e
refs/heads/master
2021-04-06T08:19:44.630878
2018-03-07T07:24:24
2018-03-07T07:24:24
124,828,888
0
0
null
2018-03-12T03:28:28
2018-03-12T03:28:28
null
UTF-8
Python
false
false
49,862
py
#! /usr/bin/env python from __future__ import print_function """ Provide fitting routines and helper fucntions to Aegean """ __author__ = "Paul Hancock" import copy import math import numpy as np from scipy.linalg import eigh, inv import lmfit from .angle_tools import gcd, bear # Other AegeanTools # from models imp...
[ "paul.hancock@curtin.edu.au" ]
paul.hancock@curtin.edu.au
a5febbe7a5eedfbbabe6af1b6c0a253823fdc6b5
16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3
/docs/jnpr_healthbot_swagger/test/test_topic_schema_variable.py
d8cf50a23cf30844a79d2a6d4c4d3e87e9c010c1
[ "Apache-2.0" ]
permissive
Juniper/healthbot-py-client
e4e376b074920d745f68f19e9309ede0a4173064
0390dc5d194df19c5845b73cb1d6a54441a263bc
refs/heads/master
2023-08-22T03:48:10.506847
2022-02-16T12:21:04
2022-02-16T12:21:04
210,760,509
10
5
Apache-2.0
2022-05-25T05:48:55
2019-09-25T05:12:35
Python
UTF-8
Python
false
false
955
py
# coding: utf-8 """ Healthbot APIs API interface for Healthbot application # noqa: E501 OpenAPI spec version: 3.1.0 Contact: healthbot-feedback@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagg...
[ "sharanyab@juniper.net" ]
sharanyab@juniper.net
6482fd17afa899f103ed82ac3493c7078a08dcd9
72ae11b00b4e145c4c038c2d11b64aa6ccd2b757
/web/controllers/user/User.py
3437203bd98c536440432d0210e47167bed16c4b
[]
no_license
zhangben6/Wechat_OrderProgram
dc6e77e86f408ecff8edf37bda165bf12c5bc4a4
0829b5a1a704d4782ef15d19b09c8e2d8ab0ded8
refs/heads/master
2020-04-23T15:32:21.075991
2020-03-05T07:52:36
2020-03-05T07:52:36
171,269,040
1
0
null
null
null
null
UTF-8
Python
false
false
5,145
py
# -*- coding: utf-8 -*- from flask import Blueprint, request, jsonify, make_response, redirect, g from common.models.User import User from common.libs.user.UserService import UserService from common.libs.Helper import ops_render import json from application import app from common.libs.UrlManager import UrlManager from ...
[ "1457287508@qq.com" ]
1457287508@qq.com
284412a761ad3e00bca57a9da838c34744d00d20
990eecd5494081d5ecda124de0bdb85bc9347e0c
/Driving KPIs_idle time_and_cycle/Idle_time_indus_ETL_v14.py
5cc91d8519a442c2f5cb7b8cff4f1b435078a845
[]
no_license
elevenstrategy/Optimizer
922dcd5419c4056093d63a2dc65a3e4a98fed311
10b191b9b829fd9a59a71d62aa9e7e510d02dcff
refs/heads/master
2022-02-26T01:06:16.971696
2019-09-12T13:06:13
2019-09-12T13:06:13
98,518,454
0
0
null
null
null
null
UTF-8
Python
false
false
23,399
py
# coding: utf-8 # In[3]: import requests,json,sys,os,gc,time #, urllib.parse from urllib.request import Request import urllib.request import numpy as np import pandas as pd from datetime import datetime,timedelta from retrying import retry from sqlalchemy import create_engine """ #NOTE WORKFLOW a deux fois par jou...
[ "henri.bouxin@gmail.com" ]
henri.bouxin@gmail.com
183067a47327fd162070d8b72ad034b2d82d343b
4ab26f2eb3167b08653715597bc2c78979e43ad7
/email_sms_auto.py
9e6aff272c613ac97f0e463c5d2b78c5653cc944
[]
no_license
CTRL-pour-over/Automation-Using-Python
8d1ce0766326b9e5272c4091dd51c61f30325984
067632b366b93bcf8a9cab73c4acd656219189a1
refs/heads/master
2022-06-19T11:02:39.079920
2020-05-07T14:15:36
2020-05-07T14:15:36
262,069,242
0
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
import smtplib import requests import random from bs4 import BeautifulSoup import time from email.mime.text import MIMEText email = "youremail@gmail.com" phone = "yourphonenumber@messaging.sprintpcs.com" # Boost Mobile def scrape_data(): # this is a web scraping function that page = requests.get("ht...
[ "noreply@github.com" ]
noreply@github.com
c867e8178c3e307027a310c680b5dc60c0a7aeba
7395af9906200bb7135201ede8e238c0afb46c65
/public_api/api_requests/create_transaction.py
6edaac4ade0a40754dce2345e1b754c36cfb54fa
[]
no_license
bellomusodiq/public-api
6fd21d91f9df4e1ef75d2f43f3d2ad59afc1f30c
20b59ecc67ac6c969a9c47991f385e538762c2a6
refs/heads/master
2023-01-02T05:30:53.797873
2020-10-27T20:19:51
2020-10-27T20:19:51
305,782,966
0
0
null
null
null
null
UTF-8
Python
false
false
1,364
py
import requests import json import random import string from .config import base_url def generate_random_string(): choices = string.ascii_letters + string.digits string_ = '' for _ in range(20): string_ += random.choice(choices) return string_ url = "{}/test/transactions".format(base_url) ...
[ "bmayowa25@gmail.com" ]
bmayowa25@gmail.com
6a8a9ac0ad869a43359709201732fda3714a9f1e
556a35688986c975b88d5a755c35aee18d600155
/UO.py
721cb3e162874eef58eadac37c43e73f5e1f79a1
[]
no_license
AshMohanty/-iru.co.util
fe0305baed713698ee2519958d4a1e7dcf8612db
fd29cf90c0b497380bcf22017ca35bc69b525b07
refs/heads/master
2020-12-03T00:38:46.873470
2017-09-01T02:23:06
2017-09-01T02:23:06
96,055,282
0
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
# -*- coding: utf-8 -*- import scrapy from scrapy import Spider from scrapy.http import Request class UoSpider(scrapy.Spider): name = 'UO' allowed_domains = ['urbanoutfitters.com'] start_urls = ['http://urbanoutfitters.com/mens-back-in-stock/'] def parse(self, response): clothes = response.xp...
[ "noreply@github.com" ]
noreply@github.com
61736faaf743b1d71d5a9f64be98135da73cf724
40ece38b446618d35a9302e3e28b01831df03cf1
/bolt/items.py
d08ffdd9f1a7005f4a0cf2e6cdb8a09be0d4b721
[ "Apache-2.0" ]
permissive
akskap/bolt
372174d024a1a257ae414a73f1a75cde118be5af
f9b75a879c87172a7a08ebec9eb113c0acd5a71d
refs/heads/master
2021-01-13T03:33:52.492723
2016-12-26T12:37:44
2016-12-26T12:37:44
77,313,716
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class Webpage(scrapy.Item): title = scrapy.Field() links = scrapy.Field() status = scrapy.Field() images = scrapy.Field() class Image(...
[ "akshay.kapoor@paxcel.net" ]
akshay.kapoor@paxcel.net
60154971e033303df3ec37c5af4870bd330cbc8c
aabcf7b509608af70ce9fa6e7665837f6b6984b0
/bincrafters_envy/main.py
14ef7546bb5c5216fd5a45f5e21aae151fb2df3d
[ "MIT" ]
permissive
bincrafters/bincrafters-envy
2573177e83c8ec0687eff9c76cbc0c79b1a4135c
584ea39c16927ca3d1ffc68b32ec8d77627c27e0
refs/heads/develop
2023-06-08T10:55:37.920810
2019-07-26T08:35:48
2019-07-26T08:35:48
113,282,817
1
0
MIT
2023-06-01T12:24:40
2017-12-06T07:21:00
Python
UTF-8
Python
false
false
266
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys if sys.version_info.major == 3: from bincrafters_envy import bincrafters_envy else: import bincrafters_envy def run(): bincrafters_envy.main(sys.argv[1:]) if __name__ == '__main__': run()
[ "uilianries@gmail.com" ]
uilianries@gmail.com
d3b4582309aca94f3cad2c6532f54bed4c5359e3
7af8313ffd56c9bc9ca4a1cd5f62555037530940
/razlomak.py
79df62af5bb2dbf0a1a5e8cf4d2dea8605b60a3e
[]
no_license
ivobug/zadaproinz1
e7c6ad0231f131e759ef0893eb30d2bddf32d70f
049dca6c0a83f27c3a7bb845e2bb394c6993cf61
refs/heads/master
2021-05-21T07:46:49.860138
2020-04-06T18:28:46
2020-04-06T18:28:46
252,606,943
0
1
null
null
null
null
UTF-8
Python
false
false
2,124
py
from fractions import Fraction class Razlomak(object): def __init__(self, brojnik, nazivnik): self._brojnik=brojnik self._nazivnik=nazivnik @property def brojnik(self): return self._brojnik @brojnik.setter def brojnik(self, value): self._brojnik=value ...
[ "ivo.bagaric.2@gmail.com" ]
ivo.bagaric.2@gmail.com
161cd2ba55e70474da6fcdf802bfe5a7511be7ff
641c037d8b48a3f39f2141ff25c4268aa0fde96c
/SDD_chainer/environment/train.py
4193ab76c53b47cb29bf0cf7cc98578582806155
[]
no_license
acyloon/path_predict
a93eabba2ef97ef99e7d951c37d57ea84a549be9
12ae9acee3e63f0efdf2de12aff90c296edb167d
refs/heads/master
2020-07-18T11:55:12.433974
2019-09-11T22:30:44
2019-09-11T22:30:44
206,241,024
0
0
null
null
null
null
UTF-8
Python
false
false
8,922
py
# coding:UTF-8 import time import argparse import cv2 from glob import glob import numpy as np import matplotlib.pyplot as plt import chainer from chainer import optimizers from chainer import cuda from chainer import serializers from net import Model from load_train import Train_DataLoader from load_test import Tes...
[ "akira-uga@hiroshima-u.ac.jp" ]
akira-uga@hiroshima-u.ac.jp
5d71468f77de49afdf245b3619550254453ab81b
c25cd48cadfa3492ec238bb033d4ece681a216f4
/lavaralouça.py
835fd1f90c7322dd5f7416a677d577b6dee0fdf9
[]
no_license
nobregagui/Guicodigo1
1647fcebee52bab2719ab798420bbbc9f53f24d3
6984c8fae3502e452481a68dc40f65605af8b454
refs/heads/master
2022-09-02T20:55:09.648612
2020-05-28T03:10:08
2020-05-28T03:10:08
267,476,906
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
from random import shuffle n1 = input('Primeiro nome: ') n2 = input('Segundo nome: ') n3 = input('Terceiro nome: ') n4 = input('Quarto nome: ') n5 = input('Quinto nome: ') n6 = input('Sexto nome: ') lista = [n1, n2, n3, n4, n5, n6] shuffle(lista) print('A ordem de quem vai lavar a louça será: ') print(lista)
[ "nobregagui8@gmail.com" ]
nobregagui8@gmail.com
87b4638e26c9eaf9e7f59f72d440a89b34b4040c
ff637d6b96bc4b876004c374b932a2209f5a4333
/Face.py
24d241633d2059a40f448e2a4d7b995b96310728
[]
no_license
advaitparulekar/Intermittent-Exotropia-Manager
d36101a1261a7c513e6ac8c10152c1f755316789
7210cf8f6420787a7e09583661e134ccff0e949f
refs/heads/master
2020-06-25T06:11:11.701666
2019-07-28T00:37:08
2019-07-28T00:37:08
199,226,215
0
0
null
null
null
null
UTF-8
Python
false
false
7,283
py
import cv2 import numpy as np import math from scipy import signal np.set_printoptions(threshold='nan') ALPHA = 2 BETA = 1 class Eye: def __init__(self): self.x = -1 self.y = -1 self.w = -1 self.h = -1 self.iris_center_x = -1 self.iris_center_y = -1 self....
[ "adutheparulekar@tamu.edu" ]
adutheparulekar@tamu.edu
b262b213300b5887f77289f15753e723b135456f
e6e47bbe9c7b6ad22dc6b4e1428075faf10e66f0
/python/calories linear.py
c75416687fa38f1ce16222d35cc1664c5bb02470
[]
no_license
sravankumarreddy9/Datascience-assignments
9bf4fbda4e7f3ed4ff620f4303fab1507d895696
eb1646500b125743e4956c0ab6f644124fb13287
refs/heads/master
2020-07-22T06:19:49.681367
2019-12-24T10:00:15
2019-12-24T10:00:15
207,098,840
0
0
null
null
null
null
UTF-8
Python
false
false
1,566
py
# -*- coding: utf-8 -*- """ Created on Tue Jul 2 13:08:36 2019 @author: Sravan """ import pandas as pd import numpy as np import scipy from scipy import stats import statsmodels.formula.api as smf import matplotlib.pyplot as plt calories = pd.read_csv("C:\\Users\\Sravan\\Desktop\\EXCEL R DATA SCIENCE...
[ "noreply@github.com" ]
noreply@github.com
3e74dac2522b1de473f5cf08b04efb7b1b480958
39447151741b12b438d218a2b04d9c83c105c8e5
/numtowordconverter/owner/forms.py
354dd7bd45c69b49ff950e8e944cce5834ed01d0
[]
no_license
Pranavpradee/numberto_word_converter
7fcd6a27e0d65053fe05ee54b3a236d1b30011b4
486f4680306d7284ba353a2db7b71dcce1dbfec9
refs/heads/master
2023-09-03T21:04:17.880341
2021-10-29T06:35:36
2021-10-29T06:35:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
from django import forms from django.forms import ModelForm from owner.models import owner class NumtostringForm(ModelForm): class Meta: model=owner fields=["Number","Result"] widgets={ "Number": forms.NumberInput(attrs={"class": "form-control"}), "Result":forms.T...
[ "33pranavpradeep@gmail.com" ]
33pranavpradeep@gmail.com
26f2b2dacb0d6c05657c23093507fc5e80645b32
45e9e93736eaee5ba1d90a47fffc2293557e73d1
/test/test_plot.py
380b5db2a1357dd1f42d1962fd9a5749bb76a1ad
[ "MIT" ]
permissive
sheuan/wyrm
b44efdf4a8ca3fe18e327461f54a15a26a614d27
95e49466c87f908d7562839dba9712ab1b30e366
refs/heads/master
2020-12-24T06:51:04.212290
2016-06-13T08:25:45
2016-06-13T08:25:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,303
py
#!/usr/bin/env python import unittest import numpy as np import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt from wyrm.types import Data from wyrm import plot from wyrm.processing import CHANNEL_10_20 class TestPlot(unittest.TestCase): @classmethod def setUpClass(cls): x...
[ "venthur@debian.org" ]
venthur@debian.org
3241148394327c38900042222e00277f2fb1026f
9c562ad4d16db76e57030823bd2e800c7991c843
/build/teleop/catkin_generated/pkg.develspace.context.pc.py
fb06735d025d8a197af07dafbfe304460f2f0217
[]
no_license
atwang16/combot
fa5ecf9670a05475e2966bf3b2fa1447808d2282
56e3d4bb63992a069de18db51766ba4b814f633f
refs/heads/master
2020-06-19T03:19:34.518851
2016-12-05T17:41:34
2016-12-05T17:41:34
74,923,080
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/austin/combot/devel/include".split(';') if "/home/austin/combot/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;rospy;std_msgs;message_runtime".replace(';', ' ') PKG_CONFIG_LIBRARIE...
[ "austin.t.wang@gmail.com" ]
austin.t.wang@gmail.com
bf17e7537b22d61931db1e1ac18bdbaf799d3afe
3954b4fee163290713837d9e1f20772dc3b401c1
/basic.py
e61e2710ecd2ea395b6a620d3e28922f90dc7f31
[]
no_license
amitmittal117/python-link-find
ee373c9770599bb6f24bfa00ec91552185b7dd74
b41a2c8090b20e32b7c33699ea91af1acecf61d9
refs/heads/master
2020-03-22T07:55:53.747136
2018-07-04T19:39:20
2018-07-04T19:39:20
139,733,454
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
import bs4 import re import requests from urllib.request import urlopen as uReq import urllib.request as req from bs4 import BeautifulSoup as soup def retriever_soup(my_url): uClient = uReq(my_url) page_html = uClient.read() uClient.close() page_soup = soup(page_html, "html.parser") return (page_soup) my_url =...
[ "amitarmittal@gmail.com" ]
amitarmittal@gmail.com
f33ec649bb76f8158bbedcd21a834b19cbeb7a00
070fad3c9004ff5dfe99c55880690916c050366c
/mySite/rekshop.py
17190baf7555ef15de2c345c06d6afb97da4531f
[]
no_license
TshalabaevCaspianLabs/AnaliticsPy_2
57dae7735e7c4319ccdb50eb3005a7892602c9c5
8fdfc9762dc477db2e089344011d859c756d6484
refs/heads/master
2023-04-06T18:42:48.475922
2021-04-19T22:01:53
2021-04-19T22:01:53
359,610,202
0
0
null
null
null
null
UTF-8
Python
false
false
2,987
py
import time from multiprocessing import Pool import requests import xlwt from bs4 import BeautifulSoup as bs from loguru import logger def get_html(url): try: r = requests.get(url) if r.status_code == 200: return r.text else: logger.error('Not Connect Html') ...
[ "tima05ta58@gmail.com" ]
tima05ta58@gmail.com
a4115fbc9ff07620a727fab920062e7b0ba99592
2a86cc0b5fe00da0db6a5aaaeac2898c9938497b
/users/urls.py
da4123276d6aa414c7ff706bbee863f389e137ff
[]
no_license
pythonmentor/charles-p8
14b347dd4443efe53ba382d040fcb4d2919a75cc
f2d27834fa1f003f3b19ef8175523f068b913bda
refs/heads/master
2020-12-28T07:13:16.577042
2020-02-04T13:46:23
2020-02-04T13:46:23
238,224,289
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
from django.urls import path from django.contrib.auth import views as auth_views from django.urls import reverse from . import views urlpatterns = [ # path('login/', views.login, name='login'), path('login/', auth_views.LoginView.as_view(template_name='users/connexion.html'), name="login"), # pat...
[ "charles.casassus@gmail.com" ]
charles.casassus@gmail.com
76d757315656ea16b44ade34e16b2678211014f4
e1c3ef872c2d7bd4e3efddbca3647e2a0ac12986
/Small_NewHope/Scripts/failure-1024.py
dbb90d6a6a75844b51b96e0a87020a59f6e27c83
[]
no_license
haiyangxc/Preprocess_Then_NTT
f461af60475f9d0405c40697a812318dbdd7df2a
1c9e528cd55241400aa3e1abe97f8cf14342e02c
refs/heads/master
2022-12-28T23:48:00.992987
2020-09-24T06:18:25
2020-09-24T06:18:25
295,906,750
0
0
null
2020-09-16T02:53:41
2020-09-16T02:53:40
null
UTF-8
Python
false
false
4,016
py
from math import * import operator as op import numpy as np dim = 1024 k = 5 q = 7681 bound_CC = 40000 # Bound n*mu+beta to use in Cramer-Chernoff Ineq. n = 2 * dim / 4 # Number of samples in Cramer-Chernoff Ineq. check_each_y = False # Check each distribution phi_y (slower) # experimentally, they are alwa...
[ "noreply@github.com" ]
noreply@github.com
b6dcf2a314ce8627fe4544d3209cc0bc2f508819
61f3ce1a93f4efc72b7b1e5836e3283fbff429a6
/samples/hello_tensorflow.py
9824b4b4e7fc243cae96e46a4fc592b6355af57a
[]
no_license
cilab-aragorn/HPE-Hackathon-2018-Since-Perceptron
f4966d2d50ebb6fb4244c3f7772052db105f01a7
d958dd0e0eca083d9497a8f1b1571e46f9a71841
refs/heads/master
2021-09-15T15:10:33.362782
2018-06-05T08:01:13
2018-06-05T08:01:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
import tensorflow print() print("Tensorflow: " + tensorflow.__version__)
[ "tzjie.dai@gmail.com" ]
tzjie.dai@gmail.com
77c35e61da685b86d7d099062b817c4d4650011c
aee144770c8f4ec5987777aebe5b064e558fc474
/doc/integrations/pytorch/parlai/tasks/mnist_qa/agents.py
df1f01e28be9434fde8528ad3cb0ea9b583c46d5
[ "CC-BY-SA-3.0", "MIT", "Apache-2.0", "AGPL-3.0-only" ]
permissive
adgang/cortx
1d8e6314643baae0e6ee93d4136013840ead9f3b
a73e1476833fa3b281124d2cb9231ee0ca89278d
refs/heads/main
2023-04-22T04:54:43.836690
2021-05-11T00:39:34
2021-05-11T00:39:34
361,394,462
1
0
Apache-2.0
2021-04-25T10:12:59
2021-04-25T10:12:59
null
UTF-8
Python
false
false
2,362
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ This is a simple question answering task on the MNIST dataset. In each episode, agents are presented with a ...
[ "noreply@github.com" ]
noreply@github.com
8899911814852aeb6037e2a5bc1f92a73324bb5b
bb6e74879df228310c19eb0135f304852cd1762c
/250 InterestingNumber.py
9cf03940a5378b8728e3169b6b93eb4b128b90e5
[]
no_license
lidiamcfreitas/TC.Problems
c27772bf8eb83dcba9fffac02792abe7ac4b3f8e
883f6123fa9776d2311f6d141cf423cc8112cd23
refs/heads/master
2020-06-01T00:43:57.537503
2017-09-07T22:37:38
2017-09-07T22:37:38
18,874,159
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
class InterestingNumber: def isInteresting(self, x): dic = {} l = len(x) for i in range(l): if x[i] not in dic: dic[x[i]] = [i] else: if (type(dic[x[i]]) != list): return 'Not interesting' else: ...
[ "lidiamcfreitas@gmail.com" ]
lidiamcfreitas@gmail.com
0be675f1f85ba5f732fc877fca398ee196184613
52b5773617a1b972a905de4d692540d26ff74926
/.history/fibo_20200709155400.py
3b16f98c3d18b786e0d8adc98afc754847029ae4
[]
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
191
py
# solving the fibonaci sequence using recursion and dynamic programming # Recursion # Base case if n = 1 || n == 2 then fibo is 1 def fibo(n): if n == 1: result = 1
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
3ae4556e6c75bb8ded22afbfafb27e0f230024d3
23452dfe24005302ab41820737c1a679a7dae9b9
/database/db_base.py
eb170cb28dd3ac0048338ef59bb3de589f61696f
[]
no_license
JevinJ/MycoID
84311849d234c15db375338a8d9236e70b455a4c
e3b959714bd006d7bdd00288b8f94c3ea5cd3bcf
refs/heads/master
2020-09-27T19:53:45.061469
2020-02-16T00:22:05
2020-02-16T00:22:05
226,597,724
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
import inflection from sqlalchemy.ext.declarative import as_declarative, declared_attr from sqlalchemy.orm import sessionmaker Session = sessionmaker() @as_declarative() class BaseModel: @declared_attr def __tablename__(self): return inflection.underscore(self.__name__)
[ "jevinjones@openmailbox.org" ]
jevinjones@openmailbox.org
c83e1091ee66be758f3eb5fe1e0510efcb5b03cc
e72b0f90d83c9c24bcbd3d2938d9b430f5164149
/blog/migrations/0001_initial.py
75d3b9256211425bee98033edce349d0259d476b
[]
no_license
eric-pommereau/django-test-demo
a68dd77b709dc37a40cda7c4b8b5f627bf4ac011
7bb7f8d8188885ea8edcd5ce4714890cab323512
refs/heads/master
2021-05-04T22:23:32.196602
2018-02-02T21:23:32
2018-02-02T21:23:32
120,032,329
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
# Generated by Django 2.0.2 on 2018-02-02 21:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "eric.pommereau@gmail.com" ]
eric.pommereau@gmail.com
52019a1bfed7f26846c5ebb30936679a94eaf97f
d15035bd0523295d222ddcd622195912a5cc2f99
/InterviewBit/list_cycle.py
843882ce651b7f6a509bd4c021b84750d2abece7
[]
no_license
EduardoVaca/Competitive-Programming
cd69f43da294284a78de2b9e1ee7061bc522eb78
4143b51bbd2a65ea5b46a3447663eb0eff9161f2
refs/heads/master
2021-01-20T00:40:28.486041
2017-08-14T22:29:24
2017-08-14T22:29:24
83,161,739
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param A : head node of linked list # @return the first node in the cycle in the linked list def detectCycle(self, A): visited = set() curr...
[ "vacalalo@gmail.com" ]
vacalalo@gmail.com
7dd9fd551ffa04472f6d303a35d2967d9345c92f
57f5207978c5c02f79c45b866fda55aa64125a66
/scraper.py
46fc058fa6815ff6ae326a62dceb7d58766c5259
[]
no_license
nid666/Pepe-Machine-Learning
586f839276f56907a1acf71c40eb69d4a3f61df3
eb4b401525f610cc6ea765c7c635af47d1c9977f
refs/heads/master
2020-05-07T05:44:27.743944
2019-05-03T02:45:48
2019-05-03T02:45:48
180,279,607
0
1
null
null
null
null
UTF-8
Python
false
false
324
py
#pip install ImageScraper import image_scraper #this uses python3 max = input("How many pepe images do you want to download - not currently working") source = input("From which sources should images be imported") path = input("Add the path of test_images folder - not currently working") image_scraper.scrape_images(sour...
[ "35160315+nid666@users.noreply.github.com" ]
35160315+nid666@users.noreply.github.com
67a71629916683e5e4393c7741dadfd9f0bd7755
293e1ab8a6d6e450307715b312eb4de45251e3a5
/scripts/virus_share_downloader.py
b514501cb08ad7a6485bfe092e6efddd05244da9
[]
no_license
joaogodinho/thesis
e90a6d6cfd9126f43622d6cdb326dcd424133923
5b38bcc7d0f5004d8ee8a9b474019a1ca932b1fe
refs/heads/master
2021-03-26T10:32:16.766570
2018-02-19T14:41:44
2018-02-19T14:41:44
69,254,873
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
""" Simple script to download virus share hashes """ import argparse import gevent import gevent.pool from gevent import monkey; monkey.patch_all() from urllib.request import urlretrieve def gevent_func(pair): print('Fetching {}...'.format(pair[0])) urlretrieve(pair[0], pair[1]) def downloader(destinatio...
[ "joaocfgodinho@gmail.com" ]
joaocfgodinho@gmail.com
d6f72acbd5a87945e02e30a1fbc7fa53ce292903
724317c256e3c57e8573f74334be31f39ba34eb9
/scripts/graphquestions/insert_to_db.py
08cadc30d76f276e8821af87e44558d87e2df6ee
[ "Apache-2.0" ]
permissive
pkumar2618/UDepLambda
a36662014fc23465aff587761810b986e4dad6dd
08f00b7dc99bb06c6912e9e83f47c32ebdd38eff
refs/heads/master
2022-11-25T09:22:41.444891
2020-08-01T08:56:52
2020-08-01T08:56:52
282,916,873
0
0
Apache-2.0
2020-07-27T14:09:32
2020-07-27T14:09:32
null
UTF-8
Python
false
false
474
py
#!/usr/bin/python import MySQLdb # connect db = MySQLdb.connect(host="rudisha.inf.ed.ac.uk", user="root", passwd="ammuma1234", db="gq_german") cursor = db.cursor() # execute SQL select statement cursor.execute("SELECT * FROM sentences") # commit your changes db.commit() # get the number of rows in the resultset nu...
[ "siva@sivareddy.in" ]
siva@sivareddy.in
468af2555cac3a4bc2e06abafe5def8c58ba6fd7
759aae9d096aa4d14c8e16fe946fa5163b59fd44
/main.py
7da0b3ae591ca0cde3ef1744dcce1574597d792d
[]
no_license
rexendz/salvavida
c2cc6325de232fe7b5ad2e070e34f1525441dcfa
363ce4cb18b784bcaef70e89d9fa59844bea99d9
refs/heads/main
2023-07-30T15:25:10.734509
2021-09-11T10:17:23
2021-09-11T10:17:23
362,212,193
0
0
null
null
null
null
UTF-8
Python
false
false
16,144
py
from PyQt5 import QtCore from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * from HCSerial import SerialListener import RPi.GPIO as GPIO import os import sys import time from firebase_admin import credentials from firebase_admin import db import firebase_admin userpath = os.getenv("HOME"...
[ "rexendozo@gmail.com" ]
rexendozo@gmail.com
57e2721a86265647e4684e4999bd545378f1b910
3e32e7da22e54aac6a3cbdc0e24ff87f3a2645d4
/src/util.py
4e0f8ffdcb60f08815ee420306b12a015a8c345c
[]
no_license
markus-hinsche/weakly-supervised-semseg
d2489cc23643cfb76346d9a20b6520ba2f915e27
2e871b3b6305d7b5711d792746535b780bc305fa
refs/heads/master
2023-05-09T18:53:34.343594
2020-08-12T18:46:39
2020-08-12T18:46:39
276,607,161
1
0
null
2021-06-08T21:58:58
2020-07-02T09:39:50
Jupyter Notebook
UTF-8
Python
false
false
4,040
py
# https://docs.fast.ai/dev/test.html#getting-reproducible-results from functools import partial from pathlib import Path import re from typing import List, Tuple import torch from fastai.vision.image import ImageSegment from fastai.basic_train import Learner from src.constants import ( GT_ADJ_TILES_DIR, CLAS...
[ "m.hinsche@gmail.com" ]
m.hinsche@gmail.com
d68b622c4127cb84da1896df7dd634f69ad260ac
925d6c11ad50f3f56a5665e1f854e83ecf0427b4
/python/gaussian2.py
fe06435956bed8d1b5b4ab7007c1edafe0c7b270
[]
no_license
camillanore/Studies
244a57834f71fc1a28b4ee82ea31cf6c2678703a
a4b625e0d243fcd76f9418fb2d523dad5fd9e752
refs/heads/master
2021-01-25T04:57:29.787317
2015-12-09T15:50:29
2015-12-09T15:50:29
41,266,235
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
# -*- coding: utf-8 -*- """ Created on Sun Sep 13 21:32:24 2015 @author: Camilla Nore """ """ .16 (gaussian2.py, side 136), 3.23 (Heaviside.py, side 139) """ # Exercise 3.16 Implement a gaussian function import pylab import numpy as np import math def main(): table = gaussian_table(n=12) print_table(table) ...
[ "camilla.nore@gmail.com" ]
camilla.nore@gmail.com
401adce227f61bb18aa04f7107603a09fd393ac8
c65100178864f7190d57a6ccc8fd2f2024d5e29f
/scripts/orphanDetection4/kPartId_vDayGraph.py
0096d80354469b45587ddbaae9bd3df89cc67307
[ "Apache-2.0" ]
permissive
bcolloran/jydoop_bcolloran
bfcc633cd6d16f2afadfd1bc37fa7dfefcc9b69c
e72c0b190be47a43cb19bcfb10e86b61d61c6ab9
refs/heads/master
2021-01-18T14:57:51.509445
2014-05-20T04:45:17
2014-05-20T04:45:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,210
py
import jydoop import healthreportutils import json import datetime import orphUtils import dag output = orphUtils.outputTabSep setupjob = orphUtils.hdfsjobByType("HDFS") def sortedDayInfoToDagInfo(sortedDayInfo): nodes = [dag.DayNode(id=label,date=info["date"],data=info["data"]) for label,info in sortedDayInf...
[ "bcolloran@mozilla.com" ]
bcolloran@mozilla.com
3c8297cb42490eb25cce6c5c943cf17c2d02631b
4bd1e6df114f49656ce8110030d6b996cb8a96fa
/Crash Course in Python/Graded Assignment Week 1/question_9.py
72faf143027690f53f3e503d7b317fb03766273b
[]
no_license
tannuyadav03/wordcloudd
93478bb949bbc9ddfcf4c44c64375b3252f3cc05
0b321ccb1df1777974b935fa17bb7a630f5aeab9
refs/heads/master
2022-12-25T23:22:33.832979
2020-09-30T09:19:15
2020-09-30T09:19:15
299,820,357
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
answer = (26**6) print (answer)
[ "noreply@github.com" ]
noreply@github.com
93ac241919e6397982f959d7414982f777a8249f
50bc2e7da2c0e8d941c99a6cfb482f731e5ee5cb
/p005.py
f9fdf5befbb9c07a9afcff4550a7dd67c5ad7936
[]
no_license
abachman/project_euler
e1207268af46d4704d617d50ae3cef4796a50d26
b006d31d696b18b37948111bf75296af76e4e218
refs/heads/master
2016-09-05T19:51:30.713652
2010-01-19T02:13:33
2010-01-19T02:13:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
""" 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest number that is evenly divisible by all of the numbers from 1 to 20? """ import psyco psyco.full() def lcm(a, b): na = a nb = b while b != 0: t = b ...
[ "adam@adam-laptop.(none)" ]
adam@adam-laptop.(none)
d0789467ec3dd1f0b7fa3dec5e854cc556e9f14d
073d693d3369e41a29f842c0b153241e47e1b2ac
/test/functional/wallet_listsinceblock.py
e197a528aec3b0e473b598c0331e5fcd6dca9283
[ "MIT" ]
permissive
robervem/sbercoin
2a7984a7d77a63c51957e9b8b6df6bc759925d2e
ba61e50fab7e3b15e39a9cbe3a7adf08cab96d39
refs/heads/main
2023-02-09T21:16:56.425759
2021-01-07T20:09:19
2021-01-07T20:09:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,819
py
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listsincelast RPC.""" from test_framework.test_framework import SberTestFramework from test_framew...
[ "k.arya2946@gmail.com" ]
k.arya2946@gmail.com
07a24866f1f9f5ad1e5bfc1531e3d4910f4387ea
3a91171eea92584701bc3f5a36b3ed09705dfc83
/bot.py
c93bd0cfac74d7af948fe935fa0d52ea78271122
[]
no_license
Rita-Zey/python_project1
15d7aadc931a8b0265454175107a8ef45d03bd33
2de67140104d9f42bd9127d69366e9c40d48f763
refs/heads/main
2023-02-27T17:02:19.444646
2021-02-09T17:01:31
2021-02-09T17:01:31
329,972,305
0
0
null
null
null
null
UTF-8
Python
false
false
1,488
py
def greet(bot_name, birth_year): print('Hello! My name is ' + bot_name + '.') print('I was created in ' + birth_year + '.') def remind_name(): print('Please, remind me your name.') name = input() print('What a great name you have, ' + name + '!') def guess_age(): print('Let me guess your age...
[ "77503408+Rita-Zey@users.noreply.github.com" ]
77503408+Rita-Zey@users.noreply.github.com
f6cf59c2e84f50c4a223b072f2e2074a3ecab041
3f92a94de32b3480f803f256f82c0851962fe133
/training/multi_label_trainer.py
e9e4048d643c6d2f67cf519487acb09eb3de8cd1
[]
no_license
PatrickRogg/ner-products-skills
10d70510b312406d182701052cef3a58ea7c85c1
a31a13b91774729a50377c94c7a801e8bdbf825f
refs/heads/main
2023-04-18T19:20:24.376520
2021-05-01T19:16:06
2021-05-01T19:16:06
363,478,382
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
import torch from transformers import Trainer class MultiLabelTrainer(Trainer): def compute_loss(self, model, inputs, return_outputs=False): labels = inputs.pop("labels") outputs = model(**inputs) logits = outputs.logits loss_fct = torch.nn.BCEWithLogitsLoss() loss = loss_f...
[ "learning-platform@outlook.com" ]
learning-platform@outlook.com
5515d443b13349798cfa913a38ad8787ca09c206
4bd3042d0b6bdb59d1371d82cca14efea83321ea
/telegramBot.py
7b7ca7b4e2dadfb64efa678a79039566dbdc628b
[]
no_license
Deeptradingfx/DOM-BOT
d7fc6892ad154445603a88d6edc8fa0698ec209f
64ddccaf416b199d9a49ba3d3dbe8edeeed1f40d
refs/heads/master
2020-06-16T13:02:55.153886
2019-07-01T16:15:40
2019-07-01T16:15:40
195,584,315
1
0
null
2019-07-06T21:25:16
2019-07-06T21:25:15
null
UTF-8
Python
false
false
4,270
py
""" First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctrl-C on the command line. Usage: Example of a bot-user conversation using ConversationHandler. Send /start to initiate the co...
[ "rodrigo.calderano@gmail.com" ]
rodrigo.calderano@gmail.com
2b3f114f513fe7e984f7776fced87f68fec3f841
831658c4e15b755291fd3cabef33a8e83217f0a4
/blog/models.py
f28b2678da307c51aea8bcad682f260cb7ca75f6
[]
no_license
giorgia-amici/Django-Girls
a74000cb8b8cbf3e25863a23c52c04af792c5cbc
37a7280713aaae798e6554d494537b43c2a8a9c7
refs/heads/master
2021-01-10T19:28:13.286670
2014-12-29T17:05:31
2014-12-29T17:05:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
from django.db import models from django.utils import timezone class Post(models.Model): author= models.ForeignKey('auth.User') # the ForeignKey is a link to another model title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField(default=timezone.now) published_date =...
[ "giorgia1london@gmail.com" ]
giorgia1london@gmail.com
4d7e6b720c8613a434e813697ed7290c1f4143ff
5ae880c16efc3932f9893023abf7bf9d5be96542
/src/web_pm25.py
af35b3a42a6be5328e0f750e737fef157c0b6e8a
[]
no_license
minsoo3380/ReallyFine
ae9bb4f9c8eaaeff64d92f030a468b809d8e97bc
5e5583a17617504f6386adb354aea8647a82cf06
refs/heads/master
2020-05-18T07:47:40.023384
2019-11-23T18:49:17
2019-11-23T18:49:17
184,273,409
1
1
null
null
null
null
UTF-8
Python
false
false
8,619
py
import re import sys import ast import pymysql import requests from bs4 import BeautifulSoup from datetime import datetime url = None; now = None; year = None; month = None; day = None; hour = None; t_hour = None; host = 'localhost' user = 'root' pswd = '123123' dbname = 'ReallyFine' chrset = 'utf8' if len(sys.argv)...
[ "minsoo3380@naver.com" ]
minsoo3380@naver.com
c7a7801595da9f87818f808e5b2cce9ec5584b55
b6e4c5150b91688c6e92438aa5765fd9028a8c5f
/Cython/Compiler/Tests/TestJediTyper.py
8e974eb6889429c3d546d9283acea8e2d657c62f
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
aigrama/cython
f3ea22c61e81309df0888cc23954f055278cb0b0
3a254499a4d85e6cc9fb15191d90c3831123c6ac
refs/heads/master
2021-01-14T12:34:44.001832
2014-08-28T18:31:06
2014-08-28T18:31:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,980
py
# -*- coding: utf-8 -*- # tag: jedi from __future__ import absolute_import import unittest from textwrap import dedent from contextlib import contextmanager from tempfile import NamedTemporaryFile from ..ParseTreeTransforms import NormalizeTree, InterpretCompilerDirectives from .. import Main, Symtab, Visitor from ....
[ "stefan_ml@behnel.de" ]
stefan_ml@behnel.de
40cf3cfc03f4e41404ac0966c81f9327edc1fa42
68580b38d7ce2f5c4ef9c3ec20aa09d8a3bd8787
/src/test/guokr.py
e976431cf29532914c9d6c137b6add487c5eea19
[]
no_license
Frude/python
e8b27971b46adf004cd10f752f988ea86da8f317
f8c2c2a980f3cca3d8283b2336081cae11654261
refs/heads/master
2020-09-27T00:02:59.029753
2016-08-18T02:05:58
2016-08-18T02:05:58
65,955,007
0
0
null
null
null
null
UTF-8
Python
false
false
3,155
py
# -*- coding:UTF-8 -*- from GetSoup import Soup import re from bs4 import BeautifulSoup from apicloud.dataCloud import DataCloud from Get_html import get_html from upload import upload from random import random from time import ctime,sleep import sys import os from log.main import m_log ''' Created on 2016...
[ "czq347@hotmail.com" ]
czq347@hotmail.com
61dc717e8adc2e6f67c46000869f02c7bb8bd50b
b570c02e2767b0ed7f0bf99edeff16bbd926de58
/security_monkey/watchers/vpc/peering.py
467f971bd971cb3855e9128a036db103a2e71df4
[ "Apache-2.0" ]
permissive
Bridgewater/security_monkey
708cbdc162f2ae9010a9e60a45bf1a30128a66c6
11896c788b250748c31596e75d68e5429b43c43c
refs/heads/develop
2020-02-26T13:22:01.140503
2016-12-01T15:54:03
2016-12-01T15:54:03
67,235,506
1
1
null
2016-09-02T15:48:34
2016-09-02T15:48:34
null
UTF-8
Python
false
false
4,389
py
# Copyright 2016 Bridgewater Associates # # 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 appli...
[ "noreply@github.com" ]
noreply@github.com
2da1e688ed05f5cb84c5af24b260395a80713e43
3afcbc632db73e87a8b1ce8e3a5223c5a5da1451
/source/ple/delay_plotting_nodes_ordered.py
430a7350b160e3b99003ee448f3c8ea8fdffc764
[]
no_license
ruben11291/master-thesis
cc32ff790dd6f5dd8dcc9305460419ca2ece0e54
1668bfa96bafdf5ab7ffffcf8e1b9dbf041772d7
refs/heads/master
2020-06-03T20:55:35.957604
2014-10-09T13:58:34
2014-10-09T13:58:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,459
py
"""This script makes a plot representing the bandwith of a node in front of the time""" dst={"France":0,"Switzerland":1,"Belgium":2,"Netherlands":3,"Spain":4,"Germany":5,"Italy":6,"Czech Republic":7,"United Kingdom":8,"Ireland":9,"Portugal":10,"Hungary":11,"Poland":12,"Norway":13,"Greece":14,"Sweden":15,"Finland":16,"...
[ "ruben.perez@alu.uclm.es" ]
ruben.perez@alu.uclm.es
e019f16db7ba4fbd11cc190bd1425769fda97daa
9d5b0bcc105f7a99e545dd194d776a8f37b08501
/tf_quant_finance/math/integration/simpson.py
d011b774ef2f030af974719aec196bfd567db508
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
priyalorha/tf-quant-finance
ab082a9bd6d22fd3ea9a3adcf67a35dc23460588
72ce8231340b27b047279012ffe97aeb79117cdf
refs/heads/master
2023-02-23T11:08:30.161283
2021-02-01T13:57:43
2021-02-01T13:58:14
334,980,881
1
0
Apache-2.0
2021-02-01T14:45:14
2021-02-01T14:45:14
null
UTF-8
Python
false
false
3,828
py
# Lint as: python3 # Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ "tf-quant-finance-robot@google.com" ]
tf-quant-finance-robot@google.com
aa32538b420d1262db70ddec070387de02ff8f49
1a83e8e6457881c47babb08b8e6ecd8e00bfb30b
/lab1/searchAgents.py
7cabb3bd59f0bf5c7153f2604b58d0cf1cc2ac77
[ "MIT" ]
permissive
fgulan/ai-fer
0dd24c8ee553ebef7f6ecae3b2816f7f05f11a88
1631c1a8c58a2b11db21ae40061b2e618a529fa6
refs/heads/master
2021-04-28T18:50:06.236527
2018-02-17T18:32:38
2018-02-17T18:32:38
121,881,207
0
4
null
null
null
null
UTF-8
Python
false
false
21,769
py
# searchAgents.py # --------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley...
[ "filip.gulan@infinum.hr" ]
filip.gulan@infinum.hr
2a210351a0c226a2b43b78c50b5900542c2130a5
222ab936c99c923c1a75c803a685900540f6551a
/todo/main/urls.py
3d66d836bcd7f1619f6d96dabef449663e133c6b
[]
no_license
Immaculated/todo_edu_django_basic_by_sergkot
e61075dfc7887ead88664a256c3fc0db95fdaa26
458a4cc35d4e5cbbb7658596e0d212ed1b12d3ba
refs/heads/main
2023-04-21T23:40:14.316456
2021-05-11T17:52:58
2021-05-11T17:52:58
366,337,895
1
0
null
null
null
null
UTF-8
Python
false
false
454
py
from django.urls import path from main.views import main_view, create_view, edit_view, delete_view, MainView, CreateView app_name = 'main' urlpatterns = [ # path('', main_view, name='main'), path('', MainView.as_view(), name='main'), # path('create/',create_view, name='create'), path('create/', Create...
[ "FKopk3290" ]
FKopk3290
9576363bed25a00e07b7943964282357554d0aec
7bf802a429d48f8baa717eb3e5667dabb1322cfb
/MI/Blient/urls.py
f48ce2b58aadb7a9c4d03cfbb613e9ded8505892
[ "Apache-2.0" ]
permissive
ITgaoS/MI
89476d0bcb620445982f13bc54a0e2d80c44141e
d35d53fa2c18ae0f5764f0568dbb01bca35050f3
refs/heads/master
2020-09-05T03:57:34.226630
2020-01-03T07:12:25
2020-01-03T07:12:25
219,975,918
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
from django.urls import path,include from Blient import views urlpatterns = [ path('login/',views.login) ]
[ "603128825@qq.com.com" ]
603128825@qq.com.com
37f740d4e6a0dcaa6173671c51c141554d7a7332
7366f292ede1ce81481e4b07fab70433a854012f
/searching-and-sorting/sorting/mergeSort.py
edf1cd25577d28a6d9ff1aabf49b223915893332
[ "MIT" ]
permissive
nishantml/Data-Structure-And-Algorithms
86534936d20c00e31ee71485ca8e07232b5c7671
1f75bdbddb5fa4bccba762515460c73280cde65d
refs/heads/master
2023-03-05T22:31:19.027993
2021-02-21T16:50:31
2021-02-21T16:50:31
275,635,059
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
import math as Math def mergeSort(array): """call itself to divide the array till the size becomes one""" if len(array) == 1: return array # Split Array in into right and left from the middle length = len(array) middle = Math.floor(length / 2) left = array[0:middle] right = arra...
[ "nishantbhushan10@gmail.com" ]
nishantbhushan10@gmail.com
5f3ef402e43e381527b710f81ee8970f9ac7c5a1
aaa204ad7f134b526593c785eaa739bff9fc4d2a
/tests/system/providers/google/marketing_platform/example_analytics.py
0d8f94ec38e552ad8bfc9ef564376ae17a7b7d4e
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
cfei18/incubator-airflow
913b40efa3d9f1fdfc5e299ce2693492c9a92dd4
ffb2078eb5546420864229cdc6ee361f89cab7bd
refs/heads/master
2022-09-28T14:44:04.250367
2022-09-19T16:50:23
2022-09-19T16:50:23
88,665,367
0
1
Apache-2.0
2021-02-05T16:29:42
2017-04-18T20:00:03
Python
UTF-8
Python
false
false
3,724
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
noreply@github.com
b40188c35263eb2a38a24d4cd2baa6aeb5c9a6d2
96b8e52ec797e64ba34ae46bb23452798e96616e
/scrap.py
782f1e45443c47c9a17880bbad389d26801bfd77
[]
no_license
RaulinN/BA6_SHS_DH
c0b0b69d40715785f060491d4ef52c6976a20acf
b7d21f2e2e111bd05ba51cc7c89d645aa9f40e3e
refs/heads/master
2023-05-04T07:48:14.605134
2021-05-31T16:51:38
2021-05-31T16:51:38
359,808,412
0
0
null
null
null
null
UTF-8
Python
false
false
6,015
py
import requests from bs4 import BeautifulSoup import pickle import time import sys import pandas as pd import os from PastaMaker import * import keywords def get_id(letter, existing_elites=[], limit = 100000): """ Prends en entrée la lettre du début du nom des élites que l'on souhaite extraire et un table...
[ "ira.dobbelaere@epfl.ch" ]
ira.dobbelaere@epfl.ch
604b0c7c174ad79b4bdc7d8e4b17806b687eb403
b299ceb502e56dfc113e50f14128dca5bd9c5bf8
/lists/urls.py
512c2e1ade508a5445e9dc134bc3f03cef0847e3
[]
no_license
felipe-lee/superlists
cd11043a48bbb1466e6a8b2ff37e37a7a8d671a0
663e4df57a5664dd6723687ea762b862f5232e7b
refs/heads/main
2021-05-09T09:37:21.011431
2018-05-06T16:47:58
2018-05-06T16:47:58
119,450,624
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
# -*- coding: utf-8 -*- """ Lists app URL Configuration """ from django.urls import path from lists.views import NewListView, my_lists, share_list, view_list app_name = 'lists' urlpatterns = [ path('new', NewListView.as_view(), name='new_list'), path('<int:list_id>/', view_list, name='view_list'), path('u...
[ "felipe.lee.garcia@gmail.com" ]
felipe.lee.garcia@gmail.com
b53f3b347806934c4c56b745053b183d33898247
469300405fc2da95132ef432071c15565a7434b5
/python_hw2.py
c84d68e977ddd3643ab73d8bac8082fad56f7a54
[]
no_license
AnaPolly/Poppins-bag
8653b0b48478bd3c54b51026dc5edc6338c6ebd0
fbe38652b70f8ef039f352a6190dd8a822b7dd20
refs/heads/main
2023-08-06T00:05:04.905636
2021-10-07T11:24:15
2021-10-07T11:24:15
407,823,491
0
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
friend_1_name = "Isa Pereira" friend_1_email = "isa.pereira@example.com" friend_1_age = 38 friend_1_the_best = True friend_2_name = "Dri Renno" friend_2_email = "dri.renno@example.com" friend_2_age = 38 friend_2_the_best = True friend_3_name = "Si Fernandes" friend_3_email = "si.fernandes@example.com" friend_3_age ...
[ "noreply@github.com" ]
noreply@github.com
46914611421331bc8c3b99a2f18da0e2a7b11766
eb3c6e228a05e773fad89b42da0f54a1febbd096
/plenum/bls/bls_bft_utils.py
67d709cfdbd21e7a593db606e4930394d7383904
[ "Apache-2.0" ]
permissive
amitkumarj441/indy-plenum
1f45e0c095b9aa27e8306e29c896aa1441a20229
7cbcdecd5e6e290530fe0d5e02d9ea70ab1c9516
refs/heads/master
2021-07-21T02:19:24.219993
2017-10-27T08:48:03
2017-10-27T08:48:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
def create_full_root_hash(root_hash, pool_root_hash): """ Utility method for creating full root hash that then can be signed by multi signature """ return root_hash + pool_root_hash
[ "alexander.sherbakov@dsr-company.com" ]
alexander.sherbakov@dsr-company.com
8a2cb7352d70ac35a77a3d30b75ffdd7dd1a365c
c87df0f7ca2f118ee9167d0dd38e2017f756fc0d
/www/deploy/wsgi/prod.py
04dad79c385aa5d5f4680a2e20a2d4381d82ff41
[]
no_license
3ka5-cat/trends
a5de0dd4e47aeb63ac8486f826ee970fb6c08d64
2ff899e86f2254213cba4e4bbdd9b9b4a4987368
refs/heads/master
2021-01-25T08:42:50.794120
2015-07-09T11:19:55
2015-07-09T11:19:55
38,866,372
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
import os import sys sys.stdout = sys.stderr # Set environmental variable for Django and fire WSGI handler os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' os.environ['DJANGO_CONF'] = 'conf.prod' os.environ["CELERY_LOADER"] = "django" from django.core.wsgi import get_wsgi_application _application = get_wsgi_applica...
[ "antik.fnt@gmail.com" ]
antik.fnt@gmail.com
07ea42242a1fbfdc5bfff607bf62e2431db95c88
b363a41cc603dfdcc737bbf7abc5e96e5d651586
/docs/conf.py
d2c5d073a5f88d60cc63666c28fe4d70404a73e2
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
davidblewett/gunny
0514278240efb8e015314370050930ca54bd6b43
8f1a5e63a37349d6e59be517281d9b68fa61a0a3
refs/heads/master
2021-01-18T14:40:56.462948
2014-01-05T17:59:29
2014-01-05T17:59:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,326
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # au...
[ "davidb@sixfeetup.com" ]
davidb@sixfeetup.com
9ca70b73c8bf4b1c270260185396cd72a71202f1
a8fd281b2c7336faa9df5b872b465824fe6efa68
/lecturecode/code_lec4.py
b33b3583975d70e0df4c9ecb5d3cb49be7735b88
[]
no_license
YangfengPeng/bcamp
b0a064b09cdf02f3378039a71c037decf39fcc98
9c8a555c1e58d13ea43abe9d58d61a5f02465a1d
refs/heads/main
2023-07-05T16:29:56.331953
2021-09-02T12:27:34
2021-09-02T12:27:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,656
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Aug 22 15:41:03 2021 @author: ruslebiffen """ import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import statsmodels.api as sm N1 = 100 N2 = 250 N3 = 1000 N4 = 10000 N5 = 10000...
[ "tobias_ingebrigtsen@hotmail.com" ]
tobias_ingebrigtsen@hotmail.com
f704cf61cb51810d863d902fd775d9cbbf0da782
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02238/s136410577.py
efae5c2b562906dd438512222d9cbfb70501d96a
[]
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
744
py
#coding: utf-8 n = int(input()) color = ["white" for i in range(n)] d = [[] for i in range(n)] global t t = 0 M = [[False for i in range(n)] for j in range(n)] for i in range(n): data = list(map(int,input().split())) u = data[0] k = data[1] if i == 0: start = u for v in data[2:2+k]: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4e05e1fa102d045a8e508ef349dc1f9b214b35bf
6554be98afb33461885b5011890a19a90f53472a
/discussionwall/apps.py
4abca3ca7be74bac1d916befda9c28a3a1b788a2
[]
no_license
Mirror-Score/Discussion-api
49e7d4a21827d39d82f9f76fd33ff90ecb73c3ba
3418a415f6217a01a8bc1dfcf32dd3adac2a9493
refs/heads/master
2023-07-01T00:24:33.640212
2021-08-07T18:39:01
2021-08-07T18:39:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
from django.apps import AppConfig class DiscussionwallConfig(AppConfig): name = 'discussionwall'
[ "namantam1@gmail.com" ]
namantam1@gmail.com
aa4a7a7bec6c8d765c3e813b46ac392fb2f243d9
98032c5363d0904ba44e1b5c1b7aa0d31ed1d3f2
/Chapter10/ch10/race_with_lock.py
5b939cb8db37805feba1ecc83d58524902c0916b
[ "MIT" ]
permissive
PacktPublishing/Learn-Python-Programming-Second-Edition
7948b309f6e8b146a5eb5e8690b7865cb76136d5
54fee44ff1c696df0c7da1e3e84a6c2271a78904
refs/heads/master
2023-05-12T08:56:52.868686
2023-01-30T09:59:05
2023-01-30T09:59:05
138,018,499
65
44
MIT
2023-02-15T20:04:34
2018-06-20T10:41:13
Jupyter Notebook
UTF-8
Python
false
false
576
py
import threading from time import sleep from random import random counter = 0 randsleep = lambda: sleep(0.1 * random()) def incr(n): global counter for count in range(n): with incr_lock: current = counter randsleep() counter = current + 1 randsleep() ...
[ "33118647+romydias@users.noreply.github.com" ]
33118647+romydias@users.noreply.github.com