hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
63d7f9a0fc8895b2908acd7758b7421d434e3c58
5,097
py
Python
Chapter 12/ch12_r03.py
PacktPublishing/Modern-Python-Cookbook
40ff656c64421ddf6c288e058bb99a929f6d4c39
[ "MIT" ]
107
2016-11-30T02:13:39.000Z
2022-03-31T06:38:59.000Z
Chapter 12/ch12_r03.py
fengfanzhiwu/Modern-Python-Cookbook
8eff962f6eae514d531beca9051aefa34941ef4d
[ "MIT" ]
2
2017-04-19T04:08:21.000Z
2019-03-09T16:18:33.000Z
Chapter 12/ch12_r03.py
fengfanzhiwu/Modern-Python-Cookbook
8eff962f6eae514d531beca9051aefa34941ef4d
[ "MIT" ]
71
2017-01-16T06:35:17.000Z
2022-03-01T21:25:54.000Z
""" { "swagger": "2.0", "info": { "title": "Python Cookbook\\nChapter 12, recipe 3.", "version": "1.0" }, "schemes": "http", "host": "127.0.0.1:5000", "basePath": "/dealer", "consumes": "application/json", "produces": "application/json", "paths": { "/hands": { ...
29.125714
120
0.476947
0
0
0
0
1,454
0.285266
0
0
2,312
0.4536
63d8ff7291ec00834c06722d6f791ed6401a8d77
158
py
Python
Desafios/desafio053.py
josivantarcio/Desafios-em-Python
c747eed785b9640e15c498262fc5f8f5afd4337e
[ "MIT" ]
null
null
null
Desafios/desafio053.py
josivantarcio/Desafios-em-Python
c747eed785b9640e15c498262fc5f8f5afd4337e
[ "MIT" ]
1
2021-04-23T15:11:11.000Z
2021-05-21T22:36:56.000Z
Desafios/desafio053.py
josivantarcio/Desafios-em-Python
c747eed785b9640e15c498262fc5f8f5afd4337e
[ "MIT" ]
null
null
null
frase = str(input('Digite a frase: ')).strip().upper() palavras = frase.split() juntarPalavras = ''.join(palavras) trocar = juntarPalavras[::-1] print(trocar)
31.6
54
0.702532
0
0
0
0
0
0
0
0
20
0.126582
63dc294f098bbd41379d16d4e24791b73958a2ea
1,345
py
Python
python/examples/test_tds.py
dmillard/autogen
c14790f01b7e6ff4c140331317ad981c33e9b40f
[ "MIT" ]
33
2021-10-29T21:33:39.000Z
2022-03-31T11:02:43.000Z
python/examples/test_tds.py
dmillard/autogen
c14790f01b7e6ff4c140331317ad981c33e9b40f
[ "MIT" ]
8
2021-08-13T07:01:05.000Z
2021-11-16T19:07:33.000Z
python/examples/test_tds.py
dmillard/autogen
c14790f01b7e6ff4c140331317ad981c33e9b40f
[ "MIT" ]
4
2021-10-31T10:59:44.000Z
2021-11-06T07:21:45.000Z
import pytinydiffsim_ad as dp import autogen as ag import numpy as np import math TIME_STEPS = 20 def func(input_tau): world = dp.TinyWorld() world.friction = dp.ADScalar(1.0) urdf_parser = dp.TinyUrdfParser() urdf_data = urdf_parser.load_urdf("/root/tiny-differentiable-simulator/data/cartpole.urdf") print...
28.617021
147
0.692193
0
0
0
0
0
0
0
0
305
0.226766
63dec534870631fac5a7cfc546198847fb5658b4
5,923
py
Python
tf_rl/examples/NerveNet/network/ggnn.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
8
2020-01-13T03:29:50.000Z
2021-11-19T00:59:42.000Z
tf_rl/examples/NerveNet/network/ggnn.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
5
2020-11-13T17:40:40.000Z
2022-03-12T00:11:33.000Z
tf_rl/examples/NerveNet/network/ggnn.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
1
2021-04-02T13:42:39.000Z
2021-04-02T13:42:39.000Z
import tensorflow as tf import tensorflow_probability as tfp XAVIER_INIT = tf.contrib.layers.xavier_initializer() class GRU_cell(tf.keras.Model): def __init__(self, hidden_unit, output_nodes): super(GRU_cell, self).__init__() self.i_to_r = tf.keras.layers.Dense(hidden_unit, activation="sigmoid", ...
48.950413
134
0.668749
5,802
0.979571
0
0
0
0
0
0
1,716
0.289718
63df36dd82f3b996a2b0bac96c47e201bb8f3bbf
98
py
Python
docsie_universal_importer/providers/google_drive/__init__.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
null
null
null
docsie_universal_importer/providers/google_drive/__init__.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
16
2021-06-16T15:00:41.000Z
2021-06-30T11:57:15.000Z
docsie_universal_importer/providers/google_drive/__init__.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
1
2021-11-17T19:24:45.000Z
2021-11-17T19:24:45.000Z
default_app_config = 'docsie_universal_importer.providers.google_drive.apps.GoogleDriveAppConfig'
49
97
0.897959
0
0
0
0
0
0
0
0
76
0.77551
63e0394902396da9e64268bf1086a084ded28c6f
3,312
py
Python
agent/h42backup/h42backup/container.py
gilles67/h42-backup
24dcc6dad784b7a8f3586824bba801fc3333cb58
[ "MIT" ]
null
null
null
agent/h42backup/h42backup/container.py
gilles67/h42-backup
24dcc6dad784b7a8f3586824bba801fc3333cb58
[ "MIT" ]
null
null
null
agent/h42backup/h42backup/container.py
gilles67/h42-backup
24dcc6dad784b7a8f3586824bba801fc3333cb58
[ "MIT" ]
null
null
null
import docker, json VALID_PROFILE = ['volume', 'mariadb'] def backup_list(): client = docker.DockerClient(base_url='unix://var/run/docker.sock') bck = {} for ct in client.containers.list(all=True): is_backup = False error = [] if 'one.h42.backup.enable' in ct.labels: if...
43.578947
140
0.520833
0
0
0
0
0
0
0
0
1,078
0.325483
63e23b1440c3348f5642d4b2129b21ed8312660c
7,309
py
Python
testarch/unet/runs.py
weihao94/deepdyn
e8a1d6620f48094b76ea3d272c57d40c9ae6d949
[ "MIT" ]
42
2019-11-07T03:18:53.000Z
2021-12-08T09:42:00.000Z
testarch/unet/runs.py
LucasLee-ff/deepdyn
48018b62a245dd791e45d60b28068489a8c32742
[ "MIT" ]
17
2020-01-25T12:58:18.000Z
2022-03-11T23:32:44.000Z
testarch/unet/runs.py
aksish/ature
48018b62a245dd791e45d60b28068489a8c32742
[ "MIT" ]
21
2019-11-21T08:34:54.000Z
2022-02-27T16:24:00.000Z
import copy import os import random import numpy as np sep = os.sep ####################### GLOBAL PARAMETERS ################################################## ############################################################################################ Params = { 'num_channels': 1, 'num_classes': 2, 'ba...
36.914141
112
0.543166
0
0
0
0
0
0
0
0
3,234
0.442468
63e27f210990b9b90b5a11bf73d8896f5729b462
3,673
py
Python
mysql_table_generator.py
zed31/mongo_vs_mysql
53c84c40a5f316b05445b1d9baf329c4ea85aa97
[ "MIT" ]
null
null
null
mysql_table_generator.py
zed31/mongo_vs_mysql
53c84c40a5f316b05445b1d9baf329c4ea85aa97
[ "MIT" ]
null
null
null
mysql_table_generator.py
zed31/mongo_vs_mysql
53c84c40a5f316b05445b1d9baf329c4ea85aa97
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import MySQLdb from sys import argv, exit from random import choice arr_prefix = [ "sit", "eiusmod", "nulla", "tempor", "exercitation", "Lorem", "consectetur", "qui", "aute", "laborum", "culpa", "sunt", "sunt", "enim", "cupidatat", "ipsum", "nulla", "consectetur"...
18.183168
160
0.553771
0
0
0
0
0
0
0
0
1,893
0.515383
63e3b897fe069846ad271c86ccffde7cfa2ad187
1,964
py
Python
tests/test_database.py
rahulg/mongorm
511611dc68b444317e8e3fe4a9e07cfe5d5032a2
[ "BSD-2-Clause" ]
4
2015-06-22T05:16:39.000Z
2018-10-10T15:33:08.000Z
tests/test_database.py
rahulg/mongorm
511611dc68b444317e8e3fe4a9e07cfe5d5032a2
[ "BSD-2-Clause" ]
null
null
null
tests/test_database.py
rahulg/mongorm
511611dc68b444317e8e3fe4a9e07cfe5d5032a2
[ "BSD-2-Clause" ]
null
null
null
import unittest from mongorm import Database class DatabaseTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.db = Database(uri='mongodb://localhost:27017/orm_test') cls.db2 = Database(host='localhost', port=27017, db='orm_test2') @classmethod def tearDownClass(cls):...
27.277778
72
0.63391
1,915
0.975051
0
0
263
0.13391
0
0
203
0.10336
63e423f755852b992268e18edda0f5773e6503d3
760
py
Python
heap/binary_heap_test.py
dyc-it/algorithm
68b866c9bf5ee2b479be124d70d2362144d568bb
[ "Apache-2.0" ]
null
null
null
heap/binary_heap_test.py
dyc-it/algorithm
68b866c9bf5ee2b479be124d70d2362144d568bb
[ "Apache-2.0" ]
null
null
null
heap/binary_heap_test.py
dyc-it/algorithm
68b866c9bf5ee2b479be124d70d2362144d568bb
[ "Apache-2.0" ]
null
null
null
import unittest import random from binary_heap import BinaryHeap class TestBinaryHeap(unittest.TestCase): def setUp(self): size = 8 self.random_list = random.sample(range(0, size), size) print "random list generated: " + str(self.random_list) self.heap = BinaryHeap(size) ...
24.516129
63
0.607895
689
0.906579
0
0
0
0
0
0
25
0.032895
63e5242ca320b82cfe9f818b9dabb8b7721af332
22,418
py
Python
src/alfred3/element/action.py
mate-code/alfred
e687e9318ecefe3a49565027841ca8d910647978
[ "MIT" ]
9
2020-05-11T08:13:12.000Z
2022-01-20T11:35:14.000Z
src/alfred3/element/action.py
mate-code/alfred
e687e9318ecefe3a49565027841ca8d910647978
[ "MIT" ]
77
2019-02-22T07:34:58.000Z
2022-02-23T15:32:34.000Z
src/alfred3/element/action.py
mate-code/alfred
e687e9318ecefe3a49565027841ca8d910647978
[ "MIT" ]
6
2020-11-11T16:51:04.000Z
2022-02-21T10:29:02.000Z
""" Provides elements that make stuff happen. .. moduleauthor: Johannes Brachem <jbrachem@posteo.de> """ from typing import Union from typing import List from uuid import uuid4 import cmarkgfm from cmarkgfm.cmark import Options as cmarkgfmOptions from emoji import emojize from ..exceptions import AlfredError from ....
32.442836
183
0.576724
21,539
0.96079
0
0
21,761
0.970693
0
0
14,784
0.65947
63e546527b43b6cd0426995d284ee250d0346d96
598
py
Python
models/loss/vae_loss.py
PeterJaq/optical_film_toolbox
0e2d2bfa5f1f93d405a2f25ee50e51771be777a5
[ "Apache-2.0" ]
4
2020-07-05T12:35:45.000Z
2022-03-17T18:43:04.000Z
models/loss/vae_loss.py
PeterJaq/optical_film_toolbox
0e2d2bfa5f1f93d405a2f25ee50e51771be777a5
[ "Apache-2.0" ]
null
null
null
models/loss/vae_loss.py
PeterJaq/optical_film_toolbox
0e2d2bfa5f1f93d405a2f25ee50e51771be777a5
[ "Apache-2.0" ]
null
null
null
def log_normal_pdf(sample, mean, logvar, raxis=1): log2pi = tf.math.log(2. * np.pi) return tf.reduce_sum( -.5 * ((sample - mean) ** 2. * tf.exp(-logvar) + logvar + log2pi), axis=raxis) def compute_loss(model, x): mean, logvar = model.encode(x) z = model.reparameterize(mean, logvar) x_logit = mod...
37.375
79
0.67893
0
0
0
0
0
0
0
0
0
0
63e5fd80b31040b98f86d3e9a1070894b979bab4
6,147
py
Python
agent/main_runner.py
velteyn/agent57
b0dd7b54fd4c3560b529fe196f62e9d51bfed82e
[ "MIT" ]
48
2020-07-13T03:19:27.000Z
2022-03-05T12:05:40.000Z
agent/main_runner.py
andreanvictor6374/agent57
175c8367254107d3f7e7ff12d40f01708b7ee75b
[ "MIT" ]
10
2020-07-14T08:09:54.000Z
2021-11-20T00:40:05.000Z
agent/main_runner.py
andreanvictor6374/agent57
175c8367254107d3f7e7ff12d40f01708b7ee75b
[ "MIT" ]
14
2020-07-21T14:35:02.000Z
2022-02-10T10:32:17.000Z
import gym from keras.optimizers import Adam import traceback import os from .dqn import DQN from .agent57 import Agent57 from .model import InputType, DQNImageModel, LstmType from .policy import AnnealingEpsilonGreedy from .memory import PERRankBaseMemory, PERProportionalMemory from .env_play import EpisodeSave, Epi...
29.271429
100
0.616561
0
0
0
0
0
0
0
0
590
0.095238
63e72dba0fb4b89d7e9e4db6bf070ba06e155aae
1,473
py
Python
Fred/7_Gestures/Reactions.py
ProjectHewitt/Fred_Inmoov
179be5ba18c89fe6b2c64efc0b88c9db8e40b75b
[ "Apache-2.0" ]
6
2021-02-25T02:14:56.000Z
2021-06-13T16:13:00.000Z
Fred/7_Gestures/Reactions.py
ProjectHewitt/Fred_Inmoov
179be5ba18c89fe6b2c64efc0b88c9db8e40b75b
[ "Apache-2.0" ]
null
null
null
Fred/7_Gestures/Reactions.py
ProjectHewitt/Fred_Inmoov
179be5ba18c89fe6b2c64efc0b88c9db8e40b75b
[ "Apache-2.0" ]
4
2021-02-07T00:14:32.000Z
2021-10-02T03:32:44.000Z
############################################################## # Program Code for Fred Inmoov # # Of the Cyber_One YouTube Channel # # https://www.youtube.com/cyber_one # # # # Thi...
37.769231
68
0.376782
0
0
0
0
0
0
0
0
1,116
0.757637
63e79a57d87beb222b4d338e8505178a6b213db0
7,019
py
Python
StormPyTwitter/src/main/multilang/resources/python/twitter_storm/twitter_components.py
juanrh/data42
b42006917bfaf6bdf5aabf88f9b2714e879bf8f3
[ "Apache-2.0" ]
1
2016-04-06T09:21:42.000Z
2016-04-06T09:21:42.000Z
StormPyTwitter/src/main/multilang/resources/python/twitter_storm/twitter_components.py
juanrh/data42
b42006917bfaf6bdf5aabf88f9b2714e879bf8f3
[ "Apache-2.0" ]
null
null
null
StormPyTwitter/src/main/multilang/resources/python/twitter_storm/twitter_components.py
juanrh/data42
b42006917bfaf6bdf5aabf88f9b2714e879bf8f3
[ "Apache-2.0" ]
3
2015-12-14T00:16:31.000Z
2019-03-24T13:35:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Based on storm.py module from https://github.com/nathanmarz/storm/blob/master/storm-core/src/multilang/py/storm.py, and the examples from https://github.com/apache/incubator-storm/blob/master/examples/storm-starter/multilang/resources/splitsentence.py and http://storm....
54.410853
397
0.695541
5,527
0.787434
0
0
677
0.096452
0
0
4,501
0.641259
63e7de70cee4c80bf1a84446fed435049d34cefe
1,329
py
Python
nuremberg/core/urls.py
emmalemma/nuremberg
10a5f789f5668aa4e7902e1765737c2c764ff2b2
[ "MIT" ]
null
null
null
nuremberg/core/urls.py
emmalemma/nuremberg
10a5f789f5668aa4e7902e1765737c2c764ff2b2
[ "MIT" ]
null
null
null
nuremberg/core/urls.py
emmalemma/nuremberg
10a5f789f5668aa4e7902e1765737c2c764ff2b2
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from httpproxy.views import HttpProxy from django.views.generic.base import RedirectView from django.http import HttpResponse urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^transcripts/', include('nuremberg.transcripts.urls'))...
49.222222
113
0.717833
0
0
0
0
0
0
0
0
746
0.561324
63e9684d10afbc91d9cdbd324d7a08494f2c12d6
5,125
py
Python
signin/jd_job/common.py
nujabse/simpleSignin
e818f9880d97d39beddcadccb53dc23e18fe6d8e
[ "MIT" ]
11
2018-03-07T04:13:05.000Z
2019-11-28T04:43:55.000Z
signin/jd_job/common.py
nujabse/simpleSignin
e818f9880d97d39beddcadccb53dc23e18fe6d8e
[ "MIT" ]
2
2018-03-04T15:08:01.000Z
2018-05-28T07:42:47.000Z
signin/jd_job/common.py
nujabse/simpleSignin
e818f9880d97d39beddcadccb53dc23e18fe6d8e
[ "MIT" ]
15
2018-01-25T10:54:06.000Z
2019-11-05T07:09:20.000Z
#!/usr/bin/env python # encoding: utf-8 # author: Vincent # refer: https://github.com/vc5 import re import time from requests import Response from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.touch_actions import TouchActions from ..chrome import mobile_emulation from lib.se...
31.441718
118
0.617756
4,841
0.886792
0
0
0
0
0
0
1,630
0.298589
63e9b0dfa031eb19f53844081f610705e8c0629f
3,046
py
Python
tests/test_parse.py
adamrp/emperor
ee12881953cdd65e13325c09d5adf87db7e63afd
[ "MIT" ]
null
null
null
tests/test_parse.py
adamrp/emperor
ee12881953cdd65e13325c09d5adf87db7e63afd
[ "MIT" ]
null
null
null
tests/test_parse.py
adamrp/emperor
ee12881953cdd65e13325c09d5adf87db7e63afd
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division __author__ = "Jose Antonio Navas Molina" __copyright__ = "Copyright 2013, The Emperor Project" __credits__ = ["Jose Antonio Navas Molina"] __license__ = "BSD" __version__ = "0.9.3-dev" __maintainer__ = "Jose Antonio Navas Molina" __email__ = "josenavasmolina@gmail...
28.46729
79
0.601116
2,075
0.681221
0
0
0
0
0
0
936
0.307288
63eb09455a488d9193ff41ee088a0eccb9993357
998
py
Python
Nmapscript.py
WhiteRedTHT/port-scann
bb4a6731f3c4ae484d1978fa7527f55520cb7e99
[ "MIT" ]
null
null
null
Nmapscript.py
WhiteRedTHT/port-scann
bb4a6731f3c4ae484d1978fa7527f55520cb7e99
[ "MIT" ]
null
null
null
Nmapscript.py
WhiteRedTHT/port-scann
bb4a6731f3c4ae484d1978fa7527f55520cb7e99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import vulners print("---------------------------------------------------------------") print(""" P4RS Script Hoş Geldiniz Programı kullanmak için sadece IP adresini yazmanız yeterlidir. Programı çalıştırmak için; Medusa araçları, searcsploit ve brutespray uygulamaları gerekmekted...
26.263158
179
0.61022
0
0
0
0
0
0
0
0
705
0.692534
63ee6c3b647155df5b389065b12bf3169080b2cc
1,276
py
Python
portal/migrations/versions/a031e26dc1bd_.py
ivan-c/truenth-portal
0b9d39ae43f42ea3413ed9634f295f5d856cbc77
[ "BSD-3-Clause" ]
3
2017-01-15T10:11:57.000Z
2018-10-02T23:46:44.000Z
portal/migrations/versions/a031e26dc1bd_.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
876
2016-04-04T20:45:11.000Z
2019-02-28T00:10:36.000Z
portal/migrations/versions/a031e26dc1bd_.py
uwcirg/truenth-portal
459a0d157982f010175c50b9cccd860a61790370
[ "BSD-3-Clause" ]
9
2016-04-13T01:18:55.000Z
2018-09-19T20:44:23.000Z
from alembic import op import sqlalchemy as sa import sqlalchemy_utils """empty message Revision ID: a031e26dc1bd Revises: 8efa45d83a3b Create Date: 2018-08-06 16:03:36.820890 """ # revision identifiers, used by Alembic. revision = 'a031e26dc1bd' down_revision = '8efa45d83a3b' def upgrade(): # ### commands au...
28.355556
67
0.576019
0
0
0
0
0
0
0
0
581
0.455329
63f048c44468cdaab3bbd671bedb7f73b50abad5
7,048
py
Python
gui/main_window/reservations/add_reservations/gui.py
Just-Moh-it/HotinGo
13f3d0d9ed7991336dfbb4f50c2b87a7d9d19810
[ "MIT" ]
14
2022-02-08T02:40:34.000Z
2022-03-24T19:17:57.000Z
gui/main_window/reservations/add_reservations/gui.py
Just-Moh-it/HotinGo
13f3d0d9ed7991336dfbb4f50c2b87a7d9d19810
[ "MIT" ]
2
2022-02-03T13:22:04.000Z
2022-02-08T06:16:57.000Z
gui/main_window/reservations/add_reservations/gui.py
SnazzyCoder/HotinGo
13f3d0d9ed7991336dfbb4f50c2b87a7d9d19810
[ "MIT" ]
1
2022-03-21T00:05:47.000Z
2022-03-21T00:05:47.000Z
from pathlib import Path from tkinter import Frame, Canvas, Entry, Text, Button, PhotoImage, messagebox import controller as db_controller OUTPUT_PATH = Path(__file__).parent ASSETS_PATH = OUTPUT_PATH / Path("./assets") def relative_to_assets(path: str) -> Path: return ASSETS_PATH / Path(path) def add_reserva...
32.036364
87
0.539444
6,694
0.949773
0
0
0
0
0
0
1,027
0.145715
63f0dcedfc927c0b523f3a53c332513bb2498eb2
8,977
py
Python
lib/util/ImageProcessing/homopgrahy.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
5
2018-02-06T22:48:34.000Z
2020-01-07T20:19:05.000Z
lib/util/ImageProcessing/homopgrahy.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
11
2018-01-31T21:47:49.000Z
2018-04-21T16:42:52.000Z
lib/util/ImageProcessing/homopgrahy.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
2
2020-06-18T05:40:03.000Z
2022-02-02T03:46:30.000Z
import cv2 import numpy as np import imutils from collections import defaultdict # mouse callback function def define_points(target_img): corners = [] refPt = [] def draw_circle(event,x,y,flags,param): global refPt if event == cv2.EVENT_LBUTTONDBLCLK: cv2.circle(param,(x,y),5,(...
33.003676
102
0.614236
0
0
0
0
0
0
0
0
3,643
0.405815
63f426a7b9bb1a0814ac7f14e6b624d2906c52be
8,729
py
Python
chime.py
alexklapheke/chime
2a0ed71310488cfc5cf5daeacd3dcb62558d44dc
[ "MIT" ]
null
null
null
chime.py
alexklapheke/chime
2a0ed71310488cfc5cf5daeacd3dcb62558d44dc
[ "MIT" ]
null
null
null
chime.py
alexklapheke/chime
2a0ed71310488cfc5cf5daeacd3dcb62558d44dc
[ "MIT" ]
null
null
null
import argparse import configparser import os import pathlib import platform import random import subprocess as sp import sys import typing import warnings if platform.system() == 'Windows': import winsound try: from IPython.core import magic IPYTHON_INSTALLED = True except ImportError: IPYTHON_INSTAL...
27.799363
99
0.613701
677
0.077558
0
0
493
0.056478
0
0
3,661
0.419407
63f4fd4ae3791d5d16a0a77ceadc4495ca195f7c
7,733
py
Python
tests/Omega/test_Omega_ligand_preparation.py
niladell/DockStream
75f06d24a95699cdc06fe1ea021e213e1d9fa5b3
[ "Apache-2.0" ]
34
2021-08-05T06:28:30.000Z
2022-03-17T02:42:49.000Z
tests/Omega/test_Omega_ligand_preparation.py
niladell/DockStream
75f06d24a95699cdc06fe1ea021e213e1d9fa5b3
[ "Apache-2.0" ]
9
2021-08-31T10:35:51.000Z
2022-02-03T08:57:58.000Z
tests/Omega/test_Omega_ligand_preparation.py
niladell/DockStream
75f06d24a95699cdc06fe1ea021e213e1d9fa5b3
[ "Apache-2.0" ]
10
2021-08-12T02:32:11.000Z
2022-01-19T11:51:33.000Z
import unittest import os from dockstream.core.OpenEyeHybrid.Omega_ligand_preparator import OmegaLigandPreparator from dockstream.core.ligand.ligand_input_parser import LigandInputParser from dockstream.utils.enums.docking_enum import DockingConfigurationEnum from dockstream.utils.enums.Omega_enums import OmegaExecu...
46.305389
112
0.655114
7,076
0.915039
0
0
103
0.01332
0
0
805
0.104099
63f58c76597e10765889d7945f69878a414cf4fc
1,989
py
Python
tests/test_blog/test_post_search.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
4
2018-08-17T08:06:06.000Z
2020-02-20T15:15:56.000Z
tests/test_blog/test_post_search.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
2
2018-10-08T15:59:58.000Z
2018-10-20T16:50:13.000Z
tests/test_blog/test_post_search.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
1
2019-09-14T23:15:10.000Z
2019-09-14T23:15:10.000Z
"""Test searching the list of blog posts.""" from typing import List from rest_framework.test import APITestCase from blog.factories import PostFactory from tests.decorators import authenticated @authenticated class PostSearchListTest(APITestCase): """Test searching on the post list endpoint.""" def setUp...
33.15
78
0.676219
1,755
0.882353
0
0
1,785
0.897436
0
0
347
0.17446
63f6b54840467413595924d2498a90042e914026
10,641
py
Python
yo/schema.py
RailCoin/yo
c5384cedd30771b36d4603d7a28b30d7a1273433
[ "MIT" ]
10
2017-10-22T20:07:40.000Z
2018-08-01T21:48:49.000Z
client-libs/yo/yo/schema.py
Blurt-Blockchain/steem
fbffd373cdb0f6192aa8806d07e8671e219c3767
[ "MIT" ]
81
2017-08-19T15:38:32.000Z
2020-05-12T09:56:14.000Z
client-libs/yo/yo/schema.py
Blurt-Blockchain/steem
fbffd373cdb0f6192aa8806d07e8671e219c3767
[ "MIT" ]
9
2017-09-19T07:12:20.000Z
2021-05-25T17:09:27.000Z
# coding=utf-8 from enum import IntEnum class NotificationType(IntEnum): power_down = 1 power_up = 2 resteem = 3 feed = 4 reward = 5 send = 6 mention = 7 follow = 8 vote = 9 comment_reply = 10 post_reply = 11 account_update = 12 message = 13 receive = 14 class ...
26.871212
253
0.423926
643
0.060427
0
0
0
0
0
0
5,209
0.489522
63f6c1a6e6d4382fdea90513c54f2d68c07f76d8
2,491
py
Python
iu_mongo/session.py
intelligenceunion/mongo-driver
02bbc6839c8264d4b06b053e8cc83d42147ede17
[ "MIT" ]
null
null
null
iu_mongo/session.py
intelligenceunion/mongo-driver
02bbc6839c8264d4b06b053e8cc83d42147ede17
[ "MIT" ]
null
null
null
iu_mongo/session.py
intelligenceunion/mongo-driver
02bbc6839c8264d4b06b053e8cc83d42147ede17
[ "MIT" ]
1
2019-06-21T17:49:08.000Z
2019-06-21T17:49:08.000Z
from pymongo.read_concern import ReadConcern from pymongo.read_preferences import ReadPreference from pymongo.write_concern import WriteConcern from pymongo.errors import InvalidOperation from iu_mongo.errors import TransactionError __all__ = ['Session', 'TransactionContext'] DEFAULT_READ_CONCERN = ReadConcern('major...
32.350649
96
0.734243
2,044
0.820554
0
0
438
0.175833
0
0
49
0.019671
63f8d4f926db9084fff0778f781e3d35e9ba0d24
5,009
py
Python
bin/ingredient_phrase_tagger/training/cli.py
Deekshith1994/Recipes
5dfc98b249f6caf90571c037eb35560417b6818e
[ "Apache-2.0" ]
null
null
null
bin/ingredient_phrase_tagger/training/cli.py
Deekshith1994/Recipes
5dfc98b249f6caf90571c037eb35560417b6818e
[ "Apache-2.0" ]
null
null
null
bin/ingredient_phrase_tagger/training/cli.py
Deekshith1994/Recipes
5dfc98b249f6caf90571c037eb35560417b6818e
[ "Apache-2.0" ]
null
null
null
import re import decimal import optparse import pandas as pd from ingredient_phrase_tagger.training import utils class Cli(object): def __init__(self, argv): self.opts = self._parse_args(argv) self._upstream_cursor = None def run(self): self.generate_data(self.opts.count, self.opts.o...
30.730061
102
0.553404
4,892
0.976642
0
0
0
0
0
0
1,663
0.332002
63f969d5f629381bf59ef7c423c9e80ade88f17b
726
py
Python
snowballs.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
snowballs.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
snowballs.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
import sys number_of_snowballs = int(input()) highest_value = -sys.maxsize highest_quality = -sys.maxsize highest_weight = -sys.maxsize highest_time = -sys.maxsize for i in range (number_of_snowballs): weight_of_snowball = int(input()) time_of_reaching = int(input()) quality_of_snowball = int(input()) ...
31.565217
91
0.746556
0
0
0
0
0
0
0
0
82
0.112948
63f9f32e4e0b138503ce2018f80b9a8c535cec3c
1,871
py
Python
altperf-server/apps/start-api.py
ynakaoku/altperf
eb4e9e8e76820ddf0325a047eed20a64accb9cf8
[ "MIT" ]
null
null
null
altperf-server/apps/start-api.py
ynakaoku/altperf
eb4e9e8e76820ddf0325a047eed20a64accb9cf8
[ "MIT" ]
null
null
null
altperf-server/apps/start-api.py
ynakaoku/altperf
eb4e9e8e76820ddf0325a047eed20a64accb9cf8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Flask, jsonify, request, Markup, abort, make_response # import peewee # import json api = Flask(__name__) @api.route('/') def index(): html = ''' <form action="/iperf3test"> <p><label>iperf3 test: </label></p> Test Name: <input type="text" name="TestNa...
32.824561
82
0.597007
0
0
0
0
1,647
0.880278
0
0
1,200
0.641368
63fa568f646d17018a9b9b6a0c301f61efae8ec9
4,212
py
Python
ESAN.py
wnxbwyc/ESAN
9f97c4cf0d323e893ac2205ec945b6c37320aaf3
[ "MIT" ]
null
null
null
ESAN.py
wnxbwyc/ESAN
9f97c4cf0d323e893ac2205ec945b6c37320aaf3
[ "MIT" ]
null
null
null
ESAN.py
wnxbwyc/ESAN
9f97c4cf0d323e893ac2205ec945b6c37320aaf3
[ "MIT" ]
null
null
null
import functools import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init def make_model(level): return ESAN(level = level) def initialize_weights(net_l, scale=1): if not isinstance(net_l, list): net_l = [net_l] for net in net_l: for m in net.modules(): ...
33.428571
92
0.555793
3,132
0.74359
0
0
0
0
0
0
189
0.044872
63fb8b0b09023645d9ad10a5e8feb048ac8c77ad
3,478
py
Python
problems/tsptw/problem_tsptw.py
cem0963/dpdp
86f91a1e425826a3f31bcc175724c26a349fdb96
[ "MIT" ]
null
null
null
problems/tsptw/problem_tsptw.py
cem0963/dpdp
86f91a1e425826a3f31bcc175724c26a349fdb96
[ "MIT" ]
null
null
null
problems/tsptw/problem_tsptw.py
cem0963/dpdp
86f91a1e425826a3f31bcc175724c26a349fdb96
[ "MIT" ]
null
null
null
import math import numpy as np from scipy.spatial.distance import cdist from torch.utils.data import Dataset import torch import os import pickle from problems.tsptw.state_tsptw import StateTSPTWInt from utils.functions import accurate_cdist class TSPTW(object): NAME = 'tsptw' # TSP with Time Windows @stati...
33.76699
135
0.587407
3,071
0.882979
0
0
1,872
0.53824
0
0
672
0.193214
63fc18b2a0a8c8afa137abd0e9e8f89ed4b67b71
11,089
py
Python
thespian/test/__init__.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
210
2015-08-31T19:39:34.000Z
2020-01-10T08:07:48.000Z
thespian/test/__init__.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
85
2017-04-08T19:28:42.000Z
2022-03-23T15:25:49.000Z
thespian/test/__init__.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
47
2015-09-01T19:24:20.000Z
2020-01-02T20:03:05.000Z
"""Defines various classes and definitions that provide assistance for unit testing Actors in an ActorSystem.""" import unittest import pytest import logging import time from thespian.actors import ActorSystem def simpleActorTestLogging(): """This function returns a logging dictionary that can be passed as ...
39.74552
133
0.646497
2,692
0.242763
0
0
4,939
0.445396
0
0
5,446
0.491117
63fc46927ba7027c56b95c5435a784c8f5cc9d72
2,454
py
Python
main.py
JeffSpies/nonwordlist
3f4e3c3c4d81d36f28ce03baf10f2a29b1272722
[ "Apache-2.0" ]
null
null
null
main.py
JeffSpies/nonwordlist
3f4e3c3c4d81d36f28ce03baf10f2a29b1272722
[ "Apache-2.0" ]
null
null
null
main.py
JeffSpies/nonwordlist
3f4e3c3c4d81d36f28ce03baf10f2a29b1272722
[ "Apache-2.0" ]
2
2016-05-19T07:14:25.000Z
2019-05-09T03:14:50.000Z
from process import wordlist import itertools import time import os import re ALPHABET = '23456789abcdefghjkmnpqrstuvwxyz' def main(): blacklist_all = wordlist.dict_by_length() blacklist = blacklist_all[3].union(blacklist_all[4]).union(blacklist_all[5]) combinations = get_combinations(3) tick = time.t...
27.266667
85
0.5978
0
0
0
0
0
0
0
0
128
0.05216
63fd18d9cde24eebf1bd28cfec8a2e3f2f9d0dd4
10,400
py
Python
src/PPO.py
thurbridi/mo436-project-1
6d29bb4536d684a79b1a271e4d8505aca40db03b
[ "MIT" ]
null
null
null
src/PPO.py
thurbridi/mo436-project-1
6d29bb4536d684a79b1a271e4d8505aca40db03b
[ "MIT" ]
null
null
null
src/PPO.py
thurbridi/mo436-project-1
6d29bb4536d684a79b1a271e4d8505aca40db03b
[ "MIT" ]
null
null
null
import numpy as np import random import gym import time import itertools from numpy.random.mtrand import gamma import torch from torch import nn from torch._C import dtype from torch.optim import Adam from torch.distributions import Categorical class ExperienceBuffer: def __init__(self, buffer_size, gamma, lambd)...
30.3207
121
0.590096
3,813
0.366353
0
0
0
0
0
0
664
0.063797
63fe55bbd1c58b24c66f67e3ef0288edddb3e0ab
4,052
pyw
Python
python/macRC.pyw
drs251/MacRC
35bcf8d8b7c64d48d90fcde3aa83786f820e5b0c
[ "MIT" ]
null
null
null
python/macRC.pyw
drs251/MacRC
35bcf8d8b7c64d48d90fcde3aa83786f820e5b0c
[ "MIT" ]
null
null
null
python/macRC.pyw
drs251/MacRC
35bcf8d8b7c64d48d90fcde3aa83786f820e5b0c
[ "MIT" ]
null
null
null
from subprocess import Popen, PIPE from distutils.util import strtobool import serial import sys import time import glob import serial.tools.list_ports_posix def run_applescript(scpt, args=()): p = Popen(['osascript', '-'] + list(args), stdin=PIPE, stdout=PIPE) stdout, stderr = p.communicate(scpt) return ...
26.834437
98
0.55849
0
0
0
0
0
0
0
0
940
0.231984
63ffa1929e247b6219607c1f68157af18847d3fb
4,275
py
Python
tryopenapi.py
fakegit/eave
3b4e5183a3f6df952685d63cf983d03c2157dff6
[ "MIT" ]
null
null
null
tryopenapi.py
fakegit/eave
3b4e5183a3f6df952685d63cf983d03c2157dff6
[ "MIT" ]
null
null
null
tryopenapi.py
fakegit/eave
3b4e5183a3f6df952685d63cf983d03c2157dff6
[ "MIT" ]
null
null
null
import json import yaml import dnode from eave import * openapi_yaml = open('openapi.yaml').read() openapi_json = open('openapi.json').read() yaml_data = yaml.safe_load(openapi_yaml) json_data = json.loads(openapi_json) assert yaml_data == json_data class DNode(dnode.DNode): def __getattr__(self, item): ...
28.311258
87
0.564211
164
0.038363
0
0
0
0
0
0
664
0.155322
63fffacd17d14f9d91e78c33cd2cb358957bdfb0
12,939
py
Python
memory.py
Matioz/World-Models
e0eb98b78b4fa6b8828fef8098f867a4ccf06a36
[ "MIT" ]
9
2018-08-21T14:25:50.000Z
2021-12-15T12:10:51.000Z
memory.py
Matioz/World-Models
e0eb98b78b4fa6b8828fef8098f867a4ccf06a36
[ "MIT" ]
5
2018-08-25T10:29:05.000Z
2018-09-19T15:18:40.000Z
memory.py
Matioz/World-Models
e0eb98b78b4fa6b8828fef8098f867a4ccf06a36
[ "MIT" ]
3
2018-10-01T00:55:12.000Z
2019-05-09T07:33:31.000Z
import logging as log import numpy as np import h5py import humblerl as hrl from humblerl import Callback, Interpreter import torch import torch.nn as nn import torch.optim as optim from torch.distributions import Normal from torch.utils.data import Dataset from common_utils import get_model_path_if_exists from third...
42.00974
104
0.64464
10,730
0.829276
0
0
0
0
0
0
4,933
0.38125
12004752447a3c322e24283675f1768106bc32b5
761
py
Python
wagtailrelated/utils.py
torchbox/wagtail-related
b0e811e5093d6d5c1554cab66f3c5097d6d474ad
[ "BSD-3-Clause" ]
2
2018-09-03T15:09:30.000Z
2020-11-29T02:23:01.000Z
wagtailrelated/utils.py
torchbox/wagtail-related
b0e811e5093d6d5c1554cab66f3c5097d6d474ad
[ "BSD-3-Clause" ]
null
null
null
wagtailrelated/utils.py
torchbox/wagtail-related
b0e811e5093d6d5c1554cab66f3c5097d6d474ad
[ "BSD-3-Clause" ]
null
null
null
from bs4 import BeautifulSoup from wagtail.core.fields import StreamField def extract_text(obj): """Extracts data, concatenates and removes html tags from fields listed in a obj.related_source_fields list. """ related_source_fields = getattr(obj._meta.model, 'related_source_fields', None) if not r...
29.269231
83
0.703022
0
0
0
0
0
0
0
0
159
0.208936
12012366643f4f22b21641dcce1d6d36c1aaaf3a
1,233
py
Python
codes/globo_videos_cuts/core/tests/models/programs_model_test_case.py
lariodiniz/teste_meta
3bf043df3ee76871d68a3f8aea7c3ecd53765fec
[ "MIT" ]
null
null
null
codes/globo_videos_cuts/core/tests/models/programs_model_test_case.py
lariodiniz/teste_meta
3bf043df3ee76871d68a3f8aea7c3ecd53765fec
[ "MIT" ]
null
null
null
codes/globo_videos_cuts/core/tests/models/programs_model_test_case.py
lariodiniz/teste_meta
3bf043df3ee76871d68a3f8aea7c3ecd53765fec
[ "MIT" ]
null
null
null
# coding: utf-8 __author__ = "Lário dos Santos Diniz" from django.test import TestCase from model_mommy import mommy from core.models import Programs class ProgramsModelTestCase(TestCase): """Class Testing Model Pogramas """ def setUp(self): """ Initial Test Settings """ ...
33.324324
106
0.680454
1,079
0.874392
0
0
0
0
0
0
391
0.316856
1201648d14db637a8c539982bbb05d716a282c19
8,002
py
Python
figures/plot_occurrence.py
wdlynch/symbolic_experiments
8c0c9bf93edc8f58ed1e027cf5704dadd57e853a
[ "MIT" ]
null
null
null
figures/plot_occurrence.py
wdlynch/symbolic_experiments
8c0c9bf93edc8f58ed1e027cf5704dadd57e853a
[ "MIT" ]
null
null
null
figures/plot_occurrence.py
wdlynch/symbolic_experiments
8c0c9bf93edc8f58ed1e027cf5704dadd57e853a
[ "MIT" ]
1
2022-01-25T18:35:44.000Z
2022-01-25T18:35:44.000Z
import os import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from matplotlib.lines import Line2D from matplotlib import rcParams params = { # 'text.latex.preamble': ['\\usepackage{gensymb}'], # 'text.usetex': True, 'font.family': 'Helvetica', 'lines.solid_capstyle'...
29.970037
142
0.661335
0
0
0
0
0
0
0
0
3,009
0.376031
1201b7d36d1bc8f3a1d15295c1c59670a006d89d
1,164
py
Python
Chapter04/apriori.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
40
2019-08-23T13:33:12.000Z
2022-02-24T12:48:41.000Z
Chapter04/apriori.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
null
null
null
Chapter04/apriori.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
33
2019-10-21T09:47:51.000Z
2022-01-14T17:21:54.000Z
import numpy as np # Install the library using: pip install -U efficient-apriori from efficient_apriori import apriori # Set random seed for reproducibility np.random.seed(1000) nb_users = 100 nb_products = 100 if __name__ == "__main__": # Create the dataset items = [i for i in range(nb_products)] t...
25.304348
61
0.534364
0
0
0
0
0
0
0
0
148
0.127148
12027780d9f17722cbac1d89fef4396c4df419ca
1,202
py
Python
graph_nn-master/utils.py
allisontam/graph_coattention
5edc98615d5526269452b519bb13512ec5e952da
[ "MIT" ]
null
null
null
graph_nn-master/utils.py
allisontam/graph_coattention
5edc98615d5526269452b519bb13512ec5e952da
[ "MIT" ]
null
null
null
graph_nn-master/utils.py
allisontam/graph_coattention
5edc98615d5526269452b519bb13512ec5e952da
[ "MIT" ]
null
null
null
import numpy as np def split_ids(args, ids, folds=10): if args.dataset == 'COLORS-3': assert folds == 1, 'this dataset has train, val and test splits' train_ids = [np.arange(500)] val_ids = [np.arange(500, 3000)] test_ids = [np.arange(3000, 10500)] elif args.dataset == 'TRIANGL...
42.928571
107
0.591514
0
0
0
0
0
0
0
0
188
0.156406
1203c3903ddc96149a5651577ae2b0829fdbb6b4
498
py
Python
dingus/block.py
ricott1/dingus
ef0edd9fff164f54171b354714e600f410a3bbe9
[ "MIT" ]
null
null
null
dingus/block.py
ricott1/dingus
ef0edd9fff164f54171b354714e600f410a3bbe9
[ "MIT" ]
null
null
null
dingus/block.py
ricott1/dingus
ef0edd9fff164f54171b354714e600f410a3bbe9
[ "MIT" ]
null
null
null
import dingus.codec import utils import transaction class BlockHeader(object): VERSION = 0 def __init__( self, ) -> None: raise NotImplementedError class Block(object): VERSION = 0 def __init__( self, header: BlockHeader, payload: list[transaction.Trans...
17.172414
51
0.616466
439
0.881526
0
0
0
0
0
0
0
0
120470c227d9ba2b49eaf7b4e99557346482221f
34,609
py
Python
sigpy/block.py
EfratShimron/sigpy
d140abf0fe7268851aec3be74d238a5ba8d2dd28
[ "BSD-3-Clause" ]
null
null
null
sigpy/block.py
EfratShimron/sigpy
d140abf0fe7268851aec3be74d238a5ba8d2dd28
[ "BSD-3-Clause" ]
null
null
null
sigpy/block.py
EfratShimron/sigpy
d140abf0fe7268851aec3be74d238a5ba8d2dd28
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Block reshape functions. """ import numpy as np import numba as nb from sigpy import backend, config, util __all__ = ['array_to_blocks', 'blocks_to_array'] def array_to_blocks(input, blk_shape, blk_strides): """Extract blocks from an array in a sliding window manner. Args: ...
40.8125
79
0.38464
0
0
0
0
6,759
0.195296
0
0
13,499
0.390043
12047d5e2a741823096dbc33bf5afe683749bd26
1,531
py
Python
awscdk/app.py
jaliste/mi_coop
66be4328117c39026d85a3d6cc9b8635bde49077
[ "MIT" ]
54
2019-08-11T03:39:22.000Z
2022-01-06T02:16:33.000Z
awscdk/app.py
jaliste/mi_coop
66be4328117c39026d85a3d6cc9b8635bde49077
[ "MIT" ]
11
2020-02-12T01:17:38.000Z
2021-05-10T06:22:22.000Z
awscdk/app.py
jaliste/mi_coop
66be4328117c39026d85a3d6cc9b8635bde49077
[ "MIT" ]
20
2019-09-07T20:04:08.000Z
2021-12-05T04:43:20.000Z
#!/usr/bin/env python3 import os from aws_cdk import core from awscdk.app_stack import ApplicationStack # naming conventions, also used for ACM certs, DNS Records, resource naming # Dynamically generated resource names created in CDK are used in GitLab CI # such as cluster name, task definitions, etc. environment_na...
36.452381
79
0.766819
0
0
0
0
0
0
0
0
872
0.569562
1204c9abc6db283ce3d3831f239b7fd8af24dbea
4,563
py
Python
test_phase_equilibrium.py
khuston/interfacial_transport
dfca4288e2876de81683fb46704c14393afdf422
[ "MIT" ]
1
2020-05-07T09:25:24.000Z
2020-05-07T09:25:24.000Z
test_phase_equilibrium.py
khuston/interfacial_transport
dfca4288e2876de81683fb46704c14393afdf422
[ "MIT" ]
null
null
null
test_phase_equilibrium.py
khuston/interfacial_transport
dfca4288e2876de81683fb46704c14393afdf422
[ "MIT" ]
null
null
null
import numpy as np import logging from interfacial_transport import compute_one_phase_equilibrium, compute_mass_balance_one_phase from interfacial_transport import compute_two_phase_equilibrium, compute_mass_balance_two_phase from numpy.testing import assert_almost_equal logger = logging.getLogger(__name__) # Check o...
31.909091
201
0.60881
0
0
0
0
0
0
0
0
232
0.050844
1205020ea522f7b1fd7bb580cbb7689312826db5
3,914
py
Python
testbed1/scratchnet_single_switch_test.py
Benny93/SDNMininetScripts
16844ac1cecfdf27e25ca0f758029c81030b9ba1
[ "MIT" ]
null
null
null
testbed1/scratchnet_single_switch_test.py
Benny93/SDNMininetScripts
16844ac1cecfdf27e25ca0f758029c81030b9ba1
[ "MIT" ]
null
null
null
testbed1/scratchnet_single_switch_test.py
Benny93/SDNMininetScripts
16844ac1cecfdf27e25ca0f758029c81030b9ba1
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Build a simple network from scratch, using mininet primitives. This is more complicated than using the higher-level classes, but it exposes the configuration details and allows customization. For most tasks, the higher-level API will be preferable. """ import csv import sys import time from mini...
29.877863
143
0.648441
0
0
0
0
0
0
0
0
1,385
0.353858
1207575defc5d03469e62a79d6627247fbf73ef2
108
py
Python
teampy/__init__.py
arcward/teampy
34097dfca2cf6eb2a405ff0346b46e7ab9520444
[ "MIT" ]
null
null
null
teampy/__init__.py
arcward/teampy
34097dfca2cf6eb2a405ff0346b46e7ab9520444
[ "MIT" ]
null
null
null
teampy/__init__.py
arcward/teampy
34097dfca2cf6eb2a405ff0346b46e7ab9520444
[ "MIT" ]
null
null
null
from teampy.client import APIClient __version__ = '0.1' __author__ = 'Edward Wells' __all__ = ['APIClient']
21.6
35
0.75
0
0
0
0
0
0
0
0
30
0.277778
120789fe010c8cdb8e79c4be3739e15f479811eb
1,032
py
Python
app/housekeeping.py
openpeoria/covid-19-il-data-scraper
f1978f08f4451398ef6d892593d6259745237073
[ "MIT" ]
2
2020-06-16T16:36:21.000Z
2020-06-28T16:38:15.000Z
app/housekeeping.py
openpeoria/covid-19-il-data-scraper
f1978f08f4451398ef6d892593d6259745237073
[ "MIT" ]
15
2020-05-09T20:42:02.000Z
2020-08-06T17:12:06.000Z
app/housekeeping.py
openpeoria/covid-19-il-data-scraper
f1978f08f4451398ef6d892593d6259745237073
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ app.housekeeping ~~~~~~~~~~~~~~~~ Provides additional housekeeping endpoints """ from flask import Blueprint, redirect, request from werkzeug.exceptions import HTTPException from app.helpers import exception_hook from app.utils import jsonify blueprint = Blueprint("Housekeepin...
25.170732
56
0.694767
0
0
0
0
692
0.670543
0
0
169
0.16376
12097bfd1d23d0ffaac136238da16dcbf5b48204
10,463
py
Python
game.py
MisterL2/WarzoneAI
eeae8975f58d11bcce5acf2556e5c47b7e6e4c7c
[ "MIT" ]
null
null
null
game.py
MisterL2/WarzoneAI
eeae8975f58d11bcce5acf2556e5c47b7e6e4c7c
[ "MIT" ]
null
null
null
game.py
MisterL2/WarzoneAI
eeae8975f58d11bcce5acf2556e5c47b7e6e4c7c
[ "MIT" ]
null
null
null
from aiplayer import * from player import * from gameclasses import * def setup(countries, countryMap): print("Setup started!") #Initialise boni NA.countries = countries[0:9] SA.countries = countries[9:13] AF.countries = countries[13:19] EU.countries = countries[19:26] AU.countries = countr...
42.706122
208
0.67409
0
0
0
0
0
0
0
0
5,041
0.481793
1209c55c292fdc6dbe7e74d85cb44c48a7a0980f
1,678
py
Python
src/pretix/plugins/stripe/views.py
abrock/pretix
cd9c048458afce1198276e5936bf583578855a4f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-23T07:44:54.000Z
2021-06-23T07:44:54.000Z
src/pretix/plugins/stripe/views.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/plugins/stripe/views.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json import logging import stripe from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from pretix.base.models import Event, Order from pretix.plugins.stripe.payment import Stripe logger = logging.getLogger('pretix.plug...
30.509091
96
0.694875
0
0
0
0
1,342
0.799762
0
0
311
0.18534
120b31cd9b8d0a2588dcab759b2ad94681f0fd60
389
py
Python
meerkat_backend_interface/logger.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
null
null
null
meerkat_backend_interface/logger.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
7
2019-03-20T23:36:11.000Z
2021-12-13T19:49:02.000Z
meerkat_backend_interface/logger.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
3
2019-03-20T23:35:10.000Z
2019-04-17T23:27:54.000Z
import logging def get_logger(): """Get the logger.""" return logging.getLogger("BLUSE.interface") log = get_logger() def set_logger(log_level=logging.DEBUG): """Set up logging.""" FORMAT = "[ %(levelname)s - %(asctime)s - %(filename)s:%(lineno)s] %(message)s" logging.basicConfig(format=FORMAT...
19.45
83
0.650386
0
0
0
0
0
0
0
0
129
0.33162
120c2eff5a8ca3795d5975762849b5022164abd8
4,749
py
Python
alipay/aop/api/domain/AlipayUserApplepayMerchantauthtokenGetModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayUserApplepayMerchantauthtokenGetModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayUserApplepayMerchantauthtokenGetModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.OpenApiAppleRequestHeader import OpenApiAppleRequestHeader class AlipayUserApplepayMerchantauthtokenGetModel(object): def __init__(self): self._amount = None ...
39.575
121
0.692777
4,546
0.957254
0
0
2,231
0.469783
0
0
712
0.149926
120fe27f1b5e75a52f5b34455fea3d4051d4c84c
2,239
py
Python
sloth/lexer.py
TueHaulund/SLOTH
bd6ce343b22719f58d746768eda36a7164ec0446
[ "MIT" ]
null
null
null
sloth/lexer.py
TueHaulund/SLOTH
bd6ce343b22719f58d746768eda36a7164ec0446
[ "MIT" ]
null
null
null
sloth/lexer.py
TueHaulund/SLOTH
bd6ce343b22719f58d746768eda36a7164ec0446
[ "MIT" ]
null
null
null
import re from sloth.grammar import LexicalGrammar from sloth.token import Token class LexerError(Exception): def __init__(self, pos): self.pos = pos self.description = 'LexerError at Line {}, Column {}'.format( self.pos[0], self.pos[1] ) def __str__(self): return...
27.304878
86
0.567664
2,151
0.960697
796
0.355516
0
0
0
0
494
0.220634
12103e0a24c1302957392f23e845952a37e61e1d
577
py
Python
test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py
yuanyi-thu/AIOT-
27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e
[ "BSD-3-Clause" ]
128
2018-10-29T04:11:47.000Z
2022-03-07T02:19:14.000Z
test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py
yuanyi-thu/AIOT-
27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e
[ "BSD-3-Clause" ]
40
2018-11-02T00:40:48.000Z
2021-12-07T09:33:56.000Z
test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py
yuanyi-thu/AIOT-
27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e
[ "BSD-3-Clause" ]
118
2018-10-29T08:43:57.000Z
2022-01-07T06:49:25.000Z
from com.huawei.iotplatform.client.dto.DeviceCommandCancelTaskRespV4 import DeviceCommandCancelTaskRespV4 from com.huawei.iotplatform.client.dto.Pagination import Pagination class QueryDeviceCmdCancelTaskOutDTO(object): pagination = Pagination() data = DeviceCommandCancelTaskRespV4() def __init__(self): ...
25.086957
105
0.729636
400
0.693241
0
0
0
0
0
0
0
0
1213c2cda4d18aa24aaef90a3765df3d511ac853
4,872
py
Python
utils/file_utils.py
hardore007/FeedSDK-Python
c94795f75c0654d160e77301bb15ce055fe81e96
[ "Apache-2.0" ]
27
2019-04-18T18:56:11.000Z
2022-03-27T14:33:05.000Z
utils/file_utils.py
hardore007/FeedSDK-Python
c94795f75c0654d160e77301bb15ce055fe81e96
[ "Apache-2.0" ]
1
2021-12-12T10:50:19.000Z
2021-12-12T10:50:19.000Z
utils/file_utils.py
hardore007/FeedSDK-Python
c94795f75c0654d160e77301bb15ce055fe81e96
[ "Apache-2.0" ]
14
2019-06-13T17:56:28.000Z
2022-01-11T22:32:13.000Z
# ************************************************************************** # Copyright 2018-2019 eBay Inc. # Author/Developers: -- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https:...
39.934426
117
0.654557
0
0
0
0
0
0
0
0
2,568
0.527094
1214ad1ddf30b9d8eafe82e3eadd72d6db36b769
1,040
py
Python
tests/licenses/test_tasks.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
tests/licenses/test_tasks.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
tests/licenses/test_tasks.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
import os import subprocess class TestTasks: """ Test that the tasks work with invoke. """ CMD_KWARGS = dict( capture_output=True, encoding="utf-8", shell=True, env=os.environ.copy(), ) def test_unapproved_licenses(self): """ Should emit table of unapproved lic...
35.862069
104
0.653846
1,009
0.970192
0
0
0
0
0
0
482
0.463462
12181341c970163cc0fc0af88683d0ae2d3ab386
959
py
Python
src/config.py
raywu60kg/credit-card-fraud-detection
83d8e4ce6afeb9f74cccbd98286103a5ee874308
[ "MIT" ]
4
2021-04-16T08:16:38.000Z
2021-12-24T14:21:38.000Z
src/config.py
raywu60kg/credit-card-fraud-detection
83d8e4ce6afeb9f74cccbd98286103a5ee874308
[ "MIT" ]
3
2021-03-31T19:56:04.000Z
2021-12-13T21:00:30.000Z
src/config.py
raywu60kg/lightgbm-project-demo
83d8e4ce6afeb9f74cccbd98286103a5ee874308
[ "MIT" ]
null
null
null
import os from ray import tune package_dir = os.path.dirname(os.path.abspath(__file__)) identity_dir = os.path.join(package_dir, "..", "data/train_identity.csv") transaction_dir = os.path.join(package_dir, "..", "data/train_transaction.csv") data_primary_key = "TransactionID" label_name = ["isFraud"] feature_names = [...
22.833333
79
0.611053
0
0
0
0
0
0
0
0
357
0.372263
121852da41e3319cf6adc7aeb0809f6d3f289225
64
py
Python
app/chat/__init__.py
B-T-S/Build
c6fae1fc44ec6a1ec3c2f01784ac2a1e67017ccc
[ "MIT" ]
1
2020-09-06T11:21:43.000Z
2020-09-06T11:21:43.000Z
app/chat/__init__.py
B-T-S/Build
c6fae1fc44ec6a1ec3c2f01784ac2a1e67017ccc
[ "MIT" ]
null
null
null
app/chat/__init__.py
B-T-S/Build
c6fae1fc44ec6a1ec3c2f01784ac2a1e67017ccc
[ "MIT" ]
null
null
null
from . import guest from . import pusherauth from . import admin
21.333333
24
0.78125
0
0
0
0
0
0
0
0
0
0
121859643d9d38314cf2b4f7dd98311a26fc6f87
22,481
py
Python
dataloader/statetransformer_Guidance.py
proroklab/magat_pathplanning
a2cab3b11abc46904bc45be1762a780becb1e8c7
[ "MIT" ]
40
2021-07-01T03:14:20.000Z
2022-03-23T23:45:22.000Z
dataloader/statetransformer_Guidance.py
QingbiaoLi/magat_pathplanning
f28429b1a2ab7866c3001b82e6ae9ca3f072c106
[ "MIT" ]
null
null
null
dataloader/statetransformer_Guidance.py
QingbiaoLi/magat_pathplanning
f28429b1a2ab7866c3001b82e6ae9ca3f072c106
[ "MIT" ]
13
2021-07-14T07:57:16.000Z
2022-03-03T10:43:25.000Z
import numpy as np import torch from offlineExpert.a_star import PathPlanner class AgentState: def __init__(self, config): # self.config = config # self.num_agents = self.config.num_agents self.config = config self.num_agents = self.config.num_agents # self.FOV = 5 ...
45.2334
129
0.637294
22,400
0.996397
0
0
0
0
0
0
3,464
0.154086
121923d1e8491eca43f62c50b434300d0afbbc05
1,713
py
Python
Algorithms/0212_Word_Search_II/Python/Word_Search_II_Solution_1.py
lht19900714/Leetcode_Python
645211f0ec71de579f1b091453db9eea80de9816
[ "MIT" ]
null
null
null
Algorithms/0212_Word_Search_II/Python/Word_Search_II_Solution_1.py
lht19900714/Leetcode_Python
645211f0ec71de579f1b091453db9eea80de9816
[ "MIT" ]
null
null
null
Algorithms/0212_Word_Search_II/Python/Word_Search_II_Solution_1.py
lht19900714/Leetcode_Python
645211f0ec71de579f1b091453db9eea80de9816
[ "MIT" ]
null
null
null
# Space: O(n) # Time: O(n) import collections class Solution(): def findWords(self, board, words): column = len(board) if column == 0: return [] row = len(board[0]) if row == 0: return [] target_word = set() res = set() # build a trie, this will be used...
28.081967
159
0.50613
1,657
0.967309
0
0
0
0
0
0
78
0.045534
12192a5c4a0869098ef5a2f6114fc9d572aaa5ab
2,101
py
Python
training/pl_logger.py
stdiff/emo-classifier
211731a44022408c750b611383216ce0578f2d41
[ "MIT" ]
null
null
null
training/pl_logger.py
stdiff/emo-classifier
211731a44022408c750b611383216ce0578f2d41
[ "MIT" ]
null
null
null
training/pl_logger.py
stdiff/emo-classifier
211731a44022408c750b611383216ce0578f2d41
[ "MIT" ]
null
null
null
from typing import Dict, Any, Optional import pandas as pd from pytorch_lightning.loggers import LightningLoggerBase from pytorch_lightning.loggers.base import rank_zero_experiment from pytorch_lightning.utilities import rank_zero_only class SimpleLogger(LightningLoggerBase): def __init__(self): super()....
29.180556
91
0.611614
1,861
0.885769
0
0
1,119
0.532604
0
0
580
0.276059
121a371d11810daf15b49cd12a5b51615558c5c2
13,225
py
Python
exec/tests/unit/runners/test_evaluators.py
AndersonReyes/klio
758c80daa2c537a42a72e5ba061e8686b68de111
[ "Apache-2.0" ]
705
2020-10-02T17:25:31.000Z
2022-03-24T15:26:53.000Z
exec/tests/unit/runners/test_evaluators.py
AndersonReyes/klio
758c80daa2c537a42a72e5ba061e8686b68de111
[ "Apache-2.0" ]
63
2020-10-02T17:53:47.000Z
2022-03-23T21:36:40.000Z
exec/tests/unit/runners/test_evaluators.py
isabella232/klio
4b8b96b03948235c0b28af96fc85de17cb679e8c
[ "Apache-2.0" ]
49
2020-10-13T18:44:34.000Z
2022-03-18T08:38:15.000Z
# Copyright 2021 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
35.172872
79
0.707977
650
0.049149
0
0
429
0.032439
0
0
2,843
0.214972
121b43822422f72f27023efc96df9a7d9e66a9dd
218
py
Python
tests/test_test.py
pthomson88/drug_design
d92ed4c06cd036c83fe60ada05b493f4581d24d6
[ "MIT" ]
1
2020-07-06T10:50:17.000Z
2020-07-06T10:50:17.000Z
tests/test_test.py
pthomson88/drug_design
d92ed4c06cd036c83fe60ada05b493f4581d24d6
[ "MIT" ]
3
2020-04-06T22:06:07.000Z
2020-04-23T23:07:43.000Z
tests/test_test.py
pthomson88/drug_design
d92ed4c06cd036c83fe60ada05b493f4581d24d6
[ "MIT" ]
null
null
null
import pytest def test_test(): hello_world = "Hello World" assert hello_world == "Hello World" def test_always_passes(): assert True #This test will always fail def test_always_fails(): assert False
16.769231
39
0.715596
0
0
0
0
0
0
0
0
53
0.243119
121c0a3df995d20450310ecffb8591aaab406cd8
3,812
py
Python
tic-tac-toe.py
aaditkapoor/tic-tac-toe-ml-project
21071af048486198bedcf4c775c3e44136b1a62f
[ "MIT" ]
4
2020-09-27T15:15:07.000Z
2022-02-02T22:07:18.000Z
tic-tac-toe.py
aaditkapoor/tic-tac-toe-ml-project
21071af048486198bedcf4c775c3e44136b1a62f
[ "MIT" ]
null
null
null
tic-tac-toe.py
aaditkapoor/tic-tac-toe-ml-project
21071af048486198bedcf4c775c3e44136b1a62f
[ "MIT" ]
2
2020-10-01T04:06:04.000Z
2021-12-12T15:07:23.000Z
# coding: utf-8 # - We are creating a very simple machine learning model.<br> # - Using dataset: tic-tac-toe.data.txt with user-defined columns.<br> # - We are treating this problem as a supervised learning problem.<br> # In[74]: # This the rough sketch of the processing that happened in my brain while creating the...
15.883333
207
0.726653
0
0
0
0
0
0
0
0
1,587
0.416317
12205785847781fdf91f2f5c239b4afc1705b168
566
py
Python
murel/models/networks/control.py
gokcengokceoglu/murel.bootstrap.pytorch
e3f1cfde377969a872a8f930fbaedf3f814f8fe0
[ "BSD-3-Clause" ]
1
2019-05-13T17:28:36.000Z
2019-05-13T17:28:36.000Z
murel/models/networks/control.py
gokcengokceoglu/murel.bootstrap.pytorch
e3f1cfde377969a872a8f930fbaedf3f814f8fe0
[ "BSD-3-Clause" ]
null
null
null
murel/models/networks/control.py
gokcengokceoglu/murel.bootstrap.pytorch
e3f1cfde377969a872a8f930fbaedf3f814f8fe0
[ "BSD-3-Clause" ]
null
null
null
import torch.nn as nn import torch class ControlModule(nn.Module): def __init__(self, input_size, hidden_size): super(ControlModule, self).__init__() self.rnncell = nn.RNNCell(input_size=input_size, hidden_size=hidden_size, nonlinearity='tanh') def forward(self, input, hidden): hidd...
25.727273
102
0.680212
525
0.927562
0
0
0
0
0
0
69
0.121908
1220d274182a0990223702c61d3c21c277645d4a
452
py
Python
uim/model/helpers/__init__.py
Wacom-Developer/universal-ink-library
689ed90e09e912b8fc9ac249984df43a7b59aa59
[ "Apache-2.0" ]
5
2021-09-06T11:45:37.000Z
2022-03-24T15:56:06.000Z
uim/model/helpers/__init__.py
Wacom-Developer/universal-ink-library
689ed90e09e912b8fc9ac249984df43a7b59aa59
[ "Apache-2.0" ]
null
null
null
uim/model/helpers/__init__.py
Wacom-Developer/universal-ink-library
689ed90e09e912b8fc9ac249984df43a7b59aa59
[ "Apache-2.0" ]
2
2021-09-03T09:08:45.000Z
2021-12-15T14:03:16.000Z
# -*- coding: utf-8 -*- """ Helpers ======= The helpers are simple functions to support with: - Catmull-Rom splines - Extracting text and named entities from Ink Model - Iterate over the Ink Tree """ __all__ = ['spline', 'text_extractor', 'treeiterator', 'policy'] from uim.model.helpers import ...
25.111111
64
0.710177
0
0
0
0
0
0
0
0
267
0.590708
1221a67d2afbaeaa06f032e92f261758edc08659
1,544
py
Python
matrix_traversal/get_matrix.py
SiberiaMan/Avitotech
0f17bedd157973ad3f5a3fa748a4892eb1a42204
[ "MIT" ]
null
null
null
matrix_traversal/get_matrix.py
SiberiaMan/Avitotech
0f17bedd157973ad3f5a3fa748a4892eb1a42204
[ "MIT" ]
null
null
null
matrix_traversal/get_matrix.py
SiberiaMan/Avitotech
0f17bedd157973ad3f5a3fa748a4892eb1a42204
[ "MIT" ]
null
null
null
import aiohttp from matrix_traversal.utils import ( traverse_matrix_counterclockwise, get_formatted_matrix, check_url) from typing import List from aiohttp import ClientError from asyncio.exceptions import TimeoutError async def send_request(url: str) -> List[List[int]]: """ This function sends a ...
31.510204
75
0.626943
0
0
0
0
0
0
1,307
0.846503
512
0.331606
1222227113bac1587e2d7de9daa11d0c8149596e
366
py
Python
wildlifecompliance/migrations/0431_merge_20200218_1801.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0431_merge_20200218_1801.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0431_merge_20200218_1801.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-02-18 10:01 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0430_briefofevidencedocument'), ('wildlifecompliance', '0427_merge_202...
21.529412
63
0.688525
216
0.590164
0
0
0
0
0
0
167
0.456284
12228e3b63d5800fdd397f990213ba8df82669bd
23
py
Python
python/testData/copyPaste/LineToPrev.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/copyPaste/LineToPrev.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/copyPaste/LineToPrev.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
print print 21 print 3
5.75
8
0.782609
0
0
0
0
0
0
0
0
0
0
12229d09733f5a8668d4db1077a04761f8c6c6e6
1,234
py
Python
pdfencrypter.py
kamimura/pdfendecrypter
0fc93b8234d7e94cd42267eb05f97ba398f08e1e
[ "MIT" ]
null
null
null
pdfencrypter.py
kamimura/pdfendecrypter
0fc93b8234d7e94cd42267eb05f97ba398f08e1e
[ "MIT" ]
null
null
null
pdfencrypter.py
kamimura/pdfendecrypter
0fc93b8234d7e94cd42267eb05f97ba398f08e1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import PyPDF2 length = len(sys.argv) if length >= 2: PASSWORD = sys.argv[1] else: print('usage: cmd password [path]') sys.exit(1) if length == 3: PATH = sys.argv[2] else: PATH = os.curdir for folder_name, _, filenames in os.walk...
32.473684
74
0.523501
0
0
0
0
0
0
0
0
129
0.104538
1223017e27fe3759d3dd4b76699ecf7642b1cb0c
112
py
Python
Term2/15-5-square-for-input.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
Term2/15-5-square-for-input.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
Term2/15-5-square-for-input.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
import turtle as t zel = float(input("What is your Zel: ")) for i in range(4): t.fd(zel) t.lt(90) t.done()
14
40
0.616071
0
0
0
0
0
0
0
0
20
0.178571
12233f2f13fb8938280813abd35f4446b1be890a
691
py
Python
src/ashley/urls.py
openfun/ashley
33af6a46bc22c86417c200fdd84876c2c46b02ce
[ "MIT" ]
6
2020-05-05T11:50:29.000Z
2021-09-19T06:01:39.000Z
src/ashley/urls.py
openfun/ashley
33af6a46bc22c86417c200fdd84876c2c46b02ce
[ "MIT" ]
93
2020-02-17T16:28:57.000Z
2022-03-18T14:06:45.000Z
src/ashley/urls.py
openfun/ashley
33af6a46bc22c86417c200fdd84876c2c46b02ce
[ "MIT" ]
1
2020-03-02T04:36:12.000Z
2020-03-02T04:36:12.000Z
""" Ashley URLs (that includes django machina urls) """ from django.urls import include, path, re_path from machina import urls as machina_urls from ashley.api import urls as api_urls from ashley.views import ChangeUsernameView, ForumLTIView, ManageModeratorsView API_PREFIX = "v1.0" urlpatterns = [ path("lti/fo...
28.791667
81
0.704776
0
0
0
0
0
0
0
0
184
0.266281
1225b42f1a8d25d36977830638476dfe2a802c62
11,992
py
Python
schemes/mkcap.py
gold2718/ccpp-framework
66f1a069b6b15748e08adbe940b8ceb9b39619ab
[ "Apache-2.0" ]
null
null
null
schemes/mkcap.py
gold2718/ccpp-framework
66f1a069b6b15748e08adbe940b8ceb9b39619ab
[ "Apache-2.0" ]
39
2019-01-25T21:50:33.000Z
2021-09-03T16:57:43.000Z
schemes/mkcap.py
gold2718/ccpp-framework
66f1a069b6b15748e08adbe940b8ceb9b39619ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Script to generate a cap module and subroutines # from a scheme xml file. # from __future__ import print_function import os import sys import getopt import xml.etree.ElementTree as ET #################### Main program routine def main(): args = parse_args() data = parse_scheme(args['...
30.827763
94
0.532688
9,136
0.761841
0
0
3,403
0.283773
0
0
4,615
0.38484
122659abc409041390c5c76b00e76f1745c0df5d
2,457
py
Python
setup.py
CertiFire/certifire
722da20bade41b8cc8553177e70e1f56015fe335
[ "MIT" ]
null
null
null
setup.py
CertiFire/certifire
722da20bade41b8cc8553177e70e1f56015fe335
[ "MIT" ]
null
null
null
setup.py
CertiFire/certifire
722da20bade41b8cc8553177e70e1f56015fe335
[ "MIT" ]
1
2021-02-06T03:29:56.000Z
2021-02-06T03:29:56.000Z
#!/usr/bin/env python import certifire import certifire.plugins.acme import certifire.plugins.dns_providers from codecs import open from setuptools import setup, find_packages import sys try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 print(...
34.125
80
0.635328
0
0
0
0
0
0
0
0
1,062
0.432234
12274afee7b6bda951b1ffa4cfd48248c01b1033
2,687
py
Python
kanka/utils.py
rbtnx/python-kanka
74e75243094816a5d0ddc33575951749a090c673
[ "MIT" ]
3
2020-07-26T22:05:06.000Z
2021-09-14T12:58:45.000Z
kanka/utils.py
rbtnx/python-kanka
74e75243094816a5d0ddc33575951749a090c673
[ "MIT" ]
3
2021-09-13T21:08:12.000Z
2021-09-18T15:00:58.000Z
kanka/utils.py
rbtnx/python-kanka
74e75243094816a5d0ddc33575951749a090c673
[ "MIT" ]
2
2021-09-14T22:27:21.000Z
2022-01-07T01:35:45.000Z
""" :mod: `kanka.utils` - Helper functions """ from datetime import datetime from requests_toolbelt.sessions import BaseUrlSession from dacite import from_dict, Config from .exceptions import KankaAPIError API_BASE_ENDPOINT = 'https://kanka.io/api/1.0/' class KankaSession(BaseUrlSession): """ Store session data....
33.5875
93
0.66431
1,537
0.572013
0
0
0
0
0
0
1,349
0.502047
12276b102b462739e46f7a9646d34ec66d31bbd9
3,599
py
Python
day2/exercises/Jamila/pi_estimate/plots.py
lavjams/BI-Demo
2ff4aeb9dc71eeb1aa9e1f6510a79994c6c20ef1
[ "MIT" ]
null
null
null
day2/exercises/Jamila/pi_estimate/plots.py
lavjams/BI-Demo
2ff4aeb9dc71eeb1aa9e1f6510a79994c6c20ef1
[ "MIT" ]
null
null
null
day2/exercises/Jamila/pi_estimate/plots.py
lavjams/BI-Demo
2ff4aeb9dc71eeb1aa9e1f6510a79994c6c20ef1
[ "MIT" ]
null
null
null
###### ###BACKGROUND #Below Section: Imports necessary functions import numpy as np import matplotlib.pyplot as graph import random as rand import time as watch import sims pi = np.pi ###### ###PLOTS #FUNCTION: drawdarts #PURPOSE: This function is meant to draw the darts for a given simulation within the unit square....
33.635514
107
0.734371
0
0
0
0
0
0
0
0
1,951
0.542095
122a8bcfb8def21ca6542908e7ec0138c02aea09
1,803
py
Python
scripts/animate_demo.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
23
2015-08-25T19:40:18.000Z
2020-12-27T09:23:06.000Z
scripts/animate_demo.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
null
null
null
scripts/animate_demo.py
wjchen84/rapprentice
9232a6a21e2c80f00854912f07dcdc725b0be95a
[ "BSD-2-Clause" ]
8
2016-05-18T20:13:06.000Z
2020-11-03T16:09:50.000Z
#!/usr/bin/env python """ Animate demonstration trajectory """ import argparse parser = argparse.ArgumentParser() parser.add_argument("h5file") parser.add_argument("--seg") parser.add_argument("--nopause", action="store_true") args = parser.parse_args() import h5py, openravepy,trajoptpy from rapprentice import ani...
24.04
91
0.661675
0
0
0
0
0
0
0
0
196
0.108708
122ae92db8c0fba7f33754fcbab35f9e25571cce
1,032
py
Python
rsp2/src/python/rsp2/io/structure_dir.py
colin-daniels/agnr-ml
fc936cb8b6a68c37dfaf64c74796e0cf795c1bb8
[ "MIT" ]
null
null
null
rsp2/src/python/rsp2/io/structure_dir.py
colin-daniels/agnr-ml
fc936cb8b6a68c37dfaf64c74796e0cf795c1bb8
[ "MIT" ]
null
null
null
rsp2/src/python/rsp2/io/structure_dir.py
colin-daniels/agnr-ml
fc936cb8b6a68c37dfaf64c74796e0cf795c1bb8
[ "MIT" ]
null
null
null
import json import os from pymatgen.io.vasp import Poscar def from_path(path): # TODO: should maybe support .tar.gz or .tar.xz return StructureDir.from_dir(path) class StructureDir: def __init__(self, *, layers, masses, layer_sc_matrices, structure): self.layers = layers self.masses = mass...
32.25
102
0.643411
859
0.832364
0
0
617
0.597868
0
0
128
0.124031
122bf0e224108c95adcbb96cb64e305c57af3a8b
891
py
Python
scripts/generate_mapping_summary.py
BleekerLab/snakemake_rnaseq
1b9db81ca82a3f3df5978c87f8ef76bfea00f584
[ "MIT" ]
4
2020-06-26T08:59:07.000Z
2022-02-02T15:24:25.000Z
scripts/generate_mapping_summary.py
BleekerLab/snakemake_rnaseq
1b9db81ca82a3f3df5978c87f8ef76bfea00f584
[ "MIT" ]
11
2020-07-28T07:40:26.000Z
2021-08-05T07:52:00.000Z
scripts/generate_mapping_summary.py
BleekerLab/snakemake_rnaseq
1b9db81ca82a3f3df5978c87f8ef76bfea00f584
[ "MIT" ]
3
2020-10-30T14:09:19.000Z
2022-02-02T15:16:41.000Z
#!/usr/bin/env python # coding: utf-8 import pandas as pd import os from functools import reduce import sys directory_with_mapping_reports = sys.argv[1] mapping_summary = sys.argv[2] ############################################################ # Reads each file. Add sample name in the column with values ###########...
24.75
134
0.641975
0
0
0
0
0
0
0
0
285
0.319865
122e92d89d689afb07f2870e5616b184ec228c74
74
py
Python
Chapter2_Python/fStrings.py
dependencyInversion/UdemyML
9e1a0a01688a82c61ef006a592a58c12fb186552
[ "MIT" ]
null
null
null
Chapter2_Python/fStrings.py
dependencyInversion/UdemyML
9e1a0a01688a82c61ef006a592a58c12fb186552
[ "MIT" ]
null
null
null
Chapter2_Python/fStrings.py
dependencyInversion/UdemyML
9e1a0a01688a82c61ef006a592a58c12fb186552
[ "MIT" ]
null
null
null
my_name = "Jan" my_age = 23 print(f"Age: { my_age }, Name: { my_name }")
14.8
44
0.594595
0
0
0
0
0
0
0
0
42
0.567568
122f641d2932f57d9055b11d54666d81eb9d402f
1,140
py
Python
src/models/predict_text_model.py
eyosyaswd/disaster-response
836f40119e0795d35747c0fd3f975e7a13e46258
[ "RSA-MD" ]
null
null
null
src/models/predict_text_model.py
eyosyaswd/disaster-response
836f40119e0795d35747c0fd3f975e7a13e46258
[ "RSA-MD" ]
null
null
null
src/models/predict_text_model.py
eyosyaswd/disaster-response
836f40119e0795d35747c0fd3f975e7a13e46258
[ "RSA-MD" ]
null
null
null
from ast import literal_eval from performance_metrics import get_performance_metrics from tensorflow.keras.models import load_model import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1' # Ignore tf info messages import pandas as pd if __name__ == "__main__": TASK = "humanitarian" print("\nLoading in testing...
29.230769
80
0.710526
0
0
0
0
0
0
0
0
486
0.426316
122fc0c14857deefada9ab37db5cbbaade40f9f1
9,795
py
Python
pygsti/tools/lindbladtools.py
pyGSTi-Developers/pyGSTi
bfedc1de4d604f14b0f958615776fb80ddb59e33
[ "Apache-2.0" ]
null
null
null
pygsti/tools/lindbladtools.py
pyGSTi-Developers/pyGSTi
bfedc1de4d604f14b0f958615776fb80ddb59e33
[ "Apache-2.0" ]
null
null
null
pygsti/tools/lindbladtools.py
pyGSTi-Developers/pyGSTi
bfedc1de4d604f14b0f958615776fb80ddb59e33
[ "Apache-2.0" ]
null
null
null
""" Utility functions relevant to Lindblad forms and projections """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the ...
42.038627
112
0.611434
0
0
0
0
0
0
0
0
6,008
0.613374
1230448ffec588d42b768d0919ac0104f451a382
1,490
py
Python
quality_dataset.py
Phoenix-Chen/butterflies
06abf393c69f7a7c54d4e8a8775de81de7908285
[ "MIT" ]
45
2019-12-26T10:36:47.000Z
2022-03-30T12:17:45.000Z
quality_dataset.py
Phoenix-Chen/butterflies
06abf393c69f7a7c54d4e8a8775de81de7908285
[ "MIT" ]
1
2022-02-04T02:54:05.000Z
2022-02-04T02:54:05.000Z
quality_dataset.py
Phoenix-Chen/butterflies
06abf393c69f7a7c54d4e8a8775de81de7908285
[ "MIT" ]
8
2019-12-27T08:51:40.000Z
2022-02-04T01:29:23.000Z
import torch from torch.utils.data import Dataset import numpy as np import csv import random from config import * import itertools import torch from skimage import io import os class QualityDataset(Dataset): def __init__(self, return_hashes=False): self.label_count = 3 file = open(QUALITY_DATA_FIL...
32.391304
107
0.631544
1,311
0.879866
0
0
0
0
0
0
111
0.074497
12313e062dbc6cb84fe76bc3653621f0ba161998
40
py
Python
tests/components/geofency/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/geofency/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/geofency/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the Geofency component."""
20
39
0.7
0
0
0
0
0
0
0
0
39
0.975
12329373ceaaf62c2595b60a93477f6c3c56faed
5,564
py
Python
examples/nn_opt.py
jjakimoto/BBoptimizer
fcc58393905ee72184ad3759ea444bc52b9a3a2d
[ "MIT" ]
1
2019-01-28T00:16:55.000Z
2019-01-28T00:16:55.000Z
examples/nn_opt.py
jjakimoto/BBoptimizer
fcc58393905ee72184ad3759ea444bc52b9a3a2d
[ "MIT" ]
null
null
null
examples/nn_opt.py
jjakimoto/BBoptimizer
fcc58393905ee72184ad3759ea444bc52b9a3a2d
[ "MIT" ]
1
2019-11-05T00:56:12.000Z
2019-11-05T00:56:12.000Z
from sklearn.preprocessing import OneHotEncoder import numpy as np import tensorflow as tf from keras.models import Sequential from keras.layers import Dense, BatchNormalization, Dropout from keras.layers import Activation, Reshape from keras.optimizers import Adam, Adadelta, SGD, RMSprop from keras.regularizers import...
33.518072
92
0.608735
0
0
0
0
0
0
0
0
1,749
0.314342
1234396a6bb8250f31699a3c56eb0bb2cef11b8c
1,070
py
Python
tests/library/register_expansion_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
1
2022-03-11T13:36:34.000Z
2022-03-11T13:36:34.000Z
tests/library/register_expansion_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
null
null
null
tests/library/register_expansion_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import dace.library from dace.transformation import transformation as xf import pytest @dace.library.node class MyLibNode(dace.nodes.LibraryNode): implementations = {} default_implementation = 'pure' def __init__(self...
26.75
89
0.696262
450
0.420561
0
0
525
0.490654
0
0
234
0.218692
1234bf219e24ad436242f38b48011626c907f01c
2,390
py
Python
utils/db_manipulate.py
DSSG-EUROPE/wef_oceans
53121808b0191015f6808ac5d57c2bf433f55b57
[ "MIT" ]
3
2018-11-09T16:18:04.000Z
2019-04-08T06:43:49.000Z
utils/db_manipulate.py
DSSG-EUROPE/wef_oceans
53121808b0191015f6808ac5d57c2bf433f55b57
[ "MIT" ]
null
null
null
utils/db_manipulate.py
DSSG-EUROPE/wef_oceans
53121808b0191015f6808ac5d57c2bf433f55b57
[ "MIT" ]
1
2020-06-20T12:28:45.000Z
2020-06-20T12:28:45.000Z
""" Functions to manipulate data from PostgreSQL database includes a parallelise dataframe that runs a function on a pandas data frame in parallel, as well as a loop_chunks function. This reads a chunk from the database performs an operation and uploads to a new table in the database. """ import numpy as np import pa...
33.194444
81
0.702929
0
0
0
0
0
0
0
0
1,229
0.514226
123588ad730aafa13b29dfb9d8148d8bd7ecbc3e
4,633
py
Python
dialogue-engine/test/programytest/mappings/test_properties.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
104
2020-03-30T09:40:00.000Z
2022-03-06T22:34:25.000Z
dialogue-engine/test/programytest/mappings/test_properties.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
25
2020-06-12T01:36:35.000Z
2022-02-19T07:30:44.000Z
dialogue-engine/test/programytest/mappings/test_properties.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
10
2020-04-02T23:43:56.000Z
2021-05-14T13:47:01.000Z
""" Copyright (c) 2020 COTOBA DESIGN, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
44.980583
154
0.725448
3,208
0.692424
0
0
0
0
0
0
1,397
0.301532
1235cfb823eaf0316261db4734ea4c699278e3e7
2,006
py
Python
arango/mixins.py
joymax/arango-python
7bdb8a1a0fa0a4bd00a71e27a5b48e0b9dd7b465
[ "ISC" ]
6
2015-07-26T20:25:04.000Z
2020-05-04T17:43:01.000Z
arango/mixins.py
appscluster/arango-python
280a6e18ebeff22e4e991acd8957d9372fffe4b5
[ "0BSD" ]
1
2015-03-18T10:40:52.000Z
2015-03-18T10:40:52.000Z
arango/mixins.py
appscluster/arango-python
280a6e18ebeff22e4e991acd8957d9372fffe4b5
[ "0BSD" ]
6
2015-02-11T18:27:47.000Z
2020-08-04T07:30:08.000Z
__all__ = ("ComparsionMixin", "LazyLoadMixin") class ComparsionMixin(object): """ Mixin to help compare two instances """ def __eq__(self, other): """ Compare two items """ if not issubclass(type(other), self.__class__): return False if (self.bod...
29.5
78
0.584247
1,951
0.972582
0
0
0
0
0
0
736
0.366899
12363f66dfb844f667ebb8ec1017ade26b9cd03a
237
py
Python
gherkin_to_markdown/expressions/second_header_expression.py
LeandreArseneault/gherkin_to_markdown
157a6a7ba5b7f1f3a159bc163bf1b1187401243a
[ "MIT" ]
6
2022-02-14T22:10:50.000Z
2022-03-10T20:42:29.000Z
gherkin_to_markdown/expressions/second_header_expression.py
LeandreArseneault/gherkin_to_markdown
157a6a7ba5b7f1f3a159bc163bf1b1187401243a
[ "MIT" ]
null
null
null
gherkin_to_markdown/expressions/second_header_expression.py
LeandreArseneault/gherkin_to_markdown
157a6a7ba5b7f1f3a159bc163bf1b1187401243a
[ "MIT" ]
null
null
null
from gherkin_to_markdown.expressions.expression import Expression class SecondHeaderExpression(Expression): def to_markdown(self, statement: str): return f"##{statement.strip().replace(':', '', 1)[len(self.keyword):]}\n\n"
33.857143
83
0.725738
168
0.708861
0
0
0
0
0
0
68
0.28692
123715b12a5b1cf1e72dca351d0afec4057e4c1c
1,965
py
Python
deephub/resources/__init__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
8
2019-10-17T12:46:13.000Z
2020-03-12T08:09:40.000Z
deephub/resources/__init__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
12
2019-10-22T13:11:56.000Z
2022-02-10T00:23:30.000Z
deephub/resources/__init__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
1
2019-10-17T13:21:27.000Z
2019-10-17T13:21:27.000Z
from __future__ import unicode_literals from __future__ import absolute_import import os from pathlib import Path class ResourceNotFound(OSError): pass DEFAULT_USER_RESOURCES_DIRECTORY = 'runtime_resources' _default_package_dir = Path(__file__).resolve().parent / 'blobs' _user_resources_dir = Path(os.getcwd(...
26.554054
116
0.711959
41
0.020865
0
0
0
0
0
0
719
0.365903
12376f57cbbdd06f4b31de54e8c71b1b3af17063
7,334
py
Python
kaggle-lung-cancer-approach2/modules/ImagePreprocessing3d.py
flaviostutz/datascience-snippets
768083c4eda972bc1f6548baa86751e0405bda9b
[ "MIT" ]
2
2017-06-05T17:25:55.000Z
2018-02-04T04:01:13.000Z
kaggle-lung-cancer-approach2/modules/ImagePreprocessing3d.py
flaviostutz/datascience-snippets
768083c4eda972bc1f6548baa86751e0405bda9b
[ "MIT" ]
null
null
null
kaggle-lung-cancer-approach2/modules/ImagePreprocessing3d.py
flaviostutz/datascience-snippets
768083c4eda972bc1f6548baa86751e0405bda9b
[ "MIT" ]
null
null
null
from tflearn.data_preprocessing import DataPreprocessing import numpy as np import random class ImagePreprocessing3d(DataPreprocessing): """ Image Preprocessing. Base class for applying real-time image related pre-processing. This class is meant to be used as an argument of `input_data`. When training ...
38.197917
95
0.559176
7,243
0.987592
0
0
0
0
0
0
3,113
0.424461
1238f5782c007b0342cf7631189d532a4f5471d2
640
py
Python
rpicamera/usepygame.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
rpicamera/usepygame.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
rpicamera/usepygame.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
import pygame import pygame.camera #from pygame.locals import * pygame.init() pygame.camera.init() screen = pygame.display.set_mode((640, 480), 0) def main(): camlist = pygame.camera.list_cameras() if camlist: print('camera {} is detected'.format(camlist[0])) cam = pygame.camera.Camera(camlis...
22.857143
58
0.590625
0
0
0
0
0
0
0
0
101
0.157813
123bccff69a049fadbfe73510677148e9ddcb731
1,210
py
Python
AI502/ScAI/lstm.py
sungnyun/AI-assignments
6451fd6db33fd8671ca362b4ad4c190979a98c22
[ "MIT" ]
null
null
null
AI502/ScAI/lstm.py
sungnyun/AI-assignments
6451fd6db33fd8671ca362b4ad4c190979a98c22
[ "MIT" ]
null
null
null
AI502/ScAI/lstm.py
sungnyun/AI-assignments
6451fd6db33fd8671ca362b4ad4c190979a98c22
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import torch.nn as nn class SimpleRNN(nn.Module): def __init__(self, num_features, name='LSTM', seq_length=100, hidden_size=128): super(SimpleRNN, self).__init__() self.num_features = num_features self.seq_length = seq_length self.h...
28.139535
134
0.591736
1,120
0.92562
0
0
0
0
0
0
329
0.271901
123cdad2272e052e427dddd3ee2cb08bee5b4d82
573
py
Python
dracoon/public_models.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
3
2020-10-05T14:34:46.000Z
2020-11-27T07:44:57.000Z
dracoon/public_models.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2022-02-15T16:01:12.000Z
2022-02-15T16:01:12.000Z
dracoon/public_models.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2021-03-04T08:16:07.000Z
2021-03-04T08:16:07.000Z
from dataclasses import dataclass from typing import List @dataclass class SystemInfo: languageDefault: str hideLoginPinputFields: bool s3Hosts: List[str] s3EnforceDirectUpload: bool useS3Storage: bool @dataclass class ActiveDirectoryInfoItem: id: int alias: str isGlobalAvailable: bool...
17.363636
40
0.743455
445
0.776614
0
0
504
0.879581
0
0
0
0
123e85539b0232e897726505c073ee908b36655f
3,315
py
Python
col_validation.py
scouvreur/pyspark-rdd-csv-parser
59fa9ee5202ebb10c05b14d638234036e5139332
[ "Apache-2.0" ]
null
null
null
col_validation.py
scouvreur/pyspark-rdd-csv-parser
59fa9ee5202ebb10c05b14d638234036e5139332
[ "Apache-2.0" ]
null
null
null
col_validation.py
scouvreur/pyspark-rdd-csv-parser
59fa9ee5202ebb10c05b14d638234036e5139332
[ "Apache-2.0" ]
null
null
null
import csv import codecs import StringIO import cStringIO import sys import time import argparse from pyspark import SparkContext parser = argparse.ArgumentParser(description='Count columns and lines existing in file') parser.add_argument('-df','--DATAFILE', dest="DATAFILE", type=str, help='the pat...
33.15
115
0.634389
1,130
0.340875
394
0.118854
0
0
0
0
761
0.229563
123fd7b7b9f4d286bd20d4bce4dab814f4d0a36c
254
py
Python
Fibonacci.py
Eziowrf/project555
a8c883b55186f59d7fe1d953c404522a17985f98
[ "MIT" ]
1
2019-07-21T06:05:09.000Z
2019-07-21T06:05:09.000Z
Fibonacci.py
Eziowrf/project555
a8c883b55186f59d7fe1d953c404522a17985f98
[ "MIT" ]
5
2018-09-21T01:15:26.000Z
2018-09-26T18:37:32.000Z
Fibonacci.py
Eziowrf/project555
a8c883b55186f59d7fe1d953c404522a17985f98
[ "MIT" ]
1
2018-09-23T15:57:26.000Z
2018-09-23T15:57:26.000Z
# Yunfan Ye 10423172 def Fibonacci(n): if n == 1: return 1 elif n == 2: return 1 else: return Fibonacci(n - 1) + Fibonacci(n - 2) # arr = [1,2,3,4,5,6,7,8,9,10] # for i in arr: # print(Fibonacci(i))
19.538462
51
0.484252
0
0
0
0
0
0
0
0
96
0.377953
1242151ef65549586db3bf65bc0bd27cfd616b7b
9,415
py
Python
seek/dbtable_content_blobs.py
BMCBCC/NExtSEEK
7aca407bbc74efc5beb4a98227c6864444b11f61
[ "MIT" ]
null
null
null
seek/dbtable_content_blobs.py
BMCBCC/NExtSEEK
7aca407bbc74efc5beb4a98227c6864444b11f61
[ "MIT" ]
null
null
null
seek/dbtable_content_blobs.py
BMCBCC/NExtSEEK
7aca407bbc74efc5beb4a98227c6864444b11f61
[ "MIT" ]
null
null
null
''' Created on July 12, 2016 @author: Huiming Ding Email: huiming@mit.edu Description: This script is implemented for the Content_blobs database/table. Input: No typical input to define. Output: No typical output to define. Example command line: Log of changes: ''' #!/usr/bin/env pytho...
34.613971
101
0.585024
8,295
0.881041
0
0
0
0
0
0
5,085
0.540096