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
irvingr/python
18,468,359,381,595
ee0c0cec9174d92545443bec62e7c859fb9deaa2
8597ef1dc3970b6ccae5034d7cf7935d067596f6
/20_while.py
8415426288ce48aa0f366185611a4c22cd51c9c5
[]
no_license
https://github.com/irvingr/python
e3fc7a795682d3d5c15b33ce3347232dcc8e1ce1
d8c179a19466ab8ee6685ff52b3f8bcc280245e2
refs/heads/master
2020-05-17T11:32:16.423106
2019-04-29T14:56:47
2019-04-29T14:56:47
183,687,447
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# while valor = 1 fin = 10 while (valor < fin): print(valor) valor += 1 print("- - - - - - - - - BREAK - - - - - - - - - -") # break valor = 1 fin = 10 while (valor < fin): print(valor) valor += 1 if (valor == 5): break print("- - - - - - - - - CONTINUE - - - - - - - - - -") # continu...
UTF-8
Python
false
false
432
py
53
20_while.py
48
0.439815
0.407407
0
32
12.53125
55
ktertikas/MLHPrime
13,271,448,988,252
b20364547a83f2e6326efede7cf9035f2bbf047d
cc14c742de96fe9fef9209afc9ff370cfcb3e09a
/analysis/Metadata.py
2c6fd16c021c08978c977bc40d60f19e442f91de
[]
no_license
https://github.com/ktertikas/MLHPrime
f0891def7554323a773f7c405ecb9fbf3b22a564
ee9387d35a11bdec4e834ef4d95305be8dd71a98
refs/heads/master
2021-01-18T19:42:58.107896
2017-04-02T12:17:12
2017-04-02T12:17:12
86,908,205
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import requests def get_metadata(link): r = requests.get(link) soup = BeautifulSoup(r.text) title_text = soup.title.text if not soup.title: title_text = soup.h1.text meta = soup.findAll(attrs={"name":"description"}) meta_text="" for name in meta: ...
UTF-8
Python
false
false
527
py
11
Metadata.py
6
0.641366
0.631879
0
20
25.35
53
databill86/rank-aggregation-with-ties
13,048,110,668,187
e886e8f7316613c2a8914dee6e3b0bf481a0621f
1b9966ae15bee555ac0838d27cbdd0405c3e8bf0
/sources/rnt/mediane/migrations/0022_auto_20180215_2155.py
d28a7dcb363d29a25cd6426f8d58b18c80b05cdb
[ "Apache-2.0" ]
permissive
https://github.com/databill86/rank-aggregation-with-ties
f3ef509401f07b05a4e34689245bb71c9c5efe50
63b30d7c1eece837ef23ffc9414c3538052d9b9c
refs/heads/master
2020-04-02T17:04:41.213764
2018-10-05T07:51:09
2018-10-05T07:51:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-02-15 21:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mediane', '0021_distance_id_order'), ] operations ...
UTF-8
Python
false
false
971
py
127
0022_auto_20180215_2155.py
99
0.594233
0.572606
0
32
29.34375
137
luwenchun/Automated_Test
2,697,239,505,978
e8f60a6f35d285f913c4c60d62d739802a105b54
d7390fea6c7f712ee32be6d3478835d965d795e0
/py26_02day/01±êʶ·û.py
5760a9aebce248d97e46f18773a430f4e368c68b
[]
no_license
https://github.com/luwenchun/Automated_Test
2f424655d80127e3ed98657869021a775beca868
79b9937cfc0841b0a80d4fd45d8ff467654b5b55
refs/heads/master
2021-02-10T15:23:08.446463
2020-03-26T10:39:38
2020-03-26T10:39:38
244,393,626
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" ============================ Author:柠檬班-木森 Time:2019/12/25 E-mail:3247119728@qq.com Company:湖南零檬信息技术有限公司 ============================ """ encoding='utf-8' """ 标识符 输入:input """ name = "musen" # 下划线命名(变量命名使用这个风格,函数名也推荐使用这种风格) max_number = 100 # 大驼峰命名(类命名推荐使用这个风格) MaxNumber = 100 # 小驼...
UTF-8
Python
false
false
803
py
194
01±êʶ·û.py
166
0.557875
0.500949
0
43
10.302326
32
KenN7/jasper-client
16,827,681,903,801
5d62f80745654901d533e7eae46a705b883aac87
cdb0beb13f8b0e768aa82dbbfdf0352573440463
/client2/notifiersMod/__init__.py
3242929528f67f98ae228a16e70f75ea4c7f3dca
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
https://github.com/KenN7/jasper-client
6e8292f9ebc0d4ae788e5cf7fd607066c9bf91e8
e3900b890edf635021c9911025cd0a7fdc3c8ef7
refs/heads/master
2021-01-09T06:30:15.816565
2014-04-27T19:49:43
2014-04-27T19:49:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from hour import Hour
UTF-8
Python
false
false
22
py
10
__init__.py
9
0.818182
0.818182
0
1
21
21
shohta-tera/image
17,540,646,440,801
9d161dc514662bd5c99f74e341a329989b60c970
79da739986053563fa81512744bb4290020e9343
/テンプレートマッチング.py
61f58633b81d5024c0cc99d53c4fc257611ec20a
[]
no_license
https://github.com/shohta-tera/image
362475f3d65d1cbd1b21142f0c285adf7721e25b
ab520f5fa2b568f96e5eedcaa4ddd146124e05d1
refs/heads/master
2020-04-08T21:20:14.063521
2019-05-14T14:26:15
2019-05-14T14:26:15
159,739,621
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#一つだけマッチング import cv2 import numpy as np #画像をグレースケールで読み込む img = cv2.imread("osero4.jpg", 0) tempb = cv2.imread("tempw4.jpg", 0) #マッチングテンプレートを実行 #比較方法はcv2.TM_CCOEFF_NORMEDを選択 result = cv2.matchTemplate(img, tempb, cv2.TM_CCOEFF_NORMED) #類似度の設定(0~1) threshold = 0.9 #検出結果から検出領域の位置を取得 #np.where 条件を満たすイン...
SHIFT_JIS
Python
false
false
1,320
py
14
テンプレートマッチング.py
14
0.64805
0.591312
0
50
20.56
63
anhpt379/inforlearn-python-client
2,611,340,148,463
47578831878f4e3379163952d81b51f08abff6d4
1ec85933e203dddbb2f1f6634e8385ef8be4ac20
/test.py
04986ed499de8630ea81f9a6f2b1827d46d5a197
[]
no_license
https://github.com/anhpt379/inforlearn-python-client
2f9b4dca315a901fe2ef2cc194e71b48b347fc43
b4223065f84f935f46dee8d1aed64d6f90ead864
refs/heads/master
2021-05-26T13:36:28.069576
2010-09-06T13:34:42
2010-09-06T13:34:42
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import oauth, httplib import urllib2 #Define Constants KEY = '0299cc35f5ca45cf9f1974f056fea080' #Change Me SECRET = '181a73a06ea04d9f964c020e518a531a' #Change Me SERVER = 'www.jaiku.com' REQURL = '/api/request_token' REQUEST_TOKEN_URL = '/api/request_token' ACCESS_TOKEN_URL = 'http://www.jaiku....
UTF-8
Python
false
false
1,344
py
3
test.py
3
0.575893
0.509673
0
29
45.37931
105
AlbertGaz/epam_python_courses
12,395,275,619,019
9f456694a5464102f2f9be806d66f33fe5819ea6
bcf5ee7d356c32fe9f60308f885e4528dc138c62
/test/test1/test_task2.py
3edc9c3c789b82b706e412fea9545177adbab015
[]
no_license
https://github.com/AlbertGaz/epam_python_courses
81842e1efd49f9fd280ff45b9bb8c160c878ed17
1372202e477611840aa7071904e3362b16073068
refs/heads/master
2023-04-18T12:39:54.831518
2021-04-29T14:32:57
2021-04-29T14:32:57
345,305,812
0
0
null
false
2021-04-29T14:32:58
2021-03-07T09:29:14
2021-04-26T19:26:43
2021-04-29T14:32:57
184
0
0
0
HTML
false
false
"""TEST Homework 1.2. Check if int sequence is fibonacci. """ import pytest from hw.hw1.task2 import check_fibonacci @pytest.mark.parametrize( ("sequence", "expected_result"), [ ([], False), ([0], True), ([13], True), ([-1, 0], False), ([0, 1], True), ([5, 8, ...
UTF-8
Python
false
false
628
py
84
test_task2.py
71
0.571656
0.43949
0
27
22.259259
86
sfschouten/semantic-kge
12,730,283,088,720
b65f01d3b11d2744a3a47d11956e050e9d7a7307
de5704ec42dd71a96c142f3bc4f5ab5ad0cd5852
/sem_kge/model/config_logging_mixin.py
78590e8d42c534606f7becb76f5f6db4cb60a76f
[ "MIT" ]
permissive
https://github.com/sfschouten/semantic-kge
31be1700739477be9f34fcd2c82edff1c9b7fe72
d653f6a7eb7222dba38fcdaa668eb892143d0b1e
refs/heads/main
2023-08-26T22:04:03.916836
2021-10-06T10:04:29
2021-10-06T10:04:29
381,327,115
0
0
MIT
false
2021-09-21T08:17:18
2021-06-29T10:34:02
2021-09-13T17:26:38
2021-09-21T08:17:17
98
0
0
2
Python
false
false
class LoggingMixin(): """ Mixin class with methods for logging of configurations. """ def get_option_and_log(self, key): value = self.get_option(key) self.config.log(f"{self.configuration_key}.{key} set to {value}") return value
UTF-8
Python
false
false
295
py
39
config_logging_mixin.py
24
0.569492
0.569492
0
11
25.545455
73
AakanshaDhawan/gameBoard
3,719,441,701,978
610ef8fdfae53b279c69a2eec4ea8d7b402d9a98
8cc22effcfbf4a3ac16bc155111bd47dbc5a0f85
/backend/forms/models.py
7dae7ee793bf3fa89ac698eaacea23d303bbe932
[]
no_license
https://github.com/AakanshaDhawan/gameBoard
1643624dd103a91fde2546b54adbb8d369d06627
d8f67cd55ac8fbbc924fd7d60effad51eb9ab72b
refs/heads/master
2023-06-04T12:54:56.142229
2021-06-17T16:50:28
2021-06-17T16:50:28
376,027,098
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models # Create your models here. class SubscriptionEmail(models.Model): email = models.CharField(max_length=100, blank=False) datetime = models.DateTimeField(auto_now=True) class ContactForm(models.Model): firstName= models.CharField(max_length=30, blank=True) lastName= models.C...
UTF-8
Python
false
false
1,355
py
34
models.py
26
0.748339
0.721033
0
31
42.741935
58
andela-ooshodi/library
3,882,650,466,227
4205e55f87ac0b7fc4cf2d51ffec732ce94cdf9e
6c81d2e1d00250bb1a86f3990a96223b7ce234e0
/bookshelf/models.py
e04563bb5719d458cb458360fe2fa0ec5f9181fc
[ "MIT" ]
permissive
https://github.com/andela-ooshodi/library
bbf9634227d2e857db0c88f1ad8d920d6e216c44
6a95116b097e1ba23508166057f16a0ea7679d43
refs/heads/master
2021-01-19T08:51:25.421692
2017-05-11T00:28:35
2017-05-11T00:28:35
87,689,850
0
0
null
false
2017-05-11T00:28:35
2017-04-09T07:08:04
2017-04-09T07:50:57
2017-05-11T00:28:35
25
0
0
0
Python
null
null
from __future__ import unicode_literals from django.db import models class Base(models.Model): """ Base model """ name = models.CharField(max_length=50, unique=True) description = models.CharField(max_length=200, blank=True, default='No description') class Meta: abstract = True ...
UTF-8
Python
false
false
623
py
21
models.py
14
0.64366
0.632424
0
29
20.482759
88
marcelopoars/estudando-python-3
13,357,348,311,426
49e425ede1c26368c0f045f29d3f36e8ffb3d6d6
924468f1404e67e05ac11cc3b216b9a3283dc5f0
/aulas/content_06_for/exemplo_1.py
d57e4fb4b4306b4dd94397a18347d01a08dad224
[]
no_license
https://github.com/marcelopoars/estudando-python-3
e0c7f8cb27b9841c226dda6983fd0042a1336243
9f740403b9d89e7f92be3688149d97cb3fc31a41
refs/heads/main
2023-04-09T09:17:27.814005
2023-03-17T12:04:27
2023-03-17T12:04:27
150,115,680
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Exemplo 1 - Como funciona o FOR. """ # O FOR é um laço de repetição (loop) # O FOR tem começo e fim # A variável "item" vai receber um caracter por vez # A cada ciclo mostra o caracter na tela # A palavra "Python" é uma STRING """ EXEMPLO 1 """ for item in "Pytho...
UTF-8
Python
false
false
347
py
111
exemplo_1.py
101
0.644118
0.632353
0
13
25.153846
52
vanigupta20024/Programming-Challenges
4,260,607,597,506
da0f4907511cee0523973438855051b6498f9791
de813a0ee710328aae34d30b5abc4b98146cf894
/PartyPlanning1.py
e1d87be6c46761b5d0196357a571c9c53e027694
[ "MIT" ]
permissive
https://github.com/vanigupta20024/Programming-Challenges
ab885d9af98ce6a967e1b8edbc70da1dcd17ac73
578dba33e9f6b04052a503bcb5de9b32f33494a5
refs/heads/master
2023-08-31T08:11:54.650564
2021-10-07T07:09:19
2021-10-07T07:09:19
271,755,231
21
4
MIT
false
2020-08-25T19:17:14
2020-06-12T09:03:13
2020-08-25T19:16:29
2020-08-25T19:16:26
209
0
1
0
Python
false
false
# You're running a catering business that serves desserts. Customers call in and tell you a party size, and you provide enough dessert for everyone to have a piece. # Cakes serve 25 guests. # Pies serve 8 guests. # Cupcakes serve 1 guest. # The more people a dessert serves, the less it costs to make, so we want you to ...
UTF-8
Python
false
false
1,142
py
172
PartyPlanning1.py
168
0.646235
0.627846
0
38
29.052632
164
jakobkhansen/KattisSolutions
12,386,685,731,635
a7eaa096fe6f86acca66e845553a2ba1f7128308
afcf26bbd84161f2775b879a68b2c163878984d9
/grid/grid.py
b7572f607ffbfae2eaa88fc8031fec969f147468
[]
no_license
https://github.com/jakobkhansen/KattisSolutions
505a0657fa02a5156c853fc0a6566dd51591d36d
2869d6c9027515fd41eac6fcaee281aa474810c4
refs/heads/master
2023-07-07T19:17:37.614836
2023-06-28T18:12:50
2023-06-28T18:12:50
191,001,396
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from queue import Queue class Point: def __init__(self, spot, previous): self.spot = spot self.previous = previous def __repr__(self): return str(self.spot) def grid(lines): n, m = [int(x) for x in lines[0].split(" ")] if n == 0 or m == 0: return -1 if...
UTF-8
Python
false
false
2,623
py
352
grid.py
334
0.516203
0.493709
0
108
23.287037
82
RoKu1/cracking-the-coding-interview
6,863,357,762,232
d5721fe8ea6b6b82859a2c7f383f0098bc8145f9
52b28f756e7c35fd97bbe1f5b3e47b7be3e59757
/Trees_and_Graphs/1Route_Between_Nodes.py
58055e41cb19084cecfd67b0af54b748ebae4af0
[ "Apache-2.0" ]
permissive
https://github.com/RoKu1/cracking-the-coding-interview
e6d7cc5cdf28f7604f71a09d83f6b0c9cf42d444
ce2fabba75f1edf69b81a80022eb9ebac8a09af2
refs/heads/master
2023-07-11T12:37:36.394227
2021-08-11T16:35:56
2021-08-11T16:35:56
296,645,906
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Trees_and_Graphs import Graph as GP """ 4.1 Route Between Nodes: Given a directed graph, design an algorithm to find out whether there is a route between two nodes. """ """ We will traverse the garpgh from given node using DFS and if we find the end node in visited we will say that the route is available """ d...
UTF-8
Python
false
false
706
py
37
1Route_Between_Nodes.py
36
0.611898
0.580737
0
24
28.416667
109
dr-dos-ok/Code_Jam_Webscraper
2,774,548,895,868
72876541d4862d2e5cb23ace3ecbb29e449c0735
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_46/59.py
889c97a393e369356699b130d8d7d03cac9b47c7
[]
no_license
https://github.com/dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def rightmost(row): rrow = row[:] rrow.reverse() n = len(row) if 1 in rrow: return n - 1 - rrow.index(1) return -1 def solve(m): rows = len(m) res = 0 for row in xrange(rows): for row2 in xrange(row, rows): ind = rightmost(m[row2]) if ind <= row...
UTF-8
Python
false
false
693
py
60,747
59.py
60,742
0.455988
0.440115
0
36
18.25
52
Shakileash5/ImageEncryption
4,294,967,316,114
e73eb99aeb57cb3bc3813cd474ce8a687ffb6114
052d8c29f264d92b114a1e7a73c45c41592c5894
/clientCv.py
ccd9f54a592ac738925286bfc7ebc8779d1ca1f5
[]
no_license
https://github.com/Shakileash5/ImageEncryption
c5d97b17067911404c3cbc32de717a0a9f9935db
8a47c45b1de45f38cecee2d35d8e724cbc8d3ee9
refs/heads/main
2023-08-13T05:41:07.073360
2021-09-27T14:34:40
2021-09-27T14:34:40
410,772,913
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np import socket import sys import pickle import struct import chaosMap import json TYPE_ = 2 # 0 - ArnoldCat , 1 - HenonMap , 2 - LogisticMap KEY = "abcdefghijklm"#20#(0.1,0.1) # key to encrypt the image HOST = "127.0.0.1" # server ip PORT = 5001 # Reserve a port for server. sock=sock...
UTF-8
Python
false
false
950
py
6
clientCv.py
5
0.692632
0.668421
0
36
25.416667
78
chenweican/Octopus
12,601,434,054,246
8751a72a9281b982027b14d264b471430f6d22cb
c204ea42db6cee8bf244e0275550e2001e77c6bf
/app/dispatcher.py
2a58f41e519940562c6e40a192e377d605652ca4
[]
no_license
https://github.com/chenweican/Octopus
2879af52c5298893e6deeff704014cf21480944c
1c5e6357397cabacacaae59b1636a433660ef6d6
refs/heads/master
2019-04-09T19:55:38.288457
2016-05-10T09:54:36
2016-05-10T09:54:36
57,180,669
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from app.crawler import * from app.worker import Worker from app.page_analyst import * import json import base64 from datetime import datetime from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker class Dispatcher: def __init__(self, SECRET): self.url_crawler ...
UTF-8
Python
false
false
1,374
py
30
dispatcher.py
26
0.577875
0.574236
0
40
33.35
79
FanziSufu/Simple-ML
2,070,174,245,304
10bf0153b3d48de101b4406617bdef678f64b21a
2fd98905f22ca22e52a7013b64583668d1cead94
/PCA.py
33ec4388992ca02c34ee83543fbddeb89964ba50
[]
no_license
https://github.com/FanziSufu/Simple-ML
16883a3ccecbeedce0c8b0b20c16a6408ea24764
e2a0442d7d81741583ec3c823d7ddb773a96160f
refs/heads/master
2020-04-06T23:19:55.180931
2018-11-16T12:40:15
2018-11-16T12:40:15
157,865,635
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from sklearn import preprocessing as pp from sklearn import datasets class PCA: def __init__(self, k=10): self.k = k # 目标维度 def training(self, dataset, svd=False): """ 使用主成分分析算法,把n维数据集降为k维数据 :param dataset: 数据集n*m,n为特征数,m为样本数,np.array :param svd: 是否...
UTF-8
Python
false
false
1,982
py
12
PCA.py
11
0.592266
0.581411
0
42
34.095238
81
HDClark94/VRnav
13,683,765,851,720
38317aee69fb0131c501f6534f9622172b31d9f1
b1552d33b62144f782b6cb85f6f78dadc9dede12
/summarize/powersimulations_refactor_assay.py
570934f8c21b9f0fbfb048ea01edc01efaf6e9ca
[]
no_license
https://github.com/HDClark94/VRnav
6d58cd12409cea172cb1e5ac0740ee0384f2b92a
4a721102efe21cbc7015c90e831a7c03f790591d
refs/heads/master
2023-03-16T07:02:11.348536
2021-04-08T14:18:50
2021-04-08T14:18:50
190,720,949
1
1
null
false
2021-04-09T09:18:22
2019-06-07T09:46:18
2021-04-08T14:18:53
2021-04-09T09:18:22
4,402
1
1
0
HTML
false
false
import numpy as np import matplotlib.pyplot as plt import pingouin as pg import pandas as pd import time from scipy.stats import f np.random.seed(1) def data(): # have this make a sigmoid with random number of correct trials each time its called. start_time = time.time() iterations = 500 trials = 60 ...
UTF-8
Python
false
false
6,152
py
95
powersimulations_refactor_assay.py
63
0.60972
0.575748
0
132
45.606061
176
Singh-Sg/DataCreaftWithReact
8,400,956,032,899
209db267f69922814336aae48e29cd6282124390
355155ba62cdfc3eb1fafa44d54c64a82172770e
/DataCraft/DataSearch/migrations/0003_auto_20180223_1214.py
849d57c6849531f7e2fa415d22557d0116a176a0
[]
no_license
https://github.com/Singh-Sg/DataCreaftWithReact
863e4408a8ba106df23d18f69bfcf7c98803aea4
4285124dc5581228f5266b3c9c21f120a349a333
refs/heads/master
2020-03-23T09:36:37.298854
2018-07-18T07:36:59
2018-07-18T07:36:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.2 on 2018-02-23 12:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('DataSearch', '0002_auto_20180223_1209'), ] operations = [ migrations.AlterField( model_name='client', name='departme...
UTF-8
Python
false
false
860
py
48
0003_auto_20180223_1214.py
30
0.584884
0.537209
0
23
36.391304
212
kleysonr/snsdl
11,407,433,146,949
38e84cd66ef528c0d4f5cb8966f86ed32751f8a6
4aeef11a968533ead4d39877ed598d8376419db3
/myModels/shallownet.py
c58ecf3a36a90cb73e7682adf42cbc31dbb19a81
[ "Apache-2.0" ]
permissive
https://github.com/kleysonr/snsdl
11bcb34ce81f7d3635356b61cd0c1849a39ab16e
2f3cc61d585774f1cb2513b6507e7b872f9eb888
refs/heads/master
2022-10-21T16:47:29.253442
2019-05-28T19:38:56
2019-05-28T19:38:56
165,902,755
1
2
Apache-2.0
false
2022-10-12T02:02:49
2019-01-15T18:31:42
2019-05-28T19:41:30
2019-05-28T19:44:55
95
1
2
2
Python
false
false
import keras from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.models import Sequential from snsdl.keras.wrappers.base_model import BaseModel class ShallowNet(BaseModel): def create_model(self,input_shape=None, num_classes=None, optimizer=None): opt...
UTF-8
Python
false
false
1,015
py
30
shallownet.py
29
0.664039
0.641379
0
29
34.034483
120
Derpmander/Prog1-ovn
18,296,560,696,450
4196a7e67d631ce050d2dca59a49fe4760209cbc
5305c03e01e57688443f6e8236f47d24e7cef4b4
/4.4.py
3767fbf4dee6584c4d02a38bbbed45b63e33b810
[]
no_license
https://github.com/Derpmander/Prog1-ovn
52e4c974b93c08ac11043366b3a94e5ea4bf9c94
b518437764020884cf800ae012fd40b48b14a3c9
refs/heads/master
2023-01-22T22:35:11.271139
2020-11-16T13:47:11
2020-11-16T13:47:11
291,701,268
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
startHöjd=float(input("Start höjd:")) höjd=startHöjd förlust=0.7 while höjd>0.01: höjd=höjd*förlust studsar=startHöjd/höjd studsar=int(studsar) print(f"Bollen studsar {studsar} gånger")
UTF-8
Python
false
false
209
py
25
4.4.py
24
0.741117
0.715736
0
8
23.75
41
sejoung/python-win32api-test
6,571,299,983,272
098acd8ee10ad554fd04c8b4133b6b87118537b2
bd812be03e5af41a22c77764df980c3aaf3703cd
/EventFiltering.py
50f03a615c683dc4cb08c0e4fff65339a709e5d1
[]
no_license
https://github.com/sejoung/python-win32api-test
7b9273d8562d64095a22b10f1a885b25e1ff2b64
9df86f9909859aecd414319dcbc217af13090167
refs/heads/master
2021-01-10T04:56:57.632640
2015-11-05T23:23:04
2015-11-05T23:23:04
45,645,604
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'sanaes' import pythoncom, pyHook def OnKeyboardEvent(event): # block only the letter A, lower and uppercase return (event.Ascii not in (ord('a'), ord('A'))) # create a hook manager hm = pyHook.HookManager() # watch for all mouse events hm.KeyDown = OnKeyboardEvent # set the hook hm.HookKeyboard() # ...
UTF-8
Python
false
false
357
py
14
EventFiltering.py
13
0.728291
0.728291
0
15
22.866667
50
SolubleCode/tubuy
10,737,418,264,944
ac3a94ebebae756d7f5cc13292efe5f4bfafa17d
6d6b1844c967bfbaafd1cd88cb6b788a915fd7e5
/api/permissions.py
5cd7883afd099d7bc88b75cbd04bab1b8da4797f
[ "MIT" ]
permissive
https://github.com/SolubleCode/tubuy
b8e703716120709f39c2066f957526b0f06bcfa9
f61ee95966ab3bf7a4bbd6d58fdca765706248e2
refs/heads/develop
2019-08-09T12:11:27.855162
2019-04-12T14:24:06
2019-04-12T14:24:06
52,166,912
4
4
MIT
false
2018-11-04T06:56:54
2016-02-20T17:53:56
2018-07-04T17:57:18
2018-11-04T06:56:54
90
3
0
3
Python
false
null
from rest_framework import permissions class IsStaffOrTargetUser(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return request.user.is_superuser or obj == request.user class CommodityOwner(p...
UTF-8
Python
false
false
715
py
20
permissions.py
14
0.706294
0.706294
0
20
34.75
67
stephendonner/loads-broker
11,218,454,622,864
ab8bb8ad865c3be3f445c148263288b66ab39ba5
e88550201a4ce2601fbd25539acb6cb453ac709c
/loadsbroker/broker.py
b5a8a0b6d18c6031833225435bdb18364018b2ce
[ "Apache-2.0" ]
permissive
https://github.com/stephendonner/loads-broker
89f6f24f575a5696faee46205f5d4e9ee12f386b
81ede34fd551f2ed7a71c14ca8c568d3d47d5c2b
refs/heads/master
2020-12-24T10:24:35.454131
2016-12-30T01:03:31
2016-12-30T01:06:29
73,158,265
0
0
null
true
2016-11-08T06:58:14
2016-11-08T06:58:13
2016-11-08T06:58:09
2016-11-08T01:21:13
1,310
0
0
0
null
null
null
"""Broker Orchestration The Broker is responsible for: * Coordinating runs * Ensuring run transitions * Providing a rudimentary public API for use by the CLI/Web code Complete name of environment variables available in a test container: - BROKER_ID Unique ID of the broker running this test. - BROKER_VERSION ...
UTF-8
Python
false
false
25,543
py
6
broker.py
5
0.573699
0.57092
0
758
32.697889
79
zig-zagreus/async-ev-cnn
4,526,895,558,681
0199b10834b1c3166e3e08fe63db6f400af918ea
e8c7a56449038a5c8f12b974cc99a80257cbd34e
/src/libs/runner.py
2b23cf7128b9d98d8e45924efe40e27b30f46a8d
[ "MIT" ]
permissive
https://github.com/zig-zagreus/async-ev-cnn
f13ee2852191ebfb522a10fae93d7bef156b9452
1e844ab93b70cdf39d3f45315cafe095363ba9b8
refs/heads/main
2023-06-07T17:17:12.433009
2021-03-02T11:46:07
2021-03-02T11:46:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import time import numpy as np from functools import partial from src.libs.utils import center_crop from src.libs.viz import draw_bboxes, integrate_frame class Runner: def __init__(self, args, reader, profile_integration=False): self.args = args self.reader = reader self.num_...
UTF-8
Python
false
false
5,266
py
24
runner.py
20
0.528295
0.521458
0
127
40.456693
109
martinodonnell/LowResImageRecognision
15,461,882,270,028
95205feec07c5c9ae39e92b4246d1c4c479d536e
e579eeb07f7b296898e673318445edd5bc3f7a9d
/unit_tests/datasets/stanford/test_stanford_datasets.py
1cd9730bdb04d15e3055ab9071b40eb713bff7f5
[]
no_license
https://github.com/martinodonnell/LowResImageRecognision
d0e86a90d635bb2ad6433cbd09abb26b5c728723
a69dfc60f2859a16b0ddea88ae9ce696e19045f4
refs/heads/master
2023-03-01T19:47:14.666650
2021-02-13T10:07:26
2021-02-13T10:07:26
232,346,151
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torchvision import sys import os if ('..' not in sys.path) : sys.path.append("..") from config import STANFORD_CARS_TRAIN,STANFORD_CARS_TEST,STANFORD_CARS_TRAIN_ANNOS,STANFORD_CARS_TEST_ANNOS from datasets.stanford.stanford_datasets import StanfordCarsDatasetV1,StanfordCarsDatasetV2,StanfordCarsDatasetV3 from to...
UTF-8
Python
false
false
6,229
py
60
test_stanford_datasets.py
40
0.663349
0.563814
0
176
34.346591
123
DanielAndrews43/Tic-Tac-Toe
10,608,569,258,432
28ddcf5a4a6c07b1c1fafe8fe6d103315173cd80
7ddf5ae570ef384422e10480622cadf938082ca5
/tic-tac-toe.py
1e34c5a6ed5822065f285f515cd4c0f7346a7eb1
[]
no_license
https://github.com/DanielAndrews43/Tic-Tac-Toe
3d99e2170d371ebe0258dbbaab15bf7ed7b00f42
40713c2da6683a9ff0af594ea5cbb800e8254b77
refs/heads/master
2021-01-16T00:12:10.262135
2013-11-27T18:42:27
2013-11-27T18:42:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Tic-Tac-Toe ''' Example boards ----------- | x | x | x | |--- --- ---| | x | x | x | |--- --- ---| | x | x | x | ----------- x | x | x --- --- --- x | x | x --- --- --- x | x | x ''' def intro(keyword): ''' starts the game returns output based on input starts game then not talked to again ...
UTF-8
Python
false
false
4,590
py
2
tic-tac-toe.py
1
0.509368
0.506972
0
148
30.02027
110
ralphbean/tos-rit-projects-seminar
10,797,547,828,074
5135916a4b38642dee806cc82e9fb0fd3359a1a3
a8b75179b0df027c504cddc9757b5ddd79415be2
/lib/ritfloss/rubric_stats/stats.py
390a620c264ec479fb8965ff8fa850e4723cc6a0
[]
no_license
https://github.com/ralphbean/tos-rit-projects-seminar
1da96e2a7ece7bf562f510510220c98a7ff564e7
407f8b95d66e49b35ea549282f6ae5790e488bc2
refs/heads/master
2021-01-01T17:09:27.904662
2018-10-08T13:15:09
2018-10-08T13:15:09
2,473,022
1
16
null
false
2018-10-08T13:15:10
2011-09-28T05:34:14
2016-10-11T13:48:55
2018-10-08T13:15:10
20,999
17
16
0
Python
false
null
from pbs import grep, git import pprint def get_authors(): lines = grep(git("log"), "Author").split("\n") names = [' '.join(line.split()[1:-1]) for line in lines] garbage = ['', 'unknown', 'Ralph Bean'] return [name for name in set(names) if name not in garbage] def adjust_impact(impact): dupli...
UTF-8
Python
false
false
2,063
py
22
stats.py
6
0.595734
0.568105
0
74
26.864865
72
dmitriySSAU/TestRunner
5,016,521,834,381
60512fcdbbad5e3e24d2928cfa0ebe88f9ef8b13
b7c89caa1d11320265f7d19aa93a652103c40a13
/scripts/tools/ptz.py
9af217b9b5e4211c30d02456f04ad9a27ce5a5e6
[]
no_license
https://github.com/dmitriySSAU/TestRunner
9a6f9d3516b1f8a9ca047aa798308184ed639f52
51dd5ad499adf15efedf37d902214ec2504a637d
refs/heads/master
2021-05-19T12:50:39.065949
2020-09-01T06:30:54
2020-09-01T06:30:54
251,703,280
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time from lib.log_and_statistic import log from lib.log_and_statistic.statistic import Statistic from lib.client.soapClient import SoapClient from scripts.ws import ptz as ws from scripts.common import tools def compare_coordinates(first_coordinate: int, second_coordinate: int, inaccuracy: int = 0) -> bool:...
UTF-8
Python
false
false
11,146
py
34
ptz.py
29
0.604206
0.590517
0
227
43.409692
120
ucandoitrohit/Python3
4,758,823,778,311
046b76826d33bd4b495a5c38fd58cd40dc525bb5
c21df9427b4573fbb36e923543b61eeb84e2d1e6
/Python_Basic_script/Python_Basic/16.file-io.basic.py
54696f31f6504848c409b916f22b6bb3d6fe5601
[]
no_license
https://github.com/ucandoitrohit/Python3
db56d60604752b6eb3c9037432df9dfc7fe6ed19
2e93a9cf352394e04bffda93065df15cb85508de
refs/heads/master
2023-07-22T02:11:26.557496
2023-07-11T04:38:22
2023-07-11T04:38:22
175,063,714
0
1
null
false
2022-12-17T03:33:55
2019-03-11T18:47:43
2022-12-17T03:33:24
2022-12-17T03:33:53
713
0
1
0
PowerShell
false
false
f = open("rohit.txt") content = f.read() print(content) f.close() f = open("rohit.txt","r") content = f.read() print(content) f.close() f = open("rohit.txt","br") content = f.read() print(content) f.close() f = open("rohit.txt","tr") content = f.read(3) print(content) content = f.read(3) print(content) f.close() ...
UTF-8
Python
false
false
491
py
570
16.file-io.basic.py
282
0.608961
0.604888
0
35
12.942857
26
anirban89/My-Masters_Code
9,148,280,372,297
b94cb2e61d9ff7c5716442ce855cd8942bde85a4
6a16116f96e1c26c107bef76ed9e5c9c78aafcc0
/1d/testEBeta.py
47416e7246113d0eb74f9111ff2509c38dc71806
[]
no_license
https://github.com/anirban89/My-Masters_Code
f0ac7eb5fa900d7794ce1dfa1fe9e5a87990d4c6
f16c49ea31a9a9215699e308aba181cd9307f975
refs/heads/master
2021-01-15T13:36:43.751511
2014-08-26T02:16:50
2014-08-26T02:16:50
23,330,647
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from finiteDifference import *; from integrator import *; from boundary import *; from pylab import *; import scipy as sp; import pylab as m; import sys; resume = 0; path = '/home/joy/NewEquatorialBeta/'; if(len(sys.argv) > 1): print "Resuming"; resume = int(sys.argv[1]); N = 128; g = 10; H = 250; beta =...
UTF-8
Python
false
false
6,089
py
111
testEBeta.py
93
0.512235
0.486944
0
279
20.820789
99
changc42/Learning-Python
1,211,180,828,279
918056a00a095e34beb834eabe8355d7038f414a
451f1f3c5108761b127153a235c41078954183c1
/test.py
17a7700d4188f972747559c49d73e6ed36cbc97c
[]
no_license
https://github.com/changc42/Learning-Python
a63a760eea881a8bfec55aeaed4effee395ca0cd
7a6baab6485fa57ed0c3b8dc7edd0771a892ef24
refs/heads/master
2020-09-05T12:21:59.331258
2019-11-07T15:25:53
2019-11-07T15:25:53
220,102,681
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
count = [0] count[0]=9 def counter(n): n[0]=5 counter(count) print(count[0])
UTF-8
Python
false
false
84
py
4
test.py
3
0.595238
0.52381
0
10
7.5
15
beky25/Social-Analytics-
18,159,121,762,812
b19070e5e4289d4c685ff61fe661f8f25be68176
1d265c94afbd100241def925a3a26ccde0cb8a08
/social-Analytics /config1.py
f84aee303f62f522c5e605651a7e1d814d2e4872
[]
no_license
https://github.com/beky25/Social-Analytics-
5691ac4644bb7282cf00dd24a197a18ac349170b
f64dc729a6377b87a60e9bf98bc965e2fca402db
refs/heads/master
2020-03-23T04:05:20.639141
2018-07-15T23:19:40
2018-07-15T23:19:40
141,064,815
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
consumer_key = '0gNvW3tTD4VNNs9F5BN8Y8aej' consumer_secret = 'RDBzocYSmzymp98H340LDPVIDRVEgfRJvkDh69NFNufCSMBhmY' access_token ='1013062013373820928-uC4zT1ds1pjOo8jIfVpuE4OHXySUb9' access_token_secret ='Qe094f079V8UxmJACjgTo8bfVijU5wHXmrQPUZc1OBcyX'
UTF-8
Python
false
false
254
py
3
config1.py
1
0.874016
0.681102
0
9
27.333333
70
konkolorado/ensemble_santander
6,811,818,131,881
5544634d1f611387e3052a3b7c1782ee97ac5a3d
96ceb436e3fc419d98eb7f4d90b434a76cb19b2e
/pca.py
36aa87f601bf546293e72c2e1fd73243201633e6
[]
no_license
https://github.com/konkolorado/ensemble_santander
65c423f1803ecd26c8bc28a3334ab8a90578d858
9961436462ab859e14982f60766761699370be8b
refs/heads/master
2021-06-01T07:28:06.878183
2016-05-13T17:49:21
2016-05-13T17:49:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Uriel Mandujano A program for performing Principal Component Analysis on the training data provided by Santander competition on Kaggle """ from scipy import linalg from sklearn import preprocessing from sklearn.decomposition import PCA, FactorAnalysis from sklearn.cross_validation import cross_val_score import nu...
UTF-8
Python
false
false
4,717
py
6
pca.py
3
0.603986
0.602714
0
151
30.238411
79
AlbeyAl/aDOTcalendar
6,863,357,785,300
8ca5341cf4062e01e9b14df0f771bf6e76e17bc2
f908dfc6fd4499e16ba03785b932ba54f1e263cd
/calendar_index/apps.py
5b1d5a25c6b1ee33e056cf95bc12bba7ebbfe99a
[]
no_license
https://github.com/AlbeyAl/aDOTcalendar
d749d944128cce33e903d654e0247c06fcf01677
67662b50e687df605e891341f967a057d21a9110
refs/heads/main
2023-03-05T03:00:23.584485
2021-02-18T09:01:10
2021-02-18T09:01:10
322,116,990
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.apps import AppConfig class CalendarIndexConfig(AppConfig): name = 'calendar_index'
UTF-8
Python
false
false
102
py
18
apps.py
13
0.77451
0.77451
0
5
19.4
37
TonyCrespoMe/python-limacharlie
223,338,308,553
67d55e1116b326704dbd36d5c2afc452bcdec727
b5fd72eab002bef11b0498ee12f981002017eb9e
/limacharlie/Logs.py
22fe0dbce77e5dc85b112929a33f641b338380f9
[ "Apache-2.0" ]
permissive
https://github.com/TonyCrespoMe/python-limacharlie
59b428f722b9b879c43af33e229cd02a984aa25e
caae87c3ebd6b2961663ddcae0e7cb1d31cccc63
refs/heads/master
2022-04-09T11:10:14.327198
2020-03-11T17:03:49
2020-03-11T17:03:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from limacharlie import Manager from .utils import LcApiException from .utils import GET # Detect if this is Python 2 or 3 import sys _IS_PYTHON_2 = False if sys.version_info[ 0 ] < 3: _IS_PYTHON_2 = True if _IS_PYTHON_2: from urllib2 import HTTPError from urllib2 import Request as URLRequest from url...
UTF-8
Python
false
false
12,027
py
2
Logs.py
2
0.490646
0.484909
0
324
36.123457
157
NSLS-II-LIX/py4xs
5,927,054,880,294
508bd92aa36eda0a74b4010cfff352aeae17cb7f
b5e44fd0010dd41834738ef84ddedf222d2c64cf
/py4xs/detector_config.py
ce75dc5d1d81a5a3110fb0f7fa2ba641811ba066
[]
no_license
https://github.com/NSLS-II-LIX/py4xs
ba89e57355fc24cd2c904a7e503bcc9ad3b624b7
1173bad79c4aed32541550e75df75dd4b7028327
refs/heads/master
2023-07-19T04:25:04.772887
2023-07-18T15:39:28
2023-07-18T15:39:28
118,817,574
4
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import copy import pickle,bz2 import numpy as np from py4xs.local import ExpPara,exp_attr det_attr = ['ImageWidth', 'ImageHeight', 'extension', 'fix_scale'] def create_det_from_attrs(attrs): #, qgrid): det = DetectorConfig() #qgrid=qgrid) det.unpack_dict(attrs) return det class DetectorConfig(): """...
UTF-8
Python
false
false
2,984
py
22
detector_config.py
11
0.558646
0.553619
0
81
35.728395
108
relekang/python-semantic-release
11,690,900,998,311
28bd755a9661c13e512a195dbeec80d874f5755a
394141477e016101200511ab97b7fde4300abae2
/tests/parsers/test_emoji.py
83cfbe60bce4d2b080fa0ff88eccc43baec49124
[ "MIT" ]
permissive
https://github.com/relekang/python-semantic-release
51dead47dd42d57d1d2fa92da7343fafd9b49a24
2d9f77a04d287552fb51611585c69968aef0b367
refs/heads/master
2022-10-27T13:27:55.327332
2022-10-22T17:30:39
2022-10-22T17:30:39
39,765,732
526
207
null
null
null
null
null
null
null
null
null
null
null
null
null
import mock import pytest from semantic_release.history import emoji_parser from .. import wrapped_config_get def test_major(): commit = ( ":boom: Breaking changes\n\n" "More description\n\n" "Even more description" ) parsed_commit = emoji_parser(commit) assert parsed_commit[0] == 3 asse...
UTF-8
Python
false
false
3,088
py
44
test_emoji.py
28
0.604922
0.593588
0
104
28.692308
84
wolfram74/kata_05
16,733,192,624,955
674dc6b865935b68b4cbd025690c78aa196702a1
8b14ef11f2f642d1808338126e81b76b3b1d4a9c
/test_bloom.py
98403b989a55aba72422ad3dc1948286a3d42a20
[]
no_license
https://github.com/wolfram74/kata_05
d9e13dddc0fc4150bb21d1ac14c3ebc06c622db4
ac65dcc4a0899d3da025715d2aad10b4bff7677c
refs/heads/master
2021-01-20T19:57:52.172304
2016-07-20T21:33:43
2016-07-20T21:33:43
63,352,761
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import bloom_filter class BloomTest(unittest.TestCase): def setUp(self): self.filter = bloom_filter.BloomFilter() def test_existence(self): self.assertEqual(type(self.filter), bloom_filter.BloomFilter) def test_not_included(self): self.assertFalse(self.filter.inclu...
UTF-8
Python
false
false
1,285
py
6
test_bloom.py
4
0.684047
0.677821
0
37
33.702703
76
xuesyn/Occluded-Dataset-with-Color-Augmentation
6,957,847,040,340
6f6b290d4c9724b7d323a63f5e4505a14654977e
0cfc2d67adc662ea8aa03b8339fbb5e7da143f98
/CreateOccludedDatasetWithColorAugmentation.py
26b4f246aa1637cabd2940aa8331f31095a6c584
[ "MIT" ]
permissive
https://github.com/xuesyn/Occluded-Dataset-with-Color-Augmentation
38ca9b2d74eb449d056a0e912925db662d9f0fe5
0f9c5feac4931769770f8695f07c1b95804cc688
refs/heads/main
2023-07-27T18:33:24.224599
2021-09-12T00:13:40
2021-09-12T00:13:40
359,424,444
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import BboxTools.BboxTools as bbt import os import scipy.io from PIL import Image import cv2 import time import pandas as pd import argparse from WBAugmenter import WBEmulator as wbAug import shutil def parse_args(): parser = argparse.ArgumentParser(description="WB color augmenter")...
UTF-8
Python
false
false
21,450
py
18
CreateOccludedDatasetWithColorAugmentation.py
3
0.5462
0.534825
0
500
40.88
289
iranmolina3/DevDjangoSchool
6,390,911,360,677
333f0744993d95d802ac962b229b633343a1e267
480b0f8e985ccced2c83c939d1ada30e8be3da6e
/Apps/AppUsuario/migrations/0004_remove_clsusuario_fk_establecimiento.py
41b143afe8313f8f5e716c21901f4f797695202e
[]
no_license
https://github.com/iranmolina3/DevDjangoSchool
205243a39c793b0631c0b25732725053d262e286
bf91cb302a92e7fff8a977732db2a3c3fef81011
refs/heads/master
2022-03-20T13:58:28.916185
2019-11-16T02:08:12
2019-11-16T02:08:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.7 on 2019-11-15 09:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('AppUsuario', '0003_auto_20191113_0005'), ] operations = [ migrations.RemoveField( model_name='clsusuario', name='fk_establec...
UTF-8
Python
false
false
347
py
81
0004_remove_clsusuario_fk_establecimiento.py
69
0.599424
0.510086
0
17
19.411765
50
christophecasson/ttfobservatory
6,167,573,052,264
ffc9fc2fe3b507db228f0c688f31416d95dc30fb
fd589e21e96ccd80f9348897dae0cd515d136d21
/app/observatorycontroller/roof-controller.py
7de71a89f5bf68d2534fc87a6c71103ac37a3706
[]
no_license
https://github.com/christophecasson/ttfobservatory
c949b4518f18073a019bc83c8ed3efdccb82e2b4
f45c868512d66f8490072a6d7c32d39404319918
refs/heads/master
2023-04-07T12:20:06.619695
2021-04-04T14:44:44
2021-04-04T14:44:44
112,009,267
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python2 import os import errno import time from datetime import datetime import sys import signal import serial from tools import * BOARDNAME = "roof" status = { "board_state":"Connecting", "board_vin":"Connecting", "state":"Connecting", "opened":"Connecting", "closed":"Connecting" } contro...
UTF-8
Python
false
false
4,266
py
29
roof-controller.py
26
0.651195
0.641585
0
248
16.197581
93
0xafbf/lluvia
16,862,041,624,814
15dc59a51065c71ec73505193b8889a1e42df9fa
12c0f26d96756f51244a126fcebb1e3e98ba17a4
/python/src/lluvia/core/enums/__init__.py
856057461ac8ed6db82cd3d890fbce35e69e52de
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/0xafbf/lluvia
bfd2a9d9913efe978dc82d308996037d4ecef02e
ea0633dbec9d38f4a6de5577b3c19908eb8a7ba4
refs/heads/master
2022-09-11T08:27:09.711825
2020-05-23T20:06:34
2020-05-23T20:06:34
262,950,108
1
0
Apache-2.0
true
2020-05-11T05:47:16
2020-05-11T05:47:16
2020-05-06T16:31:23
2020-05-01T19:16:51
849
0
0
0
null
false
false
""" lluvia.core.enums ----------------- :copyright: 2018, Juan David Adarve Bermudez. See AUTHORS for more details. :license: Apache-2 license, see LICENSE for more details. """ from .image import ChannelType, ChannelCount, ImageUsageFlagBits, ImageAxis, ImageFilterMode, ImageAddressMode from .node im...
UTF-8
Python
false
false
516
py
74
__init__.py
25
0.763566
0.753876
0
12
42
110
tableau/altimeter
11,974,368,853,385
246e727dce04f520642216db2bdddefaa62364d8
274eb3a3c4202c86a40e13d2de7c2d6f2a982fcb
/tests/unit/altimeter/core/graph/test_schema.py
80aa1077f3775da60b66022353dd4b1c8ffff7e0
[ "MIT", "Python-2.0" ]
permissive
https://github.com/tableau/altimeter
6199b8827d193946bb0d0d1e29e462fc8749d3e4
eb7d5d18f3d177973c4105c21be9d251250ca8d6
refs/heads/master
2023-08-15T16:21:31.265590
2023-07-04T13:13:32
2023-07-04T13:13:32
212,153,766
75
25
MIT
false
2023-08-02T02:05:22
2019-10-01T17:10:16
2023-06-22T14:24:42
2023-08-02T02:05:17
1,670
67
23
15
Python
false
false
from unittest import TestCase from altimeter.core.graph.field.scalar_field import ScalarField from altimeter.core.graph.links import LinkCollection, SimpleLink from altimeter.core.graph.schema import Schema class TestSchema(TestCase): def test_parse(self): schema = Schema(ScalarField("Key1"), ScalarField...
UTF-8
Python
false
false
711
py
248
test_schema.py
225
0.652602
0.638537
0
19
36.421053
67
Pratham82/Python-Programming
3,083,786,536,636
70bd5ea834f52851e15b7a18ed863ee96617ecc8
bf616736ea66c0ce3f36f0d75d9f2951c52b74d7
/Exercises from books/Learn python the hard way/Exercise_14.py
cb099f944dd67dc413863a072cd9ba6df069ffef
[ "MIT" ]
permissive
https://github.com/Pratham82/Python-Programming
40a03e163bdc6985a337a8a9638f4eb77ae43ad9
bbe5fd9132d5cf42ed9f29c3dd758cdc2c17760c
refs/heads/master
2021-12-12T15:13:32.018356
2021-12-09T18:16:43
2021-12-09T18:16:43
230,051,536
3
2
MIT
false
2021-10-06T10:11:37
2019-12-25T06:13:04
2021-10-06T09:12:50
2021-10-06T10:11:37
281
3
2
0
Python
false
false
#* Prompting and passing from sys import argv import re script, username = argv clean_script = re.sub('[.py]', '',script) prompt="-->" def prompts_passing_game(): while True: print(f"Hi {username} how you doing?.\nI'm the {clean_script} script") print("I'm going to ask you some questions, is ...
UTF-8
Python
false
false
1,066
py
270
Exercise_14.py
259
0.582314
0.582314
0
36
28.555556
158
anuragtomar2510/iitb-reddit
7,825,430,444,065
e93a04d5a4f34ab3dea187ec2deeab262b98e792
dab3d1431dd63e1e73a53478ad1ddd3e8ba25921
/reddit/subreddits/models.py
02c2395a20f1aac55ca7f867956421698ea4367b
[]
no_license
https://github.com/anuragtomar2510/iitb-reddit
b359baf95167b5c0fcc77f5c5703ef43b019a085
7d8d86c5637cf33a3a1b0b4ce13dd724546cdcae
refs/heads/master
2021-06-07T23:22:09.444472
2016-11-23T20:18:22
2016-11-23T20:18:22
null
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 from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ def validate_nospace(value): if value.find(' ') != -1: raise ValidationError( _('%(value)s contains space'), ...
UTF-8
Python
false
false
668
py
30
models.py
22
0.678144
0.673653
0
21
30.809524
101
makovako-tutorials/flask-app-tutorial
10,075,993,276,967
64142280d194b08f38b2dd80b9053ddd6b366d6c
a034f129622faad5f8d9818a7a568ba43c20502d
/06-configuration/config.py
2644394a900e1b20e6c0277ba53084f3ffadb1cb
[]
no_license
https://github.com/makovako-tutorials/flask-app-tutorial
c70f25687d7e74c287cd328c0542d297c07c1409
7d72c80b1a0c00c9510b6316271da4419209aa9a
refs/heads/master
2021-02-26T08:16:14.261135
2020-03-11T15:36:10
2020-03-11T15:36:10
245,509,760
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Flask config class.""" import os class Config: """Set Flask configuration vars.""" # General Config TESTING = True DEBUG = True SECRET_KEY = b'_5#y2L"F4Q8z\n\xec]/' SESSION_COOKIE_NAME = 'my_cookie' # From .env TESTING = os.environ.get('TESTING') DEBUG = os.environ.get('DEBUG'...
UTF-8
Python
false
false
1,076
py
11
config.py
8
0.686803
0.682156
0.000929
54
18.925926
63
LeeEunHak/Python_Study
1,563,368,099,427
2d2acc327a416ac49701f3e442b958c1b2e20656
8ffec9a0ca89c4eebb33bff1b8505b2696968eae
/CHAPTER06_리스트/Pythagoras.py
8e94c62a7cee065cfeb0e5cf370fc42951312992
[]
no_license
https://github.com/LeeEunHak/Python_Study
f26b6ca1adb63cd4c8e146e97e63a8b1e118f4a6
2892ba8d77f6b6cbe70db69a0f718443de3d6fec
refs/heads/master
2020-04-07T08:31:21.294187
2019-08-01T05:34:56
2019-08-01T05:34:56
158,217,662
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 피타고라스 정리를 만족하는 삼각형들을 모두 찾아보자. # 삼각형의 한 변의 길이는 1부터 30이하이다. new_list=[] for x in range(1,30): for y in range(x,30): for z in range(y,30): if x**2 + y**2 == z**2: new_list.append((x, y, z)) print(new_list)
UTF-8
Python
false
false
325
py
40
Pythagoras.py
38
0.51417
0.461538
0
11
21.454545
42
harshittiwari/LeetCode
9,388,798,540,940
de19b828b3d09da70628d9cf33cd79128339d562
5a0b3b6742a23f23295f38d8822f366ec5521350
/Two Sum.py
b720648daab9894195690d77a2521c8eb0f5aa00
[]
no_license
https://github.com/harshittiwari/LeetCode
672e83e773758dfac1f80c88042536e7c81d160b
478bb4019ed38d489171428dced8cbc6f9b3eb52
refs/heads/master
2020-12-24T08:03:10.489683
2016-08-29T22:02:26
2016-08-29T22:02:26
56,408,632
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ for i in range(len(nums)): x = target - nums[i] for j in range(i+1,len(nums)): if nums[j] == x: ...
UTF-8
Python
false
false
498
py
43
Two Sum.py
42
0.473896
0.425703
0
18
26.722222
42
xsig/grader
13,331,578,510,462
f1248ed323829bd6979735022505805180ff1774
b26116ebb2291c5e4dbf38abb7ae04c6d1160b07
/hito1_ej3/hito1_ej3_02ef5d365ea8ffa81bfe24ebb25bf3cd.py
bef2bf0d48e7ed42942e7f9e4d5e0e90fad2e5c7
[]
no_license
https://github.com/xsig/grader
91538b149a263adbe68056060f26e1a822b593d7
8a65cb7970466ed83fe061839ba7776a7d45d38b
refs/heads/master
2018-02-14T05:06:29.887487
2017-06-10T22:05:35
2017-06-10T22:05:35
64,847,548
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Aprobación de créditos ingreso = int(input("Ingreso: ")) nacimiento = int(input("Ano de nacimiento: ")) hijos = int(input("Hijos: ")) anosBanco = int(input("Anos banco: ")) estado = input("Estado civil (S, C): ") vivienda = input("Vivienda (U, R): ") anos = 2016 - nacimiento if anosBanco > 10 and hijos >= 2: print(...
UTF-8
Python
false
false
646
py
1,840
hito1_ej3_02ef5d365ea8ffa81bfe24ebb25bf3cd.py
1,834
0.656832
0.613354
0
22
28.318182
61
AneesKazi/TrainingOnFly
901,943,158,373
734efc87eaa360afa8c3c43c26575dfaec751786
4027a84e303130252054bed63d21e27ef3fe06c2
/CodeToTrainOnFly/investigate.py
287847148a8e05f3b1bad329be55cc8f4d972c39
[]
no_license
https://github.com/AneesKazi/TrainingOnFly
343657f8549b8e358a7b4671aab4d7bf18c849de
81a3524f2105bea8c54949d952d189f38f60a893
refs/heads/master
2020-04-03T03:18:42.287718
2018-10-27T15:56:04
2018-10-27T15:56:04
154,982,061
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import oct_io as io import models import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import copy class Denoiser(object): def __init__(self, checkpoint, basename): # load model self.basename = basename self.checkpoint = basename + checkpoint self.garch = bas...
UTF-8
Python
false
false
8,843
py
8
investigate.py
7
0.596065
0.572769
0
239
35.991632
191
iiasa/message_ix
10,823,317,588,457
9c1c3ac19e2c7c9c1c97a96eef3843b76b7e0006
97efdfac795c44f9a2a62e48ba71bf1783c523bf
/message_ix/tests/test_feature_bound_emission.py
61c22d4b1bb682b7975fb9645ed1b0a3aa139474
[ "CC-BY-4.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
https://github.com/iiasa/message_ix
1e96ee254b6f67117faf4fb78ef8fd75d9ee0a6c
bf4469111a2d10c5dbc2c921e6a7e502e96aea34
refs/heads/main
2023-08-17T20:36:23.055462
2023-08-14T08:46:24
2023-08-14T08:46:24
113,015,968
103
162
Apache-2.0
false
2023-09-08T11:56:21
2017-12-04T08:29:06
2023-08-25T03:47:48
2023-09-08T11:56:21
11,347
97
141
119
Jupyter Notebook
false
false
from message_ix import Scenario def model_setup(scen, years): scen.add_set("node", "node") scen.add_set("lvl_spatial", "country") scen.add_set("map_spatial_hierarchy", ["country", "node", "World"]) scen.add_set("commodity", "comm") scen.add_set("emission", "emiss") scen.add_cat("emission", "em...
UTF-8
Python
false
false
2,990
py
156
test_feature_bound_emission.py
46
0.626421
0.599666
0
76
38.342105
87
STProgrammer/PythonExercises
2,714,419,378,979
890b6fff6d71d0de17af2c974c5c3be51ed0c345
76f90608fb23f348afa0479d8fac517e2a39e758
/example-objects.py
9c26af9a950f0d3ea0705557e1ddf6e026cc447a
[]
no_license
https://github.com/STProgrammer/PythonExercises
e0153246c42840078c278afb9859dce90f7202e3
451431a72076afb911edfee36a2f92cc9e26ab90
refs/heads/master
2023-02-22T06:10:15.681781
2023-02-16T00:48:03
2023-02-16T00:48:03
172,222,765
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math class Apple: def __init__(self, w, c, land, worm): self.weight = w self.color = c self.country = land self.worm = worm def getinfo(self): print("A",self.color,"apple weighing",self.weight, "grams, from the country ",self.country) if self...
UTF-8
Python
false
false
1,310
py
27
example-objects.py
26
0.574809
0.545802
0
57
21.894737
72
tonyduydao/perfrunner
5,025,111,750,916
79d3334dbace826059778d19791fa2643a106457
e3a8fea71f740274001ae6fd8eb7a11b8810c89b
/clusters/numa.spec
6289f1db28e8bb58e87cf98dcb6486b66415368e
[ "Apache-2.0" ]
permissive
https://github.com/tonyduydao/perfrunner
efeedf5faf25c1ef105203dbee94cf315c063a41
5e0dab1af6083dc6408efcaa9f8d61262a43e6f2
refs/heads/master
2021-01-21T00:07:48.046467
2016-07-05T18:55:57
2016-07-05T21:02:14
62,670,707
1
0
null
true
2016-07-05T21:25:44
2016-07-05T21:25:44
2016-02-22T00:51:01
2016-07-05T21:02:16
19,627
0
0
0
null
null
null
[clusters] numa = 172.23.105.215:8091 [clients] hosts = 172.23.105.215 credentials = root:couchbase [storage] data = /ssd1 index = /ssd2 [credentials] rest = Administrator:password ssh = root:couchbase [parameters] Platform = HW OS = Ubuntu 14.04 CPU = E5-4610 (48 vCPU) Memory = 256 GB Disk = SSD
UTF-8
Python
false
false
310
spec
77
numa.spec
63
0.693548
0.558065
0
23
12.478261
29
juandausa/CompetitiveProgrammingCoreSkills
8,194,797,614,466
2a6a633465a7ae5f580839238f09d0ba827ceb7c
f4aa554cb461f93ee76a431ce0898d93d72b40fd
/Semana 4/maximal_manhattan_distance/test_pytest_point.py
b4790ee656a0c8cf4a7342143cf76dcf58809582
[ "MIT" ]
permissive
https://github.com/juandausa/CompetitiveProgrammingCoreSkills
7235e98a05497b8ee511de50fac4f385d3f9fa04
1ef0d902b6c05afba4b44c34ade87c376187fd1d
refs/heads/master
2021-03-27T22:17:09.875259
2020-03-27T13:55:39
2020-03-27T13:55:39
247,812,295
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from point import Point def test_create(): assert Point((0, 0)) is not None def test_create_point_get_distance(): point = Point((10, 10)) assert point.maximal_manhattan_distance == 0 assert point.maximal_manhattan_distance_coordinate == (10, 10) def test_create_point_update_distance()...
UTF-8
Python
false
false
956
py
52
test_pytest_point.py
50
0.670502
0.638075
0
29
30.896552
104
awardnopoints/SBSW
3,865,470,585,403
678431f7af253fd24e5d26ae7354c1e1f698e568
96f0e3994b31f00b9642b75087c38d57d949b0a8
/dublin_bus/dbus/urls.py
ac17b6e3ae8fee881f4e47b2552ae5af84a8a166
[]
no_license
https://github.com/awardnopoints/SBSW
c0b3e025e9ab420cc55b8820d8af9f594abb83d3
f91b5a4000658fb329454ca31b9b1762fa673715
refs/heads/master
2022-12-11T12:38:08.070060
2018-10-03T10:34:44
2018-10-03T10:34:44
138,013,054
0
0
null
false
2022-12-08T02:25:12
2018-06-20T09:51:48
2018-10-03T10:35:30
2022-12-08T02:25:11
3,164,758
0
0
7
Jupyter Notebook
false
false
from django.urls import path from . import views urlpatterns = [ path('', views.home, name = 'home'), path('predict_request/', views.predict_request, name='predict_request'), path('popStops/', views.popStops, name = 'popStops'), path('predict_address/' , views.predict_address, name='pre...
UTF-8
Python
false
false
530
py
84
urls.py
61
0.637736
0.637736
0
12
42.916667
81
scon/python-horiba-uploader
13,073,880,458,022
5edde6e252e82918679965f8658fbe8ba0362d9f
0ff8b5d3536a7d08efbc46053f25118d6bf3fcf5
/horiba.py
f92c5f92bc65458d85f9768c8494f3e75e0ca5ad
[]
no_license
https://github.com/scon/python-horiba-uploader
8355ec5cc1b38e1f55d3616e2277b2c10064ee69
de75d17218658ae3e512abc670279200b791d5c4
refs/heads/master
2021-09-04T11:51:31.046066
2018-01-18T13:09:22
2018-01-18T13:09:22
112,487,486
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import serial import time import math data_request = "\x02DA\x0304" class NOMonitor(object): """Horiba NO-Monitor""" def __init__(self, tty): self.tty = tty self.NO = 0.00 self.NO2 = 0.00 self.NOX = 0.00 self.serial = serial.Serial() self.error = False self.data = "DATASTRING" def connect(self): ...
UTF-8
Python
false
false
1,969
py
4
horiba.py
2
0.629761
0.583037
0.001016
94
19.87234
74
yagoadc/Sistemas_Distribuidos-20.2-
1,357,209,712,419
ac04c3c8846783b846ac0dab180cec5192ed3042
7fb7fc917b69868ed86464108f7436980809ccff
/LAB3/servidor.py
14c64a826b1e5ddc9f2cb43c32155bd3c3361869
[]
no_license
https://github.com/yagoadc/Sistemas_Distribuidos-20.2-
e1f93b260c6ef2f00d15da0500acce8ff2d67908
5781bb3d9ea75675193bccc6758b66af765e6108
refs/heads/main
2023-04-12T01:35:03.703368
2021-05-07T14:23:00
2021-05-07T14:23:00
351,749,467
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
####### LAB 3 - Sistemas Distribuidos ########### # Alunos: # Rodrigo Passos - 115196299 # Yago Alves - 115212477 ################################################## # lado servidor: implementação concorrente utilizando threads e na finalização do servidor usando join. from processamento import proces...
UTF-8
Python
false
false
4,861
py
10
servidor.py
8
0.602432
0.595425
0
135
34.940741
210
tboudreaux/SummerSTScICode
8,495,445,334,938
d0341661e2d685bd1292907e30dab679ea2d565a
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj_171424.16+614710.9/sdB_sdssj_171424.16+614710.9_coadd.py
6b127ae0e1312e4cdc7334b4ec249fdcf945bd58
[]
no_license
https://github.com/tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[258.600667,61.786361], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_sdssj_171424.16+614710.9/sdB_sdssj_171424.16+614710.9_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_...
UTF-8
Python
false
false
482
py
12,360
sdB_sdssj_171424.16+614710.9_coadd.py
2,022
0.753112
0.524896
0
5
95.4
404
tsouche/kivy_tuto
8,693,013,812,789
643f62526640277ad6fd58c0c9cec41d5943a02c
2fa3ea088477756e7731b0fc08f0f2b1c6796a38
/00-set/constants.py
03a6349f3b3e4c5c93bf7ed4fb5290a907b5a5f7
[]
no_license
https://github.com/tsouche/kivy_tuto
a11bf676a6fc5ded5871b9eea212a4e7ea41a9a4
97362de5e16bdc9f32a7b7e5058ccd26655bd67b
refs/heads/master
2021-01-12T15:09:13.471877
2016-10-17T21:56:56
2016-10-17T21:56:56
69,352,090
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on Oct 15, 2016 @author: thierry ''' constant_unit = 10 constant_card_height = 15 * constant_unit constant_card_width = 10 * constant_unit constant_nb_cols = 4 constant_nb_rows = 3 constant_color_background = (0.0, 0.4, 0.0, 1.0) # rgba constant_color_highlight = (1.0, 0.2, 0.2, 0.6) # rgba const...
UTF-8
Python
false
false
1,241
py
9
constants.py
8
0.564867
0.485898
0
30
40.3
71
Erik-A-Smith/demo-python3-command-pattern
850,403,529,089
9ce0d518b3d845c9721608b5487e5c7a95236176
b410989abee66fc118ccb537f3990534472d1df4
/Classes/Deck.py
1b236cb2360d66286431880168a8b5dd30716153
[ "MIT" ]
permissive
https://github.com/Erik-A-Smith/demo-python3-command-pattern
eac84567c0db02cbfde800cc7cc42e645a36bd85
9a0bde5a91e0fa81d3126e9333a220143833ce19
refs/heads/master
2020-04-26T10:48:17.885897
2019-03-02T20:50:59
2019-03-02T20:50:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Classes.Card import Card from Classes.Face import Face from Classes.Suit import Suit import random class Deck: cards = [] def __init__(self): self.cards = self.generateDeck(Suit.asArray(),Face.asArray()) def __str__(self): compiledString = "-----------my deck of cards--------...
UTF-8
Python
false
false
1,133
py
11
Deck.py
10
0.540159
0.538394
0
44
24.75
83
pbuckin/sample-projects
12,249,246,773,650
f087ed1ccbc18ebb72611b6eae39fa10eeb93a96
aa62fc4f34f19b9d7424711c778e58d7ed19a74e
/NeuralNetworks.py
5cc8374ced8b7fe4d7b4d735d17cd52a4cc49271
[]
no_license
https://github.com/pbuckin/sample-projects
051e785403bac1c0a892cdbf96491ddcb574e444
20e7a38d1f36c2c3cdb3fdfe6e455ae0f3d26ed3
refs/heads/master
2017-11-24T20:28:20.948736
2016-08-08T07:18:07
2016-08-08T07:18:07
64,881,278
0
0
null
false
2016-08-08T07:18:08
2016-08-03T21:40:42
2016-08-04T23:33:01
2016-08-08T07:18:07
13
0
0
0
Python
null
null
""" A library to construct a neural network class.The biases and weights are itialized according to a normal distribution and will be updated as the system learns. Note the options for the activation function: sigmoid, tanh, arctan, identity, softsign, softplus, and reLU activation functions are available. For the o...
UTF-8
Python
false
false
10,427
py
2
NeuralNetworks.py
2
0.584828
0.575813
0
285
35.585965
80
nondejus/clvm
4,535,485,507,824
72c907a0e0fdf769ccf8515cf83ec87df49aea4b
0d7afbd8a6c0b96044e10ee2ae85c33863007572
/setup.py
67225a20f29467e7ead40b0eddfb578b20c20094
[ "Apache-2.0" ]
permissive
https://github.com/nondejus/clvm
ffa437e2f6b7d92f91c7eb81ce2722bd7e59a959
c0414d916d2685c3eecef02ef53f39349eabae09
refs/heads/master
2020-09-26T16:32:49.302638
2019-12-06T09:36:12
2019-12-06T09:36:12
226,292,370
0
0
Apache-2.0
true
2019-12-06T09:27:37
2019-12-06T09:27:36
2019-12-05T00:10:45
2019-12-03T05:52:22
399
0
0
0
null
false
false
#!/usr/bin/env python from setuptools import setup from clvm.version import version setup( name="clvm", version=version, packages=[ "clvm", "clvm.ecdsa", ], author="Chia Network, Inc.", author_email="kiss@chia.net", url="https://github.com/Chia-Network/clvm", license=...
UTF-8
Python
false
false
723
py
58
setup.py
11
0.600277
0.589212
0
27
25.777778
61
haileystudy/leetcode
5,566,277,639,691
b5db008363fb3ea728d3aad8e152dc3754a00cc5
cd87cadf8a20df8617a46f260fac95df7d9587da
/442-find-all-duplicates-in-an-array.py
884302b361348dc5669645acf4da9fee15e37310
[]
no_license
https://github.com/haileystudy/leetcode
0fbf0eaac46b07fe98412a1f6786a77ffbcbb8d7
d384c8f953e6e9ff1ff27ce84e74539dd25beba3
refs/heads/master
2020-04-01T21:13:17.281229
2019-02-17T14:22:12
2019-02-17T14:22:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def findDuplicates(self, nums): result = [] onlyone = set() for num in nums: if num not in onlyone: onlyone.add(num) else: result.append(num) return result
UTF-8
Python
false
false
264
py
42
442-find-all-duplicates-in-an-array.py
41
0.481061
0.481061
0
10
25.4
35
tanmay-rpatil/wiki-demo
3,770,981,326,120
a181ee067cd9595a1fc2c744a37835f8ae0d1dac
f9894a5dda6aa93dee5a195aca5453f834600161
/api/urls.py
d9c9ff73b374ce6f5694d3acee0805518042188e
[]
no_license
https://github.com/tanmay-rpatil/wiki-demo
2c547a6fd9a273c5c71f583759f35c1079167148
b4bde99fb5f31a3fa0d9d3a31383b1f3b4c6cc8d
refs/heads/master
2023-06-02T03:12:08.009980
2021-06-22T07:34:13
2021-06-22T07:34:13
377,056,877
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from . import views urlpatterns = [ path('', views.apiOverview, name="api-overview"), path('entry-list/', views.entrylist ,name='entry-list'), path('entry-search/', views.entrysearch ,name='entry-search'), path('entry-rand...
UTF-8
Python
false
false
805
py
13
urls.py
7
0.726708
0.724224
0
14
56.5
152
priyanshuinn/Survelon
13,434,657,720,474
1f88ee4f2d069092ab19eff5e674ee21ad34176f
77a55d19b1b5ff33055e5de04c5ed49350a73bf6
/course/urls.py
12360d489257d60af61dd14e5315cf05e063c92b
[]
no_license
https://github.com/priyanshuinn/Survelon
d56def9a9ab99590e92cd0a5419afd484b51bc66
a0229cea1321e28a791db52ff109773f693462f0
refs/heads/main
2023-04-16T12:05:59.130597
2021-04-12T18:41:56
2021-04-12T18:41:56
356,881,305
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views from .views import POSTSpeed urlpatterns = [ path('post/<int:my_id>', views.post, name = 'post'), path('describe', views.overview, name = 'overview'), path('Rvedio',views.display,name='real_video'), path('stream/',POSTSpeed.as_view(),name='stream'), ...
UTF-8
Python
false
false
452
py
24
urls.py
10
0.654867
0.654867
0
12
36.75
56
friquette/OC_Projet_09
11,527,692,225,347
b2f07f149ed76ef1dddee28e5914450cbf4ef16b
8d317aaa59b18c7b5253e6b7835439a2314dad1e
/litreview/follows/urls.py
c5785084624193bba84a52588a45540bfc886327
[]
no_license
https://github.com/friquette/OC_Projet_09
78db03e8d3ddcc552e69ebc9d43dbe34a46831de
1d2d3adddf16233f032f5471a362412abde2b88f
refs/heads/main
2023-06-21T13:08:50.168383
2021-08-06T19:04:44
2021-08-06T19:04:44
359,482,813
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.follows, name='follows'), path('unfollow/', views.unfollows, name='unfollows') ]
UTF-8
Python
false
false
171
py
20
urls.py
8
0.678363
0.678363
0
8
20.375
56
quantmind/lux
154,618,853,204
86789442dd4f0b26e659c35941f4a800a4013f69
d6b8c5594c668cd2aa907f79e80ea00f97b82d97
/lux/utils/files.py
17c303e427949b0b2e8c71817bfc06c7953ce00e
[ "BSD-3-Clause" ]
permissive
https://github.com/quantmind/lux
68d44242cd10a012f32888174d9db801c09b2715
7318fcd86c77616aada41d8182a04339680a554c
refs/heads/master
2021-01-23T11:32:03.180026
2018-01-06T09:28:30
2018-01-06T09:28:30
16,417,125
21
16
BSD-3-Clause
false
2019-10-22T23:21:37
2014-01-31T18:53:55
2019-08-13T15:34:39
2019-10-22T23:21:36
9,589
20
9
12
Python
false
false
''' Some code is taken from django: Copyright (c) Django Software Foundation and individual contributors. All rights reserved. ''' import os import re import itertools __all__ = ['Filehandler'] def skipfile(name): return name.startswith('.') or name.startswith('_') def directory(dir): bd, fname =...
UTF-8
Python
false
false
4,997
py
269
files.py
203
0.613568
0.611567
0
160
30.23125
79
pragmagrid/pragma_boot
18,133,351,958,569
1d78f4ae8287f78689e026bc253ae6f2b24fde3b
c2c99b5331f6cc5430fcf7e8d372585b155691c1
/pragma/repository/processor/xmlprocessor.py
9ce27a5b8d78d354fcdf21ae0a777cfdadacd5cd
[]
no_license
https://github.com/pragmagrid/pragma_boot
cca8568521edc59ceffeffdc78a62af83cd6eb7f
efcd402eef84a7e26f617fb7977557839419ae95
refs/heads/master
2021-02-27T04:57:07.885271
2018-08-22T03:41:47
2018-08-22T03:41:47
11,617,534
5
2
null
false
2017-03-30T21:53:50
2013-07-23T19:46:50
2017-03-17T12:52:49
2017-03-30T21:53:50
384
4
2
0
Python
null
null
import logging import os import xml.etree.ElementTree as ET from xml.dom import minidom from pragma.utils import Abort, ClusterNetwork class XmlInput: def __init__(self, xmltree, dir): self.xml = xmltree self.dir = dir logging.basicConfig() self.logger = logging.getLogger(self.__m...
UTF-8
Python
false
false
9,258
py
46
xmlprocessor.py
34
0.572046
0.571938
0
246
36.634146
120
ghilbing/Ejemplos
6,373,731,516,955
0ecd0d0fcc355f9ed4c6b535630240385e4828d3
2491df3f643539e6055bb0b2a4b659474c57491f
/isValidBinarySearchTree.py
183e97b32d0188ba957d1ad448fbfc3941839c03
[]
no_license
https://github.com/ghilbing/Ejemplos
85efc91346028b8a3d26d7680d9286b26234c771
339a45ef48c9a61002a01f7c823cc42d34fab409
refs/heads/master
2021-05-13T13:58:33.010157
2018-02-26T20:44:44
2018-02-26T20:44:44
116,724,506
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def isValidBST(A): output = [] self.inOrder(A, output) for i in range(1, len(output)): if output[i - 1] >= output[i]: return 0 return 1 def inOrder(self, A, output): if A is None: return self.inOrder(A.left, output) output.append(A.val) self.inOrder(A.right...
UTF-8
Python
false
false
745
py
150
isValidBinarySearchTree.py
149
0.520805
0.515436
0
35
20.285714
56
ov8525/ohany-villa-project-1
9,285,719,332,171
aac68c8308a85446c70992e366ce5428deb03255
b65ff6ca3514f24a8bd6faba27c3c2d932262ce5
/main.py
358e50a83104ff797afd118bbf8a3257c0a63aac
[]
no_license
https://github.com/ov8525/ohany-villa-project-1
e7e2bb0a9d73f74bfe7d9c1338051526fd66331f
30b830c1c2c23929cbc46628c97881710c5e4dfc
refs/heads/master
2023-01-28T00:58:15.589420
2020-11-29T19:15:39
2020-11-29T19:15:39
317,003,435
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
while True: print("Temperature(F): " + input.temperature(TemperatureUnit.FAHRENHEIT)) if input.temperature(TemperatureUnit.FAHRENHEIT) > 160 : light.set_brightness(100) light.set_all(light.rgb(255,0,0)) pause(300) light.clear() pause(300) elif input.temperature(Tempe...
UTF-8
Python
false
false
1,394
py
2
main.py
2
0.571736
0.47561
0
42
32.190476
77
akdeveloper0791/green_content
12,584,254,217,497
71d78cf847f9e9530ca95f3d9ff11ff8ba11ec86
9d65e8c566992b53ed164d70f6e07a2618725871
/player/migrations/0027_auto_20190323_1711.py
43b241df3ff3f8edf3d30aab704f6fad2548081e
[]
no_license
https://github.com/akdeveloper0791/green_content
0141b0784a4a58a84429cac5d326f65edbf11921
c04c8d863b90cd2ff4d2e26b4e814f4352251191
refs/heads/master
2022-05-18T09:37:51.475697
2020-10-26T05:27:10
2020-10-26T05:27:10
164,104,618
0
0
null
false
2022-04-22T21:05:12
2019-01-04T12:25:38
2020-10-26T05:27:16
2022-04-22T21:05:10
203,759
0
0
3
JavaScript
false
false
# Generated by Django 2.0.9 on 2019-03-23 11:41 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('player', '0026_auto_20190323_1442'), ] operations = [ migrations.AddField( model_name='campaign_reports', ...
UTF-8
Python
false
false
1,289
py
310
0027_auto_20190323_1711.py
246
0.581071
0.498061
0
39
32.051282
99
heimish-kyma/OCR-Detectors
927,712,978,871
abbd2e046e1f107d1e1806f451f01239e700027f
3f5f70f23259d76f23f55517f1de068631669496
/src/datasets/textfusenet/__init__.py
34249cbce084d4335be9a95f683d078e8e85fe00
[]
no_license
https://github.com/heimish-kyma/OCR-Detectors
4ab662028ae13a3081a59856f65bd8aa5a765938
47e953f553f19812c9b28ac4aeca1124c9ff48e3
refs/heads/main
2023-08-29T07:52:03.636896
2021-11-09T03:00:46
2021-11-09T03:00:46
424,207,894
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from .base import label2cls, cls2label from .base import TextFuseBaseDS from .synthtext import TextFuseNetSynthTextDS from .icdar13 import TextFuseNetICDAR13DS class CollateFN(): def __init__(self): pass def __call__(self, batch): return tuple(zip(*batch))
UTF-8
Python
false
false
283
py
54
__init__.py
43
0.713781
0.69258
0
12
22.666667
45
polyswarm/worker-registry
10,823,317,613,314
3805de0baeba8bb95e4446737f172219739f3bf4
61ffbb1f4d8b1a77b7dbb1dd84e29e510512edb8
/service/setup.py
28486e7e072efaaf53b90bbbfe0bd0d36bc53319
[ "MIT" ]
permissive
https://github.com/polyswarm/worker-registry
9005325bf269199948fe8cbc724830a5fdf9e5ca
dcc581d2ce14424b3b14561addc6b0defa580b59
refs/heads/master
2020-03-24T05:41:04.675066
2018-09-06T18:16:27
2018-09-06T18:16:27
142,497,559
0
1
MIT
false
2018-08-16T23:25:58
2018-07-26T21:51:50
2018-07-31T03:56:33
2018-08-16T22:59:40
395
0
1
0
JavaScript
false
null
from setuptools import setup def parse_requirements(): with open('requirements.txt', 'r') as f: return f.read().splitlines() setup( name='workerregistry', version='0.1', description='Server for querying the PolySwarm worker registry', author='PolySwarm Developers', author_email='info...
UTF-8
Python
false
false
696
py
43
setup.py
20
0.658046
0.655172
0
26
25.769231
76
RedBlaze42/Anti-Flag-bot
1,434,519,095,343
e7c16e4e391aaaf7aaef897e328f84542b4f739a
2893e5466ba5a78aef57901cadff2476b8626883
/main.py
5cd20ca9c00c31b83b51910293775153c0d42ff5
[]
no_license
https://github.com/RedBlaze42/Anti-Flag-bot
83b6addf2c306d68100467abf9cada2242b19e19
2aee458dc026e0284800a21f4b8ab8feaacd4783
refs/heads/master
2022-03-04T18:03:02.179798
2019-10-09T21:51:14
2019-10-09T21:51:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import discord bot=discord.Client() with open("flag_list.txt","r") as flag_file: flag_database=list() for line in flag_file.read().split("\n"): if len(line)>=2: flag_database.append(line[0:2]) @bot.event async def on_ready(): print("The bot is ready !") def is_flag(emoji): if isin...
UTF-8
Python
false
false
1,022
py
1
main.py
1
0.637965
0.635029
0
37
26.621622
87
OlivierNDO/image_proc
644,245,112,704
bd27232a932459e0dbca8e1b4a1313c265fe8bf7
36f4c30ac9ed0ff08c63b94a3d507a9587a8d205
/room_img_read.py
3e366dfd970aaec7c311099bcacdaed2dae7c80a
[]
no_license
https://github.com/OlivierNDO/image_proc
c91f2f11fa41a504eb4b70d53a9f642b9667f4d7
59078486799861c6583a2675b1862a09f64d4fd8
refs/heads/master
2021-06-27T03:34:36.477540
2020-12-31T20:30:52
2020-12-31T20:30:52
202,822,283
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Configuration ############################################################################### # Import packages import numpy as np import skimage from PIL import Image import requests from io import BytesIO from sklearn.model_selection import train_test_split import tensorflow as tf from tensorflow import k...
UTF-8
Python
false
false
3,287
py
17
room_img_read.py
6
0.552175
0.536964
0
80
38.9125
127
Ilyosbek07/Restaurant
11,158,325,036,013
93f3f7c738d5b479d70cec36f7b04dbef1c515d5
1d8304084479700fb1dccfaf3f9dae7408c11a4b
/bot_users/admin.py
8b8254e79f7c32a624af4c5d0104be59abc61a25
[]
no_license
https://github.com/Ilyosbek07/Restaurant
88af5564a87650c1fe5e3df8eaf6a2e93b5c49f7
41599507cb46f79efb9ad73fef5014f776489864
refs/heads/master
2023-08-13T01:53:07.516623
2021-10-13T11:14:29
2021-10-13T11:14:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from bot_users.models import TelegramUserModel, OrderModel @admin.register(TelegramUserModel) class TelegramUserModelAdmin(admin.ModelAdmin): list_display = ['tg_id', 'username', 'first_name', 'last_name'] list_filter = ['created_at'] search_fields = ['username', 'first_name'] @...
UTF-8
Python
false
false
490
py
86
admin.py
66
0.734694
0.734694
0
17
27.823529
64
harshtikuu/tensorflow_dev
11,020,886,101,026
95786a9f7fed5b9e91874cd11d6ec5af43db0f85
4dd3a04cb14cbe8d755c00b70fd140988b3a7024
/firsttensor.py
0c53c6219d8d5e507e4c38251452820c921c721a
[]
no_license
https://github.com/harshtikuu/tensorflow_dev
b9b90bcc65be572c51b43a29eabffb2bf46807a8
ed139686f352fe01ff8e455821b4abb15ca41130
refs/heads/master
2021-07-11T06:23:40.396794
2017-10-04T15:13:04
2017-10-04T15:13:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf from sklearn.datasets import make_regression from sklearn.cross_validation import train_test_split from sklearn.linear_model import LinearRegression #Create dummy regression problem and split it into training and testing data data=make_regression(100,3) X_train,X_test,Y_train,Y_test=train_test...
UTF-8
Python
false
false
1,009
py
6
firsttensor.py
5
0.751239
0.72448
0
39
24.897436
76
levabala/gopher-s-tales
3,332,894,632,014
c0d3ec1d3d61b9670eea287a9caf53fbfae6b9d4
2447d414b6c5619f2114dff5204af1b98b53fee1
/texts/events/UserActionTexts.py
35e12a420f401f6b4015849dff361e1157df4a5e
[]
no_license
https://github.com/levabala/gopher-s-tales
0f9a2c6ed333b87db0b5f5e2488cc633fe031c29
9179c97646d001efdf0220791742f831790edf1a
refs/heads/master
2020-04-01T15:15:47.143232
2018-11-09T19:34:49
2018-11-09T19:34:49
153,328,913
1
0
null
false
2018-11-01T17:16:25
2018-10-16T17:46:49
2018-10-21T16:53:06
2018-11-01T17:16:25
120
1
0
0
Python
false
null
DESCRIBE = ''' '''
UTF-8
Python
false
false
21
py
99
UserActionTexts.py
97
0.380952
0.380952
0
2
9.5
16
HuangDayu/yibuwulianwang
2,765,958,970,585
980d64b3215368ff6138737a3e50c9e92d25487f
f2aa3abb5048e43c92ba4beaedf4fccff29443ca
/DuerOS/百度语音合成/aip-python-sdk-1.6.1/test_5.py
18caa9e2a4d5ee33d8bce487f098f2039ce4d1d4
[ "Apache-2.0" ]
permissive
https://github.com/HuangDayu/yibuwulianwang
bcd429d92709599ca7190fb151edab60d78fa1b2
e23f6115d0f20f651b966af21ec0fc381f2c168d
refs/heads/master
2020-02-17T01:22:41.898381
2018-09-22T09:56:48
2018-09-22T09:56:48
124,677,422
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
"path/to/vad/audio_stream.py" #!usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from pyaudio import PyAudio,paInt16 from datetime import datetime import wave from Tkinter import * import sys from ffnn import FFNNVADGeneral import logging # import chardet # 查看编码 # define of params NUM_SAMPLES =160 FR...
UTF-8
Python
false
false
3,380
py
365
test_5.py
184
0.639802
0.605084
0
95
32.957895
198
AlexandraMeciu/someCode
11,965,778,915,720
5565a9ec40440e7d497d9d2cac54887d32090037
0aa1f854b98e3c02f7327de87699ce1d6e913f18
/Patterm1.py
d8f213e1ed4706ce9698af7640409249831686c2
[]
no_license
https://github.com/AlexandraMeciu/someCode
2c98c7f33f82987c42c790a26fd9a8237f4fce17
281b89d1f3ca359d610a6b60a2454b0e8f8b94e9
refs/heads/master
2020-05-06T20:06:36.492326
2019-04-08T20:06:50
2019-04-08T20:06:50
180,222,420
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def pattern1(rows): i=1; for i in range(int(rows)+1): print(str(i)*i) def pattern2(rows): x=1; for i in range(x,int(rows)+1): j=1 for j in range(x,i+1): print(j,end="") print("\r") def pattern3(rows): x=1; for i in range(x,(int(rows))*...
UTF-8
Python
false
false
790
py
2
Patterm1.py
1
0.439241
0.403797
0
39
18.307692
39
Ascend/ModelZoo-PyTorch
3,478,923,544,555
b4cf2600151b092e23919e80874b828a7dfc562d
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/ACL_PyTorch/contrib/nlp/tinybert/TinyBERT_postprocess_data.py
70a2bd262e7130cb96eebe441fb90703c48b9ca5
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
https://github.com/Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
false
2022-10-15T09:29:12
2022-04-20T04:11:18
2022-10-10T08:03:54
2022-10-15T04:01:18
53,470
7
5
2
Python
false
false
# coding=utf-8 # Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # 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 cop...
UTF-8
Python
false
false
11,229
py
11,303
TinyBERT_postprocess_data.py
8,028
0.56835
0.559444
0
298
35.687919
117
Sollimann/spot_mini
1,047,972,069,018
be8a08396bb2d93f90fc3725e4cad9e190dcb7e3
0cbb23fef6af61f907730c6e83bc4e775a20250d
/spot/config.py
c57b0d8488f946ba1d42622ecc421de3dac7fb59
[]
no_license
https://github.com/Sollimann/spot_mini
09ffead172b6ade890b25538f41e131dea12d523
ad137ec1ec06c9a5faa11bea0d52fa610289d9ec
refs/heads/master
2022-04-08T00:29:26.985559
2020-03-12T09:45:32
2020-03-12T09:45:32
243,859,765
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from dataclasses import dataclass from typing import Optional from yaml import safe_load from dacite import from_dict @dataclass class SpotConfig: hostname: str username: str password: str app_token: Optional[str] @dataclass class Config: spot: SpotConfig def read_config(filepath: str) -> Con...
UTF-8
Python
false
false
562
py
10
config.py
7
0.66726
0.66726
0
29
18.37931
69
cjwmay/CodingDojoAssignments
15,375,982,949,251
8a791365b47b2515e600232b03edf00ca298778b
514081f2e26413720a02d7d64b14866faa84d568
/Python/Filterbytype.py
5e79faa08932cab42a5222ef17feb0d1bf065f8a
[]
no_license
https://github.com/cjwmay/CodingDojoAssignments
a41bc40f79a233518aa727acef3c8e8e8ecc2cb4
85f21d93bc957acb96a0546b88fa898dc0e6a746
refs/heads/master
2021-01-18T04:04:50.931337
2017-06-26T17:30:10
2017-06-26T17:30:10
85,765,439
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def functionInteger(a): if a>=100: print "That's a big number" else: print "That's a small number" return; functionInteger(100); #String def functionString(str): if len(str)>=50: print "Long sentence" else: print "Short sentence" return; functionString("Tell me a...
UTF-8
Python
false
false
562
py
163
Filterbytype.py
78
0.61032
0.553381
0
25
21.48
89
Mozzarella123/calc-back
10,694,468,593,760
b48c1c78e386b2c4b4b9b409775f5dd25dcd454f
31affbec9ba4c81346865476876f7e2683459ea5
/models/ParameterValue.py
e6199a38023661c3a61314bbac70079e322580d8
[]
no_license
https://github.com/Mozzarella123/calc-back
c0c1450eded1d9f01c249a84d6bf582353312726
a9c5d209361b3275586fdbb590e773320bc3007a
refs/heads/master
2022-11-23T23:31:25.493777
2020-07-29T11:55:51
2020-07-29T11:55:51
283,485,766
0
0
null
true
2020-07-29T11:53:50
2020-07-29T11:53:50
2020-07-29T11:49:48
2020-07-28T19:45:24
65
0
0
0
null
false
false
from models.db import db from sqlalchemy.orm import relationship from models.Parameter import Parameter class ParameterValue(db.Model): __tablename__ = "ParameterWithValues" id = db.Column( db.Integer, name="Id", primary_key=True, nullable=False ) val...
UTF-8
Python
false
false
1,442
py
39
ParameterValue.py
39
0.521498
0.521498
0
62
21.258065
81
graphcore/popart
13,477,607,380,401
6123beef8f1a2b4bbb7095a941e360bdf7338b17
7d93616b09afdd38ba25f70bf56e84d92d16f8e1
/tests/integration/operators_test/min_max_test.py
a7b8cee10c4a936494731ffe12249a7a11ab504f
[ "MIT", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
https://github.com/graphcore/popart
ac3c71617c5f0ac5dadab179b655f6b2372b453d
efa24e27f09b707865326fe4a30f4a65b7a031fe
refs/heads/sdk-release-3.0
2023-07-08T08:36:28.342159
2022-09-23T12:22:35
2022-09-23T15:10:23
276,412,857
73
13
NOASSERTION
false
2022-09-29T12:13:40
2020-07-01T15:21:50
2022-09-20T10:27:49
2022-09-29T12:13:39
22,515
64
6
3
C++
false
false
# Copyright (c) 2019 Graphcore Ltd. All rights reserved. import numpy as np import popart import torch def test_max_training(op_tester): d1 = np.random.rand(5, 7, 5).astype(np.float32) d2 = np.random.rand(7, 5).astype(np.float32) d3 = np.random.rand(5).astype(np.float32) d4 = np.random.rand(1, 1, 5).a...
UTF-8
Python
false
false
4,373
py
2,412
min_max_test.py
2,241
0.604391
0.565744
0
127
33.433071
71
hsnet-fork/BitGlitter
3,710,851,761,496
9c716af7dc07b8d082b5902f1e230d834e92f579
c95ec26e54cacfe0a50a051413273826b0b67110
/bitglitter/palettes/paletteutilities.py
f34b88f5be9a5c081fe5928e5c60ae6eb77a8a27
[ "MIT" ]
permissive
https://github.com/hsnet-fork/BitGlitter
5c28cd6bb2a63d617a5731be6e2e31339ceed3cb
0e84e5553dd5365f05a6715be95869b7147bb47c
refs/heads/master
2021-05-27T05:40:08.809500
2019-07-18T07:21:51
2019-07-18T07:21:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import hashlib import itertools import logging import math from bitstring import BitArray, ConstBitStream from bitglitter.config.config import config from bitglitter.palettes.paletteobjects import CustomPalette class ValuesToColor: '''This generates a dictionary linking a string binary value to an RGB value. T...
UTF-8
Python
false
false
6,341
py
41
paletteutilities.py
41
0.67103
0.664564
0
172
35.866279
120
eQu1NoX/ctf
8,615,704,424,746
335e77cb7569cbfa4deb6fb802a0c6c2dc6592e7
d77e21dcca0ce0caa568680b3e033096c19e9386
/Hack The Vote 16/Trumpervisor/trumpervisor.py
8669d6892958e9794f6bd66a6e9a75207c5f0b0b
[]
no_license
https://github.com/eQu1NoX/ctf
e786b6d2f2815098a0e7b1711b5d5e7c2530d02a
6e0fb1b96d3bab12057d34a11bc24d91a78b79a1
refs/heads/master
2017-12-11T11:06:48.967406
2016-11-19T20:40:43
2016-11-19T20:40:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pwn import * from time import sleep import angr REGS_ORDER = ['rax', 'rbx', 'rcx', 'rdx', 'rsi', 'rdi', 'r8', 'r9', 'r10', 'r11', 'r12', 'r13', 'r14', 'r15'] def send_regs(regs): p = remote('trumpervisor.pwn.republican', 9000) for i in xrange(14): p.sendline(str(regs[i])) sleep(0.5) log.info('Sending {0...
UTF-8
Python
false
false
3,166
py
22
trumpervisor.py
11
0.698673
0.609602
0
86
35.825581
109
Vector254/Api
10,084,583,242,460
8801efcd74d933238db1d27ad07112435827b01f
0e26574bb4baf59f2eb36badee0e560b53903f79
/app/main/views.py
6196571babcd66ac18f56b1e0ca79138428167ab
[ "MIT" ]
permissive
https://github.com/Vector254/Api
7b799612723e6147b2ca964d956e07a1f50a0e4f
b6f1f2deae7e9a1e7b0ffc158b4cd0ba178a2354
refs/heads/master
2022-12-28T11:49:45.017447
2020-10-05T07:08:06
2020-10-05T07:08:06
300,807,013
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import request, jsonify, abort, url_for, make_response, render_template from flask_api import FlaskAPI from .. import db from . import main from ..models import Quotes def make_public_quote(quote): new_quote = {} for field in quote: if field == 'id': new_quote['u...
UTF-8
Python
false
false
3,348
py
7
views.py
6
0.526882
0.519415
0
110
29.427273
95
chamemilo/agriculture_sim
3,504,693,354,524
9516ec32cbe4e38d53e2e2740884f5316ad8d73b
b8e7a8114ee8555e4f608cb18668403d569a9041
/devel/lib/python2.7/dist-packages/champ_msgs/msg/_PointArray.py
2207b166d26bb266bb54c4259a4ee4652ddc6510
[]
no_license
https://github.com/chamemilo/agriculture_sim
ebbe8af2c4a99ae39ed34bf7623ed1a782ec24fc
2153dfa5cee77c11d93f437d77d6b6ea47e1dee1
refs/heads/master
2023-06-26T09:29:10.771370
2021-07-28T13:59:07
2021-07-28T13:59:07
390,370,071
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from champ_msgs/PointArray.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import champ_msgs.msg class PointArray(genpy.Message): _md5sum = "e70791c6db4935709e33b9966d2...
UTF-8
Python
false
false
5,164
py
333
_PointArray.py
64
0.60244
0.588885
0
143
35.111888
158
laiunce/helpfull_code
7,876,970,040,129
4b7d062db3e3537ffae2e88b67cbf8ec2c80c344
410ef1dd9e716ae7353eed867bd415ef0c0757fa
/model_image_recognition/modelo/reconoce_personas.py
6c4825fd02db6f7f91e561f3e7767d3deb43d831
[]
no_license
https://github.com/laiunce/helpfull_code
ba428a90ab91a5faa0c4609ae16aaa75836cdd02
bf297622a4dab2f0760de2279c4334a5c8705971
refs/heads/master
2020-04-18T14:46:57.956372
2019-04-10T03:44:27
2019-04-10T03:44:27
167,597,641
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jan 12 21:13:34 2019 @author: crilaiun """ #source activate retinanet from imageai.Detection import VideoObjectDetection import os import cv2 import time from imageai.Detection import ObjectDetection #esta lina porque sino pincha a veces ver bien lueg...
UTF-8
Python
false
false
1,371
py
122
reconoce_personas.py
78
0.733771
0.706783
0
46
28.782609
207
rihter007/Po-znaikaDemo
5,317,169,558,877
846c2b3323abf9148e330c085017e02dfdb95e6d
54594dbf9cab6466157fdc636302d85142cd42dc
/web_server/poznaika/accounts/forms.py
67249c0b8e2c9d81a7f8687d3e8650842142f9b3
[]
no_license
https://github.com/rihter007/Po-znaikaDemo
eeb1417311ac5136a33aac68091ea03a1d23eefb
0ac8a48fdb09bd68f5ea0cd49cccce5627289d57
refs/heads/master
2021-01-18T20:39:07.814264
2015-09-30T20:32:08
2015-09-30T20:32:08
28,452,714
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=cp1251 from django import forms from django.contrib import auth from django.contrib.auth.models import User from models import Pupil from models import Class def ToUtf(str): return str.decode('cp1251').encode('utf8') class RegisterForm(forms.Form): UserName = forms.CharField(max_length=30, la...
WINDOWS-1251
Python
false
false
2,276
py
230
forms.py
105
0.667596
0.65272
0
64
32.484375
79
dixonaws/PowerCo
7,988,639,203,546
d8a03b482cfec8f75342d28fc19c9b807e5542ab
ffa0a0cf22d1de2e73ac45a3a3e12796f3c993ae
/PowerCo.py
a54cf2f77f0b7dc1844e1aaec1bcbff50472890d
[]
no_license
https://github.com/dixonaws/PowerCo
922575132dccf889bd8a97dd33b28612c6b52417
33a8c86fec90724c3f24cd9eb266b52c0012e759
refs/heads/master
2021-09-04T02:24:50.051675
2018-01-14T16:33:25
2018-01-14T16:33:25
75,781,510
0
1
null
true
2016-12-06T23:44:51
2016-12-06T23:44:50
2016-05-24T12:08:14
2016-06-28T15:01:11
42
0
0
0
null
null
null
from __future__ import print_function import urllib2 import json import time import datetime # PowerCo sample skill # 7-6-2016, John Dixon # dixonaws@amazon.com, www.github.com/dixonaws # PowerCo is a sample Alexa skill that demonstrates Lambda # integration with RESTful APIs to get data about a customer's electrici...
UTF-8
Python
false
false
16,564
py
7
PowerCo.py
3
0.589471
0.581804
0
459
35.087146
275
vancdk/python_moocs
1,082,331,795,559
cb5dffedaa8cd7ab029a8411ea45876fdeb03be5
6d5b988cb96bca312d97433abc0b009981f2c63f
/coursera/interact_with_the_operating_system_by_google/02_files_and_directories.py
8eed2ced36fbfe6395abace07bd23de024760f46
[]
no_license
https://github.com/vancdk/python_moocs
ba6eee569eded3805170a0aade2c2607dd0ed491
46b8fe27dfa6adbd86059c742f3d0013b4657ea0
refs/heads/main
2023-03-24T22:16:59.511766
2021-03-26T10:50:09
2021-03-26T10:50:09
329,634,536
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Files """ import os file= "file.dat" if os.path.isfile(file): print(os.path.isfile(file)) print(os.path.getsize(file)) else: print(os.path.isfile(file)) print("File not found") """ Directories """ # Get current directory print(os.getcwd()) # Create directory os.mkdir("new_dir") # Change the curr...
UTF-8
Python
false
false
968
py
32
02_files_and_directories.py
32
0.703512
0.703512
0
50
18.36
57
mnhousel1992/flask-greet-calc
7,859,790,162,421
675c2577de4ddbbf4fe4569d64ba14e4cc8437ec
af299633a8906728733d4287877d39166a20c59d
/calc/app.py
ccb4da068f5cf439afe5cda04877c46ddd913421
[]
no_license
https://github.com/mnhousel1992/flask-greet-calc
410d6cba021821aa5be0ff9130f8288eba5f3462
c1d554e544670d6ddfa011e9906a6e56236be285
refs/heads/main
2022-12-27T02:55:39.793212
2020-10-16T14:38:45
2020-10-16T14:38:45
304,649,691
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Put your app in here. from flask import Flask, request from operations import add, sub, mult, div app = Flask(__name__) # @app.route('/add') # def add_call(): # a = int(request.args.get("a")) # b = int(request.args.get("b")) # result = add(a, b) # return str(result) # @app.route('/sub') # def sub...
UTF-8
Python
false
false
1,066
py
2
app.py
1
0.554409
0.554409
0
52
19.5
42
theresaswayne/6002x
10,136,122,859,771
98c0d64c8ff97e5c18696ae6f7c628388f153ea9
e4bbbe84890ecd3e7db1056361d54e3557d5d766
/6001x/test_type_testing.py
01f40a935ac73c1525561239f7606f026d515bcb
[]
no_license
https://github.com/theresaswayne/6002x
8a0717d39ffb52452c5f8e2d01e8e8d9e0d27a01
dc01c6be406e0b29d02430bcad7aaf13a8e8127b
refs/heads/master
2020-05-18T15:11:00.039387
2020-05-10T18:36:41
2020-05-10T18:36:41
84,256,499
0
0
null
false
2017-03-15T13:53:33
2017-03-07T23:27:31
2017-03-07T23:27:36
2017-03-15T13:53:33
9
0
0
0
Python
null
null
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ x = [6, 5] y = type(x) print(y) if isinstance(x, int): print("it's an int") elif isinstance(x, str): print("it's a str") else: print("something else") if type(x) == int: print("it's still an int") if type(x) == str: ...
UTF-8
Python
false
false
396
py
91
test_type_testing.py
83
0.563131
0.555556
0
26
14.230769
32
pintonos/theMatchMoverProject
10,746,008,207,108
66fb664b7db56d1e829bb1b14ac5447336506d10
fe351a52fceed480cdf19d881defb09088c1db8a
/src/functions/matcher_functions.py
4c420fce6da52115e9e67e7454e47a7d0f11e68a
[]
no_license
https://github.com/pintonos/theMatchMoverProject
2232e26587599bd2a99f9a29e4082bb6c0456b35
81548b72f9ad3df988b4a51ca23a519c307d5b16
refs/heads/master
2021-10-29T12:18:32.559045
2020-06-20T14:48:07
2020-06-20T14:48:07
247,703,179
2
1
null
false
2020-03-16T14:31:57
2020-03-16T13:00:21
2020-03-16T13:51:54
2020-03-16T14:31:56
368
1
1
0
Python
false
false
from functions import * from util import models from matplotlib import pyplot as plt import cv2 import numpy as np ''' Functions required for automatic point matching These functions are used for point matching between to frames in order to perform a stereo calibration. ''' def lowes_ratio_test(kp1, kp2, matches, t...
UTF-8
Python
false
false
6,238
py
25
matcher_functions.py
14
0.647323
0.610933
0
167
36.353293
114
RajanSikarwar/Miscellaneous_python_work
19,481,971,672,427
804d8589740881270bdc74843521bfa535c7e92f
9d3ac31713b0cdfb65de57ad6555d7973a1f7d71
/Socket/server.py
4cf71a25446ecdc971f1ed5252685980e9e9ab18
[]
no_license
https://github.com/RajanSikarwar/Miscellaneous_python_work
ca4769bcaa4d2b4c6b5f5870aa74311e2a85e1c7
d4aa0ea8c1f4d5796bf0d6cc89048b8e61064b7f
refs/heads/master
2023-08-15T19:56:58.265232
2021-10-20T09:34:50
2021-10-20T09:34:50
419,251,191
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket import time import pickle HEADERSIZE = 10 s= socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.bind((socket.gethostname(),1234)) s.listen(5) while True : clientsocket,address=s.accept() print(f"You have established connection with {address}") d ={1:"hey",2:"There"} msg = pick...
UTF-8
Python
false
false
429
py
23
server.py
22
0.648019
0.624709
0
21
19
60