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
79ee257a6e81aff9dbeef481d3f2ffa679f4e55f
261
py
Python
reamber/bms/lists/notes/BMSNoteList.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/bms/lists/notes/BMSNoteList.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/bms/lists/notes/BMSNoteList.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
from abc import ABC from typing import List, Type from reamber.base.lists.notes.NoteList import NoteList class BMSNoteList(NoteList, ABC): def data(self) -> List[Type]: pass def samples(self) -> List[float]: return self.attribute('sample')
20.076923
54
0.708812
151
0.578544
0
0
0
0
0
0
8
0.030651
79f09ed1e6c670a4cc53df338ad3c26a6ed400c3
25,785
py
Python
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
import os import sys import re import json import logging ###from pylons import request, response, session, app_globals, tmpl_context, url as c, config from pylons import request, response, session, app_globals, tmpl_context as c, config, url from pylons.controllers.util import abort, redirect from pylons.decorators ...
46.967213
160
0.542408
24,596
0.953888
0
0
69
0.002676
0
0
10,088
0.391235
79f1612b542eb9d1c94aaf73dc2f5954230da328
5,305
py
Python
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
import flair import numpy as np import spacy import tensorflow_hub as hub import torch from flair.data import Sentence from flair.models import SequenceTagger from nltk.tokenize.treebank import TreebankWordDetokenizer from sklearn.metrics.pairwise import cosine_similarity from string import punctuation from transformer...
32.746914
112
0.684826
3,163
0.59623
0
0
2,768
0.521772
0
0
554
0.10443
79f1aa731dd46a3731e4a9c3f27085c9eb89008f
765
py
Python
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
2
2022-01-18T08:57:13.000Z
2022-01-18T15:49:06.000Z
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
# Insert Interval class Solution: def insert(self, intervals, newInterval): ans = [] [nst, nen] = newInterval for index, [st, en] in enumerate(intervals): if en < nst: ans.append(intervals[index]) elif nen < st: # can return now ...
26.37931
52
0.491503
519
0.678431
0
0
0
0
0
0
43
0.056209
79f1af18baf4d6560c556e9a2520a03a8a86dced
25,595
py
Python
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-03-14T05:30:59.000Z
2021-11-21T20:05:22.000Z
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
null
null
null
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-02-14T14:30:46.000Z
2021-01-05T09:46:19.000Z
# encoding: UTF-8 """" 基于布林带的交易策略 观察周期:1min 策略周期:5min 策略逻辑: 1. 信号:突破上轨、下轨 2. 过滤:均线多头、空头排列 3. 出场:分级止盈;固定止损 """ import talib import numpy as np from cyvn.trader.vtObject import VtBarData from cyvn.trader.vtConstant import EMPTY_STRING from cyvn.trader.app.ctaStrategy.ctaTemplate import CtaTemplate, BarGenerator, Arr...
44.513043
149
0.477789
23,975
0.877659
0
0
0
0
0
0
14,309
0.523813
79f212ed18232d9a20e96553e02496b414e7481c
4,577
py
Python
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
16
2016-02-05T22:49:16.000Z
2020-03-20T13:28:05.000Z
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
null
null
null
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import re from selenium import webdriver from xvfbwrapper import Xvfb from cabu.exceptions import DriverException from cabu.utils.headers import Headers from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium import webdriver try: from urllib....
27.908537
91
0.674022
0
0
0
0
0
0
0
0
2,022
0.441774
79f2f4f6a2d2f8e60e91d2acbe593d63a614519c
3,256
py
Python
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
import pygame as pg display = pg.display.set_mode((900,600)) clock = pg.time.Clock() jump = 10 step = 0 img = 0 left = [pg.image.load('images/character/l1.png'),pg.image.load('images/character/l2.png'),pg.image.load('images/character/l3.png'),pg.image.load('images/character/l4.png'),pg.image.load('images/character/l5.p...
35.010753
337
0.601658
412
0.126536
0
0
0
0
0
0
733
0.225123
79f5d77b9f83d003e02c37ef124000f10f0cba55
1,721
py
Python
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import picamera import file_utils import os class PiCam: """ Uses Raspberry Pi camera. http://picamera.readthedocs.org/en/release-1.9/api.html """ def __init__(self): self.camera = picamera.PiCamera() """ PiCamera properties default values camera....
30.732143
88
0.635096
1,650
0.958745
0
0
0
0
0
0
1,203
0.699012
79f61a5d75644c8b4cf9fd950bb95e70f2f7c3a4
176
py
Python
configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
481
2021-11-16T07:04:23.000Z
2022-03-31T22:21:21.000Z
configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
72
2021-11-16T12:25:55.000Z
2022-03-28T13:10:45.000Z
configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
48
2021-11-16T06:48:46.000Z
2022-03-30T12:46:40.000Z
_base_ = [ '../_base_/models/flownets.py', '../_base_/datasets/flyingchairs_384x448.py', '../_base_/schedules/schedule_s_long.py', '../_base_/default_runtime.py' ]
29.333333
76
0.676136
0
0
0
0
0
0
0
0
144
0.818182
79f79e5f95dc0076b2de1960b25234f4a6fcedce
559
py
Python
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
from CalibTracker.SiStripCommon.shallowTree_test_template import * process.TFileService.fileName = 'test_shallowRechitClustersProducer.root' process.load('RecoTracker.TrackProducer.TrackRefitters_cff') process.load('CalibTracker.SiStripCommon.ShallowRechitClustersProducer_cfi') process.testTree = cms.EDAnalyzer( "S...
31.055556
76
0.781753
0
0
0
0
0
0
0
0
204
0.364937
79fcc9de775f5e6d9c7b155ff6baf8f84042ddd0
10,468
py
Python
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
null
null
null
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
11
2021-11-10T08:36:22.000Z
2022-03-21T08:31:17.000Z
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
null
null
null
from typing import Sequence import numpy as np import h5py from easistrain.EDD.io import ( create_info_group, peak_dataset_data, save_fit_data, ) from easistrain.EDD.utils import fit_detector_data, run_from_cli def fitEDD( fileRead: str, fileSave: str, sample: str, dataset: str, scanNu...
39.353383
122
0.579862
0
0
0
0
0
0
0
0
2,509
0.239683
79fed91a69796e9dd746aca3006eba9ad9ef6ac5
2,082
py
Python
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2015-05-29T21:51:37.000Z
2015-05-29T21:51:37.000Z
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2015-06-01T15:46:42.000Z
2015-06-01T15:46:42.000Z
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2018-11-05T23:10:40.000Z
2018-11-05T23:10:40.000Z
from sys import argv script, filename = argv print "We are going to erase %r." % filename print "If you don't want that, hit CTRL-C (^C)." print "If you do want that, hit RETURN." raw_input("?") print "Opening the file..." target = open(filename, 'w') print "Truncating the file. Goodbye!" target.truncate() print ...
29.323944
119
0.690202
0
0
0
0
0
0
0
0
1,687
0.810279
79fef4a09e4a04c87e9e0cbe5fb5877f2eda72c8
408
py
Python
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
null
null
null
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
16
2018-11-10T21:46:40.000Z
2018-11-11T15:08:36.000Z
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-11-01 14:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='verify_code', fie...
20.4
49
0.583333
315
0.772059
0
0
0
0
0
0
86
0.210784
79ff61229ec05e724a4cf127b02b53f7784410b1
599
py
Python
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
from django.test import TestCase from filler.plain_classes.teams_data import TeamsData class TestTeamsData(TestCase): def test_participants_none(self): with self.assertRaises(AssertionError): TeamsData(participants=None, actions=['Action'], dates=['Date']) def test_actions_none(self): ...
31.526316
76
0.69783
508
0.84808
0
0
0
0
0
0
40
0.066778
03004212ee99b61faeb0548d5a85b4b203430ddc
2,784
py
Python
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
null
null
null
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
null
null
null
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
1
2020-04-18T16:47:57.000Z
2020-04-18T16:47:57.000Z
from dungeon_model import Monsters, Players import re import math def initiative_sort(init_order): """sorts all the characters for a given combat by initiative""" print("passed into sort function: ", init_order) for i in range(len(init_order)): check = init_order[i] print("the check is: ",...
31.636364
67
0.530532
0
0
0
0
0
0
0
0
500
0.179598
03007634c85b96a08566af89f356d770fc155ed9
2,306
py
Python
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
12
2021-11-18T15:01:17.000Z
2022-02-22T16:17:42.000Z
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
2
2022-01-22T00:41:13.000Z
2022-02-01T15:41:42.000Z
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
1
2022-01-26T22:44:07.000Z
2022-01-26T22:44:07.000Z
def infoGAN_encoder(params,is_training): is_training = tf.constant(is_training, dtype=tf.bool) def encoder(x): with tf.variable_scope('model/encoder',['x'], reuse=tf.AUTO_REUSE): net = lrelu(conv2d(x, 64, 4, 4, 2, 2, name='conv1', use_sn=True)) net = conv2d(net, 128, 4, 4, 2...
42.703704
196
0.602342
0
0
0
0
0
0
0
0
407
0.176496
03018f2878f299da32e5fb359237991d538d5f69
288
py
Python
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
# administrative username and password for development ADMIN_USERNAME = 'admin' ADMIN_PASSWORD = 'password' ADMIN_TYPE = 'admin' # for production # ADMIN_USERNAME = 'environ.get('ADMIN_USERNAME') # ADMIN_PASSWORD = 'environ.get('ADMIN_PASSWORD') # ADMIN_TYPE = 'environ.get('ADMIN_TYPE')
32
54
0.770833
0
0
0
0
0
0
0
0
233
0.809028
0301c782c51b1c6595901ee0b2e38930f8a7ecd2
2,344
py
Python
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
1
2022-03-09T20:44:27.000Z
2022-03-09T20:44:27.000Z
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
null
null
null
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
null
null
null
from agents.agent import Agent from models.actor_critic_mlp import ActorCriticMLP import numpy as np import torch import torch.optim as optim from utils import plot_grad_flow class A2C(Agent): def __init__( self, state_size, action_size, hidden_size, memory, lr, ...
27.904762
83
0.58959
2,166
0.924061
0
0
0
0
0
0
45
0.019198
03026b2e47c7dd4c6d92ff2379d10e3b1de12161
329
py
Python
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
from common import google_cloud class GANTrainParameters(): def __init__(self): self.num_epochs = 2000 self.batch_size = 10000 self.num_steps = 1 self.lr_d = 0.01 self.lr_g = 0.001 if not google_cloud: self.batch_size = 1 training_param = GANTrainPara...
19.352941
37
0.620061
254
0.772036
0
0
0
0
0
0
0
0
0306c30fc6b959f99f270569a581136d38981cb5
8,672
py
Python
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen, based on code from Ross Girshick # -------------------------------------------------------- """ Demo script showing detections...
32.479401
148
0.602975
0
0
0
0
0
0
0
0
2,269
0.261647
0306f469c225a6dd8f6632d28c4cbdab089a9d7c
107,563
py
Python
platform/core/tests/test_experiments/test_views.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_experiments/test_views.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_experiments/test_views.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
# pylint:disable=too-many-lines import os import time from faker import Faker from unittest.mock import patch import pytest from hestia.internal_services import InternalServices from rest_framework import status import conf import stores from api.experiments import queries from api.experiments.serializers import (...
40.914036
100
0.638826
104,201
0.968744
0
0
105,101
0.977111
0
0
11,055
0.102777
030752d970037ce742be150222524d388e311557
6,705
py
Python
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
import pygame import speech_recognition as sr from time import sleep import events import objects as obj_types from settings import SPEECH_CRED_FILE from speech_helpers import correct_text, either_side, get_after, get_position, get_positions, get_size, is_in_objects, process_relative, select_obj_type # A variable lis...
35.104712
207
0.595824
0
0
0
0
0
0
0
0
1,481
0.22088
03094a8fb0cb1c5dd1e571be669375786508c47f
403
py
Python
oacensus/exceptions.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
null
null
null
oacensus/exceptions.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
2
2016-01-10T20:23:41.000Z
2016-01-14T16:57:06.000Z
oacensus/exceptions.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
null
null
null
class OacensusError(Exception): pass class UserFeedback(OacensusError): """ An exception which was caused by user input or a runtime error and which should be presented nicely. """ class ConfigFileFormatProblem(UserFeedback): """ A problem with config files. """ pass class APIErro...
19.190476
76
0.665012
396
0.98263
0
0
0
0
0
0
216
0.53598
0309577959891e0612c1c6a69dda2ed2d8030359
600
py
Python
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
import gin from colosseum.loops import human_loop from colosseum.mdps import EpisodicMDP from colosseum.mdps.river_swim.river_swim import RiverSwimMDP @gin.configurable class RiverSwimEpisodic(EpisodicMDP, RiverSwimMDP): @property def _graph_layout(self): return {node: tuple(node) for node in self.G}...
21.428571
61
0.691667
148
0.246667
0
0
166
0.276667
0
0
46
0.076667
0309958523ceb32502c420f13cb24f00e9e388b5
428
py
Python
mpfmc/tests/_test_Template.py
arthurlutz/mpf-mc
6f4aac5d48eb07dd5aa6612985a7567af8577ce2
[ "MIT" ]
16
2016-01-07T18:17:55.000Z
2022-03-27T14:29:42.000Z
mpfmc/tests/_test_Template.py
arthurlutz/mpf-mc
6f4aac5d48eb07dd5aa6612985a7567af8577ce2
[ "MIT" ]
308
2016-04-10T18:33:40.000Z
2021-11-17T21:38:49.000Z
mpfmc/tests/_test_Template.py
arthurlutz/mpf-mc
6f4aac5d48eb07dd5aa6612985a7567af8577ce2
[ "MIT" ]
39
2016-02-23T23:49:20.000Z
2021-11-08T04:50:12.000Z
# How to add a test: # Copy this file # Rename TestTemplate to TestWhatever in line 9 # Rename machine path and config file in lines 11 and 14 from mpfmc.tests.MpfMcTestCase import MpfMcTestCase class TestTemplate(MpfMcTestCase): def get_machine_path(self): return 'tests/machine_files/test_template' ...
23.777778
56
0.733645
229
0.535047
0
0
0
0
0
0
194
0.453271
030a4c184f24d64d17b407ffa5bf671b2f098cd9
3,366
py
Python
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/availability-msgs.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _m...
44.289474
496
0.81224
0
0
0
0
0
0
0
0
1,409
0.418598
030af46d63eb07552bbcb49eb543b45022dab354
16,780
py
Python
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import datetime from okokyst_metadata import surveys_lookup_table import os import re import glob import gsw from okokyst_tools import pressure_to_depth encoding = "ISO-8859-1" __author__ = 'Elizaveta Protsenko' __email__ = '[email protected]' __created__ = datet...
35.475687
164
0.589035
10,475
0.624255
0
0
0
0
0
0
6,566
0.391299
030c7de9f7e1401c045078e46717850748e35111
5,250
py
Python
tests/unit/language/ast/test_interface_type_extension.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
tests/unit/language/ast/test_interface_type_extension.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
tests/unit/language/ast/test_interface_type_extension.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
import pytest from tartiflette.language.ast import InterfaceTypeExtensionNode def test_interfacetypeextensionnode__init__(): interface_type_extension_node = InterfaceTypeExtensionNode( name="interfaceTypeExtensionName", directives="interfaceTypeExtensionDirectives", fields="interfaceTypeE...
36.206897
78
0.616571
0
0
0
0
4,450
0.847619
0
0
2,034
0.387429
030c9f62ddfe8e4538cc0711a16b8bb6b36078a9
715
py
Python
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
5
2019-10-01T17:07:36.000Z
2020-10-30T21:01:35.000Z
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
7
2019-10-05T17:52:33.000Z
2020-10-29T04:52:29.000Z
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
50
2019-10-01T21:07:07.000Z
2021-11-05T07:15:36.000Z
'''Given two arrays, write a function to compute their intersection. ''' class Solution(object): def intersect(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ m,n=len(nums1),len(nums2) l=[] if len(nums1)...
23.833333
68
0.446154
638
0.892308
0
0
0
0
0
0
175
0.244755
030d393657be4aeb44ea123011d64e69a5d1d746
5,609
py
Python
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import json from pandas.core import frame import torch import pandas as pd import os import pickle as pkl import numpy as np import cv2 import h5py import tqdm import functools import lmdb class EGTEA_GAZE_DATASET(torch.utils.data.Dataset): def __init__(self, logger, config, ro...
33.386905
125
0.54466
5,381
0.959351
0
0
0
0
0
0
832
0.148333
030da47412e4bfcf6e77f631335b3a50a2f71685
1,092
py
Python
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
''' Merge Two Sorted Lists Asked in: Microsoft Yahoo Amazon Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists, and should also be sorted. For example, given following linked lists : 5 -> 8 -> 20 4 -> 11 -> 15 The merged ...
22.75
109
0.53022
716
0.655678
0
0
0
0
0
0
519
0.475275
030e8114c7513a4a89a8a24f6c91ba6ed8c9d8ae
299
py
Python
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
v = int(input('Digite um valor: ')) validador = 0 contador = 1 while contador < v: if v % contador == 0: validador += 1 contador +=1 if validador > 1: print(f'Esse número NÃO é primo, pois é divisível por {validador+1} números diferentes ') else: print('Esse número é primo')
27.181818
93
0.64214
0
0
0
0
0
0
0
0
130
0.423453
0310131e0454f4f269acaa1f44087c3778bd5b88
13,906
py
Python
b2handle/tests/testcases/handleclient_read_integration_test.py
mikedarcy/B2HANDLE
a14ae52110ffa4731bb9766713cd27f3d897141e
[ "Apache-2.0" ]
20
2015-10-08T12:09:43.000Z
2020-12-01T15:21:26.000Z
b2handle/tests/testcases/handleclient_read_integration_test.py
EUDAT-B2HANDLE/B2HANDLE
9c4acf94ea6d22ab8aff735e0f202b3e03d582a9
[ "Apache-2.0" ]
64
2015-09-18T09:39:50.000Z
2021-09-02T10:20:39.000Z
b2handle/tests/testcases/handleclient_read_integration_test.py
EUDAT-B2HANDLE/B2HANDLE
9c4acf94ea6d22ab8aff735e0f202b3e03d582a9
[ "Apache-2.0" ]
33
2015-08-13T10:20:17.000Z
2021-07-20T00:18:56.000Z
"""Testing methods that need Handle server read access""" import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest import requests import json import mock import b2handle from b2handle.handleclient import EUDATHandleClient from b2handle.handleexceptions import * # Load some...
40.9
116
0.648929
13,158
0.94621
0
0
0
0
0
0
4,646
0.3341
03121b48c8c35b2b0f007ab147db73d43b9f5419
10,819
py
Python
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
1
2019-06-19T09:30:39.000Z
2019-06-19T09:30:39.000Z
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
null
null
null
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # # Filename: models.py # Project: core # Author: Brian Cherinka # Created: Saturday, 12th September 2020 12:55:22 pm # License: BSD 3-clause "New" or "Revised" License # Copyright (c) 2020 Brian Cherinka # Last Modified: Saturday, 12th September 2020 12:55:22 pm # Modifie...
31.914454
100
0.634994
1,547
0.142989
0
0
158
0.014604
0
0
6,251
0.57778
03124cf711ceb00968f5cacee727fb9c26ed3485
1,458
py
Python
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
2
2019-08-12T13:47:21.000Z
2020-05-03T11:53:38.000Z
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
null
null
null
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
null
null
null
import re import html import pandas as pd re1 = re.compile(r' +') def imdb(fold_id: int, split_size: int): df = pd.read_pickle('df_train.pkl') df = df.reindex(columns=['sentiment', 'text']) df['text'] = df['text'].apply(fixup) # Split the data into k-folds. df_val = df[split_size * fold_id:split...
40.5
109
0.603567
0
0
0
0
0
0
0
0
478
0.327846
031365d53b1a04b88852c96530151afb17b9aec7
1,136
py
Python
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
8
2015-01-28T15:08:38.000Z
2021-11-17T05:27:21.000Z
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
3
2016-06-08T09:55:12.000Z
2019-09-14T12:40:46.000Z
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
1
2015-05-28T12:22:16.000Z
2015-05-28T12:22:16.000Z
from .core import Config def simple(): from optparse import OptionParser op = OptionParser(usage="\n %prog\n %prog -c config.yaml") op.add_option('-c', '--config', metavar="FILENAME", help="Configuration file to parse", dest="configfile", default=None, type="string") op.add_option...
39.172414
76
0.618838
0
0
0
0
0
0
0
0
420
0.369718
03153f7cf1c50ca8cd8cf5e6dbf17444f5fb56d1
22,597
py
Python
tests/data_namespace_test.py
XD-embedded/xd-build-core
357e4d78d35456d6906aa30151ddc989781227ab
[ "MIT" ]
1
2020-11-27T23:34:53.000Z
2020-11-27T23:34:53.000Z
tests/data_namespace_test.py
XD-embedded/xd-build-core
357e4d78d35456d6906aa30151ddc989781227ab
[ "MIT" ]
6
2015-10-30T12:22:56.000Z
2016-08-25T09:38:48.000Z
tests/data_namespace_test.py
XD-embedded/xd-build-core
357e4d78d35456d6906aa30151ddc989781227ab
[ "MIT" ]
null
null
null
from xd.build.core.data.namespace import * from xd.build.core.data.expr import Expression from xd.build.core.data.string import String from xd.build.core.data.list import List from xd.build.core.data.dict import Dict from xd.build.core.data.func import Function from xd.build.core.data.num import * import unittest cla...
34.764615
78
0.538523
22,279
0.985927
0
0
0
0
0
0
4,024
0.178077
03163282de6da6741659d1e1e50c91fdd514f086
869
py
Python
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
from google.appengine.ext import ndb from protorpc import messages from google.appengine.ext.ndb import msgprop from csvmodel import CsvModel class Stop(CsvModel): class LocationType(messages.Enum): STOP = 0 STATION = 1 class WheelchairBoarding(messages.Enum): UNKNOWN = 0 POSSI...
31.035714
66
0.714614
725
0.834292
0
0
0
0
0
0
32
0.036824
031665446c8a18e24282dac5017b301c097a262b
1,314
py
Python
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
##*** ##class Base: ## def methodBase(self): ## print("In base class") ##class child(Base): ## def methodchild(Base): ## print("In child class") ##c1=child() ##c1.methodBase() ##c1.methodchild() ##*** ##class Base: ## def ___init__(self): ## print('base') ##class child(Base): ## pass ...
14.282609
54
0.560883
809
0.615677
0
0
0
0
0
0
453
0.344749
0317d33db00641c8632076d25e16d90972c26ea2
82
py
Python
cmake-build-debug/devel/lib/python2.7/dist-packages/kinect2_tracker/msg/__init__.py
myboyhood/intention_recognize
30e2b7e4e8c8a5df59989500ff92a0b807cf15f2
[ "MIT" ]
null
null
null
cmake-build-debug/devel/lib/python2.7/dist-packages/kinect2_tracker/msg/__init__.py
myboyhood/intention_recognize
30e2b7e4e8c8a5df59989500ff92a0b807cf15f2
[ "MIT" ]
null
null
null
cmake-build-debug/devel/lib/python2.7/dist-packages/kinect2_tracker/msg/__init__.py
myboyhood/intention_recognize
30e2b7e4e8c8a5df59989500ff92a0b807cf15f2
[ "MIT" ]
null
null
null
from ._bounding_box import * from ._user_IDs import * from ._user_points import *
20.5
28
0.780488
0
0
0
0
0
0
0
0
0
0
031a0bb9c7e7eb89c3804e46ae64112b02ade8a2
1,701
py
Python
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
import appdaemon.plugins.hass.hassapi as hass # # Listen for presence sensor change state and change alarm control panel state. # # Args: # sensor - home presence 'sensor' # ha_panel - alarm control panel entity (to arm and disarm). # constraint - (optional, input_boolen), if turned off - alarm panel will be n...
36.978261
97
0.680188
1,299
0.763668
0
0
0
0
0
0
661
0.388595
031c6ddb51fddc4e6b54071f60cd8121116d2c91
398
py
Python
general/scry_message.py
kcunning/gamemaster-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
15
2019-01-17T20:09:45.000Z
2022-01-05T15:56:32.000Z
general/scry_message.py
palikhov/CnM-GM-RPG-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
5
2020-04-27T19:48:54.000Z
2022-03-11T23:39:49.000Z
general/scry_message.py
palikhov/CnM-GM-RPG-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
8
2019-02-20T21:18:46.000Z
2021-04-30T03:43:20.000Z
from random import randint import datetime lvl = 10 base_rounds = 10 rounds = lvl * base_rounds print("You have", rounds, "rounds to try to get through.") for i in range(rounds): r = randint(1, 100) print(r) if r >= 96: break print("Number of rounds:", i) if i == rounds - 1: print("Nothing ...
19.9
58
0.645729
0
0
0
0
0
0
0
0
90
0.226131
031c707ec58ef183b7c607c6546f5f047d0e3e8e
272
py
Python
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
from ._version import get_versions from .contexts import cd from .prompting import error, prompt, status, success from .unix import cp, ln_s __all__ = ["prompt", "status", "success", "error", "cp", "cd", "ln_s"] __version__ = get_versions()["version"] del get_versions
24.727273
70
0.724265
0
0
0
0
0
0
0
0
55
0.202206
031df329773b42e6e3ea2acdd1a1f8a14ec08d3e
5,566
py
Python
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
81
2020-09-04T10:54:40.000Z
2021-05-17T13:20:38.000Z
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
201
2020-08-24T08:41:33.000Z
2021-05-18T12:23:19.000Z
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
13
2020-09-08T12:34:35.000Z
2021-04-29T22:46:21.000Z
"""Test Trotter Hamiltonian methods from `qibo/core/hamiltonians.py`.""" import pytest import numpy as np import qibo from qibo import hamiltonians, K from qibo.tests.utils import random_state, random_complex, random_hermitian @pytest.mark.parametrize("nqubits", [3, 4]) @pytest.mark.parametrize("model", ["TFIM", "XXZ...
40.333333
82
0.7129
0
0
0
0
1,409
0.253144
0
0
698
0.125404
031edf024d26f78ee1dab7fb7974111571cd521e
99
py
Python
utils.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
utils.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
utils.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
import asyncio async def sleep(delay): for i in range(delay): await asyncio.sleep(0)
14.142857
30
0.656566
0
0
0
0
0
0
81
0.818182
0
0
031ef69a071c2f61a4e58bcde34b41a5a2f122f6
6,186
py
Python
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
3
2018-12-23T14:07:39.000Z
2019-10-18T03:05:39.000Z
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
20
2018-11-24T15:59:20.000Z
2019-01-30T16:42:25.000Z
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
6
2018-11-14T13:12:24.000Z
2019-01-03T02:40:49.000Z
import warnings import torch.nn as nn def conv1x1_group(in_planes, out_planes, stride=1, groups=1): """ 1x1 convolution with group, without bias - Normal 1x1 convolution when groups == 1 - Grouped 1x1 convolution when groups > 1 """ return nn.Conv2d(in_channels=in_planes, ...
30.472906
79
0.534756
4,062
0.656644
0
0
0
0
0
0
1,134
0.183317
031fd2613a36677be2ac3e5ad262f6fafd120692
1,073
py
Python
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
from sanic import Sanic from sanic.response import json from sanic_openapi import doc, swagger_blueprint from util import authorized app = Sanic(__name__) app.config["API_TITLE"] = "My-DataHub-OpenAPI" app.config["API_VERSION"] = "0.1.0" app.config["API_DESCRIPTION"] = "An example Swagger from Sanic-OpenAPI" app.co...
26.825
100
0.737185
44
0.040628
0
0
410
0.378578
63
0.058172
418
0.385965
0323bfe0266dc12dfb65c5926feae4f31ef1770b
1,323
py
Python
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- import contextlib import sqlalchemy import sqlalchemy.orm from twisted.application.service import Service from zope.interface.declarations import implementer from bouser.helpers.plugin_helpers import Dependency, BouserPlugin from .interfaces import IDataBaseService __author__ = 'mmalkov' @i...
24.962264
71
0.642479
972
0.734694
351
0.265306
1,003
0.758125
0
0
56
0.042328
03245e36530e8be45e6254760cac36f4e2d93c2b
581
py
Python
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from pydub import AudioSegment import sys import glob if __name__ == "__main__": args = sys.argv folder = glob.glob(args[1] + "/*.wav") initial = False for file in folder: soundfile = AudioSegment.from_file(file, "wav") if initial == False: soundfil...
26.409091
60
0.562823
0
0
0
0
0
0
0
0
71
0.122203
032672ab93f8bb597d47b58b260a24ea167e130b
3,996
py
Python
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
null
null
null
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
null
null
null
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
1
2021-11-22T09:20:09.000Z
2021-11-22T09:20:09.000Z
import numpy as np import pandas as pd from utils import calculate_q from scipy import stats def calculate_deg_fold_change(data1_df, data2_df, fc_cutoff=1, alternative='two-sided'): """ This function calculates differentially expressed genes (DEGs) between two DataFrames or Series...
32.754098
80
0.666667
0
0
0
0
0
0
0
0
2,309
0.577828
0326b6925c35f8d5ffa44459a0582e31350f4aa2
6,326
py
Python
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
null
null
null
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
1
2018-11-03T00:10:01.000Z
2018-11-03T00:10:01.000Z
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
2
2018-11-03T00:02:29.000Z
2018-11-03T00:11:53.000Z
""" This is a test that we're using to gather example data from our two example models. This is passed a list of image names, image numbers, and the vector representing the face in the photo, and this script takes that and a split of testing vs training data to determine how accurate the model was by simply checking wh...
42.743243
170
0.727948
0
0
0
0
0
0
0
0
3,568
0.564021
032895bcd14a3671ab5030eaa6c072fe010b5493
792
py
Python
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
1
2019-12-21T17:29:08.000Z
2019-12-21T17:29:08.000Z
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
null
null
null
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
null
null
null
import numpy as np def save_list_to_file(z_list, z_file): with open(z_file, 'w') as fw: fw.writelines(z_list) def random_split_train_test(train_file, out_train_file, out_test_file, train_percentage=0.8): with open(train_file) as fr: lines = fr.readlines() np.random.shuffle(lines) t...
36
111
0.72096
0
0
0
0
0
0
0
0
191
0.241162
032a7743edf88f77da5c9d56359f55cc608dcd5a
3,596
py
Python
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
""" Functions and classes for interacting with the CodeRED data format """ from dataclasses import dataclass from typing import List, Optional, Union import pandas as pd from .types import FilenameType # The required headers for CodeRED EXCEL_HEADERS = ( "Command", "CustomKey", "ContactId", "First Na...
26.057971
87
0.629588
1,770
0.492214
0
0
1,794
0.498888
0
0
1,238
0.344271
032c7a1695749c8763dea4e548dc9e5de7308f19
2,516
py
Python
ecommercejockey/premier/admin/inlines.py
anniethiessen/dieselr-ecommerce
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
null
null
null
ecommercejockey/premier/admin/inlines.py
anniethiessen/dieselr-ecommerce
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
11
2020-06-06T00:04:26.000Z
2022-03-12T00:57:41.000Z
ecommercejockey/premier/admin/inlines.py
anniethiessen/ecommerce-jockey
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
null
null
null
from imagekit.admin import AdminThumbnail from django.contrib.admin import TabularInline from core.admin.forms import LimitedInlineFormSet from core.admin.utils import ( get_change_view_link, get_changelist_view_link ) from ..models import PremierProduct class PremierManufacturerProductsTabularInline(Tabula...
26.208333
79
0.635135
2,248
0.893482
0
0
0
0
0
0
580
0.230525
032dd466c58aab15fcfe54642491eba4025f614d
629
py
Python
tests/test_base.py
giommok/cumulator
042e303b64976ef71a93a91aa85180f14d46c25e
[ "MIT" ]
1
2020-06-10T10:23:54.000Z
2020-06-10T10:23:54.000Z
tests/test_base.py
giommok/cumulator
042e303b64976ef71a93a91aa85180f14d46c25e
[ "MIT" ]
null
null
null
tests/test_base.py
giommok/cumulator
042e303b64976ef71a93a91aa85180f14d46c25e
[ "MIT" ]
1
2020-06-10T10:24:33.000Z
2020-06-10T10:24:33.000Z
import unittest from src.cumulator.base import Cumulator class TestBase(unittest.TestCase): def test_run(self): cumulator = Cumulator() # Test without parameters def foo(): return 1 output = cumulator.run(foo) self.assertEqual(1, output) # Tests with ...
20.290323
43
0.573927
520
0.826709
0
0
0
0
0
0
84
0.133545
032de55c5e8bb65a3b5acc0d233be5fff6131de6
4,191
py
Python
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
7
2015-01-23T17:24:04.000Z
2022-01-12T16:54:24.000Z
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
18
2017-12-09T01:11:23.000Z
2021-09-22T13:26:24.000Z
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
1
2015-06-22T02:17:55.000Z
2015-06-22T02:17:55.000Z
#!/usr/bin/python3 import argparse import logging as log from aiohttp import web from api.databasemanager import DictionaryDatabaseManager from api.dictionary import \ entry, \ definition, \ translation, \ configuration from api.dictionary import \ get_dictionary, \ get_dictionary_xml, \ g...
31.044444
92
0.720353
0
0
0
0
0
0
0
0
1,177
0.28084
032e191105068d7dcb7cfc95541e05575acdbe66
360
py
Python
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.any_uri.schema_instance.nistschema_sv_iv_list_any_uri_enumeration_1_xsd.nistschema_sv_iv_list_any_uri_enumeration_1 import ( NistschemaSvIvListAnyUriEnumeration1, NistschemaSvIvListAnyUriEnumeration1Type, ) __all__ = [ "NistschemaSvIvListAnyUriEnumeration1", "Nists...
36
162
0.861111
0
0
0
0
0
0
0
0
80
0.222222
03308bb8046fd0dc61b44e11e40b5b2918967121
3,578
py
Python
classification/libs/utils.py
96lives/matrixlstm
83332111a459dd3fbca944898fffd935faac8820
[ "Apache-2.0" ]
19
2020-08-11T09:18:28.000Z
2022-03-10T13:53:13.000Z
N-ROD/evrepr/thirdparty/matrixlstm/classification/libs/utils.py
Chiaraplizz/home
18cc93a795ce132e05b886aa34565a102915b1c6
[ "MIT" ]
4
2021-01-04T11:55:50.000Z
2021-09-18T14:00:50.000Z
N-ROD/evrepr/thirdparty/matrixlstm/classification/libs/utils.py
Chiaraplizz/home
18cc93a795ce132e05b886aa34565a102915b1c6
[ "MIT" ]
4
2020-09-03T07:12:55.000Z
2021-08-19T11:37:55.000Z
import torch import numpy as np import re import itertools from textwrap import wrap import matplotlib.pyplot as plt def padding_mask(lengths, batch_size, time_size=None): """ Computes a [batch_size, time_size] binary mask which selects all and only the non padded values in the input tensor :param t...
31.946429
97
0.671325
0
0
0
0
0
0
0
0
1,138
0.318055
03315e91b0c1b2d1e2f30824173b23c77f6b76f7
1,642
py
Python
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
1
2021-12-12T02:50:20.000Z
2021-12-12T02:50:20.000Z
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
17
2020-02-07T23:40:36.000Z
2020-12-22T16:38:44.000Z
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
null
null
null
from faq_module.storage import FAQManager # , FAQConfig, FAQData # from faq_module.commands import text # from discord.ext import commands # import faq_module.text # import logging import discord # import typing import re async def faq_on_message(faq_manager: FAQManager, message: discord.Message): embed = discor...
34.208333
122
0.685749
0
0
0
0
0
0
339
0.206456
226
0.137637
03337a286707757f1d435b3aaef9ca40f548193a
2,298
py
Python
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
from tests.utils import hass_mock, get_instances import devices as devices_module from core import Controller from core import type as type_module def _import_modules(file_dir, package): pkg_dir = os.path.dirname(file_dir) for (module_loader, name, ispkg) in pkgutil.iter_modules([pkg_dir]): if ispkg: ...
35.353846
88
0.656223
0
0
0
0
0
0
0
0
340
0.147955
0334a1705c59bb245b5883fc692d78120a2f4bb6
521
py
Python
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='iocfg', version='0.1', description='Configuration for IO modules on Novus IHM', author='Thomas Del Grande', author_email='[email protected]', packages=find_packages(), scripts=[ 'scripts/diocfg',...
26.05
62
0.621881
0
0
0
0
0
0
0
0
262
0.502879
0337794490e59afb0d50e7e70f8ff18f29c9d996
1,912
py
Python
Data Manipulation with pandas/Transforming-Data.py
shreejitverma/Data-Scientist
03c06936e957f93182bb18362b01383e5775ffb1
[ "MIT" ]
2
2022-03-12T04:53:03.000Z
2022-03-27T12:39:21.000Z
Data Manipulation with pandas/Transforming-Data.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Data Manipulation with pandas/Transforming-Data.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
2
2022-03-12T04:52:21.000Z
2022-03-27T12:45:32.000Z
# Import pandas using the alias pd import pandas as pd # Print the head of the homelessness data print(homelessness.head()) # Print the values of homelessness print(homelessness.values) # Print the column index of homelessness print(homelessness.columns) # Print the row index of homelessness print(homelessness.i...
26.929577
82
0.780335
0
0
0
0
0
0
0
0
1,075
0.562238
033779b299ba043f0969f3a671cd13882ea21786
1,599
py
Python
models/bittrex.py
etherionlab/the_token_fund_asset_parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
6
2017-06-11T19:24:36.000Z
2017-09-21T21:17:15.000Z
models/bittrex.py
baby636/the-token-fund-asset-parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
4
2017-07-24T10:57:26.000Z
2017-07-30T10:09:42.000Z
models/bittrex.py
baby636/the-token-fund-asset-parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
6
2018-08-02T05:57:11.000Z
2021-02-09T06:55:22.000Z
import aiohttp from time import time import json from hashlib import sha512 import hmac from .fetcher import Fetcher class BittrexAPI(Fetcher): _URL = 'https://bittrex.com/api/v1.1/' _KEY = None _SECRET = None def __init__(self, key, secret): if key is None or secret is None: rai...
31.98
89
0.553471
1,478
0.924328
0
0
0
0
929
0.580988
170
0.106316
0337e71422a570efc9ae28097c6195b11be45c20
8,509
py
Python
tests/executors/multicore_executor_test.py
allenai/tango
80c90caefae4ad1c3f8472718ddada912cd8fcf9
[ "Apache-2.0" ]
52
2021-09-24T17:52:34.000Z
2022-03-29T22:55:02.000Z
tests/executors/multicore_executor_test.py
allenai/tango
80c90caefae4ad1c3f8472718ddada912cd8fcf9
[ "Apache-2.0" ]
90
2021-09-29T04:23:29.000Z
2022-03-31T21:23:02.000Z
tests/executors/multicore_executor_test.py
allenai/tango
80c90caefae4ad1c3f8472718ddada912cd8fcf9
[ "Apache-2.0" ]
8
2021-11-13T01:56:22.000Z
2022-02-27T03:29:42.000Z
import time import pytest from tango.common.logging import initialize_logging from tango.common.testing import TangoTestCase from tango.executors.multicore_executor import MulticoreExecutor from tango.step_graph import StepGraph from tango.workspaces import LocalWorkspace from test_fixtures.package.steps import Sleep...
35.161157
92
0.497943
8,171
0.960277
0
0
4,284
0.503467
0
0
1,748
0.20543
033938e07676961c14e3b120f246c45a2d3f66be
1,051
py
Python
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
1
2022-02-27T18:34:57.000Z
2022-02-27T18:34:57.000Z
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
null
null
null
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
null
null
null
import cv2 import numpy as np face_classifier=cv2.CascadeClassifier('HaarCascade/haarcascade_frontalface_default.xml') def face_extractor(img): gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) faces=face_classifier.detectMultiScale(gray,1.3,5) if faces is(): return None for(x,y,w,h) in face...
30.911765
89
0.656518
0
0
0
0
0
0
0
0
129
0.12274
033ac5b42cb933ad3ddd01f9391bd47273e14726
8,611
py
Python
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
106
2019-12-06T09:02:58.000Z
2020-09-09T07:12:21.000Z
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
null
null
null
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
15
2019-12-09T05:44:28.000Z
2020-09-04T03:43:56.000Z
import time import torch from torch import nn from transformers import GPT2Tokenizer, GPT2LMHeadModel, GPT2Config import lightseq.inference as lsi from lightseq.training.ops.pytorch.quantization import ( qat_mode, QuantLinear, TensorQuantizer, weight_quant_config, ) from lightseq.training.ops.pytorch.t...
34.170635
152
0.676344
840
0.09755
0
0
0
0
0
0
1,616
0.187667
033bef35de4a5d1c411f88cd89ce77dc04b26d5f
1,748
py
Python
src/toil/server/wsgi_app.py
PolusAI/toil
a98acdb5cbe0f850b2c11403d147577d9971f4e1
[ "Apache-2.0" ]
516
2015-07-30T19:08:55.000Z
2018-07-03T20:53:42.000Z
src/toil/server/wsgi_app.py
PolusAI/toil
a98acdb5cbe0f850b2c11403d147577d9971f4e1
[ "Apache-2.0" ]
1,949
2015-07-29T23:38:49.000Z
2018-07-05T12:42:04.000Z
src/toil/server/wsgi_app.py
gmloose/toil
a82834073b28f66747c5c3ac99d1a678b82d2290
[ "Apache-2.0" ]
193
2015-07-31T18:52:57.000Z
2018-07-05T08:54:11.000Z
# Copyright (C) 2015-2021 Regents of the University of California # # 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 app...
34.27451
78
0.676201
854
0.488558
0
0
0
0
0
0
973
0.556636
033c4e6e47b886b0874ca7cd97804e2f650bcb80
623
py
Python
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
""" 1. Clarification 2. Possible solutions - Cheat - Binary search II 3. Coding 4. Tests """ # T=O(n), S=O(1) class Solution: def findMin(self, nums: List[int]) -> int: if not nums: return int(-inf) return min(nums) # T=O(lgn), S=O(1) class Solution: def findMin(self, nums: List[int]...
20.766667
46
0.507223
480
0.770465
0
0
0
0
0
0
134
0.215088
033cec1f9ccce81f5733fb9f495e2a48d763be85
1,766
py
Python
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
18
2018-01-03T23:07:26.000Z
2021-12-30T11:44:43.000Z
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
null
null
null
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
6
2018-08-09T05:17:13.000Z
2020-05-07T09:45:33.000Z
import time from unittest import TestCase import grpc_testing from grpc import StatusCode from grpc.framework.foundation import logging_pool from cowsay_client import CowsayClient from cowsay_pb2 import DESCRIPTOR as COWSAY_DESCRIPTOR, QuoteRequest, QuoteResponse from cowsay_pb2_grpc import CowsayStub target_service...
36.791667
116
0.725934
1,395
0.789921
0
0
0
0
0
0
73
0.041336
033e5296d7002695cb78ba70091a41d8f1afe514
102
py
Python
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
null
null
null
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
21
2018-04-25T19:07:41.000Z
2018-07-18T06:04:56.000Z
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
1
2018-04-23T14:44:00.000Z
2018-04-23T14:44:00.000Z
SPEC = 'swagger.yaml' IMPLEMENTATION = 'flask' OUTPUT = 'build' FLASK_SERVER_NAME = 'my_flask_server'
20.4
37
0.754902
0
0
0
0
0
0
0
0
45
0.441176
033f1ce15dd3f5451ab5ea5f76d26c2940fd06fc
4,792
py
Python
test/test_cells_shapes_api.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
3
2018-05-23T03:16:26.000Z
2020-11-07T11:42:41.000Z
test/test_cells_shapes_api.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
null
null
null
test/test_cells_shapes_api.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
4
2018-08-29T18:45:05.000Z
2021-03-25T07:59:56.000Z
# coding: utf-8 """ Web API Swagger specification No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import ...
31.946667
229
0.654215
4,070
0.849332
0
0
0
0
0
0
1,170
0.244157
033fc0bc9f7f7d57ad5f5faa0ac4b814d9cbec49
4,088
py
Python
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from source.device_manager.database import get_database_connection,release_database_connection @dataclass class ScriptInfo: id: int name: str fileName: str user: int @dataclass class Script: id: int name: str fileName: str use...
31.206107
94
0.589775
160
0.039139
0
0
182
0.044521
0
0
845
0.206703
03401c816f8f4430f92c4b87cef1da6e317a54e9
5,140
py
Python
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
20
2017-11-02T13:36:16.000Z
2021-07-23T12:44:28.000Z
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
30
2018-02-22T18:25:02.000Z
2019-11-06T15:03:34.000Z
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
9
2018-04-26T22:12:08.000Z
2020-08-06T01:04:54.000Z
#! /usr/bin/env python3 import sys import math import argparse as ap from json import dumps as jdumps from random import choices class LevelNotFoundException(Exception): pass def checkLevel(taxon, level): if level == 'species': return ('s__' in taxon) and ('t__' not in taxon) elif level == 'gen...
26.091371
78
0.510506
2,276
0.442802
0
0
217
0.042218
0
0
534
0.103891
0343d8a19a30189bafdda72fb63bd75d656dfc89
1,061
py
Python
image_collection/migrations/0004_auto_20160113_0458.py
bitmazk/django-image-collection
73b05ff825d74bdab64609b531d5305f9332b702
[ "MIT" ]
null
null
null
image_collection/migrations/0004_auto_20160113_0458.py
bitmazk/django-image-collection
73b05ff825d74bdab64609b531d5305f9332b702
[ "MIT" ]
null
null
null
image_collection/migrations/0004_auto_20160113_0458.py
bitmazk/django-image-collection
73b05ff825d74bdab64609b531d5305f9332b702
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import image_collection.models class Migration(migrations.Migration): dependencies = [ ('image_collection', '0003_auto_20160113_0445'), ] operations = [ migrations.RemoveField( ...
33.15625
193
0.629595
921
0.868049
0
0
0
0
0
0
340
0.320452
0344447ad9ea2ba9e5f78647ef0e90f1b7786110
7,913
py
Python
hw1/hollygrimm_behavior_cloner.py
andyk/homework
6f31240e7b16bb94992a87fc764839591bd034af
[ "MIT" ]
null
null
null
hw1/hollygrimm_behavior_cloner.py
andyk/homework
6f31240e7b16bb94992a87fc764839591bd034af
[ "MIT" ]
null
null
null
hw1/hollygrimm_behavior_cloner.py
andyk/homework
6f31240e7b16bb94992a87fc764839591bd034af
[ "MIT" ]
null
null
null
# Copying Holly Grimm's solution https://github.com/hollygrimm/cs294-homework/blob/master/hw1/bc.py # Copy and pasting and merging it into a copy of my behavior_cloner.py code. import argparse import pickle import os import sys import tensorflow.compat.v1 as tf import numpy as np from sklearn.model_selection import tr...
41.429319
121
0.647289
0
0
0
0
0
0
0
0
2,550
0.322255
03470a7c37dd728524a1ea76f0cbdccac1e546fa
4,397
py
Python
tree/generate.py
xi-studio/DiscreteNN
85468da14bddfe4cbe2e07071454cdbc52ef915f
[ "MIT" ]
1
2019-08-15T09:43:21.000Z
2019-08-15T09:43:21.000Z
tree/generate.py
xi-studio/DiscreteNN
85468da14bddfe4cbe2e07071454cdbc52ef915f
[ "MIT" ]
null
null
null
tree/generate.py
xi-studio/DiscreteNN
85468da14bddfe4cbe2e07071454cdbc52ef915f
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.utils.data from torch import nn, optim from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.utils import save_image import numpy as np parser = argparse.ArgumentParser(description='VAE MNIST ...
28.185897
83
0.56766
1,838
0.418012
0
0
0
0
0
0
661
0.15033
0347e93cbe7693fc7a1ee576744efea58d5d82da
4,760
py
Python
wepy/io/yahoo.py
Jul13/wepy
3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7
[ "Apache-2.0" ]
null
null
null
wepy/io/yahoo.py
Jul13/wepy
3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7
[ "Apache-2.0" ]
null
null
null
wepy/io/yahoo.py
Jul13/wepy
3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7
[ "Apache-2.0" ]
null
null
null
# Author: Gheorghe Postelnicu from datetime import date import pandas as pd from io import BytesIO from urllib.request import urlopen class Yahoo(object): # Taken from http://www.jarloo.com/yahoo_finance/ yahoo_query_params = { 'ticker': 's', 'average_daily_volume': 'a2', 'dividend_yie...
36.335878
112
0.563655
4,623
0.971218
633
0.132983
1,032
0.216807
0
0
1,456
0.305882
0348bfc3aede7a83ba1e69a06410cf061126d983
1,192
py
Python
corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sms', '0001_initial'), ] operations = [ migrations.CreateModel( name='SelfRegistrationInvitation', fields=[ ('id', models.AutoField(verbose_name='ID'...
39.733333
129
0.567114
1,148
0.963087
0
0
0
0
0
0
193
0.161913
0349c26375f078381cec8ba16ba182742669965f
397
py
Python
tests/data_elements/test_person_name.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
11
2020-08-08T21:41:54.000Z
2021-07-27T12:48:31.000Z
tests/data_elements/test_person_name.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
45
2020-03-03T14:32:16.000Z
2021-07-30T16:42:17.000Z
tests/data_elements/test_person_name.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
6
2021-10-19T09:19:22.000Z
2022-03-13T19:26:10.000Z
""" Definition of the :class:`PersonNameTestCase` class. """ from dicom_parser.data_elements.person_name import PersonName from tests.test_data_element import DataElementTestCase class PersonNameTestCase(DataElementTestCase): """ Tests for the :class:`~dicom_parser.data_elements.person_name.PersonName` ...
23.352941
63
0.755668
215
0.541562
0
0
0
0
0
0
177
0.445844
034a4ded8103d6d6dff5e4e2de1713b5fd8b65e6
1,627
py
Python
physalia/fixtures/models.py
luiscruz/physalia
364951d94e02b60092785db46a8c7a7299ffe2a4
[ "MIT" ]
13
2017-02-14T10:35:43.000Z
2021-12-11T17:33:36.000Z
physalia/fixtures/models.py
luiscruz/physalia
364951d94e02b60092785db46a8c7a7299ffe2a4
[ "MIT" ]
3
2020-02-27T12:07:21.000Z
2021-07-25T12:52:36.000Z
physalia/fixtures/models.py
luiscruz/physalia
364951d94e02b60092785db46a8c7a7299ffe2a4
[ "MIT" ]
3
2019-10-06T14:01:58.000Z
2020-03-13T15:40:30.000Z
"""Fixtures for models module.""" from physalia.models import Measurement import numpy def create_measurement(use_case='login', app_pkg='com.package', duration=2, energy_consumption=30): """Fake data for measurement.""" return Measurement( ...
33.204082
70
0.543331
0
0
0
0
0
0
0
0
329
0.202213
034a6ddc353111fc7c294d34a5c01f3d0f1260d3
1,621
py
Python
DL_Models/tf_models/Xception/Xception.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
null
null
null
DL_Models/tf_models/Xception/Xception.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
null
null
null
DL_Models/tf_models/Xception/Xception.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
1
2022-03-09T14:18:37.000Z
2022-03-09T14:18:37.000Z
import tensorflow as tf from config import config from utils.utils import * import logging from DL_Models.tf_models.ConvNet import ConvNet class XCEPTION(ConvNet): """ The Xception architecture. This is inspired by Xception paper, which describes how 'extreme' convolutions can be represented as separable ...
60.037037
164
0.732264
1,480
0.913017
0
0
0
0
0
0
574
0.354102
034fd7638dab87452398628fd889166df2e7b69c
909
py
Python
src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py
BlockResearchGroup/compas_3gs
66bd1545ce0f0034bd629753da9b8cd45fff6abd
[ "MIT" ]
9
2020-04-29T03:21:45.000Z
2022-01-23T02:54:27.000Z
src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py
BlockResearchGroup/compas_3gs
66bd1545ce0f0034bd629753da9b8cd45fff6abd
[ "MIT" ]
8
2020-01-30T15:17:17.000Z
2021-09-28T16:56:42.000Z
src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py
BlockResearchGroup/compas_3gs
66bd1545ce0f0034bd629753da9b8cd45fff6abd
[ "MIT" ]
5
2020-03-31T12:53:29.000Z
2020-12-07T21:57:50.000Z
from __future__ import print_function from __future__ import absolute_import from __future__ import division import scriptcontext as sc import compas_rhino from compas_3gs.rhino import SettingsForm from compas_3gs.rhino import ForceVolMeshObject from compas_3gs.rhino import FormNetworkObject __commandname__ = "TGS...
23.921053
124
0.624862
0
0
0
0
0
0
0
0
256
0.281628
0354caf01e13d2c8ffb045f382e909588ad189a5
786
py
Python
setup.py
rrosajp/xdcc
e8ffa143cd48745824d077a686bfc0b3f0af6193
[ "MIT" ]
7
2020-06-03T06:24:23.000Z
2022-03-09T13:00:54.000Z
setup.py
thiagotps/xdcc
e8ffa143cd48745824d077a686bfc0b3f0af6193
[ "MIT" ]
3
2020-09-26T12:52:43.000Z
2022-01-22T23:17:19.000Z
setup.py
rrosajp/xdcc
e8ffa143cd48745824d077a686bfc0b3f0af6193
[ "MIT" ]
4
2020-09-26T01:17:00.000Z
2022-02-06T19:22:04.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="xdcc", version="0.0.3", author="Thiago T. P. Silva", author_email="[email protected]", description="A simple XDCC downloader written in python3", long_description=long_descrip...
30.230769
66
0.661578
0
0
0
0
0
0
0
0
347
0.441476
035543c446ab93f942c4299a0b653ef67467158d
9,319
py
Python
draw-tsp-path.py
wenderlemes/gcc218_trabalho_pratico
e57aab3c1ebcbe92683052994de646d0f76e8eb8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
draw-tsp-path.py
wenderlemes/gcc218_trabalho_pratico
e57aab3c1ebcbe92683052994de646d0f76e8eb8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
draw-tsp-path.py
wenderlemes/gcc218_trabalho_pratico
e57aab3c1ebcbe92683052994de646d0f76e8eb8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
"""Modified code from https://developers.google.com/optimization/routing/tsp#or-tools """ # Copyright Matthew Mack (c) 2020 under CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/ from __future__ import print_function import math from ortools.constraint_solver import routing_enums_pb2 from ortools.constraint_sol...
36.402344
111
0.65962
0
0
0
0
0
0
0
0
2,129
0.228458
0355954797eb9e1fe29d671274bf1dbde8b9e917
1,162
py
Python
tests/test_billing.py
payload-code/payload-python
d7c07c679781021ff6e27c13feae22dec0f7c1bc
[ "MIT" ]
5
2020-07-11T14:07:53.000Z
2021-10-30T20:05:14.000Z
tests/test_billing.py
payload-code/payload-python
d7c07c679781021ff6e27c13feae22dec0f7c1bc
[ "MIT" ]
5
2019-12-21T17:46:09.000Z
2021-08-14T16:26:39.000Z
tests/test_billing.py
payload-code/payload-python
d7c07c679781021ff6e27c13feae22dec0f7c1bc
[ "MIT" ]
2
2019-09-16T07:32:07.000Z
2021-01-07T11:42:42.000Z
import pytest import payload as pl from .fixtures import Fixtures @pytest.fixture() def billing_schedule(processing_account, customer_account): billing_schedule = pl.BillingSchedule.create( start_date="2019-01-01", end_date="2019-12-31", recurring_frequency="monthly", type="subsc...
29.794872
70
0.722892
643
0.553356
0
0
445
0.38296
0
0
79
0.067986
0356a1edf61d31074a4a2069b0d6dd1a80c5ea43
5,415
py
Python
planners/simple.py
vincekurtz/quadruped_drake
0fed14eeb7ba33144ab740bc9afa412398f70b7e
[ "MIT" ]
9
2020-09-24T19:40:49.000Z
2022-03-23T17:24:53.000Z
planners/simple.py
vincekurtz/quadruped_drake
0fed14eeb7ba33144ab740bc9afa412398f70b7e
[ "MIT" ]
1
2022-03-15T18:42:44.000Z
2022-03-21T14:43:34.000Z
planners/simple.py
vincekurtz/quadruped_drake
0fed14eeb7ba33144ab740bc9afa412398f70b7e
[ "MIT" ]
1
2021-03-30T00:06:20.000Z
2021-03-30T00:06:20.000Z
import numpy as np from pydrake.all import * class BasicTrunkPlanner(LeafSystem): """ Implements the simplest possible trunk-model planner, which generates desired positions, velocities, and accelerations for the feet, center-of-mass, and body frame orientation. """ def __init__(self, frame_id...
38.678571
97
0.597599
5,368
0.99132
0
0
0
0
0
0
2,142
0.395568
0357185cdbc8f0ba6e573ad391b048407dabd43e
1,027
py
Python
script/shaderutil.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
script/shaderutil.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
script/shaderutil.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
import os import shadercompiler def spv_folder_to_glsl_folder(spv_folder): return os.path.join(spv_folder, '../../toy/shader') def glsl_from_spv(spv): spv_folder, spv_name = os.path.split(spv) glsl_folder = spv_folder_to_glsl_folder(spv_folder) glsl_name = spv_name[:-4] + '.glsl' glsl = os.path....
31.121212
65
0.666991
0
0
0
0
0
0
0
0
46
0.044791
0358f73562d2122131efd6aa840de358e08667b3
4,060
py
Python
accounting/migrations/0001_initial.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
3
2019-10-25T13:08:04.000Z
2020-01-05T11:29:18.000Z
accounting/migrations/0001_initial.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
9
2020-05-10T10:13:56.000Z
2022-03-11T23:33:52.000Z
accounting/migrations/0001_initial.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
3
2019-02-11T02:55:51.000Z
2020-01-05T11:29:20.000Z
# Generated by Django 2.2.13 on 2021-01-22 17:41 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Account'...
45.617978
150
0.57069
3,912
0.961652
0
0
0
0
0
0
646
0.1588
035a2fb7d90dd4fec6b4d13bde7778a72b148576
373
py
Python
acess phone.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
acess phone.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
acess phone.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
import urllib.request import cv2 import numpy as np import time URL = "http://192.168.1.3:8080/shot.jpg" while True: img_arr = np.array(bytearray(urllib.request.urlopen(URL).read()),dtype=np.uint8) img = cv2.imdecode(img_arr,-1) cv2.imshow('IPWebcam',img) q = cv2.waitKey(1) if q == ord("q"...
23.3125
85
0.632708
0
0
0
0
0
0
0
0
47
0.126005
035a72cf11a14ddfaed1b39b4cd2c2f14c4da51e
2,046
py
Python
GeneralizeDEMConsole.py
tsamsonov/generalize-dem
4e180944cd3488654240d47464cf8a0b8a7bc640
[ "Python-2.0", "OLDAP-2.7" ]
16
2017-07-10T15:28:41.000Z
2021-12-30T16:25:06.000Z
GeneralizeDEMConsole.py
tsamsonov/Small-Scale-Terrain-Generalization
4e180944cd3488654240d47464cf8a0b8a7bc640
[ "Python-2.0", "OLDAP-2.7" ]
4
2017-07-17T13:35:25.000Z
2019-12-02T20:15:28.000Z
GeneralizeDEMConsole.py
tsamsonov/generalize-dem
4e180944cd3488654240d47464cf8a0b8a7bc640
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
import sys import time import arcpy import traceback import GeneralizeDEM if __name__ == '__main__': # SET PARAMETERS HERE # -------------------------------------------------------------------- demdataset = 'X:/Work/Scripts & Tools/MY/DEMGEN/mistral' marine = 'X:/Work/Scripts & Tools/MY/DEMGEN/DEMGENE...
31.476923
79
0.540078
0
0
0
0
0
0
0
0
601
0.293744
035bef3fbb61b8fe7c70ea62e4f07f8bb9692def
559
py
Python
lang/jquery_python/read/json_python_read.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
3
2015-05-12T16:44:27.000Z
2021-02-09T00:39:24.000Z
lang/jquery_python/read/json_python_read.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
null
null
null
lang/jquery_python/read/json_python_read.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- # # json_python_read.py # # Jul/25/2014 # # --------------------------------------------------------------------- import sys sys.path.append ("/var/www/data_base/common/python_common") # from file_io import file_to_str_proc # # --------------------------------------------...
23.291667
71
0.429338
0
0
0
0
0
0
0
0
399
0.713775
035c76dc73552701e77d5f647636dafc183b09c4
534
py
Python
reports/migrations/0097_auto_20171006_0951.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
3
2020-04-26T06:28:50.000Z
2021-04-05T08:02:26.000Z
reports/migrations/0097_auto_20171006_0951.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
10
2020-06-05T17:36:10.000Z
2022-03-11T23:16:42.000Z
reports/migrations/0097_auto_20171006_0951.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
5
2021-04-08T08:43:49.000Z
2021-11-27T06:36:46.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('reports', '0096_auto_20170920_1521'), ] operations = [ migrations.AlterField( model_name='reporttype', ...
25.428571
130
0.644195
425
0.79588
0
0
0
0
0
0
149
0.279026
035ca68338c7107344756496893369eeae016a6c
513
py
Python
server/functions/calcdistance.py
yrpmsg/SCSV15
bbe953d676c082f4a30c4d5e0e0cbfcc624d969c
[ "Apache-2.0" ]
null
null
null
server/functions/calcdistance.py
yrpmsg/SCSV15
bbe953d676c082f4a30c4d5e0e0cbfcc624d969c
[ "Apache-2.0" ]
null
null
null
server/functions/calcdistance.py
yrpmsg/SCSV15
bbe953d676c082f4a30c4d5e0e0cbfcc624d969c
[ "Apache-2.0" ]
null
null
null
from math import radians, cos, sin, asin, sqrt, floor, pow import math lat1 = 11.00461011 lon1 = 76.95691543 lat2 = 11.0070471 lon2 = 76.96110704 lon1 = radians(lon1) lon2 = radians(lon2) lat1 = radians(lat1) lat2 = radians(lat2) # Haversine formula dlon = lon2 - lon1 dlat = lat2 - lat1 a = sin(...
19
63
0.62768
0
0
0
0
0
0
0
0
96
0.187135
035cf0e95ad473da5f8cd509f8390672c271dc26
3,106
py
Python
xmppserver/xmpp/mechanisms.py
ovekaaven/django-xmpp-server
aa391173b4cdfc98e2f6de29d24aa4273b3620c3
[ "MIT" ]
null
null
null
xmppserver/xmpp/mechanisms.py
ovekaaven/django-xmpp-server
aa391173b4cdfc98e2f6de29d24aa4273b3620c3
[ "MIT" ]
null
null
null
xmppserver/xmpp/mechanisms.py
ovekaaven/django-xmpp-server
aa391173b4cdfc98e2f6de29d24aa4273b3620c3
[ "MIT" ]
null
null
null
from slixmpp.exceptions import XMPPError from ..conf import settings mechanisms = {} def sasl_mech(): def register(mech): mechanisms[mech.name] = mech return mech return register class Mechanism(object): name = None def __init__(self, auth): self.auth = auth @staticmetho...
26.775862
75
0.603348
2,673
0.860592
0
0
1,903
0.612685
2,153
0.693175
318
0.102382
035fd4e11ff8cdfd3b51151077ef144b5f439568
108
py
Python
Python/basic/django/minimal/echo/views.py
caa06d9c/Python-examples
9d90b9a9adfc343f9fdfab814cfc2b05219d6920
[ "MIT" ]
5
2019-10-28T09:56:26.000Z
2021-09-03T04:51:18.000Z
Python/basic/django/minimal/echo/views.py
caa06d9c/Python-examples
9d90b9a9adfc343f9fdfab814cfc2b05219d6920
[ "MIT" ]
null
null
null
Python/basic/django/minimal/echo/views.py
caa06d9c/Python-examples
9d90b9a9adfc343f9fdfab814cfc2b05219d6920
[ "MIT" ]
4
2019-10-28T09:56:30.000Z
2021-09-03T04:51:23.000Z
from django.http import HttpResponse def index(request): return HttpResponse(request.get_full_path())
18
48
0.787037
0
0
0
0
0
0
0
0
0
0
03622d2bea5b69bb3cd39b0a8ca6acd8476b6fd0
1,258
py
Python
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
class Player: def __init__(self, id, rating=1000, win_count=0, lose_count=0, win_streak=0, best_win_streak=0): self.id = id self.rating = rating self.win_count = win_count self.lose_count = lose_count self.win_streak = win_streak self.best_win_streak = best_win_streak...
27.347826
100
0.582671
1,257
0.999205
0
0
0
0
0
0
178
0.141494
0362625fd6644541d017afd28f886693da68a5e3
7,625
py
Python
arcade/examples/sprite_rotate_tank.py
DragonMoffon/arcade
98fb1809363ccc537d6852be487aeae0b5fb7fb8
[ "MIT" ]
null
null
null
arcade/examples/sprite_rotate_tank.py
DragonMoffon/arcade
98fb1809363ccc537d6852be487aeae0b5fb7fb8
[ "MIT" ]
null
null
null
arcade/examples/sprite_rotate_tank.py
DragonMoffon/arcade
98fb1809363ccc537d6852be487aeae0b5fb7fb8
[ "MIT" ]
null
null
null
""" Sprite Rotation With A Tank. Vehicles or tower defense turrets can have parts that can rotate toward targets. These parts are usually represented with separate sprites drawn relative to attachment points on the main body. Because these sprites are usually asymmetrical, we have to rotate them around their attachme...
37.377451
106
0.610098
6,365
0.834754
0
0
780
0.102295
0
0
2,712
0.355672
03636efc34bffdf5e5bc02cd6599c5ce0ac214e9
4,913
py
Python
api/modules/github/views.py
prabhakar267/travel-mate-server
2e0aa7c6ac9963c1ee95bda5966be01293935ded
[ "MIT" ]
43
2018-05-23T10:03:40.000Z
2021-09-02T15:55:52.000Z
api/modules/github/views.py
prabhakar267/travel-mate-server
2e0aa7c6ac9963c1ee95bda5966be01293935ded
[ "MIT" ]
141
2018-05-24T16:03:12.000Z
2021-04-30T23:47:59.000Z
api/modules/github/views.py
prabhakar267/travel-mate-server
2e0aa7c6ac9963c1ee95bda5966be01293935ded
[ "MIT" ]
77
2018-06-13T13:51:31.000Z
2021-06-16T16:10:18.000Z
import datetime import requests import requests_cache from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from api.commonresponses import DOWNSTREAM_ERROR_RESPONSE from api.modules.github import constants from api.modules.github.github_response...
36.664179
101
0.612864
0
0
0
0
4,470
0.909831
0
0
1,015
0.206595
0363aea6f2b2de0d16d88b97f4debf89e249ba5b
1,574
py
Python
pythonfiles/testphone_pythonfiles/test_phone/music/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
1
2022-03-04T01:03:50.000Z
2022-03-04T01:03:50.000Z
pythonfiles/testphone_pythonfiles/test_phone/music/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
null
null
null
pythonfiles/testphone_pythonfiles/test_phone/music/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
1
2022-03-04T01:03:53.000Z
2022-03-04T01:03:53.000Z
import os # import pygame from mutagen.mp3 import MP3 import time from classuiui import MyFrame1 import wx # import thread import threading import multiprocessing from playsound import playsound from test001 import MyFrame1 # file="cd&&cd music&&cd&&StarSky.mp3" # os.system(file) # pygame.mixer.init() # audio = MP3("...
21.561644
130
0.629606
617
0.378528
0
0
0
0
0
0
788
0.483436
03653eb422190ef08509f026b301a5cf2cb389bc
787
py
Python
demo/testout.py
yvr1037/fenghuo-project-of-mmdet
7d51c087aa36fd39c8e844fbbe15a28e952a22a5
[ "Apache-2.0" ]
2
2021-12-24T13:22:51.000Z
2022-01-23T15:36:22.000Z
demo/testout.py
yvr1037/fenghuo-project-of-mmdet
7d51c087aa36fd39c8e844fbbe15a28e952a22a5
[ "Apache-2.0" ]
null
null
null
demo/testout.py
yvr1037/fenghuo-project-of-mmdet
7d51c087aa36fd39c8e844fbbe15a28e952a22a5
[ "Apache-2.0" ]
null
null
null
import mmcv import os import numpy as np from mmcv.runner import load_checkpoint from mmdet.models import build_detector from mmdet.apis import init_detector, inference_detector import torch # device = torch.device("cpu") # os.environ["CUDA_VISIBLE_DEVICES"]="" # import pdb; pdb.set_trace() config_file = '../configs/...
32.791667
93
0.787802
0
0
0
0
0
0
0
0
398
0.505718