hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
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 if __name__ == "__main__": fix(sys.argv[1])
24.038462
60
0.508
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
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: computerscience@pdst.ie # Purpose: To find (and fix) two syntax errors # A program to display Green Eggs and Ham (v4) # Program execution starts here showChorus() displayVerse1() # SYNTAX ERROR 1 -...
30.393939
75
0.658026
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
29.918919
292
0.641373
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 the_queue = multiprocessing.Queue() walk_dirs(rootdir, batch_size) the_pool = multiprocessing.Pool(3, worker_main,(the_queue,))
31.974359
87
0.644747
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 def youku(*args, **kwargs): """Define the Jinja function.""" video = Video(*args, **kwargs) return video.html
24.830189
59
0.609422
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
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__)
22
48
0.697861
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
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()"), ]
22.947368
68
0.669725
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
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
25.616667
74
0.573845
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
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
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
39.703704
130
0.564581
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 def test_intersection(a, b, c): assert mh.intersection_signature(a, b) == set(range(50, 100)) assert mh.intersection_signature(a, b, c) == set(range(75, 100)) def test_union(a, b): assert...
22.306667
68
0.550508
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
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, )
27.322581
81
0.670602
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
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
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
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. # Load challenge data. # Customed TensorDataset def custom_collate_fn(batch): data = [item[0].unsqueeze(0) for item in batch] t...
28.390244
78
0.608247
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
3 from functools import lru_cache 4 @lru_cache(None) 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
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 def move(a=(0, 0), b=(0, 0)): a = (a[0] + b[0], a[1] + b[1]) return(a) runner = Maze_runner() # s p p # b g # e p p maze = Maze( 1000, 1000, (3, 3)) test_node_00 = maze_builder.Node(position=(0, 0), right = True, special="start") test_node_10 = maze_builder.Node(p...
46.79845
265
0.595826
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
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
33.894737
300
0.591615
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 if __name__ == '__main__': main()
20.974359
48
0.570905
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
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
15.666667
33
0.765957
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 app=gui() app.addButtons(["info", "error", "warning", "yesno", "question"], press) app.addButtons(["ok", "retry", "text", "number"], press) app.go()
45.166667
74
0.607626
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
38.272
215
0.570861
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
26.627119
78
0.706556
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
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
29.6
84
0.712838
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
34.291667
80
0.647631
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
33.517857
107
0.606819
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
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
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 * if __name__ == '__mai...
28.983957
104
0.474908
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 cherrypy.quickstart(Test())
17.75
51
0.661972
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') migrate = Migrate(app=app, db=db) manager = Manager(app=app) manager.add_command('db', MigrateCommand) if __name__ == "__main__": manager.run...
20.692308
54
0.711896
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
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
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
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
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 if __name__ == "__main__": goldFile=sys.argv[1] predFile=sys.argv[2] scorer=sys.argv[3] bcub_f, avg=get_conll(scorer, gold=goldFile, preds=predFile)
31.342105
102
0.686818
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
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
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 # Funo utilitria para imprimir # cdigos huffman para todos os smbolos # na nova rvore huffman que sera criada def printNodes(node, val=''): # cdigo huffman para o n atual newVal = val + str(node.huff) # se o n no pertence ponta da # rvore ento caminha dentro do mesmo # at a pont...
24.741573
60
0.584469
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
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 if __name__ == '__main__': unittest.main()
34.627451
72
0.610136
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
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
39.408451
260
0.550751
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
34.61086
92
0.552098
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
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
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
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: 874681044@qq.com @Software: PyCharm @File: __init__.py.py @Time: 2020/3/27 10:43 AM @Overview: """
14.5
26
0.689655
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
28.25
73
0.800885
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
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
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
41.638095
205
0.665599
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
17.666667
39
0.792453
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
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
34.806502
104
0.558417
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
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
26.25
76
0.797619
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 if __name__ == "__main__": main()
32.611111
76
0.67632
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
35.883721
124
0.545366
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 send2es(data): """ Initiate connection to Elasticsearch and send data as a single document. data - dictionary/JSON to be sent """ i = 'metrics_{}'.fo...
31.033898
125
0.688695
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
16.888889
48
0.756579
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
34.945
78
0.529976
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
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
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 _
66.7375
355
0.700893
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
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
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
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__) def Handler(receiver_class): """ A basic connection handler that applies a receiver object to each connection. """ return...
25.351351
108
0.601812
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
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
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
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 def read_lint_config(repo_path): # read .lintconfig.yml full_path = os.path.expanduser(repo_path) config_filepath = os.path.join(full_path, '.lintconfig.yml') acronyms = [] abbreviati...
34.430672
175
0.626945
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
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
32.690476
66
0.584122
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
49.596491
155
0.583658
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
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
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
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
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
x = int(input()) print(f(x))
14.333333
26
0.316279
c576551072f708a32f1945826e72ae5d21285cce
2,605
py
Python
scripts/multiprocess_tokenizer/worker.py
talolard/vampire
e2ae46112fda237b072453c9f1c5e89bd7b4135b
[ "Apache-2.0" ]
null
null
null
scripts/multiprocess_tokenizer/worker.py
talolard/vampire
e2ae46112fda237b072453c9f1c5e89bd7b4135b
[ "Apache-2.0" ]
null
null
null
scripts/multiprocess_tokenizer/worker.py
talolard/vampire
e2ae46112fda237b072453c9f1c5e89bd7b4135b
[ "Apache-2.0" ]
null
null
null
import typing from typing import Any import json import os from multiprocessing import Process, Queue from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter from spacy.tokenizer import Tokenizer import spacy from tqdm.auto import tqdm import time nlp = spacy.load("en")
28.315217
97
0.6119
c578aaaded2e7b75110f4c69848a9fb001f45ff0
5,823
py
Python
MC-Fisher.py
hosua/Minecraft-Fisher
416c476cd6e5ef0c6bb978aacd9816aa9ba36f7e
[ "MIT" ]
null
null
null
MC-Fisher.py
hosua/Minecraft-Fisher
416c476cd6e5ef0c6bb978aacd9816aa9ba36f7e
[ "MIT" ]
null
null
null
MC-Fisher.py
hosua/Minecraft-Fisher
416c476cd6e5ef0c6bb978aacd9816aa9ba36f7e
[ "MIT" ]
null
null
null
# For larger scale projects, I really should learn to use classes... lol from PIL import ImageGrab, ImageTk, Image import keyboard import pyautogui import tkinter as tk import os import time, datetime import text_redirect as TR import sys # GUI stuff TITLE = "Minecraft-Fisher - Made by Hoswoo" DARK_BLUE = '#0A3D62' L...
34.052632
127
0.665636
3d63dfe6fe9f0bef4a7c9bfd9c4a5ff955fbcafe
1,248
py
Python
ModelAnalysis/biomodel_iterator.py
BioModelTools/ModelAnalysis
89d6426ec9fbbb6836897889266848793d109dcc
[ "MIT" ]
null
null
null
ModelAnalysis/biomodel_iterator.py
BioModelTools/ModelAnalysis
89d6426ec9fbbb6836897889266848793d109dcc
[ "MIT" ]
3
2017-09-04T20:06:45.000Z
2017-09-07T01:57:45.000Z
ModelAnalysis/biomodel_iterator.py
BioModelTools/ModelAnalysis
89d6426ec9fbbb6836897889266848793d109dcc
[ "MIT" ]
null
null
null
""" Iterates through a collection of BioModels """ from sbml_shim import SBMLShim import sys import os.path ################################################ # Classes that count pattern occurrences ################################################ if __name__ == '__main__': main(sys.argv)
25.469388
80
0.584936
3d640bec431e81affc07c61301d5e5f1d49c75e8
411
py
Python
app/domain/company/models.py
JBizarri/fast-api-crud
3eb0391c1a1f2e054092de717b73898c7efed5cb
[ "MIT" ]
null
null
null
app/domain/company/models.py
JBizarri/fast-api-crud
3eb0391c1a1f2e054092de717b73898c7efed5cb
[ "MIT" ]
null
null
null
app/domain/company/models.py
JBizarri/fast-api-crud
3eb0391c1a1f2e054092de717b73898c7efed5cb
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING, List from sqlalchemy import Column, String from sqlalchemy.orm import relationship from ...database import BaseModel if TYPE_CHECKING: from ..user.models import User
20.55
63
0.737226
3d66a81186dceebace0295ecba9cdcb9533d8966
1,913
py
Python
tools/captcha_image_downloader.py
metormaon/signum-py
7c6eaf11025f77c4cfbe6fb9aa77b5dadb485d8c
[ "MIT" ]
null
null
null
tools/captcha_image_downloader.py
metormaon/signum-py
7c6eaf11025f77c4cfbe6fb9aa77b5dadb485d8c
[ "MIT" ]
1
2020-08-01T23:28:38.000Z
2020-08-01T23:28:38.000Z
tools/captcha_image_downloader.py
metormaon/signum-py
7c6eaf11025f77c4cfbe6fb9aa77b5dadb485d8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from os import path from google_images_download import google_images_download for keyword in [ "dog", "cat", "bird", "elephant", "fork", "knife", "spoon", "carrot", "orange", "turnip", "tomato", "potato", "water", "hair", "table", "chair", "house", "factory", "microwave", "cigarette", ...
51.702703
119
0.526398
3d6b7691e8c5eed4e135eafd2eed629b0d7310de
4,752
py
Python
ott2butKAMA1/jessetkdata/dnafiles/BNB-USDT 2018-02-15 2021-01-01.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
38
2021-09-18T15:33:28.000Z
2022-02-21T17:29:08.000Z
ott2butKAMA1/jessetkdata/dnafiles/BNB-USDT 2018-02-15 2021-01-01.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
4
2022-01-02T14:46:12.000Z
2022-02-16T18:39:41.000Z
ott2butKAMA1/jessetkdata/dnafiles/BNB-USDT 2018-02-15 2021-01-01.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
11
2021-10-19T06:21:43.000Z
2022-02-21T17:29:10.000Z
dnas = [ ['jVXfX<', 37, 64, 24.67, 14, 7, -4.53, {'ott_len': 42, 'ott_percent': 508, 'stop_loss': 263, 'risk_reward': 65, 'chop_rsi_len': 31, 'chop_bandwidth': 83}], ['o:JK9p', 50, 62, 32.74, 37, 8, -0.2, {'ott_len': 45, 'ott_percent': 259, 'stop_loss': 201, 'risk_reward': 41, 'chop_rsi_len': 12, 'chop_bandwidth': 274}...
144
159
0.619529
3d6d1e7bb92fb8ada9eb142b244859a83f2f343d
2,909
py
Python
modules/winrm/isodate/__init__.py
frankyrumple/smc
975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6
[ "MIT" ]
null
null
null
modules/winrm/isodate/__init__.py
frankyrumple/smc
975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6
[ "MIT" ]
null
null
null
modules/winrm/isodate/__init__.py
frankyrumple/smc
975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6
[ "MIT" ]
null
null
null
############################################################################## # Copyright 2009, Gerhard Weis # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code ...
51.946429
78
0.77243
3d6fef82415cc33c1f679313aef262f6b3b670a9
17,848
py
Python
sbvat/utils.py
thudzj/BVAT
2c7073cb7967583035eece7f4819821b313d73e6
[ "MIT" ]
3
2019-08-04T03:05:51.000Z
2021-04-24T02:35:05.000Z
sbvat/utils.py
thudzj/BVAT
2c7073cb7967583035eece7f4819821b313d73e6
[ "MIT" ]
null
null
null
sbvat/utils.py
thudzj/BVAT
2c7073cb7967583035eece7f4819821b313d73e6
[ "MIT" ]
1
2019-12-29T13:49:22.000Z
2019-12-29T13:49:22.000Z
import numpy as np import pickle as pkl import networkx as nx import scipy.sparse as sp from scipy.sparse.linalg.eigen.arpack import eigsh import sys import tensorflow as tf import os import time import json from networkx.readwrite import json_graph from sklearn.metrics import f1_score import multiprocessing def parse...
38.218415
200
0.601244
3d71bcc45f53747aca6197878307201d4f4b2564
506
py
Python
tags/models.py
yuyuyuhaoshi/Blog-BE
a485d5159076d619d4fd6019fe9b96ac04020d4d
[ "Apache-2.0" ]
null
null
null
tags/models.py
yuyuyuhaoshi/Blog-BE
a485d5159076d619d4fd6019fe9b96ac04020d4d
[ "Apache-2.0" ]
null
null
null
tags/models.py
yuyuyuhaoshi/Blog-BE
a485d5159076d619d4fd6019fe9b96ac04020d4d
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.utils.timezone import now from django.contrib.auth.models import User from utils.base_model import SoftDeletionModel
26.631579
88
0.717391