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
cf938a4c23d460c727e0aec9347ad4f5e6ef02f9
6,373
py
Python
test/test_oscope_tf.py
alexisboukouvalas/OscoNet
f100d1ccfe8f7dad050a3082773a4b6383a4994a
[ "MIT" ]
1
2020-09-03T10:00:44.000Z
2020-09-03T10:00:44.000Z
test/test_oscope_tf.py
alexisboukouvalas/OscoNet
f100d1ccfe8f7dad050a3082773a4b6383a4994a
[ "MIT" ]
1
2022-02-10T02:22:05.000Z
2022-02-10T02:22:05.000Z
test/test_oscope_tf.py
alexisboukouvalas/OscoNet
f100d1ccfe8f7dad050a3082773a4b6383a4994a
[ "MIT" ]
1
2019-09-25T16:44:30.000Z
2019-09-25T16:44:30.000Z
""" TensorFlow 2 OscoNet code """ import numpy as np import pytest import tensorflow as tf from OscopeBootstrap import qvalue from OscopeBootstrap.create_edge_network_represention import create_edge_network_representation from OscopeBootstrap.oscope_tf import PRECISION_fp, calc_e2, calc_e2_many_genes, find_best_psi_fo...
40.852564
133
0.672682
0
0
0
0
1,515
0.237722
0
0
861
0.135101
cf9459db5ea16ef4050b20b3369b43e59a337980
127
py
Python
instaapp/tests.py
martinmandina/InstagramApp
89ab7b8e0b85d49f220fec3c55327dedea9f1b47
[ "MIT" ]
null
null
null
instaapp/tests.py
martinmandina/InstagramApp
89ab7b8e0b85d49f220fec3c55327dedea9f1b47
[ "MIT" ]
null
null
null
instaapp/tests.py
martinmandina/InstagramApp
89ab7b8e0b85d49f220fec3c55327dedea9f1b47
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import Profile,Image,Comments import datetime as dt # Create your tests here.
15.875
42
0.795276
0
0
0
0
0
0
0
0
25
0.19685
cf95eb4bdfd3378b91c202518528f3335389e6e3
370
py
Python
texts/objects/cache/base.py
nicolay-r/frame-based-attitude-extraction-workflow
f20e6d17a9eb6613028545b889c74626a8260ccd
[ "MIT" ]
null
null
null
texts/objects/cache/base.py
nicolay-r/frame-based-attitude-extraction-workflow
f20e6d17a9eb6613028545b889c74626a8260ccd
[ "MIT" ]
6
2020-10-03T13:45:38.000Z
2021-07-13T18:31:57.000Z
texts/objects/cache/base.py
nicolay-r/frame-based-attitude-extraction-workflow
f20e6d17a9eb6613028545b889c74626a8260ccd
[ "MIT" ]
null
null
null
from texts.text_info import NewsSentenceInfo class BaseObjectCache: """ Base Cache for NER data (API). """ TITLE_SENT_IND = NewsSentenceInfo.TITLE_SENT_IND def __init__(self): pass def is_news_registered(self, news_id): raise NotImplementedError() def try_get(self, file...
19.473684
52
0.681081
322
0.87027
0
0
0
0
0
0
46
0.124324
cf96ec46a9f75ae061cfdda9d111b67ea90fbbf5
458
py
Python
LC/9.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/9.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/9.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ if x<0: return False a=x b=0 while(a!=0): # 1. get last digit of a and add to b, b=b*10+lastdigit b=b*10+a%10 ...
24.105263
67
0.423581
458
1
0
0
0
0
0
0
166
0.362445
cf9753a080d8359212476544e2f2019880886fa3
1,451
py
Python
children/tests/snapshots/snap_test_notifications.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
null
null
null
children/tests/snapshots/snap_test_notifications.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
157
2019-10-08T07:58:59.000Z
2022-03-20T23:00:17.000Z
children/tests/snapshots/snap_test_notifications.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
3
2019-10-07T12:06:26.000Z
2022-01-25T14:03:14.000Z
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots["test_signup_notification 1"] = [ """kukkuu@example.com|['michellewalker@example.net']|SIGNUP-notifikaation aihe| SIGNUP-notifikaation sisä...
40.305556
85
0.751206
0
0
0
0
0
0
0
0
1,260
0.864791
cf976cb08811d9daaefe1b3400c3ef25e10128c3
1,918
py
Python
live.py
ardamavi/Vocalize-Sign-Language
b00ce8c2a54f7f333ba8b3612567448281abfc61
[ "Apache-2.0" ]
65
2017-06-10T19:34:42.000Z
2022-03-15T06:47:29.000Z
live.py
sygops/Vocalize-Sign-Language
b19f6251e48478193c3a8001966edf2d421e8281
[ "Apache-2.0" ]
1
2021-09-08T04:04:55.000Z
2021-09-09T03:24:37.000Z
live.py
sygops/Vocalize-Sign-Language
b19f6251e48478193c3a8001966edf2d421e8281
[ "Apache-2.0" ]
25
2018-01-08T15:02:05.000Z
2021-11-16T16:31:42.000Z
# Arda Mavi import os import cv2 import platform import numpy as np from predict import predict from scipy.misc import imresize from multiprocessing import Process from keras.models import model_from_json img_size = 64 channel_size = 1 def main(): # Getting model: model_file = open('Data/Model/model.json', 'r...
30.935484
101
0.618874
0
0
0
0
0
0
0
0
414
0.21585
cf9c1389b641f423d0d37afccaff7445dbc77a66
1,028
py
Python
examples/webhook/server.py
Alma-field/twitcaspy
25f3e850f2d5aab8a864bd6b7003468587fa3ea7
[ "MIT" ]
null
null
null
examples/webhook/server.py
Alma-field/twitcaspy
25f3e850f2d5aab8a864bd6b7003468587fa3ea7
[ "MIT" ]
18
2021-10-01T13:40:01.000Z
2021-10-18T12:34:57.000Z
examples/webhook/server.py
Alma-field/twitcaspy
25f3e850f2d5aab8a864bd6b7003468587fa3ea7
[ "MIT" ]
null
null
null
# Twitcaspy # Copyright 2021 Alma-field # See LICENSE for details. # Before running this code, run the following command: # このコードを実行する前に、以下のコマンドを実行してください。 # pip install twitcaspy[webhook] from flask import Flask, request, make_response, jsonify, abort app = Flask(__name__) from twitcaspy import api, TwitcaspyExcepti...
31.151515
63
0.678988
0
0
0
0
368
0.338235
0
0
524
0.481618
cf9d43beea070a2999be037ff5c098b3a4dc9ef5
1,173
py
Python
18-04-18-REST APIs with Flask and Python/Section 6 - Simplifying storage with Flask-SQLAlchemy/1_Improving code structure/models/user.py
maraboinavamshi/courses
48f255ffb1903ba20865c2b91b488758d5cb1a09
[ "Apache-2.0" ]
15
2017-09-19T08:09:01.000Z
2019-04-29T00:37:51.000Z
18-04-18-REST APIs with Flask and Python/Section 6 - Simplifying storage with Flask-SQLAlchemy/1_Improving code structure/models/user.py
chitrita/Courses-1
7713267ee5c92e488086588ac41490c44b4f7350
[ "Apache-2.0" ]
null
null
null
18-04-18-REST APIs with Flask and Python/Section 6 - Simplifying storage with Flask-SQLAlchemy/1_Improving code structure/models/user.py
chitrita/Courses-1
7713267ee5c92e488086588ac41490c44b4f7350
[ "Apache-2.0" ]
17
2018-02-27T03:15:54.000Z
2019-04-24T09:26:46.000Z
import sqlite3 class UserModel: def __init__(self, _id, username, password): self.id = _id self.username = username self.password = password @classmethod def find_by_username(cls, username): connection = sqlite3.connect('data.db') cursor = connection.cursor() query = "SELECT * FROM users WHERE userna...
23.938776
60
0.680307
1,156
0.985507
0
0
1,018
0.86786
0
0
412
0.351236
cf9db563a203c43bbc7c0bac94e9bc037f070989
7,814
py
Python
SK_Net_Plus.py
xingshulicc/Channel_Attention_Selection
c51b8de34ddfe5d6a88dd3ab5e846930f53e7476
[ "MIT" ]
2
2020-10-26T06:44:29.000Z
2020-10-31T06:06:59.000Z
SK_Net_Plus.py
xingshulicc/Channel_Attention_Selection
c51b8de34ddfe5d6a88dd3ab5e846930f53e7476
[ "MIT" ]
null
null
null
SK_Net_Plus.py
xingshulicc/Channel_Attention_Selection
c51b8de34ddfe5d6a88dd3ab5e846930f53e7476
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function """ Created on Fri Oct 23 13:31:34 2020 @author: Admin """ from keras.layers import Input from keras.layers import Conv2D from keras.layers import BatchNormalization from keras.layers import Activation from keras.layers import MaxPooling2D from ...
39.664975
106
0.579473
0
0
0
0
0
0
0
0
1,478
0.189148
cfa0c9cdefacf9cd6963bf8494c977ebb9d0cbfc
1,386
py
Python
examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
# isort: skip_file from .partitioned_job import my_partitioned_config from dagster import HourlyPartitionsDefinition # start_marker from dagster import build_schedule_from_partitioned_job, job @job(config=my_partitioned_config) def do_stuff_partitioned(): ... do_stuff_partitioned_schedule = build_schedule_fro...
21
87
0.786436
0
0
312
0.225108
494
0.356421
0
0
278
0.200577
cfa10d23c5f1725d917e3366e959b9010799603e
267
py
Python
annotator/admin.py
fossabot/django-annotator
1151c7628dade8b600719e3653a79e1c53b16340
[ "Apache-2.0" ]
11
2017-02-21T11:31:10.000Z
2019-06-19T08:44:15.000Z
annotator/admin.py
fossabot/django-annotator
1151c7628dade8b600719e3653a79e1c53b16340
[ "Apache-2.0" ]
5
2017-02-21T18:31:44.000Z
2020-03-06T09:10:40.000Z
annotator/admin.py
fossabot/django-annotator
1151c7628dade8b600719e3653a79e1c53b16340
[ "Apache-2.0" ]
5
2017-03-27T18:45:41.000Z
2020-03-06T09:11:18.000Z
from django.apps import apps from django.contrib import admin from django.contrib.admin.sites import AlreadyRegistered for model in apps.get_app_config("annotator").get_models(): try: admin.site.register(model) except AlreadyRegistered: pass
26.7
59
0.752809
0
0
0
0
0
0
0
0
11
0.041199
cfa4150c13a90de6b3895ea197f143bf9acae07d
834
py
Python
drivers/firmata.py
prozum/embug
dbb84a2f17229725a209a1cd8f99906f34948058
[ "MIT" ]
null
null
null
drivers/firmata.py
prozum/embug
dbb84a2f17229725a209a1cd8f99906f34948058
[ "MIT" ]
null
null
null
drivers/firmata.py
prozum/embug
dbb84a2f17229725a209a1cd8f99906f34948058
[ "MIT" ]
null
null
null
import pyfirmata dPins = range(14) aPins = range(18,24) A0,A1,A2,A3,A4,A5 = aPins HIGH,OUT = (1,1) LOW,IN = (0,0) class Driver(): def __init__(self,device): self.board = pyfirmata.Arduino(device) # Setup Analog Pins it = pyfirmata.util.Iterator(self.board) it.start() ...
18.533333
62
0.558753
713
0.854916
0
0
0
0
0
0
32
0.038369
cfa4f9c3c47163b8357b553409d94c4c1cf0c0a0
1,019
py
Python
src/contnext_viewer/graph.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
3
2022-01-14T11:56:08.000Z
2022-01-14T12:36:42.000Z
src/contnext_viewer/graph.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
null
null
null
src/contnext_viewer/graph.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from contnext_viewer.models import Network, engine from sqlalchemy.orm import sessionmaker def create_json_file(id, node): # Start database session Session = sessionmaker(bind=engine) sqlsession = Session() try: g = [each.data for each in sqlsession.query(Network).filter(Network.identif...
37.740741
112
0.68106
0
0
0
0
0
0
0
0
167
0.163886
cfa6145bbf7350ea98ed17dde42977836a1d405b
8,302
py
Python
crystals/affine.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
crystals/affine.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
crystals/affine.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Linear algebra operations and helpers. Inspired by Christoph Gohlke's transformation.py <http://www.lfd.uci.edu/~gohlke/> This module is not directly exported by the `crystals` library. Use it with caution. """ import math import numpy as np # standard basis e1, e2, e3 = np.eye(3) def...
26.694534
86
0.63298
0
0
0
0
0
0
0
0
4,839
0.582872
cfa6ad3ae4dd2b7b0f171c22b61ad5f626a27dd6
675
py
Python
app/common/models.py
chaos-soft/velvet
71edabaa6e25308e76af82b76eb62c159d2b3368
[ "MIT" ]
null
null
null
app/common/models.py
chaos-soft/velvet
71edabaa6e25308e76af82b76eb62c159d2b3368
[ "MIT" ]
null
null
null
app/common/models.py
chaos-soft/velvet
71edabaa6e25308e76af82b76eb62c159d2b3368
[ "MIT" ]
null
null
null
import json from django.db import models class JSONEncoder(json.JSONEncoder): def __init__(self, *args, **kwargs): kwargs['ensure_ascii'] = False super().__init__(*args, **kwargs) class Document(models.Model): document = models.JSONField(encoder=JSONEncoder, default=dict) images = None ...
24.107143
66
0.567407
627
0.928889
0
0
0
0
0
0
14
0.020741
cfa6f22885e002c32f2bb0a0900115dab7f6b69c
4,194
py
Python
malas/program_supplementals.py
destrianto/malas
46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9
[ "MIT" ]
null
null
null
malas/program_supplementals.py
destrianto/malas
46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9
[ "MIT" ]
null
null
null
malas/program_supplementals.py
destrianto/malas
46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9
[ "MIT" ]
null
null
null
import sys import getpass import subprocess import pkg_resources def enter_key_only(): # Expect the user to press Enter key and suppress the output getpass.getpass("") def enter_key_confirmation(): print("Press \'Enter\' to continue or \'CTRL+C\' to abort the program", end="", flush=True) #...
42.363636
205
0.669766
0
0
0
0
0
0
0
0
1,895
0.451836
cfa6f7d12ac60700054deb918bc90c4c2c0ba1fc
25,987
py
Python
wsgi/iportalen_django/events/views.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
4
2016-09-21T17:06:01.000Z
2018-02-06T16:36:44.000Z
wsgi/iportalen_django/events/views.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
149
2016-03-07T23:50:47.000Z
2022-03-11T23:16:33.000Z
wsgi/iportalen_django/events/views.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
1
2016-03-07T23:02:06.000Z
2016-03-07T23:02:06.000Z
from django.core.mail import send_mail from django.core.urlresolvers import reverse from django.db.models import Q from django.http.response import JsonResponse from django.shortcuts import render, get_object_or_404, redirect from django.forms import modelformset_factory from django.contrib.auth.decorators import login...
41.118671
248
0.588833
0
0
0
0
21,267
0.816172
0
0
4,949
0.18993
cfa89d2739c826f494098053f56652fab2675cda
411
py
Python
loop_count_sum_average.py
bclead3/python_for_everyone
ccf72c335fe1e9b6419ccb34fc091c9520a69e5c
[ "MIT" ]
null
null
null
loop_count_sum_average.py
bclead3/python_for_everyone
ccf72c335fe1e9b6419ccb34fc091c9520a69e5c
[ "MIT" ]
null
null
null
loop_count_sum_average.py
bclead3/python_for_everyone
ccf72c335fe1e9b6419ccb34fc091c9520a69e5c
[ "MIT" ]
null
null
null
intNum = 0 fltTotal = 0.0 while True: strVal = input('Enter a number: ') if strVal == 'done': break try: fltVal = float(strVal) intNum += 1 fltTotal += fltVal except ValueError: print('Invalid Input value, continuing...') continue print("The number of ...
21.631579
111
0.586375
0
0
0
0
0
0
0
0
120
0.291971
cfaad53b73796070da96bc425bbb924627d94d3e
66,608
py
Python
direfl/api/invert.py
TUM-E21-ThinFilms/direfl
ef60610b1653ab1a93840ec481a0eed3242fcfcc
[ "MIT" ]
null
null
null
direfl/api/invert.py
TUM-E21-ThinFilms/direfl
ef60610b1653ab1a93840ec481a0eed3242fcfcc
[ "MIT" ]
null
null
null
direfl/api/invert.py
TUM-E21-ThinFilms/direfl
ef60610b1653ab1a93840ec481a0eed3242fcfcc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This program is public domain # # Phase inversion author: Norm Berk # Translated from Mathematica by Paul Kienzle # # Phase reconstruction author: Charles Majkrzak # Converted from Fortran by Paul Kienzle # # Reflectivity calculation author: Paul Kienzle # # The National Institute of Standards ...
38.952047
90
0.563191
41,785
0.627327
0
0
0
0
0
0
39,133
0.587512
cfab26c2310626960a9eb1bcfe2663950cbe8982
1,429
py
Python
JupiterMag/Tools/TestTrace.py
mattkjames7/JupiterMag
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
[ "MIT" ]
null
null
null
JupiterMag/Tools/TestTrace.py
mattkjames7/JupiterMag
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
[ "MIT" ]
null
null
null
JupiterMag/Tools/TestTrace.py
mattkjames7/JupiterMag
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def TestTrace(IntModel='jrm33',ExtModel='Con2020',fig=None,maps=[1,1,0,0],color='green'): from ..TraceField import TraceField from ..Con2020 import Config #set the starting coords n = 7 x = np.linspace(2.0,30.0,n) x = np.append(-x[::-1],x) y = np.zeros(n*2) ...
21.651515
89
0.6669
0
0
0
0
0
0
0
0
257
0.179846
cfab7b4d1f8932a304f458648a1dfa8880c9d0fe
146
py
Python
tests/utils.py
tobricz/Expression
3ff020fda97e8d0bc43467d64b4a9f481fc0c386
[ "MIT" ]
135
2020-11-30T02:32:32.000Z
2022-03-29T14:29:34.000Z
tests/utils.py
tobricz/Expression
3ff020fda97e8d0bc43467d64b4a9f481fc0c386
[ "MIT" ]
50
2020-11-30T02:42:33.000Z
2022-03-19T15:39:58.000Z
tests/utils.py
tobricz/Expression
3ff020fda97e8d0bc43467d64b4a9f481fc0c386
[ "MIT" ]
16
2020-12-15T17:15:36.000Z
2022-03-16T08:38:57.000Z
class CustomException(Exception): def __init__(self, message: str): self.message = message def throw(err: Exception): raise err
18.25
37
0.684932
102
0.69863
0
0
0
0
0
0
0
0
cfac305f0f7ce458aca125a8380e57d97d04bc9b
81,938
py
Python
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Callable, Optional, Tuple, List from enum import Enum, Flag, auto from threading import Thread import datetime import json import websocket class SIStatus(Enum): """ Status of operations on the OpenStuder gateway. - **SIStatus.SUCCESS**: Operation was...
48.541469
180
0.672435
81,705
0.997156
0
0
18,819
0.229674
0
0
40,721
0.496973
cfac8a3bf9b754b428774c64b5a7fb57b3b75af6
10,172
py
Python
jsb/lib/rest/client.py
NURDspace/jsonbot
400dce602700a93db80e10707c3785a0fbdfaaeb
[ "MIT" ]
1
2019-04-12T12:20:12.000Z
2019-04-12T12:20:12.000Z
jsb/lib/rest/client.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
null
null
null
jsb/lib/rest/client.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
1
2020-05-06T18:46:53.000Z
2020-05-06T18:46:53.000Z
# jsb/rest/client.py # # """ Rest Client class """ ## jsb imports from jsb.utils.url import geturl4, posturl, deleteurl, useragent from jsb.utils.generic import toenc from jsb.utils.exception import handle_exception, exceptionmsg from jsb.utils.locking import lockdec from jsb.utils.lazydict import LazyDict from jsb....
34.364865
124
0.54129
9,422
0.926268
0
0
1,408
0.138419
0
0
1,724
0.169485
cfad240cbe2de63e774a45108d8024a830541cc9
3,820
py
Python
sha.py
Jfghanimah/fpga-miner
fcf8fb4a7eed941de78b2517046cdcc7305e833d
[ "MIT" ]
1
2021-12-19T18:11:25.000Z
2021-12-19T18:11:25.000Z
sha.py
Jfghanimah/fpga-miner
fcf8fb4a7eed941de78b2517046cdcc7305e833d
[ "MIT" ]
null
null
null
sha.py
Jfghanimah/fpga-miner
fcf8fb4a7eed941de78b2517046cdcc7305e833d
[ "MIT" ]
null
null
null
import timeit W = 32 #Number of bits in word M = 1 << W FF = M - 1 #0xFFFFFFFF (for performing addition mod 2**32) #Constants from SHA256 definition K_t = (0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550...
41.978022
97
0.585602
0
0
0
0
0
0
0
0
864
0.226178
cfae1b2a8bae0b3534aa7c2f45c77338d26aaf5c
438
py
Python
exercicio42.py
shyga362/projetoPython
1efad8c234b3e728cb23cb02fc11c8e1b7887a25
[ "MIT" ]
2
2022-01-06T23:31:00.000Z
2022-01-06T23:35:49.000Z
exercicio42.py
shyga362/projetoPython
1efad8c234b3e728cb23cb02fc11c8e1b7887a25
[ "MIT" ]
null
null
null
exercicio42.py
shyga362/projetoPython
1efad8c234b3e728cb23cb02fc11c8e1b7887a25
[ "MIT" ]
null
null
null
r1 = float(input("Digite um numero: ")) r2 = float(input("Digite outro numero: ")) r3 = float(input("Digite outro numero: ")) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print("Os seguimentos acima é um triangulo", end='') if r1 == r2 == r3: print("equilatero") elif r1 != r2 != r3 != r1: ...
31.285714
58
0.577626
0
0
0
0
0
0
0
0
178
0.404545
cfae2232854c7e9cf552e892930d74771cc98a44
13,839
py
Python
tools/imports/shockabsorber/loader/loader.py
Brian151/OpenShockwave
152c9c8899a2d949b3b769ee8204a3cef8df1b13
[ "Apache-2.0" ]
49
2017-02-21T05:35:49.000Z
2022-03-24T19:49:13.000Z
tools/imports/shockabsorber/loader/loader.py
Brian151/OpenShockwave
152c9c8899a2d949b3b769ee8204a3cef8df1b13
[ "Apache-2.0" ]
17
2017-02-23T08:59:51.000Z
2019-05-10T03:02:42.000Z
tools/imports/shockabsorber/loader/loader.py
Brian151/OpenShockwave
152c9c8899a2d949b3b769ee8204a3cef8df1b13
[ "Apache-2.0" ]
11
2017-05-17T20:21:50.000Z
2021-12-14T19:01:41.000Z
#### Purpose: # Parse D*R files. # Individual envelope formats are handled elsewhere (dxr_envelope etc.). import struct from shockabsorber.model.sections import Section, SectionMap, AssociationTable from shockabsorber.model.cast import CastLibrary, CastLibraryTable from shockabsorber.model.movie import Movie from sho...
39.315341
160
0.61146
4,855
0.35082
0
0
2,432
0.175735
0
0
2,525
0.182455
cfae41573fd81ac1730a5949ff6705e491a3cd0f
6,976
py
Python
flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: parse_bpmnxml.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protob...
50.18705
821
0.820384
0
0
0
0
0
0
0
0
1,889
0.270786
cfaec93c76fc38ff386500b38962b7e890c0d5b9
677
py
Python
wwwdccn/conferences/migrations/0003_auto_20190331_1742.py
lfpratik/dccnsys
b59e3c4a617e74f888e98b86a85671c412078ee7
[ "MIT" ]
16
2020-03-15T15:33:30.000Z
2021-11-26T21:57:27.000Z
wwwdccn/conferences/migrations/0003_auto_20190331_1742.py
dccnconf/dccnsys
b59e3c4a617e74f888e98b86a85671c412078ee7
[ "MIT" ]
11
2019-04-27T19:15:43.000Z
2022-03-11T23:43:08.000Z
wwwdccn/conferences/migrations/0003_auto_20190331_1742.py
lfpratik/dccnsys
b59e3c4a617e74f888e98b86a85671c412078ee7
[ "MIT" ]
10
2020-03-14T09:25:39.000Z
2022-02-21T16:46:33.000Z
# Generated by Django 2.1.7 on 2019-03-31 14:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('conferences', '0002_auto_20190329_1326'), ] operations = [ migrations.AddField( model_name='conference', name='descr...
28.208333
119
0.620384
584
0.862629
0
0
0
0
0
0
212
0.313146
cfb1a0dd3fc254f0d785f59a769dd324b97838e9
2,572
py
Python
scripts.py
StarsHu/ParadoxMediaWikiWorker
89bf4f298ed93d86bc489490a2536a27961f7b6b
[ "MIT" ]
null
null
null
scripts.py
StarsHu/ParadoxMediaWikiWorker
89bf4f298ed93d86bc489490a2536a27961f7b6b
[ "MIT" ]
null
null
null
scripts.py
StarsHu/ParadoxMediaWikiWorker
89bf4f298ed93d86bc489490a2536a27961f7b6b
[ "MIT" ]
null
null
null
from spider import Spider class PageSync(object): def __init__(self, cn_url, cn_username, cn_password, eu_url, eu_username=None, eu_password=None): self.spider_cn = Spider(url=cn_url, username=cn_username, password=cn_password) self.spider_cn.login() self.spider_eu = Spider(url=eu_url, use...
41.483871
105
0.605754
2,247
0.870256
0
0
600
0.232378
0
0
323
0.125097
cfb605ca953b0b2a145c9dfb2721c7a45cd2d149
2,485
py
Python
Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py
aws-samples/aurora-and-database-migration-labs
5f7f4ab7985dda04c2a6cdc8a04fb34491f6a0aa
[ "MIT-0" ]
23
2019-02-18T17:20:17.000Z
2022-03-31T18:12:49.000Z
Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py
CloudGuru79/aurora-and-database-migration-labs
e70b6a41747d6117d763a708df035e73db88e107
[ "MIT-0" ]
1
2021-05-25T14:07:51.000Z
2021-08-04T16:06:44.000Z
Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py
CloudGuru79/aurora-and-database-migration-labs
e70b6a41747d6117d763a708df035e73db88e107
[ "MIT-0" ]
11
2019-03-29T13:11:29.000Z
2022-03-26T20:47:38.000Z
import boto3 from datetime import datetime, timezone class SnapshotException(Exception): pass def lambda_handler(event, context): # Input from Cloudwatch event rule aurora_cluster_id=event["aurora_cluster_id"] s3_bucket_for_rds_snap_exp=event["s3_bucket_for_rds_snap_exp"] iam_role_for_r...
31.455696
102
0.660362
44
0.017706
0
0
0
0
0
0
693
0.278873
cfb76a0451724cb5b9f942bb838e8d1e229a0d3d
4,932
py
Python
research/nlp/lstm_crf/eval.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/lstm_crf/eval.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/lstm_crf/eval.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
39.774194
107
0.651663
0
0
0
0
0
0
0
0
1,078
0.218573
cfb7a611580cb2074a6bd3d12a2144d33129fca3
837
py
Python
pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
5
2022-03-14T01:58:34.000Z
2022-03-21T19:51:09.000Z
pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
1
2022-03-14T10:18:40.000Z
2022-03-14T15:52:25.000Z
pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py
jmcouffin/pyRoovit
acafa74fb6310a1042c703d791b0d53804c1882a
[ "BSD-3-Clause" ]
1
2022-03-14T10:15:22.000Z
2022-03-14T10:15:22.000Z
# import libraries from pyrevit import EXEC_PARAMS from pyrevit import forms # prevent the tool, await input mip = forms.alert("No modelling in place!", options = ["Oops, my bad...", "But you see, I am an artiste"], title = "Not going to happen", footer = "Uhoh") # process the outcome if mip == "Oops, my bad...": ...
36.391304
154
0.673835
0
0
0
0
0
0
0
0
377
0.450418
cfb7b75e80d6f16aa38ab2c5bb8e48063d63e82b
2,682
py
Python
prepare_training_data.py
vijayaganesh/Chrome-DinoGame-AI
1c28114c3b0ac40dcb3812ba202b5a343de7d93a
[ "MIT" ]
null
null
null
prepare_training_data.py
vijayaganesh/Chrome-DinoGame-AI
1c28114c3b0ac40dcb3812ba202b5a343de7d93a
[ "MIT" ]
null
null
null
prepare_training_data.py
vijayaganesh/Chrome-DinoGame-AI
1c28114c3b0ac40dcb3812ba202b5a343de7d93a
[ "MIT" ]
null
null
null
import cv2 import numpy as np import tensorflow as tf import time import statistics import h5py vid_file = '/home/vijayaganesh/Videos/Google Chrome Dinosaur Game [Bird Update] BEST SCORE OF THE WORLD (No hack).mp4' data_file = 'training_data.txt' roi_x = 320 roi_y = 120 roi_w = 459 roi_h = 112 font = cv2.FONT_HERSHEY...
25.788462
118
0.590604
0
0
0
0
0
0
0
0
347
0.129381
cfb9e12117569a0e6982c42c78bded71febf60a5
3,436
py
Python
tests/test_startup_command_decorator.py
maximsakhno/galo-startup
89137b813d4ffa2fcc271cdd23ca88c1cef40eca
[ "MIT" ]
3
2022-02-02T10:58:10.000Z
2022-02-09T10:46:35.000Z
tests/test_startup_command_decorator.py
maximsakhno/galo-startup
89137b813d4ffa2fcc271cdd23ca88c1cef40eca
[ "MIT" ]
null
null
null
tests/test_startup_command_decorator.py
maximsakhno/galo-startup
89137b813d4ffa2fcc271cdd23ca88c1cef40eca
[ "MIT" ]
null
null
null
from unittest.mock import AsyncMock, Mock, call import pytest from galo_startup_commands import DependencyGraphNodeStartupCommand, startup_command def test_without_parameters() -> None: @startup_command def startup(): pass command = getattr(startup, "startup_command") assert isinstance(comm...
25.641791
84
0.690338
0
0
1,053
0.306461
1,456
0.423749
959
0.279104
165
0.048021
cfbc7808f0d9aa90289024ba8002f813e7246ea1
1,122
py
Python
config/bash.py
mkaminsky11/cyberpatriot
cadebaf6aa953a904e28a5925705352f82682992
[ "MIT", "Unlicense" ]
6
2015-09-16T11:44:17.000Z
2021-07-19T19:11:14.000Z
config/bash.py
mkaminsky11/cyberpatriot
cadebaf6aa953a904e28a5925705352f82682992
[ "MIT", "Unlicense" ]
null
null
null
config/bash.py
mkaminsky11/cyberpatriot
cadebaf6aa953a904e28a5925705352f82682992
[ "MIT", "Unlicense" ]
1
2015-03-19T14:37:21.000Z
2015-03-19T14:37:21.000Z
import subprocess import os.path #CONFIGURES BASH STUFF #TODO: maybe to all users? #PREVENT TAMPERING WITH THESE FILES #================================== append_only = [".bash_history",".bash_profile",".bash_login",".profile",".bash_logout",".bashrc"] for appends in append_only: subprocess.call(("chattr +a ~/" ...
27.365854
97
0.659537
0
0
0
0
0
0
0
0
576
0.513369
cfbcbb60ae3fc053905862a67c48f5b31ef61170
106
py
Python
autonmt/search/__init__.py
salvacarrion/autonlp
5cc462901e451b9259219f44225034fc8eedf6d3
[ "MIT" ]
5
2022-01-10T07:59:16.000Z
2022-01-14T01:02:52.000Z
autonmt/search/__init__.py
salvacarrion/autonlp
5cc462901e451b9259219f44225034fc8eedf6d3
[ "MIT" ]
2
2022-01-01T06:10:27.000Z
2022-01-14T01:10:48.000Z
autonmt/search/__init__.py
salvacarrion/autonlp
5cc462901e451b9259219f44225034fc8eedf6d3
[ "MIT" ]
2
2022-01-10T08:20:02.000Z
2022-02-22T08:10:16.000Z
from autonmt.search.beam_search import beam_search from autonmt.search.greedy_search import greedy_search
35.333333
54
0.886792
0
0
0
0
0
0
0
0
0
0
cfbdc3d684ec4775e9200fbfec05b45b578aaee8
31
py
Python
Constants.py
TmanHef/CentipedeRL
400d6e71826a79c1a597b057b7543080d3f3c376
[ "MIT" ]
1
2020-08-12T02:43:57.000Z
2020-08-12T02:43:57.000Z
Constants.py
TmanHef/CentipedeRL
400d6e71826a79c1a597b057b7543080d3f3c376
[ "MIT" ]
null
null
null
Constants.py
TmanHef/CentipedeRL
400d6e71826a79c1a597b057b7543080d3f3c376
[ "MIT" ]
null
null
null
take_action = 0 pass_action = 1
15.5
15
0.774194
0
0
0
0
0
0
0
0
0
0
cfbe82223a8d3479a6dfc0c1cbd4a4db1f89fae3
941
py
Python
crfill/trainers/__init__.py
node21challenge/rank2_node21_generation
6c1708468b4ba48383c55bc8473ebcc5a83b8995
[ "Apache-2.0" ]
null
null
null
crfill/trainers/__init__.py
node21challenge/rank2_node21_generation
6c1708468b4ba48383c55bc8473ebcc5a83b8995
[ "Apache-2.0" ]
null
null
null
crfill/trainers/__init__.py
node21challenge/rank2_node21_generation
6c1708468b4ba48383c55bc8473ebcc5a83b8995
[ "Apache-2.0" ]
1
2022-02-11T12:42:21.000Z
2022-02-11T12:42:21.000Z
import importlib def find_trainer_using_name(model_name): model_filename = "trainers." + model_name + "_trainer" modellib = importlib.import_module(model_filename) # In the file, the class called ModelNameModel() will # be instantiated. It has to be a subclass of torch.nn.Module, # and it is case-...
32.448276
156
0.682253
0
0
0
0
0
0
0
0
306
0.325186
cfbe85800180a003ff0e85d9da08dbfb881b689b
3,308
py
Python
pygrim/formulas/imaginary_unit.py
mezzarobba/fungrim
01866a19882d44420e01383165dbb0a9f97680da
[ "MIT" ]
102
2019-03-15T19:57:55.000Z
2022-03-04T06:56:18.000Z
pygrim/formulas/imaginary_unit.py
mezzarobba/fungrim
01866a19882d44420e01383165dbb0a9f97680da
[ "MIT" ]
26
2019-03-15T03:17:26.000Z
2022-02-21T17:46:50.000Z
pygrim/formulas/imaginary_unit.py
mezzarobba/fungrim
01866a19882d44420e01383165dbb0a9f97680da
[ "MIT" ]
12
2019-03-15T01:59:04.000Z
2022-02-24T14:53:35.000Z
# -*- coding: utf-8 -*- from ..expr import * def_Topic( Title("Imaginary unit"), Section("Definitions"), Entries( "be8e05", ), Section("Domain"), Entries( "88ad6f", "cd8a07", "a08fb9", ), Section("Quadratic equations"), Entries( "08ad28", ...
18.276243
101
0.583434
0
0
0
0
0
0
0
0
845
0.255441
cfbeba738a545b8fa816e6c53371f15e1212b0d3
2,590
py
Python
sds.py
Nico0302/SMG-UntisOfficeConverters
b43fd6b2baa58d42f9343c3a40963b7eec689ed5
[ "MIT" ]
null
null
null
sds.py
Nico0302/SMG-UntisOfficeConverters
b43fd6b2baa58d42f9343c3a40963b7eec689ed5
[ "MIT" ]
null
null
null
sds.py
Nico0302/SMG-UntisOfficeConverters
b43fd6b2baa58d42f9343c3a40963b7eec689ed5
[ "MIT" ]
null
null
null
import csv from utils import to_sds_date SCHOOL_ID = '1' SCHOOL_FILENAME = 'School.csv' SECTION_FILENAME = 'Section.csv' STUDENT_FILENAME = 'Student.csv' TEACHER_FILENAME = 'Teacher.csv' STUDENT_ENROLLMENT_FILENAME = 'StudentEnrollment.csv' TEACHER_ROSTER_FILENAME = 'TeacherRoster.csv' class Writer: HEADERS = []...
31.204819
90
0.688417
2,287
0.883012
0
0
0
0
0
0
274
0.105792
cfbf0b7ed91177f382813b392b45d5b821b94144
3,790
py
Python
setup.py
zfit/zfit-flavour
291be3d3d80a8e20907a5de88239098d0ed7e96d
[ "BSD-3-Clause" ]
null
null
null
setup.py
zfit/zfit-flavour
291be3d3d80a8e20907a5de88239098d0ed7e96d
[ "BSD-3-Clause" ]
null
null
null
setup.py
zfit/zfit-flavour
291be3d3d80a8e20907a5de88239098d0ed7e96d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- import io import re import os import glob from setuptools import find_packages from setuptools import setup def read(*names, **kwargs): with io.open( os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get('encoding', 'utf8') ) as f...
38.673469
104
0.641953
0
0
0
0
0
0
0
0
1,947
0.51372
cfbfa275b0b7f6610c00f6739476900452fbdfa6
1,858
py
Python
engine/utils/scheduler.py
rmarticedeno/Agent_Platform
12891e96bae4670e50f12e56a2dee258b7b584b4
[ "MIT" ]
2
2019-12-07T00:20:51.000Z
2019-12-23T15:54:27.000Z
engine/utils/scheduler.py
rmarticedeno/Agent_Platform
12891e96bae4670e50f12e56a2dee258b7b584b4
[ "MIT" ]
null
null
null
engine/utils/scheduler.py
rmarticedeno/Agent_Platform
12891e96bae4670e50f12e56a2dee258b7b584b4
[ "MIT" ]
null
null
null
from collections import deque class TaskScheduler: ''' Represents an ordered Scheduler. ''' def __init__(self): self._task_deque = deque() def new_task(self, task): ''' Admit a newly started task to the scheduler\n (must be a generator `yield`) ...
19.557895
57
0.520452
775
0.417115
221
0.118945
0
0
0
0
823
0.442949
cfc02d4a4657dd5adc5e53454218d4b69d722cf8
2,138
py
Python
leet_code/editorial/numbers_roman.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
leet_code/editorial/numbers_roman.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
leet_code/editorial/numbers_roman.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
class Solution: def intToRoman(self, num: int) -> str: a = { 'I': 1, 'IV': 4, 'V': 5, 'IX': 9, 'X': 10, 'XL': 40, 'L': 50, 'XC': 90, 'C': 100, 'CD': 400, 'D': 500, ...
25.759036
116
0.384471
1,919
0.897568
0
0
0
0
0
0
123
0.05753
cfc2420a8b0d8a4ab0326148009595e910540813
2,310
py
Python
test_incoming.py
james-721/chat_limpet
88a394d4e6e3f34b9af4dd29d43999f28bd91224
[ "MIT" ]
null
null
null
test_incoming.py
james-721/chat_limpet
88a394d4e6e3f34b9af4dd29d43999f28bd91224
[ "MIT" ]
null
null
null
test_incoming.py
james-721/chat_limpet
88a394d4e6e3f34b9af4dd29d43999f28bd91224
[ "MIT" ]
null
null
null
import zlib import zmq import simplejson import sys import time import pprint import math pp = pprint.PrettyPrinter(indent=4) """ " Configuration """ __relayEDDN = 'tcp://eddn.edcd.io:9500' __timeoutEDDN = 600000 """ " Start """ def distance_finder(input_coords): colonia_coords = [-953...
32.535211
172
0.544156
0
0
0
0
0
0
0
0
312
0.135065
cfc3b184faded8ad9ad737db946c5f8bf1633768
8,599
py
Python
bayesian_optimization/algorithms/dt.py
ukritw/autonialm
a5264753dae19b9b5257ca75433a0f55dce0f173
[ "Apache-2.0" ]
2
2022-02-22T13:16:17.000Z
2022-03-24T17:37:54.000Z
bayesian_optimization/algorithms/dt.py
ukritw/autonialm
a5264753dae19b9b5257ca75433a0f55dce0f173
[ "Apache-2.0" ]
null
null
null
bayesian_optimization/algorithms/dt.py
ukritw/autonialm
a5264753dae19b9b5257ca75433a0f55dce0f173
[ "Apache-2.0" ]
2
2019-03-24T20:58:53.000Z
2022-03-06T06:51:50.000Z
from __future__ import print_function, division import warnings; warnings.filterwarnings("ignore") from nilmtk import DataSet import pandas as pd import numpy as np import datetime import time import math import glob from sklearn.tree import DecisionTreeRegressor # Bring packages onto the path import sys, os sys.pa...
43.211055
230
0.695662
0
0
0
0
0
0
0
0
3,942
0.458425
cfc454e37616069169f51eecb957aaca3ad1f6d0
2,368
py
Python
final_exam_may2020/others/practistrash.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
final_exam_may2020/others/practistrash.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
final_exam_may2020/others/practistrash.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
difficultlist = ['>tr|Q9IQN3|Q9IQN3_9HIV1 Protein Rev (Fragment) OS=Human immunodeficiency virus 1 OX=11676 GN=rev PE=4 SV=1', 'PPPSSEGTRQARRNRRRRWRERQRQIRRISGWILSNHLGGLTEPVPLQLPPLERLTLDCN', 'EDCGTSGTQGVGSPQIPVESPTVLESGTKE', '>sp|O95218|ZRAB2_HUMAN Zinc finger Ran-binding domain-containing protein 2 OS=Homo sapiens OX=...
35.878788
704
0.638936
0
0
0
0
0
0
0
0
1,997
0.843328
cfc4d663a59f98e39d10c7f6df4d3b1a88ae5a68
5,169
py
Python
src/test/feature/Ranger/rangerpolicy.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
450
2015-09-05T09:12:51.000Z
2018-08-30T01:45:36.000Z
src/test/feature/Ranger/rangerpolicy.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
1,274
2015-09-22T20:06:16.000Z
2018-08-31T22:14:00.000Z
src/test/feature/Ranger/rangerpolicy.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
278
2015-09-21T19:15:06.000Z
2018-08-31T00:36:51.000Z
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
42.368852
98
0.655833
0
0
0
0
0
0
0
0
1,689
0.326756
cfc4dc6ecc3462bf8a0af5bf57b6f97a39afd525
856
py
Python
Interpolation/New Tab with Special Layers.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Interpolation/New Tab with Special Layers.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Interpolation/New Tab with Special Layers.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
#MenuTitle: New Tab with Special Layers # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals from builtins import str __doc__=""" Opens a new Edit tab containing all special (bracket & brace) layers. """ Glyphs.clearLog() # clears log of Macro window thisFont = Glyphs.font # frontm...
28.533333
70
0.748832
0
0
0
0
0
0
0
0
400
0.46729
cfc4e76ff268f1b04652ad27abd0acee3bdfb297
3,244
py
Python
tests/wallet/nft_wallet/test_ownership_outer_puzzle.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
tests/wallet/nft_wallet/test_ownership_outer_puzzle.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
tests/wallet/nft_wallet/test_ownership_outer_puzzle.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
from typing import Optional from clvm_tools.binutils import assemble from chinilla.types.blockchain_format.program import Program from chinilla.types.blockchain_format.sized_bytes import bytes32 from chinilla.util.ints import uint16 from chinilla.wallet.nft_wallet.ownership_outer_puzzle import puzzle_for_ownership_la...
42.684211
119
0.750308
0
0
0
0
0
0
0
0
299
0.09217
cfc750727d6c4741228488819c79fe8825da6d65
15,095
py
Python
data_loader.py
armyja/CHAOS_GCN
685c84fdabf6db71cfc007cec41a72d900422920
[ "MIT" ]
4
2019-10-05T12:54:51.000Z
2021-03-29T11:41:50.000Z
data_loader.py
armyja/CHAOS_GCN
685c84fdabf6db71cfc007cec41a72d900422920
[ "MIT" ]
null
null
null
data_loader.py
armyja/CHAOS_GCN
685c84fdabf6db71cfc007cec41a72d900422920
[ "MIT" ]
3
2019-10-05T12:54:55.000Z
2021-07-15T05:32:37.000Z
import math import random import torch import numpy as np from torch.utils.data.dataset import Dataset from PIL import Image import os from torchvision import transforms from utils import * # 1 x n_class x height x width tensor def decode_output_to_label(temp): n, c, h, w = temp.size() temp = temp.transpo...
37.7375
111
0.549718
14,542
0.963365
0
0
0
0
0
0
2,192
0.145214
cfc8236b7f2f5731cc673472309e507f47fa4c37
301
py
Python
Unit 2 Review of Rock and Fluid Properties/functions/waterfvf.py
datasolver/reservoir-engineering
82393cff19e700fe3c7ac5c1a32ba877a4e40750
[ "MIT" ]
null
null
null
Unit 2 Review of Rock and Fluid Properties/functions/waterfvf.py
datasolver/reservoir-engineering
82393cff19e700fe3c7ac5c1a32ba877a4e40750
[ "MIT" ]
null
null
null
Unit 2 Review of Rock and Fluid Properties/functions/waterfvf.py
datasolver/reservoir-engineering
82393cff19e700fe3c7ac5c1a32ba877a4e40750
[ "MIT" ]
1
2020-06-24T15:50:00.000Z
2020-06-24T15:50:00.000Z
def waterfvf(temp, p): "Water FVF (Bw)" # temp in Fahrenheit # p pressure in psia Vwp = (-1.95301E-9 * p * temp) - (1.72834E-13 * (p**2) * temp) - (3.588922E-7 * p) - (2.25341E-10 * p**2) Vwt = (-1E-2) + (1.33391E-2 * temp) + (5.50654E-7 * temp**2) Bw = (1 + Vwt) * (1 + Vwp) return(Bw)
33.444444
107
0.524917
0
0
0
0
0
0
0
0
56
0.186047
cfc917659c598b9f2aa9c65e7f6160274733ada1
3,258
py
Python
pcfv/networks/UNet.py
jiayangshi/pcf
1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64
[ "MIT" ]
null
null
null
pcfv/networks/UNet.py
jiayangshi/pcf
1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64
[ "MIT" ]
null
null
null
pcfv/networks/UNet.py
jiayangshi/pcf
1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from pcfv.layers.ConvBlock import ConvBlock from pcfv.layers.ScalingBlock import ScalingBlock class UNet(nn.Module): ''' Implementation of UNet (Ronneberger et al. U-Net: Convolutional Networks for Biomedical Image Segmentation) ''' def __init__(self, in_channels, ou...
47.911765
134
0.7124
3,127
0.959791
0
0
0
0
0
0
195
0.059853
cfcb567563b3d4494c056cf9b6b3cc3c9bd24ae3
12,191
py
Python
core/models/bev_speed_model.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
null
null
null
core/models/bev_speed_model.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
null
null
null
core/models/bev_speed_model.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from typing import Dict, Optional, Tuple, List, Union from ding.torch_utils import MLP class BEVSpeedConvEncoder(nn.Module): """ Convolutional encoder of Bird-eye View image and speed input. It takes a BeV image and a speed scalar as input. The BeV image is encoded by a...
37.860248
118
0.618817
12,050
0.988434
0
0
0
0
0
0
3,636
0.298253
cfcd1eaf4baa629441933c1fc83033c5ec5c7761
351
py
Python
chapter5/source code/show-descriptors.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
74
2020-05-19T01:08:03.000Z
2022-03-31T14:00:41.000Z
chapter5/source code/show-descriptors.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
1
2021-06-04T06:08:21.000Z
2021-06-04T06:08:21.000Z
chapter5/source code/show-descriptors.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
47
2020-05-05T12:06:31.000Z
2022-03-10T04:45:01.000Z
from stem.descriptor.remote import DescriptorDownloader downloader = DescriptorDownloader() descriptors = downloader.get_consensus().run() for descriptor in descriptors: print('Nickname:',descriptor.nickname) print('Fingerprint:',descriptor.fingerprint) print('Address:',descriptor.address) print('Band...
29.25
55
0.777778
0
0
0
0
0
0
0
0
47
0.133903
cfce448de4932fcdd0211b3f96ebcde12de01549
920
py
Python
python/examples/_paramiko.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
null
null
null
python/examples/_paramiko.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
1
2021-03-10T04:00:01.000Z
2021-03-10T04:00:01.000Z
python/examples/_paramiko.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
null
null
null
import getpass import paramiko class SSHConnection(object): def __init__(self, host, username, password): self.host = host self.username = username self.password = password self.ssh = paramiko.SSHClient() self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) d...
27.878788
72
0.619565
489
0.531522
0
0
0
0
0
0
43
0.046739
cfcf530f45cfc31304305ccd0a5618dda6f958ac
1,266
py
Python
perception/manage.py
ramaneswaran/perception
045b85634412355d66b2db6a102a97796c9aa11f
[ "Apache-2.0" ]
1
2021-04-14T10:58:13.000Z
2021-04-14T10:58:13.000Z
perception/manage.py
shivamsaraswat8/perception
045b85634412355d66b2db6a102a97796c9aa11f
[ "Apache-2.0" ]
null
null
null
perception/manage.py
shivamsaraswat8/perception
045b85634412355d66b2db6a102a97796c9aa11f
[ "Apache-2.0" ]
1
2021-04-10T18:02:45.000Z
2021-04-10T18:02:45.000Z
import os from sqlalchemy.orm import Session from perception.database import SessionLocal, engine from perception import models, schemas from perception.core.faiss_helper import FaissCore models.Base.metadata.create_all(bind=engine) # Dependency def get_db(): db = SessionLocal() try: yield db f...
23.018182
86
0.666667
0
0
95
0.075039
0
0
0
0
307
0.242496
cfd03e2de858927a123e0392f69647b19f5245c3
3,462
py
Python
lamblayer/init.py
YU-SUKETAKAHASHI/lamblayer
5650235d16a40c41e8395a1fae7484c8c297e2ef
[ "MIT" ]
7
2021-12-24T03:51:28.000Z
2022-01-31T02:50:46.000Z
lamblayer/init.py
YU-SUKETAKAHASHI/lamblayer
5650235d16a40c41e8395a1fae7484c8c297e2ef
[ "MIT" ]
null
null
null
lamblayer/init.py
YU-SUKETAKAHASHI/lamblayer
5650235d16a40c41e8395a1fae7484c8c297e2ef
[ "MIT" ]
null
null
null
import os import json import requests import click from .lamblayer import Lamblayer class Init(Lamblayer): def __init__(self, profile, region, log_level): super().__init__(profile, region, log_level) def __call__(self, function_name, download): self.init(function_name, download) def in...
28.85
82
0.590699
3,373
0.974292
0
0
0
0
0
0
1,344
0.388215
cfd0af6f971f3ce7bf05347862e1f5a1232a4e5f
3,135
py
Python
deadunits/model_load.py
google-research/deadunits
5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423
[ "Apache-2.0" ]
3
2021-04-01T02:52:04.000Z
2021-11-05T15:48:43.000Z
deadunits/model_load.py
google-research/deadunits
5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423
[ "Apache-2.0" ]
null
null
null
deadunits/model_load.py
google-research/deadunits
5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423
[ "Apache-2.0" ]
2
2021-11-05T15:45:30.000Z
2022-01-16T11:50:00.000Z
# coding=utf-8 # Copyright 2021 The Deadunits Authors. # # 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...
37.321429
80
0.717384
0
0
0
0
2,009
0.640829
0
0
1,539
0.490909
cfd382c12e449f2aff45f8f06e3114ca6cda9658
1,077
py
Python
programme/migrations/0076_auto_20190207_1753.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
programme/migrations/0076_auto_20190207_1753.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
programme/migrations/0076_auto_20190207_1753.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
# Generated by Django 2.1.5 on 2019-02-07 15:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('paikkala', '0010_nonblank_room'), ('programme', '0075_auto_20181019_1918'), ] operations = [ migrat...
34.741935
163
0.64624
951
0.883008
0
0
0
0
0
0
329
0.305478
cfd4d7c0086556f8eca75a77d9aa25874ed6b8b1
587
py
Python
mentorbot/MentorRequests/urls.py
MentorBot/Webhook
696ce15f41d1c15a6cae336c41f3e56e4a3e5056
[ "Unlicense" ]
2
2018-06-04T10:46:09.000Z
2020-06-02T14:48:44.000Z
mentorbot/MentorRequests/urls.py
MentorBot/Webhook
696ce15f41d1c15a6cae336c41f3e56e4a3e5056
[ "Unlicense" ]
4
2018-07-18T13:16:50.000Z
2021-09-07T23:41:25.000Z
mentorbot/MentorRequests/urls.py
MentorBot/Webhook
696ce15f41d1c15a6cae336c41f3e56e4a3e5056
[ "Unlicense" ]
null
null
null
from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from .views import CreateView, ListView, RetrieveView, DestroyView, UpdateView urlpatterns = { url(r'^mentorrequests/$', CreateView.as_view(), name="create"), url(r'^mentorrequests/$', ListView.as_view(), name="list...
39.133333
78
0.735945
0
0
0
0
0
0
0
0
141
0.240204
cfd4fb606ff1d4d7e97383391e3aac4284986abd
4,012
py
Python
scripts/generate_topk.py
sarapapi/FBK-fairseq-ST
33f381937c1589602944da8cf39e533802d283ca
[ "MIT" ]
11
2021-02-28T23:33:18.000Z
2022-02-11T20:42:18.000Z
scripts/generate_topk.py
sarapapi/FBK-fairseq-ST
33f381937c1589602944da8cf39e533802d283ca
[ "MIT" ]
1
2021-05-21T08:08:19.000Z
2021-06-30T12:28:55.000Z
scripts/generate_topk.py
sarapapi/FBK-fairseq-ST
33f381937c1589602944da8cf39e533802d283ca
[ "MIT" ]
5
2021-03-15T02:05:38.000Z
2022-02-14T09:20:20.000Z
import logging import os import torch import numpy as np from fairseq import utils, options, tasks, progress_bar, checkpoint_utils from fairseq.data.knowledge_distillation import TeacherOutputDataset logger = logging.getLogger(__name__) def gen_outputs(args): use_cuda = torch.cuda.is_available() and not args....
38.209524
102
0.662512
0
0
0
0
0
0
0
0
511
0.127368
cfd56d6ececcc1cd67817258728c7adf9fc34aee
1,796
py
Python
vagrant/catalog/database_setup.py
sxw031/fullstack-nanodegree-vm
ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e
[ "MIT" ]
null
null
null
vagrant/catalog/database_setup.py
sxw031/fullstack-nanodegree-vm
ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e
[ "MIT" ]
null
null
null
vagrant/catalog/database_setup.py
sxw031/fullstack-nanodegree-vm
ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e
[ "MIT" ]
null
null
null
import os, sys from sqlalchemy import Column, ForeignKey, Integer, String, Unicode from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship # from sqlalchemy_imageattach.entity import Image, image_attachment from sqlalchemy import create_engine Base = declarative_base() class U...
23.324675
67
0.716036
1,352
0.752784
0
0
539
0.300111
0
0
420
0.233853
cfd6ca41e1b805ea3a585af7c332ce47525812b5
9,903
py
Python
catkin_ws/src/patrolling_node/src/patrolling_node_test.py
championway/DuckietownPi2
ab80ec901ab50337b5f20c9652bc7b8503e2a348
[ "CC-BY-2.0" ]
1
2019-11-12T14:06:06.000Z
2019-11-12T14:06:06.000Z
catkin_ws/src/patrolling_node/src/patrolling_node_test.py
championway/DuckietownPi3_NCTU
ab80ec901ab50337b5f20c9652bc7b8503e2a348
[ "CC-BY-2.0" ]
null
null
null
catkin_ws/src/patrolling_node/src/patrolling_node_test.py
championway/DuckietownPi3_NCTU
ab80ec901ab50337b5f20c9652bc7b8503e2a348
[ "CC-BY-2.0" ]
null
null
null
#!/usr/bin/env python import rospkg import rospy import yaml from std_msgs.msg import Int8 from duckietown_msgs.msg import PatrolBot, BoolStamped, RobotName import numpy as np import tf.transformations as tr from geometry_msgs.msg import PoseStamped import time class PatrollingNode(object): def __init__(self): ...
35.880435
104
0.553065
9,512
0.960517
0
0
0
0
0
0
1,581
0.159649
cfd6ee08050d84e7c5fe8334aa7dac72cbb2dd09
125
py
Python
data/module/util/got/manager/__init__.py
williamducfer/eras
d85b8b53431f4416152e3f536bc8c99481a63dd7
[ "MIT" ]
1
2020-09-09T19:51:44.000Z
2020-09-09T19:51:44.000Z
data/module/util/got/manager/__init__.py
williamducfer/eras
d85b8b53431f4416152e3f536bc8c99481a63dd7
[ "MIT" ]
null
null
null
data/module/util/got/manager/__init__.py
williamducfer/eras
d85b8b53431f4416152e3f536bc8c99481a63dd7
[ "MIT" ]
2
2021-09-11T07:31:19.000Z
2022-03-17T16:27:10.000Z
from module.util.got.manager.TweetCriteria import TweetCriteria from module.util.got.manager.TweetManager import TweetManager
62.5
63
0.88
0
0
0
0
0
0
0
0
0
0
cfda4ec83b1837072ae82cc908a8914b6342956d
2,332
py
Python
counting_paths_in_matrix.py
Sem8/lambda_x_whiteboard
bffbbd281bc825b3d21ac0462b61e60e7f299fab
[ "MIT" ]
null
null
null
counting_paths_in_matrix.py
Sem8/lambda_x_whiteboard
bffbbd281bc825b3d21ac0462b61e60e7f299fab
[ "MIT" ]
null
null
null
counting_paths_in_matrix.py
Sem8/lambda_x_whiteboard
bffbbd281bc825b3d21ac0462b61e60e7f299fab
[ "MIT" ]
null
null
null
# generate an nxn matrix with cells above the diagonal blocked out def generate_matrix(n): matrix = [[1 for i in range(n)] for _ in range(n)] for i in range(n): for j in range(n): if i < j: matrix[i][j] = -1 ​ return matrix ​ # receives a matrix and row and col parameters indicating the # s...
32.84507
69
0.686535
0
0
0
0
0
0
0
0
840
0.357143
cfdb04f375f82469afd2de9898e6269f06588e28
3,928
py
Python
DTL/db/models/tablemodel.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
1
2015-03-23T18:52:12.000Z
2015-03-23T18:52:12.000Z
DTL/db/models/tablemodel.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
null
null
null
DTL/db/models/tablemodel.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
2
2017-05-21T12:50:41.000Z
2021-10-17T03:32:45.000Z
from DTL.qt import QtCore, QtGui from DTL.qt.QtCore import Qt #------------------------------------------------------------ #------------------------------------------------------------ class TableModel(QtCore.QAbstractTableModel): #------------------------------------------------------------ def __init__(self...
33.862069
76
0.455448
3,741
0.952393
0
0
0
0
0
0
936
0.238289
cfdb1d30cc9bd9520aaaaae8ec7fdec44f23d872
38
py
Python
HashableDict/__init__.py
IFcoltransG/HashableDict
d638176db7439e835e777241073433f496cabfcb
[ "Unlicense" ]
null
null
null
HashableDict/__init__.py
IFcoltransG/HashableDict
d638176db7439e835e777241073433f496cabfcb
[ "Unlicense" ]
null
null
null
HashableDict/__init__.py
IFcoltransG/HashableDict
d638176db7439e835e777241073433f496cabfcb
[ "Unlicense" ]
null
null
null
from HashableDict import HashableDict
19
37
0.894737
0
0
0
0
0
0
0
0
0
0
cfdb523e6cf5322fbb1c670fdab52365d64979a9
296
py
Python
Prototype/BasicRsshUsb/main.py
school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts
154a49b1e670999249a468724f380b62d34b806d
[ "MIT" ]
null
null
null
Prototype/BasicRsshUsb/main.py
school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts
154a49b1e670999249a468724f380b62d34b806d
[ "MIT" ]
null
null
null
Prototype/BasicRsshUsb/main.py
school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts
154a49b1e670999249a468724f380b62d34b806d
[ "MIT" ]
null
null
null
import os #https://stackoverflow.com/questions/3751900/create-file-path-from-variables import subprocess process = subprocess.Popen(['powershell','-c', 'Get -PSDrive -PSProvider "Filesystem"'], stderr=subprocess.PIPE, stdout=subprocess.PIPE) stdout, stderr = process.communicate() print(stdout)
37
136
0.783784
0
0
0
0
0
0
0
0
131
0.442568
cfdb6aea4b5d0ec5643271d0d007024ceb0871a2
7,187
py
Python
tests/emulator/test_line_handler.py
pp81381/nicett6
addace8fbd5350105bf4fb27d1b485bb9cf20236
[ "MIT" ]
null
null
null
tests/emulator/test_line_handler.py
pp81381/nicett6
addace8fbd5350105bf4fb27d1b485bb9cf20236
[ "MIT" ]
1
2021-06-06T20:43:09.000Z
2021-06-06T20:43:09.000Z
tests/emulator/test_line_handler.py
pp81381/nicett6
addace8fbd5350105bf4fb27d1b485bb9cf20236
[ "MIT" ]
null
null
null
import asyncio from nicett6.emulator.cover_emulator import TT6CoverEmulator from nicett6.emulator.line_handler import ( LineHandler, CMD_STOP, CMD_MOVE_DOWN, CMD_MOVE_UP, ) from nicett6.ttbus_device import TTBusDeviceAddress from unittest import IsolatedAsyncioTestCase from unittest.mock import AsyncMoc...
39.489011
88
0.685265
6,815
0.94824
0
0
0
0
6,303
0.877
670
0.093224
cfdf0c6bda6c585e0df43df55f4fc477cd434baa
455
py
Python
harvest/__init__.py
reinhardt/python-harvest
7691e345a73361708396532e8e5f4a4dc293c211
[ "Apache-2.0" ]
50
2015-01-14T17:22:27.000Z
2022-01-15T22:07:13.000Z
harvest/__init__.py
reinhardt/python-harvest
7691e345a73361708396532e8e5f4a4dc293c211
[ "Apache-2.0" ]
48
2015-01-31T20:07:40.000Z
2021-09-14T06:47:39.000Z
harvest/__init__.py
reinhardt/python-harvest
7691e345a73361708396532e8e5f4a4dc293c211
[ "Apache-2.0" ]
59
2015-01-31T15:14:24.000Z
2021-09-14T06:15:24.000Z
# -*- coding: utf-8 -*- """ Harvest Time Tracking API Client ~~~~~~~~~~~~~~~~ :copyright: © 2012 Aurora Software LLC :license: Apache 2.0, see LICENSE for more details. """ from .metadata import ( __author__, __copyright__, __email__, __license__, __maintainer__, __version__, ) from .harvest...
17.5
62
0.641758
0
0
0
0
0
0
0
0
262
0.574561
cfe01a8804824c311ce3867e63b5c0e7159d9fc9
168
py
Python
lib/app_blocker.py
esoadamo/simple-guardian-ad-hoc
d30afcff5ee14da10837908b531a0e04524e4c9a
[ "MIT" ]
null
null
null
lib/app_blocker.py
esoadamo/simple-guardian-ad-hoc
d30afcff5ee14da10837908b531a0e04524e4c9a
[ "MIT" ]
null
null
null
lib/app_blocker.py
esoadamo/simple-guardian-ad-hoc
d30afcff5ee14da10837908b531a0e04524e4c9a
[ "MIT" ]
null
null
null
class IPBlocker: def block(self, ip: str) -> bool: raise NotImplementedError() def unblock(self, ip: str) -> bool: raise NotImplementedError()
24
39
0.630952
167
0.994048
0
0
0
0
0
0
0
0
cfe0414c8157e5f726b4a1a487bb20c7b5854909
706
py
Python
wendy/models/seeds/chair.py
AIFI-INC/wendy-framework
e752748428dad550eb9fa1833571c721c089bbc6
[ "Apache-2.0" ]
null
null
null
wendy/models/seeds/chair.py
AIFI-INC/wendy-framework
e752748428dad550eb9fa1833571c721c089bbc6
[ "Apache-2.0" ]
5
2021-12-11T18:39:59.000Z
2021-12-12T02:34:25.000Z
wendy/models/seeds/chair.py
AIFI-INC/wendy-framework
e752748428dad550eb9fa1833571c721c089bbc6
[ "Apache-2.0" ]
null
null
null
import os import sys import asyncio from faker import Faker faker = Faker() sys.path.insert(0, os.path.abspath(os.curdir)) from config import init_db from wendy.models import * __all__ = [ 'ChairFaker', 'seed_chair' ] class ChairFaker(object): async def generate(self, **kwargs): await init_db() ...
19.081081
46
0.594901
166
0.235127
0
0
0
0
136
0.192635
37
0.052408
cfe103929d40cc1fd5b17a3bd2751486f8d91d6a
3,814
py
Python
tasks/outlooksend.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
10
2018-05-07T07:52:51.000Z
2021-09-04T05:34:46.000Z
tasks/outlooksend.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
null
null
null
tasks/outlooksend.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
4
2018-04-09T17:59:13.000Z
2019-11-17T01:33:35.000Z
# Copyright 2017 Carnegie Mellon University. See LICENSE.md file for terms. import platform try: import win32com.client except ImportError: # Tasks must be importable on any platform. pass import api from tasks import outlook class OutlookSend(outlook.Outlook): """ Interact with Outlook to send ema...
34.990826
115
0.640535
3,570
0.936025
0
0
1,390
0.364447
0
0
1,660
0.435239
cfe226a8bc6ece89901ec8ede5be41c0f659536f
5,093
py
Python
tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py
ammarrm/cFS_MSTAR
f7d59eec4a445bb8572d01a580c043ec7a33df44
[ "Apache-2.0" ]
2
2021-09-11T18:55:33.000Z
2021-11-08T11:29:58.000Z
tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py
ammarrm/cFS_MSTAR
f7d59eec4a445bb8572d01a580c043ec7a33df44
[ "Apache-2.0" ]
null
null
null
tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py
ammarrm/cFS_MSTAR
f7d59eec4a445bb8572d01a580c043ec7a33df44
[ "Apache-2.0" ]
1
2021-04-23T04:26:08.000Z
2021-04-23T04:26:08.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/ParameterDialog.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dial...
53.610526
132
0.721186
4,784
0.939328
0
0
0
0
0
0
712
0.1398
cfe2c328ca281e6e8df6b265c3b65ba3bcd9631d
1,936
py
Python
deeplite/profiler/evaluate.py
Deeplite/deeplite-profiler
2b21c0dc5948606c47377f786b605baf4fa31bee
[ "Apache-2.0" ]
17
2021-04-13T06:09:52.000Z
2021-11-24T06:39:41.000Z
deeplite/profiler/evaluate.py
Deeplite/deeplite-profiler
2b21c0dc5948606c47377f786b605baf4fa31bee
[ "Apache-2.0" ]
14
2021-04-14T13:46:42.000Z
2021-12-20T21:10:25.000Z
deeplite/profiler/evaluate.py
Deeplite/deeplite-profiler
2b21c0dc5948606c47377f786b605baf4fa31bee
[ "Apache-2.0" ]
7
2021-04-09T16:47:56.000Z
2022-03-05T11:04:30.000Z
from abc import ABC, abstractmethod from .utils import Device, cast_tuple class EvaluationFunction(ABC): @abstractmethod def __call__(self, mode, data_loader, device=Device.CPU, **kwargs): raise NotImplementedError @staticmethod def filter_call_rval(rval, return_dict=None, return_keys=None, k...
35.851852
105
0.595041
1,859
0.960227
0
0
1,818
0.93905
0
0
628
0.32438
cfe2fe297fd7bf90005dc5ad2f8cbaac94d7c10e
213
py
Python
desafio 013.py
KelvinAraujo/Python
8bf05153838b603bcc51d363ad17aecb8ea8bdd2
[ "MIT" ]
null
null
null
desafio 013.py
KelvinAraujo/Python
8bf05153838b603bcc51d363ad17aecb8ea8bdd2
[ "MIT" ]
null
null
null
desafio 013.py
KelvinAraujo/Python
8bf05153838b603bcc51d363ad17aecb8ea8bdd2
[ "MIT" ]
null
null
null
salario = float(input('\033[32m Quanto é o salário? R$')) novo = salario + (salario * 15 / 100) print('\033[36m Um funcionário que ganhava R${:.2f}, com aumento de 15% agora recebe R${:.2f}'.format(salario,novo))
53.25
116
0.676056
0
0
0
0
0
0
0
0
124
0.574074
cfe33bb33e5b79b0415e45d5133e48665bc5bedc
236
py
Python
creat_name.py
Eric3911/miniDetection
6fb6e1bce3ab6e4adb832b37e78325803c7424b6
[ "MIT" ]
70
2019-01-07T09:45:46.000Z
2020-04-22T01:09:41.000Z
creat_name.py
Eric3911/mini-SSD
6fb6e1bce3ab6e4adb832b37e78325803c7424b6
[ "MIT" ]
null
null
null
creat_name.py
Eric3911/mini-SSD
6fb6e1bce3ab6e4adb832b37e78325803c7424b6
[ "MIT" ]
24
2019-01-07T09:56:48.000Z
2019-04-02T03:42:03.000Z
#2、生成名称目录脚本 import os imglst = os.listdir("./annotations/xmls/") with open("./annotations/trainval_person.txt","w") as ff: for img_path in imglst: name = img_path.split(".")[0] print(name) ff.write(name+"\n")
29.5
57
0.622881
0
0
0
0
0
0
0
0
95
0.374016
cfe3d87776cd3825a075db83aacd350f318e2832
2,146
py
Python
monoweb/mono/cache.py
ragnraok/MonoReader
4672f5f0ca48f69e9180b33b62e773ab323c2cbc
[ "MIT" ]
1
2019-06-12T01:46:22.000Z
2019-06-12T01:46:22.000Z
monoweb/mono/cache.py
ragnraok/MonoReader
4672f5f0ca48f69e9180b33b62e773ab323c2cbc
[ "MIT" ]
null
null
null
monoweb/mono/cache.py
ragnraok/MonoReader
4672f5f0ca48f69e9180b33b62e773ab323c2cbc
[ "MIT" ]
null
null
null
from flask import current_app import pickle import os import time import fcntl class FileLock(object): def __init__(self, filename, *args, **kwargs): self.filename = filename self.open_args = args self.open_kwargs = kwargs self.fileobj = None def __enter__(self): f = o...
28.613333
85
0.55918
1,996
0.930103
0
0
198
0.092265
0
0
184
0.085741
cfe5ffbaebbe5bd0914a0d5d09fc0b8e3446928a
140
py
Python
extra_foam/database/__init__.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
extra_foam/database/__init__.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
extra_foam/database/__init__.py
scottwedge/EXtra-foam
9a170e3097987bf8abf30abb64a52439624367b8
[ "BSD-3-Clause" ]
null
null
null
from .metadata import Metadata, MetaProxy from .mondata import MonProxy from .data_source import DataTransformer, SourceCatalog, SourceItem
35
67
0.85
0
0
0
0
0
0
0
0
0
0
cfe6445a17d673248005f5bca926ac3f9b7ef028
1,806
py
Python
server/db/models/user.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
server/db/models/user.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
server/db/models/user.py
tetelevm/OrdeRPG
5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab
[ "MIT" ]
null
null
null
""" User models, which are responsible for authorization and all of the user's business data. """ from sqlalchemy import func from server.framework.db import ( attribute_presetter, BaseModel, ) from server.framework.db.fields import ( IntegerField, StringField, DateTimeField, RandomStringField,...
26.558824
69
0.704319
1,295
0.717054
0
0
115
0.063677
0
0
257
0.142303
cfe927bd7ca7e8f24aafb7b3f14f3e83885d3a2b
27
py
Python
src/sc3nb/resources/__init__.py
interactive-sonification/sc3nb
c6081ae01f4e72094b6cb6dbd9667278c8d21069
[ "MIT" ]
7
2021-08-02T12:57:13.000Z
2022-02-16T08:54:23.000Z
src/sc3nb/resources/__init__.py
thomas-hermann/sc3nb
7d7fbd9178fe804c5c8ddd0ddd4075579221b7c4
[ "MIT" ]
3
2019-08-09T17:56:18.000Z
2020-10-24T13:05:47.000Z
src/sc3nb/resources/__init__.py
thomas-hermann/sc3nb
7d7fbd9178fe804c5c8ddd0ddd4075579221b7c4
[ "MIT" ]
6
2019-04-18T17:25:42.000Z
2020-04-28T09:43:33.000Z
"""Module for resources"""
13.5
26
0.666667
0
0
0
0
0
0
0
0
26
0.962963
cfe9564e19eb5444e93954e93924e5e1836deed2
139
py
Python
national_id/admin.py
AhmedElmougy/national-id-validator
27d81cd6e3ef556074c0fd5097db0537fd2114c2
[ "BSD-3-Clause" ]
1
2021-06-24T08:31:44.000Z
2021-06-24T08:31:44.000Z
national_id/admin.py
AhmedElmougy/national-id-validator
27d81cd6e3ef556074c0fd5097db0537fd2114c2
[ "BSD-3-Clause" ]
null
null
null
national_id/admin.py
AhmedElmougy/national-id-validator
27d81cd6e3ef556074c0fd5097db0537fd2114c2
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from national_id.models import NationalId # Register your models here. admin.site.register(NationalId)
17.375
41
0.820144
0
0
0
0
0
0
0
0
28
0.201439
cfebdc0f6cd106411e690aa30a03ad7d8289dd06
251
py
Python
pynovice/gaode_map/__init__.py
wqwangchn/novice
d52190a9cd5045726e49aff8610b718636c304c7
[ "MIT" ]
2
2020-06-28T08:30:47.000Z
2020-11-04T07:55:42.000Z
pynovice/gaode_map/__init__.py
wqwangchn/novice
d52190a9cd5045726e49aff8610b718636c304c7
[ "MIT" ]
8
2020-11-13T18:56:02.000Z
2022-02-10T03:16:52.000Z
pynovice/gaode_map/__init__.py
wqwangchn/novice
d52190a9cd5045726e49aff8610b718636c304c7
[ "MIT" ]
2
2020-09-17T00:12:36.000Z
2020-11-04T07:55:55.000Z
# coding=utf-8 # /usr/bin/env python ''' Author: wenqiangw Email: wenqiangw@opera.com Date: 2020-07-28 15:07 Desc: 数据分布画图 ''' from .trajectory_playback import Trajectory as Trajectory_his from .trajectory_playback_v2 import Trajectory as Trajectory
19.307692
61
0.784861
0
0
0
0
0
0
0
0
135
0.513308
cfed38f69dc3fe98cfb032a42e95725930455fd7
87
py
Python
lectures/code/numpy_scalar_ops.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
4
2015-08-10T17:46:55.000Z
2020-04-18T21:09:03.000Z
lectures/code/numpy_scalar_ops.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
null
null
null
lectures/code/numpy_scalar_ops.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
2
2019-04-24T03:31:02.000Z
2019-05-13T07:36:06.000Z
A = np.ones((3,3)) print 3 * A - 1 # [[ 2. 2. 2.] # [ 2. 2. 2.] # [ 2. 2. 2.]]
14.5
18
0.298851
0
0
0
0
0
0
0
0
49
0.563218
cfed61c9b170b49c4d5f7fdd3356dd67308b7946
5,901
py
Python
fnn.py
Yanjing-PENG/feedforward-neural-network
0ef94c172fdd4773beb6e7ca26e5c944a97f84de
[ "MIT" ]
null
null
null
fnn.py
Yanjing-PENG/feedforward-neural-network
0ef94c172fdd4773beb6e7ca26e5c944a97f84de
[ "MIT" ]
null
null
null
fnn.py
Yanjing-PENG/feedforward-neural-network
0ef94c172fdd4773beb6e7ca26e5c944a97f84de
[ "MIT" ]
null
null
null
""" This program builds a two-layer neural network for the Iris dataset. The first layer is a relu layer with 10 units, and the second one is a softmax layer. The network structure is specified in the "train" function. The parameters are learned using SGD. The forward propagation and backward propagation are carri...
30.261538
101
0.604304
0
0
0
0
0
0
0
0
1,884
0.319268
cfeff2979c260def21d3497db63dd0e2915c929e
3,021
py
Python
src/commands/context_create_override.py
EatBreatheCode/sublime_override_audit
4170bccc88e5442e18f337e291b771769b00d3c4
[ "MIT" ]
31
2017-01-28T10:08:12.000Z
2021-06-01T06:57:27.000Z
src/commands/context_create_override.py
EatBreatheCode/sublime_override_audit
4170bccc88e5442e18f337e291b771769b00d3c4
[ "MIT" ]
34
2017-02-03T14:47:00.000Z
2020-05-27T05:48:09.000Z
src/commands/context_create_override.py
EatBreatheCode/sublime_override_audit
4170bccc88e5442e18f337e291b771769b00d3c4
[ "MIT" ]
8
2017-02-03T08:31:36.000Z
2022-02-26T20:13:43.000Z
import sublime import sublime_plugin from os.path import isfile from ..core import oa_setting, setup_new_override_view from ..core import PackageListCollectionThread, ContextHelper ###---------------------------------------------------------------------------- class OverrideAuditContextCreateOverrideCommand(Contex...
37.7625
92
0.617014
2,672
0.884475
0
0
0
0
0
0
1,210
0.40053
cff1461f14e1b3e15b0d50f0e2b63bd501d06025
2,557
py
Python
nicos_mlz/pgaa/devices/sampledevices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/pgaa/devices/sampledevices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/pgaa/devices/sampledevices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2022 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
37.057971
79
0.625342
1,343
0.525225
0
0
0
0
0
0
1,423
0.556512
cff1495f394175c6790d78adf453d9a0c02b8fdf
685
py
Python
leetcode-python/num179.py
shuaizi/leetcode
c943410575f380a00335bf5ac8d361af53a92d78
[ "Apache-2.0" ]
null
null
null
leetcode-python/num179.py
shuaizi/leetcode
c943410575f380a00335bf5ac8d361af53a92d78
[ "Apache-2.0" ]
null
null
null
leetcode-python/num179.py
shuaizi/leetcode
c943410575f380a00335bf5ac8d361af53a92d78
[ "Apache-2.0" ]
null
null
null
__author__ = 'shuai' class Solution: # @param {integer[]} nums # @return {string} def largestNumber(self, nums): ret = "" for i in range(len(nums)): for j in range(i + 1, len(nums)): str_i = str(nums[i]) str_j = str(nums[j]) if st...
27.4
50
0.437956
600
0.875912
0
0
0
0
0
0
93
0.135766
cff1bfd2524009743a7797d9402b729d8f50fc4a
1,907
py
Python
lama/tests/test_data_generation.py
antshp-vc/LAMA
2cef058cae160d775fbacd65bff717f10330475a
[ "Apache-2.0" ]
null
null
null
lama/tests/test_data_generation.py
antshp-vc/LAMA
2cef058cae160d775fbacd65bff717f10330475a
[ "Apache-2.0" ]
null
null
null
lama/tests/test_data_generation.py
antshp-vc/LAMA
2cef058cae160d775fbacd65bff717f10330475a
[ "Apache-2.0" ]
null
null
null
""" Test the steps needed to generate wild type and mutant data for use in the statistical analysis Usage: pytest -v -m "not notest" test_data_generation.py The use of -m "not notest" is to be able to omit certain tests with the @pytest.mark.notest decorator """ from pathlib import Path from lama.registration_pipeli...
33.45614
114
0.750393
0
0
0
0
488
0.255899
0
0
860
0.45097
cff23a15ff1214959fa2e3d85c5cc6d66b104339
42
py
Python
dvc/repo/install.py
kaiogu/dvc
ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7
[ "Apache-2.0" ]
3
2020-01-31T05:33:14.000Z
2021-05-20T08:19:25.000Z
dvc/repo/install.py
kaiogu/dvc
ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7
[ "Apache-2.0" ]
null
null
null
dvc/repo/install.py
kaiogu/dvc
ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7
[ "Apache-2.0" ]
1
2019-09-02T00:29:40.000Z
2019-09-02T00:29:40.000Z
def install(self): self.scm.install()
14
22
0.666667
0
0
0
0
0
0
0
0
0
0
cff38ffb9953a78d832f2d9e41f612523b84e3e1
4,265
py
Python
custom_components/pioneer_async/config_flow.py
2t0m/ha-pioneer_async
bc0361536b257eb9059c0ba5cfa6103e1907f8cb
[ "Apache-2.0" ]
null
null
null
custom_components/pioneer_async/config_flow.py
2t0m/ha-pioneer_async
bc0361536b257eb9059c0ba5cfa6103e1907f8cb
[ "Apache-2.0" ]
null
null
null
custom_components/pioneer_async/config_flow.py
2t0m/ha-pioneer_async
bc0361536b257eb9059c0ba5cfa6103e1907f8cb
[ "Apache-2.0" ]
null
null
null
"""Config flow for pioneer_async integration.""" import logging import voluptuous as vol from homeassistant import config_entries, core, exceptions from homeassistant.const import ( CONF_HOST, CONF_PORT, CONF_SCAN_INTERVAL, CONF_TIMEOUT, ) from homeassistant.core import callback from .pioneer_avr imp...
32.807692
97
0.637749
2,971
0.6966
0
0
184
0.043142
2,847
0.667526
937
0.219695
cff54bf21d2c7f73c7e6e904fd48c71ab9313a53
253
py
Python
invitation/admin.py
volrath/django-invitation-backend
aaab733be53c3626efcb762f5a85793a0963e876
[ "BSD-3-Clause" ]
1
2019-06-27T13:58:43.000Z
2019-06-27T13:58:43.000Z
invitation/admin.py
volrath/django-invitation-backend
aaab733be53c3626efcb762f5a85793a0963e876
[ "BSD-3-Clause" ]
null
null
null
invitation/admin.py
volrath/django-invitation-backend
aaab733be53c3626efcb762f5a85793a0963e876
[ "BSD-3-Clause" ]
3
2015-03-29T17:45:02.000Z
2021-05-10T15:49:40.000Z
from __future__ import absolute_import from django.contrib import admin from .models import Invitation class InvitationAdmin(admin.ModelAdmin): list_display = ('user', 'email', 'expiration_date') admin.site.register(Invitation, InvitationAdmin)
23
55
0.798419
96
0.379447
0
0
0
0
0
0
30
0.118577
cff5e002899e3ed1c30ff51720ac0be6ed86fc5b
6,316
py
Python
TwoTimeScaleHybridLearning/src/comparison_poc_3.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
TwoTimeScaleHybridLearning/src/comparison_poc_3.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
TwoTimeScaleHybridLearning/src/comparison_poc_3.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
import argparse import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import pickle as pkl import common.config as cfg from common.utils import Struct matplotlib.rcParams.update({'font.size': 24}) matplotlib.rcParams['lines.linewidth'] = 2.5 matplotlib.rcParams['...
36.72093
80
0.651203
0
0
0
0
0
0
0
0
867
0.13727
cff74728899c8059dabaf8a45e44b747f83f7f39
23
py
Python
classifier/__init__.py
django-stars/django-classifier
d2f207c80b47f755be2e23fc472a838e440088d4
[ "BSD-3-Clause" ]
26
2016-09-01T05:11:57.000Z
2021-09-01T03:38:54.000Z
classifier/__init__.py
django-stars/django-classifier
d2f207c80b47f755be2e23fc472a838e440088d4
[ "BSD-3-Clause" ]
2
2017-04-01T08:48:58.000Z
2018-05-02T13:43:16.000Z
classifier/__init__.py
django-stars/django-classifier
d2f207c80b47f755be2e23fc472a838e440088d4
[ "BSD-3-Clause" ]
2
2017-04-01T08:45:12.000Z
2018-05-01T16:40:17.000Z
VERSION = (0, 2, 2, 1)
11.5
22
0.478261
0
0
0
0
0
0
0
0
0
0
cff7f0dca5d382c69b5e9605f440ff2bd5bd0d15
638
py
Python
code/ex3.2-aio_multiple_requests.py
MA3STR0/PythonAsyncWorkshop
e7ecbcf602be4e858b6b7415335da5fa35018605
[ "MIT" ]
2
2015-11-26T15:33:28.000Z
2015-11-29T23:28:34.000Z
code/ex3.2-aio_multiple_requests.py
MA3STR0/PythonAsyncWorkshop
e7ecbcf602be4e858b6b7415335da5fa35018605
[ "MIT" ]
null
null
null
code/ex3.2-aio_multiple_requests.py
MA3STR0/PythonAsyncWorkshop
e7ecbcf602be4e858b6b7415335da5fa35018605
[ "MIT" ]
3
2017-07-25T08:02:15.000Z
2020-10-26T10:06:15.000Z
import asyncio import aiohttp import time URLS = [ 'http://127.0.0.1:8000', 'http://127.0.0.1:8000', 'http://127.0.0.1:8000', ] @asyncio.coroutine def request_greetings(): response_tasks = yield from asyncio.wait([aiohttp.get(url) for url in URLS]) text_tasks = yield from asyncio.wait( [ta...
23.62963
80
0.673981
0
0
296
0.46395
315
0.49373
0
0
89
0.139498
cff94841fb558efbf47ac2efacf5957f299d35b0
394
py
Python
utils.py
sidchilling/zerodha_TA
b1c67cfdc16e8ef569f13c8529621322d0eadb27
[ "Apache-2.0" ]
13
2018-04-12T06:03:44.000Z
2021-05-22T22:42:53.000Z
utils.py
sidchilling/zerodha_TA
b1c67cfdc16e8ef569f13c8529621322d0eadb27
[ "Apache-2.0" ]
null
null
null
utils.py
sidchilling/zerodha_TA
b1c67cfdc16e8ef569f13c8529621322d0eadb27
[ "Apache-2.0" ]
15
2018-12-28T21:34:46.000Z
2022-01-16T14:54:05.000Z
from mongoengine import * from models import * def get_symbol_data(symbol): db_client = connect(db = 'stocks_db') data = [] for sp in StockPrice.objects(symbol = symbol).order_by('date'): data.append({ 'date': sp.date, 'open': sp.open, 'high': sp.high, 'low': sp.low, 'close': sp...
23.176471
65
0.604061
0
0
0
0
0
0
0
0
55
0.139594
cff9ae37ed184a7106978b35ce97b96f7c324bca
1,434
py
Python
sa/profiles/HP/GbE2/get_mac_address_table.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/HP/GbE2/get_mac_address_table.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/HP/GbE2/get_mac_address_table.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # HP.GbE2.get_mac_address_table # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # N...
34.97561
79
0.456764
948
0.661088
0
0
0
0
0
0
473
0.329847
cff9d5239b3700f0d9618adc535bbe162bd56f31
65
py
Python
setup.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
setup.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
setup.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
import setuptools if __name__ == "main": setuptools.setup()
13
22
0.692308
0
0
0
0
0
0
0
0
6
0.092308
cffa548efb720426a20010047da63946608d1f48
1,628
py
Python
src/api_trt/prepare_models.py
a7ypically/InsightFace-REST
8436a9308ba335102ae059f57a4fc83c5e7098b5
[ "Apache-2.0" ]
null
null
null
src/api_trt/prepare_models.py
a7ypically/InsightFace-REST
8436a9308ba335102ae059f57a4fc83c5e7098b5
[ "Apache-2.0" ]
null
null
null
src/api_trt/prepare_models.py
a7ypically/InsightFace-REST
8436a9308ba335102ae059f57a4fc83c5e7098b5
[ "Apache-2.0" ]
null
null
null
import os import logging from modules.utils.helpers import parse_size, tobool, validate_max_size from modules.model_zoo.getter import prepare_backend from modules.configs import Configs from env_parser import EnvConfigs log_level = os.getenv('LOG_LEVEL', 'INFO') logging.basicConfig( level=log_level, format='...
30.716981
105
0.687961
0
0
0
0
0
0
0
0
161
0.098894
cffa6ded7c7c5d1fba7de3158859d833e3843ca3
8,202
py
Python
TUI/ScriptMenu.py
r-owen/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2015-04-29T20:28:20.000Z
2015-04-29T20:28:20.000Z
TUI/ScriptMenu.py
ApachePointObservatory/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2017-06-05T22:53:58.000Z
2017-06-05T22:53:58.000Z
TUI/ScriptMenu.py
r-owen/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2020-01-28T06:28:02.000Z
2020-01-28T06:28:02.000Z
#!/usr/bin/env python """Creates the Script menu. To Do: - add html help; note that this will have to be fed to ScriptWdg, RO.ScriptWdg has no idea of TUI help History: 2004-07-19 ROwen 2004-08-11 ROwen Modified for updated RO.Wdg.Toplevel. 2004-08-23 ROwen Added some diagnostic print statements (commented ou...
35.353448
106
0.588881
6,116
0.745672
0
0
0
0
0
0
3,890
0.474275