repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
sunilvarma9697/Code-Basics
12,068,858,147,000
8a67307028cafd54ce24f7d65a9e71565d831190
3e62a4bad85222dcf9eefa393500e4eba6d963d2
/Fibonacci.py
d57f6f427cb6b79ae2b0860c71ae8cd0d001c481
[]
no_license
https://github.com/sunilvarma9697/Code-Basics
48c8f7085b9d85e638bf6f40567f97f052bdcaef
45595ea3de1b938dd5682575d25b2a6b76b2e1c4
refs/heads/main
2023-06-19T23:12:14.883542
2021-07-21T15:56:00
2021-07-21T15:56:00
388,168,707
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Fibonacci - Fabonacci is set of numbers that are starts with zero and one. def fib(n): a = 0 b = 1 if n == 1: print(a) print(a) print(b) for i in range(2,n): c = a + b a = b b = c print(c) fib(10)
UTF-8
Python
false
false
232
py
38
Fibonacci.py
37
0.530172
0.50431
0
16
12.625
75
poppindouble/AlgoFun
9,251,359,594,508
7d478f397e6c09c366e7a474add3a2829ceeb832
79732fa5d9c93e1362cbad8cfcb5f5d31fae596c
/repeat_substring_pattern.py
a58647a496bd0fbcb5d5aef8a088c65b23129af6
[]
no_license
https://github.com/poppindouble/AlgoFun
c4bb78ab9338b8b685ae8b27b55de6a62862495c
f35c61b715cd436c99037c4e6ed824dfcba3ec15
refs/heads/master
2021-09-10T05:52:08.666243
2018-03-21T09:38:55
2018-03-21T09:38:55
112,266,753
1
0
null
false
2018-02-21T22:28:42
2017-11-28T00:54:16
2017-11-28T00:56:29
2018-02-21T22:28:42
182
0
0
0
Python
false
null
class Solution: def repeatedSubstringPattern(self, s): if len(s) < 2: return False next = [0] * len(s) i, j = 0, 1 while j < len(s): if s[j] == s[i]: next[j] = i + 1 i += 1 j += 1 else: if i == 0: next[j] = 0 j += 1 else: i = next[i - 1] return next[-1] > 0 and len...
UTF-8
Python
false
false
457
py
190
repeat_substring_pattern.py
190
0.496718
0.463895
0
24
18.083333
59
Diarukia/metaheuristic_regression
6,150,393,190,996
7ec8d67f0e59ae599982daf639b27495998505c7
e4c37f6a9bf6c27298a389e1243051669042da40
/regression_framework/functions/hartman_family_function_1.py
53729b0a841aeac11beef74185bf1351f838bcc7
[]
no_license
https://github.com/Diarukia/metaheuristic_regression
47f2a909bca4103522948af4828e791993085b80
9933e3a955ca453414206a6019ff57a30a6df7c4
refs/heads/main
2023-08-15T01:38:47.331380
2021-09-25T19:48:17
2021-09-25T19:48:17
344,648,766
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from regression_framework.functions.base_function import Base_function import numpy as np import random import math class Hartman_family_function_1(Base_function): def __init__(self,name = 'Hartman_family_function_1',lower_bound = 0,upper_bound = 1,dimension = 30): super().__init__(name,lower_bound,...
UTF-8
Python
false
false
1,051
py
36
hartman_family_function_1.py
36
0.528069
0.43197
0
32
30.90625
105
La0bALanG/Spider_Codes
12,481,174,965,162
bda5194215209e2f13fb7a24c122ed7dac070c07
069e82d0400913682bf5ff1ffa60a62422610b83
/demo11_GetGovementAdministrativeArea_OOP.py
7063a7647143b384a3b3cae3c24e5426be9676f2
[]
no_license
https://github.com/La0bALanG/Spider_Codes
ae9aa6a97c15d0aeeb72702f6a6b3b8caa7b107d
72ce5b72b0baf1de7d8fecac4805d4711dc6409f
refs/heads/master
2022-12-30T13:06:13.937923
2020-10-13T09:18:54
2020-10-13T09:18:54
298,497,349
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 _*- """ @version: author:安伟超 @time: 2020/09/14 @file: demo11_GetGovementAdministrativeArea_OOP.py.py @environment:virtualenv @email:awc19930818@outlook.com @github:https://github.com/La0bALanG @requirement: """ import requests import threading from lxml import etree import re from fake_useragent imp...
UTF-8
Python
false
false
5,786
py
34
demo11_GetGovementAdministrativeArea_OOP.py
31
0.597831
0.558376
0
168
24.803571
147
davidlrnt/civiccheckin
1,623,497,639,753
1644f6a695c75b0c39145fb14093b01ab63c638d
dd914c37550adba54791e4d72bc70f4273ab7061
/run.py
45ea4b7ff79f9f39eacdcc1abe1c1ba334cdf591
[]
no_license
https://github.com/davidlrnt/civiccheckin
3a34033bc2d737196ff48678d7de98703f5175ac
ec990c00512ee7cd46bf8c5ee9761d5b5b0b3482
refs/heads/master
2020-12-24T17:44:50.995435
2015-08-27T18:58:57
2015-08-27T18:58:57
41,328,890
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from app import app from flask.ext.cors import CORS cors = CORS(app) if __name__=="__main__": app.run(host='0.0.0.0', debug=True)
UTF-8
Python
false
false
155
py
2
run.py
1
0.651613
0.625806
0
8
18.375
36
DavidBarts/opstools
8,048,768,718,233
415c5cfea4e8dda861280b4a1ff710fed3ce38b3
08eeceee31b0a76b2acfbf01ccacff40101d7cbe
/stopgap-alarm/lib/lazy-crawler/format-alert-f
5d3ecd4195867893444664c1a533ab80a10fd1d9
[]
no_license
https://github.com/DavidBarts/opstools
b14ac6ae51a11e87695f8268b8c795c33804bb2c
3cf65b764371b66eaa139f648e481cacba355480
refs/heads/master
2015-07-13T04:19:03
2015-06-25T15:30:10
2015-06-25T15:30:10
7,896,303
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # Format a lazy-crawler alert, penalty box (and file-based) version. # I m p o r t s import os, sys sys.path.append(os.path.join(os.environ['HOME'], 'kloshe-nanitch')) from lazy_crawler_check import CLUSTERS # F u n c t i o n s def getdict(fn): ret = {} with...
UTF-8
Python
false
false
988
80
format-alert-f
74
0.543522
0.532389
0
43
21.976744
68
LITianpei999/HKU-MLB
2,370,821,986,490
dfba2859f516561f174fb2e881e2b03cc99fd92f
ee1e0af1398e1087d002fa3447728dcf1c4a4bfc
/MLB-GroupWork 12/Text data Extractor/path_txt.py
b098305ddffd585fdaef358e86a477e63dd63d56
[]
no_license
https://github.com/LITianpei999/HKU-MLB
0bddd92d64a53ba7cf884910d7afd472bfa7616e
2211631891b55dc5ffef3232f159945739c7843e
refs/heads/main
2023-01-24T02:12:44.679325
2020-11-29T11:57:24
2020-11-29T11:57:24
316,936,141
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import traceback class PathError(Exception): def __init__(self, message, code): self.message = "PathError: " + message self.code = code def check_path(path): """ Check path. :param path: <str> Input path. :return: <str> path """ if not os.pat...
UTF-8
Python
false
false
1,969
py
10
path_txt.py
6
0.535805
0.527679
0
77
23.597403
75
DataDog/dd-agent
15,616,501,110,935
2769e93a05bbde0e73ffdc3d85c20736d267ca10
8d585fa3b2419d9b993be2f2652e448cfeedc8b2
/tests/core/test_watchdog.py
1777d637e2302de282ba97cc27e7263f45855e40
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
https://github.com/DataDog/dd-agent
bd4ef0edb234293b51d30894a529ce94b37060f8
16fa4ec9ae11ca0adfffbd260c5b4899dc73509f
refs/heads/master
2023-08-16T09:52:21.816487
2023-07-11T15:37:34
2023-07-11T15:37:34
1,210,071
1,227
991
NOASSERTION
false
2023-06-28T12:20:19
2010-12-31T03:02:47
2023-06-26T00:38:26
2023-06-28T12:20:19
44,713
1,287
854
191
Python
false
false
# stdlib from contextlib import contextmanager from random import random, randrange import os import subprocess import sys import time import unittest import urllib as url # 3p from mock import patch from nose.plugins.attrib import attr # project # needed because of the subprocess calls sys.path.append(os.getcwd()) f...
UTF-8
Python
false
false
5,903
py
185
test_watchdog.py
145
0.579705
0.568863
0
206
27.65534
99
MonoS/MonoS-VS-Func
13,700,945,710,204
67fe5f1ca9feb5e945223e0a365ad403c1ecf87f
c51222c37dd1a7fc46f6f6d6cb63fd0b27623dc6
/MFunc.py
0b6a4e8658f3914a52702ab31ff8740e8e444a9f
[]
no_license
https://github.com/MonoS/MonoS-VS-Func
db9b8059dfb69f9728a92d479cd3d23fae4dc97d
6472770a84e0e7d37b27eb529fbaf9d3b9cdf4cf
refs/heads/master
2021-01-17T07:24:33.280890
2016-06-20T17:36:51
2016-06-20T17:36:51
31,260,763
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import vapoursynth as vs import havsfunc as has import nnedi3_resample as res import os.path def WriteVecs(vecs, prefix): core = vs.get_core() w = vecs[0].get_frame(0).width v = core.std.StackVertical([core.std.CropAbs(vec, width=w, height=1) for vec in vecs]) log = open(prefix + ".len", "w") log.write(repr...
UTF-8
Python
false
false
6,812
py
1
MFunc.py
1
0.703758
0.673664
0
209
31.593301
303
markphuong/phylogenetics.targetcapture.pilot
5,961,414,649,563
6368b4d3cbd3be60adb56375a11de3a22dd99ce9
c26b3faec3e4fc89cc74e7f255491bbc5d402d1d
/1.5capsAssemble/mapping.py
0f69a5a7d5e2e7268d35d1af4e8bbb835c9fd3fa
[]
no_license
https://github.com/markphuong/phylogenetics.targetcapture.pilot
2518586f99f90e1f023798b3837f30dd025ae333
30b42c0fcb067407d50ee6e0d44c175e27525bdf
refs/heads/master
2021-07-19T06:38:52.613520
2017-10-27T20:14:16
2017-10-27T20:14:16
108,591,118
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python #REQUIRES: novoalign and samtools #REQUIRES: a map file, with first column as sample ID, and second file as which fasta it goes to. The reason you have different fastas for different samples is because of divergent mtDNA genomes #elements in the map file are separated by a tab #This script align...
UTF-8
Python
false
false
3,514
py
25
mapping.py
25
0.730222
0.713717
0
77
44.545455
196
pombredanne/zope
10,101,763,089,238
5c4777ec71ce1d93237d3cd6271b367942e0a765
153ecce57c94724d2fb16712c216fb15adef0bc4
/zope.kgs/tags/1.0.1/src/zope/kgs/template.py
abc7af7049e18154c7d5a9c6cfbd4eb30aeef003
[]
no_license
https://github.com/pombredanne/zope
10572830ba01cbfbad08b4e31451acc9c0653b39
c53f5dc4321d5a392ede428ed8d4ecf090aab8d2
refs/heads/master
2018-03-12T10:53:50.618672
2012-11-20T21:47:22
2012-11-20T21:47:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
############################################################################## # # Copyright (c) 2007 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SO...
UTF-8
Python
false
false
2,908
py
13,605
template.py
6,145
0.575309
0.573246
0
81
34.901235
78
camlee/power-meter
1,984,274,894,045
f145d39be8b958be73968e7f40e4fcab9db99f55
78b961adcc7f2cc8c1e95a88a46220c94c1de85d
/esp32-micropython/server/sensor.py
04cb9ea2d5385a88456e76c2e53e6d4a98481303
[]
no_license
https://github.com/camlee/power-meter
3b685ca7df26c774c8e946271a89b82d75c0b145
4954198e863de30d32af927da2cec6767e3681f9
refs/heads/master
2022-12-24T23:32:20.400866
2021-07-12T21:41:57
2021-07-12T21:41:57
144,101,312
4
1
null
false
2022-12-10T13:59:48
2018-08-09T04:37:09
2022-12-03T20:16:05
2022-12-10T13:59:48
9,811
3
0
17
Python
false
false
import os import time import json import machine from _thread import start_new_thread from ads1x15 import ADS1115 from util import epoch_time from logger import log_exception def average_excluding_outliers(values): values.sort() values = values[2:-2] return sum(values) / len(values) def me...
UTF-8
Python
false
false
17,649
py
30
sensor.py
13
0.524959
0.511757
0
470
35.555319
129
hungs/tslearn
369,367,230,921
6fcc5e0614ffd317778869825de4924e82185069
ad67801ee787f58d83d71de03d0fc5ea9b05d64a
/setup.py
4218fc9b00379aa60fd2adabbc8ae6c44590bc14
[]
no_license
https://github.com/hungs/tslearn
a844df97c6aa23c149cfb0072c876f3b89a1c7b2
061082e00614fb763f49992d434d3d77069c6982
refs/heads/master
2021-01-23T12:26:37.915209
2017-05-24T14:28:40
2017-05-24T14:28:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup from Cython.Build import cythonize import numpy setup( name="tslearn", description="A machine learning toolkit dedicated to time-series data", ext_modules=cythonize(["tslearn/cydtw.pyx", "tslearn/cylrdtw.pyx", "tslearn/cygak.pyx"]), include_dirs=[numpy.get_include()], i...
UTF-8
Python
false
false
532
py
15
setup.py
7
0.704887
0.697368
0
15
34.533333
93
kushalwaghmare/DataModel
8,933,532,003,647
80e981793315d7e7b01ae120d435f5639338ce6d
26f47e2ab24219d5cc1791ca39bc76fe921ace99
/Regression2.py
0e0b1fed6ea6ed67e76b5f7b62673ffb360b931c
[]
no_license
https://github.com/kushalwaghmare/DataModel
25b921041edb25a1a973178f6b4356757df3d7f7
4c4db880fb9847196d90bd6e329312fc6fd4dd1d
refs/heads/master
2022-04-25T14:16:13.638283
2020-04-28T11:40:21
2020-04-28T11:40:21
259,618,892
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.metrics import r2_score import statsmodels.api as sm data = pd.read_csv(r'\data\Sample_Book1.csv', encoding = "utf8") #Print Data Head print (data.head()) #Visualize data plt.figure(figsiz...
UTF-8
Python
false
false
1,264
py
2
Regression2.py
1
0.630538
0.613133
0
69
16.318841
64
Kyle1668/Data-Structures-and-Algorithms
5,007,931,867,972
7e378272fc986132e2152556cc65b9ec54fe8c87
1bfe574843d6ca9fdda4db3822e49407e49e5d95
/data structures/stack/test_stack.py
6fbe726e2b3c8eac3d2be5466a168cf1d8382f7d
[]
no_license
https://github.com/Kyle1668/Data-Structures-and-Algorithms
360cc2b4b7a15039ac5df66d09b0e54c9c4fc21e
a406f806898f369160d61b5aaf849a374fe4a38f
refs/heads/master
2021-01-21T14:48:45.225086
2018-11-29T22:05:16
2018-11-29T22:05:16
95,336,302
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .stack import Stack def test_push(): test_stack = Stack() test_stack.push(1668) assert test_stack.top.data == 1668 assert test_stack.length == 1 def test_pop(): test_stack = Stack() test_stack.push(1668) test_stack.pop() assert test_stack.length == 0 assert test_stack.top ...
UTF-8
Python
false
false
529
py
18
test_stack.py
17
0.627599
0.567108
0
28
17.892857
41
AdamZhouSE/pythonHomework
13,872,744,383,629
6ff54b6eb66ff3afec4eabbce4560753736f2ea9
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2417/48025/310916.py
04cb29026dfb9c46119d565118584c2d7a2e44c0
[]
no_license
https://github.com/AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
try: s='' while(True): s+=input() except EOFError: pass if s=='12,5,7,23' or s=='1,3,5,7,9' or s=='29,6,10': print(True) elif s=='5,4,3,2,1': print(True) elif s=='3,6': print(False) else: print(s)
UTF-8
Python
false
false
241
py
45,079
310916.py
43,489
0.485477
0.390041
0
15
15.133333
52
estanislaogoya/tp-final-itba
1,202,590,883,911
36c4fc5c9fa52e241d7317957af2947fbb8ecac0
23e3b54f55fe2c20e7497caac535ee9e8354d78e
/src/features/featEng.py
4760aa3271e16dfd7fa68d5e1bfe6a5ec924f208
[]
no_license
https://github.com/estanislaogoya/tp-final-itba
2520b270d95ad1088d427c8e98c0e66768b5507f
43b65f5ba5da5b7c05247b2e551be8e59fbd021b
refs/heads/master
2023-06-18T22:16:27.269091
2021-07-22T22:32:40
2021-07-22T22:32:40
263,178,122
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split QUOTE_DF = [] # As per Stock price predictions input variables for backpropagation """ - current stock price − the absolute variation of the price in relation to previous day. − direction of variation, − direction of variation ...
UTF-8
Python
false
false
3,394
py
15
featEng.py
7
0.583629
0.528664
0
87
37.896552
70
aguinaldolorandi/Python_exercicios_oficial
18,021,682,781,217
5448d61dd9ed85b1c6bb689c398e75a4bc04b181
b6feb419b2c6c454cd1f0502a801861fc5363187
/Lista de Exercícios nº 02 Python Oficial/Ex.12-lista2.py
a8f7b2b2eb23598ef6c45d06bd6413c4eac06b59
[]
no_license
https://github.com/aguinaldolorandi/Python_exercicios_oficial
1ad05c380e08a12c8e0d3f5650cff6bef6e881b4
3a024631ebb70a6fea022cffd8a566a717cdbd9d
refs/heads/master
2020-06-03T05:56:50.335561
2019-06-13T13:32:20
2019-06-13T13:32:20
191,469,833
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#EXERCÍCIO Nº 12 - LISTA 02 - ESTRUTURA DE DECISÃO print('Folha de pagamento') print('##################') valor_hora=float(input('Insira o valor da hora trabalhada: R$ ')) horas_trabalhada=float(input('Insira a quantidade de horas trabalhadas no mês: ')) salário_bruto=valor_hora*horas_trabalhada #Tabela do I...
UTF-8
Python
false
false
1,380
py
162
Ex.12-lista2.py
159
0.610322
0.571429
0
42
29.833333
84
watson6/cod
10,290,741,666,731
fa72493c9753c6cb24082d8623edd82590994553
233435731051af0cd89816df865120552f4a25c5
/project/views.py
7d65ad9f46fe2735c43d35d196df365a9940d677
[]
no_license
https://github.com/watson6/cod
49708ae31d50e4a7ea917d7cb4fd29025972d80a
b57bd3c1da2f4d3ea6d6b8940552dd31e236d9fb
refs/heads/master
2022-12-10T18:23:08.521489
2020-09-14T08:35:55
2020-09-14T08:35:55
295,577,165
1
1
null
true
2020-09-15T01:05:08
2020-09-15T01:05:07
2020-09-15T00:59:29
2020-09-14T08:36:03
59
0
0
0
null
false
false
from rest_framework.viewsets import ModelViewSet from project.serializers import ProjectSerializer, Project # Create your views here. class ProjectViewSet(ModelViewSet): queryset = Project.objects.filter(parent=None) serializer_class = ProjectSerializer
UTF-8
Python
false
false
266
py
70
views.py
66
0.808271
0.808271
0
10
25.6
58
chamhoo/FM-FFM
9,655,086,518,267
d2d5d74a5e0658832fbfb69d1971bfef44211748
c177659694205f18df8bf63eda35856a7f131a85
/auto_tuning.py
e35c6a2b7f604eba2e87d32393e74e0239160e11
[ "MIT" ]
permissive
https://github.com/chamhoo/FM-FFM
475e40efe9745779deed86070babebb75fd41e2c
adae51569d1647332896b9bb321fb7b5967980db
refs/heads/master
2021-10-24T23:44:08.134230
2019-03-30T05:13:03
2019-03-30T05:13:03
167,799,136
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import numpy as np import matplotlib.pyplot as plt from CTR import * from hyperopt import fmin, tpe, hp, STATUS_OK, Trials import warnings warnings.filterwarnings('ignore') class AutoTuning(CTR): def cv_score(self, params): param = {} for key, value in self.model_params.items(): ...
UTF-8
Python
false
false
3,231
py
10
auto_tuning.py
7
0.58372
0.575673
0
82
38.402439
104
mdqarshad/arshadWeb.github.io
9,792,525,482,064
fd8ed0ec3dcab8df71c4d2dddb677b9d75974b2f
8202bf99aa3cc504e667996c935aae4dcd2d8e50
/date.py
de3e8f998b9b159d15e22cbd52a16b5c60b9a36b
[]
no_license
https://github.com/mdqarshad/arshadWeb.github.io
2be65f48103bbc988b2d7462f02df3848dd931da
e8822d076a386a688d717f29de1bfeb6db87d8e5
refs/heads/master
2021-07-11T05:47:07.215719
2021-03-08T13:55:54
2021-03-08T13:55:54
236,685,288
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
day=int(input("enter day")) mon=int(input("enter day")) year=int(input("enter day")) print("the examination will start in ",day,"/",mon,"/",year)
UTF-8
Python
false
false
156
py
8
date.py
6
0.628205
0.628205
0
7
20.285714
60
noorulameenkm/DataStructuresAlgorithms
14,542,759,314,319
8ad9740c72cbfff2dbd65f2198d65fadcf178b72
e5504d8c4880993b82d5583a11c5cc4623e0eac2
/LinkedList/fractionalNode.py
e9f8717b8deba79e8a9a4e978cffe195a10a708c
[]
no_license
https://github.com/noorulameenkm/DataStructuresAlgorithms
e5f87f426fc444d18f830e48569d2a7a50f5d7e0
7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0
refs/heads/master
2023-06-08T19:29:42.507761
2023-05-28T16:20:19
2023-05-28T16:20:19
219,270,731
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Way of solving this problem:- * i = 0 * i % k == 0 (means jumped k nodes, that's why it is starting from i = 0) * in the above case assign fractional node to head * 2nd condition will be true in the case of i = 0 as well that means atleast one node is there so we have to assign it ...
UTF-8
Python
false
false
1,525
py
683
fractionalNode.py
679
0.584918
0.574426
0
57
25.754386
77
biobakery/hmp2_workflows
3,908,420,243,256
546d753a249c9d0411b94d004911178815816478
13e07d77985c093b4f39a482320ecf4366f66d1d
/hmp2_workflows/scripts/depth_first_dcc_delete.py
b0706199e89493f8b4e4b11423c1ba8e7e2fdb1b
[]
no_license
https://github.com/biobakery/hmp2_workflows
c1bf715cfc92873df38c84a8e450e27f43072e80
ef27c580456632ac2d334dded5653f24b0f04569
refs/heads/master
2022-06-24T12:40:45.709962
2019-01-23T00:14:54
2019-01-23T00:14:54
229,788,243
0
0
null
false
2022-06-21T23:58:04
2019-12-23T16:35:17
2019-12-23T16:38:57
2022-06-21T23:58:02
441
0
0
2
Python
false
false
# -*- coding: utf-8 -*- """ depth_first_dcc_delete.py ~~~~~~~~~~~~~~~~~~~~~~~~~ Does a depth-first traversal/delete of the document tree out of the OSDF based off an OQL query to provide the starting point for the delete. Example OQL queries are: - '"abundance_matrix"[node_type] && "wgs_community"[meta.matrix_typ...
UTF-8
Python
false
false
10,450
py
45
depth_first_dcc_delete.py
40
0.636364
0.632823
0
274
37.138686
138
Infiziert90/discord_feedbot
14,096,082,704,729
be2f6c9c9135166f0daa05e0c03eb694d7e8fbd3
676d5c1c4fc098e05a1981ae839d9cacb55604e7
/feed2discord.py
6987cb4fbe8ecf3ee123af6a033f49d54cc6f992
[ "MIT" ]
permissive
https://github.com/Infiziert90/discord_feedbot
d6a9d473babc371e7ae421bed3cdcdd8abef1f91
6233781706a9a6452e468df79e158bf8b8e5d8ab
refs/heads/master
2023-08-20T20:37:32.797440
2019-09-19T08:46:13
2019-09-19T08:46:13
128,564,044
2
0
NOASSERTION
true
2020-06-20T04:06:21
2018-04-07T20:07:58
2020-04-24T08:38:18
2019-09-19T08:46:23
317
2
0
1
Python
false
false
#!/usr/bin/env python3 # Copyright (c) 2016-2017 Eric Eisenhart # This software is released under an MIT-style license. # See LICENSE.md for full details. import asyncio import logging import os import random import re import sqlite3 import sys import time import warnings import aiohttp import discord import feedparse...
UTF-8
Python
false
false
26,915
py
2
feed2discord.py
1
0.558053
0.554784
0
646
40.664087
119
jasonliuxyz/homework-python
523,986,028,594
fdd6a6cf08504c70a8b65d87f15f242e3f338514
e8931042cf9a44d87df8505785a1d95250c961ec
/cookbook/charpter1/iterator02.py
aff0fc84b33f65de5348d387d248ad45b580d7aa
[]
no_license
https://github.com/jasonliuxyz/homework-python
df518eae576839a1560a907cd9770a0c95d18f2a
3cde18e0cb3f6b7a6e3775492310dc298453106f
refs/heads/master
2023-01-06T11:18:24.934855
2020-11-06T09:15:03
2020-11-06T09:15:03
273,636,458
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- encoding: utf-8 -*- ''' 迭代器: 1、可迭代对象包含迭代器,所以迭代器中实现了__iter__方法 2、迭代器比可迭代对象要对实现__next__方法 3、iter()函数将一个可迭代对象转成迭代器对象 迭代器作用: 迭代器是实现了迭代器协议的数据结构,通过迭代器来屏蔽底层的复杂逻辑 参考:https://drivingc.com/p/5c4c210d4b0f2b793a5fe2e7 ''' from collections.abc import Iterable from collections.abc import Iterator from collections.abc import ...
UTF-8
Python
false
false
1,131
py
55
iterator02.py
53
0.675297
0.640777
0
46
19.130435
50
mwarrior92/skylines
16,252,156,268,502
9acc26c7e1658a1401d76103b7979243e373f9bd
2aa7bf4925f2c859280a8bad48166e6d34f7e0af
/scripts/deprecated/dns_redirection_check.py
c97d1ceeed72d3e20105f235d7cbeb30123c5d96
[]
no_license
https://github.com/mwarrior92/skylines
f36edacd16dafaa8af3fad668cd4540ff161abd9
350df2e41dfa55ac3acbaa387407a859a647a1ce
refs/heads/master
2021-06-10T14:47:08.805631
2019-10-20T15:06:44
2019-10-20T15:06:44
113,765,840
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from easiest.mms import collector, dispatcher, mdo from easiest import cdo from easiest.helpers import format_dirpath, mydir import csv import json from pymongo import MongoClient import time mclient = MongoClient() db = mclient.skyline coll = db.dns_redirection_check topdir = format_dirpath(mydir()+"../") label = '...
UTF-8
Python
false
false
4,521
py
81
dns_redirection_check.py
40
0.607388
0.600088
0
137
31.992701
111
egandone/bitesofpy
17,875,653,905,052
9dd6c4e0627e8d5ff31474ba3113f312841329b6
faea233c3a52237731729563e03c5e90fc3c2dc2
/229/best_programming_books.py
38438f674f86fb9628ff2e31815b6ea413ebb927
[]
no_license
https://github.com/egandone/bitesofpy
088ef219e8db0de4eae066852575aa70e4a6ba5a
6645f06acae6251db30122df8aa8c0ec5dab5af4
refs/heads/master
2022-12-12T10:01:01.239323
2020-11-21T22:22:26
2020-11-21T22:22:26
192,716,481
0
0
null
false
2022-12-08T03:14:11
2019-06-19T11:08:57
2020-11-21T22:22:34
2022-12-08T03:14:09
716
0
0
17
Python
false
false
import os import re from pathlib import Path from urllib.request import urlretrieve import dataclasses from bs4 import BeautifulSoup url = ("https://bites-data.s3.us-east-2.amazonaws.com/" "best-programming-books.html") tmp = Path(os.getenv('TMP', "/tmp")) html_file = tmp / "books.html" if not ht...
UTF-8
Python
false
false
4,130
py
108
best_programming_books.py
100
0.605085
0.589104
0
125
31.04
104
hyliang96/Guided-Denoise
10,909,216,937,562
00b3189897422e5dc32d796e48436636792354f9
4e1df0bb0769986b6ee1367c2cfd72430770f65b
/GD_train/print_utlis.py
1a3d2e73516b5f21e413fcf7161634770fdd47cc
[]
no_license
https://github.com/hyliang96/Guided-Denoise
e75f6c0b982f6f0afc64b266d41e8997c1e92258
c611dc7229261e1df9a4109cc6e013aace7d2fd6
refs/heads/master
2020-05-16T10:11:12.652450
2019-06-10T08:45:37
2019-06-10T08:45:37
182,975,021
0
0
null
true
2019-04-23T08:55:55
2019-04-23T08:55:54
2019-04-22T13:56:44
2018-03-27T11:39:28
87,639
0
0
0
null
false
false
#! /usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function import sys import time # 支持在python2、3下调用本文件 class Log(object): # 用例 # 从log = Log('test_data')开始,print会向文件'test_data'与屏幕输出(双向输出) # 包括: # - 凡print函数皆双向输出 # - 此处代码中的print # - 被调用的函数中有print # - 被import的文件中有print # - 支持输出到文...
UTF-8
Python
false
false
3,432
py
7
print_utlis.py
3
0.507231
0.494577
0
110
24.136364
89
ipums/mendeley-python-sdk
8,100,308,338,300
b3fa5cb8e112a1992486bbfc56e216742983a270
2de5fd54fbf82ce012c6496b1495412b06b8516b
/mendeley/resources/base_documents.py
99fa0111ff56f2c4e04609565b223ab3d78d3181
[ "Apache-2.0" ]
permissive
https://github.com/ipums/mendeley-python-sdk
0bc69ab7182ca82645397b067beaef647b40f31a
0df41fbdafd164d27c42a101f2ed0bba91f3bdfb
refs/heads/master
2022-12-18T01:12:25.000719
2022-12-09T20:19:50
2022-12-09T20:19:50
94,386,874
1
1
Apache-2.0
true
2022-12-09T20:19:57
2017-06-15T01:25:11
2022-11-08T23:45:53
2022-12-09T20:19:50
445
1
1
0
Python
false
false
from mendeley.resources.base import ListResource, GetByIdResource class DocumentsBase(GetByIdResource, ListResource): def __init__(self, session, group_id): self.session = session self.group_id = group_id def get(self, id, view=None): return super(DocumentsBase, self).get(id, view=vie...
UTF-8
Python
false
false
2,140
py
88
base_documents.py
80
0.428037
0.428037
0
45
46.555556
160
szeamer/leafy-colored-website
6,124,623,387,515
d8c208ed5878ecb0d50163c25ef9341d477ecc13
f7dff8d8d5210aaabba9556a752e20a5b17c087a
/reading.py
11ec6d7ab44069d6831f6e3a7051c40a89dc63ab
[]
no_license
https://github.com/szeamer/leafy-colored-website
f22afccc840eb56e1ce136db695d67305f1f40e9
39c930cb687c85f789220afe17dac06a8ac79141
refs/heads/master
2020-03-23T23:09:42.994451
2018-07-24T22:34:47
2018-07-24T22:34:47
142,093,144
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def readFile(file): with open(file, 'r') as f: lines = f.readlines() print lines
UTF-8
Python
false
false
97
py
9
reading.py
1
0.57732
0.57732
0
4
23.25
30
DefinitelyNotBen/pyBlackjack
12,369,505,831,320
3bfd182a87c7d5eb508daf605f0002553e08c8b5
43398e11e3f4bfab8e8147bd11cfd3452794b248
/main.py
1b874bf7c86046f0830b50b2588e7b566a5549fe
[]
no_license
https://github.com/DefinitelyNotBen/pyBlackjack
c65292d0b43e80565207bda36c3c598a6ee03f82
4bb670a797dd535c1f652a1b84d85854790cc44b
refs/heads/main
2022-12-29T03:28:24.911204
2020-10-13T13:49:00
2020-10-13T13:49:00
303,716,591
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import deck import player import card import board import time # the time package has been imported into this program and used to create short time delays # these delays help to stop avoid disorientating the player by running through steps faster than they can process them def main(): # first there ...
UTF-8
Python
false
false
7,891
py
6
main.py
5
0.498289
0.494487
0
242
30.590909
118
edgar-code-repository/django_redis_caching
1,099,511,644,291
c6e067bb695b65f252f1d40ecad92900cad19d22
5b44cdefc88a8a224a61009ce956ffbc073bdb18
/main_app/views_continents.py
66ef278d7c360e62421139c6a93c67e2eec3b8d4
[]
no_license
https://github.com/edgar-code-repository/django_redis_caching
4c2a259c2a585be9dd4240aa0016e0490d8a4cec
e1d1097c6f408463bd51b4904f8703f502fb48cb
refs/heads/master
2020-05-25T17:44:28.559042
2019-08-03T03:10:41
2019-08-03T03:10:41
187,914,587
0
0
null
false
2019-11-02T17:17:35
2019-05-21T21:15:07
2019-08-03T03:12:04
2019-11-02T17:17:34
911
0
0
1
HTML
false
false
from django.core.cache import cache from django.core.cache.backends.base import DEFAULT_TIMEOUT from django.conf import settings from django.shortcuts import render from django.views.generic import ListView from django.views.generic import CreateView from django.views.generic import UpdateView from django.views.generic...
UTF-8
Python
false
false
2,914
py
8
views_continents.py
2
0.69046
0.69046
0
82
34.536585
141
walfire/simuproject
7,584,912,260,912
84086554543b19cc06280254fec94fbf966a29b8
c3e88e4d8554c283b99b463fd05fb49eba4ca8c7
/main.py
f1e892e60724acd25c886374c24d8669737aea2a
[]
no_license
https://github.com/walfire/simuproject
35f25a446f67e9d4067b2d94a4be0a5c4400460a
f8c12eff787705018967e0dada315d005a4762ba
refs/heads/master
2020-04-02T02:20:13.473469
2018-12-16T15:20:06
2018-12-16T15:20:06
153,904,050
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#### SIMU PROJECT #### ###Libraries### import matplotlib.pyplot as plt import numpy as np import networkx as nx import numpy.random as rng import pandas as pd import random #### CLASSES #### #### NETWORK STRUCTURE #### n = 500 keys=["complex" , "friendly" , "meaning","polish" , "multi", "action", "difficulty", "ab...
UTF-8
Python
false
false
24,063
py
2
main.py
1
0.516062
0.507044
0
720
32.422222
188
deepchem/deepchem
6,674,379,206,795
f19aeede65cd74500cefb8fc11411d97b4cbe79d
39b021eabbb8e3be1734cf92fd641965a796b0eb
/examples/delaney/delaney_textcnn.py
8d0d7740b45e0c586af53daa3bb6aa2aae09bd48
[ "MIT" ]
permissive
https://github.com/deepchem/deepchem
066cbf42316b2f6bec0166727e0264a485d5266f
ee6e67ebcf7bf04259cf13aff6388e2b791fea3d
refs/heads/master
2023-09-02T01:32:17.860111
2023-08-31T18:49:00
2023-08-31T18:49:00
43,098,215
4,876
1,905
MIT
false
2023-09-14T19:10:44
2015-09-24T23:20:28
2023-09-14T15:53:05
2023-09-14T19:10:43
517,986
4,582
1,517
508
Python
false
false
""" Script that trains textCNN models on delaney dataset. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals import numpy as np np.random.seed(123) import tensorflow as tf tf.random.set_seed(123) import deepchem as dc # Load Delaney dataset delaney_tasks,...
UTF-8
Python
false
false
1,177
py
794
delaney_textcnn.py
595
0.743415
0.731521
0
47
24.042553
73
jwestfromtheeast/CodingChallenges
16,286,516,010,352
a30750d7e50aeabebf1456ecb7f2abaf7f26bfd9
9c1def5ace798f136ca4c466e193516279aa514c
/python/medium/130SurroundedRegions.py
3503c5e0354f900cec599a1c15abad3c33ef718e
[]
no_license
https://github.com/jwestfromtheeast/CodingChallenges
a6e5ab043cee2609b7ea4516972066cf3ab1a92a
e75e4e4cccf69368ec2d74785cc156084d7fc3cd
refs/heads/master
2021-07-13T05:49:31.558977
2020-06-26T22:35:49
2020-06-26T22:35:49
155,331,558
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import deque class Solution: # Time Complexity: O(mn) time, O(mn) space # Logic: Here, we want to use a dfs or bfs for traversal. Since a recursive dfs will potentially stack overflow, # we will use a bfs by using a queue. This problem becomes simple with that idea in mind, and when follo...
UTF-8
Python
false
false
2,100
py
95
130SurroundedRegions.py
94
0.551429
0.544762
0
46
44.652174
153
chuheng001/FedScale
13,640,816,134,186
370b0b458c16bcd4f2efb54d532564e5f1d2570f
ec64d4d7f638b107ca89f280ae405211ad4821cf
/core/utils/speech.py
fb5ac3dd51a1c214a671cf9126c813349198e113
[ "Apache-2.0" ]
permissive
https://github.com/chuheng001/FedScale
5c9ecfeb147e616961d2bd68a0d6b25100348406
2fd30826fceab585250199c247c968b5808f5801
refs/heads/master
2023-08-07T11:09:40.606695
2021-09-25T20:06:39
2021-09-25T20:06:39
410,370,674
0
0
Apache-2.0
true
2021-09-25T20:03:16
2021-09-25T20:03:16
2021-09-25T06:10:31
2021-09-25T06:10:28
56,897
0
0
0
null
false
false
from __future__ import print_function import warnings import os import numpy as np import numba import librosa import csv CLASSES = ['up', 'two', 'sheila', 'zero', 'yes', 'five', 'one', 'happy', 'marvin', 'no', 'go', 'seven', 'eight', 'tree', 'stop', 'down', 'forward', 'learn', 'house', 'three', 'six', 'backward', 'do...
UTF-8
Python
false
false
5,078
py
36
speech.py
19
0.589602
0.587042
0
154
31.967532
295
horiid/netpro
9,148,280,367,678
fcb47b369fb21081ed476072868b360824d2d0fa
9955c86a1435c6d0975355e41c65b0a3631b8d21
/sniffer/sniff.py
baaa2687542f8e9044049010ce3aab5fd10adcf4
[]
no_license
https://github.com/horiid/netpro
e3ada2045847c0d012be22de5fe23bf166d5f5f7
cc2970a42553a2bd0a672a21e80d2705fb9d338b
refs/heads/master
2022-03-22T13:30:33.891932
2019-11-22T05:19:34
2019-11-22T05:19:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import subprocess import os import re def run_cmd(cmd): proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) while True: line = proc.stdout.readline() decoded = line.decode('utf-8') if line: if decoded == "successfully completed.\n": ...
UTF-8
Python
false
false
2,248
py
9
sniff.py
3
0.511121
0.495996
0
79
27.455696
94
annareithmeir/PlagiarismCheck_HiWi_Bioinformatik_SS19
19,241,453,498,305
2d521cef38badad22135b7f772eae156f9a8820d
d7428a18fa5c5416c3d773df6529b1c562705fe0
/codechecker/repos/1/collected_files/aa_props/ge82fuz.py
1a2f74cc28f45497556cff2360548cfd69fa3230
[]
no_license
https://github.com/annareithmeir/PlagiarismCheck_HiWi_Bioinformatik_SS19
d0b05a47f8d898d6351bb3c097c238780a39a19f
db80ed523d1fc6b1e07ec52c91e60595eae9a995
refs/heads/master
2022-01-07T01:30:10.556284
2019-07-02T11:09:27
2019-07-02T11:09:27
192,517,827
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
############## # Exercise 2.7 ############## def isCharged(aa): return isPositivelyCharged(aa) or isNegativelyCharged(aa) def isPositivelyCharged(aa): switcher = { 'A': False, 'R': True, 'N': False, 'D': False, 'C': False, 'Q': False, 'E': False, ...
UTF-8
Python
false
false
4,418
py
442
ge82fuz.py
418
0.352196
0.351743
0
233
17.965665
61
MananSoni42/NEC-hackathon
4,569,845,246,889
f03b0ad36f416615b4d737cfa6be82ea2839fd1e
ccc7edd018a9a376da1572f4f97ec0c81e0ed5c7
/helpers/route.py
6632b8cf8a4845452f27467364a033abb2149826
[]
no_license
https://github.com/MananSoni42/NEC-hackathon
98fdc779c8c713a255952cbcf04b4b14c2fbd1b2
9488f9f07d5ce0b900210ab7ff4ea6b9ed4661f9
refs/heads/master
2020-07-06T04:07:03.971006
2019-09-06T15:08:23
2019-09-06T15:08:23
202,885,852
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from pprint import pprint, pformat from copy import deepcopy get_bin = lambda x, n: format(x, "b").zfill(n) def remove_duplicates(seq): seen = set() seen_add = seen.add return [x for x in seq if not (x in seen or seen_add(x))] def get_nbrs(G, node, first=None, last=None): nbrs = sorted(list(G....
UTF-8
Python
false
false
6,468
py
28
route.py
8
0.562925
0.548856
0
199
31.502513
88
yuriy-logosha/geolocations
1,108,101,591,649
5ac1ac8ebce6c819a8d5fce4e84003ada6fcff13
56e385052dac79e4ca8a9c07b24abd3bcd1f9cb9
/geolocations.py
f6279af84fde3a631da788d851e3295dc5acd357
[]
no_license
https://github.com/yuriy-logosha/geolocations
bc0df914e15cd76728005e785624b9f3034934d6
78d637d4e2ea7bf0b21e17c1b6ef651f1a5537d5
refs/heads/master
2021-03-08T05:40:13.377785
2021-01-01T20:21:40
2021-01-01T20:21:40
246,321,980
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import time from logging.handlers import RotatingFileHandler import pymongo from urllib3.exceptions import NewConnectionError from utils import google_geocode, GoogleError G_KEY = 'AIzaSyCasbDiMWMftbKcSnFrez-SF-YCechHSLA' BETWEEN_ERRORS_TIMEOUT = 0.2 ITERATIONS_TIMEOUT = 60 BACKOFF_TIMEOUT = 30 * 60 C...
UTF-8
Python
false
false
3,825
py
2
geolocations.py
2
0.540915
0.525752
0
94
39.691489
112
Yoon-Haeng-Heo/Algorithm
11,252,814,338,218
63be12efa420e15d211695093ad045494fe93e4a
417455d4103c2147c27372778047513e9fa15ab7
/greedy/greedy1.py
419389fe8ac7b466e176d73a379cdd7f4c818629
[]
no_license
https://github.com/Yoon-Haeng-Heo/Algorithm
ada16d83fc204e13b7e35ab02c3ffd95da196dab
85d5bfbf55a5aaa5c36a65fe985ddf6baafa6f9f
refs/heads/master
2022-12-14T00:44:40.850195
2020-09-20T04:10:22
2020-09-20T04:10:22
293,536,566
0
0
null
false
2020-09-13T13:26:55
2020-09-07T13:31:02
2020-09-13T13:20:26
2020-09-13T13:26:55
14
0
0
1
Python
false
false
def solution(): n,m,k = map(int,input().split()) summ = 0 cnt= 0 arr = list(map(int,input().split())) arr.sort() a = arr[n-1] b = arr[n-2] #cnt는 큰 수가 더해지는 횟수 cnt = int(m/(k+1)) * k + (m % (k+1)) summ = cnt * a + (m-cnt) * b return summ print(solution())
UTF-8
Python
false
false
334
py
33
greedy1.py
26
0.455414
0.436306
0
15
19.066667
40
mverzeletti/URI
11,063,835,765,691
7069508394261bebeca8e506d9407aa117ba73d3
b24cc0d497613d70959691275db60926187863c4
/1012.py
6655d9a9246eb150c15441fd33a4a1e46be89c09
[]
no_license
https://github.com/mverzeletti/URI
e135acccbc94c84c0e820a6a00bad891350c9426
312452475e7dfb9a1ecb5fe81c4136d8aad79220
refs/heads/master
2023-04-29T11:49:15.802586
2021-05-12T00:25:16
2021-05-12T00:25:16
257,114,741
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- def main(): dados = str(input()) pi = 3.14159 dados = dados.split(' ') a = round(float(dados[0]), 2) b = round(float(dados[1]), 2) c = round(float(dados[2]), 2) triangulo = (a * c) / 2 circulo = pi * (c ** 2) trapezio = ((a + b) * c) / 2 quad...
UTF-8
Python
false
false
649
py
31
1012.py
30
0.506934
0.465331
0
24
25.125
49
ableinc/polysecrets
11,785,390,273,207
9ab7579a19fed5a7b9758c1ba56cb49375ab1429
516b36b6879971835d82f8f458b7161ba69dbcb8
/polysecrets/cli.py
52b67ad1e12f1f269f4b0fff1f50d117ec7fab10
[]
no_license
https://github.com/ableinc/polysecrets
c5a651b3506b6773361d12a6a11f8301b55ecef2
2ea970c1d0f312be6fbe67015df08f3964b8a6e2
refs/heads/master
2021-06-15T07:09:04.968009
2021-06-01T20:56:06
2021-06-01T20:56:06
190,068,478
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import click, sys from polysecrets.main import PolySecrets from polysecrets.version import __version__ _def_sec = 'HOXubh876Gv66v845345FTfhmd' def go(ctx, param, value): if not value or ctx.resilient_parsing: return click.echo(f'Secret: {PolySecrets(config).manual()}') ctx.exit() @click.command()...
UTF-8
Python
false
false
2,489
py
9
cli.py
6
0.574126
0.566493
0
50
48.78
250
zyp521/python
18,949,395,732,661
ffa7df227401b4b7abd176ecb9268e4384e17a0a
99df93222e25d262b212fe30f98fe0d7ee37b807
/数据分析/pandas_lx/分组练习.py
e8541ef9f3dc4e69a00db036558254e1d7939f37
[]
no_license
https://github.com/zyp521/python
7b1d22a574f53a56a46e8048af98c542a984bd31
bba75d3dda33d50c6ec5b0de55be918591d42e02
refs/heads/master
2023-04-09T19:08:41.944840
2021-04-13T01:13:34
2021-04-13T01:13:34
285,146,480
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd pd.set_option('display.max_column', None) out = pd.read_csv('./pandas_exercise/exercise_data/drinks.csv', sep=',') print(out) # 1.那个大陆(continent)平均消耗的啤酒(beer)更多 print('********************************************************') # for i in out.groupby(by='continent'): # print(i) # print(out.grou...
UTF-8
Python
false
false
1,185
py
336
分组练习.py
138
0.673176
0.668037
0
20
47.65
114
zhirsch/adventofcode
10,788,957,891,400
bef40db4a3a9befa29b9051a95423328f7208b3d
507a22549148cf2711976c2a50419da7bb85dc61
/2019/day06/day06.py
f73d6c1f3e87e5eeb33a5af8a08372cb707c9a74
[]
no_license
https://github.com/zhirsch/adventofcode
6427694687d6afac6fdee5aecfc61db0d576d3f9
9ea0a1556a2db031ea0e016347619b36c4f1af0b
refs/heads/master
2020-11-23T21:59:27.161534
2020-01-02T07:27:09
2020-01-02T07:28:09
227,838,629
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 import heapdict def parse(lines): edges = {} for line in (x.strip() for x in lines if x.strip()): a, b = line.split(')', 1) edges.setdefault(a, []).append(b) edges.setdefault(b, []).append(a) return edges def transfers(edges, src, dst): unvisited = heapdic...
UTF-8
Python
false
false
935
py
28
day06.py
28
0.547594
0.537968
0
41
21.804878
61
BraedenHopper99/MachineLearning
180,388,632,886
d20a97a8e597bc61f84f367ff43bac928fe36826
c0f386ac8f6f0e315441a02bf08185bd86e282f7
/SearchandRanking/Programs/searchengine.py
733105dcf4b1bafa58af7e26a1a58440fbc7439d
[]
no_license
https://github.com/BraedenHopper99/MachineLearning
cbae314bb56f99ef0f4940e815720b556d2e6700
78f8d3efcebce9a2413a3df46901b288fae4e32d
refs/heads/master
2017-09-11T08:10:44.575658
2017-07-13T15:39:56
2017-07-13T15:39:56
96,161,365
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sqlite3 con = sqlite3.connect(":memory:") con.isolation_level = None cur = con.cursor() class crawler: #Initialize the crawlwer with name of database def __init__(self,dbname): self.con=sqlite.connect(dbname) def __del__(self): self.con.close() def dbcommit(self): self.con.commit() ...
UTF-8
Python
false
false
7,100
py
3
searchengine.py
2
0.672113
0.662254
0
263
25.86692
125
asphalt-framework/asphalt-filewatcher
1,494,648,651,123
c37dbe2b998300f131a04cb470d951d3b638e078
57f22cc7999c0aab8b58f7b59d6aba4cc3830b0e
/setup.py
ebf90fc970c424dc2ce133406d07eb63621f228f
[ "Apache-2.0" ]
permissive
https://github.com/asphalt-framework/asphalt-filewatcher
a228b42aaf6d8e326a1d0ce5b5b7c60cb54bf43a
137926356fb8e4cd0f369fc0bc787c4ecbd28b57
refs/heads/master
2021-07-05T03:14:42.394069
2016-12-24T08:52:49
2016-12-24T08:52:49
58,621,518
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import platform from pathlib import Path from setuptools import setup cffi_modules = [] if platform.system() == 'Linux': cffi_modules = ['asphalt/filewatcher/watchers/inotify_build.py:ffi'] elif platform.system() == 'Windows': cffi_modules = ['asphalt/filewatcher/watchers/windows_build.py:ffi'] setup( na...
UTF-8
Python
false
false
2,097
py
18
setup.py
11
0.632634
0.623092
0
58
35.137931
83
jandrejk/oeawai_challenge
9,998,683,876,695
0a19abaee3205c83d0d506f4edb950790def18c8
2586c03ce61f1c1f5ae3083ab35f7ce19baa8a8c
/train_utils.py
d1f55668406bfc607573ff45f0cd979bab378d9c
[]
no_license
https://github.com/jandrejk/oeawai_challenge
85b2cbe6f59e524b0e3c93127369d365a3f275f3
9fcf70fee45002295eeda8c82e0da2592dd47d1f
refs/heads/master
2020-07-01T19:10:41.783349
2019-08-17T06:33:24
2019-08-17T06:33:24
201,268,244
0
0
null
true
2019-08-08T13:48:48
2019-08-08T13:48:48
2019-08-08T13:37:42
2019-08-08T13:37:41
5,333
0
0
0
null
false
false
import torch import numpy as np import torch.nn.functional as F import time import csv from sklearn.metrics import f1_score import pickle def output_to_class(output): """ takes the output from a nn feeded with a batch and returns the predicted classes """ classes = [] for sample in output: ...
UTF-8
Python
false
false
4,024
py
14
train_utils.py
9
0.590457
0.581759
0
116
33.698276
176
yuyaction/SIRmodel
17,918,603,590,141
79d65ee4544460f2c4ff63a2821a10b1f93566c6
32616a9edea490c7a685b4648d5e20a18557289b
/main.py
3d46c72429df03d7ab6b992880c02878513a466c
[]
no_license
https://github.com/yuyaction/SIRmodel
7fa8841bb146ea30b3788f001028edd1b641c95c
ac9dfc892b54c5a7b473d28fd4adfe63e2811e9a
refs/heads/master
2022-07-17T14:10:27.359613
2020-05-10T10:09:20
2020-05-10T10:09:20
262,759,716
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding: UTF-8 import math import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt def eq_S(S,I): return -beta*S*I def eq_I(S,I): return beta*S*I-gamma*I def eq_R(I): return gamma*I def calc_k1(p,func,h): return h*func(p) def calc_k2(p,q,func,h): return h*func...
UTF-8
Python
false
false
1,488
py
4
main.py
2
0.586022
0.512097
0
70
20.242857
53
emgasu/TareaNoel
16,140,487,099,829
57dc2211c1f4fd94072525bab88c23c93233e540
f6cb90d3e7d2cbaa919796cbe4ab7992b59a7657
/EjercicioPuntoInflexion.py
5fd8b540c75ec332c33c0abf97b113416f20e770
[]
no_license
https://github.com/emgasu/TareaNoel
eadda842dda9778d18d1d8ea60f7463a509f293e
9e9f2accff52eb5a3ea5284a4fcbb206c5bac5f6
refs/heads/main
2022-12-27T01:46:24.535865
2020-10-17T05:08:43
2020-10-17T05:08:43
304,801,542
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Ejercicio punto de inflexion import numpy as np import matplotlib.pyplot as plt def funcion(x): return ((x*x*x*x)/12)-((x*x*x)/2)+(x*x)+10 def derivada1(x): return ((x*x*x)/3)-((3(x*x))/2)+(2*x) def derivada2(x): return (x*x) - 3*x +2 #Paso I. f"(x) se iguala a 0 a fin de calcular las posiciones candi...
UTF-8
Python
false
false
1,480
py
3
EjercicioPuntoInflexion.py
3
0.579838
0.510149
0
54
25.37037
77
jj-a/basicPython
5,978,594,526,839
e2a1d8aad1715cdcc625b36ad951a83280549455
f4fe0733d433cb650869cc502b58a9a81d657306
/section11/04-datainfo.py
1eb492482683fba2360f4127ea74ea4537ed9f2c
[]
no_license
https://github.com/jj-a/basicPython
c14bd1331bba1e0b3f2eee40053cbf15aab83dd2
50758d6faa95409d6a1d3f3cc183a142cc1a6312
refs/heads/master
2020-04-26T16:30:59.322970
2019-03-13T09:14:10
2019-03-13T09:14:10
173,681,661
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# section11 / 04-datainfo.py # 기초통계 산출하기 from pandas import DataFrame from sample import grade_dic df = DataFrame(grade_dic, index=["철수", "영희", "민철", "수현", "호영"]) print(df) print(df.head()) # 파라미터 없을 경우 기본 5줄 print(df.head(2)) # 전체에 대한 처음 2줄만 추출 print(df["영어"].head(2)) # 특정 열에 대한 첫 2줄 print(df.tail(2)) # 마지막 2...
UTF-8
Python
false
false
1,109
py
92
04-datainfo.py
86
0.611179
0.579587
0
40
19.6
63
mcode36/Python-Challenge
12,661,563,624,442
27492cedfe8506bce9f6573646f95e3fb7daa946
2cd8463e198a41efce70016edb1bd16e9af75325
/P3/hey-ho.py
1fe0bdc811b5ccfffe900d73b82df314ce5fbaf5
[]
no_license
https://github.com/mcode36/Python-Challenge
d3ec9ff293c2a6594a232cf0010a75c0b5b1d3b3
6e0767c1fd120ac8c01bf94488fa61d13069aa23
refs/heads/master
2020-04-28T01:23:13.921668
2019-04-24T22:37:13
2019-04-24T22:37:13
174,854,014
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
for i in range (1, 101): s = str(i) if (i%6 == 0) : s = "hey-ho" else: if (i%2 == 0) : s = "hey" if (i%3 == 0) : s = "ho" print(s)
UTF-8
Python
false
false
205
py
15
hey-ho.py
7
0.282927
0.234146
0
10
18.5
24
rrabit42/Python-Programming
16,999,480,580,098
87083ba36cefe21342ce6fe90b94b3420f6f3cbb
7012c3609f4aa5712f17bfee199d856d36a968d2
/Python프로그래밍및실습/ch12-TKinter/lab12-7-radiobuttion.py
3226edeff51ecf42af0636f67b2f1ae6bc957d1c
[]
no_license
https://github.com/rrabit42/Python-Programming
1688c2b21ab19f09d2491152ae2dd0ddb1910288
551efb6fe4ee3b92c5cb2ef61d2198d55966471a
refs/heads/master
2021-07-23T01:27:42.657069
2020-07-28T17:23:40
2020-07-28T17:23:40
200,571,844
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import * def select(): label['text']= str(var.get()) + "번 선택" window = Tk() var = IntVar() # var 는 정수를 저장할 tkinter 변수 R1 = Radiobutton(window, text="1번", variable=var, value=1, command=select) R1.pack() # R1을 클릭하면 정수 변수 var = 1이 됨 R2 = Radiobutton(window, text="2번", vari...
UTF-8
Python
false
false
686
py
206
lab12-7-radiobuttion.py
205
0.60339
0.572881
0
20
27.5
74
tomatoy/cy
2,551,210,609,217
ff01518155f063b5f399a91546d3fdbfc4341a8f
7b2d1dd1efb60c3a9dd4eb59355ca4041005b0ef
/setup.py
7db98f90c06b22b439e2f302e2a3b48b79b5ed01
[]
no_license
https://github.com/tomatoy/cy
eff89e3df084b8734a0bba277cb945f786c1c52c
2e5f3232796f58825661e8fefcd636cb7942f1cd
refs/heads/master
2021-05-05T16:28:15.473367
2018-01-13T15:08:59
2018-01-13T15:08:59
117,352,815
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages __version__ = '0.1.0' dependencies = {} for env in ('prod', 'dev'): requires = [] with open('requirements/{}.txt'.format(env)) as f: for line in f: if not (line.startswith('#') or line.startswith('-...
UTF-8
Python
false
false
834
py
4
setup.py
2
0.597122
0.592326
0
36
22.166667
67
Toroi0610/unsupervised_heat_equation
5,360,119,213,421
8ee841d0cf08d3c18bc3c961a13745525384598b
cbfb3c4886320d495f6149ba6071624114f650b5
/.ipynb_checkpoints/utils-checkpoint.py
ce503a32f245044fc4432a07d5b8cb267384b684
[]
no_license
https://github.com/Toroi0610/unsupervised_heat_equation
9570769ac3eec9ece86136e7d60a2e1dbbae333f
9bc24d1e07e18004b078dd3fc091c974c570405b
refs/heads/master
2023-05-04T08:09:39.642561
2021-05-23T11:45:25
2021-05-23T11:45:25
367,778,313
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np def convert_array_to_tensor(arr): return arr.reshape([1, arr.shape[0], arr.shape[1], 1]) def convert_tensor_to_array(tensor): return tensor[0, :, :, 0] def get2orderderivative(temp_field, config): dx = config["simulation_params"]["dx"] dy = config["simulation_params"]["dy...
UTF-8
Python
false
false
735
py
11
utils-checkpoint.py
7
0.608163
0.548299
0
19
36.789474
95
NeaX1X/hw_Kazak
9,947,144,285,315
52c93e636526f4e85cb4c7ed846894bc9e347db7
1f4c4b5808e3c4812889d083875008519f687426
/hw2/calc2.py
cdc615564eb06b4fd58f18feeb992c6579099ef0
[]
no_license
https://github.com/NeaX1X/hw_Kazak
2e6700fe2faeb5dbabbe7c4d24a0628c5398ef8b
39b2035e67abfe9a6a67897185a9f2befc127ea4
refs/heads/main
2023-01-31T18:46:04.471025
2020-12-14T18:26:31
2020-12-14T18:26:31
308,412,170
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
number1 = input('Enter first number ') number2 = input('Enter secind number ') operator = input('Enter operator ') try: number1, number2 = int(number1), int(number2) except: print('This in not a number') else: if operator == '-': print(number1 - number2) elif operator == '+': print(number1 + number2) elif op...
UTF-8
Python
false
false
614
py
21
calc2.py
18
0.643322
0.610749
0
26
22.576923
46
sgeyer-tgm/WahlAnalyse
14,989,435,894,696
46ec2b436ebec6e6ce7ae872ccbac960e640883e
e96c087f26b15461137649f612d683dffa2c832f
/model.py
401561b507915ed203e26661c9109b3130d77c5c
[]
no_license
https://github.com/sgeyer-tgm/WahlAnalyse
237caa0e3b496272144da8ac803185657607d9cd
c269b08697f533ddaa93e5e7d12b0e467ac15770
refs/heads/master
2018-01-10T21:51:21.780765
2016-04-13T23:25:25
2016-04-13T23:25:25
51,511,857
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from PySide.QtGui import QUndoStack class WahlAnalyseModel(object): """ This class contains the any data that is not being persisted """ def __init__(self): self.filename = None self.undo_stack = QUndoStack()
UTF-8
Python
false
false
243
py
12
model.py
10
0.650206
0.650206
0
10
23.3
64
egorncpk/webProject
3,298,534,887,250
4bc9679afadfabc49f729b419f6254a935df36bc
c67197a2f656642d52105f9e17dfe154fa3db845
/webProject/loginsys/urls.py
a2c3f172bd4391dcbcb321d7646364c62e7ea543
[]
no_license
https://github.com/egorncpk/webProject
a96a5b85626273731eaf184b70aec0bf53e53994
8d82037f96fc7bc7fb5d388a93b56a8540e600af
refs/heads/master
2019-06-17T01:57:13.001491
2017-01-16T10:21:19
2017-01-16T10:21:19
78,830,679
0
0
null
false
2017-01-16T10:15:28
2017-01-13T08:33:07
2017-01-16T10:11:16
2017-01-16T10:15:18
36
0
0
0
CSS
null
null
from django.conf.urls import url from django.contrib import admin urlpatterns = { url(r'^$auth/', 'loginsys.views.auth', name='auth'), # url(r'^$logout/', 'loginsys.views.index', name='logout'), # url(r'^log/$', 'blog.views.log', name='log'), }
UTF-8
Python
false
false
264
py
8
urls.py
5
0.617424
0.617424
0
8
31.25
63
Computational-Biology-TUe/tissuespecific
9,964,324,167,720
8e93bf17aa82c52c79a1c7ede498f076fd9376d2
f6025b659614c29f653b005274e3d53cf525cf63
/tissuespecific/sarcoModel/individual.py
90a18e271beb725046e1b03a6adf5f7c5c3accb2
[]
no_license
https://github.com/Computational-Biology-TUe/tissuespecific
6d73db718f03bcec8574d6d0feaaab9546b183a3
16eb8ed81855c1b077e2f0d1e2172d76da2c5c8f
refs/heads/master
2020-04-08T16:33:18.044671
2018-08-08T12:41:51
2018-08-08T12:41:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Sep 15 15:01:39 2017 @author: acabbia """ class Individual(object): ''' class to store input data about a single simulated individual ''' proteinLeanFactor = 0.23 ## % proteins in the muscle (by weight) ATPconversi...
UTF-8
Python
false
false
3,347
py
43
individual.py
41
0.560502
0.546758
0
108
29.981481
135
Nji-Mariette/p2-25-coding-challenges-ds
5,549,097,773,208
d47da1cc092750cb322368b758b4a032f46f7631
4c8a532a691322786858aa840c736ac59ebc58fc
/Mariette/exercise_34.py
583e8943402d12a728e79e016b970c94b07d79b9
[]
no_license
https://github.com/Nji-Mariette/p2-25-coding-challenges-ds
34e124703237c8722ce217f2674bd73b616c9326
c995a13a0af48caec751c94357d9f2bcafd49ae8
refs/heads/main
2023-06-29T17:07:04.559192
2021-08-03T12:54:36
2021-08-03T12:54:36
387,260,628
0
0
null
true
2021-07-18T20:09:48
2021-07-18T20:09:47
2021-07-13T07:30:15
2021-07-13T07:30:12
0
0
0
0
null
false
false
def array_of_words(text): return text.split() print(array_of_words("Returns each word as element of array"))
UTF-8
Python
false
false
113
py
8
exercise_34.py
8
0.725664
0.725664
0
4
27.5
62
Midnight1Knight/HSE-course
7,215,545,101,971
5d11a6b52be30798e9e98ddf82267c713f12ab9e
7e7e2c5d327a518a03b2307f7f3ece37517fa361
/ThirdWeek/Task2.py
f2c06cfe0ee8ab88a4654960f5c5d7e5bdd95925
[]
no_license
https://github.com/Midnight1Knight/HSE-course
0fdd995f2e8bf98ecd5fc4ecbcd503e6ef2150ab
9b79c359fc65d260e3d454de5464abd5c89be770
refs/heads/master
2022-09-24T14:36:29.472005
2020-06-04T17:11:37
2020-06-04T17:11:37
269,414,804
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = int(input()) i = 1 a = n b = 0 while i != a + 1: n = (1 / i**2) b += n i += 1 print(b)
UTF-8
Python
false
false
103
py
118
Task2.py
116
0.359223
0.300971
0
9
10.444444
18
sergiokv13/advent-2020
5,385,889,027,168
6e8a60706f50ce30e8ff7aa1e07062d7fbcb8b82
50ebb2555c62f1aee5dfee3b683327685ada9b04
/advent-2021/day_11/day_11.py
77c149cdcbfe2c1431edb6d38d0ec1436ab9a407
[]
no_license
https://github.com/sergiokv13/advent-2020
781aefc15208004df12bb2076d1ff131315d9aae
6d4a3f2f0bf66003ccd384835dde9b838ff48c4c
refs/heads/master
2023-02-05T00:43:12.787154
2022-12-25T07:29:47
2022-12-25T07:29:47
317,715,024
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import fileinput from typing import DefaultDict def print_matrix(m): for row in m: print(row) print() def getp(matrix, i, j, default = None): try: if i < 0 or j < 0: return default return matrix[i][j] except: return default def increment_one(m): to_propagate = [] for j in range(len(m)): ...
UTF-8
Python
false
false
1,671
py
103
day_11.py
98
0.5769
0.554159
0
78
20.410256
104
xtianmcd/diff_priv
8,555,574,876,175
38b72765ad6db4a1caf34e84fb2da487f816f970
36d1215a3a746eb057e0d6087ccd8229d03a0515
/logitstic_regression/DP-LogisticReg.py
3ea78e36ee5f67ba658018e547cff4e20f865d55
[]
no_license
https://github.com/xtianmcd/diff_priv
26ec4c21e82d6a28130d50633ab07948d200e757
2a7c0a38970d972bda5a0678c436c4511fc74ccf
refs/heads/master
2020-05-05T04:07:58.759236
2019-04-19T20:53:12
2019-04-19T20:53:12
179,698,691
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from joblib import Memory from sklearn.datasets import load_svmlight_file from scipy.sparse import hstack import matplotlib.pyplot as plt import math import numpy as np import copy from sklearn.linear_model import LogisticRegression mem = Memory("./mycache") @mem.cache def get_data(): #source: https://scikit-lear...
UTF-8
Python
false
false
12,062
py
5
DP-LogisticReg.py
2
0.574863
0.553474
0
244
48.434426
367
ussenko2017/flask-server
17,265,768,550,774
c18043f722aef9be19c3d01cf1986e9b1477715c
171582fb1a5740edc909734195afa7afcd7659f2
/test.py
2b47d5ec383991fc55734f6c6db0c0a2069ac5ba
[]
no_license
https://github.com/ussenko2017/flask-server
d2b26c5f4ac239ca9275b8d5767bc52947f0821d
b0b04aa67876ff5bf3e163b0e690f0d0ea777d8e
refs/heads/master
2020-04-15T04:58:02.233713
2019-01-07T17:14:25
2019-01-07T17:14:25
164,403,842
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests,myFunc for i in range(1000): r = requests.get('http://127.0.0.1:5000/api/v1/add/', params={'tablename':myFunc.OTDEL_TABLE, myFunc.NAME_FIELD:myFunc.NAME_FIELD}) r1 = requests.get('http://127.0.0.1:5000/api/v1/add/', params={'tablename':...
UTF-8
Python
false
false
1,410
py
7
test.py
6
0.508511
0.461702
0
31
44.451613
71
Jenniferrrrrr/skyportal
11,321,533,816,036
fb51bc7bac3cc63fa80251d42a416113e2012aee
0608f8ab81403b724a33dc109b1a3cefdd2cd844
/skyportal/tests/tools/test_offset_util.py
07524e0df120ee8097a2fd4eb3a4bf2bc774d487
[ "BSD-3-Clause" ]
permissive
https://github.com/Jenniferrrrrr/skyportal
b6b9ab995bb64a59287e8b67bff1c44a316dee8a
9c6ffe3b8387e46ac4400db546e116d85aef60af
refs/heads/master
2022-09-16T17:56:23.917982
2020-05-05T07:26:44
2020-05-05T07:26:44
258,950,285
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest import uuid from skyportal.utils import ( get_nearby_offset_stars, source_image_parameters, get_finding_chart, get_ztfref_url ) def test_get_ztfref_url(): url = get_ztfref_url(123.0, 33.3, 2) assert isinstance(url, str) assert url.find("irsa") != -1 def test_get_nearby_offset_sta...
UTF-8
Python
false
false
1,467
py
19
test_offset_util.py
17
0.572597
0.528971
0
65
21.553846
64
huayanqiaq/back
11,897,059,435,077
858cc50d161f0b900b178d02f7dbbdbfc42d655f
aecd195ca7ff4594d4cec6b2019e6acc132a7baa
/ll.py
57e9b06737d4ce9ad3d38de02305d12d1051af6f
[]
no_license
https://github.com/huayanqiaq/back
023a57dafb12d897fc775e915ad79bd85cc9667a
1eb1626ddc4b588e60f6eab8340f27e9c52f2d1e
refs/heads/master
2021-01-18T19:42:48.965473
2017-04-01T11:24:12
2017-04-01T11:24:12
86,908,607
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from lxml import etree import requests file=open('1.txt','w+') url="http://goods2goods.com/commonuser/getFormUsers.action" req=requests.get(url=url,timeout=6) content=req.content.decode('utf-8') content_xpath=etree.HTML(content) num=content_xpath.xpath('//tr/td[3]') for i in num: name=i.text.strip() ...
UTF-8
Python
false
false
360
py
28
ll.py
26
0.694444
0.680556
0
14
23.857143
59
ds-ga-1007/assignment8
11,536,282,203,868
c7be2529412ad0e23cc3ad39be9bc1d21b9cb5a8
7974efcd3e1bad296d762e44153e8afaa8f6beef
/ps3336/test.py
8f0858af08d567105d6dc426232bf57929fd08b1
[]
no_license
https://github.com/ds-ga-1007/assignment8
2e455f9db7d11909f8aee45699504f3bf828058a
5b904060e8bced7f91547ad7f7819773a7450a1e
refs/heads/master
2020-07-02T07:54:18.029239
2017-01-02T19:46:54
2017-01-02T19:46:54
33,561,195
1
13
null
false
2015-05-06T20:30:48
2015-04-07T18:37:51
2015-05-06T20:30:48
2015-05-06T20:30:48
6,505
1
11
0
Python
null
null
''' Created on Nov 23, 2016 @author: peimengsui @desc: test the investment class ''' import unittest from investment import investment class Test(unittest.TestCase): def test_constructor(self): self.assertEqual(investment(10,10).num_positions,10) self.assertEqual(investment(10,10).num_trials,10) ...
UTF-8
Python
false
false
684
py
266
test.py
208
0.690058
0.630117
0
21
31.619048
72
adreena/MyStudyCorner
11,957,188,982,723
3658da32ea71a3031f4faf6f285857aa5af14be7
941c912f44beff33a072e086c1f561f6cdd64626
/LeetCode/codes/67.py
8c5757c6ccd0b7220efc5fc018021e9584048009
[]
no_license
https://github.com/adreena/MyStudyCorner
3a13a743769ed144965b767f547c16df4d0fa0dd
355c0dbd32ad201800901f1bcc110550696bc96d
refs/heads/master
2023-02-20T07:39:32.391421
2021-01-25T01:46:21
2021-01-25T01:46:21
255,104,133
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# time O(N) # space O(N) class Solution: def addBinary(self, a: str, b: str) -> str: i,j = len(a)-1, len(b)-1 carry = 0 output = "" while i>=0 or j>=0: v1, v2 = 0, 0 if i>=0: v1 = int(a[i]) i-=1 if j>=0: ...
UTF-8
Python
false
false
736
py
274
67.py
252
0.347826
0.313859
0
28
25.285714
47
HernanFaustino/Flaskapp
18,047,452,605,861
16e70fa2cc2b0703319b1fbdecf1ba1a9d9f4a8d
122a3da328744f7c20619bc1fbcc55880f13d36e
/simpleapp.py
58399988bb41aa0f1b09486f63230aef233e2922
[]
no_license
https://github.com/HernanFaustino/Flaskapp
c29cfa725a24830b7a12247b9d71dd8ac9c7aa35
1beb7f2ea0f8ffc2ab7471e691a5581613847497
refs/heads/master
2020-04-05T13:15:34.205633
2018-11-09T17:29:34
2018-11-09T17:29:34
156,894,314
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask import sys import optparse import time app = Flask(__name__) start = int(round(time.time())) @app.route("/") def hello_world(): return "Hello World from Distelli!" if __name__ == '__main__': app.run(host='0.0.0.0', port=8000, debug=False)
UTF-8
Python
false
false
276
py
1
simpleapp.py
1
0.641304
0.612319
0
16
16.25
51
motor-dev/Motor
17,059,610,127,628
8be4728e9dce32669d5447bd23e492b4f3fbac77
68e2df11645278a9997eeae804a9a075585b59f2
/mak/libs/pyxx/cxx/grammar/expression/primary/requires/general.py
6c9a87fb4c8f0da51b582b9065598b4d3c86f409
[ "BSD-3-Clause" ]
permissive
https://github.com/motor-dev/Motor
df673aafcd4040a7ce7e6ef9301c38270982d544
edd724bba99af63d938a0db165dec07403a40fb6
refs/heads/master
2023-07-22T10:19:26.028314
2023-07-07T14:01:20
2023-07-07T14:01:20
398,261,504
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" requires-expression: requires requirement-parameter-list? requirement-body requirement-parameter-list: ( parameter-declaration-clause ) requirement-body: { requirement-seq } requirement-seq: requirement requirement-seq requirement requirement: simple-requirement type-requirement ...
UTF-8
Python
false
false
2,921
py
853
general.py
808
0.720301
0.697364
0
109
25.798165
93
ncrubin/reference-qvm
2,688,649,570,088
3d793cfdd9632edc036ca89861e6d1c090edaa84
eaeacb1f56a266f1c7551b36c61717cddb223c9e
/referenceqvm/tests/test_wavefunction.py
e563c4a52b40b7adc39f331b8765215ede3217eb
[ "Apache-2.0" ]
permissive
https://github.com/ncrubin/reference-qvm
4c625813d90a7e67853957c37d8f5825b5a418ad
2ed67c0e26f433165de45dcda0bdb2dc2ea23489
refs/heads/master
2021-09-20T17:35:53.726897
2017-10-02T19:32:17
2017-10-02T19:32:17
105,916,404
1
0
null
true
2017-10-05T16:55:55
2017-10-05T16:55:55
2017-09-30T22:04:51
2017-10-02T19:32:18
233
0
0
0
null
null
null
""" Testing the correctness of wavefunction() and unitary() """ from pyquil.quil import Program from pyquil.gates import H as Hgate from pyquil.gates import CNOT as CNOTgate from pyquil.gates import X as Xgate from pyquil.gates import I as Igate from pyquil.gates import RX as RXgate from pyquil.gates import RY as RYgat...
UTF-8
Python
false
false
5,862
py
14
test_wavefunction.py
12
0.502729
0.339304
0
143
39.993007
86
makjohansson/MySql_database
4,776,003,654,617
e83b93dceb8da519aea44d8c9f85d2902eccfa91
9d60c00cea2b7ca9a5876c6db0e91c3fbdfff99c
/view/resources/offers_handler_view.py
f47ef978e3bc6c1457059bcc349d8ff1b06db590
[]
no_license
https://github.com/makjohansson/MySql_database
42cf954a92cc6d030825147a6560e639ba2a8ccb
05af9d209a1821c3f74d992da6f30f1598835e81
refs/heads/master
2023-02-26T18:57:07.402322
2021-02-04T15:05:58
2021-02-04T15:05:58
326,134,978
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from PyQt5 import QtCore from PyQt5.QtWidgets import QFormLayout, QHBoxLayout, QLabel, QLineEdit, QMessageBox, QPushButton, QVBoxLayout, QWidget class OffersHandler(QWidget): """QWidget to change or remove a offer related to a specific company """ def __init__(self, offer, city, offer_id, db_controller): ...
UTF-8
Python
false
false
2,235
py
16
offers_handler_view.py
14
0.612528
0.604922
0
67
32.358209
119
omegafusion/Oxford-Hack-2019
18,580,028,538,120
00c31d3bfd8f0bd9b06896e2c4d4956697b31805
30fcde123432c3097d4ebd53a49adc8a6c43b75a
/src/gameobjects.py
b88a75e68159b3831a1d21e9efba9581ea2b3714
[]
no_license
https://github.com/omegafusion/Oxford-Hack-2019
3bed0f120af57ae9c093cd62421fd1d06dda5348
4e54d489ce660deb6ac10549d1393292dc966bab
refs/heads/master
2022-11-25T03:00:30.620446
2019-11-17T11:39:54
2019-11-17T11:39:54
222,096,312
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import os import pygame import pymunk from pymunk.vec2d import Vec2d import functions pygame.init() dir_path = os.path.dirname(os.path.realpath(__file__)) playerBulletImg = pygame.image.load(os.path.join(dir_path, "playerBullet.png")).convert_alpha() enemyBulletImg = pygame.image.load(os.path.join(dir_p...
UTF-8
Python
false
false
9,436
py
17
gameobjects.py
14
0.607991
0.580861
0
251
36.59761
167
fadebowaley/MO-App
7,524,782,730,237
4a3aad6c82e89bb75c6593da5a2dfc4ca66e7af1
b410a506bd4bdbbc55a770ab76e0507625ebb52e
/app/auth/email.py
1e0c7f7d5c8d034099a9ce797b820b742c916e68
[]
no_license
https://github.com/fadebowaley/MO-App
6a219a984c89c2dd0601a6f3f3d46810b644dcb3
b7de965390d69e349533765db0ac190e8a67684b
refs/heads/main
2023-08-24T06:17:17.510741
2021-09-14T12:31:30
2021-09-14T12:31:30
403,637,924
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import render_template, current_app from email.utils import formataddr #from flask_babel import _ from flask import * from flask_mail import * from app.email import send_email from flask_login import login_required, login_user,\ logout_user, current_user def send_welcome_email(user): send...
UTF-8
Python
false
false
2,947
py
76
email.py
26
0.625721
0.623685
0
57
50.473684
154
bgreni/PSRS_MPI
14,345,190,795,186
a2886fc07c1d33956aef72b0ade9a3cbcf55f1b9
91204540629bb73cd96daf7d9a03019bb3b27204
/outputhandling/makecsv.py
c096a4c3a1f09411ec4c9d57ffeaaa8b187e813d
[]
no_license
https://github.com/bgreni/PSRS_MPI
59649885e792894087d4da7cb66c074b2006e53f
97c2c6b1483f5fd9fdc134728b43fa18082ef36f
refs/heads/master
2023-04-30T13:15:22.561519
2021-05-08T05:57:37
2021-05-08T05:57:37
338,663,290
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd """ Parses the raw output from the PSRS program into a nice csv table used to create graphs and tables """ if __name__ == '__main__': content = open('test.out').read().split('\n\n') entries = [x.split('\n') for x in content] for i in range(len(entries)): for j in range(len(ent...
UTF-8
Python
false
false
1,739
py
17
makecsv.py
10
0.39908
0.367453
0
55
30.490909
98
richardsliu/testing
11,020,886,097,863
a6b45ab9018b7d64942c7840a0464ee6bd74f31d
7b2394575410502a5853c3d5726fc41db889f164
/py/kubeflow/testing/cd/update_kf_apps_test.py
15960cd6fb1972bac3fc5f83ff14fa6a6776b852
[ "Apache-2.0" ]
permissive
https://github.com/richardsliu/testing
9f05d579a4548fd62d17130bbd35c4f5aa3f654d
97d2af6fd7e10d7ab2641a2b1a64ba0a3aaaf7ae
refs/heads/master
2020-03-23T23:37:16.558768
2020-01-09T19:30:35
2020-01-09T19:30:35
140,356,108
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import difflib import logging import os import pprint import yaml from kubeflow.testing.cd import update_kf_apps # pylint: disable=no-name-in-module import pytest def test_build_run(): this_dir = os.path.dirname(__file__) template_file = os.path.abspath(os.path.join(this_dir, "..", "..", "..", "..", ...
UTF-8
Python
false
false
2,736
py
7
update_kf_apps_test.py
4
0.618421
0.616959
0
90
29.4
116
dantrevino/ferris-framework
14,525,579,417,514
4e362bf6acbf66514929e20dc97d26c2053546f2
b934f47abbd63d876f2bc257466333a1bcbc8219
/ferris/core/ndb/model.py
e642d644514651c57dc47523284d5173da012096
[ "Apache-2.0" ]
permissive
https://github.com/dantrevino/ferris-framework
10a3166d041d38ba0edcae1d80c737006821d8fd
8f81058f7d3a355e47118e97e7f01dd8b643189a
refs/heads/master
2021-07-18T03:06:55.455814
2013-03-21T12:52:40
2013-03-21T12:52:40
108,202,396
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Classes that extend the basic ndb.Model classes """ from google.appengine.ext import ndb import types import logging class ModelMeta(ndb.model.MetaModel): """ Augments Models by adding the class methods find_all_by_x and find_by_x that are proxies for find_all_by_properties and find_by_properties...
UTF-8
Python
false
false
5,076
py
104
model.py
61
0.578408
0.578408
0
180
27.2
144
uwaa-ndcl/ACC_2020_Avant
7,447,473,298,266
22d4ee1897413ec3555c098577fdbc824e25c5dc
15cbaf14ef526d7ce8a2e7a874c5970aee441c75
/net_filter/tools/unit_conversion.py
7562c7412c83fdc423fe9b7fd5a97226eb7e9fe9
[]
no_license
https://github.com/uwaa-ndcl/ACC_2020_Avant
9c9068df2669c4b7fd2aca82d75cf61c8f00d9a5
a7238f783adf7556f49dd13028b8dbaecd3f0e71
refs/heads/master
2023-03-07T11:04:45.717597
2021-02-26T05:29:18
2021-02-26T05:29:18
263,537,423
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math m_to_cm = 100 cm_to_m = .01 rad_to_deg = 180/math.pi deg_to_rad = math.pi/180
UTF-8
Python
false
false
91
py
31
unit_conversion.py
28
0.648352
0.527473
0
6
14.166667
24
cbilgili/yukselauto
10,428,180,603,670
cff8f24bb908d5cc056c0073ef122bf546b4aa71
a14ad3642b4789f11d8ac7a1ba070f07455cab2f
/mycmsproject/products/views.py
c8bf41be200e39d096c4761832b619294553c73c
[]
no_license
https://github.com/cbilgili/yukselauto
b1fcf014cab6bfba0fa31d85ded0be5a9236eb6f
75304348587a3da93959f12d0a690a035056b4c7
refs/heads/master
2020-05-19T17:42:24.217523
2013-12-27T23:09:14
2013-12-27T23:09:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Create your views here. # coding: utf-8 from django.template import RequestContext from products.models import Product, Category, ProductType from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404 from django.views.decorators.csrf import csrf_exempt from django.core.mail import send_mail,...
UTF-8
Python
false
false
4,759
py
49
views.py
21
0.670388
0.664069
0
115
40.286957
194
Raddock/MountWizzard4
14,224,931,727,252
587f036afcdb557300554cd2cf6fd955da0108de
f50500337a7a215793fe41e6ac1146d4ce86ae53
/mw4/test/test_integration/test_setupQt.py
faedefc3041c4c175a8d0c2608a806641cb0b33e
[ "Apache-2.0" ]
permissive
https://github.com/Raddock/MountWizzard4
7f00c0e9d900bcb9f6f5c284d759a5ec3219a983
15efed77c1634461184e90a7cf6419eec0dec909
refs/heads/master
2020-09-22T13:36:18.352375
2019-12-01T18:38:34
2019-12-01T18:38:34
225,218,989
0
0
Apache-2.0
true
2019-12-01T19:39:33
2019-12-01T19:39:31
2019-12-01T18:38:43
2019-12-01T18:38:41
77,308
0
0
0
null
false
false
############################################################ # -*- coding: utf-8 -*- # # # # # # # # # ## ## # ## # # # # # # # # # # # # # # # ## # ## ## ###### # # # # # # # # # Python-based Tool for interaction with the 10micron mounts # GUI with PyQT5 fo...
UTF-8
Python
false
false
1,146
py
51
test_setupQt.py
38
0.482096
0.463755
0
43
25.627907
60
gianninapg/python-tasks
7,619,271,995,552
5ef71e6282f537c05ffa43eca6944bd70ff533cb
83d7e67287075a580a823310c45db5bb3a33611b
/names_list.py
1249dbff85604d3bd84eb142404576ec0869bb47
[]
no_license
https://github.com/gianninapg/python-tasks
220fcf168ae44478fc670a8f94452a620659f2a2
5137e1dce918c9af9105ae71391f3a9e45b54bb2
refs/heads/master
2022-11-23T01:56:05.579994
2020-07-25T11:18:04
2020-07-25T11:18:04
280,637,766
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# #name = input("What is your name?") # #print(name) # #name = [input(f" Hello {name}")] # names_list = [ # "Izzy", "Archie", "Boston" # ] # name = input(names_list) # print(names_list) # #print(names_list) # print(name.append(name)) # #print(name) input_names = input("Enter three names") #names_list = inp...
UTF-8
Python
false
false
475
py
16
names_list.py
16
0.623158
0.623158
0
30
14.866667
40
RaghavSharma0007/rasa_based_voicebot
17,248,588,689,658
a7ac6bb47cd36891ae2c9f2cc83f69be8a22600f
29e27bf74310d517d6127355c8ee0dcb3a386446
/chatsite/settings.py
6f17c35cac68981acc77cf56948924ea675a5293
[]
no_license
https://github.com/RaghavSharma0007/rasa_based_voicebot
d5e56faf64695ab68ae80ca89f06a1b1130e64d8
143f613e58818bacc3c087ced962ddf3e8649d0a
refs/heads/master
2022-04-27T02:31:50.292190
2020-04-22T02:36:06
2020-04-22T02:36:06
257,771,206
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Django settings for chatsite project. Generated by 'django-admin startproject' using Django 2.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os #f...
UTF-8
Python
false
false
4,270
py
27
settings.py
8
0.693677
0.68548
0
164
25.036585
91
manibatra/Drones
7,576,322,318,354
b1a62b222d0eb195a5b0bb7cef690dce01a07214
bfa29a47d9193adfa7dc70231ad1fb70e07ab27b
/drones/test/test_consumers.py
d9da8484c9eacb64f68d3ae6abc7d0be5deeb9f0
[]
no_license
https://github.com/manibatra/Drones
c8b1c76ad94aa29e14fe1da1bac98fc534bb5bb0
99bfb92a0185b6f0cd641c74d6f9ad73a5543020
refs/heads/master
2020-03-23T18:06:48.581443
2018-07-29T03:22:00
2018-07-29T03:22:00
141,890,137
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from channels.testing import WebsocketCommunicator from drones.consumers import DroneConsumer, DashboardConsumer from channels.testing import HttpCommunicator import pytest @pytest.mark.asyncio async def test_my_consumer(): communicator = WebsocketCommunicator(DroneConsumer, "/testws/") connected, subprotocol...
UTF-8
Python
false
false
1,108
py
11
test_consumers.py
5
0.603791
0.591155
0
30
35.933333
73
tanayseven/python-meetup-nelkinda-14th-october
16,080,357,600,288
e20b2e0060496d865787c2bfffeb5746e4b7c351
5c14b4926b6285659a335767a5471c5c04271301
/todo_app/todo_app/list/views.py
5b6d804b1135b1ed40ce8e0c456bf58d4578375b
[ "MIT" ]
permissive
https://github.com/tanayseven/python-meetup-nelkinda-14th-october
c6e1df6a1d021e43044c7d29a2ce209696ca649e
14d39ef6b79afe30f3c0d38ae90273b1458923a1
refs/heads/master
2021-07-12T09:11:27.262277
2017-10-16T17:13:42
2017-10-16T17:13:42
106,182,564
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Blueprint, jsonify from todo_app.extensions import app, login_required from todo_app.list.repos import ToDoListRepo from todo_app.user.repos import ListUserRepo todo_list_endpoints = Blueprint('todo_list', __name__, url_prefix='todo_list/') app.register_blueprint(todo_list_endpoints) @todo_list_end...
UTF-8
Python
false
false
571
py
22
views.py
17
0.742557
0.737303
0
16
34.6875
79
Maxfan1999/algorythms_and_data_structures
10,496,900,095,586
56317e511b7152abf0551dff583066126c0e9e0a
d15ca7d5c6cc67e3ffef19cd465e912b16bcd35d
/Search/task1/user.py
25472e01bdadae0dceec782d54fcf533a46dd688
[]
no_license
https://github.com/Maxfan1999/algorythms_and_data_structures
3f6b512759dcdcd6f8b3c691bc4871c7a8006e0b
08f0859001d8397a7d8e9d8f2a6fe8c1a12302ab
refs/heads/master
2021-01-03T19:45:21.859326
2020-06-01T17:14:22
2020-06-02T11:19:44
240,213,554
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Реалізуйте інтерфейс для роботи з англійсько-українським словником та швидким пошуком перекладу. """ dictionary = [] def addTranslation(eng, translation): """ Додає до словника англійське слово та його переклад. Пари (eng, translation) приходяться у порядку, що відповідає лексикографічному порядку. :p...
UTF-8
Python
false
false
1,311
py
36
user.py
31
0.609707
0.599596
0
34
27.911765
96
daniela08marquez/proyecto-compu
9,844,065,043,075
612cdc02a1c198e1af906dd884112fc07084e519
e91b1e8eed34299036b39fe6a19de92eddd2a542
/assignments/00COVIDMUERTESMEXICO/src/exercise.py
05fff5de9c880d7d2e4e2c3724eb7a5f5650a918
[]
no_license
https://github.com/daniela08marquez/proyecto-compu
9634f61fc4e7349efbba6bce4ce30c083df0cb3e
f14d626de03a95db094df4a37bdc65018531b463
refs/heads/main
2023-09-01T18:27:46.792390
2021-10-23T02:38:43
2021-10-23T02:38:43
419,894,866
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from matplotlib import pyplot as plt def guardar_matrizhombres(m): with open('graficas_hombres_covid.csv', 'w') as archivo: for i in m: renglon = "" for j in i: renglon = renglon + str(j) + "," renglon = renglon[:-1] renglon = renglon + "\n" ...
UTF-8
Python
false
false
16,701
py
3
exercise.py
1
0.482723
0.455165
0
334
48.652695
259
BUEC500C1/video-jadtay
11,063,835,767,949
c7eb1c4a5d70e0a90914797bbe5e381098c90999
1eba85d9154d80f818a9c26848b51ac2ef7b974d
/image2video.py
a6b97e9d9dc6905d782f20f1e2f660bdbf095ee2
[]
no_license
https://github.com/BUEC500C1/video-jadtay
aea705bd99f294c947e64768b486322b1bd66b08
3e4260756dcb16c0088d5c03f10e2cea1824ccc1
refs/heads/master
2020-12-29T09:33:47.068215
2020-02-29T00:12:57
2020-02-29T00:12:57
238,557,535
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Feb 28 09:49:10 2020 @author: jadta """ import os import glob import subprocess import urllib.request import json from urllib.error import URLError, HTTPError #used to open subreddit JSON, can chooose which subreddit as well as quantity of pictures def getSubreddit(subreddit...
UTF-8
Python
false
false
2,828
py
5
image2video.py
2
0.625884
0.612447
0
92
29.75
156
Ji-hyeong/TIL
18,786,186,975,428
071af7484fe3df63aeea6dd216ae3f34a4d8f757
dd67dd3c4bafa2ff25d5c312e8b75efc83e31371
/programmers/Code/stringCompression.py
f3eed7313cd8d01a579e487b0563aebc688ef2df
[]
no_license
https://github.com/Ji-hyeong/TIL
47cc2c189d4618acc9c03fea92bc044c5e2001f0
443cd145b50fdbbc50d65ec6924f4743475babf2
refs/heads/master
2023-06-05T22:20:35.594233
2021-07-26T08:40:45
2021-07-26T08:40:45
280,310,521
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.stdin=open("input.txt","r") def solution(s): answer = len(s) for length in range(1,len(s)): start,cnt,before,temp=length,1,s[0:length],'' while True: if start>=len(s): break next=s[start:start+length] if before==next: cnt+=1 ...
UTF-8
Python
false
false
825
py
262
stringCompression.py
215
0.447273
0.437576
0
29
27.482759
54
sebapaik/django-shop
9,113,920,637,458
814f74df85b329ea392f23cdfd2fc05ca7a26cdf
8332e0d00d3734f7347b88d23c2a14cf654fb9db
/shop/admin.py
1f36c381da194da389b29171085c67d1f4f1e686
[ "MIT" ]
permissive
https://github.com/sebapaik/django-shop
e21f3298eee5b7e0b3981266c0fa02bf79f3bb33
00c7190ac6614ebe1eb0c0ea444f8e91c2e7f7a8
refs/heads/master
2022-10-08T02:58:06.441724
2018-09-10T21:12:57
2018-09-10T21:12:57
148,103,658
0
1
MIT
false
2022-09-30T00:43:03
2018-09-10T05:30:01
2018-09-10T21:13:04
2022-09-30T00:43:02
6,698
0
1
1
Python
false
false
from django.contrib import admin from .models import Product, Order # Register your models here. class ProductAdmin(admin.ModelAdmin): list_display = ['id','brand','pname','price','inventory','description','imageurl'] list_editable = ['brand', 'pname', 'price', 'inventory', 'description', 'imageurl'] list_p...
UTF-8
Python
false
false
783
py
19
admin.py
13
0.689655
0.679438
0
14
54.928571
155
Wilson3g/simple-blog-flask
17,119,739,665,637
e52d1cf29bc2ba08bf309880687eefd4b32148c8
7594b431838bb224807b4fa5453437b9b43ecec5
/app/model/Post.py
006484bc63a80dfc849c3fa7237a8e54fc3e6a94
[]
no_license
https://github.com/Wilson3g/simple-blog-flask
bbe13a7aa970e5c53b14c6c91ee65bab18741afa
05f71c2e589926e59db616606dc716854cac7fa7
refs/heads/master
2023-04-23T10:53:30.802525
2020-06-03T22:32:19
2020-06-03T22:32:19
260,315,754
0
0
null
false
2021-05-06T20:26:16
2020-04-30T20:50:07
2020-06-03T22:32:23
2021-05-06T20:26:16
4,958
0
0
14
Python
false
false
from app.config.database import db from app.model import Comment from app.model.Tags import Tag from app.model import posts_has_tags class Post(db.Model): __tablename__ = 'post' id = db.Column(db.Integer(), primary_key=True) title = db.Column(db.String(255)) content = db.Column(db.Text()) author = ...
UTF-8
Python
false
false
519
py
18
Post.py
15
0.689788
0.678227
0
14
36.071429
61
Yu0606/test
4,372,276,728,779
b773f124a155811dd9a503e2034e039a7d83fce7
3044a21fcb4b739c79368c18e2c6fb902eefea91
/myuse/scoring.py
bf26286207d0678883b97a6cb7160335c2ca8d9a
[]
no_license
https://github.com/Yu0606/test
087a8fc4da118a44b4d72e1783526bfbfb667631
18315ce14907ddcb4eb674d0b5052a33538f633a
refs/heads/master
2018-09-19T14:20:15.128262
2018-07-01T11:46:44
2018-07-01T11:46:44
93,718,818
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math,MeCab,re,json class Scoring: score_noun = {"後尾": 70, "最後尾": 70, "折り返し": 60, "列": 20, "待機列": 70, "在庫": 30, "完売": 20, "到着": 100, "移動": 100, "アナウンス": 90, "スタッフ": 90, "まとめ": -200, "現状": 90, "現在": 90, "札": 30, "今": 100, "行列": 40, "時間": 100, "自宅": -200, "検索": -100} sc...
UTF-8
Python
false
false
8,060
py
7,012
scoring.py
56
0.462057
0.443598
0
173
38.462428
119
Periodically-Peckish-Artisans/project-browser-backend
12,472,585,041,006
06a244a53f5cc9f797d2ff268680fc49a7fca099
6ad6f506307e2b163c4f37cc78e3cedd298abe69
/reset-search-index.py
719c6ba38ab354420fa687089e1f176ffcd0f965
[ "MIT" ]
permissive
https://github.com/Periodically-Peckish-Artisans/project-browser-backend
7fb52a1cf06e000521e796c3e73ea9a37d3d1010
f684bdd0d17f9e5d6f0ab3ebc3a640f6c924f054
refs/heads/master
2020-07-22T15:18:35.550498
2019-10-01T23:27:42
2019-10-01T23:27:42
207,243,335
0
0
MIT
false
2019-09-25T23:33:58
2019-09-09T06:50:18
2019-09-25T22:26:52
2019-09-25T23:33:57
36
0
0
0
C#
false
false
# Currently, this will make the site search functions not work until the search indexes are rebuilt. # If you wanted to get fancy, you could slot it into another index rather than deleting the main one. import json import http.client import os searchkey = '' with open('searchkeys.json') as fp: searchkey = json.load...
UTF-8
Python
false
false
2,121
py
15
reset-search-index.py
3
0.69967
0.695898
0
65
31.646154
101
arjuna-mendis/EVOBLIS_REPO_EVO
7,653,631,766,383
972d7445df1388152228659172d3f01a3f658453
d1b2363b68352ed1ff933c769a4d109100219213
/users/silvia/circles_with_webcam.py
7842eaa6d15bc59d010c58c1becbde0022aa85a9
[]
no_license
https://github.com/arjuna-mendis/EVOBLIS_REPO_EVO
edaadb1dfb1e61aa9b976a8d9727048f57c8b541
078e5db8f7753abf9a5187239dbd0d2f4dea8f01
refs/heads/master
2021-07-08T09:34:10.847712
2017-10-04T14:27:01
2017-10-04T14:27:01
105,766,917
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.append('../api') sys.path.append('../settings') from local import * import cv2 from users.silvia.petri_dish_coordinates import petridishes from syringe import Syringe from datalogger import DataLogger from evobot import EvoBot from head import Head from worldcor import WorldCor usrMsgLogger = Data...
UTF-8
Python
false
false
1,742
py
175
circles_with_webcam.py
116
0.649254
0.606774
0
56
30.089286
113
marble-git/python-laoqi
13,958,643,715,051
9d66a95a8b9643f899d8615a8832348d7edbaed0
352e47d9e028e7ab8c0f46a6b04518816559f002
/chap5/arithmetic_sequence.py
ba2ad26cfaef63bffba9d35417ae22e411752038
[ "MIT" ]
permissive
https://github.com/marble-git/python-laoqi
79b464f19b961df0f936242a44442823813bc8e5
74c4bb5459113e54ce64443e5da5a9c6a3052d6a
refs/heads/main
2023-07-01T07:55:36.804089
2021-08-03T22:34:32
2021-08-03T22:34:32
329,666,353
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf-8 ''' filename:arithmetic_sequence.py chap:5 subject:12 conditions:a1,d,n solution:sum arithmetic seq ''' def sum_arithmetic_seq(a,d,n): return n*a + n*(n-1)*d/2 print(sum_arithmetic_seq(1,1,100))
UTF-8
Python
false
false
241
py
183
arithmetic_sequence.py
137
0.626556
0.576763
0
15
15.066667
35
cash2one/xai
3,384,434,246,246
189892da4d18641e3af800e1c2a6ff3dc6d70df1
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_booming.py
2909fad6faa2fbb657f8d48ed13fcbee2a3aac62
[ "MIT" ]
permissive
https://github.com/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
null
null
null
null
null
null
null
null
null
from xai.brain.wordbase.verbs._boom import _BOOM #calss header class _BOOMING(_BOOM, ): def __init__(self,): _BOOM.__init__(self) self.name = "BOOMING" self.specie = 'verbs' self.basic = "boom" self.jsondata = {}
UTF-8
Python
false
false
228
py
37,275
_booming.py
37,266
0.631579
0.631579
0
10
21.6
48
Guest400123064/Treectory
4,037,269,292,722
159f6a4b823c8a0c28215fee243c10347f99f8ec
247c0276c501e865140f743ac2b5dd770f717576
/main.py
79635f95afe71e9bda3a4d7b3657700fba36953d
[]
no_license
https://github.com/Guest400123064/Treectory
15ec107f5abfe69fc4e9daa9e9ffdb327f7eeb21
42c30690d9ecb9ae5d3cced434a5a221b04bbc54
refs/heads/master
2020-04-29T10:08:35.942637
2019-03-17T11:25:02
2019-03-17T11:25:02
176,051,021
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import json import datetime import math import os def kwhToTree(kwh: float)-> float: ''' A simply converter that convert kilo-watt hour into number of trees consumption. This is calculated with average quantity of carbon a tree can absorb and equivalent carbon consumption used...
UTF-8
Python
false
false
3,698
py
7
main.py
2
0.629259
0.624662
0
101
34.613861
118
russelldj/reconstruction_camera_vis
10,874,857,218,232
b12339d525be95001774995c95ae512cd2150a60
6bb21a0c8668b362b352d9477f80d99db8805fa4
/flying_camera.py
53859590e5e5cc5c9f4b9294ac743daae97e0095
[]
no_license
https://github.com/russelldj/reconstruction_camera_vis
68d2c51a352555d53251a9ba0296de6e6143805e
bfb3ea8aa840307c1786f7ae2614355e92d0016c
refs/heads/master
2021-09-05T08:59:11.382059
2018-01-23T22:48:45
2018-01-23T22:48:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#This should be copied into the blender python console from mathutils import Vector import numpy as np import os class flyingCam: def __init__(self, normal, fovh=50,fovv=40): """this is the only non-default constructor. It takes in the world-up tuple, the horizontal fov and the vertical fov""" cam =...
UTF-8
Python
false
false
7,650
py
2
flying_camera.py
2
0.618824
0.596601
0
146
51.39726
162
praekeltfoundation/mc2
1,743,756,742,612
fdbae1448d433155b7ae37471375f3f15d9547e6
90539451715e39fd35d7385bb8b566113b99f5dd
/mc2/controllers/urls.py
d2fabf6d078f643461e33af155944393d752b0b9
[ "BSD-2-Clause" ]
permissive
https://github.com/praekeltfoundation/mc2
3445695964f41c52c6acaed61c31916c857eec9e
5367a8aed309fade0f17bc72efa099b0afc76aa7
refs/heads/develop
2021-10-21T17:05:41.215783
2018-03-09T08:40:51
2018-03-09T08:40:51
45,339,984
0
0
BSD-2-Clause
true
2019-03-05T06:34:38
2015-11-01T12:42:17
2018-11-06T07:34:11
2019-03-05T06:34:24
5,546
4
1
10
JavaScript
false
null
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url( r'^base/', include('mc2.controllers.base.urls', namespace='base')), url( r'^docker/', include( 'mc2.controllers.docker.urls...
UTF-8
Python
false
false
359
py
81
urls.py
48
0.62117
0.615599
0
15
22.933333
76
Dmitriysp55/E-shop-lvl2
16,037,407,917,986
150ed4a253ee5390ab764bca61f2200c7e70d396
c7a5f6eb6a74fb634e19b21113c7e15f592af826
/models/Product.py
23ff937ae1cb4633dc55413111c0906fdf21323d
[]
no_license
https://github.com/Dmitriysp55/E-shop-lvl2
b1cb7e82dd421c8647608c8009d4b6c298f29d46
3193c7f6c1a98b59431eac0c2099f6a446a29093
refs/heads/main
2023-07-08T21:00:55.110157
2021-08-17T10:20:54
2021-08-17T10:20:54
397,206,516
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .Money import * class Product: def __init__(self, id , image_path, name, price): self._id = id self.image_path = image_path self._name = name self.setPrice(price) def setId(self,id): if type(id)!= int: raise TypeError("Id must be of t...
UTF-8
Python
false
false
1,988
py
17
Product.py
16
0.50503
0.504024
0
77
23.844156
59
daquintero/voto-studio-backend
1,271,310,347,972
6276462362a4b95f209f0bec686966cd372fea07
ea01b598447a26766f1906db4367f37d1fdd280f
/voto_studio_backend/corruption/migrations/0003_auto_20190219_1636.py
a1b23cd0d673638486fa24aae3a0730e4b24c0e9
[]
no_license
https://github.com/daquintero/voto-studio-backend
40eaa16d679e3f3e4b7cd4fff384d87ad48ac7da
f99995b1b4531573af08387795b6b97e3c8e427e
refs/heads/master
2023-06-26T06:12:17.885508
2019-04-16T13:41:17
2019-04-16T13:41:17
247,274,876
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.7 on 2019-02-19 16:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('political', '0001_initial'), ('media', '0001_initial'), ...
UTF-8
Python
false
false
3,837
py
114
0003_auto_20190219_1636.py
111
0.599166
0.589002
0
100
37.37
136