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
14malbright/music-utils
14,611,478,786,129
e99098280a8059e7982bd1525538a973faec6d3d
795c7200bc283b9fee80dba1b6499d5104e40984
/music_tools/utils.py
6cbdc487f57a743ca7667ff5e2e6a17cb3f8babf
[]
no_license
https://github.com/14malbright/music-utils
8dc1f63f2280d8847c5d452c22db9a03f524c440
097975cfbbd07df4ef5bd09967572d565f4ca450
refs/heads/master
2022-02-17T19:33:52.305064
2022-02-15T02:30:32
2022-02-15T02:30:32
180,013,121
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from functools import wraps import requests def no_timeout(func): @wraps(func) def wrapped(*args, **kwargs): while True: try: return func(*args, **kwargs) except requests.ConnectionError: print(f"ConnectionError on {func....
UTF-8
Python
false
false
729
py
27
utils.py
21
0.554184
0.55144
0
27
26
73
kdheepak89/pypdevs
7,868,380,096,290
67db3e6854bcc87a53114c9fce7b0cdd345047f6
823909fb73fb3b721385e59b22f021be4183198b
/performance/benchmarks/PHOLD.py
ebbc9128b2bc79eb23e9d11171f53908cdef070d
[ "Apache-2.0" ]
permissive
https://github.com/kdheepak89/pypdevs
302c69757b8eca443ca5993af287543f190185d9
979d708a184d342313cc7c2b6bd24225e475af3b
refs/heads/master
2021-05-24T06:52:42.774852
2015-06-18T21:33:57
2015-06-18T21:33:57
37,686,146
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2014 Modelling, Simulation and Design Lab (MSDL) at # McGill University and the University of Antwerp (http://msdl.cs.mcgill.ca/) # # 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...
UTF-8
Python
false
false
5,030
py
17
PHOLD.py
9
0.612326
0.604374
0
144
33.930556
190
syurskyi/Python_Topics
18,167,711,666,390
680ddb6e52c93299793252fa5b7f5a0d9a3e0180
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/leetCode/BinarySearch/34_SearchForRange.py
0e5cb506f050a5583b6d6c9fe898279cdd9dabb2
[]
no_license
https://github.com/syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
false
2023-02-16T03:08:10
2019-11-09T02:58:47
2022-11-03T01:22:28
2023-02-16T03:08:09
198,671
2
2
33
Python
false
false
#! /usr/bin/env python # -*- coding: utf-8 -*- c.. Solution o.. # log(n) here. ___ firstAppear nums, target left, right = 0, l..(nums) - 1 _____ left <= right: mid = (left + right) / 2 __ target __ nums[mid] a.. mid - 1 >= left a.. target __ nums[mid - 1]: ...
UTF-8
Python
false
false
1,167
py
15,362
34_SearchForRange.py
14,734
0.384747
0.353042
0
48
23.3125
84
wzx120606/TensorFlowTest
13,486,197,312,993
17ff1bf8d15b4074f90373efbc5a3331a8273712
9805e2a9a6a2b5c4545adf7ef266d94a15850cd5
/TensorFlow/查看模型训练动态图2.py
bb6ebb683d3e3d89d8b22cb0d1c761cde1088819
[]
no_license
https://github.com/wzx120606/TensorFlowTest
46a1552c067bf3866ddc195219b2da071e319294
f54a9df2648f1e5c9b6d415e7b8743e6222d1c78
refs/heads/master
2022-01-12T10:18:59.242898
2019-06-27T02:57:56
2019-06-27T02:57:56
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data from tensorflow.contrib.tensorboard.plugins import projector # 载入数据集,如果没有则会将mnist数据下载到对应路径下 mnist = input_data.read_data_sets("MNIST_data",one_hot=True) # number of cycles max_steps = 1001 # number of pictures image_num = 3000 # file di...
UTF-8
Python
false
false
5,621
py
38
查看模型训练动态图2.py
35
0.706942
0.681239
0
112
43.125
147
jcafiero/Courses
4,690,104,324,787
45c8658784dff7f0988340eb7bc631687669a7d6
4f9e30387653a61cdc7c02fa1731c02aaea8aa59
/CS115/Homework/hw6.py
de60b9ed8d1434571401d8c55973265c5ce984bb
[]
no_license
https://github.com/jcafiero/Courses
03a09e9f32e156b37de6da2a0b052ded99ca4d07
c82bc4bbc5657643dabc3a01fadfd961c33ebf5e
refs/heads/master
2022-02-17T14:40:27.073191
2019-10-06T23:58:23
2019-10-06T23:58:23
103,605,315
1
1
null
false
2019-10-07T00:05:39
2017-09-15T02:36:30
2019-10-06T23:58:26
2019-10-07T00:05:29
26,596
0
2
3
JavaScript
false
false
''' Created on March 9, 2015 @author: Jennifer Cafiero, Ayse Akin Pledge: I pledge my honor that I have abided by the Stevens Honor System. CS115 - Hw 6 ''' # Number of bits for data in the run-length encoding format. # The assignment refers to this as k. COMPRESSED_BLOCK_SIZE = 5 # Number of bits for...
UTF-8
Python
false
false
1,603
py
287
hw6.py
138
0.562695
0.542732
0
58
25.482759
99
phongluudn1997/leet_code
11,802,570,146,311
f178f1d7a021341180cf409f506d440d0be39c5a
c583fbc131307c4f868c14c08525efec0f325bef
/magic_index.py
28e73a06306f0da59c1feb3770dfbe595d7f722c
[]
no_license
https://github.com/phongluudn1997/leet_code
8c7ccc8597c754c3ce0f794667777c3acea50fa2
c0fc0a53f44967b66afb101daaf6be05dedec24d
refs/heads/master
2021-03-28T11:56:02.646965
2021-03-13T10:57:09
2021-03-13T10:57:09
247,861,580
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def magic_index(array): if not len(array): return "No magic index found." middle_index = len(array) // 2 if array[middle_index] == middle_index: return middle_index if array[middle_index] > middle_index: return magic_index(array[:middle_index]) else: return magic_inde...
UTF-8
Python
false
false
379
py
74
magic_index.py
74
0.622691
0.609499
0
13
28.230769
48
ndkmbsr/L2
14,620,068,726,073
86e3de44dd62da5d29d28148cc1c9c7fa6c86b4c
adb773515e226668e086c77a4d2ff2e4c65838d8
/goruntu_isleme/MNIST_HOG_SVM.py
fc5139376a08f51ead9bac281b82dfd600db7a87
[]
no_license
https://github.com/ndkmbsr/L2
d455e5ece503c25963d0e35dd70982d4a697250d
2c9bcfa1ba860e3c475b877cfdef7abd913c169a
refs/heads/master
2020-04-11T16:23:45.796337
2018-12-15T17:15:09
2018-12-15T17:15:09
161,922,660
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from skimage.feature import hog from sklearn import svm import numpy as np from sklearn.metrics import confusion_matrix from datetime import datetime import warnings warnings.filterwarnings('ignore') ''''Main Function''' start_time=datetime.now() train_images=np.load('train_images.npy') test_images=np.load('test_imag...
UTF-8
Python
false
false
1,324
py
39
MNIST_HOG_SVM.py
3
0.72432
0.71148
0
44
29.090909
105
ponyatov/metaLold
12,902,081,787,796
2ab2b717db41f7774a514546fb316f5f3e289faa
a20a1bb293c18897133e6f4e6dde75f803654c94
/book/prolog/yield00.py
6731898851d3f8c33826af69e5d5fdd2d72c3d09
[]
no_license
https://github.com/ponyatov/metaLold
e7c0fe94002251e982f003d167a64a5fee2e2fed
e2f0680c945cf4fe44747d0102647740b6b1f740
refs/heads/master
2023-04-10T07:30:20.818855
2020-10-01T11:12:55
2020-10-01T11:12:55
173,776,238
0
2
null
false
2021-04-20T18:33:06
2019-03-04T16:00:23
2020-10-01T11:12:59
2021-04-20T18:33:06
19,202
5
2
4
TeX
false
false
def person(): yield "Chelsea" yield "Hillary" yield "Bill" def main(): for p in person(): print(p) main()
UTF-8
Python
false
false
130
py
283
yield00.py
93
0.546154
0.546154
0
9
13.555556
22
FidelAlberto/Jarvis
8,452,495,676,054
0b48fd2ec120a332be882d50d2be8f70e7cb64b4
857e986c54550246006b3b5c120e285ff6604680
/Program_Files/nlp/lemmatizer.py
f84553100653998e9ab27c79550bff760c11fac1
[]
no_license
https://github.com/FidelAlberto/Jarvis
f8166c264a162b4aec15f4bb83d77c855938fa7b
6218809f15bef844647f745e623e5e61dd725315
refs/heads/master
2022-04-07T23:26:26.075591
2020-02-26T20:16:18
2020-02-26T20:16:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from nltk.stem import WordNetLemmatizer lemmatizer = WordNetLemmatizer() my_tokens = ["leaves","calves","books","surprising","data mining","girls","goes","puppies"] for word in my_tokens: print(lemmatizer.lemmatize(word))
UTF-8
Python
false
false
226
py
15
lemmatizer.py
14
0.743363
0.743363
0
5
44.2
91
iut-ibk/PowerVIBe
3,221,225,510,993
1705adedee64755654e2da502b4582969becad03
58a167111cd91f21715b2ab0810833781ff77fb9
/scripts/PowerVIBe/importDAE.py
b44c53a00467dea6a8e8ffe76763382c58158188
[]
no_license
https://github.com/iut-ibk/PowerVIBe
33fd68bd219925e7a704d8833b8ab3463a257bcb
fb820fe77a6311fe20bf286943ebb82a8da5f48b
refs/heads/master
2016-09-03T07:26:44.500093
2014-04-10T14:53:07
2014-04-10T14:53:07
5,998,512
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 15 10:00:56 2012 @author: christianurich """ import collada from pydynamind import * class ImportDAE(Module): def __init__(self): Module.__init__(self) self.createParameter("FileName", FILENAME, "filename") self.FileName = "" ...
UTF-8
Python
false
false
2,297
py
83
importDAE.py
73
0.522421
0.510231
0
57
38.22807
154
UwePabst91052/Exercises
10,204,842,343,394
638cf943746a1595d727f8d9a30098346ff7adc4
3e6fbf27b5b4dac9a26589343981230c3214c5c8
/TeeUhr.py
7b269ebf28a0d02121f220a63b127618dc45eb57
[]
no_license
https://github.com/UwePabst91052/Exercises
9c08c6a6ee83e5be77eebcc579fef6cea8750cc1
9ea430599d63b4da53ddc2c103d2adeae9c105e5
refs/heads/master
2023-05-26T13:20:11.493249
2023-05-10T14:31:01
2023-05-10T14:31:01
264,718,193
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 'C:\Users\pabst\PycharmProjects\Übungen\TeeUhr.ui' # # Created by: PyQt5 UI code generator 5.14.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def set...
UTF-8
Python
false
false
5,179
py
26
TeeUhr.py
16
0.688104
0.662225
0
105
48.314286
103
bregnery/UFDiMuonsAnalyzer
16,664,473,119,817
08232cbb4433e6dfa6554306a3393c0a9f9c906e
6c53d1eefbcddd4d2fbc3caca02616af14dae5d9
/UFDiMuonsAnalyzer/test/UFDiMuonAnalyzer.py
72802a0c0a3f3d6d4e41324ab0a285713d65730b
[]
no_license
https://github.com/bregnery/UFDiMuonsAnalyzer
691950774bf7496980cca5ca709b8c51ebc7bc32
91813ccc4f309b9be46f1ee0d3a59121c66ec949
refs/heads/master
2020-12-12T06:49:39.015086
2016-03-11T23:20:53
2016-03-11T23:20:53
40,377,298
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("UFDiMuonAnalyzer") thisIsData = False if thisIsData: print 'Running over data sample' else: print 'Running over MC sample' process.load("FWCore.MessageService.MessageLogger_cfi") #process.MessageLogger.cerr.FwkReport.reportEvery = 1000 ##proces...
UTF-8
Python
false
false
5,924
py
2
UFDiMuonAnalyzer.py
2
0.6342
0.618501
0
145
39.841379
116
ShayLn/py-fighter
17,944,373,399,712
e9ae4aaf3ae4d097e2d66a903ae07922421af2b2
52a8ba52146c6943e00b34b8f5823b21f2622fe3
/pyfighter.py
f03166b36baa6fdfa97506d30d43369b33911b6c
[ "MIT" ]
permissive
https://github.com/ShayLn/py-fighter
718db5d6f889abd2f078b2c11ad0ffd9d219cd24
01ace29afb066e6d5965d1fd460c5939c8b8c81b
refs/heads/master
2023-03-29T12:11:56.412382
2021-01-05T10:42:12
2021-01-05T10:42:12
327,468,085
0
0
MIT
true
2021-01-07T14:18:40
2021-01-07T01:09:33
2021-01-07T01:09:34
2021-01-05T10:42:16
106,958
0
0
1
null
false
false
''' Pyfighter (working title) A long time ago in a galaxy far, far away there existed in person tuition. But in the year 2020, COVID struck. All semester modules have been 100% online and you haven't seen your professors. So do they exist? Are they just a figment of your imagination? To cut costs, the universit...
UTF-8
Python
false
false
4,821
py
35
pyfighter.py
20
0.702136
0.693217
0
159
29.308176
118
131131yhx/rchol
3,607,772,552,183
ee8e0cb1cae095068d05b5416d0569e64d179e82
498b99130944b81809627ffcf9bf3ae95eaa2660
/python/ex_reuse_partition.py
3fe180882beca002f447c93b3b221a22e0951e55
[ "BSD-3-Clause" ]
permissive
https://github.com/131131yhx/rchol
f5759b3ae04ed77eabfbf9be06437626bcc905b3
100c6264958beba9d7d87e93d1f8808a6cc6df34
refs/heads/master
2023-04-28T12:13:13.980643
2021-04-24T19:34:55
2021-04-24T19:34:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.append('rchol/') import numpy as np from scipy.sparse import identity from numpy.linalg import norm from rchol import * from util import * # Initial problem: 3D-Poisson n = 20 A = laplace_3d(n) # see ./rchol/util.py # random RHS N = A.shape[0] b = np.random.rand(N) print("Initial problem:") # c...
UTF-8
Python
false
false
1,190
py
48
ex_reuse_partition.py
25
0.679832
0.663025
0
44
25.977273
74
qwertyuu/old-code-backup
644,245,107,622
d418f6a30acd2535a28407674eb42201a24bfbea
af396ad814ec4bf1849908c7f83b402ae191fab2
/2k16/QualityContent/QualityContent/QualityContent.py
c1024dbcb08871672c54a221d0ce3ace14469ac7
[]
no_license
https://github.com/qwertyuu/old-code-backup
bab805dda171814bf72aa9b3693827667819f56c
6a47b8d9f18e01a90be2de9267d955851e413f9a
refs/heads/main
2023-02-20T04:52:28.362866
2021-01-22T08:36:54
2021-01-22T08:36:54
331,884,338
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import json import pprint def login(username, password, header): """logs into reddit, saves cookie""" print 'begin log in' #username and password UP = {'user': username, 'passwd': password, 'api_type': 'json',} #POST with user/pwd client = requests.session() client.header...
UTF-8
Python
false
false
1,099
py
409
QualityContent.py
33
0.631483
0.621474
0
40
26.45
185
ufomysis/cartbot
8,667,244,019,518
8673d830589b49d954e94a57c883a13254edd9da
401900b0ed64dc00775ef4bb39ff9d37fc7566b4
/remove_invalid.py
200d361ad489f4d5b756a2929c918836a57ff21a
[]
no_license
https://github.com/ufomysis/cartbot
9e6c6809008c1b3b9565949b8dcd4fdf0ff3e4dc
14b8544b7586df22025674a7dfa0d4b38cfcaca4
refs/heads/master
2021-01-23T20:12:12.574211
2013-04-13T14:37:54
2013-04-13T14:37:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys,json import os.path file_in = open(sys.argv[1], 'r') obj = json.load(file_in) for x in list(obj.keys()): if not os.path.exists(obj[x][0]): del(obj[x]) file_out = open(sys.argv[2], 'w') json.dump(obj,file_out)
UTF-8
Python
false
false
235
py
8
remove_invalid.py
6
0.617021
0.604255
0
12
18.583333
37
sajanraj/Optical-Character-Recognition
13,589,276,565,562
4d8acbb045c482a90fc7a67577b9fed8ce3139ba
474e4059af0858ddcafaa61f61eeecb2626888df
/pancheck.py
a7e014f5b811b13ebf3db931e47099708147f10e
[ "MIT" ]
permissive
https://github.com/sajanraj/Optical-Character-Recognition
258416fa3a5ab97623fad2e4cdc904ccaf96dbef
a21064457322089a1ddeaedd49ffe4bc619000a5
refs/heads/master
2023-03-20T07:17:47.326224
2021-02-28T05:04:36
2021-02-28T05:04:36
213,962,684
1
0
null
false
2021-02-28T05:04:36
2019-10-09T16:02:02
2020-05-07T12:59:12
2021-02-28T05:04:36
3,123
0
0
0
Python
false
false
# -*- coding: utf-8 -*- # import the necessary packages # construct the argument parse and parse the arguments def ocr(imgdata,pan,preprs): print('path1=',imgdata) from PIL import Image import pytesseract import cv2 import os path=os.getcwd() print('pathos=',str(path)) fro...
UTF-8
Python
false
false
1,804
py
4
pancheck.py
3
0.609202
0.592572
0
61
27.540984
70
abeljim/SSDK
19,327,352,840,960
5a9417108f96f7dc42392b87f93f004e41a65202
6effe32673d1dcb7d86a81991ea3a35e82ed4533
/SA_cap_figures.py
4b208b81b46504d767828151cd941ad5d807688b
[]
no_license
https://github.com/abeljim/SSDK
406eb903a8349a11cf3aedddcd45444e9ce9d8f3
84edc24e27a6b0b69831f1eae7b8ad668ae217e4
refs/heads/master
2020-09-10T20:04:32.910237
2019-11-15T16:35:11
2019-11-15T16:35:11
221,822,185
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from zipfile import ZipFile import matplotlib.pyplot as plt import scipy from scipy import signal import mdat def plothot(i, run, steps, cvmin, cvmax, plotmin, plotmax, plot, alpha=1): sweeprate = steps[i] # Create a dummy array onto which we can append data buffer = [run[s] for s in r...
UTF-8
Python
false
false
14,569
py
44
SA_cap_figures.py
40
0.576086
0.528863
0
354
40.155367
185
dunsmoorlab/fearcon
15,015,205,699,726
35941350cfb0f33adaa76efd1a956291043ad957
51a8770d852af6d01158a1dba6ca37ea96eb7ed8
/estimate_bs.py
9308ea7620cb88e947e74c8c882f272939c3f45e
[]
no_license
https://github.com/dunsmoorlab/fearcon
4c322db3f3634a1c4f98918b9157725421786f48
78282c4f9b987d302b68d3dc4d78c05778fe5b14
refs/heads/master
2022-12-12T11:31:51.810749
2020-09-18T20:47:44
2020-09-18T20:47:44
102,023,350
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from glob import glob import os from fc_config import * from glm_timing import * from preprocess_library import meta from shutil import copytree, move from argparse import ArgumentParser, RawTextHelpFormatter from mvpa2.misc.fsl.base import FslGLMDesign, read_fsl_design from mvpa2.datasets.mri import fmri_dataset, ma...
UTF-8
Python
false
false
11,385
py
341
estimate_bs.py
122
0.691085
0.686166
0
350
31.531429
115
fylein/fyle-qbo-api
15,229,954,032,034
cdf4434dcd92938adf008bcb777003f69c17c518
a5564fbf541b4fb602f5ad47aa5d06441bcf9f0a
/apps/tasks/migrations/0005_tasklog_qbo_expense.py
5a7e3bb569647b23f62149a6a4aeabcd48a35872
[ "MIT" ]
permissive
https://github.com/fylein/fyle-qbo-api
1fc222501276ebf0f316f43bb278a6adcc0e08ce
b4c464cc6442ead91ceb3b2840103b27af3e029c
refs/heads/master
2023-08-31T06:26:07.296341
2023-08-24T15:45:55
2023-08-24T15:45:55
243,419,752
1
3
MIT
false
2023-09-07T13:31:53
2020-02-27T03:15:01
2023-07-25T14:33:19
2023-09-07T13:31:52
9,991
1
3
3
Python
false
false
# Generated by Django 3.0.3 on 2021-05-04 19:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [('quickbooks_online', '0010_qboexpense_qboexpenselineitem'), ('tasks', '0004_tasklog_bill_payment')] operations = [migrations.AddF...
UTF-8
Python
false
false
522
py
279
0005_tasklog_qbo_expense.py
242
0.760536
0.716475
0
11
46.454545
234
IgorFedchenko/TicketSystem
9,062,380,994,598
ee9ac034d58d2cb77e7a54b73052eca5c169d45d
a94409c79b9ca3ecbbe5fe82971470c58aa3e57f
/TicketSystem/urls.py
5d163447865edb0c4a875adf828c1058c3e6ec3b
[]
no_license
https://github.com/IgorFedchenko/TicketSystem
d26e57774ba20a07ec9926b32f14e2a583d231a7
3038c62e4fb205b1b9687022c512256b256c3391
refs/heads/master
2016-09-02T04:35:21.934804
2015-06-26T11:26:20
2015-06-26T11:26:20
27,052,482
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from tickets import views from tickets import api urlpatterns = patterns('', # Examples: # url(r'^$', 'TicketSystem.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^$', views.tickets_list), ...
UTF-8
Python
false
false
1,447
py
17
urls.py
7
0.63718
0.636489
0
27
52.592593
138
mohiitaa/synthesis-and-optimisation-of-digital-circuits
3,642,132,305,626
d1e9e200e285359d843018203668319bbe176df4
083af5989edd689b34d75f6cbe45c352a8eeeccc
/Operations_URP/Cofactor/Cofactor/op_notor.py
95b5bf88d9fb683e28b3cfa557e9ccd6a4015aae
[]
no_license
https://github.com/mohiitaa/synthesis-and-optimisation-of-digital-circuits
3382c66a98ee97edff62e2598caf9a5c36c5a8be
ff9d8da4ce306227c437ed42c39af463cf098ca2
refs/heads/master
2022-04-10T06:38:58.068952
2020-03-13T17:48:02
2020-03-13T17:48:02
116,579,416
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' # Simple OR operation between a and c. # Constraint:Neither a nor c can be null("00") # c is complemented in the begining (b=c') .Then we proceed # ahead by following these simple steps: # # i) If a and b are equal, the result is equal to one of them # ii) If a="11" the result is "11" # iii) If b="00", ...
UTF-8
Python
false
false
739
py
21
op_notor.py
13
0.491204
0.445196
0
35
19.114286
62
BenDoan/playground
12,859,132,131,464
f39a6e9220018de7cd840b6823edb4b9bdef9c04
4945fef321f2823683378d71b49b3d2fae222d0d
/python/email-transaction-to-budget/email_transaction_to_budget.py
09dbc91c8c207ddd9df0671b59348b9b4014c9ff
[ "MIT" ]
permissive
https://github.com/BenDoan/playground
0c1fc4cfca81be68dfafde6974f95a6564366948
28fd14f08090023a6cb2cbcf98c16b4f041e2050
refs/heads/master
2023-05-26T07:26:28.374004
2023-04-30T16:14:07
2023-04-30T16:14:07
29,168,104
1
0
MIT
false
2023-02-22T21:14:19
2015-01-13T02:11:46
2021-12-16T05:51:33
2023-02-22T21:14:17
2,879
1
0
66
Jupyter Notebook
false
false
#!/usr/bin/env python import argparse from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request import configparser import datetime import imaplib import json import os.path import pickle import re import traceback import enum ...
UTF-8
Python
false
false
9,170
py
123
email_transaction_to_budget.py
52
0.529662
0.524973
0
301
29.465116
88
ritheshbhat/flask-restful
5,531,917,899,142
073c04e7163b1921f24e02a762f4d50aabb13bb6
92dfdc573ddb703306b0ba05a5bbcbefd8647a11
/setup.py
97563642b1c4abfe73ca6b8a32832637d34da9ca
[]
no_license
https://github.com/ritheshbhat/flask-restful
35a136eb57477b9e3e005e05081c409f59c176b6
af3d420b043edcb7ddb4c135e0ce5352b2792ae4
refs/heads/main
2023-06-17T07:01:47.291384
2021-07-11T10:41:09
2021-07-11T10:41:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function from os import path from setuptools import find_namespace_packages, setup here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() with open(path.join(here, 'src/wisecoder/version.txt'), encoding...
UTF-8
Python
false
false
679
py
8
setup.py
5
0.662739
0.655376
0
25
26.16
79
rodrigowerberich/TaskAllocation
19,172,734,037,700
c7e54a379149a21b01c693f893d04f205da98ce8
c1f28fa6e77dd9acba75cf6c5aa65168ebbe479c
/task.py
5b9a9aff89c7349f4fe3e96816fdd8b03dd93ee8
[]
no_license
https://github.com/rodrigowerberich/TaskAllocation
163067076cd48d9b76b3407f8fe291844dfa8de0
408add66320ef496c542566ea0d83afda732ea72
refs/heads/master
2020-04-24T06:45:04.085279
2019-02-27T17:31:21
2019-02-27T17:31:21
171,775,818
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from functools import reduce class Task: def __init__(self, name, mu_tasks, priority, deadline): self.name = name self.mu_tasks = mu_tasks self.priority = priority self.deadline = deadline def __str__(self): return 'T'+str(self.name) def __repr__(self): ret...
UTF-8
Python
false
false
333
py
28
task.py
25
0.582583
0.582583
0
14
22.857143
59
duplodemo/demoservice
4,904,852,669,637
73eb3c0be52e9ced86baf5a4a52dfbc1c8e733d0
2750060dc44575bf2a324ad6cd5e0bfc38716e6a
/mysite/mysite/s3_utils.py2.7.py
23c8f6e22a6e54b2fdfc63d48c63e450eba40bcb
[]
no_license
https://github.com/duplodemo/demoservice
179325b6f5c32284127cd0b0b99134b26b9bdd54
9b32551c31bb62eddd93c43a6d194f66dbf60161
refs/heads/master
2023-04-14T09:37:20.307891
2023-04-04T08:51:42
2023-04-04T08:51:42
70,591,728
0
8
null
false
2023-04-04T12:43:38
2016-10-11T12:38:14
2021-11-02T16:34:21
2023-04-04T12:43:37
189
0
7
25
Python
false
false
# import boto # import sys, os # from boto.s3.key import Key # from boto.exception import S3ResponseError # from django.conf import settings # # class S3Utils: # # ############ s3 file list ####### # def get_s3_list_default(self): # s3_bucket = settings.S3_BUCKET_DEMO # if s3_bucket is None or s...
UTF-8
Python
false
false
1,917
py
18
s3_utils.py2.7.py
12
0.561815
0.535211
0
52
35.865385
86
tomguy04/Algo_Repo
8,478,265,485,785
ea1ff8c12f888594d4eae95ce11610c3f6a7dbfc
2fbd6f5c4fd129c6e22eb716fedacd2729271ad4
/17_RotateMatrix.py
e47276ef7eb614cd34bbaa57ab991660660c9937
[]
no_license
https://github.com/tomguy04/Algo_Repo
e4479fc4a2fdd073cd3251065aa1ffa2179c2d7b
cee7126130c3874c2963dfda4f491edb2782962c
refs/heads/master
2020-03-29T20:08:47.514646
2018-09-25T16:39:55
2018-09-25T16:39:55
150,297,855
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
matrix =[ [1, 1, 1, 2], [4, 0, 0, 2], [4, 0, 0, 2], [4, 3, 3, 3] ] for row in matrix: print row matrixSize =len(matrix) print ('this is a '+ str(matrixSize) +' by ' + str(matrixSize) + ' picture') number = 0 row = 0 temp1 = 0 temp2 = 0 #...
UTF-8
Python
false
false
1,377
py
23
17_RotateMatrix.py
23
0.548293
0.506173
0
49
25.816327
144
hinamaladkar/BE_project
17,016,660,440,422
2cd3aca3a46bff4104f92e07004cf73aaa1275b7
fac25298f2f78c7f680ed399fa57544c957a8011
/get_val_so.py
4d4fa45db2d90c0ce5658bded42492e99934c2d1
[]
no_license
https://github.com/hinamaladkar/BE_project
50acec58e82e5185ee227f3a99ba736c91962c5d
2e6515b59f0a0c3a0bc7217b8d866a1f60f02144
refs/heads/master
2020-05-21T22:06:49.942771
2016-09-26T11:54:30
2016-09-26T11:54:30
65,819,555
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import requests url = "https://www.google.com/finance/historical?cid=13564339&startdate=Jan+01%2C+2015&" \ "enddate=Aug+18%2C+2016&num=30&ei=ilC1V6HlPIasuASP9Y7gAQ&start={}" #url = 'https://www.google.com/finance/historical?cid=13564339&startdate=Aug+21%2C+2014&enddate=Aug+19%2C+20...
UTF-8
Python
false
false
843
py
7
get_val_so.py
5
0.676157
0.604982
0
22
37.318182
144
DDFaller/INF1771_Trab1
7,825,430,417,573
8b325ef7077f45ac4d0058dface32b4d11c69974
17042850060c679af708ebb0a226aba008c87697
/Processingpy/AValues.py
ae8e7d4bdfefb02feba08805928444052367aaf1
[]
no_license
https://github.com/DDFaller/INF1771_Trab1
9870d55941f91d3b6f11b25bb55f04c2c8f19b9d
30b1c8820df647a5c07fd931740576a536facb62
refs/heads/master
2022-12-29T05:49:10.934551
2020-10-19T08:10:02
2020-10-19T08:10:02
296,998,558
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class AValues: def __init__(self): self.f = 0 self.g = 0 self.h = 0 self.previous = None def heuristic(self,position,breakpointsList): lowestDistance = 1000 for pos in breakpointsList: x = pos[0] - position[0] y = pos[1] - position[1] ...
UTF-8
Python
false
false
592
py
21
AValues.py
19
0.518581
0.493243
0
21
27.142857
49
EvilBorsch/homework-4
12,635,793,801,609
e18ec070c485ea389e29cff21f6d65582ca061f8
4640b2d6e727941957351aabdc5769e375b0c097
/pages/FoldersPage.py
2031b86bf75cad641e500db2f2f31460010532d3
[]
no_license
https://github.com/EvilBorsch/homework-4
f33c85c117f57e66ddae6cffc1e6522cc2000778
2ffd4d6ca913bfb9d00eef77d77eaaa28c908ebf
refs/heads/master
2023-02-15T05:47:17.355737
2021-01-09T22:09:50
2021-01-09T22:09:50
310,119,397
0
0
null
true
2021-01-08T18:15:34
2020-11-04T21:15:29
2021-01-08T17:57:42
2021-01-08T18:15:34
19,061
0
0
1
Python
false
false
from components.folders.AddFolderForm import AddFolderForm from steps.MainPageFoldersSteps import MainPageFoldersSteps from .BasePage import * class FoldersPage(Page): BASE_URL = "https://e.mail.ru" PATH = "/settings/folders" @property def add_folder(self): return AddFolderForm(self.driver) ...
UTF-8
Python
false
false
863
py
38
FoldersPage.py
37
0.635392
0.628266
0
31
26.16129
61
NutKaewnak/main_state
42,949,689,755
019425c0eb3baf07ca2585988415c9f05220b95f
0859d6eb51c7d84b3f60df80d7dc1ed162d1b973
/nodes/include/old_method_in_manipulator_controller.py
4f1f6f6b7f7547afd0d960aac4ea4d2fc40bc698
[]
no_license
https://github.com/NutKaewnak/main_state
b95001cf8e38c935a8de492ca4e6b35854f8a4ae
9ce4875e97f71a08c2cc2be804a93aa943bc94af
refs/heads/master
2021-03-27T11:13:25.465496
2017-04-27T12:49:36
2017-04-27T12:49:36
54,113,012
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def init_position(self, point): """ Init position and flip y-axis for invert kinematic :param point: (geometry/Point) :return: None """ rospy.loginfo("-----INVK INIT POSITION-----") if self.arm_group == 'right_arm': pass elif self.arm_group == 'left_arm': point.y *= -1 ...
UTF-8
Python
false
false
6,791
py
232
old_method_in_manipulator_controller.py
175
0.656015
0.64556
0
169
39.189349
133
adityabalu/trimesh
3,977,139,744,436
1f354b735a1b68a014d7fcd8082a2a82331326dd
e3eb5e6c52465e78c27550db275238d7059ac8f9
/trimesh/version.py
d55e3e6e53023f103812a5fc715155a1dacaf6c1
[ "MIT" ]
permissive
https://github.com/adityabalu/trimesh
1ce1210918c3ed8c53105aa1614dccfc2c9ab697
b64f9763e48f09efbd1d4195bc34bf2cb7eb9c71
refs/heads/master
2020-04-23T05:44:24.895089
2019-02-15T15:53:15
2019-02-15T15:53:15
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__version__ = '2.36.28'
UTF-8
Python
false
false
24
py
4
version.py
4
0.5
0.291667
0
1
23
23
Jung-Yuna/ClassRaspberryPi
15,393,162,807,852
1269640f8f4af6b04de2955625fd818b1d8aaf48
2b59789818d6478d074db58193d71c7ce03267ef
/LED.py
e050db0c095d08a0d6644c7c7d7d8343e6b6a268
[]
no_license
https://github.com/Jung-Yuna/ClassRaspberryPi
9deed195068dacd5e7c7cb74d6348fb368004a0f
152749aeb473b81092e2850f22b9d40ff6c868de
refs/heads/main
2023-06-01T12:11:13.222461
2021-06-21T05:29:52
2021-06-21T05:29:52
370,293,096
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) LED1 = 12 LED2 = 10 def main(): GPIO.setup(LED1, GPIO.OUT, initial=GPIO.LOW) GPIO.setup(LED2, GPIO.OUT, initial=GPIO.LOW) while 1: GPIO.output(LED1, GPIO.HIGH) GPIO.output(LED2, GPIO.LOW) time.sleep(1) GPIO.output(LED1, GPIO.LOW) GPIO.output(...
UTF-8
Python
false
false
387
py
4
LED.py
3
0.677003
0.638243
0
22
16.590909
45
liuluyang/miller
7,103,875,936,182
e41513b8c43a6c24e1cd6831b80fd230f69b9ebd
3fc7a6ffc39390c8228b30b6d53a3429104bf5f3
/education/10-16/字典.py
7514f2419bef4d93d9cf5056fe3336553e53027c
[]
no_license
https://github.com/liuluyang/miller
a5463c0f9625570de2cf16a9844ed4c7f82dde76
786f286749972fb2c3a66e068a3874a00aa0f2ee
refs/heads/master
2020-09-21T22:20:22.987833
2019-11-30T03:20:13
2019-11-30T03:20:13
224,952,326
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# staff_list = [ # [“miller”, 23, ‘CEO’, ‘88888’], # [‘黑姑娘’, 24, ‘行政’, ‘55555’], # [‘liuser’, 25, ‘讲师’, ‘44444’], # [‘egon’, ‘33’, ‘组长’, ‘77777’], # xxxxxx # xxxx # xxxxx # ] # for i in staff_list: # if i[0] == "黑姑娘": # print() # user_info1 = {"username": "miller", "password": 123564789} # user_info2 = ...
UTF-8
Python
false
false
1,629
py
190
字典.py
180
0.519319
0.414538
0
76
19.065789
96
jaycodeco/ntube
2,087,354,123,848
675304d234a2dea270f8365e01206be35f259a87
d9a327f9f8376ba8e244d385fd37b4963582e6bc
/nBack/search.py
2e1cebebafa1ff5bfa03a75335f64d4e1ab866bd
[]
no_license
https://github.com/jaycodeco/ntube
0e16c7e66273a563e48b2ce33d98e9fd5a43f7fc
2becddc3d61a3192860b312c22e8f4e8cf276b3e
refs/heads/master
2023-05-25T22:23:27.178331
2021-05-27T15:33:13
2021-05-27T15:33:13
360,448,773
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse from googleapiclient.discovery import build from googleapiclient.errors import HttpError DEVELOPER_KEY = 'AIzaSyD6FMCZQyNq0qmnVW_CofjVe-uf3P7DIB0' YOUTUBE_API_SERVICE_NAME = 'youtube' YOUTUBE_API_VERSION = 'v3' videos = [] def youtube_search(options): youtube = build(YOUTUBE_API_SERVICE_NAME,...
UTF-8
Python
false
false
1,416
py
26
search.py
4
0.603814
0.579802
0
57
23.701754
166
ChenhongyiYang/Gibson_Detection_Depth
14,929,306,323,968
daac7c9d9d5c662c8230bd2cd5659b049e278101
e9048785bf4f8af1f6baae3f14c1e0f0bfe8e5ce
/visulization/box_vis.py
969ed8132174d06b8cb74bb6ea68cd29f0bc5b78
[]
no_license
https://github.com/ChenhongyiYang/Gibson_Detection_Depth
0d5e9fbce4f781aa2117eb039bcd312d03b6c318
8359a9738d3e7eb61d26bb51bb562d1d6f08a05b
refs/heads/master
2020-06-11T02:58:19.849410
2019-06-26T05:03:33
2019-06-26T05:03:33
193,832,498
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np import random import os img_width, img_height = 600, 600 def rand_color(): return (random.randint(0,255), random.randint(0,255), random.randint(0,255)) def draw_img(img_file, txt, out_dir): img = cv2.imread(img_file) img = cv2.resize(img, (img_height,img_width)) f = ...
UTF-8
Python
false
false
1,587
py
13
box_vis.py
12
0.540013
0.509137
0
54
28.074074
112
kml27/graphics_algos
13,580,686,612,543
663d69ba486c2cea9baa9031b8f4e73c1de1a95b
735f86b9abcb9e863b26b14abe395eeed172c72c
/archimedes.py
31c2b1511b8ff52ddb4bf40f2f3a61676d661b01
[]
no_license
https://github.com/kml27/graphics_algos
79f2e9656da71a24e99f7e2883790f9dee05e27d
fe9f913b13aca0d03490c0353569eaa192b2bce8
refs/heads/master
2022-07-20T00:43:53.234599
2018-04-21T21:39:44
2018-04-21T21:39:44
264,089,091
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jun 17 12:21:48 2015 @author: Kenny """ from __future__ import division import math, turtle #archimedes spiral (ish) turtle.speed(0) turtle.getscreen().tracer(16, 5) #iterate from this number of divisions to the min (triangle) max_divisions = 10 trian...
UTF-8
Python
false
false
2,520
py
20
archimedes.py
19
0.547222
0.519444
0
96
24.270833
88
trassir/scripts
14,267,881,405,454
7fcafcbd948c661ec769b3ba5c14b57652e37704
0189e2f620de20ae5d087a3d3921332afdabb141
/scripts/universal/alarm_monitor/ts_generator.py
aa6ed95a00a5a60cbc4ef6375f08b3b45e4e5cd9
[]
no_license
https://github.com/trassir/scripts
8ef6ee1f249a4e24390434e979e6aaf067998430
20f8336de76160b65f08e65ec71c3c186e01fb5e
refs/heads/main
2023-04-16T07:31:23.557848
2021-04-28T13:14:25
2021-04-28T13:14:25
344,463,871
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys import argparse from datetime import datetime from difflib import get_close_matches sys.path.append('resources') sys.path.append('../../../../') os.environ["SAVE_ORIGINALS"] = "True" from localization.translation_base import load_translation parser = argparse.ArgumentParser() parser.add_argumen...
UTF-8
Python
false
false
4,840
py
265
ts_generator.py
165
0.47686
0.47376
0
135
34.851852
114
agnunez/IQMon
16,303,695,896,477
770e67f9fdc29004d402de1f4c5b509d3913be86
3c86c755055ca02a0092507e9779eabbe9c3ab0f
/setup.py
772181bc215889c8bbbac74ac0f7bd2b7b16751a
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
https://github.com/agnunez/IQMon
da3c15bc2116d5268f5377b5961d48f298f2e983
14fade394389e4d9ebe9f7c0fe637033a3ebdc12
refs/heads/master
2020-04-07T08:17:19.284403
2016-12-12T01:13:12
2016-12-12T01:13:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup, find_packages from IQMon import __version__ setup( name = "IQMon", version=__version__, author='Josh Walawender', packages = find_packages(), )
UTF-8
Python
false
false
190
py
9
setup.py
4
0.668421
0.668421
0
8
22.75
43
sevencrime/python
13,159,779,841,593
caf419343eba365fe5d0fa353dc2f0b4725551f4
91ac41baf7b0a91efd8ee657e9fe44fe1835979b
/示例/播放音乐/play_music_demo.py
80f35cab9fd03590a47f9ebe7ff1939a3149b32d
[]
no_license
https://github.com/sevencrime/python
0c3b27e25da1d48ac37950756be5bad821d0948c
2ee80e467cd57db5d113b65eb9dfae2d5a561a43
refs/heads/master
2021-12-15T11:42:16.781369
2021-12-12T13:25:00
2021-12-12T13:25:00
160,919,719
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' pygame.init() 进行全部模块的初始化, pygame.mixer.init() 或者只初始化音频部分 pygame.mixer.music.load('xx.mp3') 使用文件名作为参数载入音乐 ,音乐可以是ogg、mp3等格式。载入的音乐不会全部放到内容中,而是以流的形式播放的,即在播放的时候才会一点点从文件中读取。 pygame.mixer.music.play()播放载入的音乐。该函数立即返回,音乐播放在后台进行。 play方法还可以使用两个参数 pygame.mixer.music.play(loops...
UTF-8
Python
false
false
1,895
py
43
play_music_demo.py
40
0.788039
0.769569
0
29
38.068966
207
trtnk/audio_classification_by_tf2
1,915,555,450,677
7c7cc0ae789bb0d432a32219833f75bb91085be8
0f866a525fde956ca418efd05b2a7a5f56c384a1
/util/create_cvset.py
52722f4224b7e934fea6f3e5c11f13c41a6d1a44
[ "MIT" ]
permissive
https://github.com/trtnk/audio_classification_by_tf2
7bb2cdfabbe04334962af3fecd3da27eb6fbd67e
3d18c68315f3d6509bb36ef15d4ec4f9c8f07f61
refs/heads/main
2023-03-12T10:16:31.244991
2021-03-03T02:30:31
2021-03-03T02:30:31
343,843,017
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from util.common import * import pandas as pd from sklearn.model_selection import StratifiedKFold, KFold from iterstrat.ml_stratifiers import MultilabelStratifiedKFold def get_cv_df_from_yaml(config_yaml_path, output_csv_path=None): config = yaml_load(config_yaml_path) directory_label_name = config["directo...
UTF-8
Python
false
false
5,877
py
10
create_cvset.py
10
0.603199
0.602348
0
136
42.213235
167
liangxuCHEN/A2Z_python
10,393,820,905,610
17fb76eb004ef4c2115bb767ab1d50f0036d324d
ae201b67ef7762623a7b02d324f41f5b283a97ee
/file/db_test.py
3876930ee185adc691e6762e85988555fe1f11c4
[]
no_license
https://github.com/liangxuCHEN/A2Z_python
dfb9c1df5d4f97d1d0588402fce8479881675b7a
b609f0ecdf88929f60745671e3cbb594217a2325
refs/heads/master
2020-09-23T20:25:38.065725
2020-03-31T09:10:32
2020-03-31T09:10:32
225,578,825
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sqlalchemy import Column, String, Integer, create_engine, ForeignKey from sqlalchemy.orm import sessionmaker,relationship from sqlalchemy.ext.declarative import declarative_base # 创建对象的基类: Base = declarative_base() # 数据库连接字符串 DB_CONNECT_STRING = 'sqlite:///db_test.sqlite' # 定义User对象: class User(Base): # 表的...
UTF-8
Python
false
false
2,123
py
29
db_test.py
4
0.636565
0.628255
0
84
20.488095
73
ravina-gelda/arith
6,416,681,145,719
40d5a9b972de4fba18a8e19f3cdfde5ec0b8a8c0
b338af96eeecf70bc18004a0c73b465cc649f919
/arith.py
72384ec159d21e11ff403760f6cae975cff8e5b6
[]
no_license
https://github.com/ravina-gelda/arith
d4954e7cd8ee8972b72b0d3da29577eabc497f9b
d8b4dc21e253d65475e118d138e08c88c23f7c27
refs/heads/master
2022-04-13T12:53:59.398504
2020-04-11T00:16:06
2020-04-11T00:16:06
254,487,479
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import sys sys.tracebacklimit = 0 class node(): def __init__(self, left, right, op): self.left = left self.right = right self.op = op class parser(): def __init__(self, input): self.input_list = input.split(" ") # print(self...
UTF-8
Python
false
false
2,850
py
3
arith.py
2
0.442807
0.441404
0
99
26.787879
91
eduns/Fatec
4,930,622,469,223
423b6d0bf56a4c2beb31c05e84459efa830c14b0
59ca455b0cb6fc31e8cf2359044d7ba35ea8ba5e
/lista_II.py
16e0b26597299ab95f572e87d0cab971d49fb5a0
[]
no_license
https://github.com/eduns/Fatec
4d298de36e8cad859e91b4204c5da5ae86309275
67ad3caa442cb9008521a8201c492d204f1dee39
refs/heads/master
2020-03-07T16:37:49.998655
2019-03-03T21:16:02
2019-03-03T21:16:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#------------------------------------------------------- # Exercício 1 print("============== Exercício 1 ==============") ladoA = int(input("Lado A: ")) ladoB = int(input("Lado B: ")) ladoC = int(input("Lado C: ")) if ladoA < ladoB + ladoC or ladoB < ladoA + ladoC or ladoC < ladoA + ladoB: if ladoA == lado...
UTF-8
Python
false
false
3,607
py
7
lista_II.py
6
0.429253
0.401741
0
102
32.921569
75
simon-cutts/message-broker
7,258,494,751,870
d30b68ef0244f4f90bc3b25e7de8b78a03191aa3
d9216275d4c9be88a57d4b0a8b63146ca741193a
/Wlst/wlst/GetParam.py
8d56969c8cf290cc4683356d1bf1a3a49c23ba19
[]
no_license
https://github.com/simon-cutts/message-broker
9fd0363e85d21398048b1f0c4907da7ef3bb8358
8c8a20bf56fd8e101b5e7114f2e8bdd9721c2683
refs/heads/master
2021-04-02T03:41:13.572300
2020-03-18T13:53:07
2020-03-18T13:53:07
248,239,797
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
if __name__ == '__main__': from wlstModule import *#@UnusedWildImport import sys from java.lang import System from java.io import FileInputStream print sys.argv[1]
UTF-8
Python
false
false
174
py
163
GetParam.py
56
0.706897
0.701149
0
8
20.375
46
swipswaps/alexa-controlled-drone
6,090,263,657,327
d03ac135bf2f18a74863aeff3766909b013f50b6
e21df1066e239d16faf60298e7fd43009d84cc0b
/pi-alexa-code/start.py
2cc035aecf7d0f3e0bed1c8273ee514a03aeede6
[]
no_license
https://github.com/swipswaps/alexa-controlled-drone
054a8292a563fdd04b94a364e59337fc69c7799f
00aa987dd792fe14e6cf0d2226e8f1026d69e67c
refs/heads/master
2022-03-28T09:48:24.846275
2020-01-18T07:06:49
2020-01-18T07:06:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import logging import threading import time import tellopy import queue from command import command from iot_client import awsIoTClient logger = logging.getLogger() logger.setLevel(logging.INFO) aws_client = None speed = 80 drone = None prev_flight_data = None flight_data = None log_data = None is_drone_...
UTF-8
Python
false
false
9,239
py
6
start.py
3
0.597359
0.590973
0
287
31.191638
93
karthikpappu/pyc_source
5,858,335,414,464
861ca8f8ae68498e8ddce47b05d8fa8b11a6894f
91fa095f423a3bf47eba7178a355aab3ca22cf7f
/pypi_install_script/python-simpledaemon-0.1.tar/setup.py
5e9b61d707e9f7e8def38562c686373556af4b89
[]
no_license
https://github.com/karthikpappu/pyc_source
0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f
739e7e73180f2c3da5fd25bd1304a3fecfff8d6e
refs/heads/master
2023-02-04T11:27:19.098827
2020-12-27T04:51:17
2020-12-27T04:51:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python __version__ = '0.1' __author__ = 'Richard Hoop' import sys try: from setuptools import setup except ImportError: print("python-simpledaemon needs setuptools in order to build. Install it using" " your package manager (usually python-setuptools) or via pip (pip" " ins...
UTF-8
Python
false
false
658
py
114,545
setup.py
111,506
0.661094
0.655015
0
26
24.307692
84
plasticine/cobracommander-henchman
2,061,584,330,668
1337657dddff70c1ab8b5b09432ab351a1a719fa
5d2c0a3549f394d855c2a2c07db6adc38e62a5d8
/henchman/buildqueue.py
02803fd49f9475b015fad50fb0c5080ed7859b38
[]
no_license
https://github.com/plasticine/cobracommander-henchman
a74abd71e7853b8db2aba4247bdf76611fb5bffb
afe26810a2dfb093d917e64b02b88295a83db174
refs/heads/master
2020-06-09T03:43:57.336757
2012-02-21T07:05:36
2012-02-21T07:05:36
2,833,997
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import gevent import json from .minion import Minion from .utils.logger import get_logger class BuildQueue(object): """ The BuildQueue class is used to manage Minions either currently being built or waiting to be built. Defines socket.io methods for subscribing and updating the build queue. These are wrapp...
UTF-8
Python
false
false
2,489
py
38
buildqueue.py
30
0.64323
0.639614
0
84
28.630952
109
dayjaby/CrowdAnki
9,921,374,484,194
62151f11e05ae017685e8afd3b111ef0f612057b
c604da64c262d6d0244abeaf169ae91e3119884e
/crowd_anki/anki_exporter.py
39a02870d9dddd68eecbcba3dc39de2655298b54
[ "MIT" ]
permissive
https://github.com/dayjaby/CrowdAnki
27d2d7c31d403f6ee98cc2cb8f44fd6f7b4bc395
39c9666d58b16483631c13521597ae38a9d66cfa
refs/heads/master
2021-01-21T08:33:22.067652
2016-09-07T09:59:00
2016-09-07T09:59:00
67,587,160
0
0
null
true
2016-09-07T08:23:13
2016-09-07T08:23:12
2016-09-07T06:04:47
2016-08-31T19:12:32
70
0
0
0
null
null
null
import json import os import shutil from thirdparty.pathlib import Path from crowd_anki.utils.constants import DECK_FILE_EXTENSION, MEDIA_SUBDIRECTORY_NAME from crowd_anki.representation.deck import Deck class AnkiJsonExporter(object): def __init__(self, collection): self.collection = collection def...
UTF-8
Python
false
false
1,853
py
6
anki_exporter.py
5
0.602806
0.602267
0
51
35.333333
91
Tomoki-Kikuta/atcoder
8,718,783,628,295
583d1eb54819c35a4c2ededdec99cf69f4b027c6
796198b4613ae30ff7735d7a8473064b8ecb0247
/atcoder過去問/all_pairs_shortest_path.py
0a59511165ac86b03aa16ed23df703cdd8f36781
[]
no_license
https://github.com/Tomoki-Kikuta/atcoder
993cb13ae30435d02ea2e743cf3cead1a7882830
97b886de867575084bd1a70310a2a9c1c514befe
refs/heads/master
2021-07-16T15:14:00.706609
2020-06-29T06:15:13
2020-06-29T06:15:13
184,001,549
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def warshall_floyd(dp, v): for k in range(v): for i in range(v): for j in range(v): dp[i][j] = min(dp[i][j], dp[i][k] + dp[k][j]) def check(dp, v): for k in range(v): for i in range(v): for j in range(v): if dp[i][j] > dp[i][k] + dp[k][j]...
UTF-8
Python
false
false
1,174
py
178
all_pairs_shortest_path.py
178
0.38586
0.373935
0
47
23.978723
61
reachgsreeja/school_management
10,849,087,397,633
d2e63cbff7af8e994a872c8c0942bf89062c3e8f
a2a042e26c2603f1fd831df355f90607eddc0b98
/schoolboard/school_1/admission/models.py
947a96eba6f3a64263b590ec0fb5b6391918a7c0
[]
no_license
https://github.com/reachgsreeja/school_management
8f2f4a0b9aec896881aaded63367d026dcf0d0ef
a20b8b9717a48e49c59efe8b5a2c7dc3fd99cc83
refs/heads/master
2021-01-26T03:11:53.777891
2020-02-27T14:54:13
2020-02-27T14:54:13
243,285,359
0
0
null
false
2020-02-28T13:28:18
2020-02-26T14:40:09
2020-02-27T14:54:43
2020-02-28T13:20:40
26,650
0
0
1
JavaScript
false
false
from django.db import models from datetime import datetime # Create your models here. class StudentInfo(models.Model): first_name = models.CharField(max_length=255) last_name = models.CharField(max_length=255) student_class = models.PositiveIntegerField() date_of_birth = models.DateField(null=False) ...
UTF-8
Python
false
false
2,706
py
30
models.py
16
0.703252
0.675536
0
69
38.15942
96
luimaking/Agriculture
18,519,898,985,401
9832f1fa10e6042f8cbf7334b6b30cccfa2c6a5b
6e971d53fa4e2c37d853a3516a282db00ea70b55
/agricultura/agro/agro/urls.py
fc8e4fa94506d284b1a1d5238962e78a6f3b5248
[]
no_license
https://github.com/luimaking/Agriculture
1522a589e47996fb76ba4396b15252f1bf29fd34
2c4af741e6e5f2b2bf238f213aa9bbf1e083c6bc
refs/heads/master
2015-08-07T14:04:35.529690
2013-04-05T23:30:53
2013-04-05T23:30:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', url(r'^$','miapp.views.clientes_reciente'), url(r'^herramienta/nueva/$','miapp.views.nueva_herramienta'), url(r'^insumo/nuevo/$','miapp.views.nuev...
UTF-8
Python
false
false
1,125
py
14
urls.py
5
0.683556
0.683556
0
25
44
76
gercaballero/U5-PRACTICO-WEB
8,495,445,354,453
50268cabca8e5bcacf2b76da2a8a2d17804bb8f2
15149551d64b767d7c776c2bc81811f6ee5aaef3
/app.py
d75490eff089686ba56e20d1fa6afab16ba1aa63
[]
no_license
https://github.com/gercaballero/U5-PRACTICO-WEB
7ef04b87a5d8e4d4c8aa55de5d96f9fab0fd0a72
133c1fee99d61a0cfc6c51f1cae510af858020ba
refs/heads/main
2023-08-23T19:51:46.423705
2021-10-05T21:26:39
2021-10-05T21:26:39
376,780,631
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime from flask import Flask, redirect, request, render_template, flash,session, url_for from flask_sqlalchemy import SQLAlchemy from werkzeug.security import generate_password_hash, check_password_hash import hashlib app = Flask(__name__) app.config.from_pyfile('config.py') from model...
UTF-8
Python
false
false
9,297
py
19
app.py
3
0.625457
0.622122
0
201
44.238806
197
vodolazik/CC-homework-1
10,995,116,325,785
4db80cc62c2435fcdb84c43afc8418117fb3a6fd
620157db586d43cf27bc93ae08a1d3219dc71c0b
/Code Club. Homework1.py
ba143981a783eb7902d77210797f0b628de541dd
[]
no_license
https://github.com/vodolazik/CC-homework-1
7905df1727226d7134e4c4d64186002dabf22f94
88e80bc449cee24d000f4ce781e64ca290decd69
refs/heads/master
2022-12-11T21:11:19.861469
2020-08-29T16:10:44
2020-08-29T16:10:44
291,304,280
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tkinter as tk import json import requests response = requests.get("https://bank.gov.ua/NBUStatService/v1/statdirectory/exchangenew?json&valcode=USD") todos = json.loads(response.text) a = todos[0] b = a['rate'] class SampleApp(tk.Tk): def __init__(self): tk.Tk.__init__(self) sel...
UTF-8
Python
false
false
1,016
py
1
Code Club. Homework1.py
1
0.604899
0.596379
0
31
28.354839
107
Delta-Lyceum/Delta-Lyceum
111,669,168,370
f0485b35c01744120b09622bd2be9c65954eb4f4
056f615b2911f2f144ba25dfc69f7429f8b73de8
/nexus/urls.py
ea13bb5d607f36d8801a6bd9225a5f76fda9358a
[ "Apache-2.0" ]
permissive
https://github.com/Delta-Lyceum/Delta-Lyceum
3067430de45ed10a89a62ae9f6bd1f5b6e2bf7d6
534fc6fa82b831d13bb3fe34980d29da42746e37
refs/heads/master
2020-03-21T21:14:13.838939
2019-02-19T03:47:11
2019-02-19T03:47:11
139,053,778
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path, include from . import views app_name = 'nexus' urlpatterns = [ path('nexus/create/', views.create_nexus, name='create_nexus'), path('nexus/<int:nexus_id>/edit/', views.edit_nexus, name='edit_nexus'), path('nexus/<int:nexus_id>/view/', views.view_nexus, name='view_nexus'), ...
UTF-8
Python
false
false
2,543
py
240
urls.py
90
0.679512
0.679512
0
36
69.638889
105
lepy/phuzzy
3,753,801,453,100
b7c95f3f0a70a610b41a5f6991eb0d7c7db531d2
4e77443a5659825a53b94014462afc9fcb1b4dc9
/tests/test_regression.py
fec222d581786ef447ab776887beaf2a691b6b1c
[ "MIT" ]
permissive
https://github.com/lepy/phuzzy
f745c5619f9efca45c9f5f8340514e2117e65c78
22321dadc1d70b25d1213ddabcdbb99c40d15d6d
refs/heads/master
2023-08-19T02:59:43.627881
2020-12-11T07:08:59
2020-12-11T07:08:59
95,642,408
2
3
MIT
false
2020-12-07T17:22:07
2017-06-28T07:38:13
2020-12-03T18:40:32
2020-12-07T17:22:05
6,714
2
2
3
Jupyter Notebook
false
false
# -*- coding: utf-8 -*- import numpy as np import xgboost from sklearn.model_selection import RandomizedSearchCV from sklearn.metrics import make_scorer from scipy.stats import spearmanr def spearman_score(x, y): return spearmanr(x, y)[0] def test_CV2(): def func(X): return ((X[:,0]+0.1)*(X[:,1]-2.2...
UTF-8
Python
false
false
3,526
py
91
test_regression.py
57
0.568633
0.536018
0
100
34.26
114
boringPpl/Crash-Course-on-Python
9,569,187,164,388
430dfe6d1636c691e37695eb83fd33bb396ce0c4
f7afcb4c1022b685364d7dfac01b07e6a5ced73f
/Exercises on IDE/2 Data types, Variables, Expressions/ex2_4_expression.py
ee0ccb6be0c96d53e6e34526361fc8fa161f8d9a
[]
no_license
https://github.com/boringPpl/Crash-Course-on-Python
8d65c22f2a11483f21c136365903bdc8d6c81982
d42c37fac9b34d3b87ff6527a7fb847b31d69586
refs/heads/master
2023-04-21T01:59:58.615826
2021-05-17T10:40:21
2021-05-17T10:40:21
281,635,893
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Question 2.4: Keeping in mind there are 86400 seconds per day, write a program that calculates how many seconds there are in a year, if a year is 365 days.Print the result on the screen. Note: Your result should be in the format of just a number, not a sentence. '''
UTF-8
Python
false
false
277
py
40
ex2_4_expression.py
39
0.736462
0.700361
0
7
38.142857
75
0xchase/angr-ctf
14,903,536,533,422
2f37553757a5cb9ad226bc7143d635677dcc28a9
9f17f11bf247a7751952ef624ab42b8d7b3d1f30
/07_angr_symbolic_file/solve.py
32050a9b4ae35b948175f8085cd68042e7dcfcbd
[]
no_license
https://github.com/0xchase/angr-ctf
27deaf271a704b395eb710ff3ea878abe3ac74d2
f080003bf99b13596357a8e0b25c6736c5687639
refs/heads/master
2022-03-30T01:16:40.227595
2020-02-04T13:55:41
2020-02-04T13:55:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 import angr project = angr.Project("07_angr_symbolic_file") state = project.factory.entry_state() simgr = project.factory.simgr(state) simgr.explore(find=0x80489b2, avoid=0x8048998) if simgr.found: print(simgr.found[0].posix.dumps(0).decode()) else: print("No solution found")
UTF-8
Python
false
false
308
py
11
solve.py
10
0.730519
0.665584
0
14
21
49
sunniee/OMGEmotionChallengeCode
3,109,556,352,716
38d9dae169368862edaf4939d72bf8bbb2fb9721
05e805726cfdf7a40e2d49e4fcef4417b88e92b7
/codes/CNN_model.py
cf8a07606c2304358311fede5ac0789d881ec39b
[]
no_license
https://github.com/sunniee/OMGEmotionChallengeCode
0943aff3326e7bf30628e31d66487df19644bfa7
1f893b38afa7e160fb6ea3ec3a030ef5596b2765
refs/heads/master
2020-08-01T19:52:14.597775
2018-04-30T18:59:07
2018-04-30T18:59:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf from keras.models import * from keras.layers import * from keras.optimizers import * from keras import regularizers def model(timesteps=64, dim=512, unit=256, filters=128, ac='sigmoid',mode='pred'): inputs = Input((timesteps, dim)) x1 = Conv1D(filters, 5, strides=1, padding='valid', inp...
UTF-8
Python
false
false
1,771
py
9
CNN_model.py
7
0.621683
0.574252
0
44
39.272727
106
KirillGordievich/mas_framework
11,862,699,718,234
2dbb4d18b4e880b81a2b93216d16ad49b3436ac0
2dfa266ca8dd3bc17bf0cb0c6d292ecff5756649
/src/spawn_turtle.py
568879006be43f63d7debd5f96f0a002adc70a1f
[]
no_license
https://github.com/KirillGordievich/mas_framework
66d944eca1f88a445ddc790f8ac6b34f0fca2f6e
0d3cb556a504f46cef52165cd75a50d6dc8da979
refs/heads/master
2020-04-21T09:05:13.500200
2019-02-13T15:35:09
2019-02-13T15:35:09
169,438,024
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import rospy import math import random import geometry_msgs.msg from turtlesim.srv import Spawn from mas_framework.msg import base from mas_framework.msg import status import turtlesim.msg as turtle class Turtle: def __init__(self, number): self.number = number self.name = 'tu...
UTF-8
Python
false
false
6,551
py
2
spawn_turtle.py
1
0.532743
0.522516
0
229
27.606987
79
medularis/medularis-django-utils
7,146,825,614,877
47b92d89def489076ac9b6f410faa7fbf53f49f7
eeee39dbf68c1863548de8240fd47dcc93c1f487
/med_djutils/model_fields.py
6ced563fe79e6e37b14626a7d34f50b1d2dbc3e5
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/medularis/medularis-django-utils
7c3d819ee3d690d446e47e9dc33df7a4433b0581
7b8cde7bea1f45850f1e587eccfb5e6e3444ab58
refs/heads/master
2021-01-15T22:47:56.327687
2015-03-17T00:56:02
2015-03-17T00:56:02
32,344,730
0
1
BSD-3-Clause
true
2018-03-04T20:51:06
2015-03-16T18:28:06
2015-03-17T00:57:39
2015-03-26T14:55:00
171
0
1
1
Python
false
null
# coding: utf-8 """Some useful Django model fields. Source: lookup_www.common.fields (but just a subset). """ from __future__ import absolute_import, print_function, unicode_literals import django.db.models import django.forms import med_djutils.hex class Hex32Field(django.db.models.CharField): """Hex digits...
UTF-8
Python
false
false
2,079
py
24
model_fields.py
17
0.688312
0.674844
0
64
31.484375
90
ArijitBasu/streamlit
4,458,176,101,304
a388002f33e1ec124f7b5569b44f5f3493274b2d
8ca47ca4f36d829d9045aa203a78eba1e9f5d5e3
/apps/data.py
5122a592bd83b61d26cc078207a5b741a4fe2594
[]
no_license
https://github.com/ArijitBasu/streamlit
dc0e87b906b8393412e22a5c952b5e9b391c979d
944d478c64f4e80934c6b89f4bfa6762650f0b9b
refs/heads/main
2023-04-15T05:42:19.745065
2021-04-27T14:58:32
2021-04-27T14:58:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import streamlit as st import pandas as pd from PIL import Image def app(): data = st.beta_container() df = pd.read_csv('Books_universe.csv') with data: st.write("""In this project, we navigate through [GoodReads](https://www.goodreads.com/list/show/264.Books_That_Everyone_Should_Read_A...
UTF-8
Python
false
false
948
py
8
data.py
6
0.675105
0.639241
0
21
42.904762
161
SergeyParamonov/sketching
12,627,203,889,950
5f80306e264bcd28666cb3c22659f12e2cc1000d
ee0973b340e9e7eb4b3544105245bd39a6e989cf
/solver/asp_py_parsetab.py
8b086d964531d1b6b1d8d5e4b278bb381ebe0ad5
[]
no_license
https://github.com/SergeyParamonov/sketching
cd89fb604a584336e92b1510a1ee391a631d15f6
750bbf9f81741237b210ff72f4615f317f7b06f0
refs/heads/master
2021-06-02T01:45:41.579907
2020-04-13T18:28:00
2020-04-13T18:28:00
90,079,587
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# asp_py_parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = b'H<\t\xc8tV\xb4?\x0e/8*\xe5\xcc\x8a\x82' _lr_action_items = {'STRING':([6,7,16,17,],[13,13,13,13,]),'SPACE':([1,2,3,15,18,],[5,-4,-6,-3,-5,]),'LP':([2,3,12,],[6,7,17,]),'NUM':([6,7,...
UTF-8
Python
false
false
2,549
py
67
asp_py_parsetab.py
29
0.596312
0.494704
0.002746
40
62.7
405
xingxu21/Yale_CPSC
6,296,422,066,724
5d54f6906b99608ce9077e26a7a4792ae6f9a612
f53a17c670cd73068169705ceb7b87d137c6d0ab
/CPSC_327/P4/board.py
61743f30e0d4d3e7226893e8b4650fb657216326
[]
no_license
https://github.com/xingxu21/Yale_CPSC
f75e15093270097d870b415cfb251a19278a6045
5fa80ebd65a5def21328ac22d0f6fcc56672496c
refs/heads/master
2023-01-29T01:29:55.471333
2020-12-08T09:22:14
2020-12-08T09:22:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#board import piece_factory from constants import * import constants class game_state: #stack for keeping track of past states orig_board = [] past_states = [] future_states = [] size = 0 all_pieces = None def __init__(self, size, player = WHITE): #generate board of specified size self.player = player se...
UTF-8
Python
false
false
2,080
py
139
board.py
38
0.648077
0.641346
0
87
22.83908
119
priyankagandhi996/lawyer
5,128,190,958,682
3c49f58012aac8d92250e2074bb288673906b2a4
81fe5b46549bb716f677e200847b6438918b9592
/law/app/urls.py
97d9e9bda1fb6e60f5557899508dcb6ed301d136
[]
no_license
https://github.com/priyankagandhi996/lawyer
59dbdf8692640a22ca86d4364c74d04a481ce449
6dab8e4886b577fd5e300d12bcecae7b5028abba
refs/heads/master
2020-03-25T14:35:37.637502
2018-08-07T11:51:49
2018-08-07T11:51:49
143,862,519
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.home,name='home'), url(r'/signup/admin/$', views.CreateAdmin,name='adminsignup'), url(r'/signup/user/$', views.CreateCustomer,name='customer'), ]
UTF-8
Python
false
false
246
py
6
urls.py
5
0.670732
0.670732
0
8
29.625
66
tarunrockr/python-pytest
16,569,983,866,358
714f86fff20a70694c4edab8a5668c60444d3c69
aad597c1b3cd4ba8b9af91d094dc6505a7c89db9
/parameterized_test.py
11540332723069b5b6dac4d896890618d2f2031d
[]
no_license
https://github.com/tarunrockr/python-pytest
ad93b329471ffa87afd3aa8ed4220299fe913a35
ab477535665229bf436e8c31f6e19106b25ad54b
refs/heads/master
2023-07-09T02:56:27.998290
2021-08-15T18:20:57
2021-08-15T18:20:57
396,436,867
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest # ------------------ Run Command for following function | pytest parameterized_test.py ---------------------- @pytest.mark.parametrize('x,y,z',[(10,20,200),(20,40,200)]) def test_function(x,y,z): assert x*y == z
UTF-8
Python
false
false
232
py
6
parameterized_test.py
6
0.568966
0.508621
0
5
45.6
112
eDeliveryApp/edelivery-api
2,851,858,290,915
73f4cbb6ef71bf888c6467e17373fc32b0337ac3
557cae0c1aca5ca775ea3fc38438e1d981e44f80
/manage.py
34d4d9b6790339ff8ca568fe2420224a8c6d7bc7
[]
no_license
https://github.com/eDeliveryApp/edelivery-api
8ed1c1a27f048bb393aabee77ab361e532a56c10
a96a0b8d048a22260f812383962c979b7c78fb6d
refs/heads/master
2021-01-02T06:31:35.119810
2015-07-05T03:36:49
2015-07-05T03:36:49
38,555,588
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from flask.ext.script import Manager from api.app import create_app from api.models import db manager = Manager(create_app) @manager.command def createdb(): app = create_app() with app.app_context(): db.drop_all() db.create_all() @manager.command def test(): from s...
UTF-8
Python
false
false
561
py
7
manage.py
7
0.613191
0.613191
0
26
20.538462
71
alejocano22/TETbigdata
5,909,875,023,843
b9bf9a3135fc8f7306aff27e407e730383693e8b
4f122900ac54def923b25767e8e729d1714ebd1a
/Programas/Stocks/stocks-risenstable-mr.py
7669bd22de4e0f3bbe6818668a6b843ff1b41e2d
[]
no_license
https://github.com/alejocano22/TETbigdata
c585bf599b8242b382e464f0fe0402bbd3966fd4
c7d58ca5e91ec037ab6c86a61250e7fa25a1bd23
refs/heads/master
2021-06-13T15:58:49.583685
2020-05-04T02:06:33
2020-05-04T02:06:33
254,438,158
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from mrjob.job import MRJob from operator import itemgetter class RisenStable(MRJob): def mapper(self, _, line): company, price, date = line.split(',') data = [price, date] yield company, data def reducer(self, company, values): data = list(values) data = sorted(data,...
UTF-8
Python
false
false
558
py
12
stocks-risenstable-mr.py
3
0.569892
0.560932
0
22
24.363636
55
kayjayk/Algorithms_py
4,715,874,127,582
ab8115257b076fa9477dad9b61f4468338a29fc4
16147cb4f47d8a4fadaa8c9b5778f6581ff1871f
/Exam10989.py
a22e7bbf4cc419111bf32a74d1dec92349e4506f
[]
no_license
https://github.com/kayjayk/Algorithms_py
45acaf189ac9f0ed7e3ae4829d15c5b059edea1a
d1189937c59deb3eeed8e1d0ad0efe56ea7ac160
refs/heads/master
2023-03-17T22:19:44.378677
2021-03-19T09:44:10
2021-03-19T09:44:10
204,250,000
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from collections import defaultdict N = int(sys.stdin.readline()) num_dict = defaultdict(int) for i in range(N): num_dict[int(sys.stdin.readline())] += 1 num_keys = [] for key in num_dict.keys(): num_keys.append(key) sorted_keys = sorted(num_keys) for i in range(len(sorted_keys)): key = sort...
UTF-8
Python
false
false
384
py
53
Exam10989.py
52
0.658854
0.65625
0
19
19.263158
44
epigen-UCSD/MERlin
18,683,107,771,026
722e1c6a68b37664567f507afcec6f8d907defa0
942aea94961e56340c526c46eecf236f3fcbb368
/merlin/plots/__init__.py
0f3a244f2a2ee5ab3ebfda771c986b00cf4a676b
[ "MIT" ]
permissive
https://github.com/epigen-UCSD/MERlin
562a1eb9f31a90a5979063a2a13375b78281b1c8
1479c9605c6e4ede9c15eb9f11d8d70fc691bf7d
refs/heads/master
2023-08-08T20:52:29.979999
2023-08-07T22:44:03
2023-08-07T22:44:03
254,443,213
1
2
NOASSERTION
true
2021-04-06T22:27:59
2020-04-09T18:00:59
2020-04-24T19:58:31
2021-04-06T22:27:58
16,810
0
0
1
null
false
false
import importlib import inspect import pkgutil from typing import List, Set import merlin from merlin.plots._base import AbstractPlot def get_available_plots() -> Set: """Get all plots defined within any submodule of merlin.plots. Returns: a set of references to the plots """ plots = set() for _...
UTF-8
Python
false
false
2,510
py
93
__init__.py
65
0.622709
0.621912
0
69
35.376812
100
NCiobo/iem
8,203,387,556,550
654926add63d15bac2ee5a9f45873efad374d0f7
fd877cb919622d6a4efa305fb9eaec8a31e8dd37
/scripts/outgoing/kcci/wxc_top5gusts.py
5aead76f3c803b963e02d1ededb5da2414b98528
[ "MIT" ]
permissive
https://github.com/NCiobo/iem
37df9bc466ffcbe4f6b1f9c29c6b5266559f200c
75da5e681b073c6047f5a2fb76721eaa0964c2ed
refs/heads/master
2021-01-23T09:39:33.090955
2017-09-05T16:34:12
2017-09-05T16:34:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import subprocess import datetime import sys import tempfile import pyiem.tracker as tracker qc = tracker.loadqc() import psycopg2 IEM = psycopg2.connect(database="iem", host='iemdb', user='nobody') icursor = IEM.cursor() icursor.execute("""SELECT t.id as station from current c, stations t WHERE t.networ...
UTF-8
Python
false
false
1,120
py
144
wxc_top5gusts.py
134
0.633929
0.623214
0
44
24.454545
78
expert360/consumerism
14,319,420,975,885
7cae467dfec42baf838417f831afa4a082c5be91
ef877a0ebf805bf38b5bf15254f3034e3d3d4d5e
/setup.py
6858d03c5911d16e7d5ff75b181a6c1e871ce496
[ "MIT" ]
permissive
https://github.com/expert360/consumerism
51045a642d80da79453f42b8cce894ddcee130c0
412847e6ff6f3087decf4212b32842ec017cc344
refs/heads/master
2016-09-06T01:42:23.960512
2016-01-11T05:53:00
2016-01-11T05:53:00
31,235,106
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup, find_packages setup( name='consumerism', version='0.3.11', description='Expert360 Python SQS consumer library', author='Expert360', author_email='info@expert360.com', license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', '...
UTF-8
Python
false
false
649
py
20
setup.py
18
0.624037
0.588598
0
23
27.217391
56
RevansChen/online-judge
10,746,008,206,908
48394dd68432ba18150e70a7c98a9ec8f5b0944e
abad82a1f487c5ff2fb6a84059a665aa178275cb
/Codewars/8kyu/crash-override/Python/solution1.py
052b13e1287ea3ea75a577a1280bb1ffc2657c8c
[ "MIT" ]
permissive
https://github.com/RevansChen/online-judge
8ae55f136739a54f9c9640a967ec931425379507
ad1b07fee7bd3c49418becccda904e17505f3018
refs/heads/master
2021-01-19T23:02:58.273081
2019-07-05T09:42:40
2019-07-05T09:42:40
88,911,035
9
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Python - 3.6.0 def alias_gen(f_name, l_name): f = f_name[0].upper() l = l_name[0].upper() if (f in FIRST_NAME) and (l in SURNAME): return f'{FIRST_NAME[f]} {SURNAME[l]}' return 'Your name must start with a letter from A - Z.'
UTF-8
Python
false
false
254
py
2,569
solution1.py
1,607
0.574803
0.555118
0
9
27.222222
59
amar-jain/fluence
4,715,874,135,532
4c45e5b6ed6ed54002e06af81440cab7718dc0b5
1090105e9be55a2806b4586b4c17e525c188ee55
/deploy/docker.py
f53bbde3472ab94ad9402a3f38b18ce7b64bbb43
[ "Apache-2.0" ]
permissive
https://github.com/amar-jain/fluence
0b1c181ebad17d6ba67dc148b868d7eb4a1633b4
ee2b2aad5290247a2c7e679020abb2337ab1b399
refs/heads/master
2023-04-12T00:27:28.634027
2021-05-17T11:08:10
2021-05-17T11:08:10
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2020 Fluence Labs Limited # # 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
3,881
py
47
docker.py
27
0.620201
0.612213
0
121
31.07438
161
linbarbell/ProjectEuler
4,002,909,569,670
a63cd8a01b38ba2e378c52428ac3923a129d0a62
e9f142b9839732f1a4cdda69d6fd8382b4457356
/Code/39.py
d91880d42624d8464b9c8ca1a99a28783fa2ce20
[]
no_license
https://github.com/linbarbell/ProjectEuler
89561d3c85b92944af14fa478ff8a9890787cdf2
b54e01d18ca8517b11b7595bfecd7930528f282a
refs/heads/master
2021-09-28T20:09:01.066898
2018-11-20T01:57:14
2018-11-20T01:57:14
29,401,770
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
pmax = 0 solmax = 0 for i in range(12, 1001): currmax = 0 c_min = i//3 + 1 if i % 3 == 0 else i//3 c_max = i//2 + 1 if i % 2 == 0 else i//2 for c in range(c_min, c_max+1): a_max = (i-c)//2 for a in range(1, a_max+1): b = i-c-a if a*a + b*b == c*c: currmax += 1 if currmax > solmax: solmax = currmax...
UTF-8
Python
false
false
343
py
69
39.py
65
0.521866
0.451895
0
17
19.235294
41
BazBazz/elih
5,935,644,807,873
c7ab7a110e69bf596aeefddbf9c89804ebfef576
ccdaa8577dc6b9e49d16420ea9c929dabf1db45b
/elih/__init__.py
530f84a511bc79d575e40d276be9c9a60a3ca029
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/BazBazz/elih
e470e2a74e8d3a166551c78e00ca457a5c535d5f
99d7066091b7709c77b515b96f0643700582d78f
refs/heads/master
2021-01-19T17:10:39.904582
2017-08-13T21:14:36
2017-08-13T21:14:36
101,055,825
0
0
null
true
2017-08-22T11:31:16
2017-08-22T11:31:16
2017-05-16T17:04:14
2017-08-13T21:14:42
565
0
0
0
null
null
null
# -*- encoding: utf-8 -*- from __future__ import absolute_import __version__ = '0.1' from .explanation import HumanExplanation from .features import apply_rules_layer from .features import FeatureWeightGroup from .scoring import score from .formatters import ( percent, delta_percent, value, text, integer, va...
UTF-8
Python
false
false
337
py
2
__init__.py
2
0.738872
0.72997
0
20
15.85
41
poojas1992/Classification-Algorithm
85,899,345,999
0b13048e86805a66edca8dfbbb4ee629f408c254
dc1e1321e5d3439fe90c496cc8b5c81e8e32d2b2
/KNN_Digital_Sky.py
83687e7a80af2d27ba0008a9b07bf1b1bf9e2166
[]
no_license
https://github.com/poojas1992/Classification-Algorithm
4a4e0a8841afc2dbf9d934ea65b81a0ea0645dab
1f724390507f0d8b6908de66bd76321792431f6b
refs/heads/master
2020-05-16T09:45:07.953499
2019-04-23T08:06:19
2019-04-23T08:06:19
182,960,107
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[2]: import pandas as pd import numpy as np # In[3]: #Step 1 #import dataset using pandas sky_data = pd.read_csv() sky_data.head() # In[4]: #Step 2 #Dropping the id feature sky_data.drop(columns = ['objid'], inplace = True) sky_data.head() #Converting non-numeric...
UTF-8
Python
false
false
4,102
py
8
KNN_Digital_Sky.py
8
0.671624
0.65724
0
179
21.893855
102
avinashjsap/GFG
4,157,528,372,425
bbf38c8f55e47d85b51793a8a29aa1a2db8326c3
b1c91f772b3d6310190133ebf866ae4ec55386a2
/GFG/DataStructures/LinkedList/Make_middle_node_head_in_a_linked_list.py
6320eb5eaefe72d016bd817804e43f193ac75602
[]
no_license
https://github.com/avinashjsap/GFG
43dbc1dc7c5d03ef77f747759803d821a224398b
da327238a0dad6bf550bdccdce17009531d3435c
refs/heads/master
2020-04-24T18:37:51.223670
2019-02-23T07:38:26
2019-02-23T07:38:26
172,185,890
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Python Script to make middle node as head of Linked list """ class Node: """Class representing a Node""" def __init__(self, data): self.data = data self.next = None def link_node(self, node): """Links the next node with the current node Args: ...
UTF-8
Python
false
false
2,070
py
3
Make_middle_node_head_in_a_linked_list.py
3
0.567633
0.55942
0
83
22.939759
109
Elbagoury/eyefashion
377,957,157,154
ca2f771a33ac29a53e67e42e92701c3754876367
d207c1fe9bb534419ae16d5d1cbc650597a092fd
/pos_parent_discount/models/__init__.py
a66e62ba0e08b1628ad934b468698568d84670ee
[]
no_license
https://github.com/Elbagoury/eyefashion
6bad9d27a0337e7eae688f66ae8b6322bfcfa80c
e5796f80c2c5854cda5bcbb879c586254c9378c6
refs/heads/master
2020-04-19T17:55:26.547757
2018-10-06T15:12:04
2018-10-06T15:12:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from . import res_partner from . import account_journal from . import pos_order from . import pos_session
UTF-8
Python
false
false
132
py
150
__init__.py
88
0.69697
0.689394
0
6
20.833333
29
lowlandresearch/larcutils
12,068,858,124,509
578801543d91d51cada1d4b003eb7e8da7a7d8db
9cb4e52d1df02347791a66155fd0ac18da375105
/larcutils/logging.py
483ad172ace4297b182bebedd2321919141f60fb
[ "MIT" ]
permissive
https://github.com/lowlandresearch/larcutils
21a5eea762cb1147fbde1c0b887a3b3d1dd071c3
66e68ce566f47b7c2f806ae3008a3e9d66c937ea
refs/heads/master
2020-04-17T18:48:54.167898
2019-10-21T03:47:24
2019-10-21T03:47:24
166,842,583
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import coloredlogs def setup_logging(loglevel: str): level = logging.getLevelName(loglevel.upper()) fmt = ( '{asctime} {levelname: <8} [{name}]:{lineno: >4}: {message}' ) datefmt = '%Y-%m-%d %H:%M:%S' coloredlogs.install(level=level) logging.basicConfig(level=level, datef...
UTF-8
Python
false
false
356
py
10
logging.py
8
0.640449
0.634831
0
11
31.272727
76
OhadRubin/Awesome-System-Design
16,320,875,747,386
569980416707bbc47ec7fc3d094de0cec64602a6
4c0330fab17c6babb4f1fcc84afb073e30a9c8db
/asd/parsers/__init__.py
7889ca184ec542a7881844a1ce96a62d7057d852
[]
no_license
https://github.com/OhadRubin/Awesome-System-Design
1912685b2efe23d929b8b87873ad2661a51f2b7f
9696320e4516cba2ea97743a36bc023df8108d7f
refs/heads/master
2022-12-09T13:52:55.014245
2020-06-06T20:18:17
2020-06-06T20:18:17
227,002,991
0
2
null
false
2022-12-08T07:28:48
2019-12-10T01:33:03
2020-06-06T20:18:44
2022-12-08T07:28:47
82,954
0
1
20
Jupyter Notebook
false
false
import types import pathlib from os.path import dirname, isfile, join import asd.utils.asd_pb2 as asd_pb2 import os from asd.utils import mq import glob import json modules = {} modules_list = glob.glob(join(dirname(__file__), "*.py")) for path in modules_list: if isfile(path) and not path.endswith('__init__.py')...
UTF-8
Python
false
false
2,465
py
35
__init__.py
23
0.609331
0.607708
0
71
33.704225
98
muraleo/django-practice
16,801,912,077,542
6b28b45273c372621da750f417fd95c05a48abbe
0743fa60ed316325c89c65a127ca5b365a1fcb0b
/first_app/views.py
5db9a91f8e11cc9fc1724b80a40e660c00b8e8f3
[]
no_license
https://github.com/muraleo/django-practice
a93c7202ae4edb04a52b7c465926d703bdd30379
05e4f6a89c08de955b19fb1b2fa140b585566886
refs/heads/master
2020-04-05T02:45:51.635556
2018-11-08T02:13:09
2018-11-08T02:13:09
156,489,350
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import HttpResponse from first_app.models import Topic, Webpage, AccessRecord # Create your views here. def index(req): webpages_list = Webpage.objects.order_by('name') # my_dict = {'insert_me': "Hello I am from the views.py"} date_dict = {'access_record...
UTF-8
Python
false
false
404
py
1
views.py
1
0.725248
0.725248
0
10
39.5
67
nathanmargaglio/bfds
9,105,330,672,621
1bd95486bbb2885cacdaedb6f276a00dc2454803
0842ff1fc6e57fedd864318be0784faf212a4161
/server/rest/migrations/0001_initial.py
620c6e6784a9470a8ccc5a2270f3b84125dcf466
[]
no_license
https://github.com/nathanmargaglio/bfds
f21dd54255ceec171b2313a6d6ab3752eda55a1c
355b4a5edc4d785ef570dc84f033040f7ebad37d
refs/heads/master
2021-04-27T09:59:24.511584
2018-03-13T12:53:18
2018-03-13T12:53:18
122,527,216
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.2 on 2018-02-23 01:23 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Owner', fields=[ ('id', models.AutoField(au...
UTF-8
Python
false
false
1,143
py
19
0001_initial.py
16
0.538058
0.501312
0
32
34.71875
114
ccsourcecode/Blockchain_Survival_Guide
17,300,128,273,794
93c01311d3274fe94dd32f6a181bc0cf16d0709c
248f9e4f0f9de0413ca950d61dc81a4699beefd5
/2_1.py
ff7dd274dce0039be43e150269b8418392f9fc20
[]
no_license
https://github.com/ccsourcecode/Blockchain_Survival_Guide
6f413859b9d4d7c9747534007b41e7f83e6391dd
1d619f4ceccef610b8648372baa542c4099c29ae
refs/heads/main
2023-03-27T12:20:54.632777
2021-03-16T08:34:43
2021-03-16T08:34:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time class Transaction: def __init__(self, sender, receiver, amounts, fee, message): self.sender = sender self.receiver = receiver self.amounts = amounts self.fee = fee self.message = message class Block: def __init__(self, previous_hash, difficulty, miner, min...
UTF-8
Python
false
false
876
py
8
2_1.py
7
0.590183
0.578767
0
33
25.545455
72
Tribal1012/mipsHex
12,455,405,199,016
dc9b3efd6fbac4e90c2cda62ecb9b21f763b792a
cb6eb98d07724e0603d8bce7366d5ce5aee20c30
/old/base/error.py
5f3843682f68e90aaf256c59cec7e33eed0f2f71
[]
no_license
https://github.com/Tribal1012/mipsHex
7720f4670ad81783621e997a064f03ea56bca2e3
23c307db5230dc470ee4baa9cb1a184f826949e6
refs/heads/master
2020-03-21T05:45:50.826039
2018-10-22T12:28:31
2018-10-22T12:28:31
138,178,456
12
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys ''' print error and exit ''' def error(msg): print msg sys.exit(-1) ''' for assert check ''' def check_assert(tag, result): try: assert result except: error(tag)
UTF-8
Python
false
false
186
py
31
error.py
28
0.639785
0.634409
0
18
9.333333
30
chyidl/chyidlTutorial
6,708,738,930,670
23dff31b1cb5ce21827d2f2ef3d3958296c1b910
96bf2ec5c1536831b6a3e08675286770d44d858c
/root/python/PythonPyCon/Python_Concurrency_From_the_Ground_Up/threading_communication.py
14a2abab67433575aa0549351b698cf65e4a1e8b
[ "MIT" ]
permissive
https://github.com/chyidl/chyidlTutorial
aa15d6c8526e87a34ed63f79bd541d10ee43b820
d7f74280725149be11d818b4fbca6cb23ffa4e25
refs/heads/master
2022-05-11T13:33:47.015661
2022-05-04T13:42:20
2022-05-04T13:42:20
156,686,624
4
3
MIT
false
2021-04-14T13:58:38
2018-11-08T10:02:35
2021-04-14T01:00:00
2021-04-14T13:58:37
83,671
3
2
0
Python
false
false
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # ____ # / . .\ # Life is short \ ---< # I use Python \ / # __________/ / # -=:___________/ # threading_communication.py # Python_Concurrency_From_the_Ground_Up # # Created by Chyi Yaqing on 05/23/19 18:46. # Copyright © 2019. Chyi ...
UTF-8
Python
false
false
907
py
751
threading_communication.py
389
0.655629
0.635762
0
34
25.647059
74
v2psv/crowd_count
12,051,678,238,159
6a295f8be10ab81b8937b5df153755b155b27b16
e3aae0e629504b8a4f8cd5612e9b74d9fda00243
/loss.py
1bc538506b9eda9f22349189ebda71f9e06e86e8
[]
no_license
https://github.com/v2psv/crowd_count
7f9d0b7fa7753d331e257d0d501f0faafcdb7a91
082c9bf5b6252b1465c88e6dca71b7397755ed3a
refs/heads/master
2021-01-19T14:50:51.797133
2018-04-11T18:50:25
2018-04-11T18:50:25
100,930,786
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import numpy as np import torch.nn as nn from torch.nn.modules.loss import _Loss import torch.nn.functional as F class ContrastiveLoss(torch.nn.Module): def __init__(self, margin=2.0): super(ContrastiveLoss, self).__init__() self.margin = margin def forward(self, output1, output2...
UTF-8
Python
false
false
6,122
py
33
loss.py
27
0.579059
0.550474
0
169
35.224852
117
Intervencion/-PKMNFCbot
14,181,982,032,069
c01cd34bd17cce73df321d88c1adc69719c9bc49
3eaf2b0f95f8af34d81cc0f261781ff025f7126b
/Bot/NOTOCAR/info.py
7d951426d63b11b1f4a36a9b6c03dbd7a4c45bd6
[]
no_license
https://github.com/Intervencion/-PKMNFCbot
a14cfa41ff753cc91c3688fb425b9f5a0c54d787
b21d04e37a1b9f7b63fb1cfcf6814214e61ad2a4
refs/heads/master
2020-06-12T17:37:00.316130
2019-02-27T13:20:15
2019-02-27T13:20:15
75,786,677
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from config import * @bot.message_handler(commands=['info']) def command_info(m): cid = m.chat.id try: dex = m.text.split(' ', 1)[1].replace(" ","_") bot.reply_to(m,f'https://www.wikidex.net/wiki/{dex}', disable_web_page_preview=True) try: c.execute("SELECT Contador FROM TContador WHERE Nombre ='info'") ...
UTF-8
Python
false
false
993
py
25
info.py
23
0.607467
0.600404
0
27
35.740741
142
harsh7742/music_system
11,338,713,679,638
b80913b74e623f023de64c5e5eb0af7c1040534a
038abb327e31acae36a5933111611592846895fa
/musicplayer.py
26517479fc6974ae6c1f9abec4e5c1ee40b5ce8e
[]
no_license
https://github.com/harsh7742/music_system
f980324746e6becc2c4b92dd7cc285bdecaa2680
679a9916416a675254d9aa8eb50159e695ae3c56
refs/heads/main
2023-06-26T16:14:42.379152
2021-07-28T06:16:57
2021-07-28T06:16:57
390,235,973
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def resumemusic(): root.pauseButton.grid() root.resumeButton.grid_remove() def volumeup(): vol = mixer.music.get_volume() mixer.music.set_volume(vol+0.1) def volumedown(): vol = mixer.music.get_volume() mixer.music.set_volume(vol-0.1) def stopmusic(): mixer.music.stop() def pausem...
UTF-8
Python
false
false
4,657
py
1
musicplayer.py
1
0.665879
0.632596
0
113
39.230088
130
epi052/recon-pipeline
3,229,815,430,894
6af8caf22e1a8bcd201df027eff66aa975af4ebf
67e7c0f06e8aef9579bf3761ff6af76e5eafb590
/tests/test_web/test_waybackurls.py
8c08f028d779221a76d93b115017cd81d7a77b91
[ "MIT" ]
permissive
https://github.com/epi052/recon-pipeline
d1c711f5fd7ceccc95eda13004287d030452fe90
4930f4064ca42c4b3669444b92dee355dd68b81e
refs/heads/main
2023-02-23T06:02:26.055102
2023-01-27T00:20:30
2023-01-27T00:20:30
205,856,988
413
102
MIT
false
2023-02-13T16:35:28
2019-09-02T12:54:26
2023-02-05T12:43:20
2023-02-13T16:35:28
63,776
375
89
12
Python
false
false
import shutil import tempfile from pathlib import Path from unittest.mock import MagicMock, patch from pipeline.recon.web import WaybackurlsScan, GatherWebTargets class TestGatherWebTargets: def setup_method(self): self.tmp_path = Path(tempfile.mkdtemp()) self.scan = WaybackurlsScan( ...
UTF-8
Python
false
false
2,396
py
1,013
test_waybackurls.py
48
0.64399
0.64399
0
59
39.610169
119
zhangsong1417/xx
8,169,027,819,964
7fd68afe645e538bf19f62db1d4506c5fac8372a
27ff7fec0ae3f29f58089a2acab0aa3bc4e6e1f7
/RIDE-python3/utest/ui/test_namedialogs.py
0576cfc0057ce75ed9d33e0992c36f1859fca2d5
[ "Apache-2.0" ]
permissive
https://github.com/zhangsong1417/xx
01435d6057364991b649c1acc00b36ab13debe5a
c40cfdede194daf3bdf91b36c1936150577128b9
refs/heads/master
2020-04-06T14:06:23.011363
2019-07-09T02:38:02
2019-07-09T02:38:02
157,528,207
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from nose.tools import assert_equal from robotide.controller.filecontrollers import TestCaseFileController from robotide.editor.editordialogs import ( TestCaseNameDialog, UserKeywordNameDialog) from robotide.robotapi import TestCaseFile from resources import PYAPP_REFERENCE, wx def file_controll...
UTF-8
Python
false
false
1,062
py
176
test_namedialogs.py
157
0.717514
0.717514
0
35
29.342857
70
alekseystryukov/simple-chat
11,982,958,765,732
ea0a865357b93e130fbfc8950153d18d6d17d83c
aafc464037938a5c32cf83e63107e946f49de8f2
/simple_chat/models.py
5e87f890cbd23196fe5cfad18caad3afb1f3849b
[]
no_license
https://github.com/alekseystryukov/simple-chat
ca53bd6dc95531248ff9907907f07a1dd9472305
623568a25eaa250e56fc20402763e9fc1bbdcad8
refs/heads/master
2016-08-12T06:37:43.484252
2015-11-09T16:16:59
2015-11-09T16:16:59
45,549,375
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import deque from datetime import datetime class Message: """ Instances of this class keep info about every message from chat. Class doesn't inherit django.db.models, because we do not need to save them to db. Instances keep the data in slots, it saves a bit memory. Class property...
UTF-8
Python
false
false
1,382
py
12
models.py
6
0.617221
0.613603
0
41
32.682927
123
peter302/password-locker
15,839,839,417,472
655c048edc9ae1bb7ea84f595cae4486c0c1dbba
46102c1049ccc6447e4e69867ce3997d7bd3999d
/user.py
2f6141e9ed9eb68cf27948a765fe0c22cb23f7c4
[ "MIT" ]
permissive
https://github.com/peter302/password-locker
356a8bcdb48e8dad31a7375ce1b91ec16177d806
1fa10dafb6aa95511044543c5673a6212fe13fbc
refs/heads/master
2020-11-23T22:31:19.636350
2019-12-16T14:16:33
2019-12-16T14:16:33
227,847,593
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pyperclip,string,random class User: user_list=[] #a list to hold user details def __init__(self,f_name,l_name,password): "a method acting as constructor to initalize instances of a class" self.f_name=f_name self.l_name=l_name self.password=password def user_save...
UTF-8
Python
false
false
2,567
py
4
user.py
3
0.613557
0.613167
0
61
41.081967
137
jemmelot/Heuristieken
3,453,153,716,571
dd6ab2c37098d5d71a48cc5a6381feefa90d7cab
94bf3533dea38ed3c6ee0501a16e180b53cb700d
/classes/ScoreIntegrated.py
2cd8e23d1f0c3c1aaf844af822db2ef12b0c1389
[]
no_license
https://github.com/jemmelot/Heuristieken
71572f8194da7c94ea55e371d685a8894ee64758
e89adf9b47d7761cf08a81b646845de27a42f661
refs/heads/master
2021-08-30T22:09:47.928773
2017-12-19T16:14:05
2017-12-19T16:14:05
109,595,024
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # https://github.com/jemmelot/Heuristieken.git import numpy as np import csv import sys sys.path.append('../classes/') sys.path.append('../functions/') sys.path.append('../algorithms/') import matplotlib.pyplot as plt class score_integrated(): def __init__(self, main_array, visited_connections, s...
UTF-8
Python
false
false
1,995
py
21
ScoreIntegrated.py
11
0.643108
0.631579
0
78
24.576923
108
pkofod/vfi
4,286,377,387,604
875554747ce520bf8f63a067015b3f9adb6bc80d
38452ad0e05ed8b8755717e7710b55108e438156
/vfi/optimize_1d.py
4e53f14e9d0447a484bc32d7bb480b359fb2acd8
[ "MIT" ]
permissive
https://github.com/pkofod/vfi
c6ffda4e4d4f0e71f1ddc40587b041434b4fd2ca
38a0dd02b9a01c37f5a11252feaebad13c2010aa
refs/heads/master
2020-03-28T23:02:15.522151
2018-08-09T20:01:05
2018-08-09T20:01:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import numba # constants inv_phi = (math.sqrt(5) - 1) / 2 # 1/phi inv_phi_sq = (3 - math.sqrt(5)) / 2 # 1/phi^2 ...
UTF-8
Python
false
false
1,102
py
10
optimize_1d.py
5
0.424682
0.412886
0
51
20.627451
159
alimirakim/sbade
6,382,321,433,072
4740d9d6c037d13b54ac7a1049d37daf972a851a
b351351bc1f643ce9645e2c5c91eef5caaa3eb76
/skeleton/migrations/versions/5f553ea80cc6_new_seeder_data.py
53250c51d098795bb4b8f44ac5dfdee4a0ffe7a2
[]
no_license
https://github.com/alimirakim/sbade
64051ac366fb5aa8b8cfc6434c94fb446213e43e
137bc7fed59472658872de4fbfdf227ff4c22283
refs/heads/main
2023-01-24T09:04:33.752364
2020-12-04T17:21:06
2020-12-04T17:21:06
313,983,847
0
0
null
false
2020-12-01T15:33:41
2020-11-18T15:55:57
2020-12-01T15:01:11
2020-12-01T15:33:41
3,045
1
0
0
Python
false
false
"""new seeder data Revision ID: 5f553ea80cc6 Revises: Create Date: 2020-12-01 03:14:35.021979 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5f553ea80cc6' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gen...
UTF-8
Python
false
false
6,892
py
40
5f553ea80cc6_new_seeder_data.py
32
0.648433
0.637406
0
159
42.345912
98
1299172402/up366
970,662,640,119
9b28ba1a709bffcbec4a3e69957a125a5c00aac7
2eff86f2b5ed6ca040c35ce360caff2238ae5cca
/load.py
b81124f8a5e6719666f14b09cedefe0d27e119e0
[]
no_license
https://github.com/1299172402/up366
2fdc816df83e5444bd2cb0762b918bcf4df7d44b
1fe7748d6cb680c2f7c9e5652f05ee4c17010b4e
refs/heads/master
2020-12-22T07:49:13.793663
2020-02-13T13:22:36
2020-02-13T13:22:36
236,716,689
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from bs4 import BeautifulSoup import urllib.request from lxml import html etree = html.etree # 欢迎文字 print('\n\n') print('####### 天学网登录程序 #######\n') # print('Author~~') print('Jellow 看见我请一定一定叫我学习') print('Creative By ZhiyuShang With Love\n') # print('Thanks for being addicted') print('') ...
UTF-8
Python
false
false
1,339
py
5
load.py
2
0.709237
0.604819
0
38
30.815789
184
rcrowther/Gravel
11,553,462,038,408
431998f40f0227dfbacb0ea4567d670c7e9ce5a5
a07694aab30198bc11965d0dae11471b0a004957
/interpreter/__init__.py
3c16d9a645d7378407efdd76dac36d151cda0256
[]
no_license
https://github.com/rcrowther/Gravel
6fccf500f680ea70371c4d889d6f2930c1a7727e
86f22a2c1d561983020949cf5dc75cfb3004919b
refs/heads/master
2021-08-25T06:21:34.317932
2021-06-11T19:14:24
2021-06-11T19:14:24
135,619,592
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .Engines import FileEngine
UTF-8
Python
false
false
32
py
175
__init__.py
147
0.84375
0.84375
0
1
31
31
CmJustice/Mc-Admin
7,215,545,084,499
2dd41bc03518a4ce04285888242a069f2179b386
4552ca62b4b47a10da893f009f5bf25323fe30df
/main.py
7012971d431f6dc8b92c78429b450d73a339a8d1
[]
no_license
https://github.com/CmJustice/Mc-Admin
8e566273254659c36eec477aba9c913da02f7d57
be0e6fa888bb46f5cf8477d4fa8d1acfd74a08d2
refs/heads/master
2016-09-09T19:13:32.766843
2015-09-15T17:14:51
2015-09-15T17:14:51
42,507,912
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#-*- coding: utf-8 -*- __author__ = 'Cem' import sys import os import utils.screenutils.screen import utils.screenutils.errors import utils.color color = utils.color import konsol screenutil = utils.screenutils.screen print "MC-ADMIN VERSIYON 0.1" print "Hosgeldin!" print "\nLütfen giris yapin!" def sela...
UTF-8
Python
false
false
775
py
5
main.py
4
0.614786
0.605707
0
50
14.36
69
coolsnake/JupyterNotebook
7,619,271,986,562
1114def8a5f97064b9d83e97085660ccded181ed
da29f1f5b4459fbfec968bb694bedb9586f87b14
/new_algs/Graph+algorithms/Dijkstra's+algorithm/Dijsktra's.py
47b7ea49a77d30c80ff268b241a34013b2e3ef3e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
https://github.com/coolsnake/JupyterNotebook
547806a45a663f090f313dc3e70f779ad9b213c0
20d8df6172906337f81583dabb841d66b8f31857
refs/heads/master
2023-01-13T18:55:38.615312
2020-11-17T22:55:12
2020-11-17T22:55:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import copy import time def searchForLeastCost(costs, processed): lowestCost = math.inf lowestCostNode = None for node in costs: cost = costs[node] #check if cheapest if cost < lowestCost and node not in processed: lowestCost = cost ...
UTF-8
Python
false
false
4,533
py
1,523
Dijsktra's.py
1,515
0.52195
0.516214
0
156
26.608974
82