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
txazo/txazodevelop
7,069,516,192,335
9c426c6732ce582c769c3c76b7ec757b97e74dc2
ac9b510bcc73d41646da53f7a12c3f15dab744bf
/python/test/4.py
4f22b113022c4d0043ff14130d372bc70101c3a9
[]
no_license
https://github.com/txazo/txazodevelop
5eb73e12f8b2f2de58808a3c594d5e1724fbdbdf
c07eebf832b34172b807b9124bd5a81a390b1b05
refs/heads/master
2020-03-25T22:44:25.477523
2018-08-10T05:16:06
2018-08-10T05:16:06
29,594,975
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # tuple:不可变更 s1 = (12, 12.5, True, "hello") print s1, type(s1) print s1[0] print s1[-1] # 最后一个 print s1[-2] # 倒数第二个 print s1[:3] #(0, 1, 2) print s1[1:] #1到最后 print s1[1:3] #(1, 2) print s1[0:4:2] #(0, 2) print s1[3:1:-1] #(3, 2) # list:可以变更 s2 = [12, 12.5, True, "hello"] print s2, type(s2) pri...
UTF-8
Python
false
false
449
py
803
4.py
640
0.568922
0.431078
0
24
15.625
30
gaoyan10/server-sdk-python
5,214,090,313,927
cdcae6704a4565480beed61d73236f679ab7620d
692b8244918908c1763c21c0764c7a73b862b24c
/rongcloud/api.py
739606631b25990d3cbde1beb08d2ad0eef11daa
[ "MIT" ]
permissive
https://github.com/gaoyan10/server-sdk-python
880017c754dcb09ce6509d2c89c6b0f0e3d037bb
0090b6cae47ee6fb0174a022a1185cedde957bd8
refs/heads/master
2020-12-11T04:00:28.431776
2014-12-26T10:07:09
2014-12-26T10:07:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python # coding=utf-8 import os import json import logging import random import datetime import hashlib import platform import requests import util import exceptions from version import __version__ class ApiClient(object): api_host = "https://api.cn.rong.io" response_type = "json" libra...
UTF-8
Python
false
false
16,328
py
5
api.py
4
0.569677
0.557634
0
406
33.362069
172
xuanxin-L/Dissertation_Work
14,920,716,424,928
dd9e64a2bb0ab270d3b367ec7b19cb18ec27d999
27f2ee8c92b32a4ef2915148c4886f1da45774ee
/Chapter8/walking_data/gait_separation.py
0cb426b95c1cd7f988ec7834dc4d6d6f6e835b01
[]
no_license
https://github.com/xuanxin-L/Dissertation_Work
5589e3c4cfb363c22312e54375df85aeeb487d93
2cefebeeb04e48419c78d2a7753665c93456b65c
refs/heads/master
2022-06-14T14:34:44.522936
2020-05-03T21:58:13
2020-05-03T21:58:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jul 26 18:39:41 2018 @author: Huawei """ import numpy as np from scipy import signal import matplotlib.pyplot as plt from hip_ankle_points_calculation import get_hip_point, get_ankle_point def sep_gait_by_force(motion, grf, st_walking, ed_walking, num_nodes, ext_nodes, ext...
UTF-8
Python
false
false
21,839
py
998
gait_separation.py
58
0.475434
0.448647
0
463
46.170626
133
smunix/brickv
1,108,101,577,842
3cadc54ec3fe01e9174eefaf6b89117aa0e4cb45
076015f6a45d65818d5c700a8896ed6df780a47a
/src/brickv/build_pkg.py
115cd2aa8e9ae78c4218cfa7bf2a5c80d932e875
[]
no_license
https://github.com/smunix/brickv
0e0c6e995c50c467b63ec4131ea9904b3e6d8f83
2d78a242bc25131e5c5122245e43caa33e1fbb0b
refs/heads/master
2021-01-16T18:53:50.629090
2011-12-09T12:23:26
2011-12-09T12:23:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ brickv (Brick Viewer) Copyright (C) 2011 Olaf Lüke <olaf@tinkerforge.com> 2011 Bastian Nordmeyer <bastian@tinkerforge.com> build_pkg.py: Package builder for Brick Viewer This program is free software; you can redistribute it and/or modify it under the terms of the...
UTF-8
Python
false
false
4,135
py
35
build_pkg.py
29
0.601838
0.589744
0
115
33.947826
254
nkapetanas/Deep-Learning-Image-Classifier
5,093,831,243,365
8ce9e1f9a8f4ac6602ab8eaf9b4a2d6be17df00c
0dc2674d53fa893170079e79795bd1ab711a7076
/cnnSVHN.py
0e923273219f5adcd29b8cdc7c80aceb7067d03e
[]
no_license
https://github.com/nkapetanas/Deep-Learning-Image-Classifier
0dcb509d1d416cac913cad1f9b56a3ad959c6b26
5d0cf41625170c9fa799b32fbca0e860ada2d197
refs/heads/master
2022-04-07T15:31:25.656205
2020-01-27T20:40:43
2020-01-27T20:40:43
231,837,294
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import numpy as np from scipy.io import loadmat from sklearn import metrics from sklearn.model_selection import StratifiedKFold np.random.seed(1400) import itertools from keras.models import Sequential from keras.layers import Dense, Flatten, Conv2D, MaxPool2D from keras.callbacks import EarlyStopping, Mode...
UTF-8
Python
false
false
5,559
py
2
cnnSVHN.py
1
0.67692
0.653535
0
150
36.06
106
anstepp/junkyardTemplesSolanum
2,113,123,911,496
19f5f755f8baea09d876af9390f6c2c88cdf168e
8c3bf4b4800ab72666f9add6b66ca628eb319e5d
/testGenePlay.py
07411673f9d35fcef4f06b8a0db2b43f1f6289eb
[]
no_license
https://github.com/anstepp/junkyardTemplesSolanum
0b0dee326d33ce70dc2e0961dda56485f383f032
af4bd0543a633680ae42e10d2eaa6e74fba02cd2
refs/heads/master
2020-05-17T11:17:43.642121
2017-05-08T14:58:35
2017-05-08T14:58:35
38,716,606
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rtcmix import * import utils, words import random, sys rtsetparams(44100, 2) load("SPECTACLE2") start = 0 #chosen = random.choice(words.words) #file = chosen[1] for thing in words.words: rtinput(thing[1]) amp = 10 env = maketable("curve", 1000, 0,0,-2, 10,1,2, 1000,0) dur = DUR() fftsize = 16384 window...
UTF-8
Python
false
false
889
py
19
testGenePlay.py
18
0.626547
0.455568
0
38
22.421053
91
skdonepudi/100DaysOfCode
5,299,989,666,111
cdc3b695a5a8f843965a83562593f438aa6e63b0
9818262abff066b528a4c24333f40bdbe0ae9e21
/Day 16/SetNumbers.py
b0da7bb7d42efc289f22494e47d87c54e7658ceb
[ "MIT" ]
permissive
https://github.com/skdonepudi/100DaysOfCode
749f62eef5826cb2ec2a9ab890fa23e784072703
af4594fb6933e4281d298fa921311ccc07295a7c
refs/heads/master
2023-02-01T08:51:33.074538
2020-12-20T14:02:36
2020-12-20T14:02:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Set numbers You are given the binary representation of a number. You must consider the highest number of set bits in the binary representation to complete your task. For example, is represented as in binary and it contains four set bits (1-bits). You are also given a number and your task is to determine the num...
UTF-8
Python
false
false
1,168
py
379
SetNumbers.py
282
0.725171
0.708048
0
29
39.310345
236
atom015/py_boj
6,133,213,336,532
578b957f56cbd4d38e0ac365cc318b313500eac9
592498a0e22897dcc460c165b4c330b94808b714
/2000번/2309_일곱 난쟁이.py
0b837fff035012f572d6763c934cbd76d02b85fa
[]
no_license
https://github.com/atom015/py_boj
abb3850469b39d0004f996e04aa7aa449b71b1d6
42b737c7c9d7ec59d8abedf2918e4ab4c86cb01d
refs/heads/master
2022-12-18T08:14:51.277802
2020-09-24T15:44:52
2020-09-24T15:44:52
179,933,927
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def main(li,s): for i in range(9): for j in range(9): if i != j: if 100 == s-(li[i]+li[j]): for k in sorted(li): if k != li[i] and k != li[j]: print(k) return num_li = [] for i in range(9)...
UTF-8
Python
false
false
468
py
480
2309_일곱 난쟁이.py
478
0.408213
0.39372
0
14
28.571429
53
bigheadG/gardCharge_rpi
4,183,298,163,513
3aa7423ccef1ffd8ffffbf60b11d24f9b4e4eb8e
73d3ccab5158d4f33d81818eef0b7cd0a5bf3275
/code/packBTSend.py
b492b5da981c5347a93bb0ccd2b8743f6051bd24
[ "MIT" ]
permissive
https://github.com/bigheadG/gardCharge_rpi
15d23af9cd52b45ffedd24cc89ba8843ba7e99fb
45135cf83ac0daa0114d0409bbcfcbd982071ef1
refs/heads/master
2020-04-29T02:15:33.846878
2019-04-02T09:46:07
2019-04-02T09:46:07
175,760,187
8
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# #Code is under develop for control GC101 # class Gdefine: CMD_DRIVE = 1, CMD_CUTOFF_TIME = 2 CMD_TIMER_EN = 3 CMD_READ_MEM = 4 CMD_READ_MEM_A = 4 CMD_FACT_INIT = 5 CMD_SAMPLE_TIME = 6 CMD_READ_CONFIG = 7 CMD_ERASE_QUE = 8 CMD_RUN_TEST = 9 CMD_SET_TRIP_AMP = 11 CMD_SET_OFFTIME = 12 CMD_READ_CONFIG_2 = 14...
UTF-8
Python
false
false
1,311
py
7
packBTSend.py
4
0.584287
0.482075
0
55
22.709091
82
thelebster/zapret-info-parser
6,682,969,114,065
d83e6851ef14c5b867c50e860c0a98f518721b0e
8cb749f1c834495e0b98da16d45a028dd30c5259
/updater/update.py
c573edcc4f255a0c79071a998fb9d24ca2be30ef
[]
no_license
https://github.com/thelebster/zapret-info-parser
187fea5215b2e0a3490318720615bab88c8b01b2
1c053b1f38594a05225f130d234551a282c24d23
refs/heads/master
2021-01-05T14:11:03.547108
2020-03-01T19:23:07
2020-03-01T19:23:07
241,046,135
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import glob from pymongo import MongoClient import ipaddress from bson.int64 import Int64 MONGODB_URI = os.getenv('MONGODB_URI', 'mongodb://root:root@localhost:27017/blocked?authMechanism=DEFAULT&authSource=admin') MONGODB_IMPORT_COLLECTION = os.getenv('MONGODB_IMPORT_COLLECTION', 'blocked_new') MONGODB_PROD...
UTF-8
Python
false
false
3,993
py
7
update.py
4
0.498873
0.489356
0
114
34.026316
124
amyc28/Premiere-Pro-Silence-Cutter
13,786,845,029,431
9fe608314030874affd5d54da4c8916be138f402
073412f89865e4f726bf14a115630c52a17658e6
/MouseTracker.py
94b73dd02f49c68658e2a0193faa58b9b2e811ca
[]
no_license
https://github.com/amyc28/Premiere-Pro-Silence-Cutter
bbe7347b0dc7e74f0bd5a5b56f2d0edd8b2885df
9787c3648790b2466c11cff1708a78190b0e6794
refs/heads/master
2021-02-19T07:38:55.288611
2020-02-28T03:20:47
2020-02-28T03:20:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from PIL import ImageGrab import cv2 from directKeys import click, queryMousePosition, PressKey, ReleaseKey, SPACE import time import math from pynput.keyboard import Key, Controller as KeyboardController from pynput.mouse import Controller, Button as MouseController import pyautogui whil...
UTF-8
Python
false
false
484
py
3
MouseTracker.py
2
0.762397
0.756198
0
14
32.142857
89
S-boker/Personal-Projects-
10,015,863,780,553
7c7874bfd98986a3de47f095df60da0399e5b71a
281e4720eab3c1ae339bd0f6c5554e9c35a1fd79
/Sudoku_Solver.py
f7959557e3ec71e2d2e5e3d7ec18691434e15818
[]
no_license
https://github.com/S-boker/Personal-Projects-
869a19282ae357bc884b188cfa1e8ba819596b6c
b03772707981e006b95e90be6b851d6ccf12373d
refs/heads/master
2021-01-08T03:48:21.486816
2020-02-20T14:45:26
2020-02-20T14:45:26
241,903,557
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Shohum Boker # 2/19/20 # initializing lists box0 = [0] * 9 box1 = [0] * 9 box2 = [0] * 9 box3 = [0] * 9 box4 = [0] * 9 box5 = [0] * 9 box6 = [0] * 9 box7 = [0] * 9 box8 = [0] * 9 boxes = [box0, box1, box2, box3, box4, box5, box6, box7, box8] # Okay function def okay(b, sq): # box test bs...
UTF-8
Python
false
false
4,982
py
1
Sudoku_Solver.py
1
0.44159
0.414894
0
156
29.935897
107
LMZimmer/Auto-PyTorch_refactor
12,429,635,357,991
ee60ab19dfca60cba566b1683320e744d508d9d0
06f8f1b812e6651222bdb8299b840c09f919d89c
/autoPyTorch/search_space/search_space.py
5587eff15d5947ec47913b42ef7622960b71bd20
[ "Apache-2.0", "LicenseRef-scancode-philippe-de-muyter", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/LMZimmer/Auto-PyTorch_refactor
4cda7658319db4faf894895f046fac49ebd07757
ac7a9ce35e87a428caca2ac108b362a54d3b8f3a
refs/heads/master
2023-02-19T02:02:57.256438
2020-12-08T14:18:27
2020-12-08T14:18:27
281,992,226
0
1
Apache-2.0
false
2021-01-22T14:53:10
2020-07-23T15:42:51
2020-12-09T14:27:36
2021-01-22T14:53:09
877
0
2
12
Python
false
false
import typing from typing import Optional import ConfigSpace as cs class SearchSpace: hyperparameter_types = { 'categorical': cs.CategoricalHyperparameter, 'integer': cs.UniformIntegerHyperparameter, 'float': cs.UniformFloatHyperparameter, 'constant': cs.Constant, } @typ...
UTF-8
Python
false
false
4,808
py
67
search_space.py
62
0.571339
0.570923
0
153
30.424837
93
Heisenberg2017/LogColorizer
171,798,707,333
656b568229bc010d68a4a0352c55c979d88abbd5
8b968f85f54966924626e7bb89ef73f71f466ba0
/monitor/api.py
975711603548e41f655c13002b103fafed0dc7e4
[ "MIT" ]
permissive
https://github.com/Heisenberg2017/LogColorizer
31eb0d7e565a574adddfe9ae7d09451c2a49ce9e
61ac64d1e4e8b1cc4d0e3104d25ff20d7ce39262
refs/heads/master
2020-07-23T04:46:00.549544
2019-12-09T08:56:27
2019-12-09T08:56:27
207,447,585
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from monitor.watcher import Watcher import time try: import configparser except ImportError: import ConfigParser as configparser def multi_watch(args): gens = [] config = configparser.ConfigParser() config.read('conf/monitor.conf') for name in config.sections(): print('-----[%s]-----' ...
UTF-8
Python
false
false
787
py
13
api.py
13
0.598475
0.597205
0
25
30.48
108
AlexLSmith/mqtt-app
3,341,484,590,809
7fe1c3d54a4ef1692a755e4c09885b2029961358
ac219f70f734dbe108cee4612af5c046dfdd5f05
/mqtt_app/config.py
f204390628cfea120c75b6a73e5f4e8265a8f6fe
[]
no_license
https://github.com/AlexLSmith/mqtt-app
8cb6a302be6ada8751895867696b6ca64e30ace8
31c4f367caadc0c20db41d7e2448b6e98bdc9f15
refs/heads/master
2020-06-21T13:52:30.987317
2019-07-18T07:20:17
2019-07-18T07:20:17
197,472,528
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
HOST = "localhost" PORT = 1883 SENSOR_TOPIC = "sensor/upload" AGGREGATE_TOPIC = "sensor/aggregate" AVG_TIME_PERIODS = (1, 5, 30)
UTF-8
Python
false
false
130
py
7
config.py
4
0.7
0.638462
0
6
20.666667
36
yuanhaoz/Python-Scrapy
15,556,371,573,625
1077688a82302b5b94a732cdf593fef3de445273
686be27d73e4abbe45d51bfa64c80bcadc89ceb9
/test/test2.py
35457996be6ae6f4b1b4cbde13f93d8132f8a373
[]
no_license
https://github.com/yuanhaoz/Python-Scrapy
30cbfc7dd9096d02da740e0d3207ba3ae017d964
5c9d7b2e83c3fdf88c77792f9ad189b8a2d35905
refs/heads/master
2020-12-01T05:41:58.159997
2016-08-27T07:53:45
2016-08-27T08:09:07
66,702,527
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- ######################################################################## # # Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved # ######################################################################## import md5 import time import urllib import re import scrapy from scrapy.http import Re...
UTF-8
Python
false
false
15,897
py
38
test2.py
37
0.579865
0.554997
0
348
41.867816
244
dangpzanco/disciplina-fala
240,518,198,735
62d8a7408590e1acf65e1a4390595dec684cee5f
0a84d748400b9c7fc9121b4a76a2bf8d1d75de14
/experiment/experiment.py
783fb17d4ab7989bbd10a178b7e20a1beaf43cec
[]
no_license
https://github.com/dangpzanco/disciplina-fala
3649a103777370fb7a8b15fce37e97446074c9f4
04b4213084969304d44efa3adb6198af101cfd83
refs/heads/master
2020-07-30T21:35:56.252159
2019-12-04T14:19:40
2019-12-04T14:19:40
210,365,686
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import pathlib import soundfile as sf import librosa import librosa.display import numpy as np import numpy.random as rnd import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from tqdm import trange import shutil rnd.seed(0) metadata = pd.read_csv('../analysis/speechmetrics_results.csv') met...
UTF-8
Python
false
false
3,893
py
27
experiment.py
16
0.621885
0.612381
0
144
26.020833
75
felipediel/django-commerce
463,856,474,394
6e1f1cadcaf9ca3939faeba100d65e749486a4f2
47045b7b7ef3c6f67bef89cbbc82a597773eb366
/commerce/views/cart.py
738193581c02f6c99871727bb34cb553ad31b954
[ "Apache-2.0" ]
permissive
https://github.com/felipediel/django-commerce
06fecdbd302b33c3cce4284ffc9fe9219a57672e
b992bf4c81ca6dfaad9ccd423d25fba9d255f159
refs/heads/master
2023-06-16T14:51:49.301650
2021-07-12T07:04:39
2021-07-12T07:04:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.contenttypes.models import ContentType from django.shortcuts import get_object_or_404, redirect from django.utils.translation import ugettext_lazy as _ from django.views import View from django.views.generi...
UTF-8
Python
false
false
9,968
py
4
cart.py
3
0.626404
0.623997
0
248
39.193548
112
abu-sayem/Data-Structures-Algorithms-And-Databases
5,085,241,310,017
b39f55f73025ed2ef605a8f93881610365a9b4d6
d78a742d4b4109c3af39216edfc3f8fb5706cc36
/leetcode/653. Two Sum IV - Input is a BST.py
91ea31c213d9121589b19fca7e7807b8ddbc6318
[]
no_license
https://github.com/abu-sayem/Data-Structures-Algorithms-And-Databases
d4a39278e1913e758f7515ad2e697d2253a92454
f593161d912b3521249f9cfd410655d6a5ce4355
refs/heads/master
2023-04-20T03:42:27.292639
2021-04-27T03:30:24
2021-04-27T03:30:24
98,731,558
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def findTarget(self, root: TreeNode, k: int) -> bool: store = set() list = [root] while list: temp =...
UTF-8
Python
false
false
581
py
33
653. Two Sum IV - Input is a BST.py
33
0.487091
0.487091
0
22
25.409091
57
roger3/pom
15,092,515,123,551
d2f2fe7ad2efab7b7a647e20570772237b148b22
28359230e823d6dc6fbe53f607a12f1b30a74d9e
/pom/game/migrations/0028_auto_20160222_2227.py
01216c647f4a825a39d0ade3e7c2c8c82bd35b08
[]
no_license
https://github.com/roger3/pom
5bd9720adabe7f3338ce0a24756846eac0991bb9
f3e2227064fade140c24046b054a7f006adc90b3
refs/heads/master
2019-07-22T18:33:59.211289
2016-05-20T13:37:48
2016-05-20T13:37:48
55,376,032
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-22 22:27 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('game', '0027_auto_20160222_2215'), ] operations = [...
UTF-8
Python
false
false
591
py
25
0028_auto_20160222_2227.py
20
0.64467
0.590525
0
21
27.142857
154
choandrew/Project-Euler-with-Python
4,183,298,162,528
ab4bc22415e3110fa4954f239c8863fe2917a7a9
233f22c397e78024cdff3d8c8006a829fba34659
/Project Euler 7.py
38148192e61c0505cfd46b35fc7173899d642f5b
[]
no_license
https://github.com/choandrew/Project-Euler-with-Python
96aff8daa57cf84aa8b9a904c0fbaa21ae63b91b
20f270869dff99d5b3ed651833240d38277b4ea2
refs/heads/master
2021-01-01T06:04:57.693954
2015-04-23T07:51:18
2015-04-23T07:51:18
31,481,912
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? """ import math from datetime import datetime startTime = datetime.now() #to measure speed n = 10001 # int(input("What number prime do you want? ")) primes = [2] m = 3 while ...
UTF-8
Python
false
false
555
py
15
Project Euler 7.py
14
0.625225
0.574775
0
29
18.137931
74
bschnitz/recipes
11,828,339,942,629
5f074f5d619648f5e382267a19cc6b7972c37625
efcecf1f695e371dfbbc5c58ac7ef7ad33366e90
/recipes/gui/form/recipe/instructions/instruction_section.py
c1b2d0b6e558a881a9410d7089317c64401d29b2
[ "MIT" ]
permissive
https://github.com/bschnitz/recipes
7d584376199f2a2e5c4dfa537106cdf2e3192292
8af348774a1edc11ccab3da9753bc456c19f2000
refs/heads/master
2022-05-22T21:39:35.309599
2022-03-22T08:22:01
2022-03-22T08:22:01
155,336,136
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import wx from recipes.gui.fonts import Head2 from recipes.gui.form.framework import TitleBox from recipes.gui.form.framework import PaddedBox from recipes.gui.form.framework import AutoResizeMultilineText from wx.lib.expando import ExpandoTextCtrl, EVT_ETC_LAYOUT_NEEDED class InstructionSection: def __init__(sel...
UTF-8
Python
false
false
1,022
py
46
instruction_section.py
42
0.690802
0.676125
0
29
34.241379
80
mhuijsmans/sandbox
11,201,274,708,525
83ef2f9b51371ca26614c716a95fd3df45fe7f9a
1e5e98034373ac7b58fe11f9b4a3bbb5e2d8acf2
/c++/scons_hierarchical2/components/comp4/test/SConscript
4d65b141c7127f3b8a456173aef0d108dc28e859
[]
no_license
https://github.com/mhuijsmans/sandbox
9718cb4414975502033abe791d2c2de747c5a04c
eb036140d91ea74af1b0215f5d5899ca070bd26c
refs/heads/master
2022-12-10T14:33:45.213736
2022-12-08T21:57:30
2022-12-08T21:57:30
44,774,226
1
1
null
false
2022-12-10T06:22:02
2015-10-22T21:26:43
2022-01-09T00:56:18
2022-12-10T06:22:02
6,809
0
1
142
Java
false
false
Import("env") opt = env.CreateClone('comp4.test') # COMP4 depends on COMP2 opt.BuildTests('comp4_tests', [ opt.Glob('*.cpp') ] )
UTF-8
Python
false
false
128
1,639
SConscript
1,364
0.679688
0.648438
0
4
31.25
53
swopnilnep/kattis
15,161,234,600,391
c01f59f5c233efbfb5bdbc73c779779a64814641
d5919f63f2a0f0f5758be0c9bdcc12b61a1bcd7d
/python3/countingstars/countingstars.py
123cffc730ece9c5b5465704355d2a9c47ff4c01
[ "MIT" ]
permissive
https://github.com/swopnilnep/kattis
e7f18f34c6be374aae89c2011155bc0d852d614e
8e41c83985137fad20e59416a3a0f9c3ed0ae847
refs/heads/master
2021-06-20T06:04:33.645790
2021-01-28T09:15:37
2021-01-28T09:15:37
167,257,410
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from sys import setrecursionlimit, stdin setrecursionlimit(10 ** 4) def remove(items, x, y): if items[x][y]: items[x][y] = False for i, j in ((0, 1),(0,-1),(1, 0),(-1, 0)): x_mod, y_mod = x + i, y + j if not any((x_mod < 0,\ y_mod < 0,\ x_mod ...
UTF-8
Python
false
false
1,156
py
62
countingstars.py
31
0.479239
0.463668
0
35
32.057143
77
ZakHussain/Python_OOP
15,693,810,502,465
a649a2d9e0246762c6971d7a8a9554946912cccb
d517bd40bfe43938dea47b0a815d8d3660e4609e
/Building_Objects_OOP.py
63d3e8de1f9ebc5eb0507391f8f06c67426df9b4
[]
no_license
https://github.com/ZakHussain/Python_OOP
6e943a9d31ad333accaeb353e06bd0d0090bbeb7
953285985836b8e05fef8b6178d0541dfc066fbb
refs/heads/master
2021-01-22T07:27:18.653986
2017-02-13T11:15:28
2017-02-13T11:15:28
81,816,207
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# The Goal of this program is to get practice with Object Oriented Programming (OOP). # Here we create the 'blueprints' for 4 kind of objects - Cat, Human, Bike, and Car. # The Cat object requires a color, type, and age parameter to create an instance of a 'Cat'. class Cat(object): def __init__(self, color, type, a...
UTF-8
Python
false
false
3,015
py
3
Building_Objects_OOP.py
2
0.700166
0.68325
0
100
28.84
96
andreas-ibm/mqtt-bridge-websockets-python
6,674,379,220,142
e9197f9b46df068933ff379fea588179b843f103
fa4fe37bd76285ed0cbc1216908c22f43b1af427
/app.py
1ca3b2dea51da2e6e8552b381087e4410541095e
[]
no_license
https://github.com/andreas-ibm/mqtt-bridge-websockets-python
80c62d7805c81733135ba76a7ad3a71f61b84c59
362ab7654e9222c8ef54991c9a96b0433690305c
refs/heads/master
2023-05-15T05:58:22.138023
2023-05-02T09:40:58
2023-05-02T09:40:58
236,773,791
0
1
null
false
2023-05-02T09:41:00
2020-01-28T15:53:18
2020-01-28T15:53:49
2023-05-02T09:40:59
2
0
0
0
Python
false
false
# MQTT Standalone bridge for sending data using WebSockets import argparse import paho.mqtt.client as paho import time import threading import uuid from flask import Flask parser = argparse.ArgumentParser() parser.add_argument("-s","--sourcebroker", help="The hostname of the broker to subscribe to") parser.add_argum...
UTF-8
Python
false
false
4,318
py
3
app.py
1
0.714451
0.707967
0
103
40.854369
176
GraphicalDot/Assignments
13,116,830,124,943
bd7c2ae7710ea045235c97557a0b59128677f464
c904a0066c22f54c5bdb747bd822e8a522d94808
/assignment_1_nov_2014.py
c3d4c047cc4f455c5cab4071eb97c7324ad9dcb8
[]
no_license
https://github.com/GraphicalDot/Assignments
c273f3cf66f2012583e0fc4552f85d914fefaec9
9632f9fa1284a00001fad672a2456e3f67379012
refs/heads/master
2021-05-28T07:12:04.582583
2015-01-13T08:26:03
2015-01-13T08:26:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python def Upto_you(): """ Write the most fancier 10 if, else statements, Its upto you """ pass def sort_list(): """ 1.Prepare a list of all alphabets 2.Prepare a list by shuffling them and joining them without spaces 3.From this list which will have 20 elements, prepare a list of dictionar...
UTF-8
Python
false
false
2,970
py
4
assignment_1_nov_2014.py
4
0.643771
0.610101
0
120
23.708333
140
tedhtchang/kfserving
16,389,595,216,730
3e53452c7d94319102fe8b3d9bf10cca9ee1cce9
7d476ec8de08ccdc4e986faefe0512b205c0d219
/python/kserve/kserve/storage/test/test_s3_storage.py
c52d52f97a4bfd501d7d97569dfb62c08ea85b73
[ "Apache-2.0" ]
permissive
https://github.com/tedhtchang/kfserving
67912db2e7e39805e2048e277b3771b156bfd679
f2f0717a9d6341b6ec9b939bdd324b2c8c507551
refs/heads/master
2023-08-17T22:25:43.120863
2023-08-06T21:36:10
2023-08-06T21:36:10
303,819,073
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2021 The KServe Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
UTF-8
Python
false
false
5,955
py
224
test_s3_storage.py
81
0.660118
0.645844
0
176
32.835227
85
samd-a/ebshare2.0
7,078,106,141,143
abb6d33646fd1d11d1ae35b73c0824866dd1945b
9d41222e8e2359d53b3f776a941675f9056cea90
/books/models.py
3ee18ec00be525814ef033c40655a31dac5de396
[]
no_license
https://github.com/samd-a/ebshare2.0
40b0a3ecc6e70a1a8f1fbe0653fd7305dabf11bd
ffa4ed4f107281095c796756711b6f57285da8b2
refs/heads/master
2021-01-10T04:00:26.210803
2015-12-11T11:09:55
2015-12-11T11:09:55
47,309,176
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class book(models.Model): user = models.ForeignKey(User) book_title = models.CharField(max_length=100) book_author = models.CharField(max_length=60) cover = models.ImageField(upload_to='book_cover') ...
UTF-8
Python
false
false
1,080
py
12
models.py
8
0.700926
0.676852
0
35
29.885714
67
zrq495/OnlineJudge
11,235,634,463,095
dca16921fdcbeac0b8272a7ccc61e6ebc515ce80
9bd23c46e3f594d9557e3c049f753b05adff2b94
/oj/core/jinja.py
fee18fd552567518e3859284c884da84db8c0123
[]
no_license
https://github.com/zrq495/OnlineJudge
26a5f865734c306f521b922ecf2c46e74d6fe905
44be892ed657f462fb441d785c8550fc144f8896
refs/heads/master
2021-01-19T22:05:27.492272
2015-11-20T09:00:40
2015-11-20T09:00:40
31,713,677
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from datetime import datetime, timedelta from jinja2 import Markup import pygments from pygments.formatters.html import HtmlFormatter from pygments.lexers import guess_lexer from oj import app def highlight(code): try: lexer = guess_lexer(c...
UTF-8
Python
false
false
2,596
py
134
jinja.py
93
0.596906
0.577769
0
87
27.229885
72
hellomeeddie/flask_saverly_api
15,814,069,603,872
8c3aa6f042990f70ef3a58c4f82812c26fdcc304
07c51b31eb3a70189ac1be3f9f0b2cef140068cc
/dan/insert.py
3678d1eb2ec2b2061d89e213ff7aff2daa1fd2d0
[]
no_license
https://github.com/hellomeeddie/flask_saverly_api
4433682788c71a10e70147a22ac719cb282962f7
0a3a11c76d517a9ccb9dd7e2f237cfebb161330c
refs/heads/master
2020-12-28T22:02:02.369035
2016-07-19T02:45:41
2016-07-19T02:45:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Daniel Engelberth from py2neo import authenticate, Graph, Node, Relationship #Params: t - String, type of node being inserted (User, Goal, Budget, etc.), info - Array, array of all other info to be used to set up node properties #Returns: None #Description: Inserts a new node into the Neo4j database that corre...
UTF-8
Python
false
false
4,372
py
3
insert.py
3
0.629918
0.617566
0
50
85.48
245
Nikkuniku/AtcoderProgramming
9,826,885,179,047
550e6f1f75bc4e863673a2cdfa8a915679b2bfd2
63b0fed007d152fe5e96640b844081c07ca20a11
/くじかつ/よるかつ50/C.py
999de7c70eed8d6057ad3477f79c698c5172ce11
[]
no_license
https://github.com/Nikkuniku/AtcoderProgramming
8ff54541c8e65d0c93ce42f3a98aec061adf2f05
fbaf7b40084c52e35c803b6b03346f2a06fb5367
refs/heads/master
2023-08-21T10:20:43.520468
2023-08-12T09:53:07
2023-08-12T09:53:07
254,373,698
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n=int(input()) h=list(map(int,input().split())) h_min=min(h) for i in range(n): h[i]-=h_min for j in range(n): if h[j]==0: print(h)
UTF-8
Python
false
false
155
py
2,078
C.py
2,067
0.509677
0.503226
0
13
10.769231
32
49ers-DB/Atlanta-Movie
19,542,101,197,174
d299880c948280a90a990cc98d0319ca15f61979
33ef7d427278c371b101b047459d7c669d5d8eff
/app/http/api/endpoints.py
0ae14ab032fd9d54570f94d7c158e7234d37e321
[ "MIT" ]
permissive
https://github.com/49ers-DB/Atlanta-Movie
ac808f7c8f07ca2cc3f28b7f2af877bf7647af74
1cff0760ba8b57831dd87f9d216b7b3ae4cac6e2
refs/heads/master
2021-07-08T05:09:01.582449
2019-11-30T04:06:46
2019-11-30T04:06:46
221,286,389
2
0
MIT
false
2021-01-05T17:19:22
2019-11-12T18:37:12
2020-01-10T01:05:52
2021-01-05T17:19:20
799
1
0
22
JavaScript
false
false
from middleware import login_required, admin_only from flask import Flask, json, g, request, render_template from flask_cors import CORS import pymysql.cursors from app.util.custom_jwt import create_access_token from app.services.LoginService import LoginService from app.services.ManagerService import ManagerService fr...
UTF-8
Python
false
false
9,235
py
61
endpoints.py
51
0.685328
0.680996
0
364
24.370879
80
ogrisel/probability
2,164,663,550,020
6ab68426a4274241e0bbe0ea6f151d41279ea6cd
3be42b83a15d022f5863c96ec26e21bac0f7c27e
/tensorflow_probability/python/internal/dtype_util.py
7c855239b7722135d0970333e0ddec8e30f23407
[ "Apache-2.0" ]
permissive
https://github.com/ogrisel/probability
846f5c13cddee5cf167b215e651b7479003f15d2
8f67456798615f9bf60ced2ce6db5d3dba3515fe
refs/heads/master
2022-11-09T10:53:23.000918
2020-07-01T23:16:03
2020-07-01T23:17:25
276,580,359
2
1
Apache-2.0
true
2020-07-02T07:37:58
2020-07-02T07:37:57
2020-07-01T23:17:33
2020-07-02T07:32:26
84,976
0
0
0
null
false
false
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
UTF-8
Python
false
false
8,725
py
149
dtype_util.py
138
0.662235
0.660287
0
275
30.727273
80
Raul-Pinheiro/projetoPessoal-controleDeEstoqueLojaVirtual
7,327,214,229,338
24b2a8cd753446b0ace893d4d053057301eaf720
5b5450b16fbde30b6677386cc5b6b54d24cb7bd2
/apps/controlEstoque/migrations/0009_auto_20200908_1824.py
5cd4b14b95b6a1f6794d68ad3cc6a646646d42ea
[]
no_license
https://github.com/Raul-Pinheiro/projetoPessoal-controleDeEstoqueLojaVirtual
c82e74fc6f1cbf08a26560171cfc31cd9f8f80cf
54afb55114e482aaa4e1b4ccbc0c1baddcd448a2
refs/heads/master
2023-01-22T16:39:53.818655
2020-12-08T16:20:58
2020-12-08T16:20:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.1 on 2020-09-08 21:24 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('controlEstoque', '0008_auto_20200908_1823'), ] operations = [ migrations.AlterField( model_name='produtos', ...
UTF-8
Python
false
false
668
py
70
0009_auto_20200908_1824.py
46
0.595808
0.523952
0
24
26.833333
97
GianfrancoJara/Exp3Backend_JaraGonzalez_004D
19,138,374,288,920
c5cd41ec07ab78ccf8ecdd78ae47ec85f0d9bda8
033b5305f992c7e06df8563e1e69c600c94e90bd
/SoporteIT/SoporteIT/core/migrations/0002_solicitud_comentario.py
95e1f3026e569c2a28f1ed3cd95d8895680d48ae
[]
no_license
https://github.com/GianfrancoJara/Exp3Backend_JaraGonzalez_004D
ac95fa2ec4cfa108a8da647042a93573c38a9795
b0950e70487269a587c3a53f24aa3cbc2d766a72
refs/heads/main
2023-06-07T11:50:07.967530
2021-06-22T02:04:14
2021-06-22T02:04:14
378,295,207
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2.3 on 2021-06-20 00:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AddField( model_name='solicitud', name='comentario', ...
UTF-8
Python
false
false
416
py
12
0002_solicitud_comentario.py
7
0.598558
0.545673
0
18
22.111111
89
christofsteel/mtgman
3,298,534,912,378
09a81e6923094022cd5fad1e4ac1afbeef4c1003
07ea87b4d3ec31f39452cc95c166b48c2c3abc1a
/mtgman/imports/faces.py
f80c78dfc7a1162f35ee80f400aece2187dc9ab3
[]
no_license
https://github.com/christofsteel/mtgman
ba5793cebc93cc0eba8d391b57f3b31c98067e6e
acaa2a83f5964845c0273778824c223486f233f0
refs/heads/master
2020-09-13T03:31:01.581869
2019-12-16T05:40:55
2019-12-16T05:40:55
222,644,442
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from . import create_dict from .card import get_card_from_sf from ..model import CardFacePrinting, CardFaceBase, CardFace def get_db_card_face(name, session): return session.query(CardFace).filter(CardFace.name == name).first() def get_db_card_face_from_sf(face, session): return get_db_card_face(face["name"]...
UTF-8
Python
false
false
3,794
py
19
faces.py
17
0.633105
0.633105
0
107
34.383178
140
Aswin-Sureshumar/Python-Programs
14,001,593,400,178
0103eaec5aed67e745956b0de8df3f3f3b654ff6
b42c827e57b6c24251dedf0894ba3a97eb876b7c
/list gen.py
f7e04b92baf5fb49a18e00903c340c02df6f359e
[]
no_license
https://github.com/Aswin-Sureshumar/Python-Programs
77f20bacefc32307b60a00e9345cae95dc14185f
0387eb732e1b43995d161b5088b49b1155405411
refs/heads/master
2022-12-22T11:53:04.864017
2020-09-22T10:23:57
2020-09-22T10:23:57
283,938,006
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n=int(input(" enter the elements req ")) list=[] for i in range(0,n): a=int(input()) list.append(a) print(list)
UTF-8
Python
false
false
124
py
76
list gen.py
76
0.596774
0.58871
0
6
19
40
jjsjann123/cs526_proj2_enhance
13,554,916,820,038
31854d3d854c4e2e93d021763022963544d50b4a
5b4a2fb592f39e07bf5de619071d3e75b7aa3cb0
/multiples.py
61a7bc8d9ab8412158f6ee979b768c6d649466b4
[]
no_license
https://github.com/jjsjann123/cs526_proj2_enhance
70dcb6c03410b50bfc059f2ec5dbacd81fd535d7
7c661664937d4c056b14bbd62bafe3a0a484f684
refs/heads/master
2020-03-28T18:57:39.803999
2013-12-09T02:00:25
2013-12-09T02:00:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from omega import * from cyclops import * from math import * from euclid import * from fun import * class multiples(object): global stellarColorMap orbitScale = Uniform.create('orbitScale', UniformType.Float, 1) radiusScale = Uniform.create('radiusScale', UniformType.Float, 1) orbitRatio = Uniform.create('orbi...
UTF-8
Python
false
false
6,007
py
34
multiples.py
17
0.736141
0.713334
0
157
37.267516
153
rogerh2/CryptoNeuralNet
1,271,310,336,432
a683168698beccf95893c48afeedde472c167fc8
a632f8e1faf3ae92608420f697673fc6485d2ef7
/CryptoBot/CryptoBotUnitTests/CryptoFillsModelUnitTests.py
497051f71b8d12180f1557eba650a9996ad6b41e
[]
no_license
https://github.com/rogerh2/CryptoNeuralNet
b70a7467d939db8836a04cc516747b780ab1b8eb
e2a14280b06a92d6822c50f53175ae33aad1e8a1
refs/heads/master
2022-12-09T08:55:54.592354
2020-06-08T02:37:29
2020-06-08T02:37:29
130,617,552
2
0
null
false
2022-12-08T01:09:08
2018-04-22T23:52:13
2020-06-08T02:37:55
2022-12-08T01:09:07
12,759
2
0
26
Python
false
false
import unittest import pandas as pd import numpy as np import CryptoBot.CryptoForecast as cf class CryptoFillsModelTestCase(unittest.TestCase): data_obj = cf.FormattedCoinbaseProData(historical_order_books_path=None, historical_fills_path=None) def test_does_create_formatted_input_data_with_one_order_book_an...
UTF-8
Python
false
false
1,053
py
49
CryptoFillsModelUnitTests.py
46
0.687559
0.679962
0
26
39.5
117
charulagrl/DataStructures-Algorithms
18,769,007,105,711
bb58c61a17bc572a519c2302c4096eb06f0a0a37
83a6fd80c8dd85824e7fbae07933be9a785ee18d
/CrackingTheCodingInterview/Arrays-and-Strings/check_if_string_contains_unique_characters.py
852b993e132edd9e8037b4d589ab06dc40883ff8
[]
no_license
https://github.com/charulagrl/DataStructures-Algorithms
f81b667eefedd24231342c1f11faeee9e94fdc41
ab97ba1e09488420042946e9655111fa438c94d9
refs/heads/master
2016-09-21T14:40:13.248958
2016-09-01T10:42:24
2016-09-01T10:42:24
36,951,364
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: UTF-8 -*- ''' Problem: Implement an algorithm to determine if a string has all unique characters. Naive Approach: Loop through each character in the string and check in the entire string if that character is present. If even one such character found, return False. Time complexity: O(...
UTF-8
Python
false
false
1,141
py
9
check_if_string_contains_unique_characters.py
8
0.718668
0.715162
0
39
28.25641
122
keerthanakumar/contest
15,573,551,434,214
c98879c04bae54ce5d87e3d9db912bf2a6904521
f25bd4cd35b31289e06159034065d16faf094eaa
/contest/teams/2PacV5_1/factory.py
eddc6816f135b28e67ea34dd8c3b6724edac22c6
[]
no_license
https://github.com/keerthanakumar/contest
28dc02609a54f40d36156545f3cf9df18acf6c11
3d29c4aa83232ff171051d7197c402323845c526
refs/heads/master
2021-01-01T18:17:08.329322
2014-04-29T18:47:55
2014-04-29T18:47:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from captureAgents import AgentFactory import distanceCalculator import random, time, util from game import Directions import game #our code from agent import * from offenseRole import * from defenseRole import * from inference import * import search from myUtil import * class MSBFactory(AgentFactory): def __init_...
UTF-8
Python
false
false
15,338
py
18
factory.py
16
0.734842
0.730017
0
418
35.69378
216
jaljs/myworkspace
17,540,646,454,370
a8cd40d32024a85f52d1c79bca9444da8e774413
409d4ad370e25c23691052645ef1eb2b6deaf341
/car/webcontrol/main.py
c4034c237400056b912a0d97906d65672d0162d4
[]
no_license
https://github.com/jaljs/myworkspace
5204de1ebda0ba1657d76ae90690706f89c325bb
c27240a022cccbc0bb52a6dd6d3f61217111b6ed
refs/heads/master
2021-01-17T15:26:44.217667
2018-06-06T10:20:11
2018-06-06T10:20:11
83,683,768
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 from bottle import get,post,run,request,template @get("/") def index(): return template("index") @post("/cmd") def cmd(): print("按下了按钮: "+request.body.read().decode()) return "OK" @post("/mcmd") def mcmd(): print("pull-------------->"+request.body.read().decode()) run(host="0.0.0.0"...
UTF-8
Python
false
false
343
py
63
main.py
6
0.60961
0.582583
0
14
22.714286
58
zhuping580/myflaskdemo
10,505,490,024,520
ebc4be3c42b24c12527743b87c6dee3720f608e6
988eb29092e518638130e53632f2a0910cea0e79
/app/cases.py
2c04c30b9c9e887c32ccbe51c6e8f30340b4abd0
[]
no_license
https://github.com/zhuping580/myflaskdemo
19515b59e90cfcfceb2fae0c1911caa65748bf26
34fa07baae62783d0b8bfe4b0969b4615cb0f74b
refs/heads/master
2023-07-01T13:44:53.904576
2021-08-09T08:16:22
2021-08-09T08:16:22
388,406,288
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from datetime import datetime from flask import Blueprint, request, jsonify import requests from common.token_method import login_required, verify_token from common import db from common.modelFuntion import CreateCase # 创建蓝图 cases = Blueprint('cases', __name__) @cases.route('/cases/update', methods=['...
UTF-8
Python
false
false
6,889
py
19
cases.py
17
0.557508
0.547468
0
201
32.696517
129
Amanikashema/data_type2
4,294,967,318,563
56b3385eb806bb380b6c9f1318f1f91839a4b457
7e959170963990a0d65f322d9f34fc098c65ff03
/data_type2.py
312f594894134deb291a1515ac0163806469e272
[]
no_license
https://github.com/Amanikashema/data_type2
7def61cce786fd1858a7e7f631ec8d0c89270132
0e6b157de1ece1b94cb7ba4b6d94476dad719a36
refs/heads/master
2021-03-08T03:20:57.207886
2020-03-10T13:51:50
2020-03-10T13:51:50
246,313,414
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
my_list=[56,78,34,21,56,34,125,45,89,75,12,56] my_list.sort() print(my_list) total=sum(my_list) #using a function of sum to add the total print("The sum of all of the element is:", total) print("The smallest number in the list is:", min(my_list)) print("The largest number in the list is:",max(my_list)) my_list=list...
UTF-8
Python
false
false
397
py
1
data_type2.py
1
0.70529
0.642317
0
13
29.153846
60
iammanoj/PythonML
8,632,884,313,131
be85317e906b4b4410000c5ff9368d70bf30e9aa
71a6d0d09329be51c25b8d10be03ded4dd3f9f02
/ChkPalindrome.py
b578516dfa4fe981a72672ca0746b3761995b5f8
[]
no_license
https://github.com/iammanoj/PythonML
3301f099271a072d6bb8d8ac9b92d3387fae8f88
0d0f67dea8c26e2cb389aa157fdc6b41d53f0f1f
refs/heads/master
2021-01-02T09:01:31.154236
2015-05-17T22:34:27
2015-05-17T22:34:27
34,771,477
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/Users/manoj_mohan/anaconda/bin/python ############################################ # Program Name : Check Palindrome Words # Description : This program helps determine any combination of words from a given list of words if they can be joined together to form a Palindrome. # Code...
UTF-8
Python
false
false
779
py
5
ChkPalindrome.py
4
0.504493
0.49294
0
23
32.782609
165
Karl-Horning/python-3-bootcamp
5,265,629,927,481
421e1b7d38ebef96563b479773d571fae5a8f753
b1b376358edef6faf1ba1c5559e7ae757c1dd8a9
/section_16_tuples_and_sets/144_set_comprehension_and_recap.py
13f08a7198a9b6a7d65a984d94e0db3c6f42273c
[]
no_license
https://github.com/Karl-Horning/python-3-bootcamp
e3894003310f123e9f3e040a490687ee9ff40cc9
f78d1cc5c6a42539f724735d83bd74f77f6653f6
refs/heads/master
2020-03-24T15:22:14.566141
2018-07-29T19:23:23
2018-07-29T19:23:23
142,787,548
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print({x**2 for x in range(10)}) # {0, 1, 64, 4, 36, 9, 16, 49, 81, 25} print({char.upper() for char in 'hello'}) # {'E', 'H', 'L', 'O'}
UTF-8
Python
false
false
137
py
67
144_set_comprehension_and_recap.py
67
0.49635
0.357664
0
5
26.6
41
tedneward/Demos
19,585,050,877,506
fd4d49000c2090df01db262e57962878697ac037
64e3f2b8d6abff582d8dff2f200e0dfc708a5f4b
/2019/VSLiveBoston/Py/demo.py
9aef065bf91f0261ed203b3181c5326c6667d76c
[]
no_license
https://github.com/tedneward/Demos
a65df9d5a0390e3fdfd100c33bbc756c83d4899e
28fff1c224e1f6e28feb807a05383d7dc1361cc5
refs/heads/master
2023-01-11T02:36:24.465319
2019-11-30T09:03:45
2019-11-30T09:03:45
239,251,479
0
0
null
false
2023-01-07T14:38:21
2020-02-09T05:21:15
2020-02-10T03:44:36
2023-01-07T14:38:20
217,845
0
0
74
Java
false
false
print("Hello Boston") class Attendee: def sayHello(): print("Hello")
UTF-8
Python
false
false
87
py
462
demo.py
289
0.574713
0.574713
0
5
15.4
22
linea-it/lna
19,567,871,022,832
0602a6c03af3db06fbdcb7858560a46c73afbd24
b1ff1b8920f8bee4d9fdaad938b25daedc51f7ad
/backend/lna/migrations/0007_auto_20190211_1324.py
e92ef927d26c21a9666fe3029f3a102e16aa0b87
[]
no_license
https://github.com/linea-it/lna
141d051c8b3e3c061ef2016ee48276a4538ddc88
dd7c82059c41180d584bd8b201ea2d843878ef8e
refs/heads/master
2022-12-17T12:29:04.291593
2020-07-01T19:27:21
2020-07-01T19:27:21
148,836,030
0
0
null
false
2022-12-09T13:57:18
2018-09-14T20:00:05
2020-07-01T20:40:59
2022-12-09T13:57:17
430,971
0
0
26
JavaScript
false
false
# Generated by Django 2.1.5 on 2019-02-11 13:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lna', '0006_exposure_target'), ] operations = [ migrations.AddIndex( model_name='exposure', index=models.Index(field...
UTF-8
Python
false
false
1,047
py
45
0007_auto_20190211_1324.py
39
0.572111
0.536772
0
33
30.727273
91
kiramishima/csv_pokeapi
10,857,677,350,067
4c55efeb527bf1dccb0783adc71987022f9b1dc2
4e0fce17cf26f8661c2bafa70c1b041ac41285f5
/app.py
66fa0c74120761ec9b1524a9d251ebb27953f950
[]
no_license
https://github.com/kiramishima/csv_pokeapi
3cc69cd00e99c790155bb7ebae1a3c793cc32603
1f65e2ddd64ca8545a03039b775a878e7ac95536
refs/heads/master
2023-09-03T20:24:29.109257
2021-10-15T17:37:02
2021-10-15T17:37:02
417,278,128
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import math from flask import Flask, jsonify, request, render_template import pandas as pd app = Flask(__name__) # Load CSV app.data = pd.read_csv("./data/pokemon.csv", header=0, sep='\t', names=['id', 'name', 'type_1', 'type_2', 'total', 'hp', 'atk', 'def', 'sp_atk', 'sp_def', 'speed',...
UTF-8
Python
false
false
4,320
py
4
app.py
1
0.580556
0.57338
0
123
34.121951
120
893202527/JK
17,343,077,975,191
ec5dce0013a7402996c251e043c6882a5e3b05af
326269d5c3740bed8ca5ef65aeab35ada4ced727
/MyDjango/xycDemo/models.py
aaee15810df7422dc28fa68b4b9b644b8308402b
[]
no_license
https://github.com/893202527/JK
43115fbc08b119de5c49ac4b470e4cbcbcdc917b
0080f3d349093ce771df94f70edd6010a9fd3ff7
refs/heads/master
2022-11-12T04:48:34.174950
2019-09-02T09:12:17
2019-09-02T09:12:17
180,317,671
1
1
null
false
2022-11-01T23:31:18
2019-04-09T08:11:31
2019-09-02T09:12:45
2019-09-02T09:12:43
50,926
0
1
1
Python
false
false
import datetime from django.db import models import json from django.utils import timezone # Create your models here. class User(models.Model): nickName=models.CharField(max_length=20) create_time=models.DateTimeField(auto_now_add=True) Modify_time=models.DateTimeField(auto_now=True) phoneNumber=mode...
UTF-8
Python
false
false
1,162
py
23
models.py
20
0.652632
0.635965
0
36
30.583333
86
sts-sadr/Hands-of-Machine-Learning
13,417,477,874,901
e7c9458e97389ed8156fe3b2628be7c68e0f3ef2
cefc8caac20ec430265dfbe56b3d9b8ab1acb34d
/MNIST.py
3d961929ef7ee20b2fcc5f9c0e6e2c162a4a99a6
[]
no_license
https://github.com/sts-sadr/Hands-of-Machine-Learning
ca9d9bbf12d141928210913ee9567f7f2b436cdf
16d3c64a43d11170f24ab46f407a987f7fc46623
refs/heads/master
2021-01-07T08:16:53.190991
2019-09-03T18:55:24
2019-09-03T18:55:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 3 13:02:32 2019 @author: jered.willoughby """ #Load libraries from sklearn.datasets import fetch_openml import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from sklearn.model_selection import StratifiedKFold from sklearn.base import ...
UTF-8
Python
false
false
2,815
py
2
MNIST.py
2
0.71865
0.694139
0
85
31.141176
77
pydi0415/git_zeroo
17,145,509,487,499
f69cf63b9458a5905c410d34f1cb31ddebafc104
0f0a2ae1c525a3f6ab4ceb9652e3a95abb42fe0d
/python/assignment/Basic pgms.py
1b566105fc64540b2ea620e9037fabaa6d2d7dd6
[]
no_license
https://github.com/pydi0415/git_zeroo
c47a21193f32651a29f10c5fec461bcc6f3868cb
0d50e29a257041619031a39d7abe252db59ea019
refs/heads/main
2023-03-14T13:02:06.166224
2021-02-26T14:26:55
2021-02-26T14:26:55
342,595,855
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print("prabhakar\nprasu") print("----------------------------") print("prabhakar\tprasu") print("----------------------------") #print("prabhakar"prabha"prasu" )(error) print('''Hi\n This is penchala\tprabhakr From Ap''') print("----------------------------") print("s@athya\"Techonlogy\"") print("----------------------...
UTF-8
Python
false
false
2,348
py
17
Basic pgms.py
16
0.456559
0.431005
0
77
29.480519
81
ritwikbera/GazeAtari
17,884,243,858,487
a4c31c80d6125de528aee80bd1ebdabcf6736155
4cbe3a5dfc11227ac85e77980e3f9eb0cc20aa13
/train.py
0d33bdb47f07239159259b6c23716ae48c8ec896
[]
no_license
https://github.com/ritwikbera/GazeAtari
42e36ab90b1b3fd9943fa5ad2e1b051731827666
7d9840474e91e41422dd551e20c752afe82edd10
refs/heads/master
2022-08-21T07:04:14.542815
2020-05-26T01:51:36
2020-05-26T01:51:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch from torch import nn from torch.optim import Adam, Rprop import torch.nn.functional as F from torch.utils.tensorboard import SummaryWriter import numpy as np import json import os from math import ceil from ignite.engine import Events, Engine from ignite.metrics import Loss, RunningAverage, Accuracy, Me...
UTF-8
Python
false
false
4,902
py
21
train.py
18
0.631783
0.628519
0
148
32.128378
107
landont3/GolfLeagueScoring
7,198,365,228,995
4437ae18a2721e62f6726a88cc3119e25e44f560
48075e439cb159a1eddc7a637b3e955a012ee214
/league/admin.py
5e1423f65df502d5cb49ed6bcad60ab69fb514c2
[]
no_license
https://github.com/landont3/GolfLeagueScoring
e503154ff84d907597393b86c1d4e4039ddfca9e
c71ac20b1a26c016db33003e87a8f4a8dc64f0f5
refs/heads/master
2021-03-22T01:11:36.267737
2018-03-08T12:21:26
2018-03-08T12:21:26
122,187,660
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import League, Division, Season, SeasonSettings, Course, Nine, Hole @admin.register(SeasonSettings) class SeasonSettingsAdmin(admin.ModelAdmin): list_display = ('season', 'handicap_method', 'max_score_to_par', 'max_handicap') list_editable = ('handicap_method', '...
UTF-8
Python
false
false
523
py
31
admin.py
21
0.762906
0.762906
0
17
29.764706
84
VR-Scott/practice_team_08
10,256,381,926,421
0bf8ca6bdc4474f497844ace2645eb0ba8a44097
511583a2223f86e5028839763cb867bbc9931ba7
/encryption.py
cc6984c73aaa934b9ec04d1d93ac30f921c4be32
[]
no_license
https://github.com/VR-Scott/practice_team_08
005384695bd5a84086fbbac651f5e216314951d7
4f36ba4cc767e3bf9a77579c1569be1034a4846c
refs/heads/master
2023-01-30T14:31:08.745287
2020-12-11T14:39:46
2020-12-11T14:39:46
308,270,721
0
1
null
false
2020-11-16T07:18:31
2020-10-29T08:58:18
2020-11-13T08:30:26
2020-11-16T07:18:31
7,262
0
0
0
Python
false
false
import bcrypt def encrypt_password(password): """ Encrypt a password with a randomly generated salt then a hash. :param password: The password to encrypt in clear text. :return: The encrypted password as a unicode string. """ encoded_password = password.encode('utf8') cost_rounds = 4 ra...
UTF-8
Python
false
false
1,322
py
19
encryption.py
12
0.711044
0.707262
0
34
37.911765
91
doublevcodes/pyhmrc
5,574,867,575,817
33cc9e74364e9c6a781dcccbae6ae8c1f822d1e7
7c5e543762f1a7c9ac134b7e0ce084724e8e113e
/pyhmrc/hello/__init__.py
1be72be2be386b6f8329c2ea5f26ad858205bd54
[]
no_license
https://github.com/doublevcodes/pyhmrc
5ee44ed968357b9db7ae4ce9fb91085651192a28
fdc5eff0d14332b3f718060fc33316952a0e411b
refs/heads/master
2023-04-02T22:34:30.769236
2021-04-09T21:35:17
2021-04-09T21:35:17
356,403,147
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .hello import HelloClient
UTF-8
Python
false
false
30
py
5
__init__.py
4
0.866667
0.866667
0
1
30
30
TopologicLogic/Convusing
2,851,858,284,551
b9ac8f3a82186ee4c186b6918b5dc76215f9b016
63f21c66119a6b3a752a8dcd8377e0c512ec4cc2
/DataPrep.py
18c40cf929986974a66f9e97611e4490875bdd62
[]
no_license
https://github.com/TopologicLogic/Convusing
3cca2e52a4c141d00988b78bc09630501f544bfc
f8445ea81828f53dd91b9d1cccc0a28ac7f1dbf3
refs/heads/master
2022-07-17T04:31:11.199671
2022-05-29T03:35:11
2022-05-29T03:35:11
254,484,222
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Mar 10 20:19:35 2018 @author: Dev """ import random import pandas as pan import numpy as np import os.path import csv import sys #import ctypes # An included library with Python install. from copy import deepcopy from stockstats import StockDataFrame as sd...
UTF-8
Python
false
false
24,109
py
28
DataPrep.py
7
0.427517
0.411216
0
596
38.454698
110
bettersleepearly/Programming-Beginner-2
14,766,097,597,640
5592b36b79250beb3b4b2372cdbb1467f1f42ac7
34200997a02dc3f6f733c297b48d47ad9566e3d8
/Shoppinproj.py
1ecdfaf10f80d3b716c38fb1ae3c97f46ec111c3
[]
no_license
https://github.com/bettersleepearly/Programming-Beginner-2
4396844be3de449017b132fa67042977d2364e19
0ef1c4b224716f51a4f47d40f5b5d08bc588d877
refs/heads/master
2022-10-14T15:30:26.608237
2020-06-09T15:15:14
2020-06-09T15:15:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
currency = 'USD' price = {'CB1':139, 'CB2':149, 'CB3':139, 'CB4':139, 'CB5':169, 'CB6':139, 'CB7':139, 'CB8':139, 'CB9':139, 'CB10':149, 'CB11':134, 'CB12':129, 'LB1':174, 'LB2':174, 'LB3':174, 'LB4':199, 'LB5':199, 'LB6':199, 'LB7':189, 'LB8':189, 'LB9':179, 'LB10':244, 'LB11':244, 'LB12':244}...
UTF-8
Python
false
false
8,680
py
3
Shoppinproj.py
2
0.450542
0.422527
0
166
50.168675
231
junk13/fiercecroissant
4,939,212,400,068
b87b759aed94b2313d3bd88bf3d2e071301fb827
9a18fa277118715e33c68763a98f40b3df0a2448
/fiercecroissant.py
04d64756dc190e3efc7fd7a3fa2627ece451df34
[]
no_license
https://github.com/junk13/fiercecroissant
64bbe6831143978ccb756e4c93d812bcc1711798
26b88dd6f3068f40cc74119611b30a90542ce880
refs/heads/master
2020-04-08T16:21:16.296844
2018-11-08T20:42:57
2018-11-08T20:42:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 import requests, json, time, sys, os, re, configparser, base64 from pymongo import MongoClient from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry client = MongoClient('localhost:27017') db = client.fc coll_pastemetadata = client.fc.pastemetadata paste_d...
UTF-8
Python
false
false
8,511
py
3
fiercecroissant.py
1
0.569968
0.548584
0.00047
162
51.537037
288
fprimex/lad
4,355,096,853,786
1d394c3a901e45ace142d60e8ab01314f1299677
a265442582d35030a22a207930bc849c5bd73c9e
/NotebookPage/VarsPage.py
92c8f7f5b0d28430bf44c6fdcb8e57c3c9ecaef4
[ "Apache-2.0" ]
permissive
https://github.com/fprimex/lad
48ebff8f83a82b7ec888c26234466c7f8026ac95
493e998eae351252cf78736b803ddc88de6abead
refs/heads/main
2023-06-09T01:22:45.487011
2018-08-26T04:22:35
2018-08-26T04:22:35
146,149,601
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import wx import Globals from ListEditorCtrl import ListEditorCtrl class VarsPage(wx.Panel): def __init__(self, parent, id=-1): wx.Panel.__init__(self, parent, -1) cols = [u"var", u"val / exp"] listdata = {} i = 0 for var in Globals.G.vars.keys(): listdata[i] = (...
UTF-8
Python
false
false
2,717
py
17
VarsPage.py
15
0.589253
0.581524
0
76
34.75
99
michealbradymahoney/CP1404-2019SP2
11,982,958,756,874
9873ffb1c7851050c46805bfef2b2a308b08c0da
13311af3281150ffbdc927ffe7e6b547a1bb0899
/Practicals/prac_02/password_checker.py
4376c0efbaf9488b272f10db62e68dbc7bdcbc12
[]
no_license
https://github.com/michealbradymahoney/CP1404-2019SP2
263db4593d8bd5a137e9ba13a0330c8cb566f82a
02a7c985e0eb4e0d76add18f7541eaee7eeba327
refs/heads/master
2020-06-30T08:42:39.520236
2019-08-31T01:55:13
2019-08-31T01:55:13
200,781,949
0
0
null
false
2019-10-08T07:25:35
2019-08-06T05:22:40
2019-08-31T01:55:17
2019-10-08T07:22:43
2,446
0
0
2
Python
false
false
""" CP1404/CP5632 - Practical Password checker "skeleton" code to help you get started """ # Write a program that asks for and validates a person's password. # The program is not for comparing a password to a known password, but validating the 'strength' of a new password, # like you see on websites: enter your passwor...
UTF-8
Python
false
false
2,726
py
20
password_checker.py
18
0.652238
0.641233
0
72
36.861111
118
lanzorg/winup
4,226,247,843,373
c4514a58b11ff050792254cccfb14d44646f8bde
beae4c7e27bc10f8f53f7ece6c33e13359936d3b
/winup/helpers/downloaders.py
028920ed24cc9bbd86fbfac18c70ffc2b705f59e
[]
no_license
https://github.com/lanzorg/winup
771537d4de6efcc76e0effa059154b2d7871f667
e2545e10f5caa5d20c24fb756cb6819b345baf9f
refs/heads/master
2020-05-02T12:14:31.258250
2019-06-11T08:30:41
2019-06-11T08:30:41
177,953,474
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import tempfile import requests import rfc6266_parser def download_from_url(url, cookies=None): """Download a file from the direct download url.""" response = requests.get(url=url, cookies=cookies, allow_redirects=True, stream=True) file_path = os.path.join( tempfile.mkdtemp(), ...
UTF-8
Python
false
false
593
py
13
downloaders.py
11
0.642496
0.62226
0
23
24.782609
88
valexby/text-classification-api
2,980,707,338,330
dfd78c37f525c9cd28cf1dd87489ab7536e0cfc7
c6e73a840037d831b95af3687d592536dccf6dbb
/core/classifier.py
24e58c9562bea9ce33064cac7ea3768a0cdb4298
[]
no_license
https://github.com/valexby/text-classification-api
c3c4e18c56b8ef1303f542048f2c590b6cd59f1e
b75d49a7d8f7c20a2c92c1115cf0d6762b23649a
refs/heads/master
2020-04-29T22:13:49.067198
2019-03-20T18:23:48
2019-03-20T18:23:48
176,439,462
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pickle from nltk import word_tokenize from nltk.stem.snowball import SnowballStemmer from sklearn.naive_bayes import MultinomialNB from sklearn.feature_extraction.text import TfidfTransformer from sklearn.feature_extraction.text import CountVectorizer from sklearn.pipeline import Pipeline class Stemmer: de...
UTF-8
Python
false
false
1,044
py
8
classifier.py
4
0.676245
0.671456
0
33
30.636364
61
minato1203/P8test1
266,287,972,815
42dfcd123f38a1189026febd63428f8ebf8485c1
21640cbd34a2f338fe51a79eb38230d4f2cfa010
/b.py
3ae7910eeb3065749fcba27038776875a0014262
[]
no_license
https://github.com/minato1203/P8test1
5d32e5bd8ed3e588794f9e89124e1484eca92d9e
a3b502623ea72209cc5c2c746dafb8873ac473ef
refs/heads/master
2023-04-09T07:42:05.330646
2021-04-28T11:05:45
2021-04-28T11:05:45
362,369,274
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print("this is only a test text")
UTF-8
Python
false
false
33
py
1
b.py
1
0.727273
0.727273
0
1
33
33
Hoon94/Algorithm
1,855,425,893,552
4c9ebdf11ceab18811cb4bef019f6c7ab36a772a
73bb9d0d50b96b3d7ee48e2d97b1d8128a5f2b1e
/Leetcode/14 Longest Common Prefix.py
9158836808691acfe03b97c39c8efcb0801cabe9
[]
no_license
https://github.com/Hoon94/Algorithm
a0ef211d72a2b78e08249501d197875065392084
6f6969214bbb6bacd165313b6d8c0feb1caa8963
refs/heads/master
2023-05-11T13:12:11.585285
2023-05-08T14:38:47
2023-05-08T14:38:47
244,936,260
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def longestCommonPrefix(self, strs: list) -> str: """[summary] Args: strs (List[str]): words in a list Returns: str: return longest common prefix """ result = '' strs = sorted(strs, key=lambda x: len(x)) short = strs...
UTF-8
Python
false
false
655
py
387
14 Longest Common Prefix.py
386
0.439695
0.433588
0
28
22.392857
53
aamini/chemprop
9,844,065,091,729
28cc1e5981291e2bac08e7771584ff96ff4f8d47
7fec152e2f81c8ce35bed6f357937b2d4fd1ff6c
/scripts/create_train_curves.py
55d9a9b4e7380400670f87e969d4810344ef8e37
[ "MIT" ]
permissive
https://github.com/aamini/chemprop
072d712438dc5b3ba554f2734c03cfc4ae64834a
a7a137a09589474a5c5a83f75fbddbddfb877dc8
refs/heads/confidence-evidential
2023-05-23T20:59:52.572809
2021-07-29T16:16:26
2021-07-29T16:16:26
388,299,389
85
16
MIT
false
2021-07-29T16:16:27
2021-07-22T02:05:01
2021-07-29T15:16:18
2021-07-29T16:16:26
292,586
13
1
0
Python
false
false
"""Create train curve from log file Call signatures used: python scripts/create_train_curves.py --log-dir submission_results/gnn/qm9/evidence/ # Note : for this case, it's worth rescaling the x axis python scripts/create_train_curves.py --log-dir submission_results_atomsitic_multi/gnn/qm9/evidence/ --verbose-extens...
UTF-8
Python
false
false
2,463
py
65
create_train_curves.py
46
0.590337
0.583435
0
74
32.202703
147
NickNganga/pyhtontake2
17,892,833,760,757
f5c41d06bb1137f0d1aac5b0f1dbedc9604cc91b
c653a1780fd09621bc543a09043e20b172445cce
/task3.py
b3732f92b2f2c6fcba84b9e1af2e3909c2c94ba4
[]
no_license
https://github.com/NickNganga/pyhtontake2
c5f21d4ccdc8375b24d1256a841cbac02a9a35c9
8ab3e25fcd596668f097466e8abd327586b65e71
refs/heads/master
2020-07-29T13:43:11.857697
2019-09-21T19:03:29
2019-09-21T19:03:29
209,826,409
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def list_ends(a_list): return (a_list[0], a_list[len(a_list)-1]) # number of elements num = int(input("Enter number of elements : ")) # Below line read inputs from user using map() function put = list(map(int,input("\nEnter the numbers : ").strip().split()))[:num] # Below Line calls the function created above. p...
UTF-8
Python
false
false
547
py
8
task3.py
7
0.665448
0.650823
0
17
31.235294
74
nimble-robotics/NR_pdf_utils
8,847,632,648,903
3cd1b38bc5678ca7783948073e99137351069d99
525ac244cc9c57a113686dcbf0816c06b9c7f026
/application.py
10815c22c65dce9b17a7f0bf25e9fa5985802416
[]
no_license
https://github.com/nimble-robotics/NR_pdf_utils
c9a2f574f976db8ca20d444c703dfb8436bd14c7
d7796aa3088bb598c1dfb8f58f27f3804a216340
refs/heads/master
2021-01-09T01:56:59.067583
2020-03-11T19:00:30
2020-03-11T19:00:30
242,209,366
0
0
null
true
2020-03-11T19:00:31
2020-02-21T18:53:46
2020-03-11T18:47:09
2020-03-11T19:00:30
120
0
0
0
Python
false
false
from flask import Flask,request,render_template # from utils import upload_to_aws,bucket_name from healthcheck import HealthCheck import os application = app = Flask(__name__,template_folder='templates') App_path = os.path.dirname(os.path.abspath(__file__)) @app.route('/home') def home(): return render_template(...
UTF-8
Python
false
false
591
py
8
application.py
2
0.673435
0.659898
0
26
21.769231
63
jgraniero52/lab-4
19,507,741,477,552
047a86ff29f23855d0163b2fc3275a5467140a9d
13bff9eb83069bb94456449b588571b3de08b375
/searchEngine.py
d339f4911cb61d57d8ef82541c8bccea4136f994
[]
no_license
https://github.com/jgraniero52/lab-4
a379c3dcead1c3944805241ea03f86480d4066d0
e95e86916ddc1080db1ea4ff8bad68c26d6cf344
refs/heads/master
2021-05-28T02:25:41.088980
2012-10-07T22:34:00
2012-10-07T22:34:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sqlite3 import pickle import os from portStemmer import PorterStemmer from makeBigDict import scanCleanDir class Searcher: def __init__(self): self.stemmer = PorterStemmer() try: f = open(os.getcwd()+"/data/tokensDict.p", "r") self.tokens = pickle.load(f) exc...
UTF-8
Python
false
false
16,732
py
2
searchEngine.py
2
0.461511
0.447585
0
504
32.196429
115
Jordan-Camilletti/Project-Euler-Problems
10,548,439,683,351
a0ecbd1fc6934fc37a81977a88e715df839602d8
cdbadf1e63f74911a145c88bb5422da5c1977904
/python/16. Power digit Sum.py
3812c1a7024e0528cabf03000b5626d08755a472
[]
no_license
https://github.com/Jordan-Camilletti/Project-Euler-Problems
30a93d6130e14e9382ee7e7d86b739ae676aaacf
b3f54004907a5ee4db00ad1e4989e4f239dcbd14
refs/heads/master
2021-06-03T19:19:19.612809
2020-05-01T04:28:37
2020-05-01T04:28:37
72,213,187
1
0
null
false
2020-02-23T04:49:10
2016-10-28T14:12:12
2020-02-21T02:20:09
2020-02-23T04:49:09
570
1
0
0
Python
false
false
"""2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^1000?""" str=str(2**1000) tot=0 for x in str: tot=tot+int(x) print(tot)
UTF-8
Python
false
false
189
py
59
16. Power digit Sum.py
58
0.624339
0.486772
0
8
22.625
68
MonadWizard/python-basic
4,303,557,231,441
ead220a5b4b4901180a0eb2e18cfab39b08e632c
d87d83049f28da72278ca9aa14986db859b6c6d6
/basic/coreFundamental/tupleDemo/tupleBasic.py
b9ef6768c6dc72d8ef55ec75f859ae48dc8cfb63
[]
no_license
https://github.com/MonadWizard/python-basic
6507c93dc2975d6450be27d08fb219a3fd80ed64
624f393fcd19aeeebc35b4c2225bb2fe8487db39
refs/heads/master
2021-07-21T16:12:58.251456
2020-10-12T19:46:21
2020-10-12T19:46:21
223,625,523
1
0
null
false
2019-11-23T18:01:43
2019-11-23T17:14:21
2019-11-23T18:00:52
2019-11-23T18:01:42
0
0
0
3
HTML
false
false
""" A tuple is a sequence of immutable objects, therefore tuple cannot be changed. It can be used to collect different types of object. The objects are enclosed within parenthesis and separated by comma. Tuple is similar to list. Only the difference is that list is enclosed between square bracket, tuple between pare...
UTF-8
Python
false
false
2,403
py
195
tupleBasic.py
165
0.620474
0.556388
0
114
18.95614
131
chinatszrn/momo_labeltool
1,614,907,752,572
49df60761f06ad4f9c40c681fa87cdbcb07e5f09
8eab8ba100521cedb0b8c62059b0000fe04da989
/mainwin.py
826f7760fe7f7c0d85a5276d4a6c6bd0c2cd0019
[]
no_license
https://github.com/chinatszrn/momo_labeltool
b3ffbdba2772050f830322c213611651fede3037
f3ddb9ff7e526cd224c674c84a7ee4f4e49850ed
refs/heads/master
2020-12-13T18:08:24.550696
2019-05-14T09:43:04
2019-05-14T09:43:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwin.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_main_window(object): def setupUi(self, main_window): main_w...
UTF-8
Python
false
false
9,099
py
9
mainwin.py
7
0.695371
0.686447
0
166
53.006024
108
radiofarmer/WavetableEditor
8,959,301,814,077
4f18f22d69b81b620c812ed4c63ba488b55ddf0d
89b5aa59f30f7417c19b8300a4da100fc6d8205b
/WavetableEditor/Wavetable.py
fc980a751cbad126aeb2cd0060953502cac9538f
[ "MIT" ]
permissive
https://github.com/radiofarmer/WavetableEditor
810bb639165efd0a6ef29f2a7e8fbc95a678e3f3
2cee8d773d24978ef3edc52a85b4285a48506f25
refs/heads/master
2023-03-11T08:00:15.309139
2021-02-26T09:22:35
2021-02-26T09:22:35
340,004,065
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from WavetableEditor import IO from scipy import fft from scipy import interpolate import matplotlib.pyplot as plt import math def quantize_to_fraction(x, f): return np.floor(f * x) / f def make_shift_function(x, shift_step, max_shift=1., noise=0.): func = interpolate.interp1d(np.linspace...
UTF-8
Python
false
false
9,839
py
5
Wavetable.py
4
0.568249
0.55402
0
286
33.402098
114
Saumay-Agrawal/GSOC-Explorer
8,443,905,714,839
9c81268fdb2348ddbbb8e1607b1e4af6810bfc69
b39074034e46a57753cd22a9ea147dafc158c26d
/data-extractor.py
c48f3f82cf9cf49af0d647d4f73a39aef1d878da
[]
no_license
https://github.com/Saumay-Agrawal/GSOC-Explorer
2590aa6bea9f792633cb51ed3983840df5ac6d3a
6c82c7b9ecdede5d13c87fcae621a2731cbf94ef
refs/heads/master
2020-04-10T23:01:28.683316
2019-02-22T09:51:26
2019-02-22T09:51:26
161,339,391
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pymongo import json from pprint import pprint client = pymongo.MongoClient('mongodb://localhost:27017/') db = client['gsoc-data'] col = db['flat_data'] file = open('gsoc-data.json', mode='w', encoding='utf-8') file.write('[') count = 0 for doc in col.find(): del doc['_id'] file.write(json.dumps(doc, s...
UTF-8
Python
false
false
448
py
10
data-extractor.py
5
0.654018
0.636161
0
20
21.45
61
vasu4982/flask-apps-with-blueprints
4,844,723,153,112
8b762bea4713ac191cd00c66a508ee9d6604a3fa
70d59ad4466a6eea0ea4bca03a7786921476353d
/blueprints/__init__.py
dbe334a55577633f3ae71d63ea77888fedd2a5f4
[]
no_license
https://github.com/vasu4982/flask-apps-with-blueprints
0b295e40f6ef89216ff0d49c1a98e15c70b5bcc1
b8cab7683100f87b813abdbac09ac9695c8b93a6
refs/heads/master
2021-09-13T10:21:44.081675
2018-04-28T05:49:40
2018-04-28T05:49:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask from blueprints.home.views import home from blueprints.about.views import about app = Flask(__name__) app.register_blueprint(home, url_prefix='/home') app.register_blueprint(about, url_prefix='/about')
UTF-8
Python
false
false
227
py
2
__init__.py
1
0.77533
0.77533
0
7
31.428571
50
jan-g/psh
9,680,856,329,124
0a312f88f484230dea3ccbf1119bdaf7bfa68393
39729564419ed0c233d2fe2c215214e52e3c4a10
/test/test_model_case.py
0bbd37b0577985b71e84b5dd314e113c55fec4a9
[ "Apache-2.0" ]
permissive
https://github.com/jan-g/psh
b4ec8aae7e394ccbf85b97fa0e71482296e03974
c2641c9d2d7051dacb41474123889dd04bdd2989
refs/heads/master
2020-09-14T16:22:57.988393
2019-12-07T22:41:00
2019-12-07T22:41:00
223,183,178
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest from psh.model import Word, Id, CommandSequence, Command, Case, VarRef, ConstantString from psh.glob import STAR from psh.local import make_env w = lambda w: Word([Id(w)]) a = Word([VarRef(Id("a"))]) echo = lambda out: CommandSequence([Command([Word([Id("echo")]), Word([ConstantString(out)])])]) x = w(...
UTF-8
Python
false
false
1,206
py
31
test_model_case.py
30
0.615257
0.615257
0
28
42.071429
100
andrisole92/VectorAI
18,717,467,489,324
946540bc473e1d5b42db8ea31ddd242198c3f070
b18b340f7d27b349ed8f344f1827331d1812249b
/src/__init__.py
9f678db9c3b941ae8e79443bb0cec983662d336c
[]
no_license
https://github.com/andrisole92/VectorAI
42917758cb305d562a48b7f64ab18c824ab487fb
03e6a8e5d6ff76a03c9108f6f507f47dfe7fd04f
refs/heads/master
2021-01-05T22:09:46.285959
2020-02-22T18:33:26
2020-02-22T18:33:26
241,149,928
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from src.db.Engine import Engine from src.db.SessionManager import SessionManager
UTF-8
Python
false
false
83
py
14
__init__.py
12
0.843373
0.843373
0
2
40
48
iaasci-ibm/python-zvm-sdk
10,857,677,372,748
a320a32d2f4c4953df50939aef8d1c8cdba90914
516e5ad7aa37dee9c6f6602dc63b66bf3d361f37
/zvmsdk/tests/unit/base.py
a0bd874f1c8a5a8a3b4e12410bc52544d6e37d65
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
https://github.com/iaasci-ibm/python-zvm-sdk
3eec5b82d5e28c19e5213626102a237070e54e7c
c39d4522b2311da0bb06910b6bb3b20ad32a8ae4
refs/heads/master
2022-02-13T04:37:50.098878
2022-01-28T18:17:44
2022-01-28T18:17:44
227,066,210
0
2
Apache-2.0
true
2021-04-09T00:33:39
2019-12-10T08:26:36
2021-04-08T15:32:19
2021-04-09T00:33:38
6,790
0
0
0
C
false
false
# Copyright 2017 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
UTF-8
Python
false
false
1,502
py
308
base.py
121
0.665113
0.659787
0
50
29.04
78
vineetsingh065/30_days_of_problem_solving
1,082,331,796,878
9456c4ad4b3f9f67af05bf8cbf07f9a27872d3ab
b8f68d68c49a191b06d0c83ebd7be0a7bde0cc28
/day_6_total_set_bits.py
1f3292920266b522d40a6053ead627093e6d5910
[]
no_license
https://github.com/vineetsingh065/30_days_of_problem_solving
485f6033e5785ae365d14728cbadd5f44158afb0
40014080b135378359742b9493334f4079309862
refs/heads/master
2023-08-25T01:00:53.208219
2021-10-10T15:23:37
2021-10-10T15:23:37
403,340,800
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" You are given a number N. Find the total count of set bits for all numbers from 1 to N(both inclusive). Example 1: Input: N = 4 Output: 5 Explanation: For numbers from 1 to 4. For 1: 0 0 1 = 1 set bits For 2: 0 1 0 = 1 set bits For 3: 0 1 1 = 2 set bits For 4: 1 0 0 = 1 set bits Therefore, the total set bits is 5...
UTF-8
Python
false
false
613
py
14
day_6_total_set_bits.py
14
0.522023
0.461664
0
36
16.027778
103
kongqiuchuipin/UsedCar
15,513,421,918,185
640db27271cd5ac733f759af392877446d731314
22e585820e19df8d28eb164db1b02d6832e09f63
/youxin/youXin.py
476bdfca5fe65619052f8f4322745c2f12807e9b
[]
no_license
https://github.com/kongqiuchuipin/UsedCar
f15100ff8f62790fe67835f72a7eb3914053d9ab
b6938c88b2edb6c7d783946e41aece5304b83235
refs/heads/master
2021-01-25T09:44:36.910714
2018-03-01T07:52:04
2018-03-01T07:52:04
123,316,549
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# _*_ coding:utf-8 _*_ from link import Link, get_all_city_name from info import info from pymongo import MongoClient from shelve_method_ import shelve_open, shelve_add, shelve_save def all_city_links(): all_city = shelve_open('all_city_name') # 如果已经有城市列表 if not all_city: all_city = get_all_city_na...
UTF-8
Python
false
false
1,714
py
15
youXin.py
14
0.574742
0.572165
0
49
30.673469
72
mberrens/IceContinuum
6,717,328,890,219
42171544d81c325c031f89fed30c8d8cf9e89c6a
c65ac5b9fd6a679a9837b455b0eaeb74171b66bc
/netcdfstuff/loader.py
87fe3751a1b39c54e44afb69d04da66e6c926af5
[]
no_license
https://github.com/mberrens/IceContinuum
7705b01f9762647ff5e3d0f808108d0f6ed64514
10f2ed23cb93c1e212aef4689e90d8ff4fda0225
refs/heads/master
2021-05-06T11:33:12.599154
2019-08-12T02:42:05
2019-08-12T02:42:05
114,292,998
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# .. Built-in modules import pickle import numpy as np import scipy.io as spio from netCDF4 import Dataset, num2date, date2index from scipy.io.netcdf import NetCDFFile as DS from scipy.interpolate import interp2d import array def load_ssp_nu(datafile, nu): # Load the moments from a netcdf file & return th...
UTF-8
Python
false
false
12,736
py
247
loader.py
3
0.498822
0.47566
0
384
32.161458
83
animebing/course
13,537,736,926,573
0d1b2ecfd620c52d2af83afed391f6ad09391e6d
acd55085d1004e62c8b10fd5255779ee3d4a00ec
/deep_learning/cs231n/assignment1/cs231n/classifiers/PCA.py
3aec20e1fb8f60f3f7f1793cc8891d8aee84c738
[]
no_license
https://github.com/animebing/course
129e8084787e64dd9d373b6fee3ac3e5874281c9
c079dfa498a24c6aca5660105caaee24de97ff60
refs/heads/master
2021-01-02T08:25:12.961247
2017-08-01T16:28:18
2017-08-01T16:28:18
99,007,085
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def PCA(train, val, test, output_dim): n, dim = train.shape cov_matrix = np.dot(train.T, train)/n w, v = np.linalg.eig(cov_matrix) new_train = train.dot(w[:, :output_dim]) new_val = val.dot(w[:, :output_dim]) new_test = test.dot(w[:, :output_dim]) return new_test, new_val, new_test
UTF-8
Python
false
false
289
py
76
PCA.py
25
0.647059
0.647059
0
8
35.25
41
Mariia-Pinda/codereview
10,539,849,752,399
446836c615fc7d5fd9159b22a00e42ed9224b429
ff8040dd6518918f60f5c52147fa02e0ab7c1d57
/pindamv/first/task3.py
68090e2d498a44ede96ab7e8efe20c650ef3b517
[]
no_license
https://github.com/Mariia-Pinda/codereview
ade55d0a36b647d19389224d8719ee340142687d
9d04bcbf6ad3f140a3b19858d87c6d590c0c97fd
refs/heads/master
2020-11-27T06:13:46.918788
2019-12-22T10:15:00
2019-12-22T10:15:00
229,334,952
0
0
null
true
2019-12-20T20:55:29
2019-12-20T20:55:28
2019-12-20T20:36:50
2019-12-20T20:36:48
0
0
0
0
null
false
false
''' Дано 2 дійсних числа. Вивести середнє значення усіх цілих чисел, що знаходяться між цими двома дійсними числами. ''' the_first_float = float(input('enter the first float: ')) the_second_float = float(input('enter the second float: ')) range_1 = int(the_first_float) range_2 = int(the_second_float) for number in ran...
UTF-8
Python
false
false
529
py
4
task3.py
4
0.700229
0.686499
0
12
35.5
112
openshift-eng/art-tools
5,411,658,831,104
4f18a9ae97e24640c77f471f7adb1376d96cb324
b73c58adc20bde3cf0f212012f3fc76d39ea2a6f
/elliott/functional_tests/test_find_builds.py
95a08b1508d594058f9af55d88a487c38e9d06b8
[ "LGPL-3.0-only", "Apache-2.0" ]
permissive
https://github.com/openshift-eng/art-tools
a4cef268cb7a8c0f74c96db787a72f41dcef7255
d24b5c78337d1fe73fa83e8d099809cbe9d9ed42
refs/heads/main
2023-09-01T17:32:25.906575
2023-09-01T15:36:09
2023-09-01T15:36:09
144,891,479
1
5
Apache-2.0
false
2023-09-14T13:35:34
2018-08-15T18:52:23
2023-08-11T13:00:23
2023-09-14T13:35:33
7,209
2
12
7
Python
false
false
import unittest import subprocess from functional_tests import constants # This test may start failing once this version is EOL and we either change the # ocp-build-data bugzilla schema or all of the non-shipped builds are garbage-collected. version = "4.3" class FindBuildsTestCase(unittest.TestCase): def test_f...
UTF-8
Python
false
false
1,649
py
318
test_find_builds.py
271
0.602183
0.596119
0
48
33.354167
112
akshaymawale/code
5,205,500,388,564
a4b35e0d92b33ca693ea2d8b0a54b26c67f89fe8
b7073b9ded97b44e1df00dc17df66166778eb25f
/pull.py
0115ed58c8457ae302f5f7a3730e48f7c54ffd91
[]
no_license
https://github.com/akshaymawale/code
0efd10821bfbe91ae76372209c28f4bc72792721
13ad7406873dd553a98267969b91f226569f9cbd
refs/heads/master
2020-12-02T02:43:15.415456
2019-12-30T09:07:46
2019-12-30T09:07:46
230,861,729
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print(" pull from local ")
UTF-8
Python
false
false
27
py
1
pull.py
1
0.666667
0.666667
0
1
26
26
jtdub/hier_config
14,413,910,285,754
915514efdb5ab7f189e2e61ea0e4f39e1a8e483b
f4ebd2324a649132ca9f44c08c42e1a4f48deacd
/tests/test_host.py
9b4dd8b2ad63756ca3158a94ae770f512a099221
[ "MIT" ]
permissive
https://github.com/jtdub/hier_config
85e2c4ff48edf6c1a4cc339441b96cf169f0dae7
cdc0f62ec207126d197bf4c38d7befd7e1a215a4
refs/heads/master
2021-06-03T15:07:25.641573
2021-04-21T15:26:49
2021-04-21T15:26:49
134,483,698
0
0
null
true
2018-05-22T22:44:02
2018-05-22T22:44:02
2018-05-22T20:09:05
2018-05-22T19:57:48
2,701
0
0
0
null
false
null
import pytest from hier_config.host import Host class TestHost: @pytest.fixture(autouse=True) def setup(self, options_ios): self.host = Host("example.rtr", "ios", options_ios) def test_load_config_from(self, running_config, generated_config): self.host.load_running_config(running_config)...
UTF-8
Python
false
false
1,305
py
4
test_host.py
2
0.678927
0.672797
0
37
34.27027
82
nickhester/basic_io_python
6,373,731,508,896
5d852093236ca7b12089a5f603db5ea806f429f6
224fc1e9192adeb1a3105e09845196790e42ce02
/CallApiAndLogPracticeProject.py
1ff1d797eea769df997298f4e33f167ef184078f
[]
no_license
https://github.com/nickhester/basic_io_python
6eb2f20b33518ed6edbca162813b151c3b9de589
0253124f0d6c10f1c5a8e39f3a661945af92f9a5
refs/heads/master
2022-04-22T08:04:30.154058
2020-04-21T02:32:32
2020-04-21T02:32:32
257,459,511
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import requests # read from file reader = open(sys.argv[1]) inputText = reader.read() reader.close() # call API response = requests.get("http://numbersapi.com/" + inputText, { 'Content-Type': 'application/json' }) if response.status_code != 200: raise Exception("API failed to return a successful respon...
UTF-8
Python
false
false
464
py
1
CallApiAndLogPracticeProject.py
1
0.721983
0.709052
0
18
24.777778
101
dftidft/RecMe
11,416,023,116,746
ed31549e6836d922b939deac5f8e7ac21d1888b6
84c5983bdc93732a17a65f28e2db3668cb9a9457
/getCorners.py
33593c0a5dd7732cc30cb5eb7b87ad1113de8fb1
[]
no_license
https://github.com/dftidft/RecMe
47284524ba025ffcef2b82d490352e4b772e1d3d
48d83c28d151818fba1c71a7d8a116eebd64cbf0
refs/heads/master
2020-04-04T19:26:22.559260
2015-03-18T03:41:26
2015-03-18T03:41:26
32,023,678
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=gbk import cv2 img = cv2.imread('g:/dataset/gochessboard/test1/00001.jpg') size = img.shape print size gray = cv2.cvtColor(img, cv2.cv.CV_RGB2GRAY) corners = cv2.goodFeaturesToTrack(gray, 500, 0.05, 10) criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 100, 0.001) cv2.cornerSubPix(gray, corner...
UTF-8
Python
false
false
549
py
9
getCorners.py
9
0.661202
0.566485
0
20
26.45
75
rougier/gl-agg
18,236,431,157,639
5447b3bd47e90aebfb8d4246694a39d646971b71
efbe29a32d533d992d082ebcacb714731d9885d4
/demos/demo-graph.py
3991b9edc9f604b02fbdaa9627148ab38b1b3bd3
[]
no_license
https://github.com/rougier/gl-agg
d11cb793712fb150cd8146b6d4d3da1dbbdf2e65
f2f8297afcd63e8e396ba7d710e257e14c7fd25e
refs/heads/master
2023-08-30T15:00:53.589140
2022-08-31T08:15:44
2022-08-31T08:15:44
8,599,292
54
9
null
false
2022-08-31T08:15:45
2013-03-06T08:39:27
2022-06-29T05:10:25
2022-08-31T08:15:44
2,974
82
16
2
Python
false
false
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (C) 2013 Nicolas P. Rougier. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following con...
UTF-8
Python
false
false
8,989
py
37
demo-graph.py
29
0.548226
0.524975
0
260
33.573077
84
GennadiiTurutin/nadiakochstore.com
11,587,821,806,810
c71c51c1ce98f45ebd072833258e67554dd6532e
7ec128cb017995d3bb875adcdaec86da7751cd2c
/store/accounts/models.py
68477a87bb573b4b6ad9c3a8c652ecdf27d026ee
[ "Apache-2.0" ]
permissive
https://github.com/GennadiiTurutin/nadiakochstore.com
edd12dc8579636176c8c4bdcd03beae5244b8082
4fad5cac3c9fffef9427ac787c6528fb2751dc6d
refs/heads/master
2020-04-26T01:50:03.182942
2019-03-03T03:57:51
2019-03-03T03:57:51
173,216,179
0
0
Apache-2.0
false
2020-02-11T23:48:34
2019-03-01T01:46:08
2019-03-03T03:57:05
2020-02-11T23:48:32
5,988
0
0
3
Tcl
false
false
from django.db import models # Create your models here. class Account(models.Model): title = models.CharField(max_length=120)
UTF-8
Python
false
false
127
py
15
models.py
11
0.779528
0.755906
0
5
24.6
41
thebe111/commander
3,461,743,652,632
161fe26cb0deaefb7963515bc4390a6b13705102
addccd666a95b4df1d33a3bb4995fc8be4b74185
/src/commander/core/exceptions.py
1bf79e4013bd1527b7fa64783867c56dc22d79f0
[ "MIT" ]
permissive
https://github.com/thebe111/commander
a1929b49b66473b778e96c398b816fbc2ab66f6f
b6ebd2ddfd1792b1db4012eb5917f478c48928d1
refs/heads/master
2023-07-02T16:14:15.732648
2021-07-05T21:14:08
2021-07-28T21:32:29
390,511,647
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys class CustomException(Exception): def __init__(self, msg: str): super().__init__(f"custom message here") def exceptions_resolver(instance): if "message" in instance: return sys.exit(f"Commander: {instance.message}") else: return sys.exit(f"Commander: {instance}")
UTF-8
Python
false
false
315
py
11
exceptions.py
7
0.644444
0.644444
0
13
23.230769
57
Project-Franchise/client-service
7,885,559,986,115
36b86ac5e411031f7eb1260dbc16fec87f7af339
47fca5bce8ee0bef7de27e63241b7b1052bfae20
/service_api/utils/__init__.py
2becf011e4e87676fee72211dadcd49cd54a8553
[]
no_license
https://github.com/Project-Franchise/client-service
30bac295be2717aaa5ba9368cbf0021e130bf0b8
80cd627f47e0499ddcb2c3313dbd67f1a90145c9
refs/heads/main
2023-05-02T13:15:18.829177
2021-05-25T06:28:38
2021-05-25T06:28:38
346,783,231
1
0
null
false
2021-05-25T06:28:39
2021-03-11T17:28:07
2021-05-25T05:39:13
2021-05-25T06:28:38
523
1
0
28
Python
false
false
""" Utilities for creating models and saving them in DB """ import datetime import json from functools import singledispatch from typing import Dict from marshmallow import ValidationError from marshmallow.schema import Schema from requests import Session from sqlalchemy.orm import make_transient from sqlalchemy impor...
UTF-8
Python
false
false
5,814
py
101
__init__.py
70
0.666495
0.666151
0
165
34.236364
114
mohammedjasam/Competitive-Programming
1,949,915,170,711
dbfcbe8e51c2bd7bef1307b614a4741a27783bdf
fa1277b6939fbc1de8795a2c6e7c253637992f9e
/Unsolved!/GameOfThrowns.py
bb3d4a4c60ddeb738961299bb753c67d52350f6c
[]
no_license
https://github.com/mohammedjasam/Competitive-Programming
bb83171535c5d8626a94c5e0d3b3d37e9e3f1de8
4a5ab3c12693b50eea139f0bb2040fd5676ed069
refs/heads/master
2021-01-19T20:22:59.026871
2018-04-27T14:56:24
2018-04-27T14:56:24
83,748,705
4
2
null
null
null
null
null
null
null
null
null
null
null
null
null
n, k = map(int, input().split()) actions = input() actions = actions.replace("undo ", "*") actions = actions.split() # print(actions) childQueue = [] for x in range(n): childQueue.append(x) revchildQueue = list(reversed(childQueue)) # print(childQueue, revchildQueue) current = [0] # print('a, index location, val...
UTF-8
Python
false
false
1,120
py
97
GameOfThrowns.py
91
0.521429
0.508036
0
38
28.473684
102
n8sty/dowhy
11,974,368,861,048
c024d05f36ac0c62523572cabc0c6e88c0933592
8a564da3207f01e1827eac5396ab12068cd06663
/tests/test_causal_model.py
d2cc4ef035a059a891a4483854ca3d5e94f9436b
[ "MIT" ]
permissive
https://github.com/n8sty/dowhy
09478cbf0694da7f6d4d6ce4f67baaa5de06b964
0b5e2c3efa348ca232ecc6355f0fc6ec4458241a
refs/heads/main
2023-06-10T00:10:03.085219
2023-05-27T01:46:08
2023-05-27T01:46:08
333,647,965
0
0
MIT
true
2021-01-28T04:44:40
2021-01-28T04:44:40
2021-01-27T22:23:42
2021-01-27T21:57:02
20,540
0
0
0
null
false
false
import pandas as pd import pytest from flaky import flaky from pytest import mark from sklearn import linear_model import dowhy import dowhy.datasets from dowhy import CausalModel class TestCausalModel(object): @mark.parametrize( ["beta", "num_samples", "num_treatments"], [ (10, 100, ...
UTF-8
Python
false
false
15,723
py
289
test_causal_model.py
184
0.511989
0.494817
0
502
30.320717
623
carlcarl/lazyhub
11,123,965,316,962
f5dc21479acc08ddec70480bfe07936e70857cba
9e278eeb8a05ec25a657b11a9bf7b6f7fa6ca7b3
/lazyhub/views.py
a81cf2d3afd6ade2de3aa60b091f3d67a1d68bb7
[ "MIT" ]
permissive
https://github.com/carlcarl/lazyhub
7b3aef3fa267b863a23367bc4a79b909edfabdf9
b98c86f2845d0b3b07d97885cead9506e9d71453
refs/heads/master
2023-07-12T18:06:46.400114
2015-09-01T03:52:45
2015-09-01T03:52:45
15,317,402
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.views.decorators.http import require_http_methods import json from django.http import HttpResponse from libs import github_query, date_filter from forms import QueryForm def index(request): return render(request, 'lazyhub/index.html') @require_http_methods(['GET']...
UTF-8
Python
false
false
973
py
13
views.py
6
0.622816
0.622816
0
28
33.75
62
ypolaris-com/module_publish_test
3,770,981,303,813
98bb697f37a122a69284c0d2b1d779423c03a327
16a1aa1fdc154ae166a54b491884d878ac01e22e
/Print_module/__init__.py
b745968536a0857facbfcf3d95216ff17bce6afb
[]
no_license
https://github.com/ypolaris-com/module_publish_test
e3ebde2b0a09c05522f72aaae9f4b0358bc6d211
6ee3cc95236733719fe277718df3e6808400c247
refs/heads/main
2023-08-31T18:39:20.685596
2021-11-10T13:30:11
2021-11-10T13:30:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Print_module.Star_print import *
UTF-8
Python
false
false
37
py
4
__init__.py
3
0.810811
0.810811
0
1
37
37
Rafaelbarr/100DaysOfCodeChallenge
15,358,803,059,082
de6a728a823c08dc660dac70e2e79c78fcc3a46d
c2c89df45a6640498bf9d292ef8c054e60633b52
/day006/001_100_years_old.py
2c7283d12c23dfe96a4dd1b22d9cf2c301a03e30
[]
no_license
https://github.com/Rafaelbarr/100DaysOfCodeChallenge
8841f70fd03a64f1a6c53f302b830baa16821d81
db75fd45dda2485fd52cbcbff4473d66514cc578
refs/heads/master
2022-01-07T10:23:34.474085
2018-04-27T05:36:22
2018-04-27T05:36:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- #This program asks te user for his/her name and age #Then return the year he/she will be 100 years old def run(): #Data input name = raw_input('What\'s your name?: ') age = int(raw_input('What\'s your age?: ')) #Result calculation older = (2018 - age) + 100 ...
UTF-8
Python
false
false
447
py
57
001_100_years_old.py
55
0.57047
0.53915
0
18
22.944444
67
mindspore-ai/mindspore
5,042,291,634,900
de7e93515c94f00cb06aa1ab51330e8ffdb5bde8
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/hcom/hcom_sparsetensor.py
1bce2fa712b889e157fad1c7d4cf808cbaac9c2a
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
https://github.com/mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
false
2023-07-26T22:31:11
2020-02-11T08:43:48
2023-07-26T10:48:16
2023-07-26T22:31:11
769,725
3,608
645
143
C++
false
false
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
UTF-8
Python
false
false
6,736
py
15,926
hcom_sparsetensor.py
11,911
0.636283
0.622922
0
172
38.162791
114
huanhuan077/python_1
1,400,159,371,452
96510c29811c2fe4dabc719ce1e8136182676e34
1da84e2c2818542f21e045be620df7c13f878225
/test_items/mianshi/socket_server.py
b9dff90514a2b3f8833b155e311a1e1a63176323
[]
no_license
https://github.com/huanhuan077/python_1
3ea0f1978a3c9f67e86e036fcfaf06dbbc7d8730
f3d6371e95e05b4c5e306bdaf04ef1535dbbbe2e
refs/heads/master
2020-04-03T11:27:26.640285
2020-04-01T03:08:37
2020-04-01T03:08:37
155,222,218
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf-8 import socket # 服务端 s = socket.socket() s.bind(('127.0.0.1', 6666)) s.listen(5) while True: c,addr = s.accept() print('连接地址',addr) c.send('welcome') c.close()
UTF-8
Python
false
false
205
py
114
socket_server.py
74
0.591623
0.528796
0
13
13.769231
27