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
cdb91795db8c176b9e6d1d2b0ffc0bc2b063adbd
857
py
Python
Lessons/Chapter9Exercise1.py
Luderio/Scientific-Computing-with-Python
c7eebcc3b46b68b3d5c08ad25fb802ae9ff42f7f
[ "MIT" ]
null
null
null
Lessons/Chapter9Exercise1.py
Luderio/Scientific-Computing-with-Python
c7eebcc3b46b68b3d5c08ad25fb802ae9ff42f7f
[ "MIT" ]
null
null
null
Lessons/Chapter9Exercise1.py
Luderio/Scientific-Computing-with-Python
c7eebcc3b46b68b3d5c08ad25fb802ae9ff42f7f
[ "MIT" ]
null
null
null
wordCounter = dict() while True : inputFile = input('Enter a file: ') try : fileName = open(inputFile) except : fileName = 'invalid' if fileName == 'invalid' : if inputFile == 'done' : break else : print('Invalid Input') continue ...
25.969697
70
0.574096
0
0
0
0
0
0
0
0
78
0.091015
cdb943e87aa2338b8600a2d1fc39c5fdf842f690
1,022
py
Python
iris/cli/help.py
kpanic/lymph
5681de5e65ee72efb96012608fc5189a48adafcd
[ "Apache-2.0" ]
null
null
null
iris/cli/help.py
kpanic/lymph
5681de5e65ee72efb96012608fc5189a48adafcd
[ "Apache-2.0" ]
null
null
null
iris/cli/help.py
kpanic/lymph
5681de5e65ee72efb96012608fc5189a48adafcd
[ "Apache-2.0" ]
null
null
null
from iris.cli.base import Command, format_docstring, get_command_class HELP = format_docstring(""" Usage: iris [options] <command> [<args>...] Iris is the personification of the rainbow and messenger of the gods. {COMMON_OPTIONS} Commands: instance Run a single service instance (one process). node Run ...
26.894737
77
0.671233
332
0.324853
0
0
0
0
0
0
681
0.666341
cdb9f5699b06eaa0f164fb54a701bb1fdb951c1f
3,321
py
Python
src/Featurizers/DateTimeFeaturizerData/Tools/JsonGenerator.py
Bhaskers-Blu-Org2/FeaturizersLibrary
229ae38ea233bfb02a6ff92ec3a67c1751c58005
[ "MIT" ]
15
2019-12-14T07:54:18.000Z
2021-03-14T14:53:28.000Z
src/Featurizers/DateTimeFeaturizerData/Tools/JsonGenerator.py
Lisiczka27/FeaturizersLibrary
dc7b42abd39589af0668c896666affb4abe8a622
[ "MIT" ]
30
2019-12-03T20:58:56.000Z
2020-04-21T23:34:39.000Z
src/Featurizers/DateTimeFeaturizerData/Tools/JsonGenerator.py
Lisiczka27/FeaturizersLibrary
dc7b42abd39589af0668c896666affb4abe8a622
[ "MIT" ]
13
2020-01-23T00:18:47.000Z
2021-10-04T17:46:45.000Z
# ---------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License # ---------------------------------------------------------------------- """Generates JSON files based on data previously pickled""" import lzma import o...
34.957895
82
0.504065
0
0
0
0
1,412
0.425173
0
0
1,356
0.408311
cdba82790169d516d43e4d1c83b7c0a26c10e1fe
7,152
py
Python
fer.py
MahmoudSabra1/Emotion-recognition-song-recommendation
5cad8413b6c98cee12798334009fe8942a420527
[ "MIT" ]
11
2020-11-11T14:52:05.000Z
2022-03-11T11:37:42.000Z
fer.py
MahmoudSabra1/Emotion-recognition-song-recommendation
5cad8413b6c98cee12798334009fe8942a420527
[ "MIT" ]
1
2021-06-21T06:42:59.000Z
2021-06-21T06:42:59.000Z
fer.py
MahmoudSabra1/Emotion-recognition-song-recommendation
5cad8413b6c98cee12798334009fe8942a420527
[ "MIT" ]
7
2021-01-26T03:40:12.000Z
2021-12-20T12:24:34.000Z
# Two lines that remove tensorflow GPU logs # import os # os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import numpy as np import pandas as pd import matplotlib.pyplot as plt from keras.optimizers import Adam from keras.models import Sequential, model_from_json from keras.layers import Conv2D, MaxPooling2D, Dense, Flatten,...
32.216216
115
0.65646
0
0
0
0
0
0
0
0
1,449
0.202601
cdbc9720aa5c6f9258b24ce41fb35960b581a3f8
705
py
Python
manual.py
Taschenbergerm/bgg_miner
f20057ec2e85e20ad08f92514ce38c699e8c85eb
[ "MIT" ]
null
null
null
manual.py
Taschenbergerm/bgg_miner
f20057ec2e85e20ad08f92514ce38c699e8c85eb
[ "MIT" ]
null
null
null
manual.py
Taschenbergerm/bgg_miner
f20057ec2e85e20ad08f92514ce38c699e8c85eb
[ "MIT" ]
null
null
null
from pprint import pprint import requests from lxml import etree def itter(tree): for ele in tree.iter(): print("##########################") print("Tag:", ele.tag) print("Text:", ele.text) print("Attributes:", ele.attrib) print("##########################") def main(): ...
27.115385
68
0.591489
0
0
0
0
0
0
0
0
213
0.302128
cdbd2bded66eee36ec46ada4de75a010512f317b
2,962
py
Python
app/requests.py
gabrielcoder247/News-Highlight-v2
595f4ee9739b173142d1012bdda63526818930e4
[ "Unlicense" ]
null
null
null
app/requests.py
gabrielcoder247/News-Highlight-v2
595f4ee9739b173142d1012bdda63526818930e4
[ "Unlicense" ]
null
null
null
app/requests.py
gabrielcoder247/News-Highlight-v2
595f4ee9739b173142d1012bdda63526818930e4
[ "Unlicense" ]
null
null
null
import urllib.request,json from .models import Source,Article from . import main # Getting Api Key api_Key = None #Getting the base urls sources_base_url = None articles_base_url = None def configure_request(app): ''' Function to acquire the api key and base urls ''' global api_Key,sources_base_url,articles_base_...
30.854167
85
0.778528
0
0
0
0
0
0
0
0
906
0.305874
cdc3ceae4eb0b0fc7a29f9482fb7047dcfef58b4
727
py
Python
main.py
csmyth93/solo_scoring
6c1a32a3430058aa7d51be604dcc02d11ce85edd
[ "MIT" ]
null
null
null
main.py
csmyth93/solo_scoring
6c1a32a3430058aa7d51be604dcc02d11ce85edd
[ "MIT" ]
null
null
null
main.py
csmyth93/solo_scoring
6c1a32a3430058aa7d51be604dcc02d11ce85edd
[ "MIT" ]
null
null
null
def get_names(): names = [] while True: name = input("Enter players name: ") if name != 'done': print(f'{name} added to the list of players') names.append(name) continue else: break return names def get_player_scores(players): for...
22.71875
63
0.515818
0
0
0
0
0
0
0
0
117
0.160935
cdc3dc53bc12e7691159632083c1b94dc1973dac
74
py
Python
tests/unit/conftest.py
fourTheorem/slic-slack
cffc870c2399feff67199050460abdcb3385ef17
[ "Apache-2.0" ]
4
2022-01-14T15:47:55.000Z
2022-01-14T16:15:18.000Z
tests/unit/conftest.py
fourTheorem/slic-slack
cffc870c2399feff67199050460abdcb3385ef17
[ "Apache-2.0" ]
null
null
null
tests/unit/conftest.py
fourTheorem/slic-slack
cffc870c2399feff67199050460abdcb3385ef17
[ "Apache-2.0" ]
null
null
null
import os os.environ['SLACK_WEBHOOK_URL'] = 'https://example.com/slack'
14.8
61
0.72973
0
0
0
0
0
0
0
0
46
0.621622
cdc442d6b9ce4b9876165256e71bc1dbffd0f620
760
py
Python
python/twisted/web_echo.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
python/twisted/web_echo.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
python/twisted/web_echo.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
from twisted.protocols import basic from twisted.internet import protocol, reactor class HTTPEchoProtocol(basic.LineReceiver): def __init__(self): self.lines = [] def lineReceived(self, line): self.lines.append(line.decode()) if not line: self.sendResponse() def sendRe...
27.142857
68
0.661842
614
0.807895
0
0
0
0
0
0
46
0.060526
cdc5a62dbf81299334c3372e259e1e6b484185cd
2,804
py
Python
app01/tools.py
xinxinliang/ksDjango
0c0f4a5842cf225e77035b716979fcf9b8d03311
[ "Apache-2.0" ]
13
2021-03-11T12:35:29.000Z
2022-02-25T02:22:47.000Z
app01/tools.py
xinxinliang/ksDjango
0c0f4a5842cf225e77035b716979fcf9b8d03311
[ "Apache-2.0" ]
1
2021-11-04T03:02:10.000Z
2021-11-04T03:02:10.000Z
app01/tools.py
xinxinliang/ksDjango
0c0f4a5842cf225e77035b716979fcf9b8d03311
[ "Apache-2.0" ]
4
2021-06-12T19:27:01.000Z
2022-02-04T05:13:54.000Z
import requests import json import os import time from app01.models import UserTitle # 爬取个人主页关注用户的id和naame URL = "https://video.kuaishou.com/graphql" headers = { "accept":"*/*", "Content-Length":"<calculated when request is sent>", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "co...
43.8125
760
0.696148
0
0
0
0
0
0
0
0
1,928
0.657572
cdc5fa09b3e8bd5d035d3ebb8b21feb4b7b64279
2,183
py
Python
core/thirdparty/load_openpose.py
jshuhnow/OddEyeCam
ed76cd1c29701b7b49f20bcd61e7e72d3140fda8
[ "MIT" ]
8
2020-10-08T13:32:33.000Z
2021-12-08T10:59:03.000Z
core/thirdparty/load_openpose.py
jshuhnow/OddEyeCam
ed76cd1c29701b7b49f20bcd61e7e72d3140fda8
[ "MIT" ]
null
null
null
core/thirdparty/load_openpose.py
jshuhnow/OddEyeCam
ed76cd1c29701b7b49f20bcd61e7e72d3140fda8
[ "MIT" ]
1
2021-04-15T23:50:13.000Z
2021-04-15T23:50:13.000Z
import os import sys this_dir = os.path.dirname(__file__) import numpy as np openpose_path = os.path.join(this_dir, 'openpose') op_release_path = os.path.join(openpose_path, 'Release') model_path = os.path.join(openpose_path, 'models') print(op_release_path) sys.path.append(op_release_path); os.environ['PATH'] = os.e...
35.209677
107
0.639487
1,466
0.671553
0
0
0
0
0
0
523
0.239579
cdc633f283f26d40a91533035d25cbe1abaa2d61
11,193
py
Python
pybench/benchmarks/benchmark_ml.py
pentschev/pybench
89d65a6c418a1fee39d447bd11b8a999835b74a9
[ "Apache-2.0" ]
14
2019-06-29T19:19:10.000Z
2022-03-31T06:40:33.000Z
pybench/benchmarks/benchmark_ml.py
pentschev/pybench
89d65a6c418a1fee39d447bd11b8a999835b74a9
[ "Apache-2.0" ]
2
2019-07-23T22:06:37.000Z
2019-08-19T22:15:32.000Z
pybench/benchmarks/benchmark_ml.py
pentschev/pybench
89d65a6c418a1fee39d447bd11b8a999835b74a9
[ "Apache-2.0" ]
5
2019-07-23T14:48:48.000Z
2020-04-01T08:43:00.000Z
import pytest import importlib import numba, numba.cuda import numpy as np from pybench import run_benchmark _shapes = { "small": [(int(2 ** 14), 512), (int(2 ** 15), 512), (int(2 ** 16), 512)], "large": [(int(2 ** 20), 512), (int(2 ** 21), 512), (int(2 ** 22), 512)], } def load_data(nrows, ncols, cached, ...
26.841727
82
0.54132
0
0
0
0
8,530
0.762083
0
0
2,476
0.22121
cdc72216af29eaceb6c114484063fc2831f99596
420
py
Python
ABC127C/resolve.py
staguchi0703/problems_easy
82804b99b3ce8104762c3f6f5cc60b009a17bdc8
[ "MIT" ]
null
null
null
ABC127C/resolve.py
staguchi0703/problems_easy
82804b99b3ce8104762c3f6f5cc60b009a17bdc8
[ "MIT" ]
null
null
null
ABC127C/resolve.py
staguchi0703/problems_easy
82804b99b3ce8104762c3f6f5cc60b009a17bdc8
[ "MIT" ]
null
null
null
def resolve(): ''' code here ''' N , M = [int(item) for item in input().split()] LRs = [[int(item) for item in input().split()] for _ in range(M)] L_max = 0 R_min = N for L, R in LRs: L_max = max(L_max, L) R_min = min(R_min, R) delta = R_min - L_max if delta >=...
16.8
69
0.490476
0
0
0
0
0
0
0
0
35
0.083333
cdc9ffbc19062cc077e25fb215d33c0447db75e0
7,109
py
Python
om10/plotting.py
drphilmarshall/OM10
009c16f0ef4e1c5f8f78c78df3c7711b7be24938
[ "MIT" ]
5
2017-02-17T19:43:54.000Z
2021-05-19T09:30:53.000Z
om10/plotting.py
drphilmarshall/OM10
009c16f0ef4e1c5f8f78c78df3c7711b7be24938
[ "MIT" ]
55
2015-02-06T19:25:58.000Z
2021-03-09T07:57:04.000Z
om10/plotting.py
drphilmarshall/OM10
009c16f0ef4e1c5f8f78c78df3c7711b7be24938
[ "MIT" ]
16
2015-01-29T23:55:45.000Z
2021-04-16T03:06:38.000Z
# ====================================================================== # Globally useful modules, imported here and then accessible by all # functions in this file: from __future__ import print_function # Fonts, latex: import matplotlib matplotlib.rc('font',**{'family':'serif', 'serif':['TimesNewRoman']}) matplotli...
30.251064
115
0.549163
0
0
0
0
0
0
0
0
3,489
0.490786
cdcae84167fb352d7727b5d25c865135e36f6d5e
25,254
py
Python
applications/EsteEuQuero/models/produto.py
vgcarvpro/vgcarvpro
16d720cb49f02e4f859c27901360b34681e986c0
[ "BSD-3-Clause" ]
null
null
null
applications/EsteEuQuero/models/produto.py
vgcarvpro/vgcarvpro
16d720cb49f02e4f859c27901360b34681e986c0
[ "BSD-3-Clause" ]
null
null
null
applications/EsteEuQuero/models/produto.py
vgcarvpro/vgcarvpro
16d720cb49f02e4f859c27901360b34681e986c0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- def produtos(): prod = [["Rack de Teto Uno 2010 2011 2012 2013 2014 2015 a 2020 Preto", '<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&Mar...
5,050.8
25,197
0.818405
0
0
0
0
0
0
0
0
24,918
0.984745
cdcc403733cc344ed109e0132f133aabd50b5dc1
1,213
py
Python
rpython/jit/backend/muvm/registers.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/jit/backend/muvm/registers.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/jit/backend/muvm/registers.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
""" Modified version of ../muvm/registers.py. Will update as needed. """ #from rpython.jit.backend.arm.locations import VFPRegisterLocation #from rpython.jit.backend.arm.locations import SVFPRegisterLocation #from rpython.jit.backend.arm.locations import RegisterLocation from rpython.jit.metainterp.history import (Cons...
25.270833
72
0.650453
385
0.317395
0
0
0
0
0
0
298
0.245672
cdcc7612e16b3989892d1765ee8591ffd8c61843
1,536
py
Python
src/database/CRUD/create.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
2
2020-07-24T12:58:17.000Z
2020-12-17T02:26:13.000Z
src/database/CRUD/create.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
214
2019-06-26T17:33:54.000Z
2022-03-26T00:02:34.000Z
src/database/CRUD/create.py
massenergize/portalBackEnd
7ed971b2be13901667a216d8c8a46f0bed6d6ccd
[ "MIT" ]
6
2020-03-13T20:29:06.000Z
2021-08-20T16:15:08.000Z
""" This file contains code to post data from the database. This is meant to centralize the insertion of data into the database so that multiple apps can call on the methods in this file without having to define their own and to prevent code redundancy. """ from ..models import * from ..utils.common import ensure_re...
25.180328
76
0.76888
0
0
0
0
0
0
0
0
259
0.16862
cdccadfab450a4e9a57ce9f5439e430bde2038d3
527
py
Python
tfutils/losses/losses.py
njchiang/tf-keras-utils
6ea5e51ef3ca5729fbc71bf3cffecf4faec033dd
[ "MIT" ]
null
null
null
tfutils/losses/losses.py
njchiang/tf-keras-utils
6ea5e51ef3ca5729fbc71bf3cffecf4faec033dd
[ "MIT" ]
null
null
null
tfutils/losses/losses.py
njchiang/tf-keras-utils
6ea5e51ef3ca5729fbc71bf3cffecf4faec033dd
[ "MIT" ]
null
null
null
# this actually won't work with keras... not exactly a keras utility import tensorflow as tf def ae_loss_fn(model, x, y, training=None): pred = model(x, training) mse = tf.keras.losses.MSE(y, pred) return tf.reduce_mean(mse), pred # function is untested def vae_loss_fn(model, x, y, training=None): z, ...
35.133333
68
0.660342
0
0
0
0
0
0
0
0
90
0.170778
cdccf6c01653163bb8ca38561bfba641eb360f29
834
py
Python
src/data_generator/vocab_builder.py
luciencho/jddc_solo
efddf0885d5e3c640835874f70d57d25123de141
[ "BSD-3-Clause" ]
null
null
null
src/data_generator/vocab_builder.py
luciencho/jddc_solo
efddf0885d5e3c640835874f70d57d25123de141
[ "BSD-3-Clause" ]
null
null
null
src/data_generator/vocab_builder.py
luciencho/jddc_solo
efddf0885d5e3c640835874f70d57d25123de141
[ "BSD-3-Clause" ]
null
null
null
# coding:utf-8 from __future__ import unicode_literals from __future__ import division from __future__ import print_function import os from src.utils import utils from src.data_generator import vocabulary def process(hparam): utils.raise_inexistence(hparam.tmp_dir) tokenizer = vocabulary.Tokenizer(segment=h...
33.36
81
0.713429
0
0
0
0
0
0
0
0
70
0.083933
cdd4efc2e23f55bb4467b8c8df8e0d1cdd72fa3d
419
py
Python
xas/queries/elastic.py
neuromore/msgxc
e74565a7991d80e5951ef22452521bcbca27fc92
[ "Apache-2.0" ]
1
2020-03-30T22:14:21.000Z
2020-03-30T22:14:21.000Z
xas/queries/elastic.py
neuromore/msgxc
e74565a7991d80e5951ef22452521bcbca27fc92
[ "Apache-2.0" ]
12
2020-04-15T00:00:49.000Z
2022-02-27T01:26:08.000Z
xas/queries/elastic.py
neuromore/msgxc
e74565a7991d80e5951ef22452521bcbca27fc92
[ "Apache-2.0" ]
4
2020-01-16T11:29:38.000Z
2020-04-03T09:43:40.000Z
from elasticsearch import Elasticsearch # TODO: Not implemented yet es = Elasticsearch(["localhost"], sniff_on_connection_fail=True, sniffer_timeout=60) def threads_all(): res = es.search(index="mthreads", body={"query": {"match_all": {}}}) print("Got %d Hits:" % res['hits']['total']) # for hit in res['hi...
38.090909
84
0.649165
0
0
0
0
0
0
0
0
192
0.458234
cdd5f8ad7b2f42d4bfe80a22a6bf9fc481e565ca
2,750
py
Python
U-NET/utils.py
HarshZ26/Object-Detection
1d73f6aeb7452b0b26bd2713e69f340d129a5ba5
[ "MIT" ]
1
2022-03-23T15:49:02.000Z
2022-03-23T15:49:02.000Z
U-NET/utils.py
HarshZ26/Object-Detection
1d73f6aeb7452b0b26bd2713e69f340d129a5ba5
[ "MIT" ]
null
null
null
U-NET/utils.py
HarshZ26/Object-Detection
1d73f6aeb7452b0b26bd2713e69f340d129a5ba5
[ "MIT" ]
null
null
null
from init import * VOC_CLASSES = [ "background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "potted plant", "sheep", "sofa",...
25.229358
105
0.577818
0
0
0
0
0
0
0
0
299
0.108727
cdd753cdba3af6ee31cf0c550e2ee7e5c881ebc9
2,898
py
Python
custom_components/skyq/classes/switchmaker.py
TomBrien/Home_Assistant_SkyQ_MediaPlayer
50f9ad0d3b7a3bc2acc652415ff59740bf3ace10
[ "MIT" ]
null
null
null
custom_components/skyq/classes/switchmaker.py
TomBrien/Home_Assistant_SkyQ_MediaPlayer
50f9ad0d3b7a3bc2acc652415ff59740bf3ace10
[ "MIT" ]
null
null
null
custom_components/skyq/classes/switchmaker.py
TomBrien/Home_Assistant_SkyQ_MediaPlayer
50f9ad0d3b7a3bc2acc652415ff59740bf3ace10
[ "MIT" ]
null
null
null
""" A utility function to generate yaml config for SkyQ media players. To support easy usage with other home assistant integrations, e.g. google home """ import os.path as _path import yaml from ..const import CONST_ALIAS_FILENAME class Switch_Maker: """The Switchmaker Class.""" def __init__(self, config_...
30.1875
78
0.493444
2,661
0.918219
0
0
0
0
0
0
745
0.257074
cdd78b4b371ac658a03d1638d8afdbda0805a759
24,528
py
Python
datawinners/accountmanagement/admin.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/accountmanagement/admin.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/accountmanagement/admin.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 import datetime import logging from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import UserChangeForm from django.core.exceptions import ValidationError from django.forms import CharField from django.utils.translation import ugettext_lazy as _ f...
44.194595
218
0.677471
21,064
0.858774
0
0
0
0
0
0
5,384
0.219504
cddabebcaa2a91087a2f9f94dcd4f545a6f38cff
283
py
Python
tests/conftest.py
bayashi-cl/expander
b3623b656a71801233797e05781295a6101fefd8
[ "CC0-1.0" ]
null
null
null
tests/conftest.py
bayashi-cl/expander
b3623b656a71801233797e05781295a6101fefd8
[ "CC0-1.0" ]
1
2022-03-12T20:41:21.000Z
2022-03-13T06:34:30.000Z
tests/conftest.py
bayashi-cl/expander
b3623b656a71801233797e05781295a6101fefd8
[ "CC0-1.0" ]
null
null
null
import pytest from unittest import mock import os import pathlib @pytest.fixture(scope="session", autouse=True) def set_pythonpath(): testlib_path = pathlib.Path.cwd() / "tests" / "testlib" with mock.patch.dict(os.environ, {"PYTHONPATH": str(testlib_path)}): yield
23.583333
72
0.713781
0
0
168
0.59364
215
0.759717
0
0
37
0.130742
cddacc9ad1d4172e5208503da82fc4edfb83363e
1,870
py
Python
init/global_eq_FCtest/setup_fns.py
mattzett/GEMINI-examples
9932cee67e88898bd00c34bab7ac0568e92e40ca
[ "Apache-2.0" ]
1
2020-03-20T22:19:05.000Z
2020-03-20T22:19:05.000Z
init/global_eq_FCtest/setup_fns.py
mattzett/GEMINI-examples
9932cee67e88898bd00c34bab7ac0568e92e40ca
[ "Apache-2.0" ]
3
2020-02-14T14:36:27.000Z
2020-04-03T21:06:27.000Z
init/global_eq_FCtest/setup_fns.py
mattzett/GEMINI-examples
9932cee67e88898bd00c34bab7ac0568e92e40ca
[ "Apache-2.0" ]
null
null
null
# This is mostly a repeat of model.setup from the pygemini repository except for that it setups up a periodic # grid for us in full-globe simulations. from __future__ import annotations import argparse from pathlib import Path import typing as T import shutil import os from gemini3d.config import read_nml import g...
29.68254
109
0.652941
0
0
0
0
0
0
0
0
833
0.445455
cddc0485c396754b68315d1f0f82db760ff25dc5
2,580
py
Python
floodfill_pathfinding.py
mnursey/Battlesnake-2021
884b9cf1b40c9b03cc49bd1594135e7caf41ee82
[ "MIT" ]
null
null
null
floodfill_pathfinding.py
mnursey/Battlesnake-2021
884b9cf1b40c9b03cc49bd1594135e7caf41ee82
[ "MIT" ]
null
null
null
floodfill_pathfinding.py
mnursey/Battlesnake-2021
884b9cf1b40c9b03cc49bd1594135e7caf41ee82
[ "MIT" ]
null
null
null
import board class Floodfill: frontier = [] grid = None board = None def __init__(self, game_board, start_cord): self.board = game_board self.grid = [[None for i in range(self.board.width)] for j in range(self.board.width)] start_node = self.create_node(start_cord["x"], star...
27.446809
117
0.445736
2,565
0.994186
0
0
0
0
0
0
232
0.089922
cddc0ce80665ce382edeabc67713697083130041
3,736
py
Python
Gobot-Omni/robot.py
FRC1076/2019-Parade
3824449ed10e33b401efb646fd2e6470c3941c8b
[ "MIT" ]
null
null
null
Gobot-Omni/robot.py
FRC1076/2019-Parade
3824449ed10e33b401efb646fd2e6470c3941c8b
[ "MIT" ]
2
2019-06-17T23:38:23.000Z
2019-06-17T23:39:43.000Z
Gobot-Omni/robot.py
FRC1076/2019-Parade
3824449ed10e33b401efb646fd2e6470c3941c8b
[ "MIT" ]
null
null
null
import wpilib import ctre from wpilib.drive import DifferentialDrive from wpilib.interfaces import GenericHID #MOTOR PORTS LEFT = 1 RIGHT = 3 CENTER1 = 2 CENTER2 = 4 #BALL MANIPULATOR BALL_MANIP_ID = 5 GATHER_SPEED = 1.0 SPIT_SPEED = -1.0 STOP_SPEED = 0.0 LEFT_HAND = GenericHID.Hand.kLeft RIGHT_HAND = GenericHID.Han...
27.470588
81
0.646413
3,115
0.833779
0
0
0
0
0
0
674
0.180407
cddcaaf10bf47f30133fae7ab0e9db139ac2e1cc
1,789
py
Python
src/tests/test_decorators.py
elifesciences/builder
161829686f777f7ac7f97bd970395886ba5089c1
[ "MIT" ]
11
2017-03-01T18:00:30.000Z
2021-12-10T05:11:02.000Z
src/tests/test_decorators.py
elifesciences/builder
161829686f777f7ac7f97bd970395886ba5089c1
[ "MIT" ]
397
2016-07-08T14:39:46.000Z
2022-03-30T12:45:09.000Z
src/tests/test_decorators.py
elifesciences/builder
161829686f777f7ac7f97bd970395886ba5089c1
[ "MIT" ]
14
2016-07-13T08:33:28.000Z
2020-04-22T21:42:21.000Z
from . import base from mock import patch import decorators class TestDecorators(base.BaseCase): @patch('decorators.LOG.info') def test_timeit_smoke_test(self, info): @decorators.timeit def some_task(param, **kwargs): pass some_task(42, option='value') (args, _) = in...
38.06383
97
0.653438
1,727
0.965344
0
0
1,375
0.768586
0
0
395
0.220794
cddea9a721eee8e3cc13555afb08ee013159480b
2,158
py
Python
integration/emulator/device.py
cvlabmiet/master-programming-example
8a4a231ba2b72a93ae14da2c04e17b2ae3fc6651
[ "MIT" ]
null
null
null
integration/emulator/device.py
cvlabmiet/master-programming-example
8a4a231ba2b72a93ae14da2c04e17b2ae3fc6651
[ "MIT" ]
null
null
null
integration/emulator/device.py
cvlabmiet/master-programming-example
8a4a231ba2b72a93ae14da2c04e17b2ae3fc6651
[ "MIT" ]
null
null
null
import re, operator, array from collections import namedtuple class Argument(object): def __init__(self, viewtype, begin, end=None): self.type = viewtype self.begin = int(begin) self.end = None if end is not None: self.end = int(end) class Lram(bytearray): pass cla...
33.2
123
0.561631
2,084
0.965709
0
0
0
0
0
0
360
0.166821
cde0f842eb62a19de3f38d4d8d1f8ff65a2ce325
10,538
py
Python
Ramsey_RF_generator.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
Ramsey_RF_generator.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
Ramsey_RF_generator.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
""" Ramsay RSG1000B RF Signal Generator, controlled via RS-323 interface See: Ramsay RSG1000B RF Signal Generator User Guide, p.10-11 Settings: 9600 baud, 8 bits, parity none, stop bits 1, flow control none DB09 connector pin 2 = TxD, 3 = RxD, 5 = Ground The controller accepts unterminate ASCII text commands and gene...
36.089041
101
0.584836
8,235
0.781458
0
0
455
0.043177
0
0
3,085
0.29275
cde603f7c8844ec9a35ff25bb6a1c13b5f4bbf79
819
py
Python
modules/file_helper.py
dada00321/ntust_moodle_resource_crawler
cc5d424ab9440d8e67bb072977fc58740d8bc968
[ "MIT" ]
null
null
null
modules/file_helper.py
dada00321/ntust_moodle_resource_crawler
cc5d424ab9440d8e67bb072977fc58740d8bc968
[ "MIT" ]
null
null
null
modules/file_helper.py
dada00321/ntust_moodle_resource_crawler
cc5d424ab9440d8e67bb072977fc58740d8bc968
[ "MIT" ]
null
null
null
import json def save_json(dict_, json_filepath): ''' [Example] Write JSON ''' ''' dict_ = {"0":{"title":"test-A", "is-available": False, "link":"https://www.AAA.XXX..."}, "1":{"title":"test-B", "is-available": True, "link":"https://www.BBB.XXX..."}} with open("dict_.txt", 'w') as output_fi...
31.5
92
0.570208
0
0
0
0
0
0
0
0
517
0.631258
cde6ca9c0b5b99aea51fe8a0efe3ed98163008e0
17,570
py
Python
win/pywinauto/findbestmatch.py
sk8darr/BrowserRefresh-Sublime
daee0eda6480c07f8636ed24e5c555d24e088886
[ "MIT", "Unlicense" ]
191
2015-01-02T12:17:07.000Z
2021-05-26T09:26:05.000Z
win/pywinauto/findbestmatch.py
sk8darr/BrowserRefresh-Sublime
daee0eda6480c07f8636ed24e5c555d24e088886
[ "MIT", "Unlicense" ]
48
2015-01-14T00:57:36.000Z
2021-04-06T21:45:42.000Z
win/pywinauto/findbestmatch.py
sk8darr/BrowserRefresh-Sublime
daee0eda6480c07f8636ed24e5c555d24e088886
[ "MIT", "Unlicense" ]
36
2015-01-14T18:54:25.000Z
2021-07-18T10:54:42.000Z
# GUI Application automation and testing library # Copyright (C) 2006 Mark Mc Mahon # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation; either version 2.1 # of the License, or (at you...
32.657993
86
0.594878
4,299
0.244678
0
0
0
0
0
0
8,676
0.493796
cde9443d5f9dce44149feca0d10e665a2fbcf090
1,074
py
Python
setup.py
boichee/fabricator
33ad4fa615c153817b014d6b7fe9807f1752db25
[ "MIT" ]
11
2018-07-09T07:08:16.000Z
2018-07-13T14:05:46.000Z
setup.py
boichee/fabricator
33ad4fa615c153817b014d6b7fe9807f1752db25
[ "MIT" ]
3
2020-03-24T17:37:47.000Z
2021-02-02T22:18:59.000Z
setup.py
boichee/fabricator
33ad4fa615c153817b014d6b7fe9807f1752db25
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages exclude_dirs = ['ez_setup', 'examples', 'tests', 'venv'] # Runtime requirements reqs = [ 'requests', 'six', 'future', 'aenum' ] # Requirements for testing test_reqs = ['pytest', 'hypothesis', 'requests_mock'] # Requirements for setup setup_reqs = ['flake8'...
26.85
83
0.650838
0
0
0
0
0
0
0
0
601
0.55959
cde9a03010ce87292ba1da645b7d397d96cc724e
115
py
Python
aitoolbox/cloud/__init__.py
mv1388/AIToolbox
c64ac4810a02d230ce471d86b758e82ea232a7e7
[ "MIT" ]
3
2019-10-12T12:24:09.000Z
2020-08-02T02:42:43.000Z
aitoolbox/cloud/__init__.py
mv1388/aitoolbox
1060435e6cbdfd19abcb726c4080b663536b7467
[ "MIT" ]
3
2020-04-10T14:07:07.000Z
2020-04-22T19:04:38.000Z
aitoolbox/cloud/__init__.py
mv1388/aitoolbox
1060435e6cbdfd19abcb726c4080b663536b7467
[ "MIT" ]
null
null
null
s3_available_options = ['s3', 'aws_s3', 'aws'] gcs_available_options = ['gcs', 'google_storage', 'google storage']
38.333333
67
0.713043
0
0
0
0
0
0
0
0
54
0.469565
cde9dfcf27b3e92945a09440ebd5cd1eb09e8452
12,607
py
Python
src/gan/ccgan/ccGAN.py
matkir/Master_programs
70c4c399f9c9fc3e1643e78694223b24d7b94b18
[ "MIT" ]
null
null
null
src/gan/ccgan/ccGAN.py
matkir/Master_programs
70c4c399f9c9fc3e1643e78694223b24d7b94b18
[ "MIT" ]
null
null
null
src/gan/ccgan/ccGAN.py
matkir/Master_programs
70c4c399f9c9fc3e1643e78694223b24d7b94b18
[ "MIT" ]
null
null
null
from __future__ import print_function, division if __name__=='__main__': from cc_weights import Weight_model else: from . import Weight_model from keras.models import load_model import keras.backend as K import plotload import sys from selector import Selector #from masker import mask_from_template,mask_randoml...
41.199346
142
0.546601
11,759
0.932736
0
0
0
0
0
0
3,307
0.262315
cdea49e6abeeb4e6ceb631ab1583ede7c457b5ed
6,585
py
Python
synapse/server.py
uroborus/synapse
270825ab2a3e16bb8ffcdbcea058efd28a38e8e1
[ "Apache-2.0" ]
1
2021-09-09T08:50:20.000Z
2021-09-09T08:50:20.000Z
synapse/server.py
uroborus/synapse
270825ab2a3e16bb8ffcdbcea058efd28a38e8e1
[ "Apache-2.0" ]
null
null
null
synapse/server.py
uroborus/synapse
270825ab2a3e16bb8ffcdbcea058efd28a38e8e1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 OpenMarket 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 la...
31.658654
79
0.665907
4,919
0.747001
0
0
964
0.146393
0
0
3,137
0.476386
cdea57f865285710bac46af78cc530224ae5efeb
359
py
Python
pythonforandroid/recipes/kivy/__init__.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
1
2015-06-09T21:12:09.000Z
2015-06-09T21:12:09.000Z
pythonforandroid/recipes/kivy/__init__.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
null
null
null
pythonforandroid/recipes/kivy/__init__.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
null
null
null
from pythonforandroid.toolchain import CythonRecipe, shprint, current_directory, ArchAndroid from os.path import exists, join import sh import glob class KivyRecipe(CythonRecipe): version = 'stable' url = 'https://github.com/kivy/kivy/archive/{version}.zip' name = 'kivy' depends = ['pygame', 'pyjniu...
21.117647
92
0.721448
183
0.509749
0
0
0
0
0
0
92
0.256267
cdeaa27ba25e454daf95595f163fae1a13887999
1,220
py
Python
chat.py
Programmer-RD-AI/Learning-NLP-PyTorch
5780598340308995c0b8436d3031aa58ee7b81da
[ "Apache-2.0" ]
null
null
null
chat.py
Programmer-RD-AI/Learning-NLP-PyTorch
5780598340308995c0b8436d3031aa58ee7b81da
[ "Apache-2.0" ]
null
null
null
chat.py
Programmer-RD-AI/Learning-NLP-PyTorch
5780598340308995c0b8436d3031aa58ee7b81da
[ "Apache-2.0" ]
null
null
null
import random import json import torch from model import NeuralNet from nltk_utils import * device = "cuda" with open('intents.json','r') as f: intents = json.load(f) FILE = 'data.pth' data = torch.load(FILE) input_size = data['input_size'] output_size = data['output_size'] hidden_size = data['hidden_size'] all_wor...
29.047619
74
0.648361
0
0
0
0
0
0
0
0
251
0.205738
cdeb4f70b3a53f9cb3413cfdc25708394eec070f
329
py
Python
Jay_Redis/Jay_Redis/utils/GetProxyIp.py
kimsax/gratuation_project
99f842753f3403d3fdcd62316cf6a8d0091a5871
[ "MIT" ]
1
2021-03-02T08:04:25.000Z
2021-03-02T08:04:25.000Z
Jay_Redis/Jay_Redis/utils/GetProxyIp.py
kimsax/gratuation_project
99f842753f3403d3fdcd62316cf6a8d0091a5871
[ "MIT" ]
null
null
null
Jay_Redis/Jay_Redis/utils/GetProxyIp.py
kimsax/gratuation_project
99f842753f3403d3fdcd62316cf6a8d0091a5871
[ "MIT" ]
null
null
null
# -*- utf-8 -*- import random import redis import requests def GetIps(): li = [] # url = 'http://122.51.95.201:8000/?country=国内&count=20' url = 'http://127.0.0.1:8000/?country=国内&count=20' ips = requests.get(url) for ip in eval(ips.content): li.append(ip[0]+':'+str(ip[1])) return li # ...
20.5625
60
0.580547
0
0
0
0
0
0
0
0
136
0.403561
cdeb9ce72d1bf949c4fdc2a94b43168b90c61e61
876
py
Python
setup.py
tbz-pariv/ftpservercontext
426e98dd4983cc6977c4d071a831874726c0fae2
[ "Apache-2.0" ]
2
2019-04-18T12:28:58.000Z
2021-01-04T14:52:07.000Z
setup.py
tbz-pariv/ftpservercontext
426e98dd4983cc6977c4d071a831874726c0fae2
[ "Apache-2.0" ]
1
2019-01-04T14:46:00.000Z
2019-06-04T12:31:45.000Z
setup.py
tbz-pariv/ftpservercontext
426e98dd4983cc6977c4d071a831874726c0fae2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import setuptools setuptools.setup( name='ftpservercontext', version='2018.3.0', license='commercial', author='Thomas Guettler', author_email='guettliml.ftpservercontext@thomas-guettler.de', url='https://github.com/tbz-pariv/ftpservercontext', long_description=open(...
29.2
106
0.696347
0
0
0
0
0
0
0
0
504
0.575342
cdecd7c4bafe572b5e961bd73c1a75878f9feaa8
3,428
py
Python
zoomeye/cli.py
r0oike/zoomeye-python
b93f1c9c350e4fce7580f9f71ab1e76d06ce165d
[ "Apache-2.0" ]
null
null
null
zoomeye/cli.py
r0oike/zoomeye-python
b93f1c9c350e4fce7580f9f71ab1e76d06ce165d
[ "Apache-2.0" ]
null
null
null
zoomeye/cli.py
r0oike/zoomeye-python
b93f1c9c350e4fce7580f9f71ab1e76d06ce165d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ * Filename: cli.py * Description: cli program entry * Time: 2020.11.30 * Author: liuf5 */ """ import os import sys import argparse module_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.insert(1, module_path) from zoomeye import core ...
26.369231
110
0.606768
121
0.035298
0
0
0
0
0
0
1,497
0.436698
cdece39680fd28858374924d70a1d3ff5d97fb90
462
py
Python
statapy/regression/tests.py
DhananjayAshok/PyStata
b592414d78b87d565d8c59ae9487478a792b8c84
[ "Apache-2.0" ]
null
null
null
statapy/regression/tests.py
DhananjayAshok/PyStata
b592414d78b87d565d8c59ae9487478a792b8c84
[ "Apache-2.0" ]
null
null
null
statapy/regression/tests.py
DhananjayAshok/PyStata
b592414d78b87d565d8c59ae9487478a792b8c84
[ "Apache-2.0" ]
null
null
null
import scipy.stats as stats def mannwhitneyu(sample_0, sample_1, one_sided=False): """ Performs the Mann-Whitney U test :param sample_0: array of values :param sample_1: array of values :param one_sided: True iff you want to use less than alternative hypothesis :return: statistic, pvalue "...
35.538462
102
0.722944
0
0
0
0
0
0
0
0
250
0.541126
cdeceab8b898ec021afc4aa90ddeda2bd76d683c
862
py
Python
3) Cartoonizing and Video Capture/#1 Accessing the webcam/webcam_access.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
3) Cartoonizing and Video Capture/#1 Accessing the webcam/webcam_access.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
3) Cartoonizing and Video Capture/#1 Accessing the webcam/webcam_access.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
import cv2 as cv if __name__ == "__main__": # 0 => first (default) webcam connected, # 1 => second webcam and so on. cap = cv.VideoCapture(0, cv.CAP_DSHOW) # cv.namedWindow("Window") if not cap.isOpened(): raise IOError("Webcam could not be opened!") while True: ...
25.352941
61
0.597448
0
0
0
0
0
0
0
0
376
0.436195
cdf16ad97ffce90e11c1fa4d69eb40752cd40a16
3,928
py
Python
apps/sso/access_requests/models.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
3
2021-05-16T17:06:57.000Z
2021-05-28T17:14:05.000Z
apps/sso/access_requests/models.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
apps/sso/access_requests/models.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
import datetime from current_user.models import CurrentUserField from django.conf import settings from django.db import models from django.urls import reverse from django.utils.timezone import now from django.utils.translation import gettext_lazy as _ from sso.accounts.models import Application from sso.models import ...
39.28
111
0.649949
3,476
0.884929
0
0
66
0.016802
0
0
486
0.123727
cdf35f3aa036ddd5079307083d76c1f9e474653b
1,518
py
Python
test/snr_test.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
5
2021-02-01T07:43:39.000Z
2022-03-25T05:01:31.000Z
test/snr_test.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
null
null
null
test/snr_test.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
null
null
null
import os from time import time import numpy as np import soundfile from matplotlib import pyplot as plt from wavelet.fast_transform import FastWaveletTransform from wavelet.util.utility import threshold, mad, snr, amp_to_db INPUT_FILE = "/example/input/file.wav" OUTPUT_DIR = "/example/output/" info = soundfile.inf...
29.192308
108
0.689065
0
0
0
0
0
0
0
0
322
0.212121
cdf4a1acc53ac8000703136e7a930c389adce55b
1,546
py
Python
KeyHookThread.py
v2okimochi/Keasy
0c4d480a4b9fc88f47bbc11ed4ca248cbdc488f2
[ "MIT" ]
1
2018-10-25T01:31:15.000Z
2018-10-25T01:31:15.000Z
KeyHookThread.py
v2okimochi/Keasy
0c4d480a4b9fc88f47bbc11ed4ca248cbdc488f2
[ "MIT" ]
1
2018-07-16T01:39:39.000Z
2018-07-16T01:39:39.000Z
KeyHookThread.py
v2okimochi/Keasy
0c4d480a4b9fc88f47bbc11ed4ca248cbdc488f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pynput import keyboard from PyQt5.QtCore import QThread, pyqtSignal class KeyHooker(QThread): # シグナル pushCtrlSignal = pyqtSignal() releaseCtrlSignal = pyqtSignal() pushShiftSignal = pyqtSignal() releaseShiftSignal = pyqtSignal() pushCommandSignal = pyqtSignal() ...
29.730769
72
0.599612
1,656
0.943052
0
0
0
0
0
0
440
0.250569
cdf4c8116e9e2bbcc1b35461d7c08335801aaba4
2,243
py
Python
nad_receiver/nad_commands.py
mindigmarton/nad_receiver
9449699d076011caf560d8c4384a9b1bf2512080
[ "MIT" ]
null
null
null
nad_receiver/nad_commands.py
mindigmarton/nad_receiver
9449699d076011caf560d8c4384a9b1bf2512080
[ "MIT" ]
null
null
null
nad_receiver/nad_commands.py
mindigmarton/nad_receiver
9449699d076011caf560d8c4384a9b1bf2512080
[ "MIT" ]
null
null
null
""" Commands and operators used by NAD. CMDS[domain][function] """ CMDS = { 'main': { 'dimmer': {'cmd': 'Main.Dimmer', 'supported_operators': ['+', '-', '=', '?'] }, 'mute': {'cmd': 'Main.Mute', 'supp...
30.310811
60
0.296478
0
0
0
0
0
0
0
0
963
0.429336
cdf8455878051f84938cb9a928fc16329abe82f4
7,846
py
Python
ui/Ui_addsite.py
EUFAR/asmm-eufar
69ede7a24f757392e63f04091e86c50ab129016f
[ "BSD-3-Clause" ]
null
null
null
ui/Ui_addsite.py
EUFAR/asmm-eufar
69ede7a24f757392e63f04091e86c50ab129016f
[ "BSD-3-Clause" ]
2
2015-06-12T09:28:29.000Z
2015-06-12T09:34:16.000Z
ui/Ui_addsite.py
eufarn7sp/asmm-eufar
69ede7a24f757392e63f04091e86c50ab129016f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'addsite.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Addsite(object): def setupUi(self, Addsite): Addsite.setObject...
46.702381
115
0.672827
7,607
0.969539
0
0
0
0
0
0
2,166
0.276064
cdf8ea07b2a210313250ff1ccb9f4bf6d44a0053
1,772
py
Python
testmile-setu/setu/dispatcher/broker.py
test-mile/setu
b273a11e7f9462e64a370bda16f1952ecdbfb5a5
[ "Apache-2.0" ]
null
null
null
testmile-setu/setu/dispatcher/broker.py
test-mile/setu
b273a11e7f9462e64a370bda16f1952ecdbfb5a5
[ "Apache-2.0" ]
null
null
null
testmile-setu/setu/dispatcher/broker.py
test-mile/setu
b273a11e7f9462e64a370bda16f1952ecdbfb5a5
[ "Apache-2.0" ]
null
null
null
from enum import Enum, auto class SetuGuiAutoActorStateActionType(Enum): INIT_STATE = auto() END_STATE = auto() class SetuGuiAutoActorAutomatorActionType(Enum): LAUNCH = auto() QUIT = auto() GO_TO_URL = auto() GO_BACK = auto() GO_FORWARD = auto() REFRESH = auto() EXECUTE_JAVASCR...
23.012987
48
0.682844
1,736
0.979684
0
0
0
0
0
0
36
0.020316
cdf8f1196a3909edc36aafce5347c3143f73a6ac
76
py
Python
conductor/utils/inputs.py
JoelLefkowitz/conductor
9a5d3a833c17bd57080e538ea7584620560d9235
[ "MIT" ]
1
2021-08-21T21:34:22.000Z
2021-08-21T21:34:22.000Z
conductor/utils/inputs.py
JoelLefkowitz/conductor
9a5d3a833c17bd57080e538ea7584620560d9235
[ "MIT" ]
null
null
null
conductor/utils/inputs.py
JoelLefkowitz/conductor
9a5d3a833c17bd57080e538ea7584620560d9235
[ "MIT" ]
null
null
null
def prompt(msg: str) -> bool: return input(msg).lower() in ["y", "yes"]
25.333333
45
0.578947
0
0
0
0
0
0
0
0
8
0.105263
cdf93d47f329e66522fe3776469675377c2e7349
1,758
py
Python
leetcode/0566_reshape_the_matrix.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0566_reshape_the_matrix.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0566_reshape_the_matrix.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
""" In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. You're given a matrix represented by a two-dimensional array, and two positive integers r and c representing the row number and column number of the wanted reshap...
33.807692
100
0.606371
495
0.28157
0
0
0
0
0
0
1,271
0.722981
cdfba4673ccb2b05e2ef7ddcaa8aeaa3095e7451
4,629
py
Python
python/main.py
LaraProject/rnn2java
f35b1b98f74864d4310e7866ad5271ae5389292d
[ "MIT" ]
null
null
null
python/main.py
LaraProject/rnn2java
f35b1b98f74864d4310e7866ad5271ae5389292d
[ "MIT" ]
null
null
null
python/main.py
LaraProject/rnn2java
f35b1b98f74864d4310e7866ad5271ae5389292d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket import select from time import sleep import message_pb2 from google.protobuf.internal import encoder import tensorflow as tf from tensorflow.keras import preprocessing import pickle import numpy as np ## RNN part # Load the inference model def load_inference_models(enc_file, dec_f...
32.598592
140
0.712249
0
0
0
0
0
0
0
0
653
0.141067
cdfbbb1e16902c1d3761509ecf7d21633da2152a
161,322
py
Python
dlkit/json_/authorization/sessions.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/json_/authorization/sessions.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/json_/authorization/sessions.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""JSON implementations of authorization sessions.""" # pylint: disable=no-init # Numerous classes don't require __init__. # pylint: disable=too-many-public-methods,too-few-public-methods # Number of methods are defined in specification # pylint: disable=protected-access # Access to protected methods allow...
45.960684
186
0.654709
159,782
0.990454
0
0
102,051
0.632592
0
0
105,793
0.655788
cdfc9bf4504d5cc25bda0a98802b00001e0b1b9c
1,031
py
Python
LeetCode/516-longest-palindromic-subsequence.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
LeetCode/516-longest-palindromic-subsequence.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
LeetCode/516-longest-palindromic-subsequence.py
leaving-voider/LeetCode.cn-Record
2922cbdab85556bc0625adc9e6ce44849232e4f4
[ "MIT" ]
null
null
null
############################################################################################### # 还是常规题,和【5. 最长回文子串】不同在于【子串】和【子数组】是【连续】的,而【子序列】可以不连续 # 因此定义dp的方式就不一样,对于【子序列】可以定义长度,而【连续】的【子串】则用是否 ########### # 时间复杂度:O(n^2) # 空间复杂度:O(n^2) ##############################################################################...
44.826087
131
0.354995
758
0.585328
0
0
0
0
0
0
679
0.524324
cdfcd2a90ed7ec6257eb01c41e93f4909519bbec
3,427
py
Python
examples/vae.py
zhangyewu/edward
8ec452eb0a3801df8bda984796034a9e945faec7
[ "Apache-2.0" ]
5,200
2016-05-03T04:59:01.000Z
2022-03-31T03:32:26.000Z
examples/vae.py
zhangyewu/edward
8ec452eb0a3801df8bda984796034a9e945faec7
[ "Apache-2.0" ]
724
2016-05-04T09:04:37.000Z
2022-02-28T02:41:12.000Z
examples/vae.py
zhangyewu/edward
8ec452eb0a3801df8bda984796034a9e945faec7
[ "Apache-2.0" ]
1,004
2016-05-03T22:45:14.000Z
2022-03-25T00:08:08.000Z
"""Variational auto-encoder for MNIST data. References ---------- http://edwardlib.org/tutorials/decoder http://edwardlib.org/tutorials/inference-networks """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import edward as ed import numpy as np import os i...
31.731481
77
0.676685
0
0
538
0.156989
0
0
0
0
861
0.25124
cdff5880102eb2ba8d22b6cbec2e9bb5407da963
2,196
py
Python
backup.py
BigBlueHat/copy-couch
ab4759540faecae8239c94e8045f7fce1f4a4914
[ "Apache-2.0" ]
null
null
null
backup.py
BigBlueHat/copy-couch
ab4759540faecae8239c94e8045f7fce1f4a4914
[ "Apache-2.0" ]
null
null
null
backup.py
BigBlueHat/copy-couch
ab4759540faecae8239c94e8045f7fce1f4a4914
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """copy-couch makes copies of couches. no joke. License: Apache 2.0 - http://opensource.org/licenses/Apache-2.0 """ import argparse import base64 import ConfigParser import datetime import json import requests argparser = argparse.ArgumentParser() argparser.add_argument('config_file', type=fi...
29.675676
74
0.659836
0
0
0
0
0
0
0
0
839
0.382058
a8042d0c00c4fb676c0f0e3967070e3d72d5ef12
3,568
py
Python
import_scripts/gpcc2gcmon.py
Jozelito/Raster2TXT
337c87298ffc6227ca952e9e5cd17a54979e2224
[ "MIT" ]
null
null
null
import_scripts/gpcc2gcmon.py
Jozelito/Raster2TXT
337c87298ffc6227ca952e9e5cd17a54979e2224
[ "MIT" ]
null
null
null
import_scripts/gpcc2gcmon.py
Jozelito/Raster2TXT
337c87298ffc6227ca952e9e5cd17a54979e2224
[ "MIT" ]
1
2018-05-29T21:16:44.000Z
2018-05-29T21:16:44.000Z
#Script para la importacion de datos netCDF de un mes del GPCC en PostGIS. #Autor: José I. Álvarez Francoso import sys from osgeo import gdal, ogr, osr from osgeo.gdalconst import GA_ReadOnly, GA_Update # Funcion para sobreescribir el mensaje de porcentaje completado def restart_line(): sys.stdout.write('\r') sys.s...
36.783505
107
0.711323
0
0
0
0
0
0
0
0
1,431
0.40084
a804975ed4327041257e7e887706be1ffc7b7803
2,829
py
Python
app.py
Raisler/Brazil_HDI_DataVisualization
76dde95dd1a7171e30a4a2e180a9ecdcea6f8c7c
[ "MIT" ]
null
null
null
app.py
Raisler/Brazil_HDI_DataVisualization
76dde95dd1a7171e30a4a2e180a9ecdcea6f8c7c
[ "MIT" ]
null
null
null
app.py
Raisler/Brazil_HDI_DataVisualization
76dde95dd1a7171e30a4a2e180a9ecdcea6f8c7c
[ "MIT" ]
null
null
null
import streamlit as st import pandas as pd import numpy as np import plotly.express as px from plotly.subplots import make_subplots import plotly.graph_objects as go import matplotlib.pyplot as plt def load_data(data): data=pd.read_csv(data) return data df = load_data('hdi.csv') st.title('Human Development Index i...
40.414286
144
0.679392
0
0
0
0
0
0
0
0
1,208
0.425952
a804e02acc0b6d5ed28538bc5bf647eab91b6259
657
py
Python
Examples/pycomBlink/main.py
sophie-bernier/RemoteOceanAcidificationMonitor
6a8b799826a2eb9b1d5064883193c61eea0ee310
[ "Unlicense" ]
1
2021-06-22T23:07:31.000Z
2021-06-22T23:07:31.000Z
Examples/pycomBlink/main.py
sophie-bernier/RemoteOceanAcidificationMonitor
6a8b799826a2eb9b1d5064883193c61eea0ee310
[ "Unlicense" ]
null
null
null
Examples/pycomBlink/main.py
sophie-bernier/RemoteOceanAcidificationMonitor
6a8b799826a2eb9b1d5064883193c61eea0ee310
[ "Unlicense" ]
null
null
null
# main.py import pycom import time pycom.heartbeat(False) red = 0x08 blue = 0x00 green = 0x00 sleepTime = 0.01 def setRgb(red, green, blue): rgbValue = 0x000000 rgbValue |= (red << 16) | (green << 8) | blue pycom.rgbled(rgbValue) return while True: ### #if red >= 0x08: # if green > 0:...
16.425
49
0.464231
0
0
0
0
0
0
0
0
255
0.388128
a8054920242ac3e7b7e99120e329e53db3f718af
1,891
py
Python
dsn/pp/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
2
2019-04-30T05:42:05.000Z
2019-08-11T19:17:20.000Z
dsn/pp/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
null
null
null
dsn/pp/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
null
null
null
from spacetime import get_s_address_for_t_address from s_address import node_for_s_address from dsn.s_expr.structure import TreeText from dsn.pp.structure import PPNone, PPSingleLine, PPLispy, PPAnnotatedSExpr from dsn.pp.clef import PPUnset, PPSetSingleLine, PPSetLispy def build_annotated_tree(node, default_annota...
35.679245
120
0.710206
0
0
0
0
0
0
0
0
507
0.268112
a8058f52d55c838079c4a938e2376efb1f6aa6ab
3,704
py
Python
geneparse/__init__.py
legaultmarc/geneparse
5a844df77ded5adc765a086a8d346fce6ba01f3d
[ "MIT" ]
4
2018-11-09T11:10:24.000Z
2021-07-23T22:17:58.000Z
geneparse/__init__.py
legaultmarc/geneparse
5a844df77ded5adc765a086a8d346fce6ba01f3d
[ "MIT" ]
5
2017-05-02T15:28:01.000Z
2018-04-16T18:29:15.000Z
geneparse/__init__.py
legaultmarc/geneparse
5a844df77ded5adc765a086a8d346fce6ba01f3d
[ "MIT" ]
1
2017-05-12T17:58:32.000Z
2017-05-12T17:58:32.000Z
"""A module to parse genetics file formats.""" # This file is part of geneparse. # # The MIT License (MIT) # # Copyright (c) 2017 Pharmacogenomics Centre # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in...
37.04
79
0.687365
1,166
0.314795
0
0
0
0
0
0
1,927
0.520248
a8065cec94c9ac0bb277d2b7b2c4a7aa013dd5ba
3,285
py
Python
pallet.py
sprightlyManifesto/cadQuery2
207a1ff2420210460539400dfd1945e8b7245497
[ "MIT" ]
1
2021-05-31T00:08:02.000Z
2021-05-31T00:08:02.000Z
pallet.py
sprightlyManifesto/cadQuery2
207a1ff2420210460539400dfd1945e8b7245497
[ "MIT" ]
null
null
null
pallet.py
sprightlyManifesto/cadQuery2
207a1ff2420210460539400dfd1945e8b7245497
[ "MIT" ]
null
null
null
from cadquery import * from math import sin,cos,acos,asin,pi,atan2 class Pallet: def __init__(self): self.torx6 = { 6:(1.75,1.27), 8:(2.4,1.75), 10:(2.8,2.05), 15:(3.35,2.4), 20:(3.95,2.85), 25:(4.50,3.25), 30:(5.6,4.05), 40:(6.75,4.85),45:(7.93,5.64), 50:(8.95,6.45), ...
48.308824
101
0.497717
2,986
0.90898
0
0
0
0
0
0
150
0.045662
a8071813703c97e154c1a58b74d953608becaf8d
235
py
Python
old-regressions/python/tst6.py
muchang/z3test
e3e7739f98b7aa85427fcb8a39a4c675132a896e
[ "MIT" ]
23
2015-04-20T08:51:00.000Z
2021-11-15T12:20:59.000Z
old-regressions/python/tst6.py
muchang/z3test
e3e7739f98b7aa85427fcb8a39a4c675132a896e
[ "MIT" ]
18
2016-03-02T15:17:42.000Z
2021-12-16T22:10:05.000Z
old-regressions/python/tst6.py
muchang/z3test
e3e7739f98b7aa85427fcb8a39a4c675132a896e
[ "MIT" ]
30
2015-05-30T15:29:17.000Z
2022-02-25T15:58:58.000Z
# Copyright (c) 2015 Microsoft Corporation from z3 import * print(simplify(Sqrt(2)).sexpr()) set_option(":pp-decimal-precision", 50, pp_decimal=True) print(simplify(Sqrt(2)).sexpr()) set_option(precision=20) print(simplify(Sqrt(2)))
23.5
56
0.744681
0
0
0
0
0
0
0
0
65
0.276596
a808c833e4004773a8618ea9f6a2827bf0e5f1ca
2,044
py
Python
data-detective-airflow/tests/dag_generator/test_tdag.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
5
2021-12-01T09:55:23.000Z
2021-12-21T16:23:33.000Z
data-detective-airflow/tests/dag_generator/test_tdag.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
1
2021-11-16T15:55:34.000Z
2021-11-16T15:55:34.000Z
data-detective-airflow/tests/dag_generator/test_tdag.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
2
2021-11-03T09:43:09.000Z
2021-11-17T10:16:29.000Z
import pytest import allure from data_detective_airflow.constants import PG_CONN_ID, S3_CONN_ID from data_detective_airflow.dag_generator.results import PgResult, PickleResult from data_detective_airflow.dag_generator import ResultType, WorkType @allure.feature('Dag results') @allure.story('Create Pickle') def test_...
41.714286
88
0.611546
0
0
0
0
1,788
0.874755
0
0
114
0.055773
a8094575efb5f9d3bcb611dcb83074209e70f07f
478
py
Python
Algorithms/Easy/830. Positions of Large Groups/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/830. Positions of Large Groups/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/830. Positions of Large Groups/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def largeGroupPositions(self, S: str) -> List[List[int]]: l = [] start = end = 0 while start < len(S): while end < len(S) and S[start] == S[end]: end += 1 if end - start >= 3: l.append([start, e...
22.761905
61
0.493724
343
0.717573
0
0
0
0
0
0
15
0.031381
a80a22c9f777e08edf7fe7ed83b93c4fd1e307bc
1,727
py
Python
imu.py
aume1/SatelliteTracker
62725e1d1a72a1350b2af15d9e33fcd574ceb3a2
[ "MIT" ]
2
2021-06-19T17:17:30.000Z
2021-06-19T17:17:39.000Z
imu.py
aume1/SatelliteTracker
62725e1d1a72a1350b2af15d9e33fcd574ceb3a2
[ "MIT" ]
null
null
null
imu.py
aume1/SatelliteTracker
62725e1d1a72a1350b2af15d9e33fcd574ceb3a2
[ "MIT" ]
1
2021-06-19T17:18:32.000Z
2021-06-19T17:18:32.000Z
import time import math import py_qmc5883l import pigpio import adafruit_bmp280 from i2c_ADXL345 import ADXL345 import numpy as np from i2c_ITG3205 import Gyro class IMU: def __init__(self, pi): self.gyro = Gyro(pi) self.accel = ADXL345(pi) self.mag = py_qmc5883l.QMC5883L(pi) rpy =...
28.311475
104
0.579618
1,423
0.823972
0
0
0
0
0
0
223
0.129126
a80b6a8d0bacba13b3fe61daf36962d8ad3001a4
8,892
py
Python
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import GridSearchCV, train_test_split, cross_val_score from sklearn.tree import DecisionTreeClassifier from sklearn.metrics import accuracy_score, classification_report import matplotlib.pyplot as plt import numpy as np import category_encoders as ce from sklearn.preproc...
31.870968
109
0.624944
0
0
0
0
0
0
0
0
3,453
0.388327
a80bd9815a0efacc56fe16adf0b6e490442b6851
161
py
Python
magic_markdown/__init__.py
transfluxus/magic_markdown
3a71d0c0a0937dc87973b6e19389f27575e16208
[ "MIT" ]
10
2019-04-09T17:33:52.000Z
2021-05-10T04:58:59.000Z
magic_markdown/__init__.py
transfluxus/magic_markdown
3a71d0c0a0937dc87973b6e19389f27575e16208
[ "MIT" ]
null
null
null
magic_markdown/__init__.py
transfluxus/magic_markdown
3a71d0c0a0937dc87973b6e19389f27575e16208
[ "MIT" ]
null
null
null
name = "magic_markdown" from magic_markdown.MagicMarkdown import MagicMarkdown def load_ipython_extension(ipython): ipython.register_magics(MagicMarkdown)
23
54
0.838509
0
0
0
0
0
0
0
0
16
0.099379
a80cfdeae5dd9779dfdf75f7f464b230527883ae
1,167
py
Python
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd from house.production.solar_panel import SolarPanel from house import House from math import pi from time import time start_time = time() solar_panel_east = SolarPanel(285.0, 10*pi/180, -pi/2, 0.87, 1.540539, 10) solar_panel_west = SolarPanel(285.0, 10*pi/180, pi/2...
33.342857
167
0.642674
0
0
0
0
0
0
0
0
271
0.232219
a813a7003f5f5d2c9a1b282747c12188d836b770
2,468
py
Python
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
9
2021-11-01T06:06:33.000Z
2022-02-07T12:21:18.000Z
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
null
null
null
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
1
2022-03-06T07:38:32.000Z
2022-03-06T07:38:32.000Z
from tensorflow.keras.layers import Layer, Conv1D, Input, Dropout, MaxPool1D, Masking import tensorflow.keras.backend as K from tensorflow.keras import Model import tensorflow as tf class CNN1D(Layer): def __init__(self, filters=(32, 64), pooling_sizes=(4, 4), kernel_size=3, stride_size=1, using_dropout=True, ...
37.393939
112
0.573339
1,986
0.8047
0
0
0
0
0
0
498
0.201783
a81433a2173979769be9813ef0e72f88f835d3f9
339
py
Python
1 clean code/auto_format_on_save.py
philippschmalen/ml-devops-engineer
98c4c94b807215e2a909905235bde4a8d022477f
[ "MIT" ]
null
null
null
1 clean code/auto_format_on_save.py
philippschmalen/ml-devops-engineer
98c4c94b807215e2a909905235bde4a8d022477f
[ "MIT" ]
null
null
null
1 clean code/auto_format_on_save.py
philippschmalen/ml-devops-engineer
98c4c94b807215e2a909905235bde4a8d022477f
[ "MIT" ]
null
null
null
""" Play with autoformatting on save Ensure to pip install black within your environment """ # test linting with an unnecessary import # it should complain and suggest a solution import sys thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964, "okay": "This is getting way too long", } def...
16.142857
51
0.666667
0
0
0
0
0
0
0
0
247
0.728614
a81435452d7a1fd0220c50904adbc5e774a45f27
931
py
Python
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
import json import os import mock def mock_response(json_str=None, raw=None): resp = mock.MagicMock() if json_str is not None: loaded_json = json.loads(json_str) resp.json = mock.MagicMock(return_value=loaded_json) if raw is not None: resp.raw = mock.MagicMock() resp.raw.r...
21.159091
68
0.651987
0
0
0
0
0
0
0
0
317
0.340494
a81666f0e6701e07b7dd6f00c88fe2096ec32290
391
py
Python
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
null
null
null
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
null
null
null
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
1
2018-02-26T03:14:46.000Z
2018-02-26T03:14:46.000Z
import sys peak=[] with open(sys.argv[1],'r') as f: for line in f: line=line.strip('\n').split('\t') peak.append(int(line[3])) f.close() num=int(len(peak)/100.0) bin=[] for i in range(99): bin.append(str(i+1)+'\t'+str(sum(peak[num*i:num*(i+1)])/(num*1.0))+'\n') bin.append('100'+'\t'+str(sum(peak[num*99:])/(num*...
20.578947
73
0.59335
0
0
0
0
0
0
0
0
44
0.112532
a8172aac1601eb8a00a3b924aa63876138f48a83
1,347
py
Python
Code/Database Creator/examples.py
Storm-Petrel/HawkEye
f9afde3866ab9e5e71de7f2be4d836be9ed48d69
[ "MIT" ]
null
null
null
Code/Database Creator/examples.py
Storm-Petrel/HawkEye
f9afde3866ab9e5e71de7f2be4d836be9ed48d69
[ "MIT" ]
null
null
null
Code/Database Creator/examples.py
Storm-Petrel/HawkEye
f9afde3866ab9e5e71de7f2be4d836be9ed48d69
[ "MIT" ]
null
null
null
import csv from faker import Faker fake = Faker() for x in range(0, 10): placa = fake.pystr(min_chars=3, max_chars=3).upper() + str(fake.pydecimal(left_digits=1, right_digits=1, positive=True)) + str(fake.pydecimal(left_digits=1, right_digits=1, positive=True)) placa = placa.replace(".","") atua...
51.807692
193
0.697847
0
0
0
0
0
0
0
0
34
0.025241
a8178087a6d24532c3fa392eae43c6d6a8b30612
4,595
py
Python
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
2
2019-07-31T23:14:14.000Z
2020-12-26T16:27:02.000Z
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
2
2019-07-31T22:22:06.000Z
2020-07-14T04:58:16.000Z
from PyQt5.QtWidgets import QWidget, QApplication, QPushButton, QLabel, QLineEdit, QVBoxLayout, QMessageBox, QCheckBox,\ QSpinBox, QComboBox, QListWidget, QDialog, QFileDialog, QProgressBar, QTableWidget, QTableWidgetItem,\ QAbstractItemView, QSpinBox, QSplitter, QSizePolicy, QAbstractScrollArea, QHBoxLayout, Q...
47.864583
120
0.654189
3,871
0.842437
0
0
0
0
0
0
100
0.021763
a81b25109e2c25d80338be4ee486823e581a2347
3,813
py
Python
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
null
null
null
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
1
2022-01-09T12:07:13.000Z
2022-01-09T15:29:41.000Z
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
null
null
null
import os import psutil import json import sqlite3 import threading from datetime import datetime, timezone from websocket import create_connection class CustomHandler: def __init__(self): self.working = False self.counter = 0 self.ws = None if self.dbReady('./data/wiki_statsDB'):...
32.87069
199
0.575924
3,654
0.958301
0
0
0
0
0
0
911
0.238919
a81d611063f78006b5948c72bc4dd6b96d015544
1,035
py
Python
simulate/continue.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
2
2015-04-27T01:57:43.000Z
2015-05-01T18:18:56.000Z
simulate/continue.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
null
null
null
simulate/continue.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
null
null
null
from __future__ import print_function from simtk.openmm import app import simtk.openmm as mm from simtk import unit from sys import stdout import os import time import numpy as np import argparse from equil import setup_sim, dynamix parser = argparse.ArgumentParser(description='equilibrate structures') parser.add_argu...
26.538462
88
0.745894
0
0
0
0
0
0
0
0
215
0.207729
a81eba16cf9a55afaac7c0432d5bc776ba731b35
40,893
py
Python
py/agentflow/preprocessors/observation_transforms_test.py
wx-b/dm_robotics
5d407622360ccf7f0b4b50bcee84589e2cfd0783
[ "Apache-2.0" ]
128
2021-09-08T18:39:39.000Z
2022-03-27T11:29:05.000Z
py/agentflow/preprocessors/observation_transforms_test.py
wx-b/dm_robotics
5d407622360ccf7f0b4b50bcee84589e2cfd0783
[ "Apache-2.0" ]
7
2021-10-11T14:26:17.000Z
2022-03-15T17:26:45.000Z
py/agentflow/preprocessors/observation_transforms_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
8
2021-09-08T18:25:49.000Z
2022-02-21T23:45:16.000Z
# Copyright 2020 DeepMind Technologies Limited. # # 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 ag...
39.358037
80
0.706747
37,005
0.904923
0
0
13,818
0.337906
0
0
4,055
0.099161
a81fa302f2ff4cbc6dc18bbb647920f29a503d5e
1,897
py
Python
2017/23b.py
mcbor/advent_of_code_2016
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
1
2016-12-17T10:53:22.000Z
2016-12-17T10:53:22.000Z
2017/23b.py
mcbor/adventofcode
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
null
null
null
2017/23b.py
mcbor/adventofcode
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 23b.py ~~~~~~ Advent of Code 2017 - Day 23: Coprocessor Conflagration Part Two Now, it's time to fix the problem. The debug mode switch is wired directly to register a. You flip the switch, which makes register a now start at 1 when the pr...
24.012658
79
0.615709
0
0
0
0
0
0
0
0
1,109
0.584607
a81fc289f1eb7f0a4f761bd960c55555bea22c98
4,456
py
Python
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 20 11:59:50 2018 @author: klaus """ import numpy as np import matplotlib.pyplot as plt import time import random from argparse import ArgumentParser, RawTextHelpFormatter class GameOfLife: def __init__(self, width, height, interval, seed): ran...
41.64486
123
0.47711
2,446
0.548923
0
0
0
0
0
0
623
0.139811
a82054bcbbc93091d6cde0c3bba2fa420fc0e4b0
520
py
Python
tests/mixins/back_tests.py
StuartMacKay/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
9
2020-05-16T20:26:33.000Z
2021-11-02T06:24:46.000Z
tests/mixins/back_tests.py
StuartMacKay/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
17
2019-06-22T09:41:22.000Z
2020-09-11T06:25:21.000Z
tests/mixins/back_tests.py
ProjectBabbler/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
null
null
null
from ebird.api.constants import DEFAULT_BACK from tests.mixins.base import BaseMixin class BackTestsMixin(BaseMixin): def test_back_is_sent(self): query = self.api_call(back=10)[1] self.assertEqual(query["back"], 10) def test_default_back_is_not_sent(self): query = self.api_call(back=...
30.588235
51
0.709615
432
0.830769
0
0
0
0
0
0
15
0.028846
a820c01ed9ab1a3512b23d858002b832b81b6f26
506
py
Python
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
6
2021-02-09T22:27:55.000Z
2022-01-14T18:15:17.000Z
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
34
2021-02-09T22:23:33.000Z
2022-03-31T16:22:51.000Z
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
12
2021-02-09T21:17:10.000Z
2022-02-09T16:35:39.000Z
""" Export data from Tamr using df-connect. An example where everything is default in config file, which implies exported data is written back to same database as ingested from. """ import tamr_toolbox as tbox my_config = tbox.utils.config.from_yaml("examples/resources/conf/connect.config.yaml") my_connect = tbox.dat...
36.142857
94
0.8083
0
0
0
0
0
0
0
0
265
0.523715
a822bff3f043bc516ac3c82ab2394920c525256d
1,700
py
Python
services/web/project/auth/forms.py
petervuyk456/persona_finance
5c4c1bea0e176f37cc122571b846de1f020bdd92
[ "MIT" ]
null
null
null
services/web/project/auth/forms.py
petervuyk456/persona_finance
5c4c1bea0e176f37cc122571b846de1f020bdd92
[ "MIT" ]
null
null
null
services/web/project/auth/forms.py
petervuyk456/persona_finance
5c4c1bea0e176f37cc122571b846de1f020bdd92
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField from wtforms.validators import DataRequired, Length, EqualTo, URL from project.auth.models import User class LoginForm(FlaskForm): username = StringField('Username', [DataRequired(), Length(max=64)]) password = Passwo...
32.075472
72
0.629412
1,498
0.881176
0
0
0
0
0
0
208
0.122353
a82471d2b32cd5726156914bf073feb69a5965b8
10,619
py
Python
projectGo.py
KyleBrownCS/SoftDev2
c992061a849f19f1ccbea71e4c0aa97fb2e135dc
[ "MIT" ]
null
null
null
projectGo.py
KyleBrownCS/SoftDev2
c992061a849f19f1ccbea71e4c0aa97fb2e135dc
[ "MIT" ]
null
null
null
projectGo.py
KyleBrownCS/SoftDev2
c992061a849f19f1ccbea71e4c0aa97fb2e135dc
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, jsonify import sqlite3 import json import re import logging from applicationInfo import ApplicationInfo logging.basicConfig(filename='/var/www/SoftDev2/projectGo.log', level=logging.DEBUG) app = Flask(__name__) applicationInfo = ApplicationInfo() row_pos_obligation...
39.475836
297
0.617384
0
0
0
0
9,861
0.928619
0
0
2,469
0.232508
a8247bed0a1cb5051fa0d35c0fab64fca16aa20d
1,396
py
Python
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. # # 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...
32.465116
86
0.703438
0
0
0
0
637
0.456304
0
0
613
0.439112
a827531247ffd24ded530b9e0dea0c181d142c7b
114
py
Python
math_and_algorithm/024.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
math_and_algorithm/024.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
math_and_algorithm/024.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) ans = 0 for _ in range(N): p, q = map(int, input().split()) ans += (1 / p) * q print(ans)
19
36
0.5
0
0
0
0
0
0
0
0
0
0
a8276b0d3215a9fe2604eec700ad87c77dc2f29b
769
py
Python
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
1
2020-05-13T19:16:23.000Z
2020-05-13T19:16:23.000Z
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
from heapq import heappush, heappop class ListNode: def __init__(self, x): self.val = x self.next = None def __lt__(self, other): return self.val < other.val def mergeKLists(lists): result = ListNode(-1) p = result heap = [] for l in lists: if l: heappush(heap...
17.477273
45
0.579974
154
0.20026
0
0
0
0
0
0
20
0.026008
a8281ad0fab5136b54ef02f2bff2a74dd9aaaf90
166
py
Python
archiver/utils.py
jenrik/archiver
b9e10661d6a79b745796b248c35287db232da8ff
[ "BSD-3-Clause" ]
null
null
null
archiver/utils.py
jenrik/archiver
b9e10661d6a79b745796b248c35287db232da8ff
[ "BSD-3-Clause" ]
null
null
null
archiver/utils.py
jenrik/archiver
b9e10661d6a79b745796b248c35287db232da8ff
[ "BSD-3-Clause" ]
null
null
null
def archive_link(link): # Create a snapshot of the link on the internet archive # ToDo # Ref: https://archive.readme.io/docs/creating-a-snapshot pass
27.666667
61
0.692771
0
0
0
0
0
0
0
0
118
0.710843
a82a766dd5a8919e5aec354cbe63b71c9cd59549
2,297
py
Python
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
1
2021-07-09T11:51:04.000Z
2021-07-09T11:51:04.000Z
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
null
null
null
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
null
null
null
import argparse import glob import numpy as np import os import skimage.io import torch import tifffile from cellpose import models def _parse_args(): """Parse command-line arguments.""" parser = argparse.ArgumentParser() parser.add_argument( "-i", "--input", type=str, def...
25.241758
85
0.562908
0
0
0
0
0
0
0
0
462
0.201132
a82b6067d87e3c320c8e0fb55b9b998dccade592
14,134
py
Python
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
null
null
null
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
1
2021-06-08T02:43:08.000Z
2021-06-08T03:05:21.000Z
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
null
null
null
# # Customer cliff dive data challenge # 2020-02-17 # Leslie Emery # ## Summary # ### The problem # The head of the Yammer product team has noticed a precipitous drop in weekly active users, which is one of the main KPIs for customer engagement. What has caused this drop? # ### My approach and results # I began b...
51.963235
524
0.743809
0
0
0
0
0
0
0
0
8,119
0.57443
a82ba74fc6af916b17675886faaf3aad6278c7c2
796
py
Python
students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
4
2020-09-03T15:41:42.000Z
2021-12-24T15:28:20.000Z
students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
48
2020-09-13T20:22:42.000Z
2021-04-30T11:13:30.000Z
students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
import socket import threading import random def send_message(): try: while True: msg = input() sock.send(bytes(name + ": " + msg, 'utf-8')) if msg == '\leave chat': sock.close() break except Exception: pass finally: ...
20.410256
56
0.548995
0
0
0
0
0
0
0
0
66
0.082915
a82c200cd117a48cc9a2ebacd146f50b56baabcf
23,587
py
Python
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
128
2016-05-10T01:38:27.000Z
2022-02-04T07:14:12.000Z
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
6
2016-07-19T09:27:47.000Z
2021-07-08T21:22:32.000Z
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
36
2016-05-11T08:57:26.000Z
2021-07-07T02:37:07.000Z
from collections import defaultdict import heapq from itertools import chain, repeat from feature_dict import FeatureDictionary import json import numpy as np import scipy.sparse as sp class TokenCodeNamingData: SUBTOKEN_START = "%START%" SUBTOKEN_END = "%END%" NONE = "%NONE%" @staticmethod def _...
51.953744
143
0.644338
23,399
0.99203
0
0
7,055
0.299105
0
0
1,684
0.071395
a82c44a1683f511d5f99fbda3a6f12bd84f86c4c
550
py
Python
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
null
null
null
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
1
2021-02-27T06:12:07.000Z
2021-03-01T14:32:39.000Z
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
1
2021-02-27T06:14:55.000Z
2021-02-27T06:14:55.000Z
words = open("words.txt", "r") words = [x.rstrip("\n") for x in words.readlines()] refwords = open("referencewords.txt", "r") refwords = [x.strip("\n") for x in refwords.readlines()] def find_word(word): retunrval = False if word.lower() in words: retunrval = True return retunrval words_needed = [] def main(): ...
20.37037
56
0.650909
0
0
0
0
0
0
0
0
50
0.090909
a82e508670c379c3dbb7d2f2e849d1ec9ed6d7a8
2,736
py
Python
democrasite/users/tests/test_forms.py
mfosterw/cookiestocracy
6912e9e7c3006024d0fbee61dce5c48e63e9e231
[ "MIT" ]
null
null
null
democrasite/users/tests/test_forms.py
mfosterw/cookiestocracy
6912e9e7c3006024d0fbee61dce5c48e63e9e231
[ "MIT" ]
9
2021-07-18T17:16:42.000Z
2022-03-31T00:19:14.000Z
democrasite/users/tests/test_forms.py
mfosterw/cookiestocracy
6912e9e7c3006024d0fbee61dce5c48e63e9e231
[ "MIT" ]
null
null
null
# pylint: disable=too-few-public-methods,no-self-use from django.utils.crypto import get_random_string from django.utils.translation import gettext_lazy as _ from democrasite.users.forms import ( DisabledChangePasswordForm, DisabledResetPasswordForm, DisabledResetPasswordKeyForm, DisabledSetPasswordFor...
32.571429
87
0.623904
2,341
0.855629
0
0
0
0
0
0
798
0.291667
a82ef552d3bf70dc77e897c13a1b0f9b584ffa9d
3,359
py
Python
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
1
2021-05-24T08:00:29.000Z
2021-05-24T08:00:29.000Z
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
null
null
null
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
1
2021-09-29T03:43:46.000Z
2021-09-29T03:43:46.000Z
# -*- coding: utf-8 -*- """ @author: Terada """ from keras.models import Sequential, Model from keras.layers import Dense, MaxPooling2D, Flatten, Dropout from keras.layers import Conv2D, BatchNormalization, ZeroPadding2D, MaxPool2D from keras.layers import Input, Convolution2D, AveragePooling2D, merge, Reshape, Activat...
42.518987
122
0.677583
0
0
0
0
0
0
0
0
330
0.098244
a82fdc3cbf4660f5463187cd042910a00705a302
9,951
py
Python
lambdak_spec.py
yawaramin/lambdak
5038531f2939dfbbbf94ea859454efaf69bf6487
[ "MIT" ]
19
2015-01-13T23:36:23.000Z
2021-05-29T16:05:05.000Z
lambdak_spec.py
yawaramin/lambdak
5038531f2939dfbbbf94ea859454efaf69bf6487
[ "MIT" ]
1
2015-11-09T17:23:05.000Z
2015-11-09T18:48:26.000Z
lambdak_spec.py
yawaramin/lambdak
5038531f2939dfbbbf94ea859454efaf69bf6487
[ "MIT" ]
3
2016-03-26T15:57:36.000Z
2018-11-30T07:04:03.000Z
from contextlib import closing, contextmanager import StringIO as s import unittest as t from lambdak import * # A helper class to test attribute access. class A: pass # Helper functions for the tests. def inc(x): return x + 1 def double(x): return x * 2 class test_lambdak(t.TestCase): def test_init_k_x(self): ...
25.320611
162
0.633203
9,639
0.968646
206
0.020701
0
0
0
0
1,375
0.138177
a830be9674eca4b0486b3f40d92cbb270322784c
2,327
py
Python
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
7
2019-03-04T14:28:53.000Z
2022-01-31T12:11:53.000Z
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
null
null
null
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
4
2019-03-04T14:29:01.000Z
2022-01-31T12:11:40.000Z
# Coded By : Ismael Al-safadi from win32gui import GetWindowText, GetForegroundWindow from pyperclip import copy from re import findall from win32clipboard import OpenClipboard , GetClipboardData , CloseClipboard from time import sleep class BitcoinDroper: """ class for spoofing Bitcoin Wallet address...
31.026667
96
0.628277
1,733
0.744736
0
0
0
0
0
0
741
0.318436
a832641c2261a8791df173a07f00c6ea847b04f1
504
py
Python
Exploits/Protostar/stack/stack2.py
SkyBulk/OSCE
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
80
2018-07-12T04:58:02.000Z
2022-03-18T11:31:49.000Z
Exploits/Protostar/stack/stack2.py
SunWare-shellcoder/OSCE-1
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
null
null
null
Exploits/Protostar/stack/stack2.py
SunWare-shellcoder/OSCE-1
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
43
2018-07-12T19:48:15.000Z
2021-11-01T13:16:25.000Z
#!/usr/bin/env python # $Id: stack2.py,v 1.0 2018/06/21 23:12:02 dhn Exp $ from pwn import * level = 2 host = "10.168.142.133" user = "user" chal = "stack%i" % level password = "user" binary = "/opt/protostar/bin/%s" % chal shell = ssh(host=host, user=user, password=password) padding = "A" * 64 addr = p32(0x0d0a0...
20.16
55
0.656746
0
0
0
0
0
0
0
0
204
0.404762
a8347276bdea4347d1187329f50e22db158c90b3
5,096
py
Python
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
4
2020-02-13T18:57:41.000Z
2020-08-03T21:08:26.000Z
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
null
null
null
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
1
2021-06-14T13:42:39.000Z
2021-06-14T13:42:39.000Z
import urllib.parse, urllib.request,json import time import hmac, hashlib,random,base64 #yahoo stuff #client ID dj0yJmk9S3owYWNNcm1jS3VIJmQ9WVdrOU1HMUZiMHh5TjJNbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD0xOQ-- #client secret ID fcde44eb1bf2a7ff474b9fd861a6fcf33be56d3f def setConsumerCreds(cons_key,cons_s...
41.770492
116
0.724882
0
0
0
0
0
0
0
0
708
0.138932
a8347a798c6edcafbe98def909244e3a366c1264
5,246
py
Python
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
9
2017-05-27T20:42:46.000Z
2020-11-12T21:03:28.000Z
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
30
2017-02-16T19:43:18.000Z
2018-01-17T21:17:01.000Z
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
6
2017-02-24T03:40:04.000Z
2020-11-22T20:29:11.000Z
import os, sys, logging, threading, tempfile, shutil, tarfile, inspect from ConfigParser import RawConfigParser import requests from DXLiquidIntelApi import DXLiquidIntelApi log = logging.getLogger(__name__) class UpdateManager: def __init__(self, liquidApi, packageType, checkUnpublished, packageCheckInterval, c...
51.940594
191
0.62276
5,025
0.957873
0
0
154
0.029356
0
0
1,372
0.261533