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
victoralfonzo/justdonttouchred
3,796,751,111,207
c153da5e1fc08eb358eb32e3373628231c9f6b57
21ce6721b26e412ff2591ffc63657cd106a841e2
/main.py
eabfd0a791910891030133b1b13cdcf5a39aca2a
[]
no_license
https://github.com/victoralfonzo/justdonttouchred
b93c707b805bb0771c00057abadfbbb4631fa7c3
4e3cdf0b1c2e4071ee5052a423c2695812b47686
refs/heads/master
2020-05-16T15:53:41.865915
2020-02-20T06:08:18
2020-02-20T06:08:18
183,145,169
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame import pytmx import random from sprites import * from settings import * from tilemap import* from itertools import * def changeMap(maps, mapcounter): map = maps[mapcounter] all_sprites.empty() obstacles.empty() enemies.empty() flag.empty() jump.empty() for tile_object in map.t...
UTF-8
Python
false
false
5,391
py
8
main.py
3
0.57967
0.572065
0
194
26.78866
74
luliu31415926/programming_contest_workbook
17,136,919,534,659
d95420ca6590f9b551950c3958eabc4e184f277a
ed1cc13d31a2bb7b34a401565c9179286e4e3dfb
/dining_poj_3281.py
c1ba2744d00c43a008e43c1aceed97300c01a62d
[]
no_license
https://github.com/luliu31415926/programming_contest_workbook
367b3df2c9e6bada224bee51aa5f2ab017f72c43
32901d675da24d87b53dc6e9266cf05462e50450
refs/heads/master
2020-03-09T08:30:00.699033
2018-05-10T23:39:47
2018-05-10T23:39:47
128,690,524
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#dining poj 3281 # convert to max flow # s=> (limit each food used once) food =>(foods cows like) cows => (only cows with matched food can flow over) cows => (match cows with drinks) drink=>( limit each drink use once) sink inpt=iter(['4 3 3','2 2 1 2 3 1','2 2 2 3 1 2','2 2 1 3 1 2','2 1 1 3 3']) N,F,D=tuple(map(i...
UTF-8
Python
false
false
846
py
32
dining_poj_3281.py
31
0.626478
0.566194
0
25
32.88
185
SamHurley/ABase
14,920,716,426,571
da669a99ad5d362aad846913a39260f4f73815c8
9d10278e7ad2eaa7d6abe863f220f005d91800d4
/BaseConsts.py
c9c747dba693f90cbb7b6fb9dd87e668b12d7ec8
[]
no_license
https://github.com/SamHurley/ABase
11792a1cb55fa111b145b5b3be918a739dd272d8
d3998383e2c79bc1d0f6b81954e7d9f4efd2ef74
refs/heads/master
2016-03-01T03:41:40.160744
2015-07-20T14:24:30
2015-07-20T14:24:30
22,006,816
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" UPPER BUTTONS - NOTES - 10 - 17 (corner LEDs - 68 - 75) SIDE BUTTONS - NOTES - 18 - 25 PADS - NOTES/CCs - 36 - 67 (starting in lower left) FADERS - NOTES/CCs - 1 - 9 DISPLAY - CCs - 34 - 35 """ """ CLEAR ALL PAD/BUTTON LEDS = (240,...
UTF-8
Python
false
false
2,036
py
5
BaseConsts.py
5
0.552554
0.482318
0
56
35.357143
152
Cloudxtreme/autoimgsys
16,810,502,026,152
d1eec75cf06857855d8bcc0a7c26851872a155b1
ed8b37837e5d221ec703b627dc2363890da46c2b
/ais/plugins/jai/jai.py
15385a9b93fc231df65de2a64b1f2e04a063729d
[ "Unlicense" ]
permissive
https://github.com/Cloudxtreme/autoimgsys
2828054ca532536d5fae6c5aa975d29364b3f5b4
55808d0ddefb949a278bc9790c014f3b4fcf6fdb
refs/heads/master
2020-03-28T14:52:33.288468
2017-06-27T13:47:37
2017-06-27T13:47:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # # This software is in the public domain because it contains materials # that originally came from the United States Geological Survey, # an agency of the United States Department of Interior. # For more information, see the official USGS copyright policy at # http://www.usgs.go...
UTF-8
Python
false
false
21,457
py
48
jai.py
24
0.526541
0.51722
0
467
44.937901
122
darkknight314/Vector-Based-IR-system
18,391,049,984,350
57bca7065436003f97b330e8c2383c6bdd262ba6
deed991bf26c68b51d799a778744aa68a93a3220
/Part 2 Improvement 2/index_creation.py
9d3adba574e31a0ca389b592ace14c737814683d
[]
no_license
https://github.com/darkknight314/Vector-Based-IR-system
81c25b475958909c7de6195ddce6bed8a5d6c0d3
65602fe2519260c972d40b8760d1165b8ad6ed61
refs/heads/master
2022-04-19T10:30:55.041322
2020-04-18T21:10:23
2020-04-18T21:10:23
256,307,428
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import nltk nltk.download('punkt') import numpy as np import pickle from nltk.util import ngrams from collections import Counter INDEX="./pickles/" file_content = open("wiki_47",encoding="utf8").read() all_docs = file_content.split("</doc>") #Soup was originally utilised to re...
UTF-8
Python
false
false
5,720
py
6
index_creation.py
5
0.653671
0.634091
0
185
29.918919
167
tommeagher/pycar14
755,914,282,332
b3c2cac8a7cfe9e2361c8e34e91dfee324e7d6f6
f34394a4c9c8438e172c3f53472428b7f68d20b9
/project4/step_3_complete.py
6978bc34e21609e246d97c6809363e62720419b6
[ "MIT" ]
permissive
https://github.com/tommeagher/pycar14
b3474a5dbb4fda59eeadb2d0b6dd87141931e4fe
d727c351d7a1a8e190dab3e0bf6e124471c22101
refs/heads/master
2021-01-17T17:07:16.772636
2015-04-09T20:45:45
2015-04-09T20:45:45
14,432,067
8
3
MIT
false
2019-03-08T02:32:24
2013-11-15T18:37:47
2018-02-11T20:01:15
2019-03-08T02:31:16
1,562
27
40
0
HTML
false
null
#!/usr/bin/env python import csv import json import requests def main(): # We'll use a local version of this file from now on to save on # bandwith. with open('bills.json', 'r') as f: data = json.load(f) objects = data['objects'] # Create a csv file to output with open('b...
UTF-8
Python
false
false
1,081
py
38
step_3_complete.py
27
0.479186
0.476411
0
39
26.692308
68
jbcnrlz/biometricprocessing
12,455,405,184,807
781b7e86576db03a726b454849e6f41bad76527b
a07013b46eb0b92c88f034d7ceffe7b0bf9cabf7
/generateCorrelationData.py
1c3aaf582ded96e74b97fc74a6412aef8b8aec86
[]
no_license
https://github.com/jbcnrlz/biometricprocessing
64bd77b9543014a4fe9ab1de1b32f73210ee5871
9659e9aa8e308d0b16e44740541c22e450f76522
refs/heads/master
2021-09-13T12:21:31.070435
2021-08-30T13:06:54
2021-08-30T13:06:54
92,350,111
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse, os, cv2, numpy as np import matplotlib.pyplot as plt def main(): parser = argparse.ArgumentParser(description='Generate Correlation Data') parser.add_argument('--sigmoidFile', help='Path for files to separate channels', required=True) parser.add_argument('--tdlbpFile', help='Path for files...
UTF-8
Python
false
false
1,554
py
169
generateCorrelationData.py
151
0.663449
0.653153
0
40
37.875
100
time-in-translation/preprocess-corpora
7,567,732,420,501
8f4bf251b0c45f33121384bbc32508754622b1ef
fde8b1b36d42015316b12c04aac5c965e339982d
/preprocess_corpora/preprocessing/preprocess.py
d2cf68c06764cec4be80d4643ae5be48cb1c528c
[ "MIT" ]
permissive
https://github.com/time-in-translation/preprocess-corpora
11faec377a05813db32e91ba21c7eafb33e74469
40e3e34955e45fa46b5c75bfe2f05282c151f36d
refs/heads/master
2023-07-07T07:31:43.723440
2023-04-01T19:15:53
2023-04-01T19:15:53
144,151,807
1
1
MIT
false
2023-06-29T14:13:03
2018-08-09T12:48:16
2022-06-16T08:32:27
2023-06-29T14:13:03
788
1
1
1
Python
false
false
import codecs import glob import os import re import click from docx import Document from ..core.constants import GERMAN, ENGLISH, FRENCH, ITALIAN, DUTCH, RUSSIAN, CATALAN def normalize_apostrophes(line): """Converts left single quotation marks to apostrophes if there's a lowercase letter behind it""" retur...
UTF-8
Python
false
false
6,922
py
53
preprocess.py
10
0.588141
0.576109
0
151
44.682119
119
nitinworkshere/algos
7,696,581,446,636
558c454f3f0d6077e0d12969725403b63e69ff15
b05ec9af3bd888d69056b192a4d15118d57dea06
/algos/Microsoft/RemoveDuplicatesInString.py
e61c49a7b63ca34221bf40544e9a6803a1137045
[]
no_license
https://github.com/nitinworkshere/algos
5b6d2979d4af3dbcd54d45ae9a6722ea9e054ef0
9a8f3cc92bb8d0f153b82af47f19b6bced7d2163
refs/heads/master
2021-01-04T21:01:51.553315
2020-04-26T09:21:08
2020-04-26T09:21:08
240,758,577
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Python program to remvoe duplicate characters from an # input string NO_OF_CHARS = 256 # Since strings in Python are immutable and cannot be changed # This utility function will convert the string to list def toMutable(string): List = [] for i in string: List.append(i) return List # Utility fu...
UTF-8
Python
false
false
2,282
py
139
RemoveDuplicatesInString.py
139
0.650307
0.633655
0
94
23.276596
81
shubhamsidhu/daftlistings
12,472,585,032,417
ec7121fbaeca7012c916a2ff1c348f6045b3415d
35057f7b5beb8af418d8033b3e4a8be851c9e622
/examples/enroute.py
ba61c7712dbde56b4917b36793221398e61a1db3
[ "MIT" ]
permissive
https://github.com/shubhamsidhu/daftlistings
7324810ac330018f4e8e4e3e452030f5fe1077d9
ec9e1cee92854563f74c6288e652cc9b4eb97e1e
refs/heads/master
2023-03-31T21:16:44.031552
2021-03-30T21:46:34
2021-03-30T21:46:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Get properties to let near or on a public transport route to Blackrock. from daftlistings import Daft, AreaType, RentType daft = Daft() daft.set_area_type(AreaType.ENROUTE) daft.set_area("Dublin") daft.set_listing_type(RentType.ANY) listings = daft.search() for listing in listings: print(listing.formalised_a...
UTF-8
Python
false
false
368
py
33
enroute.py
30
0.741848
0.741848
0
16
22
73
ambushed/gillespie
6,528,350,306,798
f29dc4306652be365ccb204de1860ee5344e446a
a737fe71c6f1e13b5077e3075a2be6955c3fc1ad
/experiments/GillespieOMC.py
3a6494e490d028ac41b263146e1e7c2fd69e451b
[]
no_license
https://github.com/ambushed/gillespie
8674f2982d7461257f5bd3864acad386600c1679
1be8d2b692cb023beee66bde44635e5d32068f97
refs/heads/master
2021-03-29T07:03:18.202625
2016-12-30T22:47:07
2016-12-30T22:47:07
66,765,642
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from gillespie import Setup from gillespie import Gillespie from gillespie.GillespiePrior import GillespiePrior from gillespie.GillespieAdam import adam from autograd import value_and_grad from functools import partial import autograd.numpy as np model_file_name = "lotka_volterra.yaml" setup = Setup(yaml_file_name=mod...
UTF-8
Python
false
false
2,495
py
24
GillespieOMC.py
18
0.727455
0.716232
0
75
32.253333
139
reyronald/playground
4,320,737,135,572
51d5964dd0a108422dc6c4f126bad59076030293
61355ebbb9444eebb51ac14cc61f114866fa7cf6
/Graph Search, Shortest Paths, and Data Structures/2sum/main.py
520e1d8db13d8b92395d91a7e09e09dbd07df456
[]
no_license
https://github.com/reyronald/playground
46c53aacb6498e8c071dc63ca408cea13e7057c0
9f4ec66af0108826cdbc3065e0520aaaf70abe7c
refs/heads/master
2021-01-24T18:39:55.142852
2017-10-23T22:30:54
2017-10-23T22:30:54
84,469,679
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from two_sum import get_integer_set_from_file, find_2sum INTEGER_SET = {-3, -1, 1, 2, 9, 11, 7, 6, 2} RESULT = find_2sum(INTEGER_SET, 3, 10) assert RESULT == 8 INTEGER_SET = {-2, 0, 0, 4} RESULT = find_2sum(INTEGER_SET, 0, 4) assert RESULT == 2 INTEGER_SET = {0, 1, 2, 3, 4, 5, 6} RESULT = find_2sum(INTEGER_SET, 3, 4...
UTF-8
Python
false
false
704
py
41
main.py
38
0.669034
0.569602
0
24
28.333333
84
zhangzeyang0/code
5,720,896,453,471
3e5ffff4447dc235d82be2f0a72a5b5762c32a12
cac44338635e5887a9828b5d7172ab20a16c8269
/leetcode/-24. 两两交换链表中的节点.py
bbe52898c8b63c467a2bc6ba19fbe080aaaf82b5
[]
no_license
https://github.com/zhangzeyang0/code
170674d09da788a446ac8c0203869b65d603cdf4
328fdd303af1c8cde5bc9bb4c4f039e777de20e5
refs/heads/master
2020-03-25T23:07:31.935534
2018-09-18T02:33:16
2018-09-18T02:33:16
144,259,602
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): ''' 交换结点,注意要保存3个结点,当前要交换的2个结点和这个2个结点之前的结点 ''' def swapPairs(self, head): if not head: return None res = p1 = ListNode...
UTF-8
Python
false
false
1,511
py
24
-24. 两两交换链表中的节点.py
24
0.524602
0.496881
0
63
21.873016
55
funkhauscreative/swr-test
197,568,526,395
4ff77b3c7e720e490b8ebdfd7fc050dd2bed00f7
bdc3dfaf79a175d4ac0a6ab73d40e3c406f89e2e
/mysite/production.py
9267180596ef2f428208f67c2ee9c0772ee5052c
[]
no_license
https://github.com/funkhauscreative/swr-test
59a264f78ae077a0f906e81b620accc3580eadbd
b6c22c481bafd27c3165e35dc376c3e0b0b17c57
refs/heads/master
2020-08-30T20:21:41.182418
2019-10-29T22:59:55
2019-10-29T22:59:55
218,479,099
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .settings import * DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.environ.get('DB_DATABASE', ALPHACODE), 'USER': os.environ.get('DB_USER', 'root'), 'PASSWORD': os.environ.get('DB_PASSWORD', 'w4p9tywgsh324s3q3'), # 'HOST': os.e...
UTF-8
Python
false
false
458
py
24
production.py
21
0.563319
0.539301
0
15
29.6
71
DHNicoles/Pythontest
6,193,342,890,502
7259788402589d0cb8d4c1cc666e6c1f33d9e1e3
1c48c6fd9be0dea83ba5e7a22478a291c62226e8
/demo_1.py
e03e0834b6ea75f874d434a60e87ced6f02c27b8
[]
no_license
https://github.com/DHNicoles/Pythontest
13a1c1bc9a6ae31ec45928f35bcf0e95ddb1621d
5715d158c1d043cb13b0358e1cbe3b89fcd3760b
refs/heads/master
2016-07-26T13:56:17.515868
2015-07-29T01:56:41
2015-07-29T01:56:41
39,867,418
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# A = int(raw_input('enter A')); # B = int(raw_input('enter B')); # print 'A+B=' ,(A+B),'A-B=' ,(A-B) # print A**B # for i in range(11): # print i, # print # i=0 # while(i!=11): # print i, # i=i+1 # print # array = [0,1,2,3,4,5,6,7,8,9,10] # for ele in array: # print ele, # print # end = False # while not end : ...
UTF-8
Python
false
false
891
py
6
demo_1.py
4
0.575758
0.549944
0
49
17.204082
49
SpellMender/VG_Dev-CS90R
9,981,503,999,253
f56548783f3150055629aba1afbc9959775ab7c4
1a409a5abd236d36d9403957398d3b048bd9db2e
/Animation/entity.py
60f8c6ab8761c949a6141d2ef8788c64c797b8a6
[]
no_license
https://github.com/SpellMender/VG_Dev-CS90R
efdc65833648e38fb8d0f7459ca1772b7261a081
3a461e6890a998172c0059e1aad7b83a2b037fdc
refs/heads/master
2020-03-19T00:48:32.936680
2019-09-04T18:54:05
2019-09-04T18:54:05
135,502,902
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import pygame import graphics class Entity(object): def __init__(self): self.x = 0 self.y = 0 self.sprite = None # Change Sprites to combat class Vizzi(Entity): frames = { # neutral "start": [(0, 4, 69, 51)], "one": [(77, 4, 69, 51)], "two...
UTF-8
Python
false
false
2,868
py
31
entity.py
28
0.449442
0.423291
0
94
29.510638
68
KaranKaur/Leetcode
16,810,502,014,890
25a16699d872f7467f92c9e4483c52467df63c0b
39f78b00d7d79a4e0f29f6b1fe15f20ecc74bea2
/540 - Single Element in a Sorted Array.py
8e96ea7ed027a2f3d01ef53a3a8c009df2832d00
[]
no_license
https://github.com/KaranKaur/Leetcode
ca1ac5a590de720d37a3c0fca014065086e6e38e
765fb39ba57634d2c180eb1fd90522c781d409c4
refs/heads/master
2020-03-28T09:44:12.318384
2018-09-10T14:07:05
2018-09-10T14:07:05
148,056,159
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Given a sorted array consisting of only integers where every element appears twice except for one element which appears once. Find this single element that appears only once. Example 1: Input: [1,1,2,3,3,4,4,8,8] Output: 2 Example 2: Input: [3,3,7,7,10,11,11] Output: 10 Note: Your solution should run in O(log ...
UTF-8
Python
false
false
901
py
53
540 - Single Element in a Sorted Array.py
52
0.580466
0.528302
0
49
17.408163
78
NweHlaing/Python_Learning_Udemy_Course
15,805,479,687,399
d624e5f282bb18c6eec32442a45afed6e84b727a
bafb87e41958f747f99c362b693e7c6387184a8d
/Section_13_Python_Generator/problem2.py
190336854d149c9ad6f349f193d620b5ca0de2eb
[]
no_license
https://github.com/NweHlaing/Python_Learning_Udemy_Course
e4a92c4cb57e2c18338bb4db2fb290fdc671b871
c54989ce4610b1cc9c3c9983f9fbc3aedc031256
refs/heads/master
2022-11-18T17:38:15.623158
2020-07-17T04:14:34
2020-07-17T04:14:34
273,390,624
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random random.randint(1,10) def rand_num(low,high,n): for i in range(n): yield random.randint(low, high) for num in rand_num(1,10,12): print(num)
UTF-8
Python
false
false
184
py
44
problem2.py
38
0.603261
0.559783
0
10
16.6
39
lingxiankong/qinling
13,529,147,015,608
b2d87fa3fc86a2acc9bbb853d7442bb50be42057
49a66e8c8cf8fa5e3cc7997ff965b287a817cc55
/qinling/engine/service.py
613d51839be08ca5f767ccd4c9bcae4d69c0305d
[ "Apache-2.0" ]
permissive
https://github.com/lingxiankong/qinling
f20e6ac943af908c2f58b5a7dd2d9ca4e71d573a
e18f80345ae519c9308cfc93fdf53b82c9be7618
refs/heads/master
2020-06-01T09:11:55.875880
2019-05-28T21:58:40
2019-06-01T11:10:27
190,727,149
0
1
Apache-2.0
true
2019-06-07T10:39:38
2019-06-07T10:39:37
2019-06-02T11:17:52
2019-06-07T02:40:43
1,524
0
0
0
null
false
false
# Copyright 2017 Catalyst IT 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 o...
UTF-8
Python
false
false
2,452
py
115
service.py
59
0.683931
0.680669
0
70
34.028571
79
rafaelaleixo/import_raw_signal
12,979,391,169,420
ac616a0ff98f67d31d727e7184b4aacc02c7b942
970ad3fa8aa8d278957b72eaa393d251d8f6efd5
/labtrans/data/compress.py
c6fae251c14d591d5b10afc8cf27453f1fad1180
[]
no_license
https://github.com/rafaelaleixo/import_raw_signal
a7027b58150a014f09d9134580aa4008e55e2bf0
bdc2f10b321e98249bd85c0e6a6bfb06647bf92b
refs/heads/master
2018-12-08T13:56:04.619651
2018-11-30T12:17:50
2018-11-30T12:17:50
140,875,461
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on 21/04/2014 @author: ivan ''' import traceback # internal from labtrans.data.zipper import InMemoryZip from labtrans.utils import log def zip_files(files_list): imz = InMemoryZip() for f_data in files_list: try: imz.append(f_data[0], f_data[1]) except: l...
UTF-8
Python
false
false
384
py
108
compress.py
90
0.619792
0.59375
0
21
17.333333
46
barckcode/api_salsa
19,104,014,573,880
08f721727521fbfd5389c70c249cf077b8de1a49
f8556db88694c57e57aa996d0db59eac50366aab
/api/config/db.py
7db7713c60852feb083191ae8e2e0068b2b69e69
[ "MIT" ]
permissive
https://github.com/barckcode/api_salsa
667ac69c24f2cb31479364414edc977f78c28199
4345d3b249646bb4055147f2481912a9c10ed7e2
refs/heads/main
2023-08-21T19:15:19.059618
2021-10-01T10:01:53
2021-10-01T10:01:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from sqlalchemy import create_engine, MetaData, engine # # PROD ## # USER_DATABASE = os.getenv("DB_USER") # PASSWORD_DATABASE = os.getenv("DB_PASSWORD") # HOST_DATABASE = os.getenv("DB_HOST") # DATABASE = os.getenv("DB_DATABASE") # # Local ## USER_DATABASE = "postgres" PASSWORD_DATABASE = "test" HOST_DATABA...
UTF-8
Python
false
false
567
py
13
db.py
9
0.716049
0.698413
0
24
22.625
100
shane-dawson/prenuvo_challenge
4,131,758,576,599
7629b443e4ee1815f753f1524e87123692e17e49
73031cf7d2258086e2c1c08a55b602dccfb4aaf9
/prenuvo/__init__.py
fe75bf2f3362c0721a934e9068940255771d9b62
[]
no_license
https://github.com/shane-dawson/prenuvo_challenge
685c5562c9d78eddb70f07d53ec862558a4714e9
4c2cde16e518142923171730c5c5089a483d3e4d
refs/heads/master
2022-12-13T10:41:51.684884
2018-12-20T18:14:14
2018-12-20T18:14:14
162,630,459
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from prenuvo import app from prenuvo import views
UTF-8
Python
false
false
50
py
20
__init__.py
14
0.84
0.84
0
2
24
25
YingyingHan1994/IS590_DataMashUpProject
16,939,351,036,488
be55c96fd317d9d5b9c88bab74d77651d52d0b0a
880440604614c22a0e019e0c75fc47053315bb22
/3.intermediatedataset/1. PrincetonDataset/princeton_clean6_split_iflonglatitude.py
c1d091ea8474241a5d860deb9bf6fc24a5f0827e
[]
no_license
https://github.com/YingyingHan1994/IS590_DataMashUpProject
dc0335c73db6c8e10421e34fc4a7382f0f1da8d7
044551a1c72e3e45567f7ff49ffe5d2f07654d5b
refs/heads/master
2023-03-20T13:58:19.146040
2021-03-14T02:12:35
2021-03-14T02:12:35
211,170,061
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json # Read the json file with open('princeton_clean5_countryvaluefixed.json', 'r') as fin: data = json.load(fin) nonelist = [] for records in data: #print(records) #print(records["State"]) # Check the record of which the state value is "probably Chiapas". Re-check its state information a...
UTF-8
Python
false
false
2,210
py
46
princeton_clean6_split_iflonglatitude.py
14
0.688235
0.680995
0
64
32.28125
147
Unoblueboy/Tashys-Online-Store
4,002,909,561,602
e1d44a8f6d46b180663535f0bd41c3d0cec5aabb
361fb8aa452cd44999e1173d50453d133fb009d0
/storeFront/urls.py
905b7c74ab7b8d2d8e80577d38999dc3e114ced3
[]
no_license
https://github.com/Unoblueboy/Tashys-Online-Store
419a4010c215b73cd61332e675ee8d7961118e81
a4b16140d6ed8610227bd86dc0e12352dc96a989
refs/heads/master
2018-02-09T19:35:17.981662
2017-07-11T02:15:08
2017-07-11T02:15:08
96,817,184
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from . import views app_name='storeFront' urlpatterns = [ # ex: / url(r'^$', views.index, name='index'), # ex: /5/ url(r'^product/(?P<slug>[-\w]+)/$', views.description, name='description') ]
UTF-8
Python
false
false
243
py
10
urls.py
6
0.600823
0.596708
0
11
21.090909
78
queryfish/jobcrawler
11,089,605,584,609
d15726a0a508ee0539c9be4a14aced7d73ebdc7a
4bde6dcebd147723e693ea43ba1f36fbcfd04dc3
/tutorial/spiders/bossofmy.py
4e64ea34874ef34ce7ea113661b0a3a3518e3cf2
[ "MIT" ]
permissive
https://github.com/queryfish/jobcrawler
95604637edf6c9cc8ea96648efdcb730d3076338
f0cf70e6ca909648e5a0af37dcc5fb3a548a4cfa
refs/heads/master
2020-06-15T00:06:50.140668
2019-11-26T10:26:07
2019-11-26T10:26:07
195,160,598
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python #coding:utf-8 import scrapy from tutorial.items import TutorialItem from scrapy.http import Request from scrapy.spiders import CrawlSpider from scrapy.selector import Selector import json import time import random import redis from scrapy.conf import settings #zhipin 爬虫 class ScriptSlug(scrapy.Sp...
UTF-8
Python
false
false
5,318
py
13
bossofmy.py
12
0.563688
0.511597
0
125
41.08
366
besenthil/Algorithms
8,340,826,507,456
507d8f35929fd298ba2eb7148b241d599105101a
03c7bed4cbc25c8468f5ccebd71d847ff694d308
/finddigits.py
90a8c42877a919fb5686f61a467e3f7e4782554b
[]
no_license
https://github.com/besenthil/Algorithms
faff1486c560bafbfd8f6fb7a0422d1b8b795d6e
5e8a49ffdc7aad1925ef0354208970d3d2cb62d2
refs/heads/master
2022-02-14T04:26:09.282976
2022-02-13T13:35:12
2022-02-13T13:35:12
51,376,159
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
for _ in range(int(input())): N = int(input()) print (len([digit for digit in map(int,[x for x in str(N)]) if digit != 0 and N%digit == 0]))
UTF-8
Python
false
false
153
py
99
finddigits.py
99
0.555556
0.542484
0
3
48.666667
97
cescgina/peleffy
17,025,250,383,185
78b323c3d4ca5087605a436b2384b4f8bb5d0dba
79ce54603ce8fd96cd9b65e021106ca92fef6aff
/offpele/tests/test_main.py
5470f5947efbf69b37fa0ca797d64fafc92cb6ca
[ "Python-2.0", "MIT" ]
permissive
https://github.com/cescgina/peleffy
947f0a08ee78c95b7afd3570959766a3417c04af
fc68116dc98050ed3c2c92270d8218565d099801
refs/heads/master
2023-06-17T11:36:58.851715
2020-09-22T15:14:04
2020-09-22T15:14:04
307,655,233
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This module contains the tests to check offpele's molecular representations. """ import pytest import os import tempfile from offpele.main import run_offpele, handle_output_paths from offpele.utils import get_data_file_path, temporary_cd from offpele.topology import Molecule FORCEFIELD_NAME = 'openff_unconstrai...
UTF-8
Python
false
false
4,813
py
10
test_main.py
9
0.596302
0.594847
0
126
37.198413
78
scentrade/website
13,417,477,832,992
29aaa2595ac84f681f28ad36525ff3f2944ab80c
63a44b93343dfe70f7c2ec212b0f56bfb125e631
/utils/templatetags/urls_tags.py
8a5d57f67194cd75db4104362cdf581e12eb4c09
[]
no_license
https://github.com/scentrade/website
ca7a3f71418a3ba79e60661b833e29c4f816c197
89d8a01d62af03fc8439daac4d19cd88ad518def
refs/heads/master
2021-01-10T04:06:23.838276
2015-08-22T14:21:43
2015-08-22T14:21:43
43,756,451
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# encoding: utf-8 from django import template from utils.url import make_absolute_url as mau register = template.Library() @register.simple_tag def make_absolute_url(path): """ Divide the space description in two paragraphs. """ return mau(path)
UTF-8
Python
false
false
265
py
133
urls_tags.py
61
0.713208
0.709434
0
14
18
51
ali0003433/pred-by-issue-app
12,833,362,306,273
aaf0ead0997d3cf2f0a278f00520061021ae5d17
77209f2bc1d85545ada195ff99674ef3578b5f03
/scripts.py
cf4b6fe76f0ad59431ca573f9bb6291a05aeb266
[]
no_license
https://github.com/ali0003433/pred-by-issue-app
a3c9e19f615d07477ba3e5f1543c0ee555224281
e8e78a79ad2635612cf65883bbadb88559dcb822
refs/heads/master
2020-09-22T01:22:00.111383
2019-12-07T16:30:05
2019-12-07T16:30:05
224,999,187
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys import json import pickle import pandas as pd import numpy as np import joblib import random from sklearn.linear_model import LogisticRegression def dummies(res): '''Convert categories into dummy variables. ''' result = [0,0,0,0] if int(res) > 1: result[int(res)-2] = 1 ...
UTF-8
Python
false
false
2,638
py
52
scripts.py
44
0.55724
0.466641
0
78
32.833333
111
Easterok/web
7,696,581,419,952
3d9a315c750e3e96a9f912ad51d7d6ff599d0c1c
10b0f2e5ee98ed3e2f4ed2d8e0cdbd69df2f9845
/boards/models.py
60ca8f8e99c34ac7708b787823961309663e22ae
[]
no_license
https://github.com/Easterok/web
799446e59194f2a4d040ebd8aa191b76421964e1
6b3513c86feb36fd06695edca893c91cb3ad298a
refs/heads/master
2021-01-24T12:47:30.300144
2018-03-26T12:32:51
2018-03-26T12:32:51
123,149,266
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 class Board(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) board_name = models.CharField(max_length=100, db_index=True) board_status = models.IntegerField(default=0) last_change_board = models.DateTimeFie...
UTF-8
Python
false
false
1,332
py
21
models.py
13
0.73048
0.717718
0
34
38.176471
80
evilvlso/es
16,879,221,478,261
7b407b3246e7f222c099b39acfbde63fdd233a46
05ce84440b82bd222f5e43979fb5bb7956e5d066
/scrapy_fish/scrapy_fish/utils/tools/py_md5.py
7eb07143d58a4d32fdd2d909a08623bfb3ff5f54
[]
no_license
https://github.com/evilvlso/es
1b2a707340810d28727591ffcc9725ac13bc6769
2ecac5593f9d3bb32453bfa0f618c1a721b6ff39
refs/heads/master
2023-05-26T10:38:46.974074
2019-06-12T06:36:13
2019-06-12T06:36:13
191,326,639
0
0
null
false
2023-05-22T22:16:19
2019-06-11T08:22:27
2019-06-12T06:36:25
2023-05-22T22:16:18
71
0
0
5
Python
false
false
#!/usr/bin/env python # -*- coding:utf-8 -*- """ @author: zhangslob @file: py_md5.py @time: 2019/05/22 @desc: """ import hashlib def md5_str(txt): m = hashlib.md5(txt.encode(encoding='utf-8')) return m.hexdigest() # if __name__ == '__main__': # print(md5_str('1231'))
UTF-8
Python
false
false
300
py
31
py_md5.py
26
0.55
0.49
0
20
14
49
ShonBC/task_level_planning_group_1
8,924,942,070,956
9dc52517061f95862a3e88cbbf168806ae98c221
38e2823dd422e98c79c12cb53dd2dbff7cef7966
/classes/industrial_robot.py
153f7dbc3cf855c1c60a249650eb808504b72614
[]
no_license
https://github.com/ShonBC/task_level_planning_group_1
cdd851270a2de55ba5e43838631da525f8ffe617
693db34b4fe51cede75d0ffba1defd553050bf09
refs/heads/main
2023-06-16T03:13:56.977052
2021-07-12T19:23:54
2021-07-12T19:23:54
384,269,184
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Industrial Robot base class. ''' class Industrial(): """Industrial Robot base class. Initialize with the robot name, payload, application, and company. """ def __init__(self, name: str, payload: float, application: list, company = 'NIST'): """Initialize class attributes. Args:...
UTF-8
Python
false
false
5,423
py
9
industrial_robot.py
8
0.611552
0.605831
0
159
33.081761
249
Igor-Carvalho/rroll
3,186,865,746,566
90cb72d58c74f6063bb3ec2969ea56d24ce174f2
14706cc1a57f88da5347bea074e4c0d923709680
/rroll/settings/base.py
d105a2721a333ec8f3ea99dd2bb1a60288be87c8
[]
no_license
https://github.com/Igor-Carvalho/rroll
65ccd35cc3869a1802fa5d2a13d4a5038b0a7abb
6a0528ad9c57f52935f21594f34cd9c3b2808754
refs/heads/master
2017-06-18T06:32:15.688788
2016-06-24T19:48:42
2016-06-24T19:48:42
41,831,273
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Configurações gerais do projeto rroll.""" from os import environ from os.path import abspath, dirname, join import dj_database_url import dj_email_url import django_cache_url from django.conf import global_settings from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import reverse...
UTF-8
Python
false
false
7,396
py
41
base.py
34
0.666712
0.66441
0
240
29.779167
110
ProtonHackers/CruzHacks-Flask
11,261,404,274,207
41f3adabdc7d896ee4aaa4437992c83c4f461990
e3f5f1100bf0fc7b4af87bd21b8eb3a20dfcc03e
/app/mobile/backgrounds.py
80f56d78dbd02040b819f527fa329feb92b207f3
[]
no_license
https://github.com/ProtonHackers/CruzHacks-Flask
ec3e48b063b394cae20db517e5e77a097cf2844d
882bbe2d8d879d3207fd4fa54fc0e185c9cbc092
refs/heads/master
2022-12-16T12:54:35.037547
2018-01-21T19:47:38
2018-01-21T19:47:38
118,274,391
0
0
null
false
2022-11-22T01:45:46
2018-01-20T19:34:14
2018-01-20T19:38:41
2022-11-22T01:45:43
4,340
0
0
11
Python
false
false
import os import cv2 import numpy as np from flask import current_app from PIL import Image import os def remove_background(img_path): img = Image.open(current_app.config["UPLOAD_TEMPLATE"] + img_path) filename, file_extension = os.path.splitext(img_path) img.save(current_app.config["UPLOAD_TEMPLATE"] + f...
UTF-8
Python
false
false
2,553
py
22
backgrounds.py
17
0.531923
0.50568
0
63
39.52381
91
tkrasnoperov/recursive_generation
5,918,464,937,043
e4ce433e0ed409d5bbb3e6348b99b9504eb18958
3d790f7852b1976ba464b767e1c2cccd8ec1e536
/main.py
226a8a2f52f6b805999a9caf28ca197aa995fcbd
[]
no_license
https://github.com/tkrasnoperov/recursive_generation
f8d2903506fec4224b0555f12203d4001e9c1b90
7098a41a8df26a85d0d6bc48422580d94a7f2e35
refs/heads/master
2020-04-30T14:09:46.009630
2019-03-21T06:18:02
2019-03-21T06:18:02
176,881,728
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from time import time import numpy as np from numpy.linalg import pinv, matrix_rank, norm import matplotlib.pyplot as plt from scipy.linalg import null_space from PIL import Image as image import torch import torchvision from torch import FloatTensor, LongTensor from torch.autograd import Variable import torc...
UTF-8
Python
false
false
6,011
py
7
main.py
5
0.553153
0.532025
0
200
29.055
96
sonochiwa/xmlparser
18,227,841,228,156
a5a9d7d15fb9c49e889391bf87809714b0cc9b25
b8d0d87e79e7c766f402cd61aff3e1b06fbbd436
/widget.py
410157974a94fc3b636a3e8d108877a3f7af2996
[]
no_license
https://github.com/sonochiwa/xmlparser
1ca0c585c425aa22171cae60b3a724003beb29b8
6b4f499f9972af2f902828806fe4a67001a039bf
refs/heads/main
2023-05-22T20:25:30.082948
2022-12-23T13:10:07
2022-12-23T13:10:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import csv import docx from item import Ui_Item from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from form import Ui_Form from db.base import session from db.models import RKN from db.utils import get_field_type from datetime import datetime from XMLparser import parser from sqlalchemy...
UTF-8
Python
false
false
4,653
py
9
widget.py
7
0.575744
0.572216
0
129
34.162791
115
moztn/slides-moztn
13,735,305,417,485
e55e247e78b2681d02f8cd84a1ca8d47996d2b18
8a4a79d95bac2373eb6cf4f033c09ad344673065
/models.py
353582d3c978e6a980ac89ae3d24790346254841
[]
no_license
https://github.com/moztn/slides-moztn
361c1b05e642bc78fbd08de4d7dd974dcd4032f9
ae826bbc18528d1af8de78a751e5c537efac7a4f
refs/heads/master
2016-09-11T05:36:44.112041
2015-01-05T23:09:25
2015-01-05T23:09:25
10,198,896
2
0
null
false
2015-04-02T12:32:51
2013-05-21T15:23:11
2015-01-05T23:09:25
2015-04-02T12:32:51
55,616
7
12
13
JavaScript
null
null
from sqlalchemy import Column, Integer, String, ForeignKey from database import Base from sqlalchemy.orm import relationship, backref from flask.ext.login import UserMixin class AdministratorModel(Base,UserMixin): __tablename__ = 'administrators' id = Column(Integer, primary_key=True) email = Column(Strin...
UTF-8
Python
false
false
1,905
py
17
models.py
9
0.648294
0.636745
0
58
31.827586
84
kpmoorse/rkf_trajectory
1,778,116,495,572
cbad9f246efd180c9548bab67f61d1d555b5dbcb
05303b35d125ac17c17fc7d632977c0f6c4ce30f
/traj_stepwise.py
7bb06c3ee397018927e10ce4a012236569ecfe65
[]
no_license
https://github.com/kpmoorse/rkf_trajectory
78cd78d45acbba226078c0a639b21df3b508d9fb
e6f388db54b689b3bc9251918530a46296501a52
refs/heads/master
2020-04-16T05:44:47.986863
2019-03-05T22:01:43
2019-03-05T22:01:43
165,319,060
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys import time import scipy import numpy import matplotlib.pyplot as plt import trajectory import argparse import rospy from std_msgs.msg import Float64 from autostep_proxy import AutostepProxy # Initialize argument parser parser = argparse.Argument...
UTF-8
Python
false
false
2,761
py
5
traj_stepwise.py
5
0.681637
0.662079
0
100
26.61
92
Brett-BI/Dodo
13,984,413,535,587
ae6b9c8219306205c0c1a4af6c65b373e8fa81a8
0a320bd7ddb1ac826f800ee4c34755fb414c26de
/Resources/Database.py
78b61a0ac9ba20f737e0ca0dd78c64b6f67edb22
[]
no_license
https://github.com/Brett-BI/Dodo
65c66aca21a9607d2defed4d6c10de9374bc11c1
69d5e3ce1c679ecbe27657a0f76344f404898444
refs/heads/master
2023-07-14T04:02:12.850673
2021-08-27T00:00:28
2021-08-27T00:00:28
394,811,045
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import redis from abc import abstractmethod import json from random import randint from typing import Dict, List # Interface for the Room, Message, and User classes. Need the initialize method for initial setup of the object in Redis. class DatabaseObject(): @abstractmethod def initialize(self) -> None: ...
UTF-8
Python
false
false
1,840
py
18
Database.py
17
0.659239
0.654891
0
51
35.098039
179
JackRoten/UCSB129L
8,521,215,119,774
9ba7dcf377ea8d5a12ca75b705aa81ea4b0a8e0a
de0c4140e6e4ba4a9633e8efc27d031d332b866f
/Old-HW-JACK/HW2/stupidHWProgram6.py
7351dfc27c1414255d4e8d2afec5b38b0a7221cf
[]
no_license
https://github.com/JackRoten/UCSB129L
6ed73746f8f113bdaba3730fbd3ec33dabe1eb97
24795b343b04bde25af3f5e8981b91da7e492dec
refs/heads/master
2020-04-18T06:01:37.613797
2019-09-19T18:46:59
2019-09-19T18:46:59
167,302,880
0
0
null
false
2019-03-22T22:52:27
2019-01-24T04:27:14
2019-03-22T21:40:09
2019-03-22T22:52:27
5,780
1
0
0
Jupyter Notebook
false
null
#!/usr/bin/env python3 # # stupidHWProgram6.py # # Winter 2019 129L # Homework Exercise 6 # # Ask for number and return the prime factors of that number, with their # relative powers. # # Jack Roten 25 Jan 19 #---------------------------------------------------------------------------- from collections import Counter ...
UTF-8
Python
false
false
784
py
98
stupidHWProgram6.py
73
0.529337
0.507653
0
37
20.189189
77
yidapa/pyChemistry
10,213,432,241,109
9219c2c75711f54520d9d0857f9f161efc35a36a
87f6b0d8eda8579f51edf4241bf8afb51c5638a5
/__init__.py
bc2860bab51a314af195028b87c96fb8abde8955
[]
no_license
https://github.com/yidapa/pyChemistry
0f1263f05c9036e93a83d690993eedb54fc9233a
f1071e145387d71ef0df57488a7890a5fd06aeb5
refs/heads/master
2021-01-18T10:07:41.228986
2016-02-01T20:07:13
2016-02-01T20:07:13
52,354,260
1
1
null
true
2016-02-23T11:32:39
2016-02-23T11:32:38
2016-01-30T09:12:24
2016-02-01T20:07:14
11
0
0
0
null
null
null
from chemlib import *
UTF-8
Python
false
false
21
py
6
__init__.py
5
0.809524
0.809524
0
1
21
21
shenwilly/Kleros-Monitor-Bot
15,470,472,241,585
c718fe8168d8c376746d78441d1d80317b63aec6
ce115b5b7fda1ca252ed3287a26ae1967764ef58
/bin/monitor.py
278273413ee7bd4cfe3cf33f6c9a27b49937b934
[ "MIT" ]
permissive
https://github.com/shenwilly/Kleros-Monitor-Bot
47dd912c88bfc87a1bb9f54653a94af9a5747c55
2d8c0eaaab49e49f2dda8823f2173da51682981b
refs/heads/master
2020-06-20T19:41:03.050853
2019-07-24T16:58:47
2019-07-24T16:58:47
197,225,968
0
0
MIT
true
2019-07-16T16:03:04
2019-07-16T16:03:03
2019-07-16T15:15:05
2019-07-16T15:15:03
5,202
0
0
0
null
false
false
#!/usr/bin/python3 import pprint import sys sys.path.extend(('lib', 'db')) pp = pprint.PrettyPrinter(indent=4) import os from kleros import Kleros, KlerosDispute, KlerosVote from collections import Counter #{"name":"_disputeID","type":"uint256"},{"name":"_voteIDs","type":"uint256[]"},{"name":"_choice","type":"uint2...
UTF-8
Python
false
false
3,884
py
7
monitor.py
5
0.671473
0.650618
0
112
33.678571
166
Tejas-Naik/-100DaysOfCode
8,031,588,890,521
a339255f4a63c2fb76a8c87901cc5aa14300fe83
d93710a6feab5e03c21db1f2b39e58e7879160c5
/Day32 smtplib, datetime module/Motivational Quotes sender/app.py
ef0a0a7ec52f5d6fceac8195689d56c8deb74b9a
[]
no_license
https://github.com/Tejas-Naik/-100DaysOfCode
5167bc9d583e02d8d1e31f54bc51e091270ab47f
76d16dbdd1a30d4c427bb05e10bcb8e24730290c
refs/heads/master
2023-08-10T22:47:06.703066
2021-10-02T16:15:12
2021-10-02T16:15:12
396,397,901
2
3
null
null
null
null
null
null
null
null
null
null
null
null
null
import smtplib import datetime import random with open('quotes.txt') as quotes_files: quotes_list = quotes_files.readlines() quote = random.choice(quotes_list) my_email = 'tejasrnaik2005@gmail.com' password = 'abcd1234{}' reciever_mail = 'rntejas2005@gmail.com' now = datetime.datetime.now() with smtplib.SMT...
UTF-8
Python
false
false
639
py
126
app.py
102
0.672926
0.649452
0
24
25.625
56
pyziko/python_basics
9,397,388,494,972
65707c4b87f1bca1b59981bd26f453799a32d903
bd492f51847836a248b4dd033436db3d20a9cf37
/functionalProgramming/pure_functions and Lambda.py
d19a809b265e8373c1695679706dba03c63daa2d
[]
no_license
https://github.com/pyziko/python_basics
1cdfbe475e1bc77bdb25d74c89a8d09a4dd42fa3
0a4e55ee98c857ce349bdb76affb7c711e2aa8a0
refs/heads/main
2023-05-29T09:42:09.581886
2021-06-14T00:20:20
2021-06-14T00:20:20
376,665,624
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# given the same input, it will always give the same output # it should not interact with the outside world (i.e its scope) # the idea is we would never have a bug since it doesn't depend on # any data from the outside world (outside its scope) which is subject to change # pure functions leads to less buggy code from ...
UTF-8
Python
false
false
1,937
py
57
pure_functions and Lambda.py
57
0.629324
0.597315
0
82
22.621951
84
ferhatcicek/minifold
14,181,982,021,937
c0c2bbd6d5dca80638912d82cca0e7870b488af1
9adea4131921ae4b8c94e6e20c8dcd5efa8f5f4a
/src/where.py
4b9a9e6ad6bb1d44f3b9fb2455a26a81ea400a93
[ "BSD-3-Clause" ]
permissive
https://github.com/ferhatcicek/minifold
33f447133601c299c9ddf6e7bfaa888f43c999fd
00c5e912e18a713b0496bcb869f5f6af4f3d40c9
refs/heads/master
2022-12-15T05:58:04.541226
2020-09-25T16:55:52
2020-09-25T16:55:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of the minifold project. # https://github.com/nokia/minifold __author__ = "Marc-Olivier Buob" __maintainer__ = "Marc-Olivier Buob" __email__ = "marc-olivier.buob@nokia-bell-labs.com" __copyright__ = "Copyright (C) 2018, Nokia" __license__ ...
UTF-8
Python
false
false
1,118
py
65
where.py
63
0.557245
0.550984
0
44
24.386364
56
nurdyt95/ironpython-stubs
6,322,191,906,089
7f6904a6a6421e98fd4b1b1356d7c659eb766e5d
c01e44a3daa107acd1367c490f6e9459d3a557f4
/stubs.min/System/Windows/Media/Animation_parts/ResumeStoryboard.py
b4a02452502fce18be87fb7440c02302c690b9af
[ "MIT" ]
permissive
https://github.com/nurdyt95/ironpython-stubs
15142859d2ae1859b78cd1f906cf733b0dfd09e3
4d2b405eda3ceed186e8adca55dd97c332c6f49d
refs/heads/master
2020-12-03T08:03:35.301095
2017-06-27T14:54:39
2017-06-27T14:54:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class ResumeStoryboard(ControllableStoryboardAction): """ Supports a trigger action that resumes a paused System.Windows.Media.Animation.Storyboard. ResumeStoryboard() """
UTF-8
Python
false
false
186
py
662
ResumeStoryboard.py
659
0.763441
0.763441
0
8
21.5
91
adamian/hclearn
12,498,354,852,525
9ff9bad4cbdfb355ce1b506a3ab72bc2b2d7b44f
addeba19af42dc21e41c0864b02616132ec079f1
/generate_maze_from_data.py
57e3af5dcd0af29aa61980f5c6769b8753aea076
[]
no_license
https://github.com/adamian/hclearn
c9500f9c222c120b55855b1ec7587101a86f747a
c0d1d076abe29094dd43e55932457dd03f7eaed4
refs/heads/master
2021-01-20T06:32:54.738179
2015-02-12T09:51:50
2015-02-12T09:51:50
23,543,506
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 03 12:12:43 2014 Load all the images and build overall image.... @author: luke """ ### Build map from google data #import urllib #import math import numpy as np import sys #import filecmp # import cv2.cv as cv import cv2 import os import glob DEF_SCREEN_WIDTH=1600 DEF_SC...
UTF-8
Python
false
false
49,501
py
15
generate_maze_from_data.py
14
0.553847
0.536959
0
901
53.927858
288
albin-cousson/Le_gestionnaire
16,106,127,362,592
69702ca24c717bec0b85d396a3283c8c65181cb6
e30d99f24cdb1120e50b617b326124582de68ea7
/Le_gestionnaire_app/forms.py
54ed95a4316a981fac985a6f638967004fdb0e68
[]
no_license
https://github.com/albin-cousson/Le_gestionnaire
a0b2ec080577c58fe549218abcdc6e5e7d2186bb
04cd3a4fbfb94a2d112882e0f5a9f1182745c610
refs/heads/main
2023-01-23T01:30:12.072787
2020-11-15T15:49:05
2020-11-15T15:49:05
311,152,020
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from .models import main_idea_model, second_idea_model, third_idea_model class main_idea_form(forms.ModelForm): class Meta: model = main_idea_model fields = ('idea',) class second_idea_form(forms.ModelForm): class Meta: model = second_idea_model fields ...
UTF-8
Python
false
false
473
py
18
forms.py
15
0.649049
0.649049
0
17
26.823529
72
karthikpappu/pyc_source
3,126,736,211,365
a1228b08fc90d9baeec8557cba53eee5c1c4c1d5
91fa095f423a3bf47eba7178a355aab3ca22cf7f
/pycfiles/signalbox-0.3.4.4.tar/data.py
ae072ce218a111fb6ed37065013388ee24ffff10
[]
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
# uncompyle6 version 3.7.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.9 (default, Apr 18 2020, 01:56:04) # [GCC 8.4.0] # Embedded file name: /Users/ben/dev/signalbox/signalbox/views/data.py # Compiled at: 2014-08-27 19:26:12 import os from datetime import datetime from zipfile import ZipFile from temp...
UTF-8
Python
false
false
6,675
py
114,545
data.py
111,506
0.701723
0.693783
0
132
49.575758
151
dluca14/credit-card-fraud-detection
15,659,450,803,710
a62d7d49bae49e9c119187abcf57c24d2043b88b
2d5139a1d9d960dba4500c53c45a191af1e2e2ed
/src/build_model/create_model.py
5c7617254d0ca7c0e58d06077aeb86258cca9426
[]
no_license
https://github.com/dluca14/credit-card-fraud-detection
73ac9fa4f114edf6c4ac3fcc8c5b6fe1c6c4ee46
cd323e646902682f557ba8d4f9ac30561dbe40e2
refs/heads/master
2023-07-24T15:39:59.635041
2021-09-06T09:08:25
2021-09-06T09:08:25
403,555,742
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import gc import os import json import joblib import numpy as np import pandas as pd from lightgbm import LGBMClassifier from sklearn.metrics import roc_auc_score from sklearn.model_selection import StratifiedKFold from sklearn.model_selection import train_test_split import sys sys.path.append("..") from ...
UTF-8
Python
false
false
6,999
py
10
create_model.py
6
0.61866
0.608658
0
166
40.162651
120
OdysseusC/core
12,601,434,077,418
4ab1cbe05b55727823c26487715c2379223f7412
00502bfe6120f4936101c59e5ec0ff012f2872a9
/examples/iot-paas.py
ae86d82b3b8c9828c65f320025b13f67ded224de
[ "Apache-2.0" ]
permissive
https://github.com/OdysseusC/core
d95e849cbf2ebd2983d94259b1b3cc0f9be122ef
8d5c1841d37d370c58bcb2fa7e52a7cafb46e9d0
refs/heads/main
2023-09-06T02:09:46.208401
2021-11-08T14:08:53
2021-11-08T14:08:53
419,555,518
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import random import time import traceback import uuid import requests from paho.mqtt import client as mqtt_client keel_url = "http://192.168.123.9:30707/v0.1.0" broker = "192.168.123.9" port = 32412 def create_entity_token(entity_id, entity_type, user_id): data = dict(entity_id=entity_id, entity_ty...
UTF-8
Python
false
false
4,470
py
103
iot-paas.py
62
0.661745
0.647651
0
117
37.205128
162
ApyMajul/GatsbyLeMagnifique
14,903,536,546,958
4073c2e12a4ac0f616231196fd44cd065321a50b
482888592a16dff898b887f1b60a288f10da68f6
/contenus/admin.py
85df27504f0f767fc0627fa14707c2db6a5ada9d
[]
no_license
https://github.com/ApyMajul/GatsbyLeMagnifique
b1ec9a77fdc66f02f68846871de011eca2a73d84
4916f84564636fe7d956d9d8ab5db44e29825849
refs/heads/master
2020-04-30T17:53:05.606363
2019-10-21T11:53:40
2019-10-21T11:53:40
176,993,069
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Content, Categorie admin.site.register(Content) admin.site.register(Categorie)
UTF-8
Python
false
false
134
py
16
admin.py
16
0.820896
0.820896
0
6
21.333333
38
GalinaDimitrova/Hack
386,547,065,975
8a1866eec006f61aab8efa679c3501622434abf1
be1a45b4ee526ec3cd81a2bcd06404db90c097fb
/week9/server.py
a66fae26bcea08744893728cc36648123000be15
[]
no_license
https://github.com/GalinaDimitrova/Hack
c48e69c80678fa24937ca7dd4a36b1050e05d66e
186e6f3520183565765569e63b39b25249c82f11
refs/heads/master
2021-01-25T08:55:23.349341
2014-12-29T23:25:54
2014-12-29T23:25:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask from flask import request from flask import render_template from local_settings import debug_mode from make_database import Page, Website from sqlalchemy.orm import Session from sqlalchemy import create_engine from sqlalchemy import or_ app = Flask(__name__) @app.route('/') def index(): ...
UTF-8
Python
false
false
1,892
py
93
server.py
86
0.641121
0.641121
0
74
24.581081
108
lyndonlens/tensor-field-networks-1
11,630,771,464,616
e8cc290456965d1820efc57da9046b844c37dbcc
71d2b5e3f8f6ee27962b9cda26b67e8f57a364ad
/tfn/layers/radial_factories.py
e399e6931d35650b452b5ea6bbd970d84379c950
[ "MIT" ]
permissive
https://github.com/lyndonlens/tensor-field-networks-1
2190c0a16bd26742a51bcf4a8ef525050f1564b7
5c25583ee4108a13af8e73eabd3c448f42cb70a0
refs/heads/master
2023-06-20T19:23:08.439262
2021-07-15T16:32:37
2021-07-15T16:32:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import tensorflow as tf from tensorflow.keras import activations, regularizers, Sequential from tensorflow.keras.layers import Layer class RadialFactory(object): """ Abstract class for RadialFactory objects, defines the interface. Subclass """ def __init__( self, num_laye...
UTF-8
Python
false
false
4,758
py
58
radial_factories.py
55
0.59794
0.592686
0
135
34.244444
97
j4zzlee/flask-restful
15,307,263,485,696
eaf19150f1f4b926ffd4a6e1082f348cfd583409
7ecc569b1934c20b1c60aefe7948d52e263fdc62
/api/app/models/MetaValue.py
64d1b621347511b1f3fcbb7a84c5813ebe0a26f7
[]
no_license
https://github.com/j4zzlee/flask-restful
8bbd726e8b950e7d063c58a2886307ecf3b834ed
f278f57676b59c3bbbee475e8292dd4c5446b607
refs/heads/master
2022-08-27T10:16:09.157858
2015-10-28T03:36:53
2015-10-28T03:36:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'gia' from models import Base, db from libraries.db import guid class MetaValue(db.Model, Base): __tablename__ = 'sys_meta_value' TYPE_INFO = 1 TYPE_LINK = 2 id = db.Column(guid(), primary_key=True) group_id = db.Column( guid(), db.ForeignKey( 'sys_meta...
UTF-8
Python
false
false
740
py
36
MetaValue.py
29
0.583784
0.57027
0
30
23.666667
65
HeKuToCbI4/Some_weird_project
4,861,903,029,113
be562c98030336df60f1eac5770180fbe769f099
fc8647206dd1cee7c75725c3af56eb4ef61f197d
/telegrambot/kisik_bot.py
5125c8f1e8d582f6e2e179e90964e164d674314d
[]
no_license
https://github.com/HeKuToCbI4/Some_weird_project
1251077d0bf9a6c7a0e59cb54ffa3c7b8ba316d8
2375dde3ebee13c2c3862f4fce7979e1a833ef37
refs/heads/master
2021-09-07T07:15:03.793993
2018-02-19T12:43:07
2018-02-19T12:43:07
106,857,757
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from threading import Thread, Event from time import sleep import telebot import telegrambot.config as config from Modules.Common.checker import Failure from Modules.Common.helper import LogClass from Modules.Common.logger import Logger from Modules.VkModule.vk_module import VkModule from Modules.VkModule.WallMonitor...
UTF-8
Python
false
false
5,945
py
18
kisik_bot.py
17
0.591974
0.590199
0
112
49.294643
117
Ramhawkz47/guvi
17,300,128,277,210
967f40117104650d87ec25f1c263bf6b454d2721
cd537753b46b5e4c9dbb17a27cb6da23aba1d491
/delnum.py
9ca1a58e70efd5f524e3c066becfce57157cee6b
[]
no_license
https://github.com/Ramhawkz47/guvi
0b064af8d32529370c88c2f24b9ec04a85f170a7
8e87a9c8105103f387b51372ca83c7f700880fff
refs/heads/master
2020-05-09T04:49:50.092839
2019-07-06T03:56:11
2019-07-06T03:56:11
180,985,898
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def deln(n,k): if((n==0)or(k==0)): return n #print(n) #print(k) a=deln(n//10,k)*10+n%10 b=deln(n//10,k-1) #print(a) #print(b) if a<b: return a else: return b s=input() s=s.split(" ") print(deln(int(s[0]),int(s[1])))
UTF-8
Python
false
false
277
py
8
delnum.py
7
0.454874
0.407942
0
17
15.294118
32
serarca/LowerBoundsVRP
15,719,580,330,238
9571e9e0dd1dbdb73dc43bfb68abb20c3f5763aa
1038aa15501853ae292f580cb1198411f02a2d31
/baldacci.py
bd8346d15d69e79278f747b0b5f9a8aab83be17d
[]
no_license
https://github.com/serarca/LowerBoundsVRP
f62540d32eec0ceeb46cc845e20ed0cea722c96a
48b7660587633f69ffce748278a8ac6385f7cb3f
refs/heads/master
2020-03-18T03:05:27.314898
2018-07-21T21:22:09
2018-07-21T21:22:09
134,222,176
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# We solve the GENPATH problem def GENPATH(Delta, gamma, h, capacity, N, quantities, distance, direction): P = {} T = {} for k in N + [h]: P[k] = [] T[k] = [] T[h] = [{'path':[h],'cost':0,'lower_bound':0, "load":0, 'end':h}] count_paths = 0 while True: costs = {} ...
UTF-8
Python
false
false
7,396
py
7
baldacci.py
6
0.443348
0.430909
0
180
40.088889
126
shlok97/FundamentalsStocksAnalysis
8,744,553,438,858
450fb4ad979f5c67ff264905fe620a414d51e456
eff1eb79e1fd3e1d2acc8b134dc6b69fd8c706f0
/FundamentalAnalysis.py
6fd0bf8ace35693f47d6cd9ab52cba3cc06dc125
[]
no_license
https://github.com/shlok97/FundamentalsStocksAnalysis
037bbc4ade69e2531a604cb316213175df722552
3da9d4c4e537e72d683a710128f4c9fbb16cc2f0
refs/heads/master
2020-05-29T21:29:17.196520
2019-05-30T08:55:12
2019-05-30T08:55:12
189,379,667
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np import csv # df_cashflow = pd.read_csv("stocks/Kotak/Cash Flow-Table 1.csv", error_bad_lines=False) # df_profitloss = pd.read_csv("stocks/Kotak/Profit & Loss-Table 1.csv", quoting=csv.QUOTE_NONE, error_bad_lines=False) # # print(df_profitloss.head()) errors = 0 def getData(sto...
UTF-8
Python
false
false
10,622
py
2,435
FundamentalAnalysis.py
2
0.533986
0.510827
0
334
30.802395
193
kwojdalski/my-first-blog
7,121,055,783,416
f39bd710090e8b5e2dbc221a464e844a313a4987
c562b5ac46a4411433e7264b1a35de00ceb2f3f7
/django_env/lib/python2.7/sre_compile.py
44cb7a78b86b38f4bae7659380a8a36f45def28c
[]
no_license
https://github.com/kwojdalski/my-first-blog
01e048f2f2246787d105cedba458945fd73e8607
839383bd9ad15d936a6b61b186a78dfe2904f87b
refs/heads/master
2020-05-29T08:54:32.841015
2016-09-29T19:58:33
2016-09-29T19:58:33
69,102,988
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
/Users/krzysztofwojdalski/anaconda2/lib/python2.7/sre_compile.py
UTF-8
Python
false
false
64
py
24
sre_compile.py
22
0.859375
0.8125
0
1
64
64
4Catalyzer/flask-resty
7,370,163,921,079
99f507c238a8f42cb4a706bf6866462fce2be6cc
fc94a7e1c86dc0c7c6d2db6efeb82d0d491b1e3c
/flask_resty/utils.py
abda5518b20773306388a9efde9c9a71bae6292d
[ "MIT" ]
permissive
https://github.com/4Catalyzer/flask-resty
cf2d9171fc994b36166493257dd78da337f3729e
a4c8855dc2f482c29569001ae0e54ab5a40acb2f
refs/heads/master
2023-06-07T12:55:13.396268
2022-10-05T19:31:06
2022-10-05T19:31:06
39,663,289
91
17
MIT
false
2023-05-30T18:55:30
2015-07-24T23:29:49
2022-09-14T17:58:52
2023-05-30T18:55:29
781
83
13
19
Python
false
false
"""Internal utility helpers.""" # UNDEFINED is a singleton; ensure that it is falsy and returns the same instance when copied class _Undefined: def __bool__(self): return False def __copy__(self): return self def __deepcopy__(self, _): return self def __repr__(self): # pragm...
UTF-8
Python
false
false
1,869
py
63
utils.py
49
0.527555
0.527555
0
71
25.323944
93
kozolex/ISIC_Classification_Melanoma_Benign
10,926,396,847,255
722b838d4060a38966e461f41e09a1f1a2a2eb15
a1d7dc9a1c4fe99701ef1a1fe20bee31aae32a14
/dataset_to_folders.py
7dc6245d9839a3e63e8acd2a78766b7ce37cac6a
[ "MIT" ]
permissive
https://github.com/kozolex/ISIC_Classification_Melanoma_Benign
6be5c8e60e4929e3d56b808f7e13a3ffab81c848
9945e54971eeaa427668392ef0381d068a5ef819
refs/heads/master
2022-04-21T04:17:59.496489
2020-04-24T13:54:37
2020-04-24T13:54:37
258,480,829
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import csv import zipfile from os import path, makedirs class DatasetAnalyzer: """ """ def __init__(self, zipPath, csvPath, keyWords = [], output = 'output/'): self.zipPath = zipPath self.csvPath = csvPath self.keyWords = keyWords self.output = output print(f'File ...
UTF-8
Python
false
false
1,229
py
2
dataset_to_folders.py
1
0.590724
0.574451
0
48
24.625
125
killian-coder/Kamel_link_sys
1,709,397,003,767
dfefd82addcd7ded0ce5626c83b27846ebd74e34
bd622478d3e7f711eb8133aa94afd7bcbbb47b14
/about_us/views.py
86ebd0ad374c70fc3541466ab8351bc70a64a7f4
[]
no_license
https://github.com/killian-coder/Kamel_link_sys
ac495dcac34da46d1e1007c614ea58a78f394ee2
21c407a3171bd28bc25dfd16d447454aab5c7695
refs/heads/main
2023-06-08T01:07:58.844125
2021-06-22T17:40:01
2021-06-22T17:40:01
304,036,352
0
0
null
false
2021-06-21T08:02:09
2020-10-14T14:12:47
2021-06-20T16:34:46
2021-06-20T16:34:43
3,954
0
0
1
HTML
false
false
from django.shortcuts import render from django.views.generic import ListView from about_us.models import About # Create your views here. class AboutUsview(ListView): template_name = "about.html" model = About
UTF-8
Python
false
false
223
py
9
views.py
7
0.757848
0.757848
0
11
19.181818
41
muneer22/local
8,495,445,312,453
991fa9b7cd16d6742690571ee22bac92a31fb8b6
00689046bb71927fc98301a23235cc33500d26bc
/membership.py
3a813b40b7373f778e373fd9c3cd85bcd8d0ee2e
[]
no_license
https://github.com/muneer22/local
11392ea8a7fb9ff35440b174d84806864c689038
7900c43bb846076589db6fddba0e1fce16e102d2
refs/heads/master
2021-09-07T16:52:07.004726
2018-02-26T10:21:32
2018-02-26T10:21:32
108,250,418
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
list=[1,2,3,4,5,6,7,8,9,10] a=2 b=5 c=12 if(a in list): print('a is in the list') else: print('a is not in the list') if(b not in list): print('b is not in the list') else: print('b is in the list') if(c not in list): print('c is not in the list') else: print('c is in the list')
UTF-8
Python
false
false
307
py
11
membership.py
10
0.579805
0.530945
0
18
16
33
nabraj12/Pediatric-Bone-Age
7,507,602,853,620
063b42667f566eb5ad1321d04c46f6b9df7bb749
828386e4986f7310fc9f8a03c8ecc6eee5424f1d
/model-training-python/checkimg.py
c51e6c2ae6865de796f26f26d42dc1625e297471
[]
no_license
https://github.com/nabraj12/Pediatric-Bone-Age
da1672d4413a40b8a427c1ed41f224ede0ffa214
bde54b3c21d77da0707d7ee9f98626eb5f7e491c
refs/heads/main
2023-03-23T10:42:51.409360
2021-03-15T00:07:05
2021-03-15T00:07:05
306,743,198
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.image as mpimg import os.path import matplotlib.pyplot as plt import logging import sys #============================== #prepare logger logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s:%(name)s:%(message)s') file_handler = logging.FileHa...
UTF-8
Python
false
false
2,892
py
21
checkimg.py
12
0.664938
0.659059
0
96
29.104167
71
isthattyler/MySQLBirthdayTracker
18,957,985,645,724
aff44e98a42446b4a2ceef972eb16f461bccf6d7
56491ee53e7ee9eee6aa253afe1b1cca73fe5107
/src/Birthday.py
c7a08e732eaaf281fe3fbcf52937a6162a4c1d9d
[]
no_license
https://github.com/isthattyler/MySQLBirthdayTracker
8233592f7bd2d7687395757c584a53e92319e937
aa03cedc9a523c56af955547577428e235068b3e
refs/heads/master
2020-08-30T00:11:20.477119
2019-10-29T23:58:29
2019-10-29T23:58:29
218,210,901
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Birthday Class """ from MySQLConnector import * import socket class Birthday: def __init__(self): self.config = "" # get host address s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80)) host = s.getsockname()[0] self.db = MySQLConnect...
UTF-8
Python
false
false
4,160
py
3
Birthday.py
2
0.530529
0.525721
0
104
39
136
abisha22/S1-A-Abisha-Accamma-vinod
7,567,732,396,229
399c075fac99fdd022b771679d55b633ddb8feb2
7b1d1957183cb588aae19181e7b57be881906c38
/Programming Lab/27-01-21/prgm7abc.py
8cef835ae9326ca60be34de0f0c6ccd6515093d9
[]
no_license
https://github.com/abisha22/S1-A-Abisha-Accamma-vinod
29c3ad7f183f3087955fda2e8c3b8b1a8630c034
49c2041519a3522c44a650efe39bff27b8103917
refs/heads/main
2023-06-12T21:27:43.859222
2021-06-30T01:52:23
2021-06-30T01:52:23
353,318,058
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> list1=[12,3,4,56,7,8,9,19,34,87] >>> list2=[10,4,67,89,4,77,29,5,7,8] >>> len1=len(list1) >>> len2=len(list2) >>> if len1==len2: print('Both...
UTF-8
Python
false
false
982
py
25
prgm7abc.py
11
0.6222
0.476578
0
39
23.205128
94
chlendyd7/JustDoIt_Python
17,042,430,255,696
6256b9163946bd75b2089cb1f358f5a73fd33b0f
9099dce6485bdc8f2cdfc06168bfeb6dcf86449f
/2021_10_08/Dictionary.py
06465a18aabb2ac9aba54abb562f7fb8fb14d0b5
[]
no_license
https://github.com/chlendyd7/JustDoIt_Python
a6306bee6289d781b5272070c32cb76eec739c96
230a9f8d8223f81d5f37b1ced4a426819f417cff
refs/heads/main
2023-09-02T10:25:08.141084
2021-10-11T14:29:42
2021-10-11T14:29:42
412,497,001
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#사전 cabinet = {3:"유재석", 100:"김태호"} print(cabinet[3]) print(cabinet[100])
UTF-8
Python
false
false
93
py
14
Dictionary.py
14
0.61039
0.506494
0
4
17.25
30
DevManuelBarros/melingo
13,718,125,566,756
8a79c7468179ec938cadbf606a63838c77aed0ad
59d5f22b84cfb2b6f0128b6f12cb21e7b00a66b3
/loadMeli/views.py
a46cc65b7f2ca2caacaa84e6d8ee2629f19b2ee0
[]
no_license
https://github.com/DevManuelBarros/melingo
7d4d9b868990e81c632552e680f0f5c179bf8bd6
af0ea564cc0db12c6ca2b09c71b6f2aa9237fde2
refs/heads/master
2022-12-20T20:15:52.871942
2019-11-20T02:08:41
2019-11-20T02:08:41
217,774,816
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from meli.meli import Meli from django.http import HttpResponse, HttpResponseRedirect from .serializers import LoginModelSerializer from .models import LoginModel from django.contrib.auth.decorators import login_required from django.urls import reverse # @login_required(redirect_...
UTF-8
Python
false
false
1,618
py
11
views.py
9
0.719233
0.717996
0
48
32.6875
95
mc811mc/cracking-python-bootcamp
9,483,287,815,374
8bab732ee287aa6aa6a963a8d37a4a9ba7738e58
0449b8088a99ff55b0125f16ecd1ca3444b2dacf
/sports_betting_calculator.py
8da1c28dc487c8ee695ad83758940f055eda8e5e
[]
no_license
https://github.com/mc811mc/cracking-python-bootcamp
24e6c00828baa8bbf8ac0a574549cc9fbd544d0e
6812ccb77a20a2c00f402975ae470c69486d5a02
refs/heads/master
2023-08-22T04:44:59.662534
2021-10-01T15:21:04
2021-10-01T15:21:04
281,063,993
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print("Welcome to the odds calculator") odds = int(input("Enter the odds: ")) wager = int(input("Enter wager (bet amount): ")) print("Bet", wager, "\n") if odds > 0: win = wager / 100 * odds probability = 100 / (odds + 100) * 100 elif odds < 0: win = wager / abs(odds) * 100 probability = abs(...
UTF-8
Python
false
false
713
py
11
sports_betting_calculator.py
10
0.632539
0.600281
0
24
27.458333
53
paula-cristina-martins/Stack-in-Python
1,571,958,041,889
a20c1c6667d4ea80d03c1ab30969094a4896fbb0
71d28579020151154bd5d1eb68dafaa7b1aad659
/main.py
0034283106626063da50127680ace40c77803570
[]
no_license
https://github.com/paula-cristina-martins/Stack-in-Python
ab7ef57b8fd46fdcbd8e6a07124947a491a0bcf9
bd25f6170c3327b718ac60e70bc8e82638a60118
refs/heads/master
2023-06-07T09:58:14.097772
2021-06-30T22:38:43
2021-06-30T22:38:43
381,541,114
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from AreaContainer import AreaContainer # ------------------------------------------------------------------------------------------------------------ # mccc = AreaContainer(1, 3) mccw = AreaContainer(5, 8) mccr = AreaContainer(5, 7) maqm = AreaContainer(5, 6) # ------------------------------------------------------...
UTF-8
Python
false
false
3,844
py
4
main.py
3
0.544424
0.533087
0
110
33.472727
112
Yogarine/bungie-sdk-python
5,892,695,159,334
0cd72132d97f7d0c7632fc19c75dc42eaaa4b092
af2431c3cfce08626a8863ec3bde8a6defe1134b
/bungie_sdk_python/Model/Destiny/Entities/Characters/destiny_character_progression_component.py
fbd324f1ac8c367d073c7e9ce9430bdee492f74e
[]
no_license
https://github.com/Yogarine/bungie-sdk-python
4d8be794fd6815b5729ef9c4a52d4051092ce0c2
8f0da6501b45add0914a1ec7bac05649991c4787
refs/heads/master
2020-07-03T15:43:51.701753
2019-08-12T15:16:11
2019-08-12T15:16:11
201,954,254
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 """ Bungie.Net API These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. # noqa: E501 OpenAPI spec version: 2.3.6 Contact: support@bungie.com ...
UTF-8
Python
false
false
11,269
py
206
destiny_character_progression_component.py
154
0.67699
0.667317
0
255
43.192157
420
lastfm/python-mirbuild
2,774,548,873,737
4f644d1c81f0963b82c3353924b4716d9650f905
d2d11acdeb6618ab4d0df328472d9f4bb06659a8
/mirbuild/python.py
f45dee1d1a1779e0f5b1286e057a363bca49567d
[]
no_license
https://github.com/lastfm/python-mirbuild
7cfe0f544d6a7d937ad5d6839814d5b77d2645a5
706be24b426f672d614b3fdd14543c4841af08c2
refs/heads/master
2020-12-24T17:17:37.585640
2014-10-14T09:48:00
2014-10-14T09:48:00
8,272,896
1
3
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # # Copyright © 2011-2013 Last.fm Limited # # This file is part of python-mirbuild. # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without restriction, # including ...
UTF-8
Python
false
false
13,557
py
43
python.py
33
0.565359
0.563219
0
341
38.753666
119
tryba/shared-queue
8,400,956,063,634
28ff6c6023c418f11c48a330440fd1c9e1549768
ba4c49cb1f288136eae1c84b540718ab2ba4ba33
/queue_server/queues/views.py
0baf77ef837c246b499f83b5f30bcfcdced76ed8
[]
no_license
https://github.com/tryba/shared-queue
c26edb6fae192d603f039f7a79d7d20c7f6df312
7ce2ba330a075acbc6cce8b5b4a9087c981f6757
refs/heads/master
2021-01-19T12:36:00.466243
2013-01-28T07:13:01
2013-01-28T07:13:01
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render_to_response from django.shortcuts import redirect from django.template import RequestContext from django.contrib.auth.models import User from accounts.models import UserProfile from queues.models import Queue from queues.models import Membership from music.models import Song from que...
UTF-8
Python
false
false
2,052
py
35
views.py
27
0.753899
0.753899
0
59
33.779661
101
mengdilin/Cjango-Unchained
14,104,672,604,336
7ddea5ca24085b10816e2bcb7916761cf486a9fe
4ee050c126c4bf29acb8103b153c3ac269c10dd9
/test/verifications_post_demo.py
0b5b3ba47dc6b98eb6af18ed58a29365a654a0c6
[]
no_license
https://github.com/mengdilin/Cjango-Unchained
95e0db859fab96f766b0c2ab3e85da479e0cedcc
62bb923a2e34e93a9ff1f41a48396291cc1d573d
refs/heads/master
2021-01-20T10:46:16.207185
2017-04-28T03:09:57
2017-04-28T03:09:57
83,937,221
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import json def check_input(data): if not type(data) is str: raise Exception("Input argument is not of type str") def verify_echo(data): ''' Simply echos the data ''' check_input(data) print('received raw data of length {}'.format(len(data))) print(da...
UTF-8
Python
false
false
1,216
py
92
verifications_post_demo.py
47
0.61102
0.604441
0
53
21.943396
61
guicho271828/latplan
15,951,508,568,865
f1346c0ae118f51bbfc1c2274b5f5873e1b5899b
62b84f877ccb4171f558c225fa0fdd4fd2c44d6c
/latplan/puzzles/model/puzzle.py
6537e33f4776a3d33bf034e7c6bbdd3d06b1e2c5
[]
no_license
https://github.com/guicho271828/latplan
b6dfb55f3cceac947df770fb623d496111f9ab19
75a2fc773de245b422a695b51fccaf17294da123
refs/heads/master
2022-10-25T02:02:05.547143
2022-03-25T20:42:06
2022-03-25T20:59:29
96,482,151
77
19
null
false
2023-03-04T14:10:46
2017-07-07T00:11:52
2023-01-30T06:14:45
2022-10-07T14:48:54
3,439
75
17
0
Python
false
false
#!/usr/bin/env python3 import random import numpy as np from ...util.np_distances import bce from ..util import wrap from keras.layers import Input, Reshape from keras.models import Model import keras.backend.tensorflow_backend as K import tensorflow as tf # domain specific state representation: # # In a config arra...
UTF-8
Python
false
false
13,834
py
164
puzzle.py
133
0.576117
0.562166
0
379
35.501319
133
jakob-nagel/DMSUB-classification-system
3,255,585,257,470
f8dc4aaa7fee3a4d288dbbe0ee587e202e29a0ec
734fc7fb082ea452aadf0fc9ea83e079aba6f754
/classification/genres.py
07ad384b5a7ed3726db6f33cf2af77894424edd1
[ "BSD-3-Clause" ]
permissive
https://github.com/jakob-nagel/DMSUB-classification-system
9c3fa6e254793c4b2563b092a71c6c699eb6500e
432c1b0e927f27213cffc594864f906dda6684b5
refs/heads/master
2021-06-08T05:54:20.491655
2016-09-16T21:22:39
2016-09-16T21:22:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Provides genre lists. The contained strings have to match the preambles of the feature files. """ GTZAN = [ 'blues', 'classical', 'country', 'disco', 'hiphop', 'jazz', 'metal', 'pop', 'reggae', 'rock' ] DMSUB = [ 'deep', 'disco', 'house', 'soulful', 'te...
UTF-8
Python
false
false
327
py
34
genres.py
10
0.513761
0.513761
0
24
12.625
78
A-khateeb/Full-Stack-Development-Path
18,373,870,104,441
daae500fe042094583befb85619d6d46e7e92466
dca0bd2e04dda3801d395c2a6ab2f9d95be79551
/Python/SmallProject/Compare1.py
4a67a2be0ba00aa0f989e540d3ea38b29de7032c
[]
no_license
https://github.com/A-khateeb/Full-Stack-Development-Path
ab8c86abea2f983fb8e0046a65b99772416c754c
5a5eaa198367cc95a6b5638e9740f4ad564dec23
refs/heads/master
2021-06-01T23:52:04.965494
2020-05-01T22:59:20
2020-05-01T22:59:20
89,286,943
2
0
null
false
2017-12-22T22:21:52
2017-04-24T21:04:07
2017-11-18T21:13:46
2017-12-22T22:21:52
233
0
0
1
Shell
false
null
print(27/4)
UTF-8
Python
false
false
13
py
325
Compare1.py
308
0.615385
0.384615
0
1
11
11
transceptor-technology/trender
5,866,925,345,808
c56fb6f5449d642777d872ee08faac579c273ee1
7088124fe742b2adcf189626ed89a8d0e712f55a
/trender/aiohttp_template.py
20eb5898aa2bf0722a04d337544681f0b5254654
[ "MIT" ]
permissive
https://github.com/transceptor-technology/trender
609cfdf2ab4230bfc34573a977109c82ee707e9b
ef2b7374ea2ecc83dceb139b358ec4ad8ce7033b
refs/heads/master
2020-05-21T15:19:33.551923
2018-08-15T13:09:27
2018-08-15T13:09:27
44,837,764
24
1
null
false
2016-08-14T20:39:30
2015-10-23T20:49:55
2016-08-11T14:18:55
2016-08-14T20:39:29
69
4
1
0
Python
null
null
'''Use TRender with aiohttp. This implementation is based on aiohttp_jinja2, see: http://aiohttp-jinja2.readthedocs.org/en/stable/ and https://github.com/aio-libs/aiohttp_jinja2 :copyright: 2015, Jeroen van der Heijden (Transceptor Technology) ''' from aiohttp import web from .trender import TRender _templates = []...
UTF-8
Python
false
false
1,187
py
18
aiohttp_template.py
17
0.639427
0.631845
0
46
24.804348
78
riccardosabatini/nextmng
4,612,794,898,159
0ac4e21b75f9dede8d89996290ab6dbdf9498f98
915e5fc7d81d5c0f14e76e1337af01ca2827a9c2
/nextmng/settings/common.py
aab6085e973f24c94681f47dd12605c77d7f1a2a
[]
no_license
https://github.com/riccardosabatini/nextmng
3636eb5aa441a22b3ec6dc90cb74338bd6ffd6ee
7453e96aa8b0d1563f9dfcf44c913ceb2f13dd2d
refs/heads/master
2021-01-10T21:20:30.947025
2014-05-15T11:32:34
2014-05-15T11:32:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Django settings for nextmng project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) im...
UTF-8
Python
false
false
4,609
py
24
common.py
18
0.646344
0.638967
0
156
28.512821
74
efgstone/django-barcode-auth
6,244,882,479,775
fb7dd169b4a4eca08d0333f6ff013a9e103c83c3
ed2aa652d963dbd20bc76c977ed5146f0d86552f
/backends.py
55dfd558eacf34403763783aa4cc86f71ed7e828
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
https://github.com/efgstone/django-barcode-auth
ea85579ed60eb5063d4671b74835bb6eeb4f3619
022eeb29cc78ec614eaa9cec8ed314c1ad46c6d7
refs/heads/master
2020-03-27T12:56:36.835488
2011-09-27T14:57:06
2011-09-27T14:57:06
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth.models import User from barauth.utils import gen_passhash class BarcodeAuthBackend(object): """ Authenticates against a username and a hash contained in a barcode generated by django-barcode-auth.utils.gen_passhash() """ def authenticate(self, user_id=None, password=None...
UTF-8
Python
false
false
714
py
10
backends.py
9
0.623249
0.623249
0
25
27.56
65
acse-srm3018/HelloWorldHackathon
7,670,811,602,491
555f5b076ed25a6112c5f6cab6f23ef835434eca
026d23864f82349482395dfd18ffdad56b1c8fb3
/main.py
6d589c04f1922e44f66cafe0c215b1d08af93b7e
[]
no_license
https://github.com/acse-srm3018/HelloWorldHackathon
d355b019569c710afc61a4d003ffad6e5b87c71e
0041344456a038f957d4752b5f657e602cf50a5f
refs/heads/main
2023-09-03T09:02:50.157329
2021-03-28T15:29:49
2021-03-28T15:29:49
405,771,452
4
0
null
true
2021-09-12T22:57:17
2021-09-12T22:57:16
2021-03-28T15:29:58
2021-03-28T15:29:56
38,639
0
0
0
null
false
false
import json import spotipy import pandas as pd from spotipy.oauth2 import SpotifyClientCredentials, SpotifyOAuth import requests # client_id = '' #insert your client id # client_secret = '' # insert your client secret id here redirect_uri = 'http://localhost:8080/' with open("credentials.json", "r") as file: credent...
UTF-8
Python
false
false
1,116
py
5
main.py
2
0.742832
0.733871
0
40
26.9
124
saeeddiscovery/Deep3DSM
5,600,637,385,746
f16bb62aa43c52869db11aebc8d9bfcbafe87aea
e048af261935eee97adfa64db44d2d6d230171b0
/Utils/utils.py
7915adebefa60a66c5283be69776e8565f059c6d
[]
no_license
https://github.com/saeeddiscovery/Deep3DSM
b7a67a13f514303070f026bb503f7f0a02e71bcc
7bc7a0db4e34b9f28ad14706a693030bfa1a8837
refs/heads/master
2021-10-11T04:51:22.779100
2019-01-06T21:24:58
2019-01-06T21:24:58
166,949,211
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os def myPrint(text, path, consolePrint=True): if not os.path.exists(path+'/reports/'): os.mkdir(path+'/reports/') if consolePrint: print(text) print(text, file=open(path+'/reports/output.txt', 'a')) def myLog(text, path): myPrint(text, path, consolePrint=False) def...
UTF-8
Python
false
false
934
py
8
utils.py
6
0.62955
0.616702
0
28
32.392857
87
SushainRazdan/dlms-cosem
3,418,793,985,513
94f890363d973a6b459bd85abf24dbf72fda2b3b
d63ea8022aeb30cd3a4a5bfb5f915ad67b17318c
/dlms_cosem/clients/serial_hdlc.py
a0a4fafd97c7480b088db151444a5af3779e4ff5
[ "BSD-3-Clause" ]
permissive
https://github.com/SushainRazdan/dlms-cosem
75c63567ba2022fcc548b74c007ecc35f9fb9190
b169e4c5b38d48415101b7d01acee161dbdf29f8
refs/heads/master
2023-01-21T10:59:03.467407
2020-11-17T10:22:41
2020-11-17T10:22:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import Optional import logging import attr import serial from dlms_cosem.protocol.hdlc import ( address, state, connection, frames, exceptions as hdlc_exception, ) LOG = logging.getLogger(__name__) class ClientError(Exception): """General error in client""" @attr.s(auto_attrib...
UTF-8
Python
false
false
6,344
py
12
serial_hdlc.py
11
0.606715
0.605296
0
192
32.041667
92
DanielFord11/Final
13,572,096,686,326
9524774219ae22b13aa8a05ded4f893eef0d2735
62e8f6c6c8bf4c0ad78165184134b5a4a3782ddf
/Clout_Chaser/Reddit_Scraper.py
c168e8bd43c8355f6c62c5b531d233f7e54c5b7e
[]
no_license
https://github.com/DanielFord11/Final
a54c30cab8d3fd47bb6829b7760b0571dd23cde4
52d2dd8ff420aa187a67df9b57b384e20c6d5990
refs/heads/main
2023-03-17T17:50:56.135550
2021-03-15T20:28:11
2021-03-15T20:28:11
347,547,540
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#set to run every 14 min from psaw import PushshiftAPI import datetime as dt import pandas as pd import json import requests end_epoch = int(datetime.today().timestamp()) start_epoch = end_epoch - 840 api = PushshiftAPI() sub_list = ['wallstreetbets', 'WallstreetbetsELITE', 'Wallstreetbets'] stock_df = pd.read_csv(...
UTF-8
Python
false
false
1,936
py
7
Reddit_Scraper.py
5
0.534091
0.520661
0
60
31.266667
78
afcarl/qtick
11,811,160,077,213
c7227a0f41309df9621aafcb384373945a31721d
c22ec5162b4fce59e55a9e73a3104c6141c99fda
/scripts/state.py
f5a787d9b8e46182c7671e1d3c6ecf55e042ad5c
[]
no_license
https://github.com/afcarl/qtick
4c8b6417b77e082598a8a0143589d66e07eac967
495f8a783266fe5f322812089ba07923bf67f8bb
refs/heads/master
2020-09-03T21:54:27.520150
2017-05-13T07:35:06
2017-05-13T07:35:06
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from collections import deque class state(object): def __init__(self, shape, size): self.steps = deque() self.shape = shape self.size = size self.value = None for i in range(size): self.push_zeroes() def push_zeroes(self): self.p...
UTF-8
Python
false
false
916
py
7
state.py
6
0.586245
0.582969
0
40
21.9
57
pkumath/datastructure
9,947,144,275,257
62cbd76fc4c11ac8ce1a13ef20f1c631e6b42936
538c056be6dcca1e676cf23d427ecc12a0865e0e
/gui.py
796f14b06c69d13bb76f5269eab82122cd5503d5
[ "MIT" ]
permissive
https://github.com/pkumath/datastructure
41e7e13ccfd4a129b7e496ec1dda32e47ecfd5fc
0b440b59af73ed73c575df5cd1c67946aa510dba
refs/heads/master
2023-05-25T22:24:49.691928
2021-08-16T00:45:40
2021-08-16T00:45:40
252,172,905
4
1
MIT
false
2023-05-22T23:27:08
2020-04-01T12:46:20
2021-08-16T00:45:42
2023-05-22T23:27:07
46,909
2
1
1
Python
false
false
import tkinter as tk from tkinter import filedialog as tkfiledialog from tkinter import messagebox as tkmessagebox from pathlib import Path import sys import pyperclip from multiprocessing import Process import threading import webbrowser import os from appdirs import * import logging as log import inkscape_control f...
UTF-8
Python
false
false
10,441
py
29
gui.py
11
0.623726
0.609015
0
264
35.049242
222
jaideepmurkute/kaggle_ranzcr
2,388,001,852,866
2d421e86beff65026f6559c8c6209acad52652a4
196b5faf37e333d6429a1a2f1f31591c94f8c845
/custom_vit.py
44c8130d079263bc3aa1df37591361d7a5449096
[]
no_license
https://github.com/jaideepmurkute/kaggle_ranzcr
9f7ab0ddbf7dec78524206d97bd4fcfe1e4e73a6
0099d3767625327ce5985dfa1a071e4030082281
refs/heads/main
2023-02-18T23:14:31.567664
2021-01-19T18:43:33
2021-01-19T18:43:33
322,129,680
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import timm import torch.nn as nn import torch import numpy as np from vit_pytorch import ViT class CustomViT(nn.Module): def __init__(self, args): super(CustomViT, self).__init__() self.choice = args.choice self.num_classes = args.num_classes # number of output classes for model...
UTF-8
Python
false
false
1,547
py
5
custom_vit.py
4
0.586942
0.570136
0
43
34.023256
127
chrinide/MIM
9,740,985,831,101
d4a5101ded734415397009b3159cb51e66b5c918
fffdfbe01eda85efe8e1ecbf521778f9aa89b380
/mim/Fragment.py
4a0c6ad2f31830c6d6fbb022054333b82af3110a
[ "BSD-3-Clause" ]
permissive
https://github.com/chrinide/MIM
65fef80174cc101216cc2a7699e8e417068a677c
587ae79b0ec76c20af6235a68c85ed15f2cc7155
refs/heads/master
2023-08-02T05:56:10.776001
2021-10-05T17:46:23
2021-10-05T17:46:23
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import string import time import numpy as np #from .Pyscf import * #from ase import Atoms #from ase.calculators.vasp import Vasp #from ase.vibrations import Infrared from numpy import linalg as LA from mendeleev import element #import mim #from mim import runpie, Molecule, fragmentation, Fragment, Pyscf class Frag...
UTF-8
Python
false
false
23,314
py
58
Fragment.py
43
0.548555
0.521832
0
560
40.630357
152
organichacker/KOU_Python
9,577,777,116,310
2bd1d67111895ed1cc8188d0b2386c95f2cb6ef4
98cd4b641929e35cd3482b058e00ef7d0a151126
/Asal_Sayi.py
8b959741b68a4af1634abb8fb6835afa2131e797
[]
no_license
https://github.com/organichacker/KOU_Python
60abaa9cf5eec1d0509d9d7113f152ee60e30cfa
d4534d94ef7a32c2e684f5baaac2a7ff30dee96b
refs/heads/main
2023-04-25T09:01:51.586110
2021-05-22T14:20:48
2021-05-22T14:20:48
365,274,296
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
sayac = 0 liste = [] for i in range(5): a = int(input("Sayi:")) liste.append(a) for r in liste: for j in range(2,r): if(r%j == 0): sayac += 1 else: continue if r == 1: print("{} sayısı asal değildir.".format(r)) elif r > 1 and sayac == 0: ...
UTF-8
Python
false
false
433
py
9
Asal_Sayi.py
9
0.478774
0.459906
0
17
23.941176
56
ilofy/Py-Library-NFC
3,788,161,161,949
15e553de2a653c20fb13ea0277c9f3c5570476e9
dbbf2162e2300b3ededdf119c725cc7379059b73
/setup.py
2cf031514c445acb9eddad96cf8674c11e1e9fc6
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/ilofy/Py-Library-NFC
46075390e34f0e3ba6211832c191db94dfebf055
45c8a8740c88b8b59f007d398dfb543d8470eb48
refs/heads/master
2023-03-17T02:16:21.063571
2021-03-02T08:13:45
2021-03-02T08:13:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="yongshi-pynfc", version="0.4.3", author="Michael-Yongshi", author_email="4registration@outlook.com", description="A nfc library for python based solely on pyscard to communicate ...
UTF-8
Python
false
false
992
py
8
setup.py
6
0.650202
0.641129
0
29
33.241379
157
dibdidib/lcpy
4,569,845,207,664
cb04f9c09318b8bdba33dd0fde9ef019922e43b6
b36832512e653063f078e2fbadc820f8d0f9c012
/074_search_2D_matrix.py
9117e9a2f30a9643d5718f77daea7dcab50448ad
[]
no_license
https://github.com/dibdidib/lcpy
1bf570bda8b8b231f86551e9bf82867deaeeb926
4500ebd5bc885ae6a83c8b7bff71fbf24d747e21
refs/heads/master
2018-10-14T16:58:09.882172
2018-10-08T13:48:22
2018-10-08T13:48:22
103,874,585
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from common import print_matrix class Solution(object): def searchMatrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool """ if not matrix or not matrix[0]: return False m, n = len(matrix), len(matrix[0]) ...
UTF-8
Python
false
false
2,169
py
502
074_search_2D_matrix.py
499
0.333794
0.285846
0
90
23.088889
62
mardzien/python_backend_2021_04_17
18,777,597,042,159
26dce454c6370bbac8ace78415a7c674f3fea210
08b0ec28c96ca1604787a83e9b9fd3e97462939f
/Ćwiczenia/zjazd1/z_11.py
7f5d7e5609bb3c7d45eb802d5d8345434cfdc003
[]
no_license
https://github.com/mardzien/python_backend_2021_04_17
f078b2c16c314d3308ac0f66f1cf9510ce8e221e
2a911f1360dec7e3662b26e35255304bba48f9df
refs/heads/master
2023-04-20T17:02:18.063249
2021-05-13T22:03:23
2021-05-13T22:03:23
358,820,622
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def mean_std(*args): n = len(args) if n == 0: return None, None X = sum(args) / n var = sum((x - X) ** 2 for x in args) / n sigma = var ** 0.5 return X, sigma print(mean_std(4, 4, 4, 5, 5, 5))
UTF-8
Python
false
false
232
py
34
z_11.py
31
0.469828
0.426724
0
15
14.4
45
WilliamsTravis/Pasture-Rangeland-Forage
2,156,073,609,147
cacdaa6d7b19ec113b8176563d04708828dea082
a8995d89e9082c44fb273726fcc2cf98a6bd4556
/experiments/PRFUSDMmodel-online.py
5e882391070eddc2bcc38ee1bff5033d7a967827
[]
no_license
https://github.com/WilliamsTravis/Pasture-Rangeland-Forage
d2f118c5428c6d01e78871ae9b61770601a9fa1c
933f58c43c6f9730f67e53989eb2d1b8f932ecaf
refs/heads/master
2021-04-28T19:13:12.198823
2018-07-29T19:36:48
2018-07-29T19:36:48
121,832,004
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Created on Thu Mar 15 23:00:32 2018 Basis Risk of PRF payouts by conditional probability with the USDM The plan here is to take the weekly US Drought Monitor rasters and convert them into bi-monthly values. I think I may use the weekly mode to start. Then I will take the bi-monthly RMA and calculate the...
UTF-8
Python
false
false
34,020
py
34
PRFUSDMmodel-online.py
15
0.522634
0.500882
0
865
38.326012
312
gsedometov/Data-protection
13,477,607,398,463
094157e86397bc2b813b9bef405c9097e5196d5f
a05d5cdf99b43010a59db756ab8707eb8aa7b692
/zi21.py
0d1e73e41c464c82cda300de7f4c780f2b9a088f
[]
no_license
https://github.com/gsedometov/Data-protection
e00b747a495329db9593de107e6c514f648e1384
5f27835c3e99c7a57ad7833826b615cf334ab0c0
refs/heads/master
2020-12-24T12:05:53.849618
2016-12-05T07:34:02
2016-12-05T07:34:02
73,073,793
0
0
null
false
2016-11-07T14:03:26
2016-11-07T11:56:47
2016-11-07T12:04:46
2016-11-07T14:03:26
0
0
0
0
Python
null
null
from argparse import ArgumentParser from functools import partial from utils import add_modulo_256, sub_modulo_256, encode, decode def crypt(msg, bias, op): return bytes(map(lambda x: op(x, bias), msg)) def process_io(fun, args): return decode(fun(encode(args.m), args.k)) encrypt = lambda args: p...
UTF-8
Python
false
false
1,338
py
8
zi21.py
7
0.680328
0.670492
0
33
34.969697
106
Rony-21/mtkclient-1
13,477,607,389,839
f3c493e4ab9ceb6be96a9edc9e8ddd822b260f8b
6b75bd7642d8dfb46ddca5fec1cf93e8882d714a
/mtkclient/Library/daconfig.py
2cbcd1ea92ff468403cacec7b6de875fdea14774
[ "MIT" ]
permissive
https://github.com/Rony-21/mtkclient-1
3d228d94cfe347d982fd39e4bb0fa07446a29d85
e623dfccceaed99f0276a48cdd11a54d5ce1dc7e
refs/heads/main
2023-06-25T15:35:47.489129
2021-08-02T14:19:02
2021-08-02T14:19:02
391,983,916
1
0
MIT
true
2021-08-02T14:38:28
2021-08-02T14:38:27
2021-08-02T14:19:05
2021-08-02T14:19:02
18,709
0
0
0
null
false
false
#!/usr/bin/python3 # -*- coding: utf-8 -*- # (c) B.Kerler 2018-2021 MIT License import logging import os from struct import unpack from mtkclient.Library.utils import LogBase, read_object, logsetup from mtkclient.config.payloads import pathconfig class Storage: MTK_DA_HW_STORAGE_NOR = 0 MTK_DA_HW_STORAGE_NAND ...
UTF-8
Python
false
false
6,136
py
26
daconfig.py
21
0.517438
0.493155
0
201
29.527363
95
pixeloxx/batch-renderer-rhino-vray
13,958,643,714,095
10eb11737fa8bee72e012eb4037ff1081249f682
b884761c313de569cae1c75b5fbd0035d75621f5
/main.py
8e60cd80e6b75f94331c504b77655a1b8b1be829
[ "MIT" ]
permissive
https://github.com/pixeloxx/batch-renderer-rhino-vray
6b574c7810a29ce67475e7855a6ba4dd38e50782
efe5b45266b18474d7ba4e4fe93908b437b6a949
refs/heads/master
2022-11-28T22:10:31.635100
2020-07-31T11:54:32
2020-07-31T11:54:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" ========================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Title: Rhino Layer State Batch Render -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- ========================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-....
UTF-8
Python
false
false
3,797
py
2
main.py
1
0.472478
0.469845
0
126
29.134921
85
InterImm/marsapi
2,817,498,589,105
67e93de513c8f10dc7019dc8e52907338d5581fd
03f9a8c0632839c4e6a77b198015a1ee3b6c0215
/marsapi/api/restplus.py
5d9564781a52bbfa6326418c7e6a4bcecd834e38
[ "MIT" ]
permissive
https://github.com/InterImm/marsapi
e7b972ceb24586e28cbd913229d2907ac70536e4
f8f832360d9df00d1a6112a51f580817389797cb
refs/heads/master
2020-05-17T18:31:50.473136
2019-06-25T06:03:04
2019-06-25T06:03:04
183,886,497
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import traceback from flask_restplus import Api from marsapi import settings MARSAPI_CONFIG = { "version": "0.0.1", "title": "MarsAPI", "description": "Get Mars related information through API" } log = logging.getLogger(__name__) api = Api(**MARSAPI_CONFIG) @api.erro...
UTF-8
Python
false
false
508
py
10
restplus.py
7
0.661417
0.649606
0
24
20.166667
65
Carlos-Alfredo/M-todos-Num-ricos
7,541,962,603,043
800203a2cf4e3db5f5a0578b2dfd1bd7962eac34
4ba06bf2d3fd0aac9af0ca41b07801a276a9cc07
/metodos numericos python/Integral Numerica/Questao1.py
65b95bbdc7806ee04a5d4f0d5a96f72c6e6001a4
[]
no_license
https://github.com/Carlos-Alfredo/M-todos-Num-ricos
2e69040793ea953a47d79937ef497bc73f1e0f24
63f212faa2ba1712ad110413f6472aece4eaf51c
refs/heads/master
2022-12-01T21:19:35.765223
2020-08-12T11:53:30
2020-08-12T11:53:30
287,000,517
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import matplotlib.pyplot as plt def funcao(x): return 6 + 3*math.cos(x) valor_real=6*(math.pi/2)+3*(math.sin(math.pi/2)-math.sin(0)) a=0 b=math.pi/2 def trapezio(n,a,b): h=(b-a)/n integral=0 for i in range(0,n): integral=integral+(funcao(a+h*i)+funcao(a+h*(i+1)))*h/2 return integral def ...
UTF-8
Python
false
false
2,449
py
34
Questao1.py
31
0.6409
0.595501
0
93
24.311828
109
neonbevz/AdFontes
5,274,219,859,304
0e6ab8925a125e0d841c7a319af5fb3918eac822
6a3dff31e6a581b58c692f893b2975676e8003fc
/Python/graph_data.py
c6b51d9a9d1c0583172bba31fc390c748efbabdc
[]
no_license
https://github.com/neonbevz/AdFontes
8bb5511643ba126e3a5d1032d8f949895634d825
27e48d354b45874f625fe89b62d9cd24ba3b09cf
refs/heads/master
2021-08-31T21:08:29.598299
2017-12-22T23:11:20
2017-12-22T23:11:20
111,950,917
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import random def generate_graph(n_nodes, n_edges, min_len, max_len): nodes = ["N" + str(i + 1) for i in range(n_nodes - 1)] nodes = ["O"] + nodes edges = [] for j in range(n_edges): node = nodes[j % len(nodes)] node2 = random.choice(nodes) while node2 == node or [n...
UTF-8
Python
false
false
882
py
14
graph_data.py
10
0.592971
0.5839
0
29
29.413793
80