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
veritesomwa/web_browser
12,335,146,122,275
9a4566ac7a6a4830725a825b911a21c29b563548
90336d79e35cd6b9d5f1169ac2c4e6e2514fc16b
/main.py
a88b3e68e4c0a13ad7331e2d4da4ddf78ffaa235
[]
no_license
https://github.com/veritesomwa/web_browser
680db9992f52030f91c0896e962ae37001b73528
859fc89a963f9d58cc07daa208e6b35669e406b2
refs/heads/master
2023-02-23T13:53:56.218092
2021-01-30T17:59:57
2021-01-30T17:59:57
334,477,297
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from PyQt5.QtWidgets import (QApplication, QFrame, QWidget, QVBoxLayout, QHBoxLayout, QStackedLayout, QPushButton, QLineEdit, QTabBar, QLabel) from PyQt5.QtCore import * from PyQt5.QtGui import QIcon, QImage, QFont import sys, os from PyQt5.QtWebEngineWidgets...
UTF-8
Python
false
false
5,794
py
3
main.py
1
0.605109
0.601312
0
198
28.267677
78
AnupKandalkar/ssdb_django_angular_heroku
5,643,587,069,377
12cb9f67e8c51b1927963ba56d20e53678397c88
82b194b063eadfb57d3e3e83b41279c122a33b53
/movies/serializers.py
bc96149241f04df7e3c2f139ca49351bf4174a25
[]
no_license
https://github.com/AnupKandalkar/ssdb_django_angular_heroku
8c02a3a8751ffaf5957895bf4a27add2fe7d004a
91619f128728d42f15e26dd0c57ad36fab1fd79c
refs/heads/master
2021-01-21T21:40:16.190289
2019-01-16T17:36:08
2019-01-16T17:36:08
50,094,286
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import serializers from movies.models import MoviesData, MoviesGenre class MoviesDataSerializer(serializers.ModelSerializer): class Meta: model = MoviesData class MoviesGenreSerializer(serializers.ModelSerializer): class Meta: model = MoviesGenre
UTF-8
Python
false
false
301
py
22
serializers.py
11
0.760797
0.760797
0
11
25.727273
57
JeanMarc-Moly/mugimugi_client_api
12,506,944,809,218
a046654a358040ffe93ebe5a04b13378cdbb3c93
8f05deac11701551448e701108b0e3ba7925d845
/mugimugi_client_api/search_item/author.py
c2f34077f8efe6eab3c5b1964f7e28918998fb01
[]
no_license
https://github.com/JeanMarc-Moly/mugimugi_client_api
0e7d4df3e0bd36586fe86f4b48a045131fdb3809
d566ce5e462108858d2b4960bbd968b8e77e2540
refs/heads/main
2023-06-23T16:31:00.227665
2021-07-21T21:30:57
2021-07-21T21:30:57
376,898,617
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from dataclasses import dataclass from typing import ClassVar from mugimugi_client_api_entity import Author from mugimugi_client_api_entity import SearchAuthor as Root from mugimugi_client_api_entity.enum import ItemType from mugimugi_client_api_entity.enum.element_prefix import ElementPrefix from .abstract import Se...
UTF-8
Python
false
false
505
py
59
author.py
50
0.809901
0.809901
0
16
30.5625
72
young2141/PS_Codes
7,662,221,679,318
b7dc6eb06d6bf674ec774d994a86750e043664f1
a4ee3873ccd4b09a26b9febff9cd1a678dd90cc2
/solved/swea4530.py
0e86a9e243bda6bc2416297050c80f5597fbf826
[]
no_license
https://github.com/young2141/PS_Codes
d37d97d9b92931d27cefcef052a7f3f897ef8e1c
856fe7646d133cfb7e107b05ffe8d03ab8901e2d
refs/heads/master
2023-02-25T19:10:41.890785
2023-02-14T04:16:36
2023-02-14T04:16:36
191,506,351
0
0
null
false
2019-06-14T04:06:42
2019-06-12T05:53:16
2019-06-12T07:46:21
2019-06-14T04:06:42
21
0
0
0
C++
false
false
# sw expert academy 4530 lv4 def calc(num): ret = 0 l = len(str(num)) n = str(num) s = 0 for i in range(l-1, -1, -1): val = int(n[i]) if val > 4 : val -= 1 ret += val * pow(9,s) s += 1 return ret - 1 tc = int(input()) for tc in range(1, tc+1): start, end = map(int,input().split()) if start <0 and ...
UTF-8
Python
false
false
509
py
71
swea4530.py
65
0.528487
0.469548
0
33
14.363636
48
patogc1910/Aprendiendo-Python
8,083,128,452,497
d641e7281c99716bc6d4dca78df2920e13175dcc
e8c7a31821c018dad0db63883e2ea3dacddb37d4
/Conversiones.py
72409795b3962bae486cf48d9747e09e7ee3e12b
[]
no_license
https://github.com/patogc1910/Aprendiendo-Python
e466467c368b15720fea6682ad8d0ee1e2cf5319
da542ac738c0aee40d9bb157efcd0a7a781461f0
refs/heads/master
2020-07-25T16:49:28.706303
2019-09-21T04:48:17
2019-09-21T04:48:17
208,360,714
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Valor = "1234" print(type(Valor)) #Gracias al operador type nos ayuda que tipo de valor es entero,decimal etcc... Valor = int(1234) print(type(Valor)) Valor = "1234" print(len(str(Valor))) Entrada = "Numero Que Utilizamos {}" print(Entrada.format(Valor)) #Jose Patricio Gomez Calderon #1852897 #Fecha:14/09/2019 ...
UTF-8
Python
false
false
329
py
11
Conversiones.py
10
0.699088
0.617021
0
16
18.9375
98
srnoglu1/python-study
4,157,528,390,824
b8b972697211f87d31db97b5a73c8c150cb7e24d
53a11da69af60f6f49927d0f4871cf7767390812
/list-comprehension.py
bac23cee29b2413170a5dbd829d84094b6c8d7fb
[]
no_license
https://github.com/srnoglu1/python-study
4770e588bcc726a4721747f4209ae17659af986b
5734c44994f5280cd58b51151724399b9b510171
refs/heads/master
2023-03-22T03:11:34.463481
2021-03-08T11:48:17
2021-03-08T11:48:17
337,135,206
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
list1 =[10,8,30,12,4,56] numbers = [] for i in list1: i *= 2 numbers.append(i) print(i) name = ["Ahmet","Mehmet","Gonca","Başak","Elif"] result = [c.upper() for c in name] result = [str(number) for number in list1] result = [i.lower() for i in name] print(result)
UTF-8
Python
false
false
280
py
24
list-comprehension.py
24
0.609319
0.55914
0
14
18.928571
48
TeamMacLean/model_scripts
7,713,761,293,638
c7fe0cd26a87b25c689c2fb8e4aeece8870cf099
13fd447d20c703e4c72d6da2e9d98e2e0fc04a0b
/plotting/clusterV.py
cd23940330818944e500db160889381ab9e823a6
[]
no_license
https://github.com/TeamMacLean/model_scripts
f06f1be8459ca41ab002efccf329d48a46e953f4
83312d35de65f54c052ca4a18186703fe9b0d38e
refs/heads/master
2021-01-22T19:31:34.479684
2016-02-25T16:49:45
2016-02-25T16:49:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#changing notebook file to have a single python script that can run on the cluster import matplotlib import numpy as np import matplotlib.pyplot as plt import argparse ###* import os ###* ###*#%matplotlib inline ###*pwd import pickle ###*import numpy as np ###*import matplotlib.pyplot as plt import matplotlib.ticker a...
UTF-8
Python
false
false
22,087
py
37
clusterV.py
15
0.560149
0.529225
0
781
27.28041
147
WeltonKing/Lockbox
6,339,371,736,095
3fdb9c5634b342a89b7230d49852fbd0bf7143dd
e9f1d1dc96f04a712ae98e8bd56ba4573c4f9846
/classes.py
f83d46beb1b1353f5f99b22f036edf702c75fbb9
[]
no_license
https://github.com/WeltonKing/Lockbox
3804daa4508c3e50519b82fabe804debdd8552c0
fb5fb04d029d3133ae4bced8b9fcaca7d8fa6978
refs/heads/master
2022-12-23T17:47:48.311232
2020-10-01T16:26:04
2020-10-01T16:26:04
292,721,698
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' project: Lockbox file: classes.py authors: david rademacher & welton king v desc: contains class definitions ''' from enum import Enum # states of the program class states(Enum): START_UP = 0 MAIN_MENU = 1 DISPLAY = 2 # account messages class msgs(Enum): PASS_INCORRECT = 0 NAME_MISSING = 1 ...
UTF-8
Python
false
false
663
py
7
classes.py
6
0.598793
0.589744
0
35
17.942857
52
fruffy/iroko
19,224,273,644,067
2390df932c5987605f8c2cc0df0b0f759dea46e4
22e1c8f460a75e2f4ce77fb3fd9bba04113fc77b
/DataCenterGym/DataCenterGym/__init__.py
3f8765ed86692b50107b06ca8d674ab51c814066
[]
no_license
https://github.com/fruffy/iroko
c69b9273c23c64a749921c11d37ba07cc4d11157
5641e99a69c803d202737ca81f710c14e6e9f35c
refs/heads/master
2018-10-15T08:52:46.401525
2018-10-14T20:06:27
2018-10-14T20:06:27
105,965,046
0
1
null
false
2018-10-27T07:17:04
2017-10-06T03:47:57
2018-10-27T02:58:41
2018-10-27T07:17:04
109,365
0
1
1
Python
false
null
from gym.envs.registration import register register( id='DataCenter-v0', entry_point='DataCenterGym.envs:DCEnv' )
UTF-8
Python
false
false
139
py
40
__init__.py
36
0.654676
0.647482
0
6
22.166667
46
notnews/archive_news_cc
11,940,009,097,200
af4aaa3316dfd0a86e9eaf6edd8aea517bb48bb2
f44f4f7831de79d51158733ce2aa6a1d8dae9378
/scripts/scrape_archive_org.py
efbef121f0ab951c2d5b4eac1f5fb40b22d4af4a
[ "MIT" ]
permissive
https://github.com/notnews/archive_news_cc
a6f6db716026b750921d8c6d971831a708030d5c
469979c3dbdcf901eca87c8ebba4f328b73bcdd2
refs/heads/master
2023-06-26T21:24:20.128614
2023-06-11T23:13:56
2023-06-11T23:14:20
112,410,624
42
5
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import optparse #import csv import pandas as pd import gzip import time #import xml.parsers.expat import requests #from bs4 import BeautifulSoup import concurrent.futures import logging import os logging.basicConfig(level=logging.INFO, ...
UTF-8
Python
false
false
4,853
py
57
scrape_archive_org.py
3
0.562127
0.554708
0
159
29.522013
100
dmytrov/gaussianprocess
11,321,533,829,951
26b11950c5ec47ed92f86883656006d98d5df426
7a3c194356437db110671ad163f03df1344a5e87
/code/validation/generate/learn_dynamic_mp.py
b912f7d006722a06054ace8e506f3f14db4e9b3f
[ "MIT" ]
permissive
https://github.com/dmytrov/gaussianprocess
6b181afdb989415ec929197cdb20efee571ebbcc
7044bd2d66f44e10656fee17e94fdee0c24c70bb
refs/heads/master
2022-12-08T22:23:11.850861
2020-09-14T19:37:33
2020-09-14T19:37:33
295,513,701
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import time import numpy as np import dmp.discretedmp as ddmp from validation.common import * import validation.generate.common as vgc class DMPLearner(vgc.ModelLerner): def __init__(self, dirname, param, args): super(DMPLearner, self).__init__(dirname, param, args) self.load_data() ...
UTF-8
Python
false
false
2,136
py
114
learn_dynamic_mp.py
108
0.580993
0.577247
0
63
32.857143
82
osterburg/ML_models
9,938,554,359,972
07640eb62c10d296e8b69024e4cc72c0597d7e8d
252a31d1064c83f103f330fa123b40675afd924c
/UNet/main.py
b6ba9c2de6d152cf3e5b6f059f0c8959ff39d83c
[ "MIT" ]
permissive
https://github.com/osterburg/ML_models
f483043d05bf6b6ab4ca0737b7c0c567360338d6
d09d2603092f3274592b88af30572fbdd9f771ed
refs/heads/master
2020-06-19T20:28:15.182345
2019-07-14T13:14:25
2019-07-14T13:14:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse import model def get_parser(): """ Set hyper parameters for training UNet. """ parser = argparse.ArgumentParser() parser.add_argument('-e', '--epoch', type=int, default=100) parser.add_argument('-lr', '--learning_rate', type=float, default=0.0001) parser.add_argument('-tr', '--train_rate'...
UTF-8
Python
false
false
711
py
6
main.py
4
0.624473
0.59775
0
23
29.956522
75
nan0te/Python-Algorithm-And-DataStructure
12,738,873,000,367
d617bf4391c07ca54e76b70420b2c51b6d841693
72f908b64b74b3a861a64e78f4250d35bd57186d
/POO punto 1/Figura.py
a1b3a64851840eaea34521af35bd3cbc73cb16b8
[ "MIT" ]
permissive
https://github.com/nan0te/Python-Algorithm-And-DataStructure
9060811b39ba9c647b6fa3a84567624e02d7fee6
7b7802b56d397c38f230f5efb687cedc6cc263f3
refs/heads/master
2023-04-22T21:28:53.381880
2021-04-27T06:05:59
2021-04-27T06:05:59
290,072,444
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Figura: def __init__(self, nombre, color): self.name = nombre self.color = color def mostrar(self): pass
UTF-8
Python
false
false
149
py
33
Figura.py
31
0.530201
0.530201
0
7
19.571429
38
jcreinhold/intensity-normalization
15,899,968,969,876
95d8ba0a75b8f9f5680d88e2c56c786c46afe528
a2a7506038b69541523f98f2f98613d731ad2acf
/intensity_normalization/cli/preprocess.py
493fcb78deffddae3e8bb6487dd997dcc5d1e83d
[ "Apache-2.0" ]
permissive
https://github.com/jcreinhold/intensity-normalization
163e3ed26ea80acef1513e448b7fef78a2c6ddf2
ce53748bb6b6721acad031d3b98a2e8f9921e4c6
refs/heads/master
2023-06-10T03:25:17.287607
2023-05-31T21:03:26
2023-05-31T21:03:26
136,844,850
283
62
NOASSERTION
false
2022-02-25T22:59:54
2018-06-10T21:05:58
2022-02-17T14:54:50
2022-02-25T22:59:54
1,771
214
43
9
Python
false
false
"""CLI for MR image preprocessor Author: Jacob Reinhold <jcreinhold@gmail.com> Created on: 13 Oct 2021 """ __all__ = ["preprocess_main", "preprocess_parser"] from intensity_normalization.util.preprocess import Preprocessor # main functions and parsers for CLI preprocess_parser = Preprocessor.parser() preprocess_main...
UTF-8
Python
false
false
360
py
57
preprocess.py
34
0.777778
0.761111
0
12
29
64
sloww/checklist
8,332,236,577,737
02361a0a7d94d8ad760ab620f253417b8e8ab28d
b2d8fcfcf3604e255f0dee55d04944316680efd4
/admin.py
65230e912f99ccb8bf1c7ec98501568e02b3e96d
[]
no_license
https://github.com/sloww/checklist
19923e61506d3aad36c91df011aabbc850d229ef
ea1d1d470c4eaef7fec59cb9258f066e0d90357e
refs/heads/master
2021-05-06T22:51:02.585903
2017-12-04T13:37:46
2017-12-04T13:37:46
112,867,836
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Company, User, Template, Equipment ,Record, CheckPoint,Team, RecordPoint from v1.admin import admin_site from searchadmin.admin import SelectModelAdmin # class DataMasterAdmin(SelectModelAdmin): ##25 search_fields = ('title','remark','distributor',) #26 ...
UTF-8
Python
false
false
1,017
py
5
admin.py
4
0.709931
0.695182
0
32
30.78125
94
PhillipNordwall/gpggen
11,802,570,147,412
8f305c7890c877193f6a0e7ee46c9e7afd083b75
b28809e411d5646c1472140fee20087330fb10b2
/gpggen/__init__.py
58e140e36bae8e45c99cc13315ed6db1df53f2d9
[ "MIT" ]
permissive
https://github.com/PhillipNordwall/gpggen
fd2ee2ac0cd482620984e40e622ba95af96b41da
98806b3b75bd955dc9591f0c630f90aebc614d49
refs/heads/master
2020-12-24T10:32:39.252326
2017-10-29T05:41:29
2017-10-29T05:41:29
73,152,969
0
0
null
false
2017-10-29T05:41:30
2016-11-08T05:39:16
2016-11-08T05:49:55
2017-10-29T05:41:30
7
0
0
0
Python
false
null
"""gpggen provides the capability of calling out to gpg to generate keys, and check for a matching hex "word" """ import os import re import signal import subprocess import sys OUTDIR = b"out" WORDS = (b'BAD', b'DAD', b'DEAD', b'BEEF', b'FACE', b'1337', b'1234', b'([BDF])00\1', b'FB5D', b'2600', b'...
UTF-8
Python
false
false
3,109
py
4
__init__.py
2
0.581216
0.571888
0
109
27.522936
77
dataduce/sparkle_api
2,216,203,125,529
1a4cf52c3497bdfc90f93ecf56e452f31c9b5b09
f4192f2e42989fdd6d03b9f7357cb06046df131c
/src/quizzing/models.py
603e72fcbe0da1f9b44c768bb418543a43889789
[ "MIT" ]
permissive
https://github.com/dataduce/sparkle_api
f333c584bfedc3b3aa10326758149000a8c5231c
bba3edf67ff5defec9f812513c4ee62572ecca8e
refs/heads/master
2022-03-23T08:57:18.575913
2019-12-08T22:19:49
2019-12-08T22:19:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models import uuid, secrets def create_secret_id(): return secrets.token_urlsafe(24) class Quiz(models.Model): name = models.CharField(max_length=255) description = models.TextField() def get_questions(self): return self.question_set.all() def __str__(self): ...
UTF-8
Python
false
false
1,848
py
7
models.py
5
0.679654
0.664502
0
60
29.783333
127
leetcode-notes/daily-algorithms-practice
2,963,527,470,166
33ee789086ae8b78a9738322dfe6dd217393fcc0
487c45df5fcbe7fdf6df5a348f6fe163bbb22033
/hackercup/recursive.py
33fe9818f3c33264b194f1aee20d5467d69c3185
[ "Unlicense" ]
permissive
https://github.com/leetcode-notes/daily-algorithms-practice
dba03ac1c55262f6bae7d5aa4dac590c3c067e75
2a03499ed0b403d79f6c8451c9a839991b23e188
refs/heads/master
2023-06-18T14:14:58.770797
2021-07-12T05:27:32
2021-07-12T05:27:32
264,057,786
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def solve(n, inbound, outbound): p = [["N"]*n for _ in range(n)] for i in range(n): p[i][i] = 'Y' i = 0 while i < n: for row in p: for j in range(i+1, n): if row[j-1] == 'N': break if row[j-1] == 'Y' and inbound[j] == 'Y' a...
UTF-8
Python
false
false
1,567
py
208
recursive.py
202
0.403957
0.383535
0
67
22.38806
82
LeoLozano10/Tema-2_Estructura_De_Datos
13,649,406,097,967
ce70dd31fc3b3668a5225f2f62ac069576cc2c17
6adac488e9eefaf69733ff8a3cc1e3a9835277ad
/Monedas/CambiodeMonedas.py
df1abe2f55724799feb5443d1901415a37db6ec7
[]
no_license
https://github.com/LeoLozano10/Tema-2_Estructura_De_Datos
141acc4fe60fe36e6d1862dab8d9c4836989468f
c01c4dd5a59738d1e85de655f099011c4c8111b9
refs/heads/master
2020-03-31T14:02:58.859146
2018-10-09T15:24:38
2018-10-09T15:24:38
152,277,713
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
dinero = int(input("Cantidad:")) uno = dinero // 200 restouno = dinero % 200 dos = restouno // 100 restodos = restouno % 100 tres = restodos // 50 restotres = restodos % 50 cuatro = restotres // 20 restocuatro = restotres % 20 cinco = restocuatro // 10 restocinco = restocuatro % 10 seis = restocinco // 5 restoseis = r...
UTF-8
Python
false
false
885
py
3
CambiodeMonedas.py
2
0.654237
0.59209
0
31
27.580645
56
smherold4/ucsd-metabolomics-phenotype-data
17,231,408,814,243
36374de6186d26cc6cb973344cfbb165b9229e0e
292f7157a243ce66972af13494f93625024b4fbd
/requirements-linux.py
7e50a3774629e208883c204d2c8319f52e295272
[]
no_license
https://github.com/smherold4/ucsd-metabolomics-phenotype-data
d76383583790547f013d12618313fb48b55de427
86d1397218162dd9c6bd784c1ab81bf8d1564f67
refs/heads/master
2022-07-07T05:46:05.748602
2019-11-27T16:39:53
2019-11-27T16:39:53
197,568,397
1
0
null
false
2021-06-01T23:58:35
2019-07-18T10:47:12
2020-03-21T19:12:22
2021-06-01T23:58:33
311
1
0
5
Python
false
false
astroid==1.6.6 backports.functools-lru-cache==1.5 certifi==2019.6.16 configparser==3.7.4 defusedxml==0.5.0 elasticsearch==6.4.0 enum34==1.1.6 futures==3.3.0 isort==4.3.21 lazy-object-proxy==1.4.1 mccabe==0.6.1 netifaces==0.10.4 numpy==1.16.4 pandas==0.24.2 pandasticsearch==0.5.3 pipenv==2018.11.26 psycopg2-binary==2.8....
UTF-8
Python
false
false
586
py
42
requirements-linux.py
33
0.713311
0.505119
0
32
17.3125
34
Qboi123/Qplay-Bubbles-Alpha
18,614,388,284,960
0bd1bb525b5bc013781fcc4ce67f7111c0a6052b
2c62eced6b0364d6546514c727382c37619651f6
/string2.py
9fc665f58f9753969253b8535127e9e3f1e0cf68
[]
no_license
https://github.com/Qboi123/Qplay-Bubbles-Alpha
77c222cf82132c6d3c1a9005c8a6fd86b4ac629c
4c3ffe1f6400a545236ca0bfd386c6f7613dfb86
refs/heads/master
2022-11-22T00:54:26.296218
2022-11-15T16:20:03
2022-11-15T16:20:03
230,899,952
0
0
null
false
2022-11-15T16:20:04
2019-12-30T11:00:02
2022-10-27T21:39:32
2022-11-15T16:20:03
135,267
0
0
0
Python
false
false
join = str.join split = str.split splitLines = str.splitlines encode = str.encode index = str.index count = str.count replace = str.replace isDecimal = str.isdecimal isDigit = str.isdigit isNumeric = str.isnumeric isAlpha = str.isalpha isAlphabetic = str.isalpha isAlNum = str.isalnum isAlphaNumeric = str.i...
UTF-8
Python
false
false
956
py
56
string2.py
36
0.736402
0.736402
0
40
21.9
31
Parallel-in-Time/pySDC
9,766,755,645,552
7bc348ed2a6e54aadf3c89c0910b9a31f6e5ce4f
7fdac5209f86de756b9a8123a0911b70738eceeb
/pySDC/projects/deprecated/node_failure/postproc_hard_faults_test.py
3fbfe745676dad9e2a45fa84d4194b777c3d0609
[ "BSD-2-Clause" ]
permissive
https://github.com/Parallel-in-Time/pySDC
edc66e399f6066effc5aaa376883e88e06b5332b
1a51834bedffd4472e344bed28f4d766614b1537
refs/heads/master
2023-08-30T23:17:56.017934
2023-08-30T05:42:00
2023-08-30T05:42:00
26,165,004
30
31
BSD-2-Clause
false
2023-09-14T06:40:13
2014-11-04T10:56:53
2023-09-09T12:35:16
2023-09-14T06:40:11
350,235
27
30
19
Jupyter Notebook
false
false
import matplotlib.pyplot as plt import numpy as np from pylab import rcParams # import os def create_plots(setup, cwd=''): """ Function to create heatmaps for faults at different steps and iterations Args: setup (str): name of the setup (heat or advection) cwd: current working directory...
UTF-8
Python
false
false
2,887
py
617
postproc_hard_faults_test.py
475
0.568756
0.555594
0
96
29.072917
90
sal-uva/data-journalisme
16,638,703,314,512
9a9c968ba4fdde73902679caa3e5383f2f8e357e
c748c150c09ff5fde9e52490302f13169770ead8
/racisme-in-nederland/scrapeTweedeKamer.py
401d41ef127d73df73c77bbb0d9cf0db0266ec25
[]
no_license
https://github.com/sal-uva/data-journalisme
29403d0f1d7d43987e278b765af8e5b1d938a15d
a5b740a555aa3b1cea1b1029ad0374696e648444
refs/heads/master
2020-07-30T02:42:37.962247
2019-10-08T12:18:45
2019-10-08T12:18:45
210,059,642
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sqlite3 import pandas as pd import io import os import urllib.request, json import untangle import time import ssl import xmltodict import pickle as p from TweedeKamerToCsv import TweedeKamerToCsv from xml.parsers.expat import ExpatError from bs4 import BeautifulSoup user_agent = 'Mozilla/5.0 (Windows NT 6.1; W...
UTF-8
Python
false
false
10,822
py
37
scrapeTweedeKamer.py
24
0.652435
0.636078
0
369
28.327913
168
kics/pysample
8,684,423,913,272
9e59c729e129285d27abbf8f1744f5b74b24a021
af71382848705c8ba1a6514adcd03539b420f0ff
/3rd_party/solrpy/time_sort.py
21f2950c6858a4a3cdfb8b28661d10e85aa7fee9
[]
no_license
https://github.com/kics/pysample
7269dc5c9cc537650b6a864be2d751fc3eeb248c
687ce6e5cdfc39df770363f01c5242bea51bc7ff
refs/heads/master
2016-08-06T09:37:25.918037
2014-05-15T23:14:02
2014-05-15T23:14:02
14,380,759
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python #coding:utf8 # Created: 2013-11-06 # import timeit setup=''' import solr as solrpy solr = solrpy.Solr('http://localhost:8983/solr/shinsho_jawiki') res = solr.select(q="*:*",qt='tvrh',tv='true',tv_tf='true',rows=1,fields=[u'text',u'id']) word_list = [(key,tvs) for key,tvs in res.termVectors.items() ...
UTF-8
Python
true
false
830
py
345
time_sort.py
309
0.66506
0.620482
0
27
29.703704
129
YPCrumble/python-amazon-paapi
7,808,250,578,960
4332fb89bed05f24c407f03c17fd998d3afdcedb
8a064480709e9144f67cb5aec799b4a13719b3ec
/amazon_paapi/models/variations_result.py
f22cfcd5ecf7acd1c968965356a5d7ce232275db
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
https://github.com/YPCrumble/python-amazon-paapi
352312601ebf2a16efe79d270303d600e92a6627
4aa9c7597123580eed24bf1ec9bacee0fedeb8a0
refs/heads/master
2022-11-03T01:32:29.324826
2022-09-22T18:38:57
2022-09-22T18:38:57
246,726,325
0
0
MIT
true
2020-03-12T02:33:49
2020-03-12T02:33:48
2020-03-11T23:48:57
2020-03-11T21:53:42
180
0
0
0
null
false
false
from typing import List from .item_result import Item from ..sdk.models import VariationsResult, VariationSummary class ApiPrice: amount: float currency: str display_amount: str class ApiVariationDimension: display_name: str name: str values: List[str] class ApiVariationPrice: highest_p...
UTF-8
Python
false
false
645
py
62
variations_result.py
51
0.755039
0.755039
0
30
20.5
59
lotharhill/LRecruitMatcher
4,011,499,492,445
26caa022c35aff69059b2a703f9206e60b5fc302
709da7521a12998757908b1216f6249e7c7eaefd
/recruit/matcher/migrations/0008_interview.py
5b5aa8c0201c39f3e42e0de3f2eda8ab196fccc7
[]
no_license
https://github.com/lotharhill/LRecruitMatcher
126922d065b5326dd8796ad2e6eda7285d30e8dd
164cf129d2b6b7ebb426c417a1e5fe6e132b6d0e
refs/heads/master
2021-01-23T06:55:40.721393
2017-01-31T05:13:23
2017-01-31T05:13:23
80,494,694
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-03 03:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('matcher', '0007_position...
UTF-8
Python
false
false
1,366
py
31
0008_interview.py
14
0.597365
0.576135
0
34
39.176471
119
kylehennig/wec2019
9,259,949,506,580
ac3e9a00db1d7203d48851d021dcdcd24185edab
8be07459b70e0edeb84d1173c75d4f3748eabd7a
/bot/bot_client.py
53038296f0228b016c15e702780f847f85c71492
[]
no_license
https://github.com/kylehennig/wec2019
112fd64eab2fba5df20e14b6c8c4437db47eeb68
7472f7e37b7e70678bf180941a2983c640814fe3
refs/heads/master
2020-04-17T08:31:37.802035
2019-01-24T16:06:19
2019-01-24T16:06:19
166,415,965
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import tornado.ioloop from bot.bot import make_move from bot.web_socket_client import WebSocketClient from server.board import Board from server.message import Message class BotClient(WebSocketClient): """Handles websockets for bots""" def __init__(self, url, size): super().__init__(url)...
UTF-8
Python
false
false
1,735
py
14
bot_client.py
12
0.5683
0.561383
0
57
29.438596
75
garystafford/aws-iot-analytics-demo
10,608,569,240,840
bcb34b257ba244c0751b1608de2dc22c52a886d6
601fc8d8405334555d6fec832f9b7b7e6673ab8c
/device_scripts/MQ.py
8c66faa1078dd07d2e04711baa809c960879e984
[ "MIT" ]
permissive
https://github.com/garystafford/aws-iot-analytics-demo
96f825642dd4c5cd638613adb0277baae22ea1fe
5aaa4f9456764a7f1e7ebe964670fb430ea36154
refs/heads/master
2022-12-04T13:57:05.232535
2020-08-27T20:33:14
2020-08-27T20:33:14
279,300,653
13
10
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import time from MCP3008 import MCP3008 # References: # https://tutorials-raspberrypi.com/configure-and-read-out-the-raspberry-pi-gas-sensor-mq-x/ # http://sandboxelectronics.com/?p=165 class MQ: ######################### Hardware Related Macros ######################### MQ_PIN = 0 # define wh...
UTF-8
Python
false
false
6,923
py
12
MQ.py
5
0.565217
0.545139
0
138
49.15942
108
cipriancus/CloudComputing
13,752,485,312,296
dccc7c0c960abe12eaf16441f36cfb2f0a52bdef
95b6aaac1e3f01c54fa8bf6a54ccdd83cfc79dd2
/Laboratorul1/main.py
7062cfcee8f0c34b18dd787f0472086859185abd
[]
no_license
https://github.com/cipriancus/CloudComputing
2fbc6e4de74914c51dd09d78b23986680bf0b682
3e85b84c2d76d986f3081eb6e33b7e400d0a8f05
refs/heads/master
2022-03-07T08:56:26.803068
2022-02-21T15:04:34
2022-02-21T15:04:34
83,019,212
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import urllib import json from urllib import request city_dict={'Iasi':'675810','Suceava':'665849','Vaslui':'663118','Covasna':'680428'} city_name=input('Name of City') AppKEY ="99bc216d5e4421eeb06fbbb0e974427d" urlManagement = 'http://api.openweathermap.org/data/2.5/forecast/city?id='+city_dict[city_name]+'&APPID='...
UTF-8
Python
false
false
484
py
10
main.py
7
0.731405
0.63843
0
17
27.470588
112
tmjnow/python-for-everybody-2
3,418,793,968,295
6d871b4634764b59ce16963da7054ddad6142ea2
30023deca629b86add099dfe12d8eedd5ea26223
/3-web-data/ch11/11_0.py
f017d4405721c670a07a245c025db49af398eb5b
[]
no_license
https://github.com/tmjnow/python-for-everybody-2
6302d95a693eb347283769d662dd28bb1161fc45
2485e1513b2e7a717c15d2e1d53bee7d630dc3d1
refs/heads/master
2021-06-06T14:05:32.147585
2016-05-18T13:10:39
2016-05-18T13:10:39
105,756,476
0
1
null
true
2017-10-04T10:33:54
2017-10-04T10:33:54
2016-05-13T03:44:31
2016-05-18T13:11:11
690
0
0
0
null
null
null
# Regular Expressions ''' Quick Guide ^ Matches the beginning of a line $ Matches the end of the line . Matches any character \s Matches whitespace \S Matches any non-whitespace character * Repeats a character zero or more times *? Repeats a character zero or more...
UTF-8
Python
false
false
3,035
py
45
11_0.py
42
0.627348
0.613509
0
125
23.152
76
jason-gill00/LibraryManagementSystem
10,608,569,242,454
b70120d58eff0a478fd9e9c351a7f37a6ea89bb5
08ac6dcb06689c49421c4c0edd9bdc84d9ecdcc6
/client/CreateAccount.py
c17bed35c70885cd3f7ce3acae8090e7d25b34c6
[]
no_license
https://github.com/jason-gill00/LibraryManagementSystem
4f0041d4e6b9c620a7c5b3ed5d85e2877e872012
488510b180a95cdafd5a7a2bed357ae4275e7b41
refs/heads/main
2023-05-31T13:18:13.140862
2021-06-25T19:18:56
2021-06-25T19:18:56
380,326,179
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import * from tkinter import ttk from PIL import ImageTk, Image from tkinter import messagebox import cx_Oracle class CreateAccount: def __init__(self, root): self.root = root self.root.title("Create an Account") self.root.geometry("1350x700+0+0") self.root.config(bg=...
UTF-8
Python
false
false
5,561
py
10
CreateAccount.py
9
0.607804
0.545046
0
118
46.127119
204
altlinuxteam/domain-test
7,164,005,457,537
b273fad824a3573822b30a9837f1639a5b7bf960
3c0236baa0457a1efded1ee1d8cac29f04fdecb0
/util/diag/diag.py
d20d1c935fcfa3d5c7683d93681eb959538fa960
[]
no_license
https://github.com/altlinuxteam/domain-test
7f09439a6e21a96c0bf35ebf588fac730a95b1fa
129f0437f84d74dff72fb74b95df198092d2006b
refs/heads/master
2021-01-08T00:46:14.141024
2020-05-10T08:59:48
2020-05-10T08:59:48
241,865,245
0
0
null
false
2020-04-13T10:01:39
2020-02-20T11:17:43
2020-03-03T10:55:46
2020-04-13T10:01:38
37
0
0
0
Python
false
false
# # samba-itest - utility to diagnose domain controller problems # # Copyright (C) 2019-2020 BaseALT Ltd. # # 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 License, or # ...
UTF-8
Python
false
false
2,942
py
32
diag.py
6
0.600612
0.597553
0
83
34.433735
98
wangjcStrive/FlaskDemo
16,226,386,463,248
26a8678ded14f90df7d52f9734d0b379c9e15a54
48f8a13f5c4fbddaa21729d31692b03b9018b106
/watchlist/DataBase/DailyTaskDB.py
f6045ff7ff1da1dcd0ccadcf79bc22b759fd2d64
[]
no_license
https://github.com/wangjcStrive/FlaskDemo
082dd0974d1926f8cb74b7d558d0fc552ed4bf86
ff8ca0dfe34081a3c946c283d51ae1462b46b8bc
refs/heads/master
2022-12-01T18:08:53.643289
2020-08-17T03:03:31
2020-08-17T03:03:31
280,406,761
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pyodbc conn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=JICWANG1-E7470\MYSQL;DATABASE=DailyTask;UID=sa;PWD=LMwjc7922!') cursor = conn.cursor()
UTF-8
Python
false
false
172
py
8
DailyTaskDB.py
5
0.773256
0.709302
0
4
41.75
132
Aasthaengg/IBMdataset
14,482,629,761,626
383c91c589d612341b65e7bc394dab9da8101a53
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03393/s309528444.py
b7a857f0558b7ba41983e68539a43c68b3e8f418
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from string import ascii_lowercase def main(): word = input() if len(word) < 26: count = {} for a in ascii_lowercase: count[a] = 0 for w in word: count[w] += 1 count_l = list(count.items()) count_l.sort(key=lambda x: x[0]) add = "" ...
UTF-8
Python
false
false
916
py
202,060
s309528444.py
202,055
0.427948
0.408297
0
35
25.142857
75
nadsi96/Alba_Manager
17,257,178,601,782
1223d79c941658814a990b3fa1837a843292a5a5
64fe153ae1adba2be340c7148c45ed5ee63bc2be
/settings_frame/manage_wage/manage_payroll.py
7271969e6e06faa63ad7e20883ef813aa1f555d6
[]
no_license
https://github.com/nadsi96/Alba_Manager
c7b2a71890041cee803ea8d2f3a0847c50329b77
befde731582924e8e600b2f46fd80e0b9b97d83f
refs/heads/master
2023-08-14T18:34:58.581780
2021-10-17T08:26:40
2021-10-17T08:26:40
329,536,738
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import * from UI import btn_menu from settings_frame.manage_wage.payroll_book import payroll_book_query from settings_frame.manage_wage.analysis import analysis_wage class Manage_Payroll(btn_menu.Btn_Menu): def __init__(self, parent): super().__init__(parent, "Manage_Payroll") ...
UTF-8
Python
false
false
1,143
py
52
manage_payroll.py
51
0.620444
0.620444
0
34
32.117647
83
KSARATH22/project
10,428,180,622,575
dfe89448ae440e3869c167413113b25fcf144c9b
501a3a1628493eceabe76ad5e9910d87d04c3fee
/hospital2project/hospital2app/migrations/0001_initial.py
1ce342c861a641ea243b9833dc4da188e43e7817
[]
no_license
https://github.com/KSARATH22/project
6d2ff886c4fe6a1bc49c962e0b2556fc7fc26001
4cdce50f21e8282bb20053b35e2ed874267b0541
refs/heads/master
2020-05-15T22:38:13.891842
2019-04-21T12:34:11
2019-04-21T12:34:11
182,530,821
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2 on 2019-04-21 12:23 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ContactData', fields=[ ('id', models.AutoFiel...
UTF-8
Python
false
false
3,634
py
10
0001_initial.py
6
0.521464
0.50055
0
87
40.770115
114
chepe4pi/rest-app-example
13,460,427,530,516
21c05154db1c3eb4e03baffdc3a33a0d39ccdea1
95a3237c467e2ba63390cdcf7b0c0e0fc488ee05
/interview/urls.py
65b6468e70fc3cfef64b9fc6cc322fac2b3ba19d
[]
no_license
https://github.com/chepe4pi/rest-app-example
672484b1f8acda232202a6bab29912179dc499f1
2825d9ab117f7237ed38b47d8cfa3f99cb261fc2
refs/heads/master
2021-07-15T01:51:17.894159
2017-10-17T08:15:32
2017-10-17T08:15:32
107,237,066
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from django.contrib import admin from int_order.views import OrderViewSet from int_user_info.views import ScoresViewSet from django.views.generic import TemplateView urlpatterns = [ url(r'^admin/', admin.site.urls), ] urlpatterns_order = [ url('^api/orders/(?P<pk>\d+)/$', Orde...
UTF-8
Python
false
false
742
py
15
urls.py
13
0.698113
0.698113
0
26
27.538462
107
simbha/GAE-appswell
19,189,913,915,192
3e31d5fe0502ab01d3cc0c96bd4d3eb1521dd916
bb3df8c53dd2c954a2f536dcdf31963732a2a175
/appspot/project/controllers/demo_controller.py
5a32f1a11d5ec0abe5a6b94d93a8a8fec8ae6605
[ "MIT" ]
permissive
https://github.com/simbha/GAE-appswell
a9081d55818e825a2d4d4ff731cab72478e5ba1c
3090df26624a31c0ad4a5a80cbba80a864a8565b
refs/heads/master
2020-05-19T17:10:55.889402
2013-10-04T04:01:53
2013-10-04T04:01:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Demo Controller NOTES self.Html is a helper class for generating output """ # # IMPORTS # # Python Standard Library import sys, os, logging, inspect from random import randint, sample from pprint import pformat from decimal import Decimal from os.path import dirname, join as osjoin from datetime im...
UTF-8
Python
false
false
29,198
py
62
demo_controller.py
33
0.571272
0.564593
0
803
35.361146
218
sergiolucero/ppp
13,056,700,599,211
920e328189c96ea81622394e12a1574dacf67175
5e6871ff97cef787317d9f4b4c47cef83f5b4a27
/SCRIPTS/blade.py
a08e5a4aa0d4e88a1f5c269690e8160a0b0f2daa
[]
no_license
https://github.com/sergiolucero/ppp
c47c3f9be93307f5f414712755570180a7e33adc
ff32448cd77cc31e2936294c8f5bf9ff731dbce1
refs/heads/master
2023-04-05T21:31:12.246550
2021-05-06T09:40:35
2021-05-06T09:40:35
339,729,969
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from lenin import * for level in ['R','C','L','M']: k=Klass(f'{level}:Presi') print(' LEVEL:', level, 'N=', len(k.data)) k.train()
UTF-8
Python
false
false
147
py
52
blade.py
23
0.517007
0.517007
0
6
23.5
49
emresvm/191216011_yusufemre_sevim_odev1
7,456,063,262,510
b4ab86d9c86e3658e19c6d24f85babd8353d6b03
45513f4dce00589832336be61d2a4a50e67f337e
/191216011_yusufemre_sevim_odev1_kod.py.py
5ae7d6a374a09548db8e98abb20bbadbfd1888c1
[]
no_license
https://github.com/emresvm/191216011_yusufemre_sevim_odev1
4be817624251d2bdbd338c1dbb04a42f0b262413
e8f189bea29429643888bafe89d10fe4285a28b4
refs/heads/master
2020-09-09T01:13:36.907149
2019-11-12T20:03:36
2019-11-12T20:03:36
221,299,152
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
başlık = ("***Hesap makinesi***") print(başlık) işlemler =""" 1 -Toplama İşlemi \t + 2 -Çıkarma İşlemi \t - 3 -Çarpma İşlemi \t * 4 -Bölme İşlemi \t / """ print(işlemler) while True: soru = input("Lütfen yapmak istediğiniz işlem numarasını giriniz (Uygulamadan çıkmak için x'e basınız ..)\t :") i...
UTF-8
Python
false
false
1,692
py
1
191216011_yusufemre_sevim_odev1_kod.py.py
1
0.506454
0.481868
0
57
27.54386
115
oliabhi/Machine-Learning
7,533,372,648,079
7576cd7ab5691eccef6c7c0c8ab49e2da006af74
841791c9a0afbe56a93e5e5f89ab770f3f4e3901
/Boosting/XGBRegressor.py
d59ff475a6f16987df3867a760cfa9cb4218ede5
[]
no_license
https://github.com/oliabhi/Machine-Learning
75f9956ed3060193f51275454bdeead43f607032
49d018c7f1d7f78a3089e59793c42a337fc448d3
refs/heads/main
2023-07-12T06:05:15.753097
2021-08-15T03:36:37
2021-08-15T03:36:37
388,693,379
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np df = pd.read_csv("G:/Statistics (Python)/Cases/Real Estate/Housing.csv") dum_df = pd.get_dummies(df.iloc[:,1:11], drop_first=True) from sklearn.model_selection import train_test_split X = dum_df y = df.iloc[:,0] # Create training and test sets X_train, X_test, y_tra...
UTF-8
Python
false
false
1,647
py
48
XGBRegressor.py
43
0.625379
0.5932
0
54
28.5
75
evaldobratti/played_with_me
7,395,933,693,447
c83812feb132f101226065770bf28674dbf4205a
e251626c54cbd44f3b087b639d038303cb3a165f
/web_app/tasks.py
57f81106fdd79eff92953ca5bf6253f84eaccac4
[]
no_license
https://github.com/evaldobratti/played_with_me
635dbd2333d8a7f08d7eeed4ebb1018af597d650
d29e73c611354ab1ccf53b68f4ad5bda35d80ee9
refs/heads/master
2020-05-29T20:15:38.030603
2015-06-08T00:04:48
2015-06-08T00:04:48
34,880,714
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from models import * from huey.djhuey import crontab, periodic_task, db_task import logging log = logging.getLogger('pwm_logger') @db_task() def download_games(account_id): log.info("requisitando download de " + str(account_id)) last_match_id = None while True: try: log.info("acc: {} ...
UTF-8
Python
false
false
1,256
py
21
tasks.py
11
0.562102
0.561306
0
30
40.866667
108
pspratling/Speech-Recognition
6,116,033,430,712
ae2b6ecfaf6ee67c27bc1781f10318c9cfc7e6ab
83636925813a056eef13969101d06f822093e489
/speech_recognition/data/get_silence_data.py
a7595f7c8ec3498007b9ee005b6742a7c4bb7691
[ "MIT" ]
permissive
https://github.com/pspratling/Speech-Recognition
dffec30394dcb26d940b9a6563fda231e82f60b2
9712a2e6c6e1574d79fbbaa99b37eb3131848019
refs/heads/master
2020-03-26T00:38:02.750577
2018-10-14T20:59:55
2018-10-14T20:59:55
144,329,114
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import numpy as np import librosa #all clips are sampled with samplerate=16000 SAMPLERATE = 16000 def extract_clip(filename, duration, offset): """ Extracts 1 second clip from a given file filename: background noise filename to extract from duration: length of the background noise audio...
UTF-8
Python
false
false
1,965
py
9
get_silence_data.py
4
0.659542
0.644784
0
56
34.107143
103
lambdamax/storage
2,697,239,466,348
8cb2224769f72a3763592fca6d7c83338d8230ee
b103e401fbc0c7eb35257cb555c1e16831ac481c
/migrations/versions/b041e63868e3_init03.py
a9abdded36f9e118d95409bf47daa941812fc805
[]
no_license
https://github.com/lambdamax/storage
581f4899735f169e4bd07aa7499737b3988b2229
2bfa0f48e9e56715dc4387b4c971e1d61a68b2b6
refs/heads/master
2023-09-01T09:31:11.804470
2017-12-01T15:23:46
2017-12-01T15:23:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""'init03' Revision ID: b041e63868e3 Revises: bf8c66e884b3 Create Date: 2017-11-09 13:56:23.089000 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b041e63868e3' down_revision = 'bf8c66e884b3' branch_labels = None depends_on = None def upgrade(): # ### c...
UTF-8
Python
false
false
670
py
10
b041e63868e3_init03.py
6
0.683582
0.602985
0
28
22.928571
89
Arkansas-Department-of-Transportation/sirGISTools
10,058,813,457,063
009b42164b9f48d4ce52b879800b31cc7ac9f45b
48e7ff73974770d57c8e7429d0a709cea78833ab
/RoadInv_ARNOLD_reconcilation.py
312e93b3210c25e06ec3c02ad3a16a15ef530e37
[]
no_license
https://github.com/Arkansas-Department-of-Transportation/sirGISTools
bdc426ecb8fce56e569fd6e742d1209edf581ddf
e59fc00dd812e65dfa71ed5c8af4d4b20cde38bb
refs/heads/master
2020-12-04T04:22:16.627174
2020-01-03T15:19:06
2020-01-03T15:19:06
231,609,844
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import arcpy #input layers #Definition query down to the County in both the road inventory and the ARNOLD dataset, Handel only one county at a time #definition query will be handeled on the table layer level roadInventoryLayer = "" ARNOLDLayer = "" outpath = "C:\\scratch\\test.csv" multiplicationFactor = 10000 roadI...
UTF-8
Python
false
false
3,316
py
5
RoadInv_ARNOLD_reconcilation.py
2
0.695115
0.687877
0
90
35.844444
163
srgsoroka/PT1
9,929,964,409,659
bd7ff0386aba9a94ddc386fae1ba5c39018394ca
863c1f53e5001466acad95a6f66dacfd3af9ad91
/2days/hello19.py
b694411d849671acd80112f6bcec11e8016fa3e5
[]
no_license
https://github.com/srgsoroka/PT1
ab8f0f166e8b9505c2977cf736dde34b46bb9076
9987e1e8df011b1a14eca57b4e7269f9106b41d8
refs/heads/master
2020-07-23T10:20:39.474604
2019-09-23T14:23:38
2019-09-23T14:23:38
207,526,317
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def f(x): return 2 * x print(f(2)) double = f print(double(3)) def execute(f, x): return f(x) print(execute(double, 23)) def f(): def g(x): return 2 * x return g double = f() double print(double(44)) print(f()(44))
UTF-8
Python
false
false
254
py
34
hello19.py
34
0.53937
0.5
0
30
7.433333
26
ekg/beats
5,660,766,912,743
cb52d67d791a07c54134fe6d6eda737f4d4244f7
a22c2b25ae78467dfae3642b3133028d4b8736b3
/code/xgood.py
3e4f1e824b49b8fd74a41bc631876183941a36d6
[]
no_license
https://github.com/ekg/beats
93462080f266bb03ba7127c550ccc96cbe25fd60
d32d3ffb983e6a313093cf64628c8d540119d1ce
refs/heads/master
2021-06-19T12:34:26.696391
2019-10-05T22:23:03
2019-10-05T22:23:03
137,067,949
6
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Scale.default.set('minorPentatonic') tuning='ET12' Root.default.set(-2) d1 >> play("x-o- ").every(3, "stutter", cycle=5) kk >> keys((P[0:4],2+P[0:4],4+P[0:4]),amp=0.8,oct=3,dur=P[3,1,3,1,1])
UTF-8
Python
false
false
194
py
64
xgood.py
63
0.603093
0.489691
0
6
31.166667
69
LeoAndo/work
10,041,633,547,450
a9b7d3b12d1710c5f918121be7f58cf7e0580329
a4b73e20fd36e1f0943240319fea2ad161c0cf0c
/src/training/python/withdraw.py
9e1d6b4770af0e3fbfe23be493ef99a0a98f5305
[ "Apache-2.0" ]
permissive
https://github.com/LeoAndo/work
cbc19bab3b1f5d742a6b958cb28adbca308cd50c
23b15e68c91d28872129a43ad8e53ffd93321a7f
refs/heads/master
2020-04-30T15:47:56.944325
2020-04-30T12:03:48
2020-04-30T12:03:48
176,930,277
2
0
Apache-2.0
false
2020-12-21T10:12:29
2019-03-21T11:22:32
2020-12-21T09:28:09
2020-12-21T10:12:29
224,042
2
0
57
Kotlin
false
false
print('==============================') print('threading test') # マルチスレッド処理 import threading lock = threading.Lock() # ロックオブジェクトを作成 balance = 0 # 残高格納変数 def withdraw_with_confirm(money): global balance # 残高変数を書き換えるためにglobal宣言 lock.acquire() # ここからロックのかかった処理 try: if balance >= money: #残高足りてるか? ...
UTF-8
Python
false
false
1,277
py
261
withdraw.py
82
0.569585
0.55576
0
44
23.613636
50
mbway/intelligent-robotics
919,123,037,726
a388a54ab7d804fc8af3000812b7b5689516f4de
36b972c3b14d4bdffb1e31ff8dc23615a4d3a589
/exercise1/src/tests/odometry.py
4dc1dfe16cef1bb7f5091cc6e0fd2425e93e9b19
[]
no_license
https://github.com/mbway/intelligent-robotics
8699fada7f64c9eb8b59e82e7586bbe062049b89
fc2aaef934e95023bdfe2bc40619f53bc6b21caa
refs/heads/master
2018-12-20T14:46:35.728227
2017-03-27T22:02:43
2017-03-27T22:02:43
69,690,930
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import rospy import roslib # Messages from nav_msgs.msg import Odometry #from geometry_msgs.msg import Point, Quaternion def odometry_callback(msg): print msg.pose.pose print msg.twist.twist if __name__ == '__main__': rospy.init_node('odometry', anonymous=True) rospy.Subscri...
UTF-8
Python
false
false
379
py
2,987
odometry.py
85
0.701847
0.701847
0
20
17.9
57
matt-bowen/SHIVIR
19,387,482,382,272
1f1b5cb9867fa25fb8290db089d35279111d7745
51e252c95d7351eef0508e2a461acf3222c5d30f
/galfitcreate.py
fa79f827ba8545b603e17e53ab98751adbcf97ee
[]
no_license
https://github.com/matt-bowen/SHIVIR
dd19a690b594374795df56f35b6ab054b1ed90fe
bf97c3cc58297c926c38f35d71b70a91cc71cebb
refs/heads/master
2020-04-07T05:18:36.557897
2018-03-20T17:49:07
2018-03-20T17:49:07
124,184,041
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 13 12:14:06 2018 @author: matt """ import re import sys def processDecomp(galaxy): decomp = open("/home/matt/Thesis/Files From Kevin/decompositionValues.txt",'r') for line in decomp: if re.match(galaxy+"((?!plus|minus).*)",...
UTF-8
Python
false
false
4,910
py
12
galfitcreate.py
8
0.580041
0.552138
0
127
37.653543
165
DRAGON-NOOB/Maxx-ShowMore-Bot
5,600,637,374,548
3e964cbfbe50104efaefb4e1107f3a3fe5afdea4
719c2001a8dcafb2911539753de5561be2191a1e
/const/CONFIG.py
4ddc2c00db96d7f843a60bef1f6e45569443bb45
[]
no_license
https://github.com/DRAGON-NOOB/Maxx-ShowMore-Bot
a5d6dee4045ad34cca7fa57c2dde5618a4c2a449
0b4ac6fc65ae786507824b0607abee567f0022fc
refs/heads/main
2023-01-03T12:23:42.942285
2020-11-01T18:13:39
2020-11-01T18:13:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
BOT_TOKEN = 'Your Bot Token 🌝' API_ID = your API ID API_HASH = 'create_new_one' FULL_POSTS_CHNLD_ID = -100111 FULL_POSTS_CHNLD_ID_no_100 = 111 # This is where all posts will be saved FULL_CHNL_INVTE_LNK = 'https://t.me/joinchat/NOTaVALIDlink' DEV_ID = 0000
UTF-8
Python
false
false
263
py
3
CONFIG.py
2
0.703846
0.642308
0
9
27.888889
73
jota-info/TCC-IFC-Licence-Plate-Recognition
7,876,970,070,505
35444ed121ad943c3dd66d5d4ee808eb7e9f0e83
77944edfeb5360433b0ccdd48eef238ddd4f2e3b
/Códigos TCC/Testes OpenCV/recortar imagem.py
100234e9d86f4d471cedf82432e1c55be6ad1f1e
[]
no_license
https://github.com/jota-info/TCC-IFC-Licence-Plate-Recognition
7add5b6a5ebb4472cdb2a7aace6997df52f04926
227ab466562795c18afaf7e0a67b7011aa604003
refs/heads/master
2015-09-24T22:33:55.362436
2015-07-09T12:51:24
2015-07-09T12:51:24
38,817,358
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#~ cv2.SetImageROI(frame_gray, box2); #~ cvResize(frame_gray, licenca, CV_INTER_LINEAR); #~ cvResetImageROI(frame_gray);
UTF-8
Python
false
false
121
py
31
recortar imagem.py
16
0.727273
0.710744
0
3
39.333333
50
amrrs/SO_Answers
14,448,269,994,741
be0fef2af92c7ed055294337f430603f871eccfb
ecce417cb478c1f0a7a04e04439a6b9dc4139dd1
/filter_words_with_digits.py
769333282176594a29cb33a5dd201a50deb9562c
[]
no_license
https://github.com/amrrs/SO_Answers
f07e0236bb63832dbf74900e1c25753cd0a00fd0
f3d684cc269873e7703d45d4e6c062190334600b
refs/heads/master
2021-06-27T19:59:53.050669
2019-07-04T18:24:22
2019-07-04T18:24:22
105,772,423
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
c = "Snap-on Power M1302A5 Imperial,IMPRL 0.062IN" only_a = [] for word in c.split(): #print(word) if not bool(re.search('\d',word)): #print(word) only_a.append(word) ' '.join(only_a) any([word.isdigit() for word in c.split()])
UTF-8
Python
false
false
253
py
42
filter_words_with_digits.py
39
0.596838
0.561265
0
10
24.3
50
neptunedays9/text-analysis-py
8,950,711,852,282
16432fda90beffb7c479aba781c95f7e208b9645
d581a0509b59a32e471fe82838247ab4545f0dd1
/character_filter.py
a75be701e46bd2ad2952b4711ecb48a91383930f
[]
no_license
https://github.com/neptunedays9/text-analysis-py
f25d3bb3b6908da6faeed0a50c61b781500d75db
d4a8b9cfd702d5016f3bd9f6379d97ecaedfd2ae
refs/heads/master
2021-04-16T14:39:41.844912
2020-04-26T12:05:14
2020-04-26T12:05:14
249,363,208
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re def remove_unwanted_characters(text_array): # print(text_array) text_array_new = [] for t in text_array: if len(t) > 1: t = re.sub('[^A-Za-z0-9]+', '', t) text_array_new.append(t) return text_array_new
UTF-8
Python
false
false
263
py
12
character_filter.py
11
0.539924
0.528517
0
13
19.307692
46
westonsankey/DSBA6100-PatentProject
16,020,228,045,254
4202a703d5bf42f3ba7b03f602818798995bdf81
37664e6eda5cdfe386420bf2dcacf209f9851713
/class_entity.py
73603679d2cc8a12bf6e1382ae1d636ed5c0f908
[]
no_license
https://github.com/westonsankey/DSBA6100-PatentProject
16593a3d80ebf3d20b0adcfb5ecb2e6b53c25196
ab222911a7e7eecc4c4d0137847e949ec1b81505
refs/heads/master
2018-01-11T21:02:39.579564
2015-11-08T15:35:20
2015-11-08T15:35:20
44,880,352
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import defaultdict from alchemyapi import AlchemyAPI import json alchemyapi = AlchemyAPI() CLASSES_TO_PROCESS = ['SEMICONDUCTOR DEVICE MANUFACTURING', 'ACTIVE SOLID-STATE DEVICES (E.G., TRANSISTORS, SOLID-STATE DIODES)', 'MULTIPLEX COMMUNICATIONS', 'COMPUTER GRAPHICS PROCESS...
UTF-8
Python
false
false
1,960
py
5
class_entity.py
4
0.691327
0.689286
0
60
31.683333
77
tschamm/boschshc-hass
19,292,993,100,853
42ed49179b94157cbca9c12ae44183e87249ca20
2c794efaf2a462c15943d356d50255a61c79d94f
/custom_components/bosch_shc/number.py
6285d053bbfebc8fac8f1082b2596897ad1cd3d3
[ "Apache-2.0" ]
permissive
https://github.com/tschamm/boschshc-hass
796e07c447e05f1b75791ca3659d18d3d39045db
eb080ab1e95af473471288b483a5f02dd6874cc3
refs/heads/master
2023-05-15T06:01:23.359786
2023-05-05T18:38:51
2023-05-05T18:38:51
232,424,544
91
27
NOASSERTION
false
2023-08-16T08:19:52
2020-01-07T21:53:58
2023-08-11T11:58:12
2023-08-15T21:02:08
718
87
20
19
Python
false
false
"""Platform for switch integration.""" from __future__ import annotations from boschshcpy import SHCThermostat, SHCSession from boschshcpy.device import SHCDevice from homeassistant.components.number import ( NumberDeviceClass, NumberEntity, ) from homeassistant.config_entries import ConfigEntry from homeassi...
UTF-8
Python
false
false
2,866
py
17
number.py
12
0.638172
0.638172
0
94
29.489362
83
zxycode-2020/python_base
1,958,505,122,112
c11c9c6a10d5d7d11bab87939fd7a3b4c02a3ecb
25b6465a0e060087dc432d0abe795fbf85cb873e
/day14/tk/22、绝对布局.py
812125931759cf51238c605c66873273c4420e0c
[]
no_license
https://github.com/zxycode-2020/python_base
ee03dd1a7ef2e98c77082e489c1a5df862ed68bd
ee6a2b6a0a3a0560c7bfd5bcbf93022e945916cd
refs/heads/master
2022-04-20T23:41:04.059228
2020-04-18T10:05:02
2020-04-18T10:05:02
256,716,268
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tkinter win = tkinter.Tk() win.title("sunck") win.geometry("400x400+200+20") label1=tkinter.Label(win,text="good",bg="blue") label2=tkinter.Label(win,text="nice",bg="red") label3=tkinter.Label(win,text="cool",bg="pink") #绝对布局,窗口的变化对位置没有影响 label1.place(x=10, y=10) label2.place(x=50, y=50) label3.p...
UTF-8
Python
false
false
388
py
190
22、绝对布局.py
167
0.688202
0.601124
0
16
20.375
47
clulab/releases
5,832,565,627,107
25c70a2c8d8ba909b10caf5bf3be18af77a2a347
135d096f158ac67e4ca2de670cf63281d363c15e
/lrec2022-odinsynth/python/rl_utils.py
323ea3f9c6360c5917170b8643be79b59c2243fa
[]
no_license
https://github.com/clulab/releases
93ba25af87bbf65feb7141b46befa981df4f608c
60e0c3389724460b5b32ba35c89d8838da4d51c9
refs/heads/master
2023-07-27T10:05:00.494539
2023-07-11T14:09:21
2023-07-11T14:09:21
70,280,616
29
18
null
false
2023-07-11T14:09:23
2016-10-07T20:28:41
2023-07-10T10:52:02
2023-07-11T14:09:22
483,540
29
12
8
TeX
false
false
""" Most of the code is from https://github.com/Curt-Park/rainbow-is-all-you-need There were some modifications to make it suitable for our usecase """ import collections from queryast import AstNode import numpy as np import random import torch # -*- coding: utf-8 -*- """Segment tree for Prioritized Replay Buffer."...
UTF-8
Python
false
false
14,557
py
1,590
rl_utils.py
249
0.574638
0.567425
0
455
30.989011
161
adamgreenhall/openreviewquarterly
19,129,784,349,566
4dd05c568820cb146f192f7a5e64c897e76d07fa
29c6264b6a0ecdf301ebc6bf580520cf3f81a481
/builder/getgoogledoc.py
10dbd4f503504807d63f13882a805ab734733f6f
[ "MIT" ]
permissive
https://github.com/adamgreenhall/openreviewquarterly
1f022be164b6d94a807872cc9286dbfe87796114
8d04fa129a43ed80b1351b1fb1467b8243d1dcdf
refs/heads/master
2020-04-05T23:41:53.697130
2015-09-02T18:54:41
2015-09-02T18:54:41
5,611,451
4
0
null
false
2014-07-16T16:27:10
2012-08-30T06:43:19
2014-06-04T09:27:16
2014-07-16T16:27:10
13,445
2
0
2
Ruby
null
null
#http://code.google.com/apis/documents/docs/1.0/developers_guide_python.html#DownloadingWPDocuments import getpass,logging import sys,os #sys.path.insert(0,'../../code/python/gdata-current/gdata-python-client/src/') #sys.path.append('~/Documents/code/python/') from gdocs3 import client as gclient #from gdata import sp...
UTF-8
Python
false
false
4,836
py
83
getgoogledoc.py
7
0.682589
0.680314
0
119
39.647059
141
EmilyXiong/AIFirseSem
429,496,738,485
2da830d794f78da0c134cb77b5180b826725ff63
088c0e9cc556f97a7ab61a2c2d5d6aa15e554748
/AIClass/PythonLabs/src/Lab02/ex22.py
481349fa422b21b52fa256517a1db082dae2d00d
[]
no_license
https://github.com/EmilyXiong/AIFirseSem
f5ae560fe7aaca55e721759dfe20f51ae8dd3fbc
5b8e1fe74a90f41a3fb3f607a873439945957170
refs/heads/master
2021-04-30T10:31:28.692649
2018-02-13T03:33:59
2018-02-13T03:33:59
121,334,677
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys strInput = sys.argv[1].split() for word in strInput: print (word[::-1])
UTF-8
Python
false
false
87
py
63
ex22.py
60
0.655172
0.632184
0
5
16.6
30
goibibo/pyconhack-mashup
2,362,232,058,116
eb24f5b2f9424fbe49dfecbac237dbb8680e88aa
cdad769f99f8eb68a4ae0bdcef0d3f2904f424d9
/goibibo/airportlist.py
683ad5cb8213f4efe79e8e8e23786dee71973923
[]
no_license
https://github.com/goibibo/pyconhack-mashup
76b49df7569eb11570099c4bb76325e97f78f85d
798fbe3575d839053c160f52623fc262f7f4b52b
refs/heads/master
2016-08-01T00:53:48.634836
2013-11-13T19:32:26
2013-11-13T19:32:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Agartala, IXA Agatti Island, AGX Agra, AGR Ahmedabad, AMD Aizawl, AJL Akola, AKD Allahabad, IXD Amritsar, ATQ Aurangabad, IXU Bagdogra, IXB Bangalore, BLR Belgaum, IXG Bellary, BEP Bhopal, BHO Bhubaneshwar, BBI Bhuj, BHJ Bikaner, BKB Bilaspur, PAB Calicut, CCJ Car Nicobar, CBD Chandigarh, IXC Coimbatore, CJB Cooch Beha...
UTF-8
Python
false
false
1,366
py
11
airportlist.py
8
0.770864
0.770864
0
103
12.262136
18
dvalenza/flask-app-structure2.0
4,123,168,605,371
be99b3df2a65f52195162bfdcfd28a477fc7c379
c1c75b6e163ff5612b5a6133ed59bc5d5b84e923
/myapp/users/forms.py
3ed339ecdfc3d458f8bec6cd6ec3d1e89e7d4133
[]
no_license
https://github.com/dvalenza/flask-app-structure2.0
6870cd6c22a80d67200f09c2b94c001a1e61e49c
8017ce6f84b183a67105ac828e1ba70eb959bc42
refs/heads/master
2020-12-29T01:11:58.093832
2014-12-07T22:24:20
2014-12-07T22:24:20
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask.ext.wtf import Form from wtforms import TextField, PasswordField, SubmitField from wtforms.validators import Required, Length class LoginForm(Form): email = TextField('Email', validators=[Required()]) password = PasswordField('Password', validators=[Required(), Length(min=5)]) submit = SubmitFi...
UTF-8
Python
false
false
604
py
5
forms.py
3
0.728477
0.725166
0
15
39.266667
80
pony999/sentdex
7,756,710,951,889
f32aa50291edc3dfa665bc50e50843767afc3b19
f4a60738d7e3155049a314f9fae99a94960f7d75
/Matplotlib/T11-HandlingUnixTime.py
0b42858945f22ecc1be173be2b4394244e3a6764
[]
no_license
https://github.com/pony999/sentdex
5a8f9163cb353c45b1f362c7fa56cebe0651b8d2
434c387caf8c65fdf78483b54e84b3a379d20c97
refs/heads/master
2021-04-15T04:53:44.333599
2018-06-05T22:22:21
2018-06-05T22:22:21
126,474,607
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Source: https://www.youtube.com/watch?v=aRQxMYoCOuI&index=11&list=PLQVvvaa0QuDfefDfXb9Yf0la1fPDKluPF Tutorial 11: Handling Unix Time """ import datetime as dt import time import numpy as np example = time.time() print(example) # print current unix time print(...
UTF-8
Python
false
false
506
py
35
T11-HandlingUnixTime.py
30
0.667984
0.652174
0
20
24.3
96
FrancineU/Flask_Project3
10,488,310,161,474
a5d127db3325706d48a26d0be1444bf226e8e592
e42a1fd45e1d634d6392a616190414c4ab5c2bbb
/tests/test_pitch.py
3367c928ae8f3e95a3e762457aae80c763397e60
[]
no_license
https://github.com/FrancineU/Flask_Project3
ae9a711bd2e00b238911d87e501b39e6ce3fbf63
004ba315f660f3be2bc790f2e6c880eb82af4ff3
refs/heads/master
2023-04-04T07:34:34.524377
2021-03-31T19:48:14
2021-03-31T19:48:14
353,472,017
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from ..models import Pitch from .. import db class PitchTest(unittest.TestCase): ''' A class to test CRUD operation on Pitch Model ''' def SetUp(self): self.new_pitch = Pitch(project_name = "Hello World", pitch_description = "blablablabla blaalbal") def create_pitch_test(s...
UTF-8
Python
false
false
550
py
9
test_pitch.py
6
0.656364
0.656364
0
17
30.823529
105
miguelangelgordillo/ejemplo1
11,639,361,412,722
f1fb426e54eb07f0da03d106b94d466d8160d066
f2266a75409bb1cd5321497015c501c8f54d0461
/ejemplo1.py
8963578eb338b675ce757d3fcbce58d644b2c848
[]
no_license
https://github.com/miguelangelgordillo/ejemplo1
46365084fd71d95bf8988ed78219568934e7d6a7
e460b5cf6feac7ecc1707eadee5d5f84fc9d55bb
refs/heads/master
2021-01-10T06:31:02.906098
2015-10-02T07:24:03
2015-10-02T07:24:03
43,540,315
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'miguel' palabras=["abc","xd","crm","zl","xb"] listax=[] listas=[] for letra in palabras: if letra[0] =="x": listax.append(letra) else: listas.append(letra) lista_final= sorted(listax) + sorted(listas) print lista_final
UTF-8
Python
false
false
258
py
2
ejemplo1.py
2
0.612403
0.608527
0
13
18.923077
44
tushar-rishav/Apeksha
3,444,563,798,800
1f2bf16d31016bff13a2d03767282b54042b1bda
b62d10a3efbc50db39307afcd1d93f9b447c14dc
/app/routes.py
2a0c5aa497fdcd68e03ffa6cf51d500c1c7fac9c
[]
no_license
https://github.com/tushar-rishav/Apeksha
9e64ddb11c361c1ef32c394faa9cbcc06c94f331
e4f04fc15026c149e51a22103547f3854703fd91
refs/heads/master
2021-01-10T03:01:55.372007
2017-10-24T17:35:16
2017-10-25T19:58:28
49,715,267
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from app import App from flask import render_template, request, flash, session, url_for, redirect from forms import SigninForm import datetime as dt from models import db, Respon class Date(object): end_time = dt.datetime(2017, 10, 25, 17, 32, 0, 0) def __init__(self): pass track = Date() subj_questio...
UTF-8
Python
false
false
4,790
py
11
routes.py
4
0.564301
0.549061
0
146
31.808219
130
1234567890boo/ywviktor
11,613,591,616,095
606a81a812a38ea0c6f53e889eb71c56d7c23e9c
32aa592fc3b7376b8fb36c0ac2245e6571fb7bdd
/maze_game/classes/empty.py
d1df86dab7fde1a7c9e6440b3160d50fdebcefd1
[]
no_license
https://github.com/1234567890boo/ywviktor
00063a1c58b392cb4230791a9cffced6d2864889
12b18887243e9b64fb08db4ad440c7144bdf8cbb
refs/heads/master
2022-05-14T12:43:43.422329
2022-04-30T04:24:05
2022-04-30T04:24:05
57,740,866
0
0
null
false
2020-06-29T00:22:12
2016-05-01T18:48:27
2020-06-29T00:21:34
2020-06-29T00:21:32
1,360
0
0
0
Python
false
false
from classes.gridobj import * class Empty(GridObj): def kind(self): return "Empty" def draw(self,screen,x,y,width,height): pass def canMoveInto(self, obj): return True
UTF-8
Python
false
false
205
py
171
empty.py
130
0.62439
0.62439
0
9
21.777778
43
BenaroyaResearch/bripipetools
2,946,347,612,714
f836ea5c17830864292919fc514a7f2968df47ec
efb09be1bacad1be6b12d539433299725c11a21d
/tests/test_submission.py
9b739ce0f2f25fb0b6744cfe77880b92a98acd04
[ "MIT" ]
permissive
https://github.com/BenaroyaResearch/bripipetools
92dad1bd39b4c709d9deb7727b91c9e20b9fd0fc
5ee23751b0f28a17baaf0428fe18af8c50b341db
refs/heads/master
2023-02-17T15:34:43.777561
2023-02-13T20:11:49
2023-02-13T20:11:49
48,504,657
3
0
MIT
false
2023-02-13T20:11:51
2015-12-23T18:13:54
2022-03-29T21:24:37
2023-02-13T20:11:49
91,852
1
0
17
HTML
false
false
import logging import os import re import datetime import mock import mongomock import pytest from bripipetools import annotation from bripipetools import submission logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) @pytest.fixture(scope='function') def mock_db(): # GIVEN a mock_ed ...
UTF-8
Python
false
false
41,188
py
297
test_submission.py
93
0.558755
0.516
0
1,099
36.477707
99
andreofner/torchsim
7,121,055,788,571
ebc99ebddc2f2ecec3b46040b9a4d3ec9e621248
5c00b0626b4ec2bc428e565c97b4afc355198cc4
/torchsim/core/nodes/simple_bouncing_ball_node.py
7ed3e3458819917f274d9ce0bb6e09bfd658e672
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
https://github.com/andreofner/torchsim
8cff778a324d4f7dc040f11a12d0dc8cd66375b7
81d72b82ec96948c26d292d709f18c9c77a17ba4
refs/heads/master
2021-10-24T05:25:33.740521
2019-03-22T10:20:00
2019-03-22T10:20:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import copy import logging from dataclasses import dataclass, field from enum import Enum import numpy as np import torch from torchsim.core.graph.node_base import EmptyInputs from torchsim.core.graph.slot_container import MemoryBlocks from torchsim.core.graph.unit import Unit from torchsim.core.graph.worker_node_bas...
UTF-8
Python
false
false
16,088
py
632
simple_bouncing_ball_node.py
592
0.598023
0.58814
0
424
36.943396
137
TGITS/programming-workouts
3,161,095,934,942
175b7a3ea2591ba9fb48c72eb2fb5da2103a54fa
9aca898ee664a0188d0e27d33dfe37da9b50bcc9
/erri/python/lesson_30/dice.py
fd69a49b98105d930e2e524bb265aaf44eb57ed0
[ "MIT" ]
permissive
https://github.com/TGITS/programming-workouts
2ffc9fe4d1d472063e1af95115198553265581c9
1ceeab4fc84cf5502d7f78b35bc421d719fe8484
refs/heads/master
2023-07-25T18:31:51.028052
2023-07-10T12:47:20
2023-07-10T12:47:20
80,997,078
0
0
MIT
false
2023-09-06T20:28:49
2017-02-05T14:09:57
2021-11-26T11:30:09
2023-09-06T20:28:48
16,081
0
1
20
HTML
false
false
from random import randint class Dice: def __init__(self, faces): self.faces = faces def roll(self): return randint(1, self.faces)
UTF-8
Python
false
false
159
py
1,094
dice.py
450
0.603774
0.597484
0
10
14.9
37
QSuHack/Dataqset
16,947,940,950,583
30ce30ea645141ddc4eeb970f6b66709a2931e35
45fd789f2588659f4eb6fecc10f3b6d321823dfe
/x64/Release/aes.py
0a6c4b1e2970b8501f81346408ce550e10ec9417
[ "MIT" ]
permissive
https://github.com/QSuHack/Dataqset
4b765d68ebbfba8291bd537b56e86ce393b714fa
19be1d14e9293eb28e2d9c7e72cff557531bb4e1
refs/heads/master
2022-10-29T10:06:20.395420
2019-04-23T23:22:57
2019-04-23T23:22:57
176,785,640
2
1
MIT
false
2022-10-25T19:20:55
2019-03-20T17:37:19
2019-05-15T16:05:00
2019-04-23T23:22:57
68,580
1
1
1
Python
false
false
import pyaes import os import hashlib def szyfruj(nazwa_pliku_do_zaszyfrowania, klucz): file_in = open(nazwa_pliku_do_zaszyfrowania, 'rb') klucz = hashlib.sha256(klucz).digest()[:32] file_out = open('tmp.txt', 'wb+') mode = pyaes.AESModeOfOperationCTR(klucz) pyaes.encrypt_stream(mode, file_in, fil...
UTF-8
Python
false
false
1,274
py
16
aes.py
10
0.641287
0.633438
0
37
33.432432
81
Clinical-Genomics/cg
1,005,022,378,232
48fd303e6c7e2952ad347ec1206cb0c27bc75d61
88994e2e840a70ec702cee09e1a13813aa6f800c
/alembic/versions/fab30255b84f_move_synopsis_to_case.py
1116d1666d881a909493a4a3341166ecd4c0a82e
[]
no_license
https://github.com/Clinical-Genomics/cg
1e9eb0852f742d555a48e8696914ebe177f7d436
d2ec6d25b577dd6938bbf92317aeff1d6b3c5b08
refs/heads/master
2023-09-01T02:04:04.229120
2023-08-31T13:50:31
2023-08-31T13:50:31
82,567,026
19
8
null
false
2023-09-14T15:24:13
2017-02-20T14:29:43
2023-09-04T08:52:50
2023-09-14T15:24:11
19,839
5
2
149
Python
false
false
"""move_synopsis_to_case Revision ID: fab30255b84f Revises: 432379a1adfa Create Date: 2021-02-17 17:43:47.102289 """ from typing import List from alembic import op import sqlalchemy as sa from sqlalchemy import orm from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() # revision identi...
UTF-8
Python
false
false
4,507
py
859
fab30255b84f_move_synopsis_to_case.py
761
0.66075
0.647881
0
134
32.634328
95
MRSNOO/nguyennhatquang-fundamental-c4t4
12,824,772,380,739
bb366866dac6e2a570cb6d5809340ea3c9f9c370
2a712fa9047892ccb033e93db0cdd9084b0fc086
/Fundamentals/Session01/Session01class/hello_world.py
560c9f7a19cd309629e90ded80f73350a652db3d
[]
no_license
https://github.com/MRSNOO/nguyennhatquang-fundamental-c4t4
f20fbe145b82e16b9aff9bfb70572cd4c003297d
feb199d9de1a0edb79f132631584eb8e13464369
refs/heads/master
2020-03-21T08:00:48.399362
2019-03-17T11:55:14
2019-03-17T11:55:14
138,313,946
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
print("Hello") # name= input("what's your name?") # print("Hi",name)
UTF-8
Python
false
false
71
py
200
hello_world.py
95
0.605634
0.605634
0
4
16.5
34
microsoft/knowledge-extraction-recipes-forms
1,769,526,565,383
5c2cb1e7f169c06cefe773e0313cab7c519871a2
ea890e0db720028312e4587477aabe15893e5154
/Analysis/Form_Layout_Clustering/src/common.py
ecb5f2f153a9021e4f9a47366c4041ce2bf77984
[ "MIT", "BSD-3-Clause", "LGPL-2.1-or-later", "Apache-2.0" ]
permissive
https://github.com/microsoft/knowledge-extraction-recipes-forms
18a7fcc0f6c13e76985d6e291dbc3b093477fc9d
edded8e8076322684336cc3d90f75859987100cc
refs/heads/master
2023-08-22T13:28:05.257078
2023-07-18T08:14:33
2023-07-18T08:14:33
259,083,417
145
47
MIT
false
2023-08-02T02:23:03
2020-04-26T16:49:19
2023-07-25T00:00:07
2023-08-02T02:23:02
85,242
194
45
14
Jupyter Notebook
false
false
from PIL import Image from PIL.PngImagePlugin import PngImageFile from PIL.PpmImagePlugin import PpmImageFile def get_image(image, clr_mode='L'): """Wrapper to retrieve and convert (color mode) PIL.Image object. Args: image (str or PIL.Image): Expects PIL.Image object or string path to im...
UTF-8
Python
false
false
1,434
py
325
common.py
126
0.611576
0.605997
0
52
26.576923
72
samyk/TwistedProxy
14,010,183,354,797
cb1be9509a6731f964c4a94ee1f45fcf3d787e59
09d983c80632bd863ddcf3440ca7594d7bdc99a5
/TCP/Crypto.py
922b9ab00eb4e675438a66875511708f4f4daa41
[]
no_license
https://github.com/samyk/TwistedProxy
32bd3425e42bc224628993c024b2128ea1929995
49b26b918721c0d26f6ec1b67da3ad5b8cad31c5
refs/heads/master
2020-04-07T06:03:05.287773
2018-11-22T06:28:57
2018-11-22T06:28:57
158,120,574
21
4
null
true
2018-11-18T19:45:59
2018-11-18T19:45:59
2018-11-10T22:07:07
2018-10-20T08:58:34
159
0
0
0
null
false
null
# -*- coding: utf-8 -*- import os from TCP._tweetnacl import ( crypto_box_afternm, crypto_box_beforenm, crypto_scalarmult_base, crypto_box_open_afternm ) from TCP.Nonce import No...
UTF-8
Python
false
false
3,444
py
22
Crypto.py
19
0.577526
0.54065
0
101
33.09901
139
alshobaki2/shobakiPython
4,827,543,247,747
19503106ccb405ab0d9f41d6ab8b506dd399fac1
2d331d264815aef2690e63193c3213730c806dcf
/extractTableNames2018.py
c274cf141ac0b983512829331bc4925f5a8d9719
[]
no_license
https://github.com/alshobaki2/shobakiPython
5f8cf35848fb55af32e03a95e4d390ed62fda152
93974bb1e93b7633770cdd3bcc705216f9088dc7
refs/heads/master
2020-04-16T12:47:27.956052
2019-01-14T06:42:16
2019-01-14T06:42:16
165,596,251
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pyodbc import pandas import re import os #TableName = 'XXPOS_ADJ_DETAILS' cnxn = pyodbc.connect("Driver={SQL Server Native Client 11.0};" "Server=192.168.40.50,17001;" "Database=UMDW;" "UID=ETL_USER;" "PWD=pass@word1;" ...
UTF-8
Python
false
false
1,072
py
12
extractTableNames2018.py
11
0.612873
0.593284
0
32
32.53125
120
hyesungoh/dino_history
15,556,371,558,762
4e848c42163937b233c3d1b813a9330c3d0374b1
95a1f698b1d8b7c2578d5306481f506751b0452e
/dino_history/user/migrations/0010_auto_20201017_1724.py
1c74232e75dbe42dc211dedbb9e61534c4d8aab0
[]
no_license
https://github.com/hyesungoh/dino_history
45130bf8aa984282c90fa2b241401d0c038968e6
e5f50a8b83ff445c627302af2e6ca893ef8a4af2
refs/heads/master
2023-01-07T14:43:28.643160
2020-10-26T12:48:01
2020-10-26T12:48:01
284,934,718
0
0
null
false
2020-08-24T12:10:33
2020-08-04T09:26:13
2020-08-20T18:26:26
2020-08-24T12:10:32
15,343
0
0
0
Python
false
false
# Generated by Django 2.2.4 on 2020-10-17 17:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0009_student_exp'), ] operations = [ migrations.AlterField( model_name='student', name='exp', fi...
UTF-8
Python
false
false
373
py
39
0010_auto_20201017_1724.py
22
0.576408
0.522788
0
18
19.722222
49
Mirrorkirby/313E-Spring-2014-Grading-Scripts
2,396,591,798,249
f429b4bfcd08ed349effc3175a538c2babd27982
22ea43c168d6bc35848ae1179d3829ee671af35c
/assignment_12/assignment_12.py
55ffaa86991fd43a0b1ac5a244d1e39a29ac3914
[]
no_license
https://github.com/Mirrorkirby/313E-Spring-2014-Grading-Scripts
9652fe801aa0d89aff570b66fd6910b50281dbf6
89d1fd09f44b2af2662556e28797bfebd39af16a
refs/heads/master
2021-01-02T22:39:51.278623
2014-05-07T17:53:02
2014-05-07T17:53:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from os.path import os, exists from datetime import datetime, timedelta from functools import * import math import subprocess import sys import re import difflib import time pipes = {'stdout':subprocess.PIPE, 'stdin':subprocess.PIPE, 'stderr':subprocess.PIPE} outputFilename = 'assignment_12.txt' outputFile = open(out...
UTF-8
Python
false
false
6,386
py
35
assignment_12.py
17
0.581741
0.561228
0
228
27.008772
162
verilyw/SR_Framework
10,350,871,220,653
b057117b2119902e9738270aee075475718fada9
f3a84ece8b0e95afb913cbb3b6312bb18677978a
/sr_framework/article_helper/article_utils.py
212323d5e39f2fa1db94c6b438334bf2e1c26587
[]
no_license
https://github.com/verilyw/SR_Framework
c7350b26554bdda0e63da96db4bb08f86b35f2c2
46e1c256e79c4865ef47321a18a474736f625c2e
refs/heads/master
2023-06-21T17:42:13.533958
2021-08-06T14:00:01
2021-08-06T14:00:01
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 import imageio import os import os.path as osp import sys sys.path.append('../') from utils import calc_metrics from .show import * from tqdm import tqdm, trange def relation(): t1 = [1, 2, 3, 4] t2 = [2, 3, 4, 5] t3 = [3, 4, 5, 6] c4 = [4, 5, 6, 7] show_relation...
UTF-8
Python
false
false
5,919
py
44
article_utils.py
34
0.488596
0.453455
0
181
31.701657
107
melissaarliss/python-course
16,509,854,301,062
52ed31548e782714afcb5b6615138f3c4239be16
258c6738568d0e64c03ab100d7a70066ac29b817
/hw/hw-5/problem2.py
9e290d0b8bf6a425bc78699faf770a725c28cead
[]
no_license
https://github.com/melissaarliss/python-course
61f078296364d2efbf8d6dd6934cc139af6cea67
265bc290bf404cc2af5e93193d9048dd98b300d2
refs/heads/master
2020-08-01T19:34:19.075288
2019-11-25T17:34:54
2019-11-25T17:34:54
211,093,530
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
employees = [ { "name": "Ron Swanson", "age": 55, "department": "Management", "phone": "555-1234", "salary": "100,000" }, { "name": "Leslie Knope", "age": 45, "department": "Middle Management", "phone": "555-4321", "salary": "90,000" }, { "name": "Andy Dwyer", "age": 30, "department": "Shoe ...
UTF-8
Python
false
false
701
py
59
problem2.py
48
0.574893
0.493581
0
36
18.388889
60
Melody15/PAT
6,330,781,819,244
04dca24486d3cbd2476c0d4ab013f0f19308578c
201595579b6f72391c52d762e0f9ec25200c8681
/PAT (Basic-Level)/Python/1032.py
ab7271e7bbb400f8dd8a6f44d13062d3cb97d06e
[]
no_license
https://github.com/Melody15/PAT
d794bc928c175d3c5fe00c700d9085d4bc0e8cb6
2e5283c9e2dc5046287b4d91e12c37402de14c02
refs/heads/master
2021-01-22T02:58:02.201256
2017-12-23T14:22:36
2017-12-23T14:22:36
102,257,767
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- N = int(input()) infoData = {} for i in range(N): tempData = input().split() if tempData[0] in infoData: infoData[tempData[0]] += int(tempData[1]) else: infoData[tempData[0]] = int(tempData[1]) result = sorted(infoData.items(), key = lambda item...
UTF-8
Python
false
false
404
py
143
1032.py
56
0.608911
0.576733
0
18
21.444444
77
pd1714git/masterThesis
7,756,710,978,151
7a0e8508544aa7e0f12f8c0da09359a2bbe9ab25
badc7317d7257b6885c78442e13ef1d336fefefb
/cds-eda/cds_eda/__init__.py
2546f0d0e69c3332fd9e87da16a5476435a281f5
[]
no_license
https://github.com/pd1714git/masterThesis
71beb929cecff39013dd2318371a86d1c4d9b9b1
1a1714bd31ffd7f217e6836a06f306cfc5c11efc
refs/heads/main
2023-03-08T13:49:23.297557
2021-02-24T09:08:40
2021-02-24T09:08:40
340,701,280
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__version__ = '0.1.0' from .cleaning import cleaning from .eda import eda
UTF-8
Python
false
false
73
py
8
__init__.py
3
0.712329
0.671233
0
3
23.666667
30
metamarcdw/pycoinnet2
9,423,158,292,361
8bd2fa38961fd48f1e382750a1820537b96b424f
88f0dd8c471151d1c4752a46f7dc8c1e8cdc6d49
/pycoinnet/helpers/networks.py
9c5dfb815aa5ff49f7aba3f6696f447d7243becd
[ "MIT" ]
permissive
https://github.com/metamarcdw/pycoinnet2
0222b6c55ac18af712c5083197133b3abb62200f
4f03ae92a3a224f16532d304490f9d5aaf97c79b
refs/heads/master
2017-04-04T10:55:34.963061
2015-06-22T01:24:40
2015-06-22T01:24:40
37,493,086
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from __future__ import absolute_import import binascii MAINNET = dict( MAGIC_HEADER = binascii.unhexlify(u'F9BEB4D9'), DNS_BOOTSTRAP = [ u"seed.bitcoin.sipa.be", u"dnsseed.bitcoin.dashjr.org" u"bitseed.xf2.org", u"dnsseed.bluematt.me", ], DEFAULT_PORT = 8333, ) T...
UTF-8
Python
false
false
569
py
9
networks.py
8
0.646749
0.611599
0
22
24.863636
72
alexa984/python101
5,153,960,776,855
9c6309108698e807c607fbc7247d0d53c07ea85d
ac215179b41d28be712159241b101c6a28e62d59
/week2/birthday_ranges.py
f282099b46c946e28eb9a52de638d4aad6d9566a
[]
no_license
https://github.com/alexa984/python101
13ea1644342cc12d885a2bae6d326b5198cb2bba
fb5a48c29f75f7cb96966073f18fb3190aa0b929
refs/heads/master
2020-05-04T00:12:48.452752
2019-06-05T13:01:31
2019-06-05T13:01:31
178,879,767
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def birthday_ranges(birthdays, ranges): result = [] for my_range in ranges: result.append(len(list(x for x in birthdays if my_range[0] <= x <= my_range[1]))) return result
UTF-8
Python
false
false
192
py
128
birthday_ranges.py
120
0.635417
0.625
0
5
37.4
89
tapomay/libgenetic
8,985,071,608,567
fbeee46d6563e9bf05bec0c494daa2e256a30e9c
19001f24a510c1ceedd71ebad0e55b49fcfe635c
/src_python/bio_ga/randomforest/rf.py
262a250f5832726822d63f4ccb12d9f626b7b640
[ "Apache-2.0" ]
permissive
https://github.com/tapomay/libgenetic
5cd83d3acaed6137bef68a36cf16509ea84c572b
4045d1ac056251d95c101d34c9c7549d151a3e7e
refs/heads/master
2020-05-26T01:56:29.460387
2017-11-12T20:43:37
2017-11-12T20:43:37
84,984,244
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from sklearn.datasets import make_blobs from sklearn.ensemble import RandomForestClassifier from sklearn.calibration import CalibratedClassifierCV from sklearn.metrics import log_loss np.random.seed(0) # Generate data X, y = make_blobs(n_samples=1000, n_features=2, random_state=42, ...
UTF-8
Python
false
false
1,067
py
40
rf.py
30
0.73477
0.693533
0
31
33.451613
75
mberkdemir/macro-software
8,684,423,885,254
fe4a8470e443f7fd508e36b6bad5805324166c3a
a8519d8742a73828505560ba158890ccc95acdbb
/main.py
f0320e56057612d7d1685666591a6e0b61e709a3
[]
no_license
https://github.com/mberkdemir/macro-software
b8317620211ed3b31fcef30c98d24ef2207746c7
5f258655d0e8dd726000225ac841bbc93d842bc0
refs/heads/master
2023-03-03T20:48:18.254393
2021-02-08T12:23:25
2021-02-08T12:23:25
337,040,625
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from PyQt5 import QtWidgets from PyQt5.QtWidgets import QInputDialog, QMessageBox import sys from ControllerProgram import Ui_Main from pycode import Macro from threading import Thread class App(QtWidgets.QWidget): def __init__(self): super(App, self).__init__() self.ui = Ui_Main() self.u...
UTF-8
Python
false
false
3,739
py
6
main.py
3
0.6
0.597323
0
113
32.053097
99
arkpku/boolean_formulas
13,864,154,459,060
2f5a78cd996bcbd3bb1c55a76a058ee492e5d3e9
30c666ea8f75a2d02f701403e9eff3f8a95b5349
/boolean_formula.py
051b92e4b8951cf3d29c6d552637f3958996fcbf
[]
no_license
https://github.com/arkpku/boolean_formulas
16905ea8e0d87dc23a3ae2d69d50dd144e81c16b
7aa73a2e0cc2f8d636caea930a918558310b8a9e
refs/heads/master
2020-12-10T03:26:34.811225
2017-07-01T14:38:47
2017-07-01T14:38:47
95,573,741
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random # generate sequences representing trees. O = operator; P = propositional letters def enumerate_sequence(n_proposition, initial_seg): nO = initial_seg.count('O') nP = initial_seg.count('P') if nO >= n_proposition or nP >= n_proposition + 1: return [] if nP == nO + 1: if nP ...
UTF-8
Python
false
false
6,444
py
3
boolean_formula.py
3
0.552917
0.5464
0
174
36.04023
141
Mahelita/braindevel
17,910,013,649,699
9dc2fe41749591f6c9e0e83ba9f3a5ee158ccdb9
9481772b5eefeaae71d8d2d668dda611735ab5a7
/braindecode/veganlasagne/update_modifiers.py
4100f7b649c76c206079d3c681871b1014215d3d
[]
no_license
https://github.com/Mahelita/braindevel
f8cd77803e0860764dee5822dd00fc8a2c8c3a6c
21f58aa74fdd2a3b03830c950b7ab14d44979045
refs/heads/master
2020-03-23T15:03:13.140736
2017-09-11T14:42:06
2017-09-11T14:42:06
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import lasagne from copy import deepcopy, copy import numpy as np import logging from _collections import deque log = logging.getLogger(__name__) class MaxNormConstraint(): def __init__(self, layer_names_to_norms=None, default_norm=None): assert (layer_names_to_norms is not None) or (default_norm is not No...
UTF-8
Python
false
false
7,083
py
343
update_modifiers.py
145
0.568121
0.565297
0
160
43.1875
81
weiliangxie/HD_map_updating
7,078,106,107,640
ffb4eee2b0a15219cf39ddf54ac7bece3c685c7b
fdee5fbda72d98df7f400f810cf4c3714ad471e8
/triangulation/projector.py
da5e01a6c50493372207c128fe8c589df83335d5
[]
no_license
https://github.com/weiliangxie/HD_map_updating
069061f05be916754580047021dea32c1651eafd
f2a298084a6ab93b3a9074645fb8d6b30b05d214
refs/heads/master
2023-03-16T17:43:49.481898
2021-01-30T04:06:29
2021-01-30T04:06:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np from scipy.spatial.transform import Rotation class ColmapProjector: """Project traffic sign 2d position to colmap 3d position """ def __init__(self, intrinsics, ref_img, ref_pose, ref_bbox, src_img, src_pose): """ args: intrinsics: camera intri...
UTF-8
Python
false
false
4,469
py
28
projector.py
12
0.590289
0.535914
0
119
36.563025
109
pydevhari/Django-API-Project
17,523,466,579,455
f58cd4da569ccf16db2c01b9e62e841bba26a625
3e724c6c40eb1b7bedbd6d4256716f4f4b14a283
/myapp/migrations/0004_auto_20191210_1605.py
6b6669e119eeb96be8959519c5c428bc1fd165c7
[]
no_license
https://github.com/pydevhari/Django-API-Project
6c5b1f3cdc75aeb8c80549be94c5a9a5b426f98b
96c2a1ca7e28c3c9c65fa6a9f4ea4ac45237cacc
refs/heads/master
2020-10-01T01:46:05.326962
2019-12-12T15:16:56
2019-12-12T15:16:56
227,425,234
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.7 on 2019-12-10 10:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0003_auto_20191210_1521'), ] operations = [ migrations.AddField( model_name='marks', name='result', ...
UTF-8
Python
false
false
541
py
14
0004_auto_20191210_1605.py
6
0.554529
0.491682
0
23
22.521739
61
flavioarchilli/offline
13,305,808,722,946
96c7c6ced008bb24bb8236365ab7f29842273cec
14213264dd57a209ad291070e6d560765ef2da11
/tests/test_app.py
75b2d5a27f8934376435d8267c18f9f5ecb7bfc1
[ "MIT" ]
permissive
https://github.com/flavioarchilli/offline
c5467c897532df96f1be88812bb35711227d9474
9ddfbd4b8e2e535e74bfca6b7b3d98aed22a8aaf
refs/heads/master
2020-02-26T16:35:51.743777
2015-10-02T17:43:07
2015-10-02T17:43:07
37,140,713
2
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest2 as unittest import monitoring_app class TestPages(unittest.TestCase): def setUp(self): self.app = monitoring_app.create_app() self.client = self.app.test_client() def test_app_should_instantiate_with_tasks_resolver(self): """App should instantiate with the correct job...
UTF-8
Python
false
false
475
py
60
test_app.py
36
0.692632
0.686316
0
13
35.538462
89
937229974/tensorflow
4,973,572,141,371
6b7a3402935848b723d166f8446e67869b1ecd87
5d9767564c4db884412487e304da0f9234106cf5
/predict.py
2ac35c2fce57b52453c13843381128afbf551294
[]
no_license
https://github.com/937229974/tensorflow
a682c530e30ba4a8b24e01f154ad5f742ea7eb76
d7b90001a218bd46755332162e0ec877df5e80b1
refs/heads/master
2020-03-28T18:14:23.727196
2018-10-13T06:02:45
2018-10-13T06:02:45
148,863,917
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from train import crack_captcha_cnn from train import MAX_CAPTCHA,CHAR_SET_LEN,keep_prob,X from train import vec2text,convert2gray from PIL import Image import numpy as np import tensorflow as tf import glob,random def predict_result(captcha_image): output = crack_captcha_cnn() saver = tf.train.Saver() ...
UTF-8
Python
false
false
1,545
py
5
predict.py
3
0.627846
0.611581
0
55
26.927273
83
Zichen-Yan/DRL-Repo-Pytorch-
18,004,502,939,505
590ecaabc409a8df3df62fc9f165bbcf4662f430
f94d6d5092aa211ba3d65cc256aee2b2f216f349
/model-free/PPG/model.py
c5a833c8964aebeb8f00557d6e73702239caf5c7
[]
no_license
https://github.com/Zichen-Yan/DRL-Repo-Pytorch-
98a880e00f8e48903e37ad0fd285ff831a110edf
d55592d5fe7e73b941c6be4b1c389ce84901a4f3
refs/heads/main
2023-07-13T11:36:57.200822
2021-08-21T02:08:25
2021-08-21T02:08:25
392,948,319
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch from torch import nn class Actor(nn.Module): def __init__(self, state_dim, hidden_dim, num_actions): super().__init__() self.net = nn.Sequential( nn.Linear(state_dim, hidden_dim), nn.Tanh(), nn.Linear(hidden_dim, hidden_dim), nn.Tanh(), ...
UTF-8
Python
false
false
1,355
py
58
model.py
55
0.530627
0.528413
0
51
25.568627
64
The-lYNCAN/BlogingSite
9,216,999,865,716
fbef1bc335d4062072853a6f829357e9b85ec87b
f97552a2f04266d91bbd61e5b51a664a9227abc1
/login/views.py
a7f3b16cab9167ee6f733fb2900db3adb69ef984
[]
no_license
https://github.com/The-lYNCAN/BlogingSite
58e45a064d0099302c0d9f66f927b039cb6131c7
7f0345cae710ffc43c277dcd302c0f90db2c5a09
refs/heads/main
2022-12-27T04:28:04.880657
2020-10-03T14:57:16
2020-10-03T14:57:16
300,898,093
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.views.generic import TemplateView, DetailView, FormView, CreateView, ListView, UpdateView from django.urls import reverse from django.views.generic import View from django.views.generic.edit import FormMixin from login.forms import sig...
UTF-8
Python
false
false
3,775
py
7
views.py
5
0.658543
0.658543
0
111
33.018018
101
nbaek/EconOfPrivacy
8,890,582,320,853
bc24bd1544781cbc62cb20486482f1b1ba32b237
e4100ee2d7d4956e8e27d05821ed879532a54076
/BufferStockEGM.py
4ee29030db33a8f4d13ff9483efcf20cd9a62951
[]
no_license
https://github.com/nbaek/EconOfPrivacy
4562b7bbdff98a030a078ad8beb52b5e0a5a9d15
d0776afb585e152c592fce0ae2563cf004b054e7
refs/heads/master
2021-08-22T18:30:27.586110
2017-11-30T23:40:56
2017-11-30T23:40:56
105,625,775
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt import importlib import BFClass importlib.reload(BFClass) from BFClass import model import funs importlib.reload(funs) import FigModule importlib.reload(FigModule) from FigModule import solver; #%% With retirement par = model() par.T = 90-20 par.simlifecycle = 1 par.R...
UTF-8
Python
false
false
1,986
py
6
BufferStockEGM.py
5
0.653575
0.626385
0
79
24.151899
101
calvinfeng/low-rank-factorization
4,088,808,889,492
1e12d6d07bed944d9b48297f3543bb0a22912028
71be3ba418974e2815976c2fc9421b3b37c8438c
/incremental_svd/user.py
f55ec9976c35bd769928b023fe75815f80458d1c
[]
no_license
https://github.com/calvinfeng/low-rank-factorization
1061e5dc0ed86619c47fe0a3beb40a03ecda9aa4
4402e79ac8adfb40d3917067746eee17d96e65e1
refs/heads/master
2021-04-27T16:42:17.974634
2018-03-05T04:30:26
2018-03-05T04:30:26
122,307,930
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Project: Recommender System # Author(s): Calvin Feng from random import random, sample from pdb import set_trace as debugger from math import sqrt class User: def __init__(self, user_id, movie_ratings, preference_length, is_test_user=False): self.id = user_id self.preference_length = preference_...
UTF-8
Python
false
false
2,824
py
11
user.py
8
0.60517
0.598442
0
72
38.222222
122
Yuhjiang/LeetCode_Jyh
11,184,094,852,917
7261fcb5dc7613820ea89e2da839f65867686cb1
e8e40045ffa81bcb86a3d75748f333ca5f1ed5e8
/problems/midium/63-unique-paths-ii.py
03907a9ecf231d8d7fcbb3b2236e53eba120ad66
[]
no_license
https://github.com/Yuhjiang/LeetCode_Jyh
00ba0e7b6cc3d5075ecd6e9009268056fbb3a70c
a60d8b5adce3d1149757a7b164b52da0244aebd8
refs/heads/master
2021-07-13T03:26:59.259705
2020-08-26T07:27:39
2020-08-26T07:27:39
193,892,319
1
0
null
false
2019-08-13T13:36:27
2019-06-26T11:35:32
2019-08-07T14:48:04
2019-08-13T13:36:27
33
0
0
0
Python
false
false
from typing import List class Solution: def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int: if not obstacleGrid: return 0 if not obstacleGrid[0]: return 1 if obstacleGrid[0][0] == 1: return 0 row, col = len(obstacleGrid), l...
UTF-8
Python
false
false
1,480
py
159
63-unique-paths-ii.py
158
0.473649
0.439189
0
56
25.446429
77
Neo945/LetsTweet
1,133,871,366,349
1b686c9d15b3032848951436db22d037c9a0c810
53e1a8879b49c4cd6c7a49e3310e4e8f11c618e7
/letsTweet/rest_api/dev.py
c98496a1bf89307eb5dc3282d0a667962c6f7b25
[ "MIT" ]
permissive
https://github.com/Neo945/LetsTweet
c741f7cbe7bbc8015234b80c0f4869ebeebcaf9d
b131536e2af9137075e68ac59ec8d5adb41d2279
refs/heads/master
2023-03-24T21:35:32.042842
2021-03-17T14:24:34
2021-03-17T14:24:34
339,714,319
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import authentication from django.contrib.auth import get_user_model User = get_user_model() class DevAuthentication(authentication.BasicAuthentication): def authenticate(self, request): qs = User.objects.all() user = qs.order_by("?").first() return (user, None)
UTF-8
Python
false
false
314
py
20
dev.py
16
0.703822
0.703822
0
10
30.5
60
Varunaditya/pythonMultiprocessing
9,328,669,004,589
44d500c4413213c9c28498eaea0dc81e3b45ac96
808d8edd98998e6f360181f16c7c1fcebe0dbc47
/sharingData_serverProcess.py
707007f14645d14b1e9735c36f4366cde02207cc
[]
no_license
https://github.com/Varunaditya/pythonMultiprocessing
0e13a3002765cb31bcb48681f12d5596657fe598
1a0d15acd756d9d16fdced9d98e4b8d14b5353d3
refs/heads/master
2020-03-28T00:11:40.907691
2018-09-04T22:41:18
2018-09-04T22:41:18
147,383,879
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# A program that uses the Manager class of the server process to synchronize data among various processes. # Manager class supports a lot more data types as compared to synchronized variables and arrays but are slower. # Author: Varunaditya Jadwal import multiprocessing def printingRecords(records): for record in r...
UTF-8
Python
false
false
878
py
4
sharingData_serverProcess.py
4
0.715262
0.699317
0
25
34.16
111
shawnluo/SVU_Projects
19,181,323,947,936
7c56eb6143704349a4a238d9025bb969dd896c0b
39e7d6ab503da85cede33484f342ca3318a764fd
/CS200/CS200_Project1/InsPic.py
95f7f58174ca0997ab3d3ee6211ab23f84d4e62e
[]
no_license
https://github.com/shawnluo/SVU_Projects
653645ffbcf5837fb3606652799cb33b47d64848
6c91d51750bc52c74a91ba202ea4d2a006903b5d
refs/heads/master
2021-01-09T09:39:02.056019
2016-07-14T04:22:17
2016-07-14T04:22:17
62,114,269
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os def InsPic(): path = os.getcwd() fileList = os.listdir(path) i = 1 for file in fileList: ext = os.path.splitext(file)[1] if ext.strip() == '.jpg': # os.rename(file, str(i) + r'.jpg') i = i + 1 f = open(r'Index.html', 'w+') f.write('<?xml ve...
UTF-8
Python
false
false
520
py
5
InsPic.py
4
0.475
0.461538
0
28
17.571429
59