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
c5160250b4498c1f1e7cd89943e80a080c1c9214
689
py
Python
Base/__init__.py
jasrub/panorama-worker
35083d4e46b7c15e33ef352562bd7889634dcebc
[ "MIT" ]
2
2017-05-30T13:38:44.000Z
2020-06-08T08:27:32.000Z
Base/__init__.py
jasrub/panorama-worker
35083d4e46b7c15e33ef352562bd7889634dcebc
[ "MIT" ]
null
null
null
Base/__init__.py
jasrub/panorama-worker
35083d4e46b7c15e33ef352562bd7889634dcebc
[ "MIT" ]
null
null
null
import os import json import ConfigParser import logging.config base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # load the shared settings file settings_file_path = os.path.join(base_dir, 'config', 'settings.config') settings = ConfigParser.ConfigParser() settings.read(settings_file_path) # s...
32.809524
87
0.69521
0
0
0
0
0
0
0
0
184
0.267054
c5160d08bb96e67a6e7e528e268fa0a4a2d6dfb2
2,462
py
Python
src/main.py
Grant-Steinfeld/python-ubi-openshift
82fb2d4a4093a5b67c68a3443da23532f59a230c
[ "Apache-2.0" ]
7
2020-04-21T21:23:39.000Z
2022-02-16T11:09:58.000Z
src/main.py
Grant-Steinfeld/python-ubi-openshift
82fb2d4a4093a5b67c68a3443da23532f59a230c
[ "Apache-2.0" ]
3
2020-02-18T21:57:04.000Z
2020-03-26T20:37:22.000Z
src/main.py
Grant-Steinfeld/python-ubi-openshift
82fb2d4a4093a5b67c68a3443da23532f59a230c
[ "Apache-2.0" ]
13
2020-04-27T19:56:43.000Z
2022-03-31T03:53:22.000Z
from flask import Flask from flask_restplus import Api, Resource, fields from services.serviceHandler import convertCurrency, getCurrencyExchangeRates from services.countryCurrencyCodeHandler import ( getCountryAndCurrencyCode, getCurrencyNameAndCode, ) app = Flask(__name__) api = Api( app, version="1....
31.974026
98
0.718522
902
0.366369
0
0
1,391
0.564988
0
0
867
0.352153
c517a4c10d04e5d45c2f649fb106b2a711638d2d
6,344
py
Python
orchestration/run/BrokerActions.py
pjk25/RabbitTestTool
c0b9e820f079d14d516185f2790371380e190d6c
[ "MIT" ]
null
null
null
orchestration/run/BrokerActions.py
pjk25/RabbitTestTool
c0b9e820f079d14d516185f2790371380e190d6c
[ "MIT" ]
null
null
null
orchestration/run/BrokerActions.py
pjk25/RabbitTestTool
c0b9e820f079d14d516185f2790371380e190d6c
[ "MIT" ]
null
null
null
import sys import io import subprocess import threading import time import uuid import os.path import requests import json from random import randint from UniqueConfiguration import UniqueConfiguration from CommonConfiguration import CommonConfiguration from printer import console_out class BrokerActions: def __in...
42.577181
144
0.589061
6,057
0.95476
0
0
0
0
0
0
975
0.153689
c5198d8481c8a0970f981fde506e8ae0b90aab1f
1,763
py
Python
bin/wls_users.py
rstyczynski/wls-tools
292a39a3f7af7b9d7d4c4849618d6789daae9b58
[ "Apache-2.0" ]
null
null
null
bin/wls_users.py
rstyczynski/wls-tools
292a39a3f7af7b9d7d4c4849618d6789daae9b58
[ "Apache-2.0" ]
null
null
null
bin/wls_users.py
rstyczynski/wls-tools
292a39a3f7af7b9d7d4c4849618d6789daae9b58
[ "Apache-2.0" ]
null
null
null
#!$BEA_HOME/oracle_common/common/bin/wlst.sh # default values admin_name = 'AdminServer' admin_address = 'localhost' admin_port = 7001 admin_protocol = 't3' admin_url = admin_protocol + "://" + admin_address + ":" + str(admin_port) def usage(): print "dump_users [-s|--server -p|--port] [-u|--url] [-d|--delimite...
27.546875
101
0.642087
0
0
0
0
0
0
0
0
325
0.184345
c51b416cfe1486d20ea86dd385bdcfa1be5f1bbe
1,082
py
Python
scripts/drop_low_coverage.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
null
null
null
scripts/drop_low_coverage.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
null
null
null
scripts/drop_low_coverage.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from Bio import AlignIO, Seq # parameter to determine the maximum missing proportion that we keep missing_thresh = 0.4 # load the alignments and turn them into a numpy array alignments = AlignIO.read(snakemake.input[0], 'fasta') align_arr = np.array([list(rec) for rec in alignme...
31.823529
72
0.711645
0
0
0
0
0
0
0
0
308
0.284658
c51b5610a93a01c7edaae445a44f41f8aa36b738
626
py
Python
get_proc_users.py
dangtrinhnt/gem
bc53cf19d3541542e4c14c24b5fb186432e91c45
[ "Apache-2.0" ]
null
null
null
get_proc_users.py
dangtrinhnt/gem
bc53cf19d3541542e4c14c24b5fb186432e91c45
[ "Apache-2.0" ]
44
2019-11-18T20:15:35.000Z
2021-07-27T20:26:38.000Z
get_proc_users.py
dangtrinhnt/gem
bc53cf19d3541542e4c14c24b5fb186432e91c45
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import sys from commons import * def print_proc_users(csv_path, condition_number): csv_dat = get_dict_data_from_csv_file(csv_path) if csv_dat: print "Processing user with condition %s\n" % condition_number for email in csv_dat: num = str_to_num(email['src']) % 10 if num in conditio...
24.076923
64
0.699681
0
0
0
0
0
0
0
0
105
0.167732
c51c826bcad9a887b4123c7790037f70e652cfae
1,250
py
Python
fix_ccJSON.py
boada/wmh
f2abe5ff2aeeae6eebab2e8c40803b3fcec9ac3a
[ "MIT" ]
null
null
null
fix_ccJSON.py
boada/wmh
f2abe5ff2aeeae6eebab2e8c40803b3fcec9ac3a
[ "MIT" ]
null
null
null
fix_ccJSON.py
boada/wmh
f2abe5ff2aeeae6eebab2e8c40803b3fcec9ac3a
[ "MIT" ]
null
null
null
import pandas as pd import sys def fix(lists): df = pd.read_json(lists) df2 = pd.DataFrame([p for p1 in df.players for p in p1]) df2['theme1'] = '' df2['theme2'] = '' for i, l in df2.list2.iteritems(): try: df2.theme2.iloc[i] = l['theme'] except KeyError: c...
24.038462
60
0.508
0
0
0
0
0
0
0
0
87
0.0696
c51deae5ca13775e3c2ef4b77c14c0ca5e33d193
1,184
py
Python
01-Lesson-Plans/03-Python-Pandas/1/Activities/12-functions-02/Unsolved/functions-02.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/03-Python-Pandas/1/Activities/12-functions-02/Unsolved/functions-02.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/03-Python-Pandas/1/Activities/12-functions-02/Unsolved/functions-02.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
# Define a function "warble" that takes in a string as an argument, adds " arglebargle" to the end of it, and returns the result. # Print the result of calling your "warble" function with the argument "hello". # Define a function "wibble" that takes a string as an argument, prints the argument, prepends "wibbly " t...
43.851852
261
0.771115
0
0
0
0
0
0
0
0
1,158
0.978041
c51e6be205213ab9c3f0f822b11808c56b8e2982
1,003
py
Python
Section 6 - Modular Programming/Green eggs and ham v4.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
10
2020-02-14T14:28:15.000Z
2022-02-02T18:44:11.000Z
Section 6 - Modular Programming/Green eggs and ham v4.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
null
null
null
Section 6 - Modular Programming/Green eggs and ham v4.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
8
2020-03-25T09:27:42.000Z
2021-11-03T15:24:38.000Z
# Event: LCCS Python Fundamental Skills Workshop # Date: Dec 2018 # Author: Joe English, PDST # eMail: [email protected] # Purpose: To find (and fix) two syntax errors # A program to display Green Eggs and Ham (v4) def showChorus(): print() print("I do not like green eggs and ham.") print...
30.393939
75
0.658026
0
0
0
0
0
0
0
0
689
0.686939
c51e94a6e708f618911c4ecc6deceed3e193e44e
1,107
py
Python
internal/handlers/singapore.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
null
null
null
internal/handlers/singapore.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
null
null
null
internal/handlers/singapore.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
null
null
null
import settings import handlers.base_handler import csv class CartogramHandler(handlers.base_handler.BaseCartogramHandler): def get_name(self): return "Singapore (by Region)" def get_gen_file(self): return "{}/singapore_map_processedmap.json".format(settings.CARTOGRAM_DATA_DIR) def v...
29.918919
292
0.641373
1,049
0.947606
0
0
0
0
0
0
332
0.29991
c51f18d40b89343f5d2cfddd15750839af888439
1,247
py
Python
code.py
aashray18521/parallelModifiedGrepPython
afad79662e59e1e6fc5f491ba988995a312dc205
[ "MIT" ]
null
null
null
code.py
aashray18521/parallelModifiedGrepPython
afad79662e59e1e6fc5f491ba988995a312dc205
[ "MIT" ]
3
2020-11-23T15:37:43.000Z
2020-11-23T15:38:51.000Z
code.py
aashray18521/parallelModifiedGrepPython
afad79662e59e1e6fc5f491ba988995a312dc205
[ "MIT" ]
null
null
null
import multiprocessing import os import time rootdir = input() keyword = input() batch_size = 1 def try_multiple_operations(file_path): try: with open(file_path, "rb") as f: # open the file for reading for line in f: # use: for i, line in enumerate(f) if you need line numbers ...
31.974359
87
0.644747
0
0
0
0
0
0
0
0
268
0.214916
c51f3d08b27846ef7d07616f6d207a8d88638159
1,316
py
Python
flask_youku/__init__.py
xiaoyh121/program
6826f024cce7a4250a1dab8dba145c1f0d713286
[ "Apache-2.0" ]
176
2016-12-11T03:24:41.000Z
2021-12-10T11:44:37.000Z
flask_youku/__init__.py
xiaoyh121/program
6826f024cce7a4250a1dab8dba145c1f0d713286
[ "Apache-2.0" ]
4
2018-02-07T03:31:13.000Z
2021-12-25T13:03:49.000Z
flask_youku/__init__.py
xiaoyh121/program
6826f024cce7a4250a1dab8dba145c1f0d713286
[ "Apache-2.0" ]
76
2016-11-13T08:57:38.000Z
2021-12-25T12:02:05.000Z
from flask import Blueprint, Markup from flask import render_template class Youku(object): """Flask-Youku extents.""" def __init__(self, app=None, **kwargs): """Init Flask-Youku's instance via app object""" if app: self.init_app(app) def init_app(self, app): """Init F...
24.830189
59
0.609422
1,115
0.847264
0
0
157
0.119301
0
0
375
0.284954
c51fefbd501d6ac95a99920e7040a7192440ef23
26,061
py
Python
main.py
DasAnish/TutorMatch
1b2cf3a71e859f519d645dc33edf72a975661066
[ "MIT" ]
null
null
null
main.py
DasAnish/TutorMatch
1b2cf3a71e859f519d645dc33edf72a975661066
[ "MIT" ]
null
null
null
main.py
DasAnish/TutorMatch
1b2cf3a71e859f519d645dc33edf72a975661066
[ "MIT" ]
1
2021-09-19T15:00:59.000Z
2021-09-19T15:00:59.000Z
from backend import Backend, Tutor, Parent from kivy.app import App from kivy.base import Builder from kivy.uix.widget import Widget from kivy.uix.label import Label from kivy.uix.button import Button from kivy.properties import ObjectProperty from kivy.core.window import Window from kivy.uix.image import Image from ki...
40.784038
192
0.610683
23,993
0.920012
0
0
578
0.022163
0
0
4,352
0.166878
c520331bf38c88e653e41aa4b2d7c402d30d7649
374
py
Python
routes/routes.py
aryan9600/SimpleMath-Flask
855120ba7e7f36435045840ab1c6672308fae7e5
[ "MIT" ]
null
null
null
routes/routes.py
aryan9600/SimpleMath-Flask
855120ba7e7f36435045840ab1c6672308fae7e5
[ "MIT" ]
null
null
null
routes/routes.py
aryan9600/SimpleMath-Flask
855120ba7e7f36435045840ab1c6672308fae7e5
[ "MIT" ]
null
null
null
from flask import Blueprint, request router = Blueprint("router", __name__) @router.route("/check") def check(): return "Congratulations! Your app works. :)" @router.route("/add", methods=["POST"]) def add(): first_number = request.form['FirstNumber'] second_number = request.form['SecondNumber'] re...
22
48
0.697861
0
0
0
0
291
0.778075
0
0
92
0.245989
c5203ec4fd880de88723d9ad07ee74058b1d23cf
1,592
py
Python
configs/repdet/repdet_repvgg_b1g2_nanopan_nanohead_1x_coco.py
karthiksharma98/mmdetection
295145d41a74598db98a037224f0f82c074f3fff
[ "Apache-2.0" ]
null
null
null
configs/repdet/repdet_repvgg_b1g2_nanopan_nanohead_1x_coco.py
karthiksharma98/mmdetection
295145d41a74598db98a037224f0f82c074f3fff
[ "Apache-2.0" ]
null
null
null
configs/repdet/repdet_repvgg_b1g2_nanopan_nanohead_1x_coco.py
karthiksharma98/mmdetection
295145d41a74598db98a037224f0f82c074f3fff
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/repdet_repvgg_pafpn.py', '../_base_/datasets/coco_detection.py', '../_base_/schedules/schedule_poly.py', '../_base_/default_runtime.py' ] # model settings model = dict( type='RepDet', pretrained='/data/kartikes/repvgg_models/repvgg_b1g2.pth', backbone=dict( ...
28.945455
74
0.594849
0
0
0
0
0
0
0
0
364
0.228643
c5206e72ad25192f5a2ed7316aa7ced0c3105161
436
py
Python
tests/test_calculate_branch.py
ivergara/python-abc
b5bb87b80315f8e5ecd2d6f35b7208f0a7df9c3a
[ "Unlicense" ]
2
2021-07-25T20:12:21.000Z
2021-07-25T21:19:23.000Z
tests/test_calculate_branch.py
ivergara/python-abc
b5bb87b80315f8e5ecd2d6f35b7208f0a7df9c3a
[ "Unlicense" ]
1
2021-12-28T22:07:05.000Z
2021-12-28T22:07:05.000Z
tests/test_calculate_branch.py
ivergara/python-abc
b5bb87b80315f8e5ecd2d6f35b7208f0a7df9c3a
[ "Unlicense" ]
1
2021-12-07T19:53:45.000Z
2021-12-07T19:53:45.000Z
import pytest from tests import assert_source_returns_expected BRANCH_CASES = [ # Call ('print("hello world")', 'b | print("hello world")'), # Await ("await noop()", "b | await noop()"), # Class instantiation ("Noop()", "b | Noop()"), ] @pytest.mark.parametrize("source,expected", BRANCH_CAS...
22.947368
68
0.669725
0
0
0
0
169
0.387615
0
0
151
0.34633
c52074b71855ef72867102bc5564df2ba1896c19
4,619
py
Python
client/src/obc.py
estcube/telemetry-forwarding-client
be659c8dd8e4bd26d1d1974d63f90acffd150e34
[ "MIT" ]
3
2020-06-11T12:34:25.000Z
2020-09-16T12:06:32.000Z
client/src/obc.py
estcube/telemetry-forwarding-client
be659c8dd8e4bd26d1d1974d63f90acffd150e34
[ "MIT" ]
57
2020-09-16T09:11:04.000Z
2022-02-28T01:32:13.000Z
client/src/obc.py
estcube/Telemetry-Forwarding-Client
be659c8dd8e4bd26d1d1974d63f90acffd150e34
[ "MIT" ]
null
null
null
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version from kaitaistruct import __version__ as ks_version, KaitaiStruct, KaitaiStream, BytesIO if parse_version(ks_version) < parse_version('0.7'): raise Exception("Incompatible Kai...
52.488636
118
0.657285
4,213
0.912102
0
0
0
0
0
0
185
0.040052
c522238afd1828d1190c7360573f7b8dc442a5a0
1,537
py
Python
SourceWatch/buffer.py
spezifanta/SourceWatch
aaf2cf1ba00015947689181daf77b80bde9b4feb
[ "MIT" ]
6
2019-07-09T19:40:01.000Z
2022-01-24T12:01:37.000Z
SourceWatch/buffer.py
spezifanta/SourceWatch
aaf2cf1ba00015947689181daf77b80bde9b4feb
[ "MIT" ]
null
null
null
SourceWatch/buffer.py
spezifanta/SourceWatch
aaf2cf1ba00015947689181daf77b80bde9b4feb
[ "MIT" ]
1
2020-11-07T13:06:58.000Z
2020-11-07T13:06:58.000Z
import io import struct class SteamPacketBuffer(io.BytesIO): """In-memory byte buffer.""" def __len__(self): return len(self.getvalue()) def __repr__(self): return '<PacketBuffer: {}: {}>'.format(len(self), self.getvalue()) def __str__(self): return str(self.getvalue()) ...
25.616667
74
0.573845
1,510
0.982433
0
0
0
0
0
0
160
0.104099
c52372bcbf3ae907ef32ccf5713d1759604af330
483
py
Python
scripts/npc/holyStone.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/npc/holyStone.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/npc/holyStone.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Holy Stone - Holy Ground at the Snowfield (3rd job) questIDs = [1431, 1432, 1433, 1435, 1436, 1437, 1439, 1440, 1442, 1443, 1445, 1446, 1447, 1448] hasQuest = False for qid in questIDs: if sm.hasQuest(qid): hasQuest = True break if hasQuest: if sm.sendAskYesNo("#b(A mysterious energy surroun...
30.1875
100
0.679089
0
0
0
0
0
0
0
0
176
0.364389
c523effb8f36813f8d45730c0dbdd83679d7448e
16,256
py
Python
pyvmodule/expr.py
tanhongze/pyvmodule
b88cd35e57893024071306d238ce601341ce3bb4
[ "MIT" ]
null
null
null
pyvmodule/expr.py
tanhongze/pyvmodule
b88cd35e57893024071306d238ce601341ce3bb4
[ "MIT" ]
null
null
null
pyvmodule/expr.py
tanhongze/pyvmodule
b88cd35e57893024071306d238ce601341ce3bb4
[ "MIT" ]
1
2020-01-20T07:25:40.000Z
2020-01-20T07:25:40.000Z
#-- coding:utf-8 from .ast import ASTNode from .compute.value import expr_value_calc_funcs,expr_value_prop_funcs from .compute.width import expr_width_calc_funcs,expr_width_fix_funcs from .compute.width import expr_match_width,expr_calc_width from .tools.utility import count_one import warnings __all__ = ['Mux',...
40.237624
123
0.62906
14,690
0.903666
0
0
5,562
0.342151
0
0
713
0.043861
c529b4e8440b64034ec82bd0b0da8014712c8c78
13,936
py
Python
Common_3/Tools/ForgeShadingLanguage/generators/d3d.py
divecoder/The-Forge
e882fbc000b2915b52c98fe3a8c791930490dd3c
[ "Apache-2.0" ]
3,058
2017-10-03T01:33:22.000Z
2022-03-30T22:04:23.000Z
Common_3/Tools/ForgeShadingLanguage/generators/d3d.py
juteman/The-Forge
e882fbc000b2915b52c98fe3a8c791930490dd3c
[ "Apache-2.0" ]
157
2018-01-26T10:18:33.000Z
2022-03-06T10:59:23.000Z
Common_3/Tools/ForgeShadingLanguage/generators/d3d.py
juteman/The-Forge
e882fbc000b2915b52c98fe3a8c791930490dd3c
[ "Apache-2.0" ]
388
2017-12-21T10:52:32.000Z
2022-03-31T18:25:49.000Z
""" GLSL shader generation """ from utils import Stages, getHeader, getShader, getMacro, genFnCall, fsl_assert, get_whitespace from utils import isArray, getArrayLen, getArrayBaseName, getMacroName, DescriptorSets, is_groupshared_decl import os, sys, importlib, re from shutil import copyfile def pssl(fsl, dst, rootSi...
39.703704
130
0.564581
0
0
0
0
0
0
0
0
2,748
0.197187
c52ada24bea0c59c6a12c8a2a1dea577b379a815
1,673
py
Python
test/relationships/test_minhash.py
bateman-research/search-sifter
78b05beac5ca21862d2773609dc4b9395a4982a5
[ "MIT" ]
1
2020-07-20T13:20:00.000Z
2020-07-20T13:20:00.000Z
test/relationships/test_minhash.py
bateman-research/search-sifter
78b05beac5ca21862d2773609dc4b9395a4982a5
[ "MIT" ]
null
null
null
test/relationships/test_minhash.py
bateman-research/search-sifter
78b05beac5ca21862d2773609dc4b9395a4982a5
[ "MIT" ]
null
null
null
import pytest import searchsifter.relationships.minhash as mh import searchsifter.relationships.jaccard as jc @pytest.mark.parametrize("a, b, result", [ ({1, 2}, {2}, 0.5), ({1, 2}, {2, 3}, 1/3), ({1}, {2}, 0), ({1}, {1}, 1) ]) def test_jaccard(a, b, result): assert jc.jaccard(a, b) == result ...
22.306667
68
0.550508
0
0
0
0
1,252
0.748356
0
0
56
0.033473
c52c02d266fb08aaf3f326c61fa1e270518102e0
121
py
Python
cartographer/utils/collections.py
Patreon/cartographer
fe5c03decf01c9f7894bb9cf1f839af435143527
[ "Apache-2.0" ]
29
2016-03-30T00:53:42.000Z
2022-03-02T23:45:12.000Z
cartographer/utils/collections.py
Patreon/cartographer
fe5c03decf01c9f7894bb9cf1f839af435143527
[ "Apache-2.0" ]
20
2016-04-19T18:34:05.000Z
2022-02-14T14:18:33.000Z
cartographer/utils/collections.py
Patreon/cartographer
fe5c03decf01c9f7894bb9cf1f839af435143527
[ "Apache-2.0" ]
5
2016-04-28T00:44:24.000Z
2019-10-26T08:09:17.000Z
def filter_dict(dictionary_to_filter): return dict((k, v) for k, v in dictionary_to_filter.items() if v is not None)
40.333333
81
0.743802
0
0
0
0
0
0
0
0
0
0
c52efabf8d8724ff1df4180be0a678f90bbcc559
1,672
py
Python
tests/integration/test_between_tags.py
liorbass/pydriller
26e6b594102e1f0a3e1029c5389fedec3cc55471
[ "Apache-2.0" ]
583
2018-04-09T09:48:47.000Z
2022-03-23T17:27:10.000Z
tests/integration/test_between_tags.py
liorbass/pydriller
26e6b594102e1f0a3e1029c5389fedec3cc55471
[ "Apache-2.0" ]
195
2018-05-25T08:10:58.000Z
2022-03-29T09:28:37.000Z
tests/integration/test_between_tags.py
liorbass/pydriller
26e6b594102e1f0a3e1029c5389fedec3cc55471
[ "Apache-2.0" ]
134
2018-04-10T12:57:34.000Z
2022-03-29T13:40:35.000Z
# Copyright 2018 Davide Spadini # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
34.122449
91
0.684211
0
0
0
0
0
0
0
0
909
0.54366
c52f836bfe409a72332984d1519b1c551dfb66b2
847
py
Python
tests/modules/command/button/test_wa_url_parameter.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
null
null
null
tests/modules/command/button/test_wa_url_parameter.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
null
null
null
tests/modules/command/button/test_wa_url_parameter.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
null
null
null
from unittest import TestCase from moceansdk.modules.command.button.wa_url_parameter_button import ( WaUrlParameterButton, ) class TestWaUrlParameter(TestCase): def test_type(self): self.assertEqual(WaUrlParameterButton().type(), "url") def test_setter_return(self): obj = WaUrlParameterB...
27.322581
81
0.670602
714
0.842975
0
0
0
0
0
0
61
0.072019
c52fa39e205177e471e16b57a23781f02f1d2a0d
7,345
py
Python
2019/day21_input.py
coingraham/adventofcode
52b5b3f049242881285d0c2704f44cc1ee2a821e
[ "MIT" ]
5
2020-12-04T04:30:17.000Z
2021-11-12T11:26:22.000Z
2019/day21_input.py
coingraham/adventofcode
52b5b3f049242881285d0c2704f44cc1ee2a821e
[ "MIT" ]
null
null
null
2019/day21_input.py
coingraham/adventofcode
52b5b3f049242881285d0c2704f44cc1ee2a821e
[ "MIT" ]
null
null
null
input_data = """109,2050,21101,0,966,1,21101,13,0,0,1106,0,1378,21101,20,0,0,1105,1,1337,21101,0,27,0,1105,1,1279,1208,1,65,748,1005,748,73,1208,1,79,748,1005,748,110,1208,1,78,748,1005,748,132,1208,1,87,748,1005,748,169,1208,1,82,748,1005,748,239,21101,0,1041,1,21102,1,73,0,1105,1,1421,21101,0,78,1,21101,1041,0,2,2110...
7,345
7,345
0.687543
0
0
0
0
0
0
0
0
7,332
0.99823
c52fa5fe46da648c33fa7618314fa8e93cc98a14
10,860
py
Python
src/python/pants/backend/go/target_types.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/go/target_types.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
12
2022-01-06T23:20:22.000Z
2022-03-17T05:06:37.000Z
src/python/pants/backend/go/target_types.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import os from dataclasses import dataclass from typing import Sequence from pants.core.goals.package import OutputPathField from pants.core.goals.run ...
36.813559
98
0.617127
8,931
0.822376
0
0
927
0.085359
0
0
5,169
0.475967
c52fbd848e1acb3cd166434a5aa79fb5ec3b969e
9,623
py
Python
iris/src/iris/main.py
headma5ter/wall-e
da7624cd58ee3e61b847af6a389cc919e1f2a8d1
[ "MIT" ]
null
null
null
iris/src/iris/main.py
headma5ter/wall-e
da7624cd58ee3e61b847af6a389cc919e1f2a8d1
[ "MIT" ]
null
null
null
iris/src/iris/main.py
headma5ter/wall-e
da7624cd58ee3e61b847af6a389cc919e1f2a8d1
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt import matplotlib.lines as lines from statistics import mode, StatisticsError from csv import QUOTE_ALL import pandas as pd import pathlib import json from iris import logger from iris import config from iris import classifier from iris.helpers.utils import log_function ...
32.731293
103
0.618622
0
0
0
0
7,625
0.792372
0
0
3,048
0.316741
c530c5e8d4407688c79bec94a667aec813211585
2,328
py
Python
data_loader/util.py
lixiaoyu0575/physionet_challenge2020_pytorch
39b5aeeead440eaa88d6fdaf4a8a70c15373e062
[ "MIT" ]
1
2021-05-24T08:09:30.000Z
2021-05-24T08:09:30.000Z
data_loader/util.py
lixiaoyu0575/physionet_challenge2020_pytorch
39b5aeeead440eaa88d6fdaf4a8a70c15373e062
[ "MIT" ]
null
null
null
data_loader/util.py
lixiaoyu0575/physionet_challenge2020_pytorch
39b5aeeead440eaa88d6fdaf4a8a70c15373e062
[ "MIT" ]
null
null
null
from scipy.io import loadmat import numpy as np import os import torch from torch.utils.data import Dataset, TensorDataset from torchvision import transforms # Find unique classes. def get_classes(input_directory, filenames): classes = set() for filename in filenames: with open(filename, 'r') as f: ...
28.390244
78
0.608247
1,191
0.511598
0
0
0
0
0
0
207
0.088918
c53329de3ea7d9bd985ca5fb1b5d8d143c4eb7ac
2,191
py
Python
pyrez/exceptions.py
EthanHicks1/Pyrez
022d62ae893594c2ddcd7fac5e740c693fd4fd54
[ "MIT" ]
null
null
null
pyrez/exceptions.py
EthanHicks1/Pyrez
022d62ae893594c2ddcd7fac5e740c693fd4fd54
[ "MIT" ]
null
null
null
pyrez/exceptions.py
EthanHicks1/Pyrez
022d62ae893594c2ddcd7fac5e740c693fd4fd54
[ "MIT" ]
null
null
null
class CustomException(Exception): def __init__(self, *args, **kwargs): return super().__init__(self, *args, **kwargs) def __str__(self): return str(self.args [1]) class DeprecatedException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs)...
42.960784
54
0.700593
2,175
0.992697
0
0
0
0
0
0
0
0
c538cf5b43e938d74b89e921d97d1ef0493292ec
317
py
Python
solutions/binarysearch.io/hard/collecting-coins/main.py
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
4
2020-11-07T14:38:02.000Z
2022-01-03T19:02:36.000Z
solutions/binarysearch.io/hard/collecting-coins/main.py
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
1
2019-04-17T06:55:14.000Z
2019-04-17T06:55:14.000Z
solutions/binarysearch.io/hard/collecting-coins/main.py
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
null
null
null
class Solution: 2 def solve(self, matrix): 3 from functools import lru_cache 4 @lru_cache(None) 5 def dp(i, j): 6 if i < 0 or j < 0: 7 return 0 8 return max(dp(i - 1, j), dp(i, j - 1)) + matrix[i][j] 9 return dp(len(matrix) - 1, len(matrix[0]) - 1)
31.7
66
0.498423
15
0.047319
0
0
0
0
0
0
0
0
c53adeb9103721e86c1c98d5836be2d9b0c044bf
12,074
py
Python
Python 3/First_steps_on_machine_learning/Maze_using_Bellman_equation/Test_Maze.py
DarkShadow4/python
4cd94e0cf53ee06c9c31e9272572ca9656697c30
[ "MIT" ]
null
null
null
Python 3/First_steps_on_machine_learning/Maze_using_Bellman_equation/Test_Maze.py
DarkShadow4/python
4cd94e0cf53ee06c9c31e9272572ca9656697c30
[ "MIT" ]
null
null
null
Python 3/First_steps_on_machine_learning/Maze_using_Bellman_equation/Test_Maze.py
DarkShadow4/python
4cd94e0cf53ee06c9c31e9272572ca9656697c30
[ "MIT" ]
1
2020-08-19T17:25:22.000Z
2020-08-19T17:25:22.000Z
import pygame, sys, maze_builder, random class Maze(object): def __init__(self, width, height, grid_length, penalizacion = 0.9): # width and height of the window and the grid size (x, y) so there would be a maximum number of nodes which would be x*y super(Maze, self).__init__() pygame.init() ...
46.79845
265
0.595826
10,282
0.851582
0
0
0
0
0
0
4,117
0.340981
c53b663532da343a9e761b6ebf1b05f4670a34a6
13,679
py
Python
powderday/nebular_emission/abund.py
mccbc/powderday
604b4a242216db0e93dc2e50a77bc20dc5cfb10f
[ "BSD-3-Clause" ]
null
null
null
powderday/nebular_emission/abund.py
mccbc/powderday
604b4a242216db0e93dc2e50a77bc20dc5cfb10f
[ "BSD-3-Clause" ]
null
null
null
powderday/nebular_emission/abund.py
mccbc/powderday
604b4a242216db0e93dc2e50a77bc20dc5cfb10f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (division, print_function, absolute_import, unicode_literals) import numpy as np from scipy.interpolate import InterpolatedUnivariateSpline as InterpUS from powderday.nebular_emission.cloudy_tools import sym_to_name """ ---------------------------------------------------...
31.159453
90
0.370934
6,739
0.492653
0
0
0
0
0
0
2,295
0.167775
c53b92a47fb947f6f8b829b01647aa8c055f8973
644
py
Python
character/migrations/0004_alter_character_alignment.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
character/migrations/0004_alter_character_alignment.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
character/migrations/0004_alter_character_alignment.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-12 02:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('character', '0003_alter_character_id'), ] operations = [ migrations.AlterField( model_name='character', name='alignm...
33.894737
300
0.591615
551
0.85559
0
0
0
0
0
0
269
0.417702
c53bcf309d42be5b0611b4932b04593b5fb3c79b
818
py
Python
graphs_trees/check_balance/test_check_balance.py
filippovitale/interactive-coding-challenges
8380a7aa98618c3cc9c0271c30bd320937d431ad
[ "Apache-2.0" ]
null
null
null
graphs_trees/check_balance/test_check_balance.py
filippovitale/interactive-coding-challenges
8380a7aa98618c3cc9c0271c30bd320937d431ad
[ "Apache-2.0" ]
null
null
null
graphs_trees/check_balance/test_check_balance.py
filippovitale/interactive-coding-challenges
8380a7aa98618c3cc9c0271c30bd320937d431ad
[ "Apache-2.0" ]
1
2019-12-13T12:57:44.000Z
2019-12-13T12:57:44.000Z
from nose.tools import assert_equal class TestCheckBalance(object): def test_check_balance(self): node = Node(5) insert(node, 3) insert(node, 8) insert(node, 1) insert(node, 4) assert_equal(check_balance(node), True) node = Node(5) insert(node, 3) ...
20.974359
48
0.570905
666
0.814181
0
0
0
0
0
0
39
0.047677
c53bd8529e678df43ecc3a88f38641a5587a1587
1,129
py
Python
D_predict.py
shanqu91/microseismic_event_detection_via_CNN
ff9f0de135d14741c057a2a78e1fd69db18ae1d2
[ "MIT" ]
null
null
null
D_predict.py
shanqu91/microseismic_event_detection_via_CNN
ff9f0de135d14741c057a2a78e1fd69db18ae1d2
[ "MIT" ]
null
null
null
D_predict.py
shanqu91/microseismic_event_detection_via_CNN
ff9f0de135d14741c057a2a78e1fd69db18ae1d2
[ "MIT" ]
1
2021-10-05T08:41:15.000Z
2021-10-05T08:41:15.000Z
import keras from keras.models import Sequential, load_model, Model from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from scipy import io mat_contents = io.loadmat('Data/X_test_0.mat') X_test_0 = mat_contents['X_test_0'] mat_contents = io.loadmat('Data/X_test_1.mat') X_tes...
35.28125
95
0.782108
0
0
0
0
0
0
0
0
205
0.181577
c53d72e1616e580f62f88e5fc1f0a262cb103728
94
py
Python
app/db_manager/apps.py
PragmaticCoder/Linkedin-Analytics
a990b5cae02f0d758bc3123bde643d13a439efa3
[ "MIT" ]
13
2018-07-31T15:37:47.000Z
2021-12-20T04:48:13.000Z
app/db_manager/apps.py
PragmaticCoder/Linkedin-Analytics
a990b5cae02f0d758bc3123bde643d13a439efa3
[ "MIT" ]
25
2019-12-10T20:03:48.000Z
2022-03-11T23:26:11.000Z
app/db_manager/apps.py
PragmaticCoder/Linkedin-Analytics
a990b5cae02f0d758bc3123bde643d13a439efa3
[ "MIT" ]
4
2020-03-24T20:13:50.000Z
2022-02-05T20:40:48.000Z
from django.apps import AppConfig class DbManagerConfig(AppConfig): name = 'db_manager'
15.666667
33
0.765957
57
0.606383
0
0
0
0
0
0
12
0.12766
c53d83148b42eaa02961efd8a515c82ec643034c
813
py
Python
examples/dialogs.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
666
2016-11-14T18:17:40.000Z
2022-03-29T03:53:22.000Z
examples/dialogs.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
598
2016-10-20T21:04:09.000Z
2022-03-15T22:44:49.000Z
examples/dialogs.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
95
2017-01-19T12:23:58.000Z
2022-03-06T18:16:21.000Z
from appJar import gui def press(btn): if btn == "info": app.infoBox("Title Here", "Message here...") if btn == "error": app.errorBox("Title Here", "Message here...") if btn == "warning": app.warningBox("Title Here", "Message here...") if btn == "yesno": app.yesNoBox("Title Here", "Message here...") ...
45.166667
74
0.607626
0
0
0
0
0
0
0
0
389
0.478475
c53d9c366f6302c3f4189f86bcaf5a05f084763e
19,136
py
Python
src_RealData/Nets/ObjectOriented.py
XYZsake/DRFNS
73fc5683db5e9f860846e22c8c0daf73b7103082
[ "MIT" ]
42
2018-10-07T08:19:01.000Z
2022-02-08T17:41:24.000Z
src_RealData/Nets/ObjectOriented.py
XYZsake/DRFNS
73fc5683db5e9f860846e22c8c0daf73b7103082
[ "MIT" ]
11
2018-12-22T00:15:46.000Z
2021-12-03T10:29:32.000Z
src_RealData/Nets/ObjectOriented.py
XYZsake/DRFNS
73fc5683db5e9f860846e22c8c0daf73b7103082
[ "MIT" ]
14
2018-08-26T06:47:06.000Z
2021-07-24T11:52:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import tensorflow as tf import numpy as np import os from sklearn.metrics import confusion_matrix from datetime import datetime class ConvolutionalNeuralNetwork: """ Generic object for create DNN models. This class instinciates all functions needed for D...
38.272
215
0.570861
18,959
0.99075
0
0
0
0
0
0
3,595
0.187866
c53e560dfa34e9fcc79e711abf7084717bfce494
1,571
py
Python
flaskr/test/unit/webapp/test_change_light_color.py
UnibucProjects/SmartAquarium
6f3c16fb7a45218e763b46223568f6c3e5b66bfd
[ "MIT" ]
6
2022-02-02T19:37:57.000Z
2022-02-03T15:12:32.000Z
flaskr/test/unit/webapp/test_change_light_color.py
UnibucProjects/SmartAquarium
6f3c16fb7a45218e763b46223568f6c3e5b66bfd
[ "MIT" ]
18
2022-01-29T22:47:46.000Z
2022-02-03T15:30:28.000Z
flaskr/test/unit/webapp/test_change_light_color.py
UnibucProjects/SmartAquarium
6f3c16fb7a45218e763b46223568f6c3e5b66bfd
[ "MIT" ]
null
null
null
from flask import request import pytest import json from app import create_app, create_rest_api from db import get_db from change_light import is_aquarium_id_valid @pytest.fixture def client(): local_app = create_app() create_rest_api(local_app) client = local_app.test_client() yield client def get_...
26.627119
78
0.706556
0
0
128
0.081477
144
0.091661
0
0
194
0.123488
c53e6e767c955b2bf53a179312e0dc8ac8e05972
4,293
py
Python
commands/inventory.py
zbylyrcxr/DennisMUD
cb9be389e3be3e267fd78b1520ed2902941742da
[ "MIT" ]
2
2022-02-21T17:55:03.000Z
2022-02-22T06:25:04.000Z
commands/inventory.py
zbylyrcxr/DennisMUD
cb9be389e3be3e267fd78b1520ed2902941742da
[ "MIT" ]
3
2022-02-09T18:18:29.000Z
2022-03-07T08:15:54.000Z
commands/inventory.py
zbylyrcxr/DennisMUD
cb9be389e3be3e267fd78b1520ed2902941742da
[ "MIT" ]
1
2022-03-07T08:10:59.000Z
2022-03-07T08:10:59.000Z
####################### # Dennis MUD # # inventory.py # # Copyright 2018-2020 # # Michael D. Reiley # ####################### # ********** # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal i...
39.027273
136
0.642208
0
0
0
0
0
0
0
0
2,126
0.495225
c53ebab62d8ce95d55ec92330a072c34d445b216
296
py
Python
tests/polynomials.py
mernst/cozy
d7b2c0ee575057dea4ebec201d579f0ecd785b1b
[ "Apache-2.0" ]
188
2017-11-27T18:59:34.000Z
2021-12-31T02:28:33.000Z
tests/polynomials.py
mernst/cozy
d7b2c0ee575057dea4ebec201d579f0ecd785b1b
[ "Apache-2.0" ]
95
2017-11-13T01:21:48.000Z
2020-10-30T06:38:14.000Z
tests/polynomials.py
mernst/cozy
d7b2c0ee575057dea4ebec201d579f0ecd785b1b
[ "Apache-2.0" ]
16
2018-02-13T04:49:09.000Z
2021-02-06T13:26:46.000Z
import unittest from cozy.polynomials import Polynomial class TestPolynomials(unittest.TestCase): def test_sorting(self): self.assertLess(Polynomial([2019, 944, 95]), Polynomial([2012, 945, 95])) self.assertGreater(Polynomial([2012, 945, 95]), Polynomial([2019, 944, 95]))
29.6
84
0.712838
237
0.800676
0
0
0
0
0
0
0
0
c53ef504f8c908892ab80122b5998f9150c4ae18
823
py
Python
presenters/calculator_presenter.py
RamonWill/portfolio-management-project
ac8ce313f8d62f09810fc1da19d6b252f193871b
[ "MIT" ]
14
2020-01-01T04:59:06.000Z
2022-02-08T06:48:21.000Z
presenters/calculator_presenter.py
linhvien/portfolio-management-project
ac8ce313f8d62f09810fc1da19d6b252f193871b
[ "MIT" ]
null
null
null
presenters/calculator_presenter.py
linhvien/portfolio-management-project
ac8ce313f8d62f09810fc1da19d6b252f193871b
[ "MIT" ]
8
2020-10-15T06:52:37.000Z
2021-10-04T06:44:36.000Z
from custom_objects import FinanceCalculator from tkinter import messagebox class CalculationsPresenter(object): def __init__(self, view): self.view = view def convert_price(self, price): try: converted_price = FinanceCalculator.decimal_to_treasury(price) self.view.dis...
34.291667
80
0.647631
744
0.90401
0
0
0
0
0
0
70
0.085055
c53f341c44f58f7cf080b91299e6c06e76e614e8
1,877
py
Python
core/power_status_monitor.py
kangyifei/CloudSimPy
45912e7ea35086b67941624102e400cb22e549ab
[ "MIT" ]
null
null
null
core/power_status_monitor.py
kangyifei/CloudSimPy
45912e7ea35086b67941624102e400cb22e549ab
[ "MIT" ]
null
null
null
core/power_status_monitor.py
kangyifei/CloudSimPy
45912e7ea35086b67941624102e400cb22e549ab
[ "MIT" ]
null
null
null
import json class PowerStateMonitor(object): def __init__(self, simulation): self.simulation = simulation self.env = simulation.env self.event_file = simulation.event_file + "_power" self.events = [] def __cal_machine_power(self): machines = self.simulation.cluster.mac...
33.517857
107
0.606819
1,862
0.992009
839
0.44699
0
0
0
0
194
0.103356
c53f7e729f7148ea37a06ebe087c005b16755a1d
25,133
py
Python
maintest.py
thorsilver/ABM-for-social-care
3a47868d2881799980a3f9f24b78c66a31eda194
[ "MIT" ]
null
null
null
maintest.py
thorsilver/ABM-for-social-care
3a47868d2881799980a3f9f24b78c66a31eda194
[ "MIT" ]
null
null
null
maintest.py
thorsilver/ABM-for-social-care
3a47868d2881799980a3f9f24b78c66a31eda194
[ "MIT" ]
1
2018-01-05T15:42:40.000Z
2018-01-05T15:42:40.000Z
from sim import Sim import os import cProfile import pylab import math import matplotlib.pyplot as plt import argparse import json import decimal import numpy as np def init_params(): """Set up the simulation parameters.""" p = {} ## The basics: starting population and year, etc. p['initialPop'] = 7...
40.08453
188
0.56018
0
0
0
0
0
0
0
0
9,567
0.380655
c53f83b4724adf9f9dc5fc23447830899cf93a99
2,427
py
Python
mainapp/views.py
MelqonHovhannisyan/weather
455ce90fd480efb6c05002a53ed478fa4014e84b
[ "MIT" ]
null
null
null
mainapp/views.py
MelqonHovhannisyan/weather
455ce90fd480efb6c05002a53ed478fa4014e84b
[ "MIT" ]
null
null
null
mainapp/views.py
MelqonHovhannisyan/weather
455ce90fd480efb6c05002a53ed478fa4014e84b
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.viewsets import ViewSet from rest_framework.response import Response from .serializers import WeatherSerializer import requests import json import math import os import yaml from rest_framework.decorators import action from django.conf import settings def api_do...
37.338462
180
0.562835
1,808
0.744953
0
0
1,679
0.691801
0
0
565
0.232798
c53f9f1e1c994d952d8c3879b34114ccaf382fd6
5,420
py
Python
tests/test_backtrack.py
nisaruj/algorithms
1e03cd259c2d7ada113eb99843dcada9f20adf54
[ "MIT" ]
6
2018-12-12T09:14:05.000Z
2019-04-29T22:07:28.000Z
tests/test_backtrack.py
nisaruj/algorithms
1e03cd259c2d7ada113eb99843dcada9f20adf54
[ "MIT" ]
null
null
null
tests/test_backtrack.py
nisaruj/algorithms
1e03cd259c2d7ada113eb99843dcada9f20adf54
[ "MIT" ]
1
2021-07-16T16:49:35.000Z
2021-07-16T16:49:35.000Z
from algorithms.backtrack import ( add_operators, permute, permute_iter, anagram, array_sum_combinations, unique_array_sum_combinations, combination_sum, find_words, pattern_match, ) import unittest from algorithms.backtrack.generate_parenthesis import * class TestAddOperator(unit...
28.983957
104
0.474908
5,058
0.93321
0
0
0
0
0
0
798
0.147232
c542862715caa74d2fd3f0e9e9fcab1cbbe24d4a
284
py
Python
syncless/wscherry.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
4
2015-11-25T09:06:44.000Z
2019-12-11T21:35:21.000Z
syncless/wscherry.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
null
null
null
syncless/wscherry.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
2
2015-11-25T09:19:38.000Z
2016-02-26T03:54:06.000Z
import sys sys.path.append("/usr/lib/python2.7/site-packages") import redis _r = redis.Redis(host='localhost', port=6379, db=0) import cherrypy class Test(object): def index(self): _r.incr("/") return "OK!" index.exposed = True cherrypy.quickstart(Test())
17.75
51
0.661972
107
0.376761
0
0
0
0
0
0
53
0.18662
c544eb603d7c0e4860f104e7e494d3ae3bdfe615
538
py
Python
server.py
celinekeisja/jobmonitorservice
aaf56dd198c1275439a0f5ed27617fb458f715ac
[ "MIT" ]
null
null
null
server.py
celinekeisja/jobmonitorservice
aaf56dd198c1275439a0f5ed27617fb458f715ac
[ "MIT" ]
null
null
null
server.py
celinekeisja/jobmonitorservice
aaf56dd198c1275439a0f5ed27617fb458f715ac
[ "MIT" ]
1
2019-11-11T10:26:42.000Z
2019-11-11T10:26:42.000Z
from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from config import db import config app = config.connex_app app.add_api('swagger.yml') @app.route('/') def home(): return 'homepage here' @app.route("/job") @app.route("/job/<string:job_id>") def job(job_id=""): return 'resul...
20.692308
54
0.711896
0
0
0
0
157
0.291822
0
0
143
0.265799
c54618a73487992c76ea8d3ae910cd85c832a27e
4,939
py
Python
website/addons/figshare/views/config.py
harrismendell/osf.io
e2727b1bb2aaa7de494f941be08cb3e9305ae624
[ "Apache-2.0" ]
null
null
null
website/addons/figshare/views/config.py
harrismendell/osf.io
e2727b1bb2aaa7de494f941be08cb3e9305ae624
[ "Apache-2.0" ]
null
null
null
website/addons/figshare/views/config.py
harrismendell/osf.io
e2727b1bb2aaa7de494f941be08cb3e9305ae624
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import httplib as http from flask import request from framework.exceptions import HTTPError from framework.auth.decorators import must_be_logged_in from website.util import web_url_for from website.project.decorators import ( must_have_addon, must_be_addon_authorizer, must_have_permi...
33.371622
90
0.692853
0
0
0
0
2,284
0.462442
0
0
1,333
0.269893
c546f1f9e36c1fc60824e9adb3e2de4e63364611
2,290
py
Python
orquesta/utils/dictionary.py
igcherkaev/orquesta
2baa66d33f53cb04b660b3ce284a52d478ecc528
[ "Apache-2.0" ]
85
2018-07-26T04:29:49.000Z
2022-03-31T10:47:50.000Z
orquesta/utils/dictionary.py
igcherkaev/orquesta
2baa66d33f53cb04b660b3ce284a52d478ecc528
[ "Apache-2.0" ]
149
2018-07-27T22:36:45.000Z
2022-03-31T10:54:32.000Z
orquesta/utils/dictionary.py
igcherkaev/orquesta
2baa66d33f53cb04b660b3ce284a52d478ecc528
[ "Apache-2.0" ]
24
2018-08-07T13:37:41.000Z
2021-12-16T18:12:43.000Z
# Copyright 2019 Extreme Networks, Inc. # # 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 i...
27.590361
78
0.609607
0
0
0
0
0
0
0
0
711
0.31048
c5492165678226fd4bb43b85234e7a9ca9ccd6ce
4,983
py
Python
leetcode_py.py
HuangJingGitHub/PracMakePert_py
1e947b0804fdcd50b2a3afc0af9d824cb55978cd
[ "Apache-2.0" ]
2
2019-05-28T15:04:20.000Z
2019-05-28T15:04:22.000Z
leetcode_py.py
HuangJingGitHub/PracMakePert_py
1e947b0804fdcd50b2a3afc0af9d824cb55978cd
[ "Apache-2.0" ]
null
null
null
leetcode_py.py
HuangJingGitHub/PracMakePert_py
1e947b0804fdcd50b2a3afc0af9d824cb55978cd
[ "Apache-2.0" ]
1
2019-08-30T06:06:33.000Z
2019-08-30T06:06:33.000Z
class solutionLeetcode_3: def lengthOfLongestSubstring(self, s: str) -> (int, str): if not s: return 0 left = 0 lookup = set() n = len(s) max_len = 0 cur_len = 0 for i in range(n): cur_len += 1 while s[i] in lookup: ...
31.14375
102
0.439896
4,960
0.995384
0
0
0
0
0
0
248
0.049769
c549524dfb308c9a530339a9a6c6add82b8d8653
9,114
py
Python
examples/twisted/websocket/auth_persona/server.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
1,670
2015-10-12T15:46:22.000Z
2022-03-30T22:12:53.000Z
examples/twisted/websocket/auth_persona/server.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
852
2015-10-16T22:11:03.000Z
2022-03-27T07:57:01.000Z
examples/twisted/websocket/auth_persona/server.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
790
2015-10-15T08:46:12.000Z
2022-03-30T12:22:13.000Z
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # 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 ...
36.456
115
0.585473
6,750
0.740619
0
0
0
0
0
0
4,244
0.465657
c54a392610a02b36eccf6f7a462a2e02a2aa190a
1,681
py
Python
src/ggrc_risks/models/risk.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_risks/models/risk.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_risks/models/risk.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> from sqlalchemy.ext.declarative import declared_attr from ggrc import db from ggrc.access_control.roleable import Roleable from ggrc.fulltext.mixin import Indexed from ggrc.models.associationproxy import as...
33.62
78
0.732302
1,021
0.607377
0
0
144
0.085663
0
0
392
0.233195
c54a493288773ae7775619c9f9c08446cac8b3d2
1,191
py
Python
booknlp/common/calc_coref_metrics.py
ishine/booknlp
2b42ccd40dc2c62097308398d4e08f91ecab4177
[ "MIT" ]
539
2021-11-22T16:29:40.000Z
2022-03-30T17:50:58.000Z
booknlp/common/calc_coref_metrics.py
gxxu-ml/booknlp
2b42ccd40dc2c62097308398d4e08f91ecab4177
[ "MIT" ]
6
2021-12-12T18:21:49.000Z
2022-03-30T20:51:40.000Z
booknlp/common/calc_coref_metrics.py
gxxu-ml/booknlp
2b42ccd40dc2c62097308398d4e08f91ecab4177
[ "MIT" ]
44
2021-11-22T07:22:50.000Z
2022-03-25T20:02:26.000Z
import subprocess, re, sys def get_coref_score(metric, path_to_scorer, gold=None, preds=None): output=subprocess.check_output(["perl", path_to_scorer, metric, preds, gold]).decode("utf-8") output=output.split("\n")[-3] matcher=re.search("Coreference: Recall: \(.*?\) (.*?)% Precision: \(.*?\) (.*?)% F1: (.*?)%", ou...
31.342105
102
0.686818
0
0
0
0
0
0
0
0
258
0.216625
c54b7ed70bd070a66a466b8ee7706f4673635759
16,878
py
Python
apps/core/test.py
zjjott/html
68429832d8b022602915a267a62051f4869f430f
[ "MIT" ]
null
null
null
apps/core/test.py
zjjott/html
68429832d8b022602915a267a62051f4869f430f
[ "MIT" ]
null
null
null
apps/core/test.py
zjjott/html
68429832d8b022602915a267a62051f4869f430f
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from tornado.testing import AsyncTestCase from apps.core.models import (ModelBase, _get_master_engine, _get_slave_engine) from tornado.options import options from apps.core.urlutils import urlpattens from ...
33.159136
77
0.583185
15,999
0.935614
5,004
0.292632
5,391
0.315263
0
0
2,289
0.13386
c54bfc8137e477b8a93b0291e14e014c3954ee65
622
py
Python
docker/aws/update_event_mapping.py
uk-gov-mirror/nationalarchives.tdr-jenkins
1bcbee009d4384a777247039d44b2790eba34caa
[ "MIT" ]
null
null
null
docker/aws/update_event_mapping.py
uk-gov-mirror/nationalarchives.tdr-jenkins
1bcbee009d4384a777247039d44b2790eba34caa
[ "MIT" ]
34
2020-02-03T14:20:42.000Z
2022-01-26T09:22:09.000Z
docker/aws/update_event_mapping.py
uk-gov-mirror/nationalarchives.tdr-jenkins
1bcbee009d4384a777247039d44b2790eba34caa
[ "MIT" ]
1
2021-04-11T07:11:53.000Z
2021-04-11T07:11:53.000Z
import sys from sessions import get_session account_number = sys.argv[1] stage = sys.argv[2] function_name = sys.argv[3] version = sys.argv[4] function_arn = f'arn:aws:lambda:eu-west-2:{account_number}:function:{function_name}' boto_session = get_session(account_number, "TDRJenkinsLambdaRole" + stage.capitalize()) c...
41.466667
99
0.786174
0
0
0
0
0
0
0
0
142
0.228296
c54c0437171dca7cbeb276eabca7979dd5dce208
2,202
py
Python
src/python/compressao_huffman.py
willisnou/Algoritmos-e-Estruturas-de-Dados
b70a2f692ccae948576177560e3628b9dece5aee
[ "MIT" ]
653
2015-06-07T14:45:40.000Z
2022-03-25T17:31:58.000Z
src/python/compressao_huffman.py
willisnou/Algoritmos-e-Estruturas-de-Dados
b70a2f692ccae948576177560e3628b9dece5aee
[ "MIT" ]
64
2017-10-29T10:53:37.000Z
2022-03-14T23:49:18.000Z
src/python/compressao_huffman.py
willisnou/Algoritmos-e-Estruturas-de-Dados
b70a2f692ccae948576177560e3628b9dece5aee
[ "MIT" ]
224
2015-06-07T14:46:00.000Z
2022-03-25T17:36:46.000Z
# Árvore Huffman class node: def __init__(self, freq, symbol, left=None, right=None): # Frequência do Símbolo self.freq = freq # Símbolo (caracter) self.symbol = symbol # nó à esquerda do nó atual self.left = left # nó à direita do nó atual self.rig...
24.741573
60
0.584469
383
0.170071
0
0
0
0
0
0
1,018
0.452043
c54db6fb5167c6cfc8f323c48a3a8c66fab835af
8,927
py
Python
optiga.py
boraozgen/personalize-optiga-trust
2a158d9fb6cba2bfabce8f5eecb38bc7b81f5bc8
[ "MIT" ]
6
2019-09-27T13:16:29.000Z
2021-04-19T22:00:49.000Z
optiga.py
boraozgen/personalize-optiga-trust
2a158d9fb6cba2bfabce8f5eecb38bc7b81f5bc8
[ "MIT" ]
2
2020-07-10T12:40:59.000Z
2020-08-13T09:26:15.000Z
optiga.py
boraozgen/personalize-optiga-trust
2a158d9fb6cba2bfabce8f5eecb38bc7b81f5bc8
[ "MIT" ]
7
2019-08-23T09:20:52.000Z
2021-06-14T15:01:14.000Z
import argparse import json import base64 import hashlib import sys import binascii from optigatrust.util.types import * from optigatrust.pk import * from optigatrust.x509 import * private_key_slot_map = { 'second': KeyId.ECC_KEY_E0F1, '0xE0E1': KeyId.ECC_KEY_E0F1, '0xE0F1': KeyId.ECC_KEY_E0F1...
39.325991
121
0.596729
0
0
0
0
0
0
0
0
3,123
0.349838
c54de03fd28e53eb54540b034a2e8a1f2994146a
3,532
py
Python
graph_test.py
MathewMacDougall/Two-Faced-Type
53fae81a151fd0689ac7328dda6b3e984c9a42e9
[ "MIT" ]
null
null
null
graph_test.py
MathewMacDougall/Two-Faced-Type
53fae81a151fd0689ac7328dda6b3e984c9a42e9
[ "MIT" ]
25
2020-11-15T05:30:23.000Z
2020-12-12T22:03:35.000Z
graph_test.py
MathewMacDougall/Two-Faced-Type
53fae81a151fd0689ac7328dda6b3e984c9a42e9
[ "MIT" ]
null
null
null
import unittest from graph import Graph class TestGraph(unittest.TestCase): def test_create_graph_simple(self): graph = Graph() graph.add_edge(0, 1) graph.add_edge(1, 2) graph.add_edge(2, 0) graph.add_edge(2, 0) # Test double edges don't make a difference self.assert...
34.627451
72
0.610136
3,441
0.974236
0
0
0
0
0
0
53
0.015006
c5508e61b45a9bd59041d4ba0c8bea652aa09b89
2,033
py
Python
cfnbootstrap/construction_errors.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
cfnbootstrap/construction_errors.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
cfnbootstrap/construction_errors.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
3
2017-02-10T13:14:38.000Z
2018-09-20T01:04:20.000Z
#============================================================================== # Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # 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 ...
28.236111
79
0.619774
1,243
0.611412
0
0
0
0
0
0
1,261
0.620266
c5514806a6a0a0953948700c69152edf438355ea
2,798
py
Python
tests/test_variable.py
snc2/tequila
6767ced9215408f7d055c22df7a66ccd610b00fb
[ "MIT" ]
1
2021-01-11T18:40:47.000Z
2021-01-11T18:40:47.000Z
tests/test_variable.py
snc2/tequila
6767ced9215408f7d055c22df7a66ccd610b00fb
[ "MIT" ]
1
2020-05-08T13:34:33.000Z
2021-12-06T06:12:37.000Z
tests/test_variable.py
snc2/tequila
6767ced9215408f7d055c22df7a66ccd610b00fb
[ "MIT" ]
null
null
null
import pytest from tequila import numpy as np from tequila.circuit.gradient import grad from tequila.objective.objective import Objective, Variable import operator def test_nesting(): a = Variable(name='a') variables = {a: 3.0} b = a + 2 - 2 c = (b * 5) / 5 d = -(-c) e = d ** 0.5 f = e ** ...
39.408451
260
0.550751
0
0
0
0
1,939
0.692995
0
0
131
0.046819
c55176ac699f36bb549a798358fd9868f0da10c3
7,649
py
Python
getnear/tseries.py
edwardspeyer/getnear
746f3cedc1aed6166423f54d32e208017f660b38
[ "MIT" ]
null
null
null
getnear/tseries.py
edwardspeyer/getnear
746f3cedc1aed6166423f54d32e208017f660b38
[ "MIT" ]
null
null
null
getnear/tseries.py
edwardspeyer/getnear
746f3cedc1aed6166423f54d32e208017f660b38
[ "MIT" ]
null
null
null
from getnear.config import Tagged, Untagged, Ignore from getnear.logging import info from lxml import etree import re import requests import telnetlib def connect(hostname, *args, **kwargs): url = f'http://{hostname}/' html = requests.get(url).text doc = etree.HTML(html) for title in doc.xpath('//titl...
34.61086
92
0.552098
7,216
0.943391
1,683
0.220029
0
0
0
0
1,319
0.172441
c5524c8d02f3aef3cff31c032990bb8d482aaf1e
16,945
py
Python
Tests/subset/svg_test.py
ThomasRettig/fonttools
629f44b8cc4ed768088b952c9e600190685a90fc
[ "Apache-2.0", "MIT" ]
2,705
2016-09-27T10:02:12.000Z
2022-03-31T09:37:46.000Z
Tests/subset/svg_test.py
ThomasRettig/fonttools
629f44b8cc4ed768088b952c9e600190685a90fc
[ "Apache-2.0", "MIT" ]
1,599
2016-09-27T09:07:36.000Z
2022-03-31T23:04:51.000Z
Tests/subset/svg_test.py
ThomasRettig/fonttools
629f44b8cc4ed768088b952c9e600190685a90fc
[ "Apache-2.0", "MIT" ]
352
2016-10-07T04:18:15.000Z
2022-03-30T07:35:01.000Z
from string import ascii_letters import textwrap from fontTools.misc.testTools import getXML from fontTools import subset from fontTools.fontBuilder import FontBuilder from fontTools.pens.ttGlyphPen import TTGlyphPen from fontTools.ttLib import TTFont, newTable from fontTools.subset.svg import NAMESPACES, ranges impo...
34.652352
110
0.477781
0
0
0
0
12,448
0.734612
0
0
11,761
0.694069
c552f157bcec716a7f87d20bd21cf1b7b813d8da
211
py
Python
models/dl-weights.py
diegoinacio/object-detection-flask-opencv
bc012e884138e9ead04115b8550e833bed134074
[ "MIT" ]
16
2020-03-01T07:35:35.000Z
2022-02-01T16:34:24.000Z
models/dl-weights.py
girish008/Real-Time-Object-Detection-Using-YOLOv3-OpenCV
6af4c550f6128768b646f5923af87c2f654cd1bd
[ "MIT" ]
6
2020-02-13T12:50:24.000Z
2022-02-02T03:22:30.000Z
models/dl-weights.py
girish008/Real-Time-Object-Detection-Using-YOLOv3-OpenCV
6af4c550f6128768b646f5923af87c2f654cd1bd
[ "MIT" ]
8
2020-06-22T10:23:58.000Z
2022-01-14T21:17:50.000Z
""" This script downloads the weight file """ import requests URL = "https://pjreddie.com/media/files/yolov3.weights" r = requests.get(URL, allow_redirects=True) open('yolov3_t.weights', 'wb').write(r.content)
23.444444
55
0.739336
0
0
0
0
0
0
0
0
116
0.549763
c55412d74acd62e5e8c97c0f510ea4a9a80e5595
1,786
py
Python
utim-esp32/modules/utim/utilities/process_device.py
connax-utim/utim-micropython
23c30f134af701a44a8736b09c8c201e13760d18
[ "Apache-2.0" ]
null
null
null
utim-esp32/modules/utim/utilities/process_device.py
connax-utim/utim-micropython
23c30f134af701a44a8736b09c8c201e13760d18
[ "Apache-2.0" ]
null
null
null
utim-esp32/modules/utim/utilities/process_device.py
connax-utim/utim-micropython
23c30f134af701a44a8736b09c8c201e13760d18
[ "Apache-2.0" ]
null
null
null
""" Subprocessor for device messages """ import logging from ..utilities.tag import Tag from ..workers import device_worker_forward from ..workers import device_worker_startup from ..utilities.address import Address from ..utilities.status import Status from ..utilities.data_indexes import SubprocessorIndex _Subproces...
33.074074
80
0.663494
1,379
0.772116
0
0
0
0
0
0
425
0.237962
c556608e317003e7eff23a5318cc565b380cac29
174
py
Python
TrainAndTest/Fbank/LSTMs/__init__.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
8
2020-08-26T13:32:56.000Z
2022-01-18T21:05:46.000Z
TrainAndTest/Fbank/LSTMs/__init__.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
1
2020-07-24T17:06:16.000Z
2020-07-24T17:06:16.000Z
TrainAndTest/Fbank/LSTMs/__init__.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
5
2020-12-11T03:31:15.000Z
2021-11-23T15:57:55.000Z
#!/usr/bin/env python # encoding: utf-8 """ @Author: yangwenhao @Contact: [email protected] @Software: PyCharm @File: __init__.py.py @Time: 2020/3/27 10:43 AM @Overview: """
14.5
26
0.689655
0
0
0
0
0
0
0
0
170
0.977011
c556a7e2e7f0a44508e2fef82666c7378cbf88cf
226
py
Python
ninja/security/__init__.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
ninja/security/__init__.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
ninja/security/__init__.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
from ninja.security.apikey import APIKeyQuery, APIKeyCookie, APIKeyHeader from ninja.security.http import HttpBearer, HttpBasicAuth def django_auth(request): if request.user.is_authenticated: return request.user
28.25
73
0.800885
0
0
0
0
0
0
0
0
0
0
c5596189b90b1ffb040eef3bc2ba25c968d94c71
1,160
py
Python
migrations/versions/66d4be40bced_add_attribute_to_handle_multiline_.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
1
2018-01-01T20:35:43.000Z
2018-01-01T20:35:43.000Z
migrations/versions/66d4be40bced_add_attribute_to_handle_multiline_.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
37
2017-02-24T17:07:25.000Z
2021-09-02T14:49:19.000Z
migrations/versions/66d4be40bced_add_attribute_to_handle_multiline_.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
2
2019-11-05T13:45:45.000Z
2020-11-13T22:02:37.000Z
"""Add attribute to handle multiline information Revision ID: 66d4be40bced Revises: 6a809295d586 Create Date: 2018-05-16 12:13:32.023450 """ import sqlalchemy as sa from alembic import op from limonero.migration_utils import is_sqlite # revision identifiers, used by Alembic. revision = '66d4be40bced' down_revision =...
29.74359
108
0.668103
0
0
0
0
0
0
0
0
503
0.433621
c559db70f1ddb6f54d717326e423cfde57c7f2af
247
py
Python
config.py
kxxoling/horus
a3c4b6c40a1064fffa595976f10358178dd65367
[ "MIT" ]
null
null
null
config.py
kxxoling/horus
a3c4b6c40a1064fffa595976f10358178dd65367
[ "MIT" ]
null
null
null
config.py
kxxoling/horus
a3c4b6c40a1064fffa595976f10358178dd65367
[ "MIT" ]
null
null
null
import os BASE_DIR = os.path.abspath(os.path.dirname(__file__)) CSRF_ENABLED = True SECRET_KEY = 'you-will-never-guess' SQLITE = 'db.sqlite3' SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(BASE_DIR, SQLITE) + '?check_same_thread=False'
22.454545
100
0.740891
0
0
0
0
0
0
0
0
72
0.291498
c55a4b523b8ba2e29366bb76e2448cbced42c61f
4,372
py
Python
tests/test_lp_problem.py
LovisAnderson/flipy
bde898e46e34cdfba39cecb75586fa3f4d816520
[ "Apache-2.0" ]
null
null
null
tests/test_lp_problem.py
LovisAnderson/flipy
bde898e46e34cdfba39cecb75586fa3f4d816520
[ "Apache-2.0" ]
null
null
null
tests/test_lp_problem.py
LovisAnderson/flipy
bde898e46e34cdfba39cecb75586fa3f4d816520
[ "Apache-2.0" ]
null
null
null
import pytest from flipy.lp_problem import LpProblem from flipy.lp_objective import LpObjective, Maximize from flipy.lp_variable import LpVariable from flipy.lp_expression import LpExpression from flipy.lp_constraint import LpConstraint from io import StringIO @pytest.fixture def problem(): return LpProblem('te...
41.638095
205
0.665599
3,883
0.888152
0
0
4,100
0.937786
0
0
825
0.188701
c55a6c83c0c4deda47ef169a2a79ced739a7f4c8
106
py
Python
src/invoice_medicine/apps.py
vandana0608/Pharmacy-Managament
f99bdec11c24027a432858daa19247a21cecc092
[ "bzip2-1.0.6" ]
null
null
null
src/invoice_medicine/apps.py
vandana0608/Pharmacy-Managament
f99bdec11c24027a432858daa19247a21cecc092
[ "bzip2-1.0.6" ]
null
null
null
src/invoice_medicine/apps.py
vandana0608/Pharmacy-Managament
f99bdec11c24027a432858daa19247a21cecc092
[ "bzip2-1.0.6" ]
null
null
null
from django.apps import AppConfig class InvoiceMedicineConfig(AppConfig): name = 'invoice_medicine'
17.666667
39
0.792453
69
0.650943
0
0
0
0
0
0
18
0.169811
c55b87c8df2b77ae553d466bad5d103ac2336d62
5,893
py
Python
tests/components/tectonics/test_listric_kinematic_extender.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
257
2015-01-13T16:01:21.000Z
2022-03-29T22:37:43.000Z
tests/components/tectonics/test_listric_kinematic_extender.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
1,222
2015-02-05T21:36:53.000Z
2022-03-31T17:53:49.000Z
tests/components/tectonics/test_listric_kinematic_extender.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
274
2015-02-11T19:56:08.000Z
2022-03-28T23:31:07.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Mar 5 08:42:24 2021 @author: gtucker """ from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_raises from landlab import HexModelGrid, RadialModelGrid, RasterModelGrid from landlab.components import Flexure, ListricKinemati...
33.293785
88
0.659426
0
0
0
0
0
0
0
0
1,730
0.293569
c55c22b2cd2bfee50cd66031731dbde75ccb7354
22,485
py
Python
unbalanced_dataset/under_sampling.py
designer357/IGBB
89a60ec38fa9dab54175c24c347ee43232825504
[ "MIT" ]
1
2021-08-20T17:14:28.000Z
2021-08-20T17:14:28.000Z
unbalanced_dataset/under_sampling.py
designer357/IGBB
89a60ec38fa9dab54175c24c347ee43232825504
[ "MIT" ]
null
null
null
unbalanced_dataset/under_sampling.py
designer357/IGBB
89a60ec38fa9dab54175c24c347ee43232825504
[ "MIT" ]
1
2018-09-13T23:26:23.000Z
2018-09-13T23:26:23.000Z
from __future__ import print_function from __future__ import division import numpy as np from numpy import logical_not, ones from numpy.random import seed, randint from numpy import concatenate from random import sample from collections import Counter from .unbalanced_dataset import UnbalancedDataset class UnderSampl...
34.806502
104
0.558417
22,162
0.985635
0
0
0
0
0
0
8,359
0.371759
c55c65db8051ee9fdf9ceac3a9490b6f81b381e7
931
py
Python
wikipron/extract/cmn.py
Alireza-Sampour/wikipron
ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d
[ "Apache-2.0" ]
1
2021-08-01T20:31:27.000Z
2021-08-01T20:31:27.000Z
wikipron/extract/cmn.py
Alireza-Sampour/wikipron
ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d
[ "Apache-2.0" ]
null
null
null
wikipron/extract/cmn.py
Alireza-Sampour/wikipron
ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d
[ "Apache-2.0" ]
null
null
null
"""Word and pron extraction for (Mandarin) Chinese.""" import itertools import typing import requests from wikipron.extract.default import yield_pron, IPA_XPATH_SELECTOR if typing.TYPE_CHECKING: from wikipron.config import Config from wikipron.typing import Iterator, Word, Pron, WordPronPair # Select pro...
25.162162
71
0.71536
0
0
461
0.495166
0
0
0
0
247
0.265306
c55ca719e407ecd982eeb52d8e27fa9690f85669
420
py
Python
iis/tests/test_e2e.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
iis/tests/test_e2e.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
iis/tests/test_e2e.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2022-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import pytest from datadog_checks.dev.testing import requires_py3 from datadog_checks.iis import IIS @pytest.mark.e2e @requires_py3 def test_e2e_py3(dd_agent_check, aggregator, instance): aggregator = dd...
26.25
76
0.797619
0
0
0
0
205
0.488095
0
0
131
0.311905
c560c444067061f2f72e5a0dd18c1c1230d2f961
1,174
py
Python
scripts/utils/param_grid_to_files.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
3
2020-11-03T14:54:22.000Z
2021-04-12T12:23:10.000Z
scripts/utils/param_grid_to_files.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
null
null
null
scripts/utils/param_grid_to_files.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
2
2020-12-03T06:21:59.000Z
2021-01-16T04:47:12.000Z
from pathlib import Path import click import yaml from sklearn.model_selection import ParameterGrid from ertk.utils import PathlibPath, get_arg_mapping @click.command() @click.argument("param_grid", type=PathlibPath(exists=True, dir_okay=False)) @click.argument("output", type=Path) @click.option("--format", help="F...
32.611111
76
0.67632
0
0
0
0
977
0.832198
0
0
389
0.331346
c5610fccc549a5c9d69f6c3b166e598fbe0653b9
6,172
py
Python
mangabee_parsers.py
ta-dachi/mangaget
4ef39df0a6cceb2817d3bd0ad4d8290b8f576341
[ "MIT" ]
null
null
null
mangabee_parsers.py
ta-dachi/mangaget
4ef39df0a6cceb2817d3bd0ad4d8290b8f576341
[ "MIT" ]
null
null
null
mangabee_parsers.py
ta-dachi/mangaget
4ef39df0a6cceb2817d3bd0ad4d8290b8f576341
[ "MIT" ]
null
null
null
from html.parser import HTMLParser class mangabeeSearchParser(HTMLParser): def __init__(self): HTMLParser.__init__(self) self.inLink = False self.lastTag = None self.lastClass = None self.urls = [] # Where we store our results def handle_starttag(self, tag, attr...
35.883721
124
0.545366
6,128
0.992871
0
0
0
0
0
0
1,203
0.194913
c5630abd4f13c6d9b9fd911d42b444b3c07c02dd
1,831
py
Python
bme280/reader.py
budrom/dht2eleasticsearch
286974c0f4096ae3fb2f1f700b761051b09c47cf
[ "MIT" ]
null
null
null
bme280/reader.py
budrom/dht2eleasticsearch
286974c0f4096ae3fb2f1f700b761051b09c47cf
[ "MIT" ]
null
null
null
bme280/reader.py
budrom/dht2eleasticsearch
286974c0f4096ae3fb2f1f700b761051b09c47cf
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import threading import sys from Adafruit_BME280 import * from datetime import datetime from elasticsearch import Elasticsearch def readSensor(): # Timestamp for report timestamp = datetime.utcnow() # Recursively initiate next reading in a minute threading.Timer(60-float(datetime....
31.033898
125
0.688695
0
0
0
0
0
0
0
0
502
0.274167
c565a1b2f5a20a17f2045f38225c4233abda30b9
456
py
Python
tests/web/backend_pytest.py
brumar/eel-for-transcrypt
28cf5e0aa55a3c885b63d79d1ffae1370be644d2
[ "MIT" ]
1
2019-12-31T13:53:05.000Z
2019-12-31T13:53:05.000Z
tests/web/backend_pytest.py
brumar/eel-for-transcrypt
28cf5e0aa55a3c885b63d79d1ffae1370be644d2
[ "MIT" ]
1
2021-11-15T17:48:03.000Z
2021-11-15T17:48:03.000Z
tests/web/backend_pytest.py
brumar/eel-for-transcrypt
28cf5e0aa55a3c885b63d79d1ffae1370be644d2
[ "MIT" ]
null
null
null
import eel_for_transcrypt as eel from web.common import InventoryItem @eel.expose def i_return_the_same(anything): return anything @eel.expose def a_generator(mn, mx): yield from range(mn, mx) @eel.expose @eel.apply_factories(inputfactory=InventoryItem) def return_a_dataclass(datac: InventoryItem): ...
16.888889
48
0.756579
0
0
53
0.116228
369
0.809211
0
0
0
0
c565d028bd9c69f1d86bec597f86ad7c3dad14ce
6,989
py
Python
tests/test_polygon.py
tilezen/mapbox-vector-tile
4e3a65a6f98c317048266260b8e7aac705e31e6f
[ "MIT" ]
121
2016-07-14T00:44:54.000Z
2022-03-19T00:49:14.000Z
tests/test_polygon.py
tilezen/mapbox-vector-tile
4e3a65a6f98c317048266260b8e7aac705e31e6f
[ "MIT" ]
53
2016-07-05T14:35:06.000Z
2021-05-20T22:31:02.000Z
tests/test_polygon.py
tilezen/mapbox-vector-tile
4e3a65a6f98c317048266260b8e7aac705e31e6f
[ "MIT" ]
34
2016-07-27T23:45:05.000Z
2022-01-02T20:37:58.000Z
# -*- coding: utf-8 -*- """ Tests for vector_tile/polygon.py """ import unittest from mapbox_vector_tile.polygon import make_it_valid from shapely import wkt import os class TestPolygonMakeValid(unittest.TestCase): def test_dev_errors(self): test_dir = os.path.dirname(os.path.realpath(__file__)) ...
34.945
78
0.529976
6,817
0.97539
0
0
0
0
0
0
3,154
0.451281
c567553f0cf12169873a1f6859559b2967a6ea7a
275
py
Python
snake_debug.py
xlrobotics/PPOC-balance-bot
41dae4b2bbfce94ed04841fa9ba122eb57459e5a
[ "MIT" ]
3
2020-11-10T01:45:35.000Z
2021-09-27T11:39:06.000Z
snake_debug.py
xlrobotics/PPOC-balance-bot
41dae4b2bbfce94ed04841fa9ba122eb57459e5a
[ "MIT" ]
null
null
null
snake_debug.py
xlrobotics/PPOC-balance-bot
41dae4b2bbfce94ed04841fa9ba122eb57459e5a
[ "MIT" ]
2
2020-01-25T17:26:33.000Z
2021-02-16T16:39:38.000Z
import gym # from stable_baselines import DQN as deepq from stable_baselines import A2C as ac from stable_baselines.common.policies import MlpLnLstmPolicy import snake_bot if __name__ == '__main__': env = gym.make("snakebot-v0") env.debug_mode() exit(0)
27.5
61
0.741818
0
0
0
0
0
0
0
0
67
0.243636
c5675771c49be7e9f7d6d764c6141228f78fdc9d
2,179
py
Python
easy/572_subtree_of_another_tree.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
easy/572_subtree_of_another_tree.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
easy/572_subtree_of_another_tree.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
""" Given the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structure and node values of subRoot and false otherwise. A subtree of a binary tree tree is a tree that consists of a node in tree and all of this node's descendants. The tree tree could also be considere...
33.523077
119
0.592015
1,118
0.513079
0
0
0
0
0
0
1,494
0.685636
c567629ea21a15f16d30ea7895f7a40e8e344679
80,085
py
Python
pyeccodes/defs/grib2/localConcepts/cnmc/name_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib2/localConcepts/cnmc/name_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib2/localConcepts/cnmc/name_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): def wrapped(h): discipline = h.get_l('discipline') parameterCategory = h.get_l('parameterCategory') parameterNumber = h.get_l('parameterNumber') instrumentType = h.get_l('instrumentType') satelliteSeries = h.get_l('satelliteSer...
66.7375
355
0.700893
0
0
0
0
0
0
0
0
14,194
0.177237
c56762e2edaef44daca6ab74ffdc3c598a3d259d
2,038
py
Python
perspective_transform.py
shengchen-liu/CarND-Advanced_Lane_Finding
e23a3f5021e59f3acef4e8fec48537fffab0f1b3
[ "MIT" ]
null
null
null
perspective_transform.py
shengchen-liu/CarND-Advanced_Lane_Finding
e23a3f5021e59f3acef4e8fec48537fffab0f1b3
[ "MIT" ]
null
null
null
perspective_transform.py
shengchen-liu/CarND-Advanced_Lane_Finding
e23a3f5021e59f3acef4e8fec48537fffab0f1b3
[ "MIT" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt from calibration_utils import calibrate_camera, undistort import glob import matplotlib.image as mpimg import pickle from threshold import binarize def perspective_transform(img, verbose=False): """ Execute perspective transform """ img_siz...
29.114286
118
0.628557
0
0
0
0
0
0
0
0
315
0.154563
c5681f32ba0443d6943fe18106423ebafc204c78
12,733
py
Python
epgrefresh/src/plugin.py
builder08/enigma2-plugins_2
f8f08b947e23c1c86b011492a7323125774c3482
[ "OLDAP-2.3" ]
null
null
null
epgrefresh/src/plugin.py
builder08/enigma2-plugins_2
f8f08b947e23c1c86b011492a7323125774c3482
[ "OLDAP-2.3" ]
null
null
null
epgrefresh/src/plugin.py
builder08/enigma2-plugins_2
f8f08b947e23c1c86b011492a7323125774c3482
[ "OLDAP-2.3" ]
null
null
null
from __future__ import print_function # for localized messages from . import _, NOTIFICATIONDOMAIN # Config from Components.config import config, ConfigYesNo, ConfigNumber, ConfigSelection, \ ConfigSubsection, ConfigClock, ConfigYesNo, ConfigInteger, NoSave from Screens.MessageBox import MessageBox from Screens.Stan...
35.766854
224
0.783162
0
0
0
0
0
0
0
0
2,589
0.20333
c56a7f8daf694ac42476f66c3d71841a3dd5c679
29,709
py
Python
ongoing/prescriptors/bandit/bandit_prescriptor.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
ongoing/prescriptors/bandit/bandit_prescriptor.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
ongoing/prescriptors/bandit/bandit_prescriptor.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import os from copy import deepcopy import datetime import pickle import time import copy os.system('export PYTHONPATH="$(pwd):$PYTHONPATH"') from ongoing.prescriptors.base import BasePrescriptor, PRED_CASES_COL, CASES_COL, NPI_COLUMNS, NPI_MAX_VALUES import ongoing.prescriptors....
46.492958
188
0.586321
27,272
0.917971
0
0
0
0
0
0
10,902
0.36696
c56aa8051395c03cfefdb6b4c31ba197b3b0d2c8
1,876
py
Python
examples/server.py
zaibon/tcprouter
7e9d2590e1b1d9d984ac742bd82fcbcf3d42b3ef
[ "BSD-3-Clause" ]
5
2019-05-30T23:36:05.000Z
2019-10-10T21:37:53.000Z
examples/server.py
zaibon/tcprouter
7e9d2590e1b1d9d984ac742bd82fcbcf3d42b3ef
[ "BSD-3-Clause" ]
7
2019-06-12T11:55:46.000Z
2019-11-18T22:53:06.000Z
examples/server.py
xmonader/eltcprouter
b3435733d102c2435e9f62aa469d34c475cc31bd
[ "BSD-3-Clause" ]
1
2021-01-05T20:09:51.000Z
2021-01-05T20:09:51.000Z
from gevent import monkey; monkey.patch_all() import logging from gevent.server import StreamServer logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) class Receiver(object): """ Interface for a receiver - mimics Twisted's protocols """ def __init__(self): self.socket =...
25.351351
108
0.601812
641
0.341684
0
0
0
0
0
0
389
0.207356
c56c42d080d6ecfdd85da2bc93ed1de36bb3b713
9,289
py
Python
starter.py
device42/DOQL_scripts_examples
55cdf3868768cb4f609011575b1051d7a69c19c5
[ "Apache-2.0" ]
7
2017-10-25T13:54:18.000Z
2022-01-25T16:16:53.000Z
starter.py
RomanNyschuk/DOQL_scripts_examples
1ec20426dcbe586c9b93ec77002a048c6563dca6
[ "Apache-2.0" ]
2
2018-11-19T18:17:35.000Z
2020-10-09T19:38:53.000Z
starter.py
RomanNyschuk/DOQL_scripts_examples
1ec20426dcbe586c9b93ec77002a048c6563dca6
[ "Apache-2.0" ]
6
2018-10-18T14:39:08.000Z
2021-04-15T19:06:01.000Z
# encoding: utf-8 import os import ssl import sys import csv import json import time import base64 from datetime import datetime from datetime import timedelta try: import pyodbc except ImportError: pass # PYTHON 2 FALLBACK # try: from urllib.request import urlopen, Request from urllib.parse import...
34.531599
262
0.518247
0
0
0
0
0
0
0
0
2,300
0.247605
c56c7f75c3a3c13e0936e45885df9754bb813e14
5,001
py
Python
docs/conf.py
donatelli01/donatelli_documentations
6bf851014a96cd54c16d7d56b5677b081ca0d4e3
[ "CC-BY-4.0" ]
null
null
null
docs/conf.py
donatelli01/donatelli_documentations
6bf851014a96cd54c16d7d56b5677b081ca0d4e3
[ "CC-BY-4.0" ]
null
null
null
docs/conf.py
donatelli01/donatelli_documentations
6bf851014a96cd54c16d7d56b5677b081ca0d4e3
[ "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys, os sys.path.insert(0, os.path.abspath('extensions')) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig', 'epub2', 'mobi', 'autoimage', 'code_example'] todo_inc...
28.577143
89
0.642072
0
0
0
0
0
0
0
0
3,463
0.691494
c56cd8896de2c6a2a8be34144a21660a056501d9
17,031
py
Python
sapphire/simulation.py
alexanderzimmerman/sapphire
1236000d201b8ff44296b0428ef31e5ff0e6078f
[ "MIT" ]
10
2019-04-26T16:23:49.000Z
2022-02-01T22:44:29.000Z
sapphire/simulation.py
alexanderzimmerman/sapphire
1236000d201b8ff44296b0428ef31e5ff0e6078f
[ "MIT" ]
35
2018-12-10T08:55:59.000Z
2019-03-21T10:48:57.000Z
sapphire/simulation.py
alexanderzimmerman/sapphire
1236000d201b8ff44296b0428ef31e5ff0e6078f
[ "MIT" ]
4
2019-04-11T16:49:48.000Z
2021-03-15T00:58:09.000Z
"""Provides a class for constructing simulations based on Firedrake. Simulations proceed forward in time by solving a sequence of Initial Boundary Values Problems (IBVP's). Using the Firedrake framework, the PDE's are discretized in space with Finite Elements (FE). The symbolic capabilities of Firedrake are used t...
36.391026
86
0.575245
14,333
0.841583
0
0
0
0
0
0
8,140
0.477952
c56d0b93bb067141c9ac8d852c7ba2ad1f8b703b
16,389
py
Python
lookmlint/lookmlint.py
kingfink/lookmlint
5fd76328b3ad6917e649a28abed05f64707422b6
[ "Apache-2.0" ]
null
null
null
lookmlint/lookmlint.py
kingfink/lookmlint
5fd76328b3ad6917e649a28abed05f64707422b6
[ "Apache-2.0" ]
1
2020-02-25T16:01:31.000Z
2020-02-25T16:01:31.000Z
lookmlint/lookmlint.py
kingfink/lookmlint
5fd76328b3ad6917e649a28abed05f64707422b6
[ "Apache-2.0" ]
null
null
null
from collections import Counter import json import os import re import subprocess import attr import yaml @attr.s class ExploreView(object): data = attr.ib(repr=False) explore = attr.ib(init=False, repr=False) name = attr.ib(init=False, repr=True) source_view = attr.ib(init=False, repr=False) d...
34.430672
175
0.626945
10,779
0.657697
0
0
10,843
0.661602
0
0
1,491
0.090976
c56d395d346db6cdbf6e9c0543fb7e6ccd0a31e0
4,306
py
Python
book-code/numpy-ml/numpy_ml/utils/testing.py
yangninghua/code_library
b769abecb4e0cbdbbb5762949c91847a0f0b3c5a
[ "MIT" ]
null
null
null
book-code/numpy-ml/numpy_ml/utils/testing.py
yangninghua/code_library
b769abecb4e0cbdbbb5762949c91847a0f0b3c5a
[ "MIT" ]
null
null
null
book-code/numpy-ml/numpy_ml/utils/testing.py
yangninghua/code_library
b769abecb4e0cbdbbb5762949c91847a0f0b3c5a
[ "MIT" ]
null
null
null
"""Utilities for writing unit tests""" import numbers import numpy as np ####################################################################### # Assertions # ####################################################################### def is_symmetric(X): ""...
29.902778
80
0.510683
49
0.011379
0
0
0
0
0
0
2,153
0.5
c56da321682df09ceea1c41371b833fb49044e9e
1,373
py
Python
test/test_googleoauth2.py
GallopLabs/libsaas
80b2d51b81a769eacafc3847cc33700ac80e66fc
[ "MIT" ]
null
null
null
test/test_googleoauth2.py
GallopLabs/libsaas
80b2d51b81a769eacafc3847cc33700ac80e66fc
[ "MIT" ]
null
null
null
test/test_googleoauth2.py
GallopLabs/libsaas
80b2d51b81a769eacafc3847cc33700ac80e66fc
[ "MIT" ]
null
null
null
import unittest from libsaas.executors import test_executor from libsaas.services import googleoauth2 class GoogleOauth2TestCase(unittest.TestCase): def setUp(self): self.executor = test_executor.use() self.executor.set_response(b'{}', 200, {}) self.service = googleoauth2.GoogleOAuth2('...
32.690476
66
0.584122
1,267
0.922797
0
0
0
0
0
0
251
0.182811
c56df3f7bc34ea2a6465e6d328eeae9b03525f21
5,654
py
Python
post_office/migrations/0001_initial.py
carrerasrodrigo/django-post_office
0257a39f9f2d20c1a42c58e8fd4dfaf591221132
[ "MIT" ]
null
null
null
post_office/migrations/0001_initial.py
carrerasrodrigo/django-post_office
0257a39f9f2d20c1a42c58e8fd4dfaf591221132
[ "MIT" ]
null
null
null
post_office/migrations/0001_initial.py
carrerasrodrigo/django-post_office
0257a39f9f2d20c1a42c58e8fd4dfaf591221132
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import jsonfield.fields import post_office.fields import post_office.validators import post_office.models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations....
49.596491
155
0.583658
5,439
0.961974
0
0
0
0
0
0
803
0.142023
c56e81e80b9caed3db5600ddbb8cc958f425902d
3,890
py
Python
ic_gan/data_utils/store_kmeans_indexes.py
ozcelikfu/IC-GAN_fMRI_Reconstruction
31b0dc7659afbf8d12b1e460a38ab6d8d9a4296c
[ "MIT" ]
null
null
null
ic_gan/data_utils/store_kmeans_indexes.py
ozcelikfu/IC-GAN_fMRI_Reconstruction
31b0dc7659afbf8d12b1e460a38ab6d8d9a4296c
[ "MIT" ]
null
null
null
ic_gan/data_utils/store_kmeans_indexes.py
ozcelikfu/IC-GAN_fMRI_Reconstruction
31b0dc7659afbf8d12b1e460a38ab6d8d9a4296c
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """Store dataset indexes of datapoints selected by k-means algorithm.""" from argparse import ArgumentParser import numpy a...
29.029851
100
0.607198
0
0
0
0
0
0
0
0
1,587
0.407969
c570fd6a05953760ae560c4fbed0f8ac9f2fd02d
100
py
Python
src/cattrs/errors.py
aha79/cattrs
50ba769c8349f5891b157d2bb7f06602822ac0a3
[ "MIT" ]
null
null
null
src/cattrs/errors.py
aha79/cattrs
50ba769c8349f5891b157d2bb7f06602822ac0a3
[ "MIT" ]
null
null
null
src/cattrs/errors.py
aha79/cattrs
50ba769c8349f5891b157d2bb7f06602822ac0a3
[ "MIT" ]
null
null
null
from cattr.errors import StructureHandlerNotFoundError __all__ = ["StructureHandlerNotFoundError"]
25
54
0.86
0
0
0
0
0
0
0
0
31
0.31
c5744b17de40e44fcacba60862bc64a6577cf8bb
4,873
py
Python
plugins/funcs.py
prxpostern/URLtoTG003
b41ef5e756193798d8f92ccaa55c0fd7ab5ef931
[ "MIT" ]
null
null
null
plugins/funcs.py
prxpostern/URLtoTG003
b41ef5e756193798d8f92ccaa55c0fd7ab5ef931
[ "MIT" ]
null
null
null
plugins/funcs.py
prxpostern/URLtoTG003
b41ef5e756193798d8f92ccaa55c0fd7ab5ef931
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from main import Config from pyrogram import filters from pyrogram import Client #from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from urllib.parse import quote_plus, unquote import math, os, time, datetime, aiohttp, asyncio, mimetypes, loggi...
36.916667
195
0.692592
0
0
0
0
3,013
0.618305
2,402
0.49292
1,637
0.335933
c574ba0d5085fcc10f94dc14bafe60401b5587a7
2,304
py
Python
git_code_debt/repo_parser.py
cclauss/git-code-debt
6ced089857d3ccda4a00d274e85d7f26de0bdefd
[ "MIT" ]
null
null
null
git_code_debt/repo_parser.py
cclauss/git-code-debt
6ced089857d3ccda4a00d274e85d7f26de0bdefd
[ "MIT" ]
null
null
null
git_code_debt/repo_parser.py
cclauss/git-code-debt
6ced089857d3ccda4a00d274e85d7f26de0bdefd
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals import collections import contextlib import shutil import subprocess import tempfile from git_code_debt.util.iter import chunk_iter from git_code_debt.util.subprocess import cmd_output Commit = collections.namedtuple('Commit', ('sha', 'd...
26.790698
74
0.588542
1,903
0.825955
423
0.183594
454
0.197049
0
0
315
0.136719
c574d6290b0c40bcbc5696cd5ebb36152641b976
215
py
Python
func_one.py
FoxProklya/Step-Python
67514509655e552fc5adcc7963b971ef6f0bb46a
[ "MIT" ]
null
null
null
func_one.py
FoxProklya/Step-Python
67514509655e552fc5adcc7963b971ef6f0bb46a
[ "MIT" ]
null
null
null
func_one.py
FoxProklya/Step-Python
67514509655e552fc5adcc7963b971ef6f0bb46a
[ "MIT" ]
null
null
null
def f(x): if x <= -2: f = 1 - (x + 2)**2 return f if -2 < x <= 2: f = -(x/2) return f if 2 < x: f = (x - 2)**2 + 1 return f x = int(input()) print(f(x))
14.333333
26
0.316279
0
0
0
0
0
0
0
0
0
0