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
tumbleweed91/todo
15,015,205,706,656
517eb248a7af0ff53509d239db030acf39b67419
4b9b05025f79fcf99217474a02c8b0ffd9416f30
/general/models.py
03b492532684f8f09b23bb2c453740b18176f988
[]
no_license
https://github.com/tumbleweed91/todo
c890004accbe2831c3257fcad5d98b980f9a1b1f
d1776e73124d9d2e78ef85e606a0474644689017
refs/heads/master
2016-09-22T16:59:41.694810
2016-06-03T22:38:43
2016-06-03T22:38:43
60,289,192
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import unicode_literals from django.db import models class ToDoEntry(models.Model): text = models.CharField(max_length=25) done = models.BooleanField(default=False) created_at = models.DateTimeField(auto_now=True) def __unicode__(self): return self.text
UTF-8
Python
false
false
298
py
6
models.py
5
0.708054
0.701342
0
12
23.833333
52
IBM-Security/ibmsecurity
12,360,915,905,554
21423e7ef9105da8da44d74385cb0eb92fac7383
33b3d332deafae90bff495ae7caffc98f331089b
/ibmsecurity/isam/web/reverse_proxy/federation_configuration.py
42dcef5c77c2bba66effa7b0c705af2271f85ca2
[ "Apache-2.0" ]
permissive
https://github.com/IBM-Security/ibmsecurity
5698e8f52db6e04f759d67fc3ecdd976de233fa4
66f7673c5757273eb2afa4d1734e35efbd6f3fc0
refs/heads/master
2023-08-11T09:22:38.009427
2023-07-06T11:54:32
2023-07-06T11:54:32
85,416,486
50
96
Apache-2.0
false
2023-07-06T11:54:33
2017-03-18T16:40:53
2023-06-23T07:40:23
2023-07-06T11:54:32
1,161
44
75
32
Python
false
false
import logging import ibmsecurity.isam.fed.federations logger = logging.getLogger(__name__) def config(isamAppliance, instance_id, federation_id=None, federation_name=None, hostname='127.0.0.1', port='443', username='easuser', password='passw0rd', reuse_certs=False, reuse_acls=False, check_mode=False, for...
UTF-8
Python
false
false
4,206
py
303
federation_configuration.py
300
0.617689
0.613885
0
112
36.553571
134
jmslagle/nagplugins
7,524,782,731,945
4de818fb99237702cfd870e3c150b3315b65acbb
ed4988957c35a237423bb534ebced640fb9f4aeb
/check_pcp_node_status.py
98abe362b25e963332eb9a8c75d1bc0e2db0b411
[]
no_license
https://github.com/jmslagle/nagplugins
0688954eb0e7421a24750580af601cd1e68aaaaa
41c62858c2fc802c548f4a83529f5a38b994b6c1
refs/heads/master
2016-09-06T06:45:18.361687
2012-06-06T19:35:33
2012-06-06T19:35:33
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # check_pcp_node_status - check PGPool node status # # Python Nagios Template from # http://bsd.dischaos.com/2009/04/29/nagios-plugin-template-in-python/ import sys, getopt, subprocess nagios_codes = {'OK': 0, 'WARNING': 1, 'CRITICAL': 2, 'UNKNOWN': 3, 'DEPENDENT': 4} def usage(...
UTF-8
Python
false
false
3,676
py
2
check_pcp_node_status.py
2
0.569369
0.557671
0
142
24.887324
82
HermanSun/Python-Test
16,097,537,425,498
84ece52f0060d6faafcb7d27631744d16690caf0
ad287c40a1a6f967b9daafd701ade9f0ff19ba3b
/de.vogella.python.second/src/p3.py
9ed00bc92a6093cae877a94d14a7e4a1743293fd
[]
no_license
https://github.com/HermanSun/Python-Test
bfd856ce0c8880d11844d21a8b850629f5117381
3bb4cd88fc91a8f450eaf33c0fa76dfad85692c4
refs/heads/master
2020-03-26T12:46:30.139339
2018-08-15T22:18:33
2018-08-15T22:18:33
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on Sep 23, 2016 @author: HermanSun ''' def list_mul(list1, list2): rlist=[] a = len(list1)+len(list2)-1 #print a for i2 in range(len(list2)): for i in range(a): if i < len(rlist): continue i1=i-i2 if i1>=l...
UTF-8
Python
false
false
650
py
23
p3.py
21
0.410769
0.361538
0
32
18.375
46
AmishaAgrawal-code0103/api_project17
11,407,433,170,696
263788edfa5c169f49319369ac5f0b4272dbbb71
222977ed0ba9dcc4abb7901b536678addf424090
/Project17/demo.py
d1ae6228f9e3d88884cbf579b056b38e4b6ed1b2
[]
no_license
https://github.com/AmishaAgrawal-code0103/api_project17
bbe1fed11484acde8ed0faccbae6bf8034bb3efa
b1c97d97ff5b7bbb436f4eec5dc89e1e863b2127
refs/heads/master
2023-01-03T21:18:08.658688
2020-10-27T19:58:23
2020-10-27T19:58:23
307,813,188
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import json BASE_URL = 'http://127.0.0.1:8000/' END_POINT = 'api/' '''This function is used to select resource''' def get_resource(id = None): data = {} id = input('Enter the id:\t') if id is not None: data = {'id':id} response = requests.get(BASE_URL+END_POINT, data = json.dumps(data)) print...
UTF-8
Python
false
false
2,090
py
6
demo.py
6
0.686124
0.676555
0
75
26.84
127
masa8224/MeguHome
14,474,039,825,363
5017e926734f7bb7033b30c621a6a130685e8e4b
dab04bc6553c0284197ac93485501e9757d38223
/Python/test_speak.py
e72c3d97b9ad861dd1a51a3fd4114440b36c4ef0
[]
no_license
https://github.com/masa8224/MeguHome
012cf974761688a7b0f6a4ce733538f1bef8cd91
db329904c66fa6124353caaca837f2565f3aeb6e
refs/heads/master
2021-01-23T22:19:25.999927
2017-09-20T12:33:54
2017-09-20T12:33:54
102,926,235
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from SpeakPython.SpeakPythonRecognizer import SpeakPythonRecognizer; import time import udp #define callback function with 1 parameter (string) def execute(s): print s; if "on" in s: udp.main("on") if "off" in s: udp.main("off") #creates recognition instance #par...
UTF-8
Python
false
false
900
py
38
test_speak.py
31
0.703333
0.686667
0
32
27.125
91
tkukurin/Lab.SeparatingFactFromFiction
16,131,897,201,255
66a07195e50b4347b5e124cbdfd826c607ecf0d2
d5647b0086277fba5d159a8fe9adeca9e420eb00
/util/featureutil.py
b9084d3a16b6ff6b922bba3f6203a6379a9d4d06
[]
no_license
https://github.com/tkukurin/Lab.SeparatingFactFromFiction
e051d58e42a1b2b8b9f5b3a716b04a5621e970eb
c64fb8bfc84c7a4125f559ac745fcd18f149da51
refs/heads/master
2021-09-14T20:36:33.427485
2018-05-18T19:46:18
2018-05-18T19:46:18
125,760,742
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import defaultdict def dict_features(tokens, feature_set): ret = defaultdict(int) for t in tokens: if t in feature_set: ret[t] += 1 return ret from nltk.tokenize import RegexpTokenizer from util import data_process, functions from nltk.stem.porter import PorterStemmer...
UTF-8
Python
false
false
948
py
39
featureutil.py
22
0.644515
0.64135
0
32
28.59375
63
comedxd/Artificial_Intelligence
13,314,398,654,179
4f32d0b2293ff8535a870cd9730528ecf4874190
408d5ebecf0964eb2609ee787036f41b1966c708
/2_DoublyLinkedList.py
f38a1a7bf7083c8fb83dbf60dc2e2eb0b7112682
[]
no_license
https://github.com/comedxd/Artificial_Intelligence
414688e1ea25649c000e3abf40bf97ef5fce1ada
667c7fdf1c055b7130c6e289c643a5b4adf8f3af
refs/heads/main
2023-04-16T02:41:43.195075
2021-04-01T12:50:36
2021-04-01T12:50:36
351,805,360
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class LinkedListNode: def __init__(self,value,prevnode=None,nextnode=None): self.prevnode=prevnode self.value=value self.nextnode=nextnode def TraverseListForward(self): current_node = self while True: print(current_node.value, "-", end=" ") ...
UTF-8
Python
false
false
1,266
py
28
2_DoublyLinkedList.py
27
0.56872
0.554502
0
45
25.822222
57
Duchyna1/PYTHON
15,032,385,555,176
ceafe5a5a1224a1b8e4cb0627635c2b777283dbf
602cb983fb198464ca7aa1e716e7c92d60d30ab6
/projects/raspberrypi/push.py
c6b014d0dbb94838bc74a33ce3c219b4c3face2b
[]
no_license
https://github.com/Duchyna1/PYTHON
2b5c8375123bbc27ab484eb73c90b9b9c00081ea
6b189b6145e0ff32fc43285cbcf39e3479bb44c2
refs/heads/master
2022-11-14T13:49:58.398229
2020-06-22T15:01:28
2020-06-22T15:01:28
238,493,189
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os message = input("Commit message: ") os.system('git commit -am "{}"'.format(message)) os.system('git push')
UTF-8
Python
false
false
119
py
93
push.py
89
0.672269
0.672269
0
6
18.833333
48
andrirahmanto/DistanceTransformForWatershed
5,025,111,750,831
6acfcfc16caabc12965e052415d2bf5c8030afab
cebd4e4ce7d93a2267d67042b3690ccaa7759b80
/DistanceTranfrom_byCityBlock.py
2c5727818c160da7447b2eb9ce039729fba19302
[]
no_license
https://github.com/andrirahmanto/DistanceTransformForWatershed
84a7a59f38b3cc9e5be3d2f37e1941cb2aca2463
358c624a318dccda3f2279cf6e889d9c66d55673
refs/heads/master
2020-11-28T01:54:41.456760
2019-12-23T08:04:33
2019-12-23T08:04:33
229,673,274
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt def city_block(lis): matrix = np.array(lis) # simpan index pixel fore-ground atau pixel yang valunya non-zero kedalam saveindex saveindex = [] for i in range(len(matrix)): for j in range(len(matrix[i])): if matrix[i,j] ...
UTF-8
Python
false
false
1,189
py
2
DistanceTranfrom_byCityBlock.py
1
0.544996
0.510513
0
42
26.309524
87
paulberesuita/linearalgebra
979,252,577,440
ffac0148c3a7eea6909e6dbc6add30e76486c5ef
914a9eb9e8374414516a72ac80ba9529d551a061
/hello.py
cd481c0c101221e3394363e98232d6c5c587e0ff
[]
no_license
https://github.com/paulberesuita/linearalgebra
cd7af9f32b16e45b2d97d57940c4b35b0cf5607f
e09b6cc6d7649c6a70d5c4ddadca2040e5138ec7
refs/heads/master
2016-08-09T14:22:23.562694
2016-01-17T19:16:55
2016-01-17T19:16:55
49,831,388
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math class Vector(object): def __init__(self, coordinates): try: if not coordinates: raise ValueError self.coordinates = tuple(coordinates) self.dimension = len(coordinates) except ValueError: raise ValueError('The coordinates ...
UTF-8
Python
false
false
4,380
py
1
hello.py
1
0.619178
0.558904
0
137
30.978102
93
victorhcunha/ExerciciosPython
13,134,010,030,708
59128cf1d2bfdd41b7c62722f8c859c4ce4515ad
763d0b857dd8316a6a2c0af97be58cbc6c747987
/Programação 1/monitoria3.py
ad0a1b3873f3253ece2068e2b30d484adc4bbdf3
[]
no_license
https://github.com/victorhcunha/ExerciciosPython
af60b737b5c9c8cadd93f9f02de171653c46eda7
ba4f6b2324f62de85bb6d00b5263f6324e8ce667
refs/heads/master
2020-03-28T17:33:34.026276
2019-04-18T18:11:15
2019-04-18T18:11:15
148,801,374
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Inteiros entre eles n = int(input()) m = int(input()) if n < m: for i in range(n+1,m): print(i) elif m < n: for i in range(m+1,n): print(i) else: print ("Iguais")
UTF-8
Python
false
false
197
py
31
monitoria3.py
26
0.507614
0.497462
0
15
12.133333
26
tshrinivasan/tools-for-wiki
11,261,404,297,454
0a2a9a914177944d3e807a54c34c80d0bd26c2f8
f47655ddc23484f4804b0d654b23606c3bd53ac1
/pdf-upload-commons/pdf-djvu-uploader-commons.py
952f0b3091f44f92042094b375ac4a69399085eb
[]
no_license
https://github.com/tshrinivasan/tools-for-wiki
51cb8b7744340f1bf610660b43d8430ef9d15a1d
6fb975abd1a8edcb6d34461f0a650defd2e11ee6
refs/heads/master
2023-01-12T11:59:46.032571
2022-07-16T05:23:24
2022-07-16T05:23:24
48,401,880
6
11
null
false
2022-12-27T16:55:20
2015-12-22T00:44:53
2022-07-04T16:45:45
2022-12-27T16:55:19
478
6
9
25
Python
false
false
#!/usr/bin/python # -*- coding: utf-8 -*- import wikitools import poster import pyexiv2 import os import shutil import sys import time import datetime ts = time.time() timestamp = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d-%H-%M-%S') #wiki_url = "MediaWiki API url here" wiki_url = "https://commons.w...
UTF-8
Python
false
false
3,291
py
51
pdf-djvu-uploader-commons.py
21
0.630167
0.625118
0
142
21.274648
271
Wytamma/Rosalind
10,960,756,547,923
10c239bf600ba5aa7b2e7ccc6a01c4b9f16cb6ad
8cfb139967d5f60072469158e2ed696a93a6d087
/bioinformatics_stronghold/edit.py
6b1d5e122dfe4c8d2659c167d9b98d0db3588e88
[ "MIT" ]
permissive
https://github.com/Wytamma/Rosalind
53efb19692b9271fc605a7e0f07df7b49642df20
d3ffecc324f806df79c43bc9f89128b5d2a57dfb
refs/heads/master
2023-04-14T15:53:29.051286
2021-04-26T06:48:54
2021-04-26T06:48:54
264,836,033
0
0
MIT
false
2021-04-26T06:48:55
2020-05-18T05:27:38
2021-02-28T06:22:47
2021-04-26T06:48:55
177
0
0
0
Python
false
false
from pyoinformatics import read_fasta from pyoinformatics.align import matrix SAMPLE_DATASET = """>Rosalind_39 PLEASANTLY >Rosalind_11 MEANLY""" SAMPLE_OUTPUT = 5 def solution(dataset: list) -> str: fasta = read_fasta(lines=dataset) Seq1, Seq2 = fasta[0], fasta[1] w, h = len(Seq1), len(Seq2) # creat...
UTF-8
Python
false
false
1,777
py
38
edit.py
25
0.521666
0.466517
0
70
24.385714
70
AshwiniReddyChalla/TransferLearningForIntentClassification
8,366,596,344,202
6b9d8fc30c4fc2b04d6fd5fb139f85db6d702b5a
e0f6dfce0e7b0c92dbeabb26bb48a803c53ecdf9
/intent_classification/softmax_regression/train.py
b48db430d00a79e2e1982bbbf117d0ce88d1fd76
[]
no_license
https://github.com/AshwiniReddyChalla/TransferLearningForIntentClassification
4765212e44879f1ec4476569a0c619f65a273332
0752d099372a38732b151ac67ffad804d876044f
refs/heads/master
2021-09-03T07:31:48.493456
2018-01-07T03:12:35
2018-01-07T03:12:35
108,052,925
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import sys sys.path.append("../") import atis_data FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string("data_dir", '../../ATIS', "Data directory") tf.app.flags.DEFINE_integer("in_vocab_size", 10000, "max vocab Size.") tf.app.flags.DEFINE_string("max_in_seq_len", 20, "max in seq length") tf.a...
UTF-8
Python
false
false
1,787
py
10
train.py
10
0.705092
0.688304
0
45
38.733333
89
guocongyun/basic-ml-projects
18,399,639,915,957
84eeb9ba7313aeeb224f9cd8397c58dab3bfec0f
d702fd53c02117e8d41b8fddf8dcffb977305614
/project2_heoffding_inequality.py
1aa7a542cc07127ea93ebf3b7f421ba59b9a60f5
[]
no_license
https://github.com/guocongyun/basic-ml-projects
4c26ea96a388078baaf10683f5eb787a591cb0df
259f6c224b75594591083eb3c8a0af939cd47f1d
refs/heads/master
2023-04-22T02:16:21.019808
2021-05-07T08:37:55
2021-05-07T08:37:55
304,696,359
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np class coin: def __init__(self): self.head = 0 self.tail = 0 def flip(self): if (np.random.randint(0,2,dtype=int) == 1): self.head += 1 # randint lower bound is inclusive, higher bound is exclusive else: self.tail += 1 def simulation(): coin_li...
UTF-8
Python
false
false
992
py
16
project2_heoffding_inequality.py
15
0.52621
0.493952
0
43
22.093023
69
threkk/domino
19,241,453,511,900
7cec0f0961ace3ad0facb3e0acca66751965c541
92978a00f2f767000cabaa092396e9192022f9b6
/main.py
42c1ceae59ba9d034bd5f1df3f4b1b77be918e9d
[]
no_license
https://github.com/threkk/domino
8d18cced052859d4c8e71f47eed566503a600576
9c265307b8fe90d208ddf467b83aec26962b19cf
refs/heads/master
2021-04-06T10:54:15.997363
2018-03-13T01:09:09
2018-03-13T01:09:09
124,470,231
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse from domino.game import Game from domino.player import Player def start_game(player_names): """ Starts a game with the given player names. It creates the players, draws 7 tiles for each and starts the game. :param player_names: Name of the players to play the game. """ players...
UTF-8
Python
false
false
1,473
py
12
main.py
11
0.671419
0.668703
0
43
33.255814
79
iangelmx/big-data-visualization
19,310,173,006,932
610d852cba6cdb2448b0e82b3cae85f9d9f7e32a
a144f1b97b2a9d1ffdd5ea1f4eb52dd79986987b
/extracting_fb_insights/extracting_data_fb_simple.py
ab7913f0a3cdecc7fd24354c830e50763e4fcc70
[ "MIT" ]
permissive
https://github.com/iangelmx/big-data-visualization
6bd08cf7c166438b618a3de6af2ac8531bbf78bb
75d6cacc8dd33ec372af78f719e6cc31fe30d97d
refs/heads/master
2022-11-21T08:19:05.696340
2020-07-25T02:31:02
2020-07-25T02:31:02
273,782,171
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Script to get some analytics from a FB page and save to CSV/XLSX This script was developed according the Visualization Big data's course in FCS. This script helps people of marketing to get more information about the activity in their social media page in Facebook in a free way. To make it run you need to make an ...
UTF-8
Python
false
false
2,736
py
21
extracting_data_fb_simple.py
17
0.665934
0.650183
0
108
24.277778
132
frclasso/aulas_particulares_python
3,496,103,386,223
5368d1372902e0ceec3f98691d377f1eb7054d18
d02b09fb83041dbe10d34a74c152e87f08e451dc
/jessica_campos/aula3/script3.py
0857a1648f36cb80a0d0145ed88d93a1c419ebf7
[]
no_license
https://github.com/frclasso/aulas_particulares_python
d9d6da8127a0d02f117373572438266c67fe79fe
f877cd9b9ce2732b0cbb72922d3079e1b0d944b0
refs/heads/main
2023-07-29T18:15:02.452427
2021-09-17T22:20:01
2021-09-17T22:20:01
395,457,184
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# comparacao # retorna True ou False valor_1 = 100 valor_2 = 200 # igualdade print(valor_1 == valor_2) # desigualdade print(valor_1 != valor_2) # maior que print(valor_1 > valor_2) # menor que print(valor_1 < valor_2) # maior ou igual print(valor_2 >= 200.0) # menor ou igual print(valor_1 <= 100.01)
UTF-8
Python
false
false
309
py
55
script3.py
45
0.666667
0.579288
0
23
12.434783
26
Vitkof/MathSite_Django
19,009,525,265,184
48a7e49ab0c153439e83bda2b44d47383df80853
4960df7d4a13528ba15f439b05fad9e5adec872b
/ctmath/apps/univers/models.py
023d0ab65a46625167fd46bf01551011aae37768
[]
no_license
https://github.com/Vitkof/MathSite_Django
1cc5327223949742bb6fd570302ab0d95d0de68c
5b149b7e417f80592b2199dcae8927f5c7096879
refs/heads/main
2023-02-04T17:40:31.661101
2020-12-27T22:00:36
2020-12-27T22:00:36
324,852,072
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models class UniverModel(models.Model): title = models.CharField(max_length=32) location = models.CharField(max_length=32) overall = models.FloatField() teaching = models.FloatField() research = models.FloatField() citations = models.FloatField() industry_inco...
UTF-8
Python
false
false
670
py
20
models.py
12
0.691045
0.683582
0
18
35.222222
59
nguyenductinh1998py/PythonLab
13,073,880,472,778
318d17c3f3db96445b570bb4fc2ccb889cb0a8d3
1c6a5eea04f1eddb584971d91679e0cb8ad93c16
/Python_Lab_03/02.py
daf0fedd35f64f246b95d08749bcd3acbe50902d
[]
no_license
https://github.com/nguyenductinh1998py/PythonLab
1dbccd9ca4f77f70acd6db2c86af3463270a91a8
b9cf09150a7065d698e03189b8078c1c1f6e32f0
refs/heads/main
2023-02-08T09:28:03.435498
2021-01-04T14:09:35
2021-01-04T14:09:35
320,751,716
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#2d Lists xs = [3, 1, 2] print(xs, xs[2]) print(xs[-1]) xs[2] = 'foo' print(xs) xs.append('bar') print(xs) x = xs.pop() print(x, xs) nums = list(range(5)) print(nums) print(nums[2:4]) print(nums[2:]) print(nums[:2]) print(nums[:]) print(nums[:-1]) nums[2:4] = [8, 9] print(nums[2:4]) animals = ['cat', 'dog', 'monkey'] ...
UTF-8
Python
false
false
1,608
py
73
02.py
21
0.599502
0.567786
0
85
17.929412
60
dungeonmaster51/commcare-hq
19,499,151,538,612
19d6598a935d3027daddeadccc883652c7fd6b13
81579ecd0678d652bbb57ff97529631fcfb74b12
/corehq/apps/case_search/exceptions.py
8c3f1551ca85967a52652a45fefb556d9aaad0f0
[ "BSD-3-Clause" ]
permissive
https://github.com/dungeonmaster51/commcare-hq
64fece73671b03c1bca48cb9d1a58764d92796ea
1c70ce416564efa496fb4ef6e9130c188aea0f40
refs/heads/master
2022-12-03T21:50:26.035495
2020-08-11T07:34:59
2020-08-11T07:34:59
279,546,551
1
0
BSD-3-Clause
true
2020-07-31T06:13:03
2020-07-14T09:51:32
2020-07-30T16:37:59
2020-07-31T06:03:08
562,669
1
0
0
Python
false
false
class CaseSearchException(Exception): pass class CaseSearchNotEnabledException(CaseSearchException): pass
UTF-8
Python
false
false
116
py
2,296
exceptions.py
1,577
0.810345
0.810345
0
6
18.333333
57
gregVader/french-accidents-nosql
3,728,031,630,177
517fa3e3e758216be552c96b23e3531ece392c8f
e238f616a3c280c2e7f004c0448104ea3ed12673
/loaders/characteristicsLoader.py
652465bac0c753c08ba6194ce7d09f0210ca816e
[]
no_license
https://github.com/gregVader/french-accidents-nosql
c5302fbda4064db4d65f5e1f97ac862f6e9ad574
78cc78fb595fc7f819480f20c05fa2f49893d994
refs/heads/main
2023-06-06T13:15:43.153509
2021-06-13T22:26:38
2021-06-13T22:26:38
371,169,408
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import threading import pandas as pd import os.path import json from json import JSONDecoder from json import JSONEncoder from datetime import datetime csvCharacteristics = "../dataset/characteristics.csv" csvHolidays = "../dataset/holidays.csv" csvPlaces = "../dataset/places.csv" csvInsee = "../dataset/code-postal-c...
UTF-8
Python
false
false
8,063
py
18
characteristicsLoader.py
15
0.633759
0.621605
0
265
29.426415
152
Shmuma/pytorch_tests
4,741,643,933,152
a7eab207a9f84dd443e71b7bd85be44b8f3ddb46
d18f2c659ab6290bca630aebf7da6e32b13fff17
/char_rnn_classification/char_rnn/data.py
e76ad6bb529bbaf66b1daf89d1e77a4549f516da
[]
no_license
https://github.com/Shmuma/pytorch_tests
a30b47ef03e789261ad7063d1a6262295ab8369e
cded13e89559ad0e0b41ad8aad150469ac962dee
refs/heads/master
2022-12-24T00:40:27.564634
2017-10-12T06:22:39
2017-10-12T06:22:39
96,669,907
0
0
null
false
2022-12-08T00:00:35
2017-07-09T08:04:52
2017-07-29T14:57:41
2022-12-08T00:00:35
10,804
0
0
6
Python
false
false
import glob import random import os.path import unicodedata import string ALL_ASCII_LETTERS = string.ascii_letters + " .,;'" def all_filenames(data_dir="data"): return glob.glob(os.path.join(data_dir, "*.txt")) def read_file(file_path): """ Read data from file :param file_path: :return: ...
UTF-8
Python
false
false
2,316
py
46
data.py
29
0.645078
0.638601
0
85
26.247059
105
Mostofa-Najmus-Sakib/Applied-Algorithm
8,220,567,404,626
49f99de6eb6adde3c196309377effc9845452c21
f8e8e365c9cf58b61d72655bc2340baeaed5baff
/Leetcode/Python Solutions/Binary Trees/MaximumAverageSubtree.py
da1412cd36971bbda362196b84de9892df1bf4d8
[ "MIT" ]
permissive
https://github.com/Mostofa-Najmus-Sakib/Applied-Algorithm
39a69f6b9ed113efe4a420d19cad79e0aa317637
bc656fd655617407856e0ce45b68585fa81c5035
refs/heads/master
2023-08-31T19:54:34.242559
2021-11-05T03:43:35
2021-11-05T03:43:35
412,263,430
0
0
MIT
true
2021-09-30T23:45:29
2021-09-30T23:45:25
2021-05-16T07:10:36
2021-05-16T07:10:34
840
0
0
0
null
false
false
""" LeetCode Problem: 1120. Maximum Average Subtree Link: https://leetcode.com/problems/maximum-average-subtree/ Language: Python Written by: Mostofa Adib Shakib Time Compplexity: O(n) Space Complexity: O(n) """ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=No...
UTF-8
Python
false
false
1,413
py
503
MaximumAverageSubtree.py
500
0.610757
0.599434
0
40
34.35
87
shevchenkodim/django2_1
3,410,204,071,404
8df20cdfe614925a4b867d940f6935d282ec7d81
ede51ecf2641440b04b264d2be02b7e651fa5c68
/vikupauto/urls.py
b9faa89213febbc091ae23faa5ddd3d1ae6627e3
[]
no_license
https://github.com/shevchenkodim/django2_1
8764308b2f475a2fe7ee7483d1e92b58f3141fac
5576af559e41aaa3f1a0b58365d8efc46f47db26
refs/heads/master
2020-09-21T06:26:57.711599
2019-11-30T21:37:50
2019-11-30T21:37:50
224,709,388
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from . import views from service.views import ServiceModel, ServiceModelView urlpatterns = [ path('admin/', admin.site.urls), path('feedback/', include('feedback.ur...
UTF-8
Python
false
false
552
py
3
urls.py
3
0.751812
0.751812
0
16
33.5
82
addy999/HemDetect
10,883,447,151,641
f06f7afc42667fd4d446396e646388a0bbf06674
d5f5bf59d3e03cecb2c826a774faae7c8e9f85e3
/Training/Scripts/tl.py
ed282e9f0f1effc9526a2cf7cf66a9a2cb78f326
[]
no_license
https://github.com/addy999/HemDetect
84fb2a7e0bd41c9e9485a0a0c4021a3c0ccfe034
77bbe2758fb8c02ae2dfa13619d3659357a06724
refs/heads/master
2021-06-28T13:42:41.749945
2021-01-29T18:52:57
2021-01-29T18:52:57
212,179,860
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch.nn as nn import torchvision.models import torch.nn.functional as F import torch.optim as optim import torchvision import torchvision.transforms as transforms from torchvision import datasets import numpy as np import matplotlib.pyplot as plt import time import torch import gc import os # alexnet_model_1 ...
UTF-8
Python
false
false
983
py
112
tl.py
24
0.771109
0.734486
0
34
27.911765
85
nikkygleeson/secrets
9,156,870,314,818
5c1930467ba646556bd05ae84898ddaca079f08c
002956c05f53e5762c86f2f9e4710e8b1774a98d
/src/secrets/secrets.py
aa8abd00f80278aa58995745920e819889060be9
[ "MIT" ]
permissive
https://github.com/nikkygleeson/secrets
956af2123f60a659c25b3a3c4733605ab904ad05
c70623a6bf724f286cfd2401bb79e7ae5250f150
refs/heads/master
2023-04-29T03:31:16.619543
2021-05-25T02:38:21
2021-05-25T02:38:21
361,356,661
0
1
null
false
2021-05-05T02:46:05
2021-04-25T07:08:50
2021-04-25T07:15:32
2021-05-05T02:46:04
8
0
1
0
null
false
false
def hex_cipher_encryptor(message: str) -> str: """Encrypts a given message using a Hex Cipher (converts characters to their hexadecimal equivalents). Args: message (str): Message to be encrypted. Returns: encrypted_message (str): Encrypted message. """ encrypted_message = "".join([...
UTF-8
Python
false
false
6,076
py
5
secrets.py
4
0.637591
0.633476
0
197
29.84264
116
sw-Jack/Python
16,561,393,922,169
764bd8023c1d51394841cabf1422a4c32555194d
2fae7d7ba6b2a4590fd4d90b1a491e919ec744de
/myPy/day05/day05-exam04-이분탐색with알고리즘&재귀호출.py
1ff0a0ea2d2b513b60e154044a4f63f0e09f8cbc
[]
no_license
https://github.com/sw-Jack/Python
0952ded606f79c07c77a021b075e09b1e95caca4
c139301bf3a98f9b5289807ca8141febb947603b
refs/heads/master
2023-02-02T11:06:18.264799
2020-12-21T13:11:32
2020-12-21T13:11:32
290,997,124
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 이분 탐색 # 자료가 이미 정렬되어 있다는 전제. # 자료가 있으면 위치값을 알려주고 없으면 -1 # 알고리즘 # (1) 중간 위치를 찾는다 # (2) 찾는 값과 중간 위치의 값을 비교한다. # (3) 같으면 해당 값의 위치를 반환한다 # (4) 찾는 값이 중간 값보다 크다면 중간 값 기준 오른쪽을 대상으로 다시 검색한다. # (5) 찿는 값이 중간 값보다 작다면 중간 값 기준 왼쪽을 대상으로 다시 검색한다. # 코드 def binary_search(lst,x) : start = 0 end = len(lst) - 1 while sta...
UTF-8
Python
false
false
2,011
py
70
day05-exam04-이분탐색with알고리즘&재귀호출.py
70
0.551844
0.507307
0
65
20.538462
59
hellais/ooni-probe
14,482,629,722,813
2786191e82d8d3071cde9a36d997e530868041b5
b156f49432b11047f5aa390dc93de1a9920ebf30
/ooni/director.py
21ac9fc252de51b52f1d8fe3aca6587d61ce72fd
[ "BSD-2-Clause-Views" ]
permissive
https://github.com/hellais/ooni-probe
8b2fad5aa7eb1eda6a089f75164ca18ec80e7535
2764cc2bca9fc60f978b3361ab2e8de372bc5af6
refs/heads/master
2021-01-16T17:42:56.589164
2014-05-27T22:10:46
2014-05-27T22:10:46
3,614,533
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from ooni.managers import ReportEntryManager, MeasurementManager from ooni.reporter import Report from ooni.utils import log, pushFilenameStack from ooni.utils.net import randomFreePort from ooni.nettest import NetTest, getNetTestInformation from ooni.settings import config from ooni import errors from txto...
UTF-8
Python
false
false
13,480
py
103
director.py
73
0.555341
0.552893
0
373
35.13941
96
juanmacugat/google-ads-python
17,497,696,782,872
a30f9450589891dbc20625023f374c3d090a90b3
555b9f764d9bca5232360979460bc35c2f5ad424
/examples/billing/get_billing_setup.py
34f1109f8fe2deb1285c7be7ff9f6402d1762502
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
https://github.com/juanmacugat/google-ads-python
b50256163782bc0223bcd8b29f789d74f4cfad05
0fc8a7dbf31d9e8e2a4364df93bec5f6b7edd50a
refs/heads/master
2021-02-18T17:00:22.067673
2020-03-05T16:13:57
2020-03-05T16:13:57
245,215,877
1
0
Apache-2.0
true
2020-03-05T16:39:34
2020-03-05T16:39:33
2020-03-05T16:14:00
2020-03-05T16:13:58
3,865
0
0
0
null
false
false
#!/usr/bin/env python # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
UTF-8
Python
false
false
3,966
py
379
get_billing_setup.py
375
0.645487
0.641704
0
89
43.561798
80
hess8/pythonscripts
6,597,069,816,546
62bd819f6c05c400e9283977f4cfe30738e1b3fa
e6cc536dbb43a4dc0da4c21f76b5b61058f5e53e
/cluster_expansion/ceflashscripts/submitVasp.py
49049ee5a0b4532ed0472ff1738a7728d6ec93a4
[]
no_license
https://github.com/hess8/pythonscripts
2f8df626f0c12baf205845ba41654b6cd59280b2
a048b60c96254576f32ec67164cc8ed64cca2486
refs/heads/master
2021-01-18T20:25:11.141331
2019-03-29T03:27:48
2019-03-29T03:27:48
6,807,456
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import time, os, subprocess '''For each dir in jobs2run: copies POSCAR.orig to POSCAR, replaces kpoints file with correct mesh for POSCAR, reads a jobfiles from the maindir,writes the structure number to the job name, and submits a vasp job ''' #!/usr/bin/python ''' tests. ''' import sys,os impor...
UTF-8
Python
false
false
1,822
py
181
submitVasp.py
160
0.569704
0.553787
0
48
36.895833
120
Lusenaka/SENDIT_COURIER
7,533,372,657,663
119a72541a0e41d958600b3f4953f1784531ce06
df1735507951f72f147a82b882996dd59d90da30
/app/api/v1/models.py
9ad9ada176a66aafee2cb01cfb77059458d07d05
[ "MIT" ]
permissive
https://github.com/Lusenaka/SENDIT_COURIER
bab6f63a14635f8fd227400d2c817ab8f9ec9238
b87fcd6917751bacd82fbf103bfbf2f7b578601a
refs/heads/ft-correctionsbranch-161962988
2022-12-11T04:37:20.608098
2018-11-15T14:07:52
2018-11-15T14:07:52
157,015,049
0
0
MIT
false
2022-05-25T01:53:56
2018-11-10T19:39:00
2018-11-15T14:08:27
2022-05-25T01:53:56
22
0
0
9
Python
false
false
from flask import make_response, jsonify, request from flask_restful import reqparse users = [ { "user_id" : 23, "username" : "Alvin", "email": "Alvin@gmail.com", "default_location":"Kiambu", "password":1234 }, { "user_id" : 45, "username" : "Charity...
UTF-8
Python
false
false
4,863
py
14
models.py
11
0.549455
0.539379
0
157
29.974522
109
blacktyger/epicentral
2,276,332,683,365
d226c5de5b94cd12d21d6ec07a1599fb847bd7c6
ddfb5fb11498ed28c2e7bac4a32e7d965df3c842
/app/db.py
129ba435a041f0de16c3938d3da590564e2bfef0
[]
no_license
https://github.com/blacktyger/epicentral
955e62d91132bfac197ce3fecbf9e76bd7aee99e
498e9168b6d6be5bf18b5b8d4f9b8d7dfe052e5f
refs/heads/master
2023-02-20T08:30:04.323734
2021-01-25T13:35:16
2021-01-25T13:35:16
332,756,580
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from decimal import InvalidOperation, Decimal from live_trader import citex_api as citex import requests from vitex_api_pkg import VitexRestApi def d(value, places=8): try: return round(Decimal(value), places) except (InvalidOperation, ValueError): if value == '' or ' ' or []: ...
UTF-8
Python
false
false
3,551
py
7
db.py
4
0.484934
0.482681
0
99
34.868687
113
Anjaan-g/learning-rest-framework
5,841,155,569,744
cfd49e68eb1433480373da71e398286612df3c86
c9cf349d854028b7f34b546dea3b3ffef8813713
/api_eg/api/urls.py
554dd68fe127592976d611b997eb494bb8c68dc4
[]
no_license
https://github.com/Anjaan-g/learning-rest-framework
da4b7a5ae731513cd42d08c763618917ddbaf8ca
b2c619d0ab246c7afec9d29e695ad889e3d64e82
refs/heads/master
2020-05-26T21:58:21.729213
2019-05-25T08:48:21
2019-05-25T08:48:21
188,388,594
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path, include from . import views from rest_framework import routers router = routers.DefaultRouter() router.register('colleges', views.CollegeView) router.register('jobs', views.JobView) router.register('addresses', views.AddressView) urlpatterns = [ path('', include(router.urls)), ...
UTF-8
Python
false
false
322
py
6
urls.py
6
0.748447
0.748447
0
14
22
47
vinaynv3/AlgorithmsDatastructures
5,291,399,717,580
40a98cfb140981a547428beaca84348fb9a3a23c
903981282e102869d8ec8fce99b2d9f176c2e922
/PgEx_1/circuit_connection.py
700ed01a37f54b3b44cfbafb09a1637c63c77a38
[]
no_license
https://github.com/vinaynv3/AlgorithmsDatastructures
98faeb559144b6e6221efc64bdf06749a75bd1dc
b6a7d6db8230c86c5fddec593ba61989eadc72bb
refs/heads/master
2020-05-31T17:55:33.499985
2020-05-10T21:19:51
2020-05-10T21:19:51
190,420,671
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Connector class contains logic gate circuit design. ''' #from logic_gates import Binary, Unary class Connector: #Constructor def __init__(self, fromGate,toGate): self.fromGate = fromGate self.toGate = toGate def execute(self): result = self.fromGate.getOutput() self.to...
UTF-8
Python
false
false
416
py
14
circuit_connection.py
12
0.653846
0.653846
0
17
23.470588
51
MUKHERJEE3112/Letsupgrade-Python_b7
4,793,183,551,467
8a6957214fe8d2404ff9ab1d4ca0cb167c872689
beb4ea00895b368f7f77565aac59c5846f58b6cd
/DAY4.py
2d89b8aa37bcd307ed4a52536a8d3c003f334c6a
[ "Apache-2.0" ]
permissive
https://github.com/MUKHERJEE3112/Letsupgrade-Python_b7
93db84a5722e62702bafde6dd0dbf9c2fa9b26e3
9a60cada5fdda813d53956135acb975f19950191
refs/heads/master
2022-12-08T18:19:06.991025
2020-09-06T14:20:12
2020-09-06T14:20:12
293,288,262
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
'''WAP TO FIND THE ARMSTRONG NUMBER FROM 1042000 TO 702648265 AND EXIT THE LOOP AS SOON AS YOU ENCOUNTER THE FIRST ARMSTRONG NUMBER''' #THE NUMBERS GIVEN BY THE USER IS STORED IN start AND end start = int(input('ENTER THE STARTING VALUE :')) end = int(input('ENTER THE ENDING VALUE :')) for num in range(start,end...
UTF-8
Python
false
false
543
py
4
DAY4.py
3
0.615101
0.572744
0
16
31.5625
72
Angelpacman/Dataschool
18,339,510,354,916
0dd6947b3c112a9f2c2285e1a5479de8afca9bdf
85668736ab6034ced0afca7ce7320e403e8c688f
/scripts/19 Loc, iLoc, iax.py
a5a1fa2a19129eee8f2a071b17da822928002796
[]
no_license
https://github.com/Angelpacman/Dataschool
e36b667e6677c767f96166f27a273762d91d1470
c30221337d7a8654b4e76a808ff5957308255cfb
refs/heads/master
2022-11-10T03:35:12.203224
2020-06-26T04:20:14
2020-06-26T04:20:14
268,156,678
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # # How do i select multiple rows and columns? # - Basicamente loc iloc y iax son metodos para seleccionar filas y columnas # In[1]: import pandas as pd # In[2]: #ufo = pd.read_csv('http://bit.ly/uforeports') ufo = pd.read_csv('uforeports.csv') ufo # ## Loc # - Loc sirv...
UTF-8
Python
false
false
3,344
py
27
19 Loc, iLoc, iax.py
23
0.691709
0.669859
0
173
18.289017
241
LXL1314/d2l
18,640,158,073,443
1fd2c4ea64984d9ab16b85cc4ecf0b23dc2f69f6
7805346e05b101a02a1c2df7927577fc909a5ce6
/chapter3_deep-learning-basics/softmax_fashion_mnist.py
ab2c642421f786973abb58de219757497e5f331b
[]
no_license
https://github.com/LXL1314/d2l
9a9819a576a79fb562518a3564ded36771addeaf
cfdec5c771cd655571ebf7a143407b0155fe9cc0
refs/heads/master
2022-10-18T18:08:13.971814
2019-08-04T02:59:42
2019-08-04T02:59:42
200,372,631
0
1
null
false
2022-10-09T00:35:06
2019-08-03T12:23:50
2019-08-04T03:03:23
2022-10-09T00:35:06
375,827
0
1
1
Jupyter Notebook
false
false
from mxnet import nd import fashion_mnist as fm batch_size = 256 train_iter, test_iter = fm.load_data_fashion_mnist(batch_size) num_inputs = 784 num_outputs = 10 W = nd.random.normal(scale=0.01, shape=(num_inputs, num_outputs)) b = nd.zeros(num_outputs) W.attach_grad() b.attach_grad() def softmax(X): X_exp = X...
UTF-8
Python
false
false
1,043
py
40
softmax_fashion_mnist.py
38
0.670182
0.644295
0
38
26.447368
91
deweerdt/condure
13,889,924,241,740
51aebbc1030545f6f22350386a49095124f72892
ff5c1d83496e34f8dce74d439e41798c25177c1b
/examples/streamhandler.py
c5a278fb328374d93dc9fe32c0793842a4826466
[ "Apache-2.0" ]
permissive
https://github.com/deweerdt/condure
abea0c88cbb71c37cf8384a9cc03e3ae67d8da4f
7f2f9e3987781ee31e3130f918d5bb0ad7769df4
refs/heads/master
2023-08-26T01:36:01.314990
2021-10-25T05:33:40
2021-10-25T05:33:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# this handler responds to every request with "hello world" import os import tnetstring import zmq instance_id = 'streamhandler.{}'.format(os.getpid()).encode('utf-8') ctx = zmq.Context() in_sock = ctx.socket(zmq.PULL) in_sock.connect('ipc://client-out') in_stream_sock = ctx.socket(zmq.ROUTER) in_stream_sock.identit...
UTF-8
Python
false
false
2,627
py
32
streamhandler.py
28
0.546631
0.538257
0
90
28.188889
68
jturibe/spicy_chorizo
11,458,972,766,111
10682108476a38523412eb658337d1969793db24
47b906d5ac12d831418c0fb5d8d1ea864df34621
/Server/server.py
078de4716018ac3c703d9edaaa4a4064a3d1fa38
[]
no_license
https://github.com/jturibe/spicy_chorizo
f150f6b2e6cb41f28468e76457cd8152ad1caaaa
670c71a0be4a45302572ff1ad9022bbb988ff8bd
refs/heads/master
2022-04-03T16:58:08.078900
2020-02-13T13:09:49
2020-02-13T13:09:49
237,996,573
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import paho.mqtt.client as mqtt import ssl import json from firebase import firebase import datetime import statistics import numpy as np import firebase_admin from firebase_admin import db from firebase_admin import credentials from firebase_admin import messaging import matplotlib.pyplot as plt import seaborn import...
UTF-8
Python
false
false
38,324
py
12
server.py
6
0.586278
0.564408
0
934
40.025696
169
linhduongtuan/Kaggle-2020-Alaska2
3,633,542,352,357
600daa6944ca3d0538179c80f7b2c3ed97923e1f
c8026a5a31befa11c25e6d00d719af349635a4c5
/submissions/make_submissions_lgbm_gs.py
ade6cc9145643743c28e22c207aaaab9e8b8ee74
[ "MIT" ]
permissive
https://github.com/linhduongtuan/Kaggle-2020-Alaska2
97cb890b8328d0e99d0a9225364f9b6af4f6a70c
3c1f5e8e564c9f04423beef69244fc74168f88ca
refs/heads/master
2023-01-11T09:10:15.601495
2020-08-09T13:23:17
2020-08-09T13:23:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os # For reading, visualizing, and preprocessing data import numpy as np import pandas as pd import torch import torch.nn.functional as F from pytorch_toolbelt.utils import fs from sklearn.metrics import make_scorer from sklearn.model_selection import GroupKFold, RandomizedSearchCV, GridSearchCV from sklearn.pr...
UTF-8
Python
false
false
4,657
py
218
make_submissions_lgbm_gs.py
161
0.649775
0.610049
0
132
34.280303
118
reparadocs/ExtraLettuce
9,431,748,194,933
3ea5d7e57bbbac18f09cdac3e2a4b921e7244ec7
fe19fe1495b93b9f11abe1b41d088c99fae28895
/accounts/migrations/0005_auto_20160117_0512.py
d61c502eec683c1049c3e48ddd19db828aac2d4a
[]
no_license
https://github.com/reparadocs/ExtraLettuce
c464e5d2c100c4e2ba6a3e97e17d52f89a5b94f1
5e9f9f95d64e05b494f019ad6f8c4455ada51abe
refs/heads/master
2021-01-09T06:40:30.460078
2016-01-17T21:56:11
2016-01-17T21:56:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_account_token'), ] operations = [ migrations.CreateModel( name...
UTF-8
Python
false
false
1,094
py
10
0005_auto_20160117_0512.py
6
0.542962
0.531993
0
38
27.789474
114
alireza-ansaripour/quizyar
10,256,381,933,119
01eee450f4f3f0b60b30dea310ad8f5526b79ca6
9f604e9700f906f95d180055709e123f2edfb3de
/Quizyar/quiz/views.py
b336a39ba2091ddf5e5c0a4a74f2ac5c209dd3c9
[]
no_license
https://github.com/alireza-ansaripour/quizyar
496c4ecc09e895791df6c1b34d5a57439c202132
8eab7d74c79825908de2ceb76e8627fb3889d361
refs/heads/master
2016-09-06T05:27:42.591868
2015-09-17T07:14:54
2015-09-17T07:14:54
42,368,950
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from django.http import HttpResponse import datetime from django.shortcuts import render, redirect from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.views import APIView from Quizyar.models import Teacher, Tag, Student from...
UTF-8
Python
false
false
8,887
py
45
views.py
17
0.544166
0.54169
0
231
37.471861
156
qualorm/adventofcode
16,157,666,987,974
d0692245bd779e906c8a540e8d8a084dfddaa251
561fec987d13956f97579136fb18af62dd05f96b
/2020/18/18_1.py
b1970f420a331d5b11b1eb03e7ac14cd4ff4ca61
[]
no_license
https://github.com/qualorm/adventofcode
a7f5052212b19017587bbf9180240e5425b8ee64
94b0dde342cd33400418a4ccd5258f620fe9d169
refs/heads/master
2023-04-22T07:34:28.816980
2021-12-14T12:16:48
2021-12-14T12:16:48
319,268,052
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def solve(eq): i = 0 nested = 0 if '(' in eq or ')' in eq: for i in range(len(eq)): if eq[i] == '(': nested += 1 if nested == 1: ind_left = i if eq[i] == ')': nested -= 1 if nested == 0: ...
UTF-8
Python
false
false
2,493
py
89
18_1.py
88
0.380265
0.365423
0
65
37.369231
104
ImDaeseong/VocaKnow
6,786,048,362,472
703950ad661179548a2accf6247216d81500729d
781ea21caed5a6623af1d2cee91b8fe12eb84e3c
/convertExcel/readcsv/csv.py
e6becbc60e1a6217163e96bfbb2dede375d34249
[]
no_license
https://github.com/ImDaeseong/VocaKnow
72b6ff303e7b954856a246c1727030881a11383c
6231083a88cecb446fbc2793e1961b527a1c4a87
refs/heads/master
2023-03-16T15:12:55.860029
2021-03-19T09:27:11
2021-03-19T09:27:11
106,758,001
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import openpyxl if __name__ == '__main__': file = open('E:/kata.txt', 'w', encoding='utf8') xls = openpyxl.load_workbook("aa.xlsx") sheet = xls["Sheet1"] for row in sheet.rows: index = row[0].row # print(index) if index == 1: continue sPart1 = row[1].val...
UTF-8
Python
false
false
735
py
4
csv.py
1
0.515646
0.487075
0
28
25.25
116
kerneltravel/tinman
4,827,543,282,300
7a815bf5978960a1f628e719b0ceea74080cef9c
ffd896db3fb79a117db50dc6197d0290084e0e39
/tinman/handlers/redis_handlers.py
af4100745a31826485cf0d394b4eb4914bb82661
[ "BSD-3-Clause" ]
permissive
https://github.com/kerneltravel/tinman
52141885204b247b155e35830744b84445c28b47
2a7a59aabba340e98a938cc5ce39c547e196fd63
refs/heads/master
2021-01-16T20:05:40.538515
2013-09-25T02:20:22
2013-09-25T02:20:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""The RedisRequestHandler uses tornado-redis to support Redis. It will auto-establish a single redis connection when initializing the connection. """ import logging from tornado import web LOGGER = logging.getLogger(__name__) class RedisRequestHandler(web.RequestHandler): """This request handler will connect t...
UTF-8
Python
false
false
2,978
py
9
redis_handlers.py
8
0.650772
0.647414
0
91
31.725275
80
haveitjoewei/eventfinder
7,224,135,019,297
3a3d5374fc5939544801b1ea9993ab794bf292b9
fa1070295bc0ede61bc743fca96181135d56522c
/hello/templatetags/map_category.py
45e830f72f81d7f3de9ce3c7bea1ab5b3cd628d3
[]
no_license
https://github.com/haveitjoewei/eventfinder
da6aa1511af7385525c91faa2c133d09dba627cb
6ae5769d42f7ba28229fb255dd8b46d00f81bed1
refs/heads/master
2018-01-09T04:52:50.250292
2016-01-26T12:26:21
2016-01-26T12:26:21
49,937,334
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import template register = template.Library() @register.filter def map_category(value): categories = { '101': 'Business & Professional', '102': 'Science & Technology', '103': 'Music', '104': 'Film, Media & Entertainment', '105': 'Performing & Visual Arts', '106': 'Fashion & Beauty', '107': ...
UTF-8
Python
false
false
759
py
17
map_category.py
10
0.612648
0.533597
0
29
25.206897
39
XiDian-ChenMiao/python-master
7,567,732,416,904
6d4ed9d80f9921f000524233e7ad814968d6b567
9da6fdee6122604e4820b1e397c40eec6bfb02e9
/simple/config-parser.py
6b0df929f77d3c2fc4cd44546f2cc477791b5ebb
[]
no_license
https://github.com/XiDian-ChenMiao/python-master
54c76d1b0888388972fd9ab4ad3e780c786fe779
673993d4d197138e89c2952d2be64b95463b19e9
refs/heads/master
2021-01-01T15:37:23.283938
2020-07-26T04:01:54
2020-07-26T04:01:54
97,656,390
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf-8 # Version: 0.1 # Author: DAQINZHIDI # License: Copyright(c) 2016 Miao.Chen # Summary: 测试Python的解析模块ConfigParser import configparser cp = configparser.ConfigParser() cp.read('config.ini', encoding='utf-8') sections = cp.sections() print('Sections:', sections) opts = cp.options('sec_a') print('Options in ...
UTF-8
Python
false
false
761
py
121
config-parser.py
121
0.666667
0.649123
0
25
28.64
47
js-tutul/Jsblog
369,367,212,494
98ca2a5015a86ae0e452014de6646746f096ef2e
b0fdc04fab517802ca3277d19099c61211a609f5
/accounts/views.py
a00e91e9591d13fd50c753959484749aa846d742
[]
no_license
https://github.com/js-tutul/Jsblog
38aff00d9be652a9f83e30ff3058acaf5a04dbed
da001fd7eac1a60e1785669f96cf2dbf73212b33
refs/heads/master
2022-12-12T16:24:38.466319
2020-09-12T17:49:14
2020-09-12T17:49:14
275,648,059
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import tempfile from django.utils.html import strip_tags import requests from django.contrib.auth import logout, authenticate, login from django.contrib.auth.models import User from django.contrib.sites.shortcuts import get_current_site from django.core import files from django.core.mail import EmailMessage from django...
UTF-8
Python
false
false
8,435
py
30
views.py
14
0.620747
0.615768
0
215
38.237209
128
sangyu1996/PythonByte
12,704,513,303,922
9b9e1315cf373cde21ad08c85d9540ea9d564ade
2128bc02edfda53ee1d9a85521e6afc5ac2fde74
/advanced_train/multi_threaded_and_multi_process/version_1.py
7b038f540bbe420526833c74e24596b8146add44
[]
no_license
https://github.com/sangyu1996/PythonByte
9853d8b16c5040cee54451d04a36e97b6e4f3053
3c4024198f120954f0275e1a6236c90292897fff
refs/heads/master
2020-03-23T09:31:01.982063
2019-03-11T03:35:17
2019-03-11T03:35:17
141,392,484
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 # version 1 :下载.csv格式的文件并转换为.xml格式 import tushare as ts import csv from xml.etree.ElementTree import Element, ElementTree def download(sid, cfname): df = ts.get_hist_data(sid) df.to_csv(cfname) def csvToXml(cfname): with open(cfname, 'rb') as cf: reader = csv.reader(cf) h...
UTF-8
Python
false
false
838
py
96
version_1.py
88
0.560345
0.550493
0
38
20.368421
54
fcherqui/Mind4stormwater
16,956,530,899,058
91e577d85fc0ff0c3b769a465fe2eb6667994b80
5e7dbdb33c25682bef058847fd8fd7ac6afbfd9c
/Pressure-sensor/config.py
c1d5359bed1b6f384b1507956e8216466e7346bd
[]
no_license
https://github.com/fcherqui/Mind4stormwater
0bac3ac11e3550ee4d6223e7c9db75ac4f73d72a
ad5ff727c1591657a0db3f5cc3aa3daa91cb2674
refs/heads/master
2022-11-01T12:14:04.444174
2022-10-31T14:33:52
2022-10-31T14:33:52
240,187,448
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
######################## # CONFIG FILE !!!! ######################## # PARAMETERS loraok= False # Send data through Lora ? sigfoxok=True # Send data through Sigfox ? needsleep= True # Enable deep sleep powersaving= True # Optimize the code for power saving nsensors=2 #number of probes, min=1, max=3 withRTC=Fal...
UTF-8
Python
false
false
1,491
py
49
config.py
18
0.705567
0.619048
0
44
31.886364
98
Harshit-Poddar90/hacktoberfest2K
9,861,244,955,368
ea255d0e7684852258b98492dc6261ac42079c61
9d460da8d8d81a7b79abeef2b06f729a49cfe268
/2k20/scripts2020/vokey-nick.py
52c5c1640b9a71cef9c0fa90eb32d54388a3e591
[]
no_license
https://github.com/Harshit-Poddar90/hacktoberfest2K
fc9ab524af2325ad278dff3c368aadae53fcec81
c67ba3c3b7150b20d5ae0fff42a19323f7f0289f
refs/heads/master
2023-08-14T12:03:41.894852
2021-10-01T19:34:57
2021-10-01T19:34:57
412,990,115
1
0
null
true
2021-10-03T05:58:44
2021-10-03T05:58:43
2021-10-01T19:35:00
2021-10-02T15:51:36
105
0
0
0
null
false
false
def hacktoberfest(): a = "hack" b = "tober" c = "fest" return (a+b+c) print(hacktoberfest())
UTF-8
Python
false
false
110
py
24
vokey-nick.py
21
0.536364
0.536364
0
7
14.714286
22
zmanaa/Lane-Detection
10,548,439,722,851
dd6470764ff0460ee361149b6bacd1100a9214c0
c4cec2815d27a7974564173cbc19db518250739f
/Utils/constants.py
29d7356ccc59f7f8619f214ed75b0273ffb1b237
[]
no_license
https://github.com/zmanaa/Lane-Detection
b28dd2ef8027a901a157367091ed10f62196f012
f4362463490cbd9499abcdeaa5d63a1d807a72ed
refs/heads/main
2023-08-10T19:13:15.611726
2021-10-06T21:08:15
2021-10-06T21:08:15
413,600,365
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np PIXELS = 2 PERC = np.pi/180 THRESHOLD = 100 LINEPIX = 40 LINEGAPS = 5 LINEWIDTH = 10
UTF-8
Python
false
false
128
py
5
constants.py
4
0.578125
0.484375
0
8
15
23
anthony-aylward/wasp_map
1,778,116,465,113
b3baeefa275bfe6bd2da25e9b2a35a08e16d8492
528ca20a0b137b2ad82a0217e52e9c68ac9d27ff
/wasp_map/download.py
558714f85003786ffe5a29c5fdb00e26937584eb
[ "MIT" ]
permissive
https://github.com/anthony-aylward/wasp_map
6de4df8a26d8903beb7cdec1c6accca5162b3470
eadf96c44bb81e416c43ce2e33b7fbb164772cce
refs/heads/master
2021-06-23T07:44:26.617311
2021-02-26T10:04:02
2021-02-26T10:04:02
194,727,772
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#=============================================================================== # download.py #=============================================================================== # Imports ====================================================================== import os import os.path import subprocess from argparse imp...
UTF-8
Python
false
false
4,989
py
8
download.py
7
0.569854
0.554821
0
151
32.039735
80
sthomen/zc
6,717,328,863,504
8d3ffd3cb2682161584439a594d8b377367e466a
7eb3bd3389b15f90fe4e8eb556ec566ff6db832b
/zc/dns/rr/a.py
f4898f696b7615458c86bd5195cac2541ab0f815
[]
no_license
https://github.com/sthomen/zc
d69ce685d0579dd8d0a5e938e04d40a2ca956774
7d26a2b4d073fa8dedf15fb5492ff706ab095c92
refs/heads/master
2023-06-03T22:38:31.047734
2020-11-14T20:08:03
2020-11-14T20:08:03
377,566,555
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from struct import unpack from .rdata import RData from ..util import sub from .rrplugin import RRPlugin @RRPlugin.register(type=1) class A(RData): def decode(self): self.raw = sub(self.raw, self.offset, 4) self.address = [ int(v) for v in unpack('!BBBB', self.raw) ] return self def encode(self): self.raw ...
UTF-8
Python
false
false
351
py
38
a.py
36
0.698006
0.692308
0
15
22.4
62
hammal/PythonADC
11,373,073,447,266
0166034cf389efdd527b004bf21b930a73cbf3ab
fa72108bf319e00e40b3cd05b3213bdfbb5dcb51
/Experiments/s3scripts/download_from_bucket.py
596310bdafb4a0627f9ab50a0c37632b855f38e5
[]
no_license
https://github.com/hammal/PythonADC
b51faad98926afb63711570a107412b43be0e412
1f9be8298bf2992196ede7e01d7c3287048bc4a3
refs/heads/master
2023-03-26T17:01:45.354175
2021-03-21T17:09:54
2021-03-21T17:09:54
335,706,884
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import boto3 import uuid import argparse from s3utils import downloadFromS3 BUCKET_NAME = 'paralleladcexperiments5b70cd4e-74d3-4496-96fa-f4025220d48c' def main(file_name, destination): s3_resource = boto3.resource('s3') downloadFromS3(s3_resource, BUCKET_NAME, file_name, destination) if __name__ == "__mai...
UTF-8
Python
false
false
551
py
58
download_from_bucket.py
52
0.696915
0.642468
0
21
25.285714
74
zconn/PythonCert220Assign
8,675,833,942,408
ac98c4e5e25a8ae058e256bb7efad9398a08de8c
0c72282d601ccf840dd4e41b675c0675de7bc916
/students/HABTAMU/lesson03/assignment/basic_operations.py
0abbf2d973b7ae3e01d0f8a6fcab80841989899a
[]
no_license
https://github.com/zconn/PythonCert220Assign
c7fedd9ffae4f9e74e5e4dfc59bc6c511c7900ab
99271cd60485bd2e54f8d133c9057a2ccd6c91c2
refs/heads/master
2020-04-15T14:42:08.765699
2019-03-14T09:13:36
2019-03-14T09:13:36
164,763,504
2
0
null
true
2019-01-09T01:34:40
2019-01-09T01:34:40
2019-01-08T20:21:44
2019-01-08T20:21:43
788
0
0
0
null
false
null
""" Learning persistence with Peewee and sqlite delete the database to start over (but running this program does not require it) Person: 1. insert records 2. display all records 3. show transactions 4. show error checking 5. show logging (to explain what's ...
UTF-8
Python
false
false
8,044
py
375
basic_operations.py
326
0.594107
0.573968
0
198
39.616162
147
bmeurer/emscripten
111,669,193,284
a51ce333cce958a5c8d37b745f201843bf15a3e5
b2766f8cf250120b341a6150303d97033139663c
/site/source/api_items.py
01766673931b8f08715961656bbfe15f2d2e719e
[ "NCSA", "MIT" ]
permissive
https://github.com/bmeurer/emscripten
dbca4d0f1d0db1ea30b1eece7a4a4b9eec473f68
59a416cb3f72d746678fc44a4d2626eb6be98151
refs/heads/master
2023-02-15T03:31:17.464894
2020-07-09T17:40:24
2020-07-09T17:40:24
265,643,199
1
0
NOASSERTION
true
2020-05-20T17:47:05
2020-05-20T17:47:04
2020-05-20T17:01:14
2020-05-20T17:34:26
208,961
0
0
0
null
false
false
# Auto-generated file (see get_api_items.py) def get_mapped_items(): mapped_wiki_inline_code = dict() mapped_wiki_inline_code['*emscripten_get_preloaded_image_data'] = ':c:func:`*emscripten_get_preloaded_image_data`' mapped_wiki_inline_code['*emscripten_get_preloaded_image_data()'] = ':c:func:`*emscripten...
UTF-8
Python
false
false
63,319
py
91
api_items.py
48
0.715709
0.714193
0
667
93.931034
154
erraa/kresets
2,731,599,236,036
14458bfab447687a76eb8e0ff52f4c126f91aa6c
975bd514c540b4c7376e0165af24a3cac657af8c
/app/views.py
663fb32cb98b26b0889aef147ebcd6a730919927
[]
no_license
https://github.com/erraa/kresets
421c9f9f4fe77be6896d366c0a69837c86aa4af3
1f62cfecf00ed6d69a2f3a32993b25d69b0a6ef4
refs/heads/master
2020-04-06T06:57:20.069087
2016-09-11T08:14:07
2016-09-11T08:14:07
64,059,193
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import render_template from app import app @app.route('/') @app.route('/index') def index(): posts = [{'body': 'ONYXIA'}, {'body', 'ZG'}] wberg = {'wberg': 'Wbergs Mamma'} return render_template('index.html', title='Home', wberg=wberg, ...
UTF-8
Python
false
false
382
py
3
views.py
1
0.455497
0.455497
0
13
28.384615
48
jacealan/booktalk
5,514,738,010,046
63287efae402d896ae7aea2959dc85c7f7ac4377
5c874d83da5c246b7fdf8a1cd778bd9eba0f963d
/jacevenv/lib/python3.6/re.py
5eba8bbaea92008a5738bb3004cf80d138008a0d
[]
no_license
https://github.com/jacealan/booktalk
29a5061436ec9ebf571b32b7e7831363a2a824ba
fb3f823966de8f280caead2b0519804d6ff45028
refs/heads/master
2021-08-28T07:11:00.763662
2017-12-11T14:35:30
2017-12-11T14:35:30
113,454,681
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
/Users/jace/anaconda3/lib/python3.6/re.py
UTF-8
Python
false
false
41
py
54
re.py
48
0.804878
0.731707
0
1
41
41
ZipluxLHS/pyziplux
12,953,621,371,989
5dec25f49b107e7cf7df4344e4fde3c0bf4b1e94
d91f24ae8b47947af0241ad81dbbe9d20dcbe431
/microsoft/office.py
1057fdeaaf001f0512ab87cc7d227175db68ff90
[ "MIT" ]
permissive
https://github.com/ZipluxLHS/pyziplux
e404cbb883d30a3007bb94476568c0c8393b52fc
1d8ada67e6237b30c35805b4b34c01f14865164f
refs/heads/main
2023-08-25T00:09:07.173748
2021-10-20T09:52:00
2021-10-20T09:52:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import openpyxl from openpyxl import Workbook from openpyxl.comments import Comment class Xlsx: def __init__(self, filePath): self.path = filePath def writeWorkbook(self, source): self.wb = Workbook() ws = self.wb.active for each in source: ws.append(e...
UTF-8
Python
false
false
988
py
3
office.py
3
0.580972
0.580972
0
31
29.935484
95
m-nez/mtg_deck_compiler
5,102,421,186,922
1984fd2d40874571b0b057a3ae8953015b0ee5b7
57592c985f0823264c7025f59151681ab4b0d192
/mtg_deck_compiler.py
06ffe21e161c931b6df7703ebc63b569100ba738
[]
no_license
https://github.com/m-nez/mtg_deck_compiler
1a317601789536eebc6a7fcfd06daf03abf02af7
36b76e91ee26f733bed7729694de489c288499ee
refs/heads/master
2020-12-25T19:39:22.923284
2018-12-30T14:23:03
2018-12-30T14:23:03
64,498,380
2
1
null
false
2017-10-15T17:51:48
2016-07-29T17:25:46
2016-07-29T17:29:04
2017-10-15T17:51:47
4
0
1
0
Python
null
null
#!/usr/bin/python3 # -*- coding: UTF-8 -*- """ MTG deck compiler Copyright (C) 2016, 2017 Michał Nieznański This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the...
UTF-8
Python
false
false
8,517
py
2
mtg_deck_compiler.py
1
0.549031
0.542572
0
254
32.523622
108
kenpuca/db.science.uoit.ca
18,528,488,956,972
83d5c61d22d614005973eb782b4da2fc3e7371ac
93cafda4d25704cf00e11eb3457918c427a83cad
/courses/algorithms/mst/code/mst.py
629ea729d589110961bbdd530da9ae9c87ea8ecf
[]
no_license
https://github.com/kenpuca/db.science.uoit.ca
92983a0188be294d4891a6fd8410823749a2ea76
970cbbeb691ef72bb6cec4def59c0640ccf5ee81
refs/heads/master
2020-05-21T22:49:41.674556
2017-10-25T02:17:01
2017-10-25T02:17:01
63,455,393
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def minimal_edge(H, V0): """pick an edge with the minimal weight from V0 to the rest of the nodes""" w_min = None e_min = None for e in H.E.keys(): if e[0] in V0 and e[1] not in V0: w = H.E[e]["weight"] if w_min == None or w < w_min: e_min = e ...
UTF-8
Python
false
false
1,916
py
72
mst.py
20
0.518789
0.497912
0
70
26.371429
50
rscgh/BA4445_Classifier
5,970,004,570,729
52a6bdebb325175d41b46ce3a79c298c630f73be
3579859cc04f12aa4554feb7f5f7c01bc9dab449
/hcp_tools.py
8b1a72440a9437ba844280e56032683ad40a1367
[]
no_license
https://github.com/rscgh/BA4445_Classifier
bcbebd852555874b251d1a8aedb66298ccf8205e
e92093f2a2e4a74584575d1485fca383b9a4ffc7
refs/heads/main
2023-07-29T18:23:22.624979
2021-09-14T11:22:54
2021-09-14T11:22:54
302,207,034
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- ''' preprocess_and_load_tseries is based off the original script by Şeyma Bayrak, https://github.com/sheyma repository located on: https://github.com/NeuroanatomyAndConnectivity/hcp_corr code was a bit more streamlined and put up to date furthermore the option for smoo...
UTF-8
Python
false
false
13,989
py
11
hcp_tools.py
5
0.603732
0.561982
0
366
37.213115
168
art32fil/slam_3d_tbm
12,549,894,461,341
49a36439831b200261eab2f78a411461e269cbab
e242e8ecabe19af42e3962fce75c696e4ecbb132
/python_ros_packages/bag_reader/src/bag_to_3D_points_with_poses.py
97ff7c8a0e5bfc3931fa46cef7d6d9ba70004178
[]
no_license
https://github.com/art32fil/slam_3d_tbm
956931e72273134922618608a884850b8d0bfe1b
3ab07daeb743807ec211b0776621454a1294e9a2
refs/heads/master
2020-09-10T04:00:53.116074
2020-04-13T09:19:31
2020-04-13T09:19:31
221,643,189
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import rospy import rosbag import sensor_msgs from sensor_msgs.msg import PointCloud2 as pcl2 from sensor_msgs import point_cloud2 as pcl2_handler import tf2_ros import tf2_py as tf2 from tf2_sensor_msgs.tf2_sensor_msgs import do_transform_cloud from geometry_msgs.msg import TransformStamped fro...
UTF-8
Python
false
false
9,837
py
14
bag_to_3D_points_with_poses.py
11
0.663312
0.637694
0
271
35.239852
136
ellenmconsidine/Python-Slang-Dictionary
4,088,808,893,962
ce4a0ae2beb1e86304a41d43b2a5222efe572075
6095fbed62280243314037da2f9ab3bc7570e041
/Assignment10_Considine.py
d38fc21515d1a427771de540ac7059d4087bfaac
[]
no_license
https://github.com/ellenmconsidine/Python-Slang-Dictionary
dfb84442c1f4a60a00c47bf6b2f51083e498e0c1
329870cba94390ea463fceb68c747cfb3febbc95
refs/heads/master
2021-01-11T20:03:09.338352
2017-01-19T13:51:39
2017-01-19T13:51:39
79,457,978
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Ellen Considine, TA: Ranga, Assignment 10 def CreateDictionary(filename): my_dict = {} lines = [] f = open(filename, 'r') #opening input file x = f.readline() while x != "": lines.append(x) x = f.readline() f.close() #closing input file for i in range(len(lines)): k...
UTF-8
Python
false
false
2,299
py
1
Assignment10_Considine.py
1
0.5398
0.53719
0
77
28.857143
92
daniel-reich/ubiquitous-fiesta
2,937,757,676,275
0316b972c911e49a3da6fb7e890538ee696e3b62
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/quMt6typruySiNSAJ_12.py
c1a325dca146548eb733dfed62d4554554f6df03
[]
no_license
https://github.com/daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from math import ceil def shuffle_count(num): d=[i for i in range(num)] ds=[0]*num k=0 while True: d1=d[:num//2] d2=d[num//2:] for i in range(0,num-1,2): ds[i]=d1[ceil(i/2)] ds[i+1]=d2[ceil(i/2)] k+=1 d=ds if d==sorted(d): ...
UTF-8
Python
false
false
334
py
38,088
quMt6typruySiNSAJ_12.py
38,088
0.434132
0.389222
0
15
21.133333
34
briancabbott/GitHub-Repository-Downloader
1,872,605,750,131
2f5483b73e6c932ebf877dd6f2c39f8b97630100
5c157c4e76ca54d30f543e0393eae29d49d90962
/TypeScript/resources/code/ts_lib/Apollo-Latest/apollographql/tap-orbit/tap_orbit/streams/members.py
4f6c836273471a2692c63c145013bd21395610aa
[ "Apache-2.0" ]
permissive
https://github.com/briancabbott/GitHub-Repository-Downloader
a69ccc97100947525fd77e822544b84b82c5636a
b2ea9502f68e64ff4c8e02ff6113f4f4dc927f60
refs/heads/master
2023-05-25T07:21:43.908126
2023-05-21T08:05:45
2023-05-21T08:05:45
148,926,714
1
0
null
false
2022-12-08T23:32:10
2018-09-15T17:59:55
2022-07-10T13:31:30
2022-12-08T23:32:10
126,905
0
0
3
TypeScript
false
false
from tap_orbit.streams.base import BaseStream import singer LOGGER = singer.get_logger() class MembersStream(BaseStream): API_METHOD = "GET" TABLE = "members" KEY_PROPERTIES = ["id"] def response_key(self): return "data" @property def path(self): return "members" @prope...
UTF-8
Python
false
false
371
py
3,942
members.py
1,770
0.625337
0.625337
0
21
16.666667
45
legendAhsan/commentAnalyzer
8,727,373,564,884
f1b40adf6ab1eaa74d8769f7655a34ffdf5905ee
3fa66cef8a6ffe4546b235304d00e8c9266fcbc1
/app.py
881a6f6d48aed161aa67c8f35ec788f5d9e55447
[]
no_license
https://github.com/legendAhsan/commentAnalyzer
d25c5b2eb010b95d4030494a42b9a919b28c46d1
ef8b7cfa4dff37f9b2b5a631cd9525d882efcb47
refs/heads/master
2023-02-16T18:37:40.828355
2021-01-13T07:39:07
2021-01-13T07:39:07
324,924,056
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, render_template, request, redirect from sklearn.feature_extraction.text import CountVectorizer import nltk from nltk.corpus import stopwords import string from nltk.stem.snowball import SnowballStemmer import pandas as pd import pickle hell=Flask(__name__) model = pickle.load(open('model.pkl',...
UTF-8
Python
false
false
1,722
py
8
app.py
3
0.624855
0.611498
0
65
25.492308
134
ben1lam8/USMB-BachelorDIM-Lectures-Algorithms
7,791,070,692,326
61d2a9bb0f43b012e5071620adc655212df9ebd7
1cdfc01aef51ec4872e88fac9347c90ab9483244
/assignments/Session1/S1_dice.py
9960dc160e0fec6063d98a578cdb6d3c3507a4c0
[ "MIT" ]
permissive
https://github.com/ben1lam8/USMB-BachelorDIM-Lectures-Algorithms
8bb89ce974ddafe49e33e47b70723be66bbfdcff
c7a8905462bdda40cb9d567dfa63de14649def5b
refs/heads/master
2021-01-23T19:57:41.416899
2017-10-31T20:29:59
2017-10-31T20:29:59
102,835,826
0
0
null
true
2017-09-08T08:06:46
2017-09-08T08:06:45
2017-08-14T13:32:52
2017-09-07T14:44:48
15
0
0
0
null
null
null
## @namespace S1_dice # A dice game simulation # # @author Benoit Lamit, LPro DIM, IUT Annecy le vieux, FRANCE import random; # Global variables player_score = 0; computer_score = 0; turn_count = 0; ## Game main logic # def main(): #Init the game print("===============================================...
UTF-8
Python
false
false
4,210
py
20
S1_dice.py
18
0.456532
0.447743
0
139
29.258993
104
ayush-sri323/Feedback
7,249,904,812,459
f73f4a0d6f96c09dd12d00c40f005bbee3aea41a
5cfc94c1ae77ae140e639952045fe0454a0263af
/review/urls.py
ef20497355d40014b2b0c170705c73a0793070eb
[]
no_license
https://github.com/ayush-sri323/Feedback
b4e65bd9a8dd08bb8978739ce7735f23f41b26e9
3c833c44681046ef50b42489f532b0a26b2a3759
refs/heads/master
2023-06-09T15:01:00.479432
2021-07-03T17:44:59
2021-07-03T17:44:59
382,660,526
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views urlpatterns = [ path('',views.ReviewView.as_view()), path('thank_you',views.thank_you.as_view()), path('Review List',views.ReviewList.as_view(), name = 'review list'), path('favorite',views.AddfavoriteReview.as_view()), path('Detail Reviews<int:pk>',v...
UTF-8
Python
false
false
373
py
7
urls.py
5
0.686327
0.686327
0
10
36.3
84
jun-harashima/msnc
2,834,678,443,548
807afd48f45fb260c44a5bf5156cd46d5ecf0c8f
466218363656c212e29d10ac288fb00818d81adf
/msnc/dataset.py
66d83e062fd5eebbf86e4dd0176110db844f8956
[ "MIT" ]
permissive
https://github.com/jun-harashima/msnc
9c791b8a01ff3079791c738bce88d37e8698cb72
f6770b183a6bc65f1774deeaee3b326fca326770
refs/heads/master
2023-01-09T22:51:12.164799
2021-06-15T08:44:50
2021-06-15T08:44:50
187,233,556
1
1
MIT
false
2022-12-26T20:47:38
2019-05-17T14:45:55
2021-06-15T08:44:53
2022-12-26T20:47:38
86
1
1
2
Python
false
false
# x: a token (e.g., character, subword, word). # X: a sequence of tokens. # X_set: a set of sequences. # xs: a concatnation of sets. # y: a number for an example # ys: numbers for examples import math from msnc.util import Util class Dataset(): def __init__(self, examples, x_to_index=None, isregression=False): ...
UTF-8
Python
false
false
2,439
py
14
dataset.py
9
0.536695
0.533825
0
74
31.959459
74
Rohan-Deshamudre/Smart-traffic-management-system
9,337,258,906,605
b75dbab737eeae717fc151b2aae36aea78d4ed77
3f0f3d2d20581a247bffc1aa36fdd1ff50bca968
/backend/api/instruments/instrument_actions/compression.py
bdb684555d9adb8dadb0b2a3e161dda6977a8936
[]
no_license
https://github.com/Rohan-Deshamudre/Smart-traffic-management-system
1c92a4de26c55d103d954c53d0cd207bba68a26b
618440303dcbf819cd61aa5e593b4b50483f0070
refs/heads/master
2022-12-09T14:51:21.206001
2020-06-25T16:27:15
2020-06-25T16:27:15
295,766,737
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from api.instruments.instrument_actions.models import InstrumentAction from api.road_conditions.road_condition_actions.models import \ RoadConditionActionToInstrumentAction id_key = 'id' def to_json_instrument_action(instrument_action: InstrumentAction): instrument_action_object = {id_key: instrument_action....
UTF-8
Python
false
false
613
py
330
compression.py
170
0.786297
0.786297
0
17
35.058824
79
lakshmikodi/Python
16,260,746,189,749
68d23754db466aac2081869c88a69892dcba5cfa
e1a98eb88f719108250b8ef31070a72b830f3f98
/String Datatypes/Data_Types_String_Example_Methods_1-23.py
ff54405c380b2dc4e5046b773784a65d663f2f6d
[]
no_license
https://github.com/lakshmikodi/Python
bcaf181b751576b5731dd83e991782e86f233a88
4346ded89f6b4d747913513ca6d3f0cf930953c5
refs/heads/master
2020-12-07T15:23:47.676376
2017-06-27T02:59:32
2017-06-27T02:59:32
95,507,980
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python strLower = "a this a is a lower case string" #0123456789101112131415161718 strLow = "spyder and pycharm" ''' strUpper = "THIS IS AN UPPER CASE STRING" numSet = '123' print(strLower.capitalize()) print(len(strLow)) print(type(strLow)) ''' print (strLow.center(23, '*'),len(strLow)) ''' prin...
UTF-8
Python
false
false
672
py
18
Data_Types_String_Example_Methods_1-23.py
17
0.690476
0.616071
0
26
24.846154
49
Biking0/test
4,363,686,782,748
214496c29e468a53af6a50db62496d81652b69b7
92eee50b8dcdace89077f31065e56322c9920456
/202107/test.py
ba5100d17e13f174bc7f09810acdd25bf2c16e70
[]
no_license
https://github.com/Biking0/test
37878b7c2eb61bf0224459b4a313fadaa437534a
3d57193c56bd2c9b6c8ad9c5b3fb785de4a90d9a
refs/heads/master
2021-07-23T18:43:26.693462
2021-07-14T16:06:36
2021-07-14T16:06:36
125,614,881
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import akshare as ak stock_circulate_stock_holder_df = ak.stock_circulate_stock_holder(stock="600000") # print(stock_circulate_stock_holder_df) print(stock_circulate_stock_holder_df[0:3]) # print(stock_circulate_stock_holder_df[0:22]['占流通股比例(%)']) new_sum=0 old_sum=0 for i in stock_circulate_stock_holder_df[0:10]['占流通...
UTF-8
Python
false
false
597
py
150
test.py
122
0.695187
0.652406
0
19
28.578947
81
abs-tudelft/vhdmmio
6,614,249,662,022
74540e8fdb1ec0caf18ea2f2f8bb171bd9c51121
ea97980b8c9dbbf987b2e470cea11cedde8efb9f
/vhdmmio/config/interrupt.py
544be0503375ced927bad399a4eb39eee7cb3c4e
[ "Apache-2.0" ]
permissive
https://github.com/abs-tudelft/vhdmmio
634ec13fc9ce573d0628336195bdd1dcece1db1a
d0417925cd72dfb973431d6948e65b662a75c5fa
refs/heads/master
2023-06-22T21:04:01.548057
2023-06-19T16:15:11
2023-06-19T16:15:11
185,991,290
5
1
Apache-2.0
false
2023-06-19T16:15:12
2019-05-10T13:15:28
2023-06-06T14:57:14
2023-06-19T16:15:12
1,549
7
2
1
Python
false
false
"""Submodule for `InterruptConfig` configurable.""" import re from ..configurable import configurable, Configurable, choice, embedded from .metadata import MetadataConfig @configurable(name='Interrupt descriptors') class InterruptConfig(Configurable): r"""In addition to MMIO, `vhdmmio` can handle interrupt routin...
UTF-8
Python
false
false
5,947
py
185
interrupt.py
118
0.565663
0.562637
0
124
46.959677
80
Sahel95/messenger-backend
15,771,119,936,875
3e2e498c823c901a2f7b30239879dc8801894082
beb5cdab2ec52c5cc53fd82bc9d700e268d2a2d7
/user/models.py
beaf9d50404c08c7df8cbb836adadd35c45aadc7
[]
no_license
https://github.com/Sahel95/messenger-backend
d30e02690927e3e15ed9e7ab4282f83f28daf01b
db9b0ce88163969c343b91c465cadeed828c2e33
refs/heads/master
2020-07-09T03:22:00.319634
2019-09-17T06:06:17
2019-09-17T06:06:17
203,861,256
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 from django.contrib.auth.models import AbstractUser import uuid class Users(AbstractUser): verificationtoken = models.UUIDField( default=uuid.uuid4, null=True ) is_verified = models.BooleanField( null=True, ...
UTF-8
Python
false
false
1,043
py
36
models.py
34
0.601151
0.597315
0
44
22.704545
73
MysticSoul/Codes
4,999,341,970,830
cda944273310ebd4950c6f90179bb7ac6ae3a4c1
deb07632f77383bea0a79bc1f62924b5db72fd1f
/python/learning.py
795c538c01e62fdd822e49419363f0ec6d81cddb
[]
no_license
https://github.com/MysticSoul/Codes
e559677e5badd4504794ebc38c2309318dc35c5d
c61d1206b7cd42ac9d2d8dab38d4653ce129c9b3
refs/heads/master
2020-07-24T07:58:08.943033
2019-09-11T09:18:03
2019-09-11T09:18:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#learning loops #n = input("Enter the length of the array : ") a = [1, 2, 3, 4, 5, 6, 7, 8] print("Prefixes of", a) for i in range(0, len(a) + 1): print(a[0:i]) print("----------------------------------") print("Suffixes of" , a) for i in range(0, len(a) + 1): print(a[i:len(a)+1])
UTF-8
Python
false
false
290
py
146
learning.py
128
0.493103
0.444828
0
10
28.1
47
avenrainbow/aven_su
3,822,520,939,828
6f1a42f88ca680a7a7875b0e7598cc025aee4e26
536ea383510428e49c3304fd957e4ae27fa13f80
/com.aven.jdk.python/test/RestHandlerTest.py
99a44b2b493f1fe4ca8a5635576fd560f35eded3
[]
no_license
https://github.com/avenrainbow/aven_su
716e3d0d77f607cb481c5e5c1bef45239d7bc35c
f985123a164d5c2f8cfd5deef26d37c60ac9eae3
refs/heads/master
2016-09-06T10:07:13.539963
2015-07-30T07:55:45
2015-07-30T07:55:45
39,938,124
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#encoding=utf8 ''' Created on 2014-4-10 @author: Kee.Li ''' from com.huadi.winserver.RestHandler import DataConnect from com.huadi.winserver import RestHandler ''' GET请求Rest接口demo 获取所有虚拟机 ''' def testGet(): #连接参数 dataConnect = DataConnect() dataConnect.ip = "10.0.0.100" dataConnect.port = "8080"...
UTF-8
Python
false
false
2,315
py
33
RestHandlerTest.py
23
0.601898
0.54948
0
98
21.489796
346
scottyuecao/RIXS-utilities
15,307,263,477,441
0db4b758a971a784966ac6bd3714de531c3a1510
e1b999ea5a734ce2cd7c39be08bcbc243216ba2b
/SLS_examples/get_plot_Emaps.py
58d0f7985aab3c472f26f1190c2fe292162c99cd
[]
no_license
https://github.com/scottyuecao/RIXS-utilities
870f279e2fdbf97f47a79f09fa634c7ea4cd43cd
1a20198f27084351c06aba7c2b640503ce02a9b1
refs/heads/master
2021-01-24T02:18:10.415188
2015-03-17T19:48:50
2015-03-17T19:48:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import scipy as sp import matplotlib.pyplot as plt import scipy.interpolate plt.ion() def getParam(filename, param): fid = open(filename) alltxt = fid.read().lower() # everything in lowercase param = param.lower() for line in alltxt.splitlines(): if line.find(param) != -1: ...
UTF-8
Python
false
false
2,087
py
3
get_plot_Emaps.py
3
0.598467
0.574509
0
66
30.621212
142
huawei-noah/HEBO
9,337,258,921,341
53d18340a0133c28c077e9c06eda0117b26461c2
5072e65b8b10b333fff2142bfc70896d4abca2b4
/HEBO/archived_submissions/hebo/bo/models/scalers.py
e0b75e69037bdd94dc2803b788c73130d2e5c12b
[ "MIT" ]
permissive
https://github.com/huawei-noah/HEBO
a0ececc2fe9812fd319d8ff4af1d5706276937bc
2bccb4edef79711ff81d660b80c9121b1bb95c82
refs/heads/master
2023-09-01T08:14:57.603747
2023-08-30T15:39:48
2023-08-30T15:39:48
404,973,348
1,748
313
null
false
2023-08-23T20:36:22
2021-09-10T06:02:05
2023-08-23T18:35:20
2023-08-23T20:36:21
152,176
1,882
362
10
Jupyter Notebook
false
false
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify it under # the terms of the MIT license. # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty...
UTF-8
Python
false
false
3,355
py
747
scalers.py
633
0.604471
0.599702
0
91
34.868132
108
tomasra/venus_volcanoes
13,932,873,941,191
a1c6f883b9f734febbb3dd704c65acae373bd121
da1843a1ededfd6f3470965f0024391912c1e299
/lib/experiments/__init__.py
b453c20f2a7f62b3e6f76034404cfbf51c7532c7
[]
no_license
https://github.com/tomasra/venus_volcanoes
6cda36be507690ad17b4c2c7ead87f08de90765c
1db7c8b46db25c9f158dfa96a8d22fde4e12c43d
refs/heads/master
2020-05-31T20:51:29.821742
2014-05-24T11:37:32
2014-05-24T11:37:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from experiment import Experiment from experiment_set import ExperimentSet
UTF-8
Python
false
false
74
py
32
__init__.py
26
0.891892
0.891892
0
2
36.5
40
jarekzha/JingDongSpider
2,748,779,076,708
44d8aeef82eb5b96fd1ea5c95154adb40b6ee311
baf93a6c55b9784d0ffe61410e5728bcb778e671
/Crawler/crawler.py
e696fb22a76b89aa9c1220cae15e1f70352826c2
[]
no_license
https://github.com/jarekzha/JingDongSpider
a766c9a04aae35e1995ecd899e0fff52e2d8a9ac
a37a4299f1a23fd9d5303fa56e5bdb4259b5f86d
refs/heads/master
2021-01-21T11:38:00.422899
2016-05-12T15:03:31
2016-05-12T15:03:33
48,053,324
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Created on 2016年4月9日 @author: jarekzhang ''' import config from jdItemPage import JDItemPage from mysqlSaver import MysqlSaver import codecs import time if __name__ == '__main__': ''' 解析页面 ''' itemPage = JDItemPage(config.URL) itemPage.parsePage() ...
UTF-8
Python
false
false
687
py
10
crawler.py
9
0.61919
0.607196
0
27
23.481481
106
DavidGG66/active-nlp
10,428,180,633,499
615431716ee5444782bfbc9a0f6989c95533d7fc
8a4cf805b293fab0c0c844794a1b8f1688bff264
/src/network/node.py
0d5b444911201e2e9fd82f447d553be16b6c4d09
[]
no_license
https://github.com/DavidGG66/active-nlp
906b18e37a68c92d508c0a446c5b65fcd9045751
508beec00eca482319d8f7f1e972e0e6b09fd158
refs/heads/master
2020-09-01T07:25:07.601575
2020-03-14T00:34:58
2020-03-14T00:34:58
218,907,862
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Parser nodes and networks class Error(Exception): pass class SynCat(): def __init__(self): self.cat = None self.features = {} class LexCat(SynCat): def __init__(self): SynCat.__init__(self) self.lex = {} class PhraseCat(SynCat): def __init__(self): SynCat...
UTF-8
Python
false
false
1,462
py
43
node.py
25
0.53762
0.536252
0
67
20.820896
58
ericfp87/Day-26-exercise3
13,194,139,576,574
14a66cef35a40c4fefaa47db3b931e50c0a2e1f8
e09416565a0a7825021be242ef2597d009b0c319
/main.py
85ded4487d29f972d222c84de9e71ebc5de580a4
[]
no_license
https://github.com/ericfp87/Day-26-exercise3
cd6bb7e74155a554ff6ec62c8c6a4f40ac5a3b92
c8f7bc0c144a97790eac922cfa0e5f650729d66b
refs/heads/master
2023-03-18T10:45:08.222936
2021-03-08T13:17:14
2021-03-08T13:17:14
345,661,839
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
with open("file1.txt") as file1: list1 = file1.readlines() with open("file2.txt") as file2: list2 = file2.readlines() result= [int(number) for number in list1 if number in list2] # Write your code above 👆 print(result)
UTF-8
Python
false
false
236
py
1
main.py
1
0.682403
0.639485
0
11
20
60
vene/ambra
4,827,543,255,159
91938ea1184225b740711bebd1621a2516158975
0b517fd0ca467fdfccf1ba1f32bd652ae95349c2
/ambra/features.py
4a8047954788c4f6e683fa5197b83b302d4938d5
[ "BSD-2-Clause" ]
permissive
https://github.com/vene/ambra
520e721eeeae8a44e38fff241b9a738519f2e33e
e220dbb332b86ed60ecb025efbefbb33080118b7
refs/heads/master
2016-09-06T12:42:34.633206
2015-01-30T21:40:31
2015-01-30T21:40:31
27,673,648
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from sklearn.base import BaseEstimator, TransformerMixin class LengthFeatures(BaseEstimator, TransformerMixin): def fit(self, X, y=None): return self def _doc_features(self, doc): n_sents = len(doc) all_toks = [tok for sent in doc for tok in sent] n_tokens = ...
UTF-8
Python
false
false
3,114
py
15
features.py
14
0.560694
0.558767
0
86
35.209302
80
xieguotian/caffe
16,295,105,957,126
bea8cac2f7c0e89948272e2b110e8a391df0392c
11d564f26a40d5b5da034568ff4bf3ffec8b94db
/python/convert_model_triplet.py
b6774cf29fcd1579d08c210ba0a9cb046e7d043a
[ "LicenseRef-scancode-public-domain", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla" ]
permissive
https://github.com/xieguotian/caffe
110673db35c41360a5ecdbec6e64a8d2cda31784
fed8340608102c489ed6a1e61f2890cf0b0079ea
refs/heads/master
2020-04-04T04:23:01.004276
2017-11-23T07:34:20
2017-11-23T07:34:33
38,590,922
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import os if len(sys.argv)<3: print 'Usage: python convert_model.py net_proto net_posfix' net_proto = sys.argv[1] pos_fix = sys.argv[2] base_name = os.path.basename(net_proto).strip().split('.') net_new_proto = base_name[0]+'_'+pos_fix+'.'+base_name[1] with open(net_new_proto,'w') as fout: with o...
UTF-8
Python
false
false
2,210
py
161
convert_model_triplet.py
110
0.481448
0.471946
0
65
32.984615
70
Podidiving/catalyst
4,664,334,529,492
441751de0a52199f9b7575aee1c3da512e669fc7
9b6bc3f768ec86caf2074141be90262c9662762a
/catalyst/loggers/tensorboard.py
1b777aa4c201da32fa79c54bab9ec15c32fa80f5
[ "Apache-2.0" ]
permissive
https://github.com/Podidiving/catalyst
298dca23e5cf51dda6bbc0a744874ae2c8787bc5
ac8567dc389fb7a265e3104e8a743497aa903165
refs/heads/master
2021-12-03T21:48:48.232619
2021-11-03T05:29:19
2021-11-03T05:29:19
225,822,776
2
0
Apache-2.0
true
2019-12-04T08:59:03
2019-12-04T08:59:03
2019-12-04T08:30:59
2019-12-04T08:42:44
11,052
0
0
0
null
false
false
from typing import Dict import os import numpy as np from tensorboardX import SummaryWriter from catalyst.core.logger import ILogger from catalyst.loggers.functional import image_to_tensor class TensorboardLogger(ILogger): """Tensorboard logger for parameters, metrics, images and other artifacts. Args: ...
UTF-8
Python
false
false
5,650
py
161
tensorboard.py
126
0.554159
0.550265
0
181
30.21547
99
ethanjperez/convince
6,940,667,152,806
9a49b71e7a8644514247d500f9f27ce54bcb7b30
79e1d04867c4298b23c907f92c7119e4bea8ef02
/allennlp/allennlp/modules/text_field_embedders/basic_text_field_embedder.py
a4e1fd2830dd711054aa69b3beaf69969601ee01
[ "Apache-2.0" ]
permissive
https://github.com/ethanjperez/convince
53db0bcd978831799c68fe63ecb0c91473ec40c4
ccf60824b28f0ce8ceda44a7ce52a0d117669115
refs/heads/master
2023-01-08T09:12:16.722614
2021-11-03T18:50:30
2021-11-03T18:50:30
205,189,291
27
8
Apache-2.0
false
2023-01-05T22:43:12
2019-08-29T15:03:34
2021-11-03T18:51:00
2023-01-05T22:43:07
108,155
24
6
7
Python
false
false
from typing import Dict, List import warnings import torch from overrides import overrides from allennlp.common import Params from allennlp.common.checks import ConfigurationError from allennlp.data import Vocabulary from allennlp.modules.text_field_embedders.text_field_embedder import TextFieldEmbedder from allennlp...
UTF-8
Python
false
false
8,587
py
840
basic_text_field_embedder.py
586
0.635379
0.634797
0
162
52.006173
109
hyucel/ili9342c_mpy
15,822,659,539,740
96cbcca9b0c666b79f8464a53a442bacd5177524
652f531205a5701205cd6758ee159eb698f9e55a
/examples/M5STACK/rot.py
850144c5926f31075b5c5e03aed4a665158b1207
[ "MIT" ]
permissive
https://github.com/hyucel/ili9342c_mpy
4c8863f2335ec058d1fb4a6bcf78a3993dfea169
4022a8372b586358a3e9a4f45fafe82c1d5469e7
refs/heads/main
2023-06-24T20:00:21.420299
2021-07-21T02:51:30
2021-07-21T02:51:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" fonts.py Pages through all characters of four fonts on the M5Stack Display. """ import utime import random from machine import Pin, SPI import ili9342c import vga1_bold_16x32 as font def main(): tft = ili9342c.ILI9342C( SPI( 2, baudrate=60000000, polarity=1, ...
UTF-8
Python
false
false
1,012
py
20
rot.py
14
0.470356
0.399209
0
53
18.09434
70
Sirius79/fuzzy-logic-controller
4,784,593,613,319
e20dc752ba30debd2c84d3e73ebf6dcacfce799f
e7626895a0832d345f65e408fb54e4d317e7eb35
/Fuzzy logic controller/defuzzify.py
98973a6f5076974a222a433ed062fe60f2ee7d4c
[ "MIT" ]
permissive
https://github.com/Sirius79/fuzzy-logic-controller
761be9b773a8509c3ca472296427b36a8c514014
0b67015eedd25e560d77e1b548a684138e5a7337
refs/heads/master
2020-04-22T16:24:22.626389
2019-02-18T18:13:07
2019-02-18T18:13:07
170,506,554
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def maximum(**kwargs): maxim = 0 max_key = None for key, value in kwargs.items(): if value > maxim: max_key = key maxim = value return max_key, maxim def get_area(fuel): centre = 0 area = 0 if fuel == 0: area = 50 centre = 50 elif fue...
UTF-8
Python
false
false
577
py
6
defuzzify.py
5
0.467938
0.400347
0
29
18.862069
37
Hunter2809/revolt.py
11,562,052,000,549
ccdcdd017fa632b586cdfc1f11c5e6012f40a848
e97251549ad7f2a3d0ecb6d1233d693b20dc02e8
/revolt/server.py
7e0aea25cf918a8849fa85294f329d2be275eb03
[ "MIT" ]
permissive
https://github.com/Hunter2809/revolt.py
541a27c371c1190367534a178595194b053137f9
31fc9b4de6e3007107a149eddae9680417c4c8d8
refs/heads/master
2023-09-01T18:42:42.908895
2021-10-24T17:34:05
2021-10-24T17:34:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING, Optional, cast from .channel import Channel from .permissions import ServerPermissions from .role import Role if TYPE_CHECKING: from .member import Member from .state import State from .types import Server as ServerPayload __all__ = (...
UTF-8
Python
false
false
3,444
py
13
server.py
12
0.55662
0.55662
0
119
27.941176
133
llanesm/life_generator_project
8,091,718,426,853
a3b9b0559ff0a88ed7e78af4e40e826e99c8735e
2de7a12a5d983b5e7ba52b2dbc24af641d45a752
/life-generator.py
a4729ad15614b5502f33cb1d230d336ee0e5810a
[]
no_license
https://github.com/llanesm/life_generator_project
6a54e343d12bf17903b78c6a6badfa1b789ad04a
417fe26da9b8d0bc381db716496596be93cc3d1d
refs/heads/main
2023-03-09T11:23:14.904789
2021-03-01T02:41:24
2021-03-01T02:41:24
338,403,947
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Matthew Llanes # Last Update: 2/28/2021 import csv import sys from tkinter import * from tkinter import ttk import os def search_sort(search_results, top_amount): """ Performs a series of sorts and slices to provide the top toys in given category :param search_results: list of products whose category m...
UTF-8
Python
false
false
10,543
py
2
life-generator.py
1
0.628758
0.624016
0
273
37.619048
115
AchimGoral/DI_Bootcamp
5,274,219,864,861
48558ca97bbaf6d263c09edd405475d08c415fd8
b37fdefb01d7b93a4f56a7c7cc60f9f78549de4c
/DI_Bootcamp/Week_8/Day_3/Exercise_XP/gifapp_root/gif/admin.py
4629c5c5f6b11a9d241a082b372f10ef64e99394
[]
no_license
https://github.com/AchimGoral/DI_Bootcamp
e7b13d7397ab5c9e5ad8041430c8bfbafec13c88
9345731503e2bb298bd3a579ffad590350f13df5
refs/heads/main
2023-04-18T20:06:45.631067
2021-05-01T08:08:45
2021-05-01T08:08:45
328,769,128
0
1
null
false
2021-01-27T14:30:09
2021-01-11T19:24:48
2021-01-27T14:26:29
2021-01-27T14:30:09
20,055
0
0
0
HTML
false
false
from django.contrib import admin from.models import * # Gif(mtm), Category # Register your models here. admin.site.register(Gif) admin.site.register(Category)
UTF-8
Python
false
false
159
py
281
admin.py
154
0.786164
0.786164
0
6
25.666667
41
TerminusEst/E_Field_Calc
300,647,731,619
377f5a530ee2ba08b8682e17c0796bee92d6a74d
24300761c3c8846196600b7111370e5c3fbc6305
/CCMC_analysis_scripts/1_READ_B.py
92a57d33c0e624c5a58798b44cb6c428ce4fb8d5
[]
no_license
https://github.com/TerminusEst/E_Field_Calc
18a9150e4d45c051501ec17fa12ffbb0785f8641
83d533bd8853b3a17e2c38360e6eddd7ad9da534
refs/heads/master
2021-01-23T07:51:16.356803
2019-04-10T15:28:03
2019-04-10T15:28:03
80,513,869
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from draco import EField as ef import aacgmv2 import matplotlib.dates as mdates #/usr/bin/ffmpeg -r 30 -f image2 -i %03d.png -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -vcodec libx264 -crf 10 -pix_fmt yuv420p 2003_11_20_Scan.mp4 ##################################################################################...
UTF-8
Python
false
false
5,149
py
26
1_READ_B.py
22
0.550204
0.51408
0
139
35.647482
145
nohtanoj/autorubric
12,206,297,104,092
f99459d6795b6758ba8500cc0192e17aed1d1533
5053aca9fc86fcc372446f5339df7137f598d64e
/autorubric/rubric/proc_data.py
91627bed185554107a3787b92521746d7301a058
[]
no_license
https://github.com/nohtanoj/autorubric
d795dac4369a79838052d72d4e8e5f203098a9a6
54b7b65c50bd28474fb08be8548ca0c8b65b239a
refs/heads/master
2020-04-10T14:53:29.711742
2019-05-16T15:07:34
2019-05-16T15:07:34
161,090,576
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Process response and reference data files """ from rubric.utils import normalize import collections import csv EMAIL_COL_RESPONSES = 'Email Address' def proc_responses(fname, problem, students=None): """ Generate valid and invalid submissions (in terms of compilability) for a particular problem. ...
UTF-8
Python
false
false
4,411
py
27
proc_data.py
26
0.560871
0.55951
0
116
37.025862
109
dambergn-codefellows/py401_data-structures-and-algorithms
2,516,850,874,253
df2369ff2d0330ef45c1ddd3e076d51303e386b5
c328b3fdcffbe7dc879e5304358aef2cd8061cfb
/challenges/array_shift/test_array_shift.py
2816917f172bc05eeccf79b3fdbe5bcf65c26ef3
[ "MIT" ]
permissive
https://github.com/dambergn-codefellows/py401_data-structures-and-algorithms
35652237173192a0b1779310a351df0ec77ae930
64ca78a70c9de8bee37459481eb8ce0d359b1bb8
refs/heads/master
2020-03-26T06:43:56.841490
2018-09-28T20:50:01
2018-09-28T20:50:01
144,619,223
0
0
MIT
false
2018-09-28T20:50:02
2018-08-13T18:36:39
2018-09-06T06:36:55
2018-09-28T20:50:02
22,833
0
0
0
Python
false
null
from .array_shift import insertShiftArray import pytest def test_array_array_module_exists(): assert insertShiftArray def test_array_add_middle_even(): expected = [1,2,3,4,5] actual = insertShiftArray([1,2,4,5], 3) assert expected == actual def test_array_add_middle_odd(): expected = [1,2,3,4,5,6] act...
UTF-8
Python
false
false
668
py
31
test_array_shift.py
18
0.685629
0.60479
0
30
21.3
47
VorTECHsa/python-sdk
13,305,808,689,364
b84c740e33f367097dcf1a6eec930e682fa41de0
f853366f0f7574610034bf83585269775d3dd03a
/docs/examples/2_crude_from_saudi_arabia_to_india.py
a0708ece0781fa58ee6f2ef42bdbff4a4f450d11
[ "Apache-2.0" ]
permissive
https://github.com/VorTECHsa/python-sdk
0355094bc245bf1b1c9c6f396fadf30196bf6729
f994d6a0c5a87e3e08a0bdec4b5b2cdb9e125c10
refs/heads/master
2023-09-01T21:42:15.633706
2023-08-31T09:14:00
2023-08-31T09:14:00
218,062,510
10
8
Apache-2.0
false
2023-09-14T08:16:26
2019-10-28T14:13:16
2022-12-14T23:07:23
2023-09-14T08:16:25
37,598
19
7
39
Python
false
false
""" Let's find all crude cargo movements from Saudi Arabia to India that loaded in the last month. The below script returns a `pd.DataFrame`, similar to the table given in the movements tab of `https://analytics.vortexa.com`, filtering on `Products: Crude` with `Origin: Saudi Arabia`, `Destination: India` and `Date R...
UTF-8
Python
false
false
4,021
py
231
2_crude_from_saudi_arabia_to_india.py
146
0.687143
0.681671
0
90
43.677778
130
jrying/algorithm_practice
3,315,714,796,205
e053ce850e4e89da6e223e9822a84dcdd2063c24
3c15c260736cafd9e691585fb50512e844345fd5
/codelets/connected_component.py
937fc356964d1735ae387c76bbbe20c040b464d9
[]
no_license
https://github.com/jrying/algorithm_practice
10a94033723144a45cd656aff5562957c8667438
da1ba84e4a552dfefc6ee0079858aa508e8ab2da
refs/heads/master
2020-12-22T07:59:20.211871
2016-08-10T10:53:46
2016-08-10T10:53:46
16,938,384
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import itertools # With library # Without library
UTF-8
Python
false
false
53
py
62
connected_component.py
50
0.754717
0.754717
0
6
7.833333
17