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
b4d2816f6506147c7e1180e32379768ecd8e932b
945
py
Python
tppm/auth.py
timtumturutumtum/TraktPlaybackProgressManager
6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10
[ "MIT" ]
36
2017-08-06T13:47:21.000Z
2022-02-19T03:33:07.000Z
tppm/auth.py
timtumturutumtum/TraktPlaybackProgressManager
6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10
[ "MIT" ]
5
2018-07-20T13:01:35.000Z
2021-12-12T21:03:05.000Z
tppm/auth.py
timtumturutumtum/TraktPlaybackProgressManager
6b3b6f81a6de5c1b7f11d1b2ae34c1b1cc6a2b10
[ "MIT" ]
3
2018-11-20T13:16:37.000Z
2021-10-13T01:57:55.000Z
# coding: utf-8 """ Trakt Playback Manager """ from __future__ import absolute_import from __future__ import unicode_literals import io import json import os.path def save(path, data): with io.open(path, 'w', encoding='utf-8', newline='\n') as fh: # Must NOT use `json.dump` due to a Python 2 bug: ...
21
66
0.607407
48
0.050794
0
0
0
0
0
0
171
0.180952
b4d4621e29be6b6315126f0497290617aa1857f6
2,810
py
Python
srt.py
glegoux/srt
35db0c3cf23853f067326969178e174678e1a73c
[ "MIT" ]
null
null
null
srt.py
glegoux/srt
35db0c3cf23853f067326969178e174678e1a73c
[ "MIT" ]
null
null
null
srt.py
glegoux/srt
35db0c3cf23853f067326969178e174678e1a73c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os.path import re from datetime import date, datetime, time, timedelta # helper def is_timeformat(s): p = re.compile('^[0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}$') if p.match(s) is None: return False else: return True def is_time_line(l): p = re.c...
24.017094
66
0.504626
0
0
0
0
0
0
0
0
272
0.096797
b4d5ab68cc4a4cd64dc0ee44aa2eb3eb7b21a324
1,195
py
Python
pykeyset/core/font/font.py
staticintlucas/pykeyset
8581252c85dfceebe22926af4640164a0895e7a0
[ "Apache-2.0", "MIT" ]
1
2021-07-06T16:43:25.000Z
2021-07-06T16:43:25.000Z
pykeyset/core/font/font.py
staticintlucas/pykeyset
8581252c85dfceebe22926af4640164a0895e7a0
[ "Apache-2.0", "MIT" ]
null
null
null
pykeyset/core/font/font.py
staticintlucas/pykeyset
8581252c85dfceebe22926af4640164a0895e7a0
[ "Apache-2.0", "MIT" ]
null
null
null
from typing import Optional from .glyph import Glyph class Font: def __init__( self, name: str, em_size: float, cap_height: float, x_height: float, line_height: float, slope: float, char_spacing: float, ): raise NotImplementedError ...
25.978261
97
0.632636
1,138
0.952301
0
0
0
0
0
0
423
0.353975
b4d7710eaf3e98a228d796af98ffd59a89294d80
2,739
py
Python
models/SoftmaxTriplet.py
anonymous1computervision/REID
6364d7d0e75ebb81fafc765be41b9b3fd434eeae
[ "MIT" ]
1
2020-06-15T07:50:05.000Z
2020-06-15T07:50:05.000Z
models/SoftmaxTriplet.py
tiancity-NJU/REID
125a520a9c0b94440a7757e6f3c3c8bf976906ec
[ "MIT" ]
null
null
null
models/SoftmaxTriplet.py
tiancity-NJU/REID
125a520a9c0b94440a7757e6f3c3c8bf976906ec
[ "MIT" ]
4
2019-04-09T13:10:58.000Z
2020-03-06T15:22:38.000Z
# encoding: utf-8 import copy import itertools import numpy as np import torch import torch.nn.functional as F import torch.utils.model_zoo as model_zoo from torch import nn, optim from .resnet import ResNet def weights_init_kaiming(m): classname = m.__class__.__name__ if classname.find('Linear') != -1: ...
33.402439
105
0.609712
1,763
0.643666
0
0
0
0
0
0
167
0.060971
b4da893de386e17a0bd776a5eb2220d68a53a7ab
710
py
Python
data-exporter/brix/settings.py
dzwiedziu-nkg/credo-api-tools
37adce8c858d2997b90ce7a1397e68dd281b8249
[ "MIT" ]
null
null
null
data-exporter/brix/settings.py
dzwiedziu-nkg/credo-api-tools
37adce8c858d2997b90ce7a1397e68dd281b8249
[ "MIT" ]
null
null
null
data-exporter/brix/settings.py
dzwiedziu-nkg/credo-api-tools
37adce8c858d2997b90ce7a1397e68dd281b8249
[ "MIT" ]
null
null
null
import csv DIR = 'credo-data-export/detections' CSV = 'credo-data-export/credocut.tsv' PLOT = 'credo-data-export/credocut.plot' JSON = 'credo-data-export/credocut.json' DEVICES = 'credo-data-export/device_mapping.json' PNG = 'credo-data-export/png' CREDOCUT = 10069 DELIMITER='\t' QUOTECHAR='"' QUOTING=csv.QUOTE_MINIM...
17.317073
49
0.623944
0
0
0
0
0
0
0
0
360
0.507042
b4db052ea80413d8736cb6f07460bcb08f08dc7f
540
py
Python
Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Calibration/EcalAlCaRecoProducers/python/alcastreamEcalPhiSym_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# The following comments couldn't be translated into the new config version: #------------------------------------------------ #AlCaReco filtering for phi symmetry calibration: #------------------------------------------------ # # Passes events that are coming from the online phi-symmetry stream # # import FWCore.P...
24.545455
76
0.633333
0
0
0
0
0
0
0
0
313
0.57963
b4db3df141a7dfd438923171f46933d4cbc0dace
13,456
py
Python
{{cookiecutter.project_name}}/core/vertebral.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/core/vertebral.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/core/vertebral.py
rzavarce/cookiecutter-vertebral
29a72b6bfb5c4ca76b1a36ee1e8ff9e0fedcb421
[ "MIT" ]
null
null
null
import re import json import logging import hmac import base64 import hashlib import jsonschema from uuid import uuid4 from aiohttp import web from pathlib import Path from yaml import safe_load from http import HTTPStatus from datetime import datetime, timezone from {{cookiecutter.project_name}}.routes import setup...
30.306306
80
0.56198
12,457
0.925758
0
0
0
0
2,026
0.150565
5,757
0.427839
b4dc6174210355b1a5c016150eeb213a4732eda6
669
py
Python
2021/day14/1.py
tomhel/AoC_2019
c76c34235821864bc763f85d43cbcbfb9ed43469
[ "MIT" ]
1
2021-12-07T13:18:52.000Z
2021-12-07T13:18:52.000Z
2021/day14/1.py
tomhel/AoC
c76c34235821864bc763f85d43cbcbfb9ed43469
[ "MIT" ]
null
null
null
2021/day14/1.py
tomhel/AoC
c76c34235821864bc763f85d43cbcbfb9ed43469
[ "MIT" ]
null
null
null
def load(): with open("input") as f: yield next(f).strip() next(f) for x in f: yield x.strip().split(" -> ") def pair_insertion(): data = list(load()) polymer, rules = list(data[0]), dict(data[1:]) for _ in range(10): new_polymer = [polymer[0]] for...
21.580645
61
0.539611
0
0
148
0.221226
0
0
0
0
13
0.019432
b4ddeba8f2836d4bda03deca00a36f4a1066fd37
85
py
Python
dev/cluster/__init__.py
ustcml/TorchML
c950fcaaaf2eaf4e85237894d5b12c20bd383538
[ "MIT" ]
null
null
null
dev/cluster/__init__.py
ustcml/TorchML
c950fcaaaf2eaf4e85237894d5b12c20bd383538
[ "MIT" ]
null
null
null
dev/cluster/__init__.py
ustcml/TorchML
c950fcaaaf2eaf4e85237894d5b12c20bd383538
[ "MIT" ]
null
null
null
# Author: Jintao Huang # Email: hjt_study@qq.com # Date: from .KMeans import KMeans
17
26
0.729412
0
0
0
0
0
0
0
0
55
0.647059
b4df6ffe444c3bcefc05dd30c22bd546ed8ca77a
5,000
py
Python
mandelbrot.py
parkman217/python-mandelbrot
2e36a6a9a79edf2333644ec1ab89175bae35a991
[ "MIT" ]
null
null
null
mandelbrot.py
parkman217/python-mandelbrot
2e36a6a9a79edf2333644ec1ab89175bae35a991
[ "MIT" ]
null
null
null
mandelbrot.py
parkman217/python-mandelbrot
2e36a6a9a79edf2333644ec1ab89175bae35a991
[ "MIT" ]
null
null
null
import pygame, sys, cmath, time, math def get_mandlebrot(x, y): num = complex(x, y) curr_num = complex(0, 0) max_iter = 100 for a in range(max_iter): curr_num = (curr_num * curr_num) + num r, phi = cmath.polar(curr_num) if r > 2: return a/max_iter return 1 def ...
38.167939
135
0.6078
0
0
0
0
0
0
0
0
561
0.1122
b4df7dcc36490cc477f25560dc32bb1832158dd7
835
py
Python
example-query.py
ericwhyne/http-ricochet
bd8edb8591047e00a45727457fd09c089f591836
[ "BSD-3-Clause" ]
19
2015-05-06T16:45:50.000Z
2020-07-31T10:26:17.000Z
example-query.py
ericwhyne/http-ricochet
bd8edb8591047e00a45727457fd09c089f591836
[ "BSD-3-Clause" ]
2
2015-05-06T17:00:33.000Z
2015-07-29T19:51:58.000Z
example-query.py
ericwhyne/http-ricochet
bd8edb8591047e00a45727457fd09c089f591836
[ "BSD-3-Clause" ]
3
2015-05-06T23:16:00.000Z
2019-08-13T15:09:44.000Z
#!/usr/bin/python import urllib2 import random # A list of places we've deployed ricochet ricochet_servers = [ "http://127.0.0.1:8080/ricochet/ricochet?url=", "http://127.0.0.1:8080/ricochet/ricochet?url=" ] # We're identifying ourselves to ourself here, this will show up in the server logs (unless you've disabled th...
36.304348
114
0.747305
0
0
0
0
0
0
0
0
566
0.677844
b4e199847b7a19eae86fecd3be217454cfd5183f
2,054
py
Python
Week-4/Prob4h.py
jabhij/MITx-6.00.1x-PYTHON
b9650ec0829796f4f312bd46db16e5e30df605ee
[ "MIT" ]
2
2016-09-20T16:30:49.000Z
2016-09-20T16:31:04.000Z
Week-4/Prob4h.py
jabhij/MITx-6.00.1x-Python-
b9650ec0829796f4f312bd46db16e5e30df605ee
[ "MIT" ]
null
null
null
Week-4/Prob4h.py
jabhij/MITx-6.00.1x-Python-
b9650ec0829796f4f312bd46db16e5e30df605ee
[ "MIT" ]
null
null
null
def compChooseWord(hand, wordList, n): """ Given a hand and a wordList, find the word that gives the maximum value score, and return it. This word should be calculated by considering all the words in the wordList. If no words in the wordList can be made from the hand, return None. hand: ...
31.6
135
0.608569
0
0
0
0
0
0
0
0
1,097
0.53408
b4e36d17dc528299318c8cd10e36c599f350d3dc
1,172
py
Python
annofabcli/filesystem/subcommand_filesystem.py
kurusugawa-computer/annofab-cli
8edad492d439bc8fe64e9471464f545d07aba8b7
[ "MIT" ]
9
2019-07-22T23:54:05.000Z
2020-11-05T06:26:04.000Z
annofabcli/filesystem/subcommand_filesystem.py
kurusugawa-computer/annofab-cli
8edad492d439bc8fe64e9471464f545d07aba8b7
[ "MIT" ]
389
2019-07-03T04:39:11.000Z
2022-03-28T14:06:11.000Z
annofabcli/filesystem/subcommand_filesystem.py
kurusugawa-computer/annofab-cli
8edad492d439bc8fe64e9471464f545d07aba8b7
[ "MIT" ]
1
2021-08-30T14:22:04.000Z
2021-08-30T14:22:04.000Z
import argparse from typing import Optional import annofabcli import annofabcli.common.cli import annofabcli.filesystem.draw_annotation import annofabcli.filesystem.filter_annotation import annofabcli.filesystem.mask_user_info import annofabcli.filesystem.merge_annotation import annofabcli.filesystem.write_annotation_...
33.485714
86
0.817406
0
0
0
0
0
0
0
0
209
0.162016
b4e4e45949d2b3e2692bb5ce21125c0005114be5
780
py
Python
buildmsi.py
vivainio/pylauncher-import
584b7127bfcde114a55188f1edafdd768213e51e
[ "BSD-2-Clause" ]
null
null
null
buildmsi.py
vivainio/pylauncher-import
584b7127bfcde114a55188f1edafdd768213e51e
[ "BSD-2-Clause" ]
null
null
null
buildmsi.py
vivainio/pylauncher-import
584b7127bfcde114a55188f1edafdd768213e51e
[ "BSD-2-Clause" ]
1
2021-11-09T02:37:35.000Z
2021-11-09T02:37:35.000Z
import getpass import os import sys VER = '1.0.1.7' VERSION = 'Version=%s' % VER MANUFACTURER = 'Manufacturer=Vinay Sajip' X86 = 'Platform=x86' X64 = 'Platform=x64' TOWIN = 'ToWindows' def main(): signpwd = getpass.getpass('Password for signing:') import builddoc builddoc.main() os.envi...
32.5
94
0.635897
0
0
0
0
0
0
0
0
238
0.305128
b4e639e99b0548c2da81c255e5c8a218300c3b35
2,736
py
Python
frameworks/Python/spyne/gen_benchmark_config.py
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
5,300
2015-01-02T08:04:20.000Z
2022-03-31T10:08:33.000Z
frameworks/Python/spyne/gen_benchmark_config.py
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
3,075
2015-01-01T05:11:45.000Z
2022-03-31T23:56:33.000Z
frameworks/Python/spyne/gen_benchmark_config.py
xsoheilalizadeh/FrameworkBenchmarks
855527008f7488e4fd508d1e72dfa9953874a2c6
[ "BSD-3-Clause" ]
2,151
2015-01-02T14:16:09.000Z
2022-03-30T00:15:26.000Z
#!/usr/bin/env python from __future__ import print_function import json from spyne import AnyUri, Unicode, ComplexModel, M, UnsignedInteger16, Array from spyne.protocol.json import JsonDocument from spyne.util.dictdoc import get_object_as_dict class BenchmarkConfigElement(ComplexModel): # exclude this from the...
25.333333
91
0.663743
1,063
0.388523
0
0
0
0
0
0
548
0.200292
b4e6b497acf3eb5e2c7697b0aabc3286bf901091
2,557
py
Python
craedl/errors.py
AnotherGroupChat/craedl-sdk-python
57eec7ad4013e693740ad40190d5817984721fde
[ "Apache-2.0" ]
null
null
null
craedl/errors.py
AnotherGroupChat/craedl-sdk-python
57eec7ad4013e693740ad40190d5817984721fde
[ "Apache-2.0" ]
null
null
null
craedl/errors.py
AnotherGroupChat/craedl-sdk-python
57eec7ad4013e693740ad40190d5817984721fde
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Johns Hopkins University # # 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 agree...
36.528571
111
0.717247
1,932
0.755573
0
0
0
0
0
0
1,292
0.50528
b4e8ec3e073f72df115d2e467a43a5e057d8d890
35
py
Python
slack_bolt/response/__init__.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
160
2019-09-27T18:02:03.000Z
2022-03-15T23:46:40.000Z
slack_bolt/response/__init__.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
2
2019-10-21T13:30:17.000Z
2019-10-30T00:09:11.000Z
slack_bolt/response/__init__.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
31
2019-10-19T18:10:23.000Z
2022-02-28T14:13:19.000Z
from .response import BoltResponse
17.5
34
0.857143
0
0
0
0
0
0
0
0
0
0
b4e905f07ef9267e0151e885d12dea14423eaf4d
1,063
py
Python
source/miscellaneous/test_get_sub_dir_dates.py
youdar/usesul_functions
7cca9f8e241f2334f9eb0eab46d40b4c109e8518
[ "MIT" ]
null
null
null
source/miscellaneous/test_get_sub_dir_dates.py
youdar/usesul_functions
7cca9f8e241f2334f9eb0eab46d40b4c109e8518
[ "MIT" ]
null
null
null
source/miscellaneous/test_get_sub_dir_dates.py
youdar/usesul_functions
7cca9f8e241f2334f9eb0eab46d40b4c109e8518
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division from get_sub_dir_dates import get_sub_dir_dates from get_table_hdfs_location import get_table_hdfs_location import unittest import sys __author__ = 'youval.dar' class CollectDates(unittest.TestCase): def test_get_sub_dir_dates(self): print sys._getfr...
27.25641
69
0.732832
320
0.301035
0
0
0
0
0
0
416
0.391345
b4e98bbdc6436cd505b553e475e6aa9b86055856
5,831
py
Python
torchreid/utils/tools.py
opencv/deep-person-reid
ccc305614e968d4b64cc7d4b6664eb42267e6250
[ "MIT" ]
1
2020-07-07T19:22:17.000Z
2020-07-07T19:22:17.000Z
torchreid/utils/tools.py
opencv/deep-person-reid
ccc305614e968d4b64cc7d4b6664eb42267e6250
[ "MIT" ]
1
2020-06-04T15:22:09.000Z
2020-06-04T15:22:09.000Z
torchreid/utils/tools.py
opencv/deep-person-reid
ccc305614e968d4b64cc7d4b6664eb42267e6250
[ "MIT" ]
4
2020-07-02T09:23:11.000Z
2020-08-21T08:24:13.000Z
# Copyright (c) 2018-2021 Kaiyang Zhou # SPDX-License-Identifier: MIT # # Copyright (c) 2018 davidtvs # SPDX-License-Identifier: MIT # # Copyright (c) 2018 Facebook # SPDX-License-Identifier: MIT # # Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # from __future__ import absolute_impor...
28.583333
90
0.628709
2,742
0.470245
0
0
0
0
0
0
1,221
0.209398
b4ea18107650e6d8144929adf5242acb860cb78c
198
py
Python
src/setup.py
Mr-Salme/CipheyCore
f9ce42973d141a6cfd506ec7a423443293d29201
[ "MIT" ]
null
null
null
src/setup.py
Mr-Salme/CipheyCore
f9ce42973d141a6cfd506ec7a423443293d29201
[ "MIT" ]
null
null
null
src/setup.py
Mr-Salme/CipheyCore
f9ce42973d141a6cfd506ec7a423443293d29201
[ "MIT" ]
null
null
null
from setuptools import setup, Extension # Compile parts of `freq.cpp` into a shared library so we can call it from Python setup( #... ext_modules=[Extension('gof_test', ['freq.cpp'],),], )
24.75
81
0.686869
0
0
0
0
0
0
0
0
105
0.530303
b4ed182369b3b188f8f312aa3ddca9ef3c96de04
36
py
Python
acousticsim/clustering/__init__.py
JoFrhwld/python-acoustic-similarity
50f71835532010b2fedf14b0ca3a52d88a9ab380
[ "MIT" ]
5
2018-01-15T22:06:20.000Z
2022-02-21T07:02:40.000Z
acousticsim/clustering/__init__.py
JoFrhwld/python-acoustic-similarity
50f71835532010b2fedf14b0ca3a52d88a9ab380
[ "MIT" ]
null
null
null
acousticsim/clustering/__init__.py
JoFrhwld/python-acoustic-similarity
50f71835532010b2fedf14b0ca3a52d88a9ab380
[ "MIT" ]
2
2019-11-28T17:06:27.000Z
2019-12-05T22:57:28.000Z
from .network import ClusterNetwork
18
35
0.861111
0
0
0
0
0
0
0
0
0
0
b4ee34ec8c2a387636b7c753e6e3f2ecebd11bb6
3,534
py
Python
hangman/ps3_hangman.py
kriyaaseela/Hangman
8733ced9f915890b74d53587e67c3b9b36815484
[ "MIT" ]
1
2016-11-13T20:13:06.000Z
2016-11-13T20:13:06.000Z
hangman/ps3_hangman.py
kriyaaseela/Hangman
8733ced9f915890b74d53587e67c3b9b36815484
[ "MIT" ]
null
null
null
hangman/ps3_hangman.py
kriyaaseela/Hangman
8733ced9f915890b74d53587e67c3b9b36815484
[ "MIT" ]
null
null
null
# Hangman game import random WORDLIST_FILENAME = "words.txt" def loadWords(): """ Returns a list of valid words. Words are strings of lowercase letters. Depending on the size of the word list, this function may take a while to finish. """ # inFile: file inFile = open(WORDLIST_FILE...
28.272
106
0.631862
0
0
0
0
0
0
0
0
1,765
0.499434
b4f0d8d809078663bd768dd9f4f542a1be3ac6fe
520
py
Python
src/utils/logger.py
hao-wang/Montage
d1c98ec7dbe20d0449f0d02694930cf1f69a5cea
[ "MIT" ]
65
2020-01-03T11:59:03.000Z
2022-03-19T07:10:47.000Z
src/utils/logger.py
hao-wang/Montage
d1c98ec7dbe20d0449f0d02694930cf1f69a5cea
[ "MIT" ]
5
2020-01-10T01:55:26.000Z
2020-09-23T10:44:00.000Z
src/utils/logger.py
hao-wang/Montage
d1c98ec7dbe20d0449f0d02694930cf1f69a5cea
[ "MIT" ]
10
2020-10-07T02:39:06.000Z
2021-06-04T07:06:54.000Z
class Colors: END = '\033[0m' ERROR = '\033[91m[ERROR] ' INFO = '\033[94m[INFO] ' WARN = '\033[93m[WARN] ' def get_color(msg_type): if msg_type == 'ERROR': return Colors.ERROR elif msg_type == 'INFO': return Colors.INFO elif msg_type == 'WARN': return Colors.WARN else: return Colors.END...
20.8
41
0.642308
114
0.219231
0
0
0
0
0
0
82
0.157692
b4f1abe399d018b436c84a4219cc721810235141
9,689
py
Python
lorawan/user_agent/bridge/agent_bridge.py
pablomodernell/lorawan_conformance_testing
3e6b9028ee7a6a614e52bac684e396ecd04fd10c
[ "MIT" ]
1
2020-09-10T14:12:07.000Z
2020-09-10T14:12:07.000Z
lorawan/user_agent/bridge/agent_bridge.py
pablomodernell/lorawan_conformance_testing
3e6b9028ee7a6a614e52bac684e396ecd04fd10c
[ "MIT" ]
null
null
null
lorawan/user_agent/bridge/agent_bridge.py
pablomodernell/lorawan_conformance_testing
3e6b9028ee7a6a614e52bac684e396ecd04fd10c
[ "MIT" ]
null
null
null
""" This Module defines the main the main component of the Agent service, a bridge that listens to UDP messages from the LoRa gateway's Packet Forwarder and encapsulates and sends them using the AMQP protocol to the Test Application Server (TAS). """ #####################################################################...
42.871681
118
0.668593
7,536
0.777789
0
0
942
0.097224
0
0
4,896
0.505315
b4f29d97ffa1af1c0c768796e62188143ad7c066
461
py
Python
datamanager/interfaces/abstract_resource_resolver.py
alghimo/data-manager
98c54934cb704c4e980acdfcc2206d740dd1ec03
[ "Apache-2.0" ]
1
2021-05-22T08:37:17.000Z
2021-05-22T08:37:17.000Z
datamanager/interfaces/abstract_resource_resolver.py
alghimo/data-manager
98c54934cb704c4e980acdfcc2206d740dd1ec03
[ "Apache-2.0" ]
null
null
null
datamanager/interfaces/abstract_resource_resolver.py
alghimo/data-manager
98c54934cb704c4e980acdfcc2206d740dd1ec03
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from typing import TypeVar, Generic T = TypeVar("T") class AbstractResourceResolver(Generic[T], ABC): """ The resolver takes care of creating fully qualified names from resource keys. For instance, when working with files this would be the file path, when working w...
30.733333
83
0.709328
369
0.800434
0
0
66
0.143167
0
0
248
0.537961
b4f37c5b1ce75f2a66c8ca0507bace026f75b5cb
51
py
Python
model_zoo/Star/__init__.py
RManLuo/MAMDR
f6dc5b799150103e8f270f329217bf541c44a67d
[ "MIT" ]
2
2022-03-06T10:25:51.000Z
2022-03-08T02:29:43.000Z
model_zoo/Star/__init__.py
RManLuo/MAMDR
f6dc5b799150103e8f270f329217bf541c44a67d
[ "MIT" ]
2
2022-03-07T23:58:23.000Z
2022-03-13T10:11:55.000Z
model_zoo/Star/__init__.py
RManLuo/MAMDR
f6dc5b799150103e8f270f329217bf541c44a67d
[ "MIT" ]
3
2022-02-25T02:51:49.000Z
2022-03-08T07:49:51.000Z
from .star import * from .partitioned_norm import *
25.5
31
0.784314
0
0
0
0
0
0
0
0
0
0
b4f450aa99093525879013746d82ec4c365abcd8
3,409
py
Python
synergy/db/model/job.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
synergy/db/model/job.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
synergy/db/model/job.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Bohdan Mushkevych' from odm.document import BaseDocument from odm.fields import StringField, ObjectIdField, ListField, IntegerField MAX_NUMBER_OF_LOG_ENTRIES = 32 TIMEPERIOD = 'timeperiod' PROCESS_NAME = 'process_name' START_OBJ_ID = 'start_obj_id' END_OBJ_ID = 'end_obj_id' STATE = 'state' RELATED_UNIT_...
34.09
116
0.7445
1,758
0.515694
0
0
1,005
0.294808
0
0
1,438
0.421825
b4f5a7efcd7626395f15699df12dd9127abee6af
187
py
Python
text/code/exact-string-matching/naive-forward.py
pmikolajczyk41/string-algorithms
faa7c7b3ab18a157a27e8c08081f2efebf8be900
[ "MIT" ]
1
2020-06-27T01:33:43.000Z
2020-06-27T01:33:43.000Z
text/code/exact-string-matching/naive-forward.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
text/code/exact-string-matching/naive-forward.py
TenGumis/string-algorithms
e57a9dc6150e92ab65cad4a5c1e68533b7166eb7
[ "MIT" ]
null
null
null
def naive_string_matching(t, w, n, m): for i in range(n - m + 1): j = 0 while j < m and t[i + j + 1] == w[j + 1]: j = j + 1 if j == m: return True return False
23.375
45
0.475936
0
0
0
0
0
0
0
0
0
0
b4f6a6979f60206415ac42ae13093ab17a970251
27,291
py
Python
shop/tests.py
okcashpro/okshop
f18600537eca12a0fe7dd52ed5453ed65c2ecacc
[ "MIT" ]
3
2017-01-18T14:21:41.000Z
2021-10-29T23:47:31.000Z
shop/tests.py
okcashpro/okshop
f18600537eca12a0fe7dd52ed5453ed65c2ecacc
[ "MIT" ]
1
2017-05-16T20:24:01.000Z
2017-05-17T21:28:27.000Z
shop/tests.py
okcashpro/okshop
f18600537eca12a0fe7dd52ed5453ed65c2ecacc
[ "MIT" ]
1
2021-10-29T23:47:24.000Z
2021-10-29T23:47:24.000Z
from django.test import TestCase, Client from django.contrib.auth.models import User from .models import * from django.urls import reverse from django.core.files.uploadedfile import SimpleUploadedFile from django.core.files.uploadedfile import InMemoryUploadedFile from io import BytesIO import pyotp import json # Cre...
34.458333
79
0.548972
26,931
0.986809
0
0
0
0
0
0
5,205
0.190722
b4f72a2176a65a36df8b60e82c572b124b0a8a0e
1,965
py
Python
h2o-py/tests/testdir_algos/rulefit/pyunit_football_rulefit.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
1
2022-03-15T06:08:14.000Z
2022-03-15T06:08:14.000Z
h2o-py/tests/testdir_algos/rulefit/pyunit_football_rulefit.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
58
2021-10-01T12:43:37.000Z
2021-12-08T22:58:43.000Z
h2o-py/tests/testdir_algos/rulefit/pyunit_football_rulefit.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.rulefit import H2ORuleFitEstimator def football(): df = h2o.import_file("https://h2o-public-test-data.s3.amazonaws.com/mli-testing/manual-test/small-dataset/binomial/football_prediction.csv") df["FTR"] = df...
37.075472
144
0.683461
0
0
0
0
0
0
0
0
614
0.312468
b4f763f3755acf4717fd0387a861a69a686dff19
1,140
py
Python
Day2/python-exercises-02-answers/preparing_dataset/category_dataset_debug.py
klimpie94/Python-training
7af210126cfe2e9386a8f22075ea0d7eff80daac
[ "RSA-MD" ]
null
null
null
Day2/python-exercises-02-answers/preparing_dataset/category_dataset_debug.py
klimpie94/Python-training
7af210126cfe2e9386a8f22075ea0d7eff80daac
[ "RSA-MD" ]
1
2021-12-13T20:33:28.000Z
2021-12-13T20:33:28.000Z
Day2/python-exercises-02-answers/preparing_dataset/category_dataset_debug.py
klimpie94/Python-training
7af210126cfe2e9386a8f22075ea0d7eff80daac
[ "RSA-MD" ]
9
2020-02-05T10:24:12.000Z
2020-02-10T13:08:50.000Z
import pandas as pd import os from pathlib import Path import warnings warnings.filterwarnings('ignore') DATA_PATH = os.path.join( os.fspath(Path(__file__).parents[1]), "data") IMDB_DATA_PATH = os.path.join(DATA_PATH, "imdb_category.csv") EXPORT_PATH = os.path.join(DATA_PATH, "imdb_category_binary.csv") ca...
30.810811
71
0.666667
0
0
0
0
0
0
0
0
92
0.080702
b4f7eeae12122017454859c15609e21806fad1d5
3,003
py
Python
imgtools/modules/segmentation.py
bhklab/med-imagetools
0cce0ee6666d052d4f76a1b6dc5d088392d309f4
[ "Apache-2.0" ]
9
2021-12-14T19:53:57.000Z
2022-01-18T18:45:26.000Z
imgtools/modules/segmentation.py
bhklab/med-imagetools
0cce0ee6666d052d4f76a1b6dc5d088392d309f4
[ "Apache-2.0" ]
4
2021-12-05T02:54:00.000Z
2021-12-10T20:32:20.000Z
imgtools/modules/segmentation.py
bhklab/imgtools
0f0414533cb6667b68aa48541feb376226fd5515
[ "Apache-2.0" ]
1
2021-07-30T20:22:46.000Z
2021-07-30T20:22:46.000Z
from functools import wraps import numpy as np import SimpleITK as sitk from ..utils import array_to_image, image_to_array def accepts_segmentations(f): @wraps(f) def wrapper(img, *args, **kwargs): result = f(img, *args, **kwargs) if isinstance(img, Segmentation): result = sit...
35.75
99
0.628705
1,972
0.656677
0
0
303
0.100899
0
0
279
0.092907
b4f93b9450eed02e00244a8c824d6cbeda2da9f1
1,432
py
Python
simtbx/diffBragg/attr_list.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
simtbx/diffBragg/attr_list.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
simtbx/diffBragg/attr_list.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import division """ critical properties of diffBragg objects which should be logged for reproducibility """ # TODO : implement a savestate and getstate for these objects # attrs of diffBragg() instances DIFFBRAGG_ATTRS = [ 'Amatrix', 'Bmatrix', 'Ncells_abc', 'Ncells_abc_aniso', 'Ncells_def', 'N...
18.842105
83
0.74162
0
0
0
0
0
0
0
0
1,158
0.808659
b4fb9b530079d2e7e3c6f10c76a9f743b47d6a04
1,571
py
Python
tests/data/fields/field_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
tests/data/fields/field_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
tests/data/fields/field_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
from allennlp.data.fields import Field def test_eq_with_inheritance(): class SubField(Field): __slots__ = ["a"] def __init__(self, a): self.a = a class SubSubField(SubField): __slots__ = ["b"] def __init__(self, a, b): super().__init__(a) ...
23.447761
61
0.583705
703
0.447486
0
0
0
0
0
0
12
0.007638
b4fcfbbaf3fe162cf04a9a20b000b200e3971f97
1,870
py
Python
LMToolKit_Setup.py
Meadowlion/Float
fb93866cdc6061943fbec32c0aff78dcbc7df9fb
[ "BSD-3-Clause" ]
1
2021-10-21T03:53:34.000Z
2021-10-21T03:53:34.000Z
LMToolKit_Setup.py
Meadowlion/LM_ToolKit
fb93866cdc6061943fbec32c0aff78dcbc7df9fb
[ "BSD-3-Clause" ]
null
null
null
LMToolKit_Setup.py
Meadowlion/LM_ToolKit
fb93866cdc6061943fbec32c0aff78dcbc7df9fb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jan 22 10:19:44 2021 @author: sb069 """ import os import errno from os.path import expanduser os.system("sudo apt-get update") os.system("sudo apt install nvidia-cuda-toolkit") os.system("sudo apt install python3.8") os.system("conda install flye") tr...
27.101449
146
0.69893
0
0
0
0
0
0
0
0
978
0.522995
b4fd927462dd602edb7c0fa6683dedd4a121b0e1
1,006
py
Python
oxasl_ve/wrappers/veaslc.py
ibme-qubic/oxasl_ve
51f0701573876042a7fc5f1b91c5085600c6e3c3
[ "Apache-2.0" ]
1
2021-01-20T12:06:31.000Z
2021-01-20T12:06:31.000Z
oxasl_ve/wrappers/veaslc.py
physimals/oxasl_ve
f56ea316fddf8b59216a5df7a557bf0c3ea6972b
[ "Apache-2.0" ]
null
null
null
oxasl_ve/wrappers/veaslc.py
physimals/oxasl_ve
f56ea316fddf8b59216a5df7a557bf0c3ea6972b
[ "Apache-2.0" ]
null
null
null
""" Wrapper for epi_reg command """ import fsl.utils.assertions as asrt from fsl.wrappers import wrapperutils as wutils @wutils.fileOrImage('data', 'roi', outprefix='out') @wutils.fileOrArray('veslocs', 'encdef', 'modmat') @wutils.fileOrText(' ') @wutils.fslwrapper def veaslc(data, roi, veslocs, encdef, imlist, modm...
27.189189
86
0.595427
0
0
0
0
882
0.87674
0
0
339
0.336978
b4fe009337e782310f135a773be727eb38fed3e9
3,455
py
Python
leo/modes/kivy.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/modes/kivy.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/modes/kivy.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
# Leo colorizer control file for kivy mode. # This file is in the public domain. # Properties for kivy mode. properties = { "ignoreWhitespace": "false", "lineComment": "#", } # Attributes dict for kivy_main ruleset. kivy_main_attributes_dict = { "default": "null", "digit_re": "", "esc...
25.218978
75
0.546165
0
0
0
0
0
0
0
0
996
0.288278
3703676a01606399f8153e980d2ac1891a392183
10,642
py
Python
src/predictor.py
prem2017/domain-adaptation-image
77d5dd85b5895f16c5fc2e7ddfad257367f78ad1
[ "Apache-2.0" ]
1
2020-09-01T21:48:16.000Z
2020-09-01T21:48:16.000Z
src/predictor.py
prem2017/domain-adaptation-image
77d5dd85b5895f16c5fc2e7ddfad257367f78ad1
[ "Apache-2.0" ]
4
2021-06-08T22:23:07.000Z
2022-03-12T00:47:33.000Z
src/predictor.py
prem2017/domain-adaptation-image
77d5dd85b5895f16c5fc2e7ddfad257367f78ad1
[ "Apache-2.0" ]
1
2021-09-08T05:01:52.000Z
2021-09-08T05:01:52.000Z
# -*- coding: utf-8 -*- # ©Prem Prakash # Predictor module import os import sys import pdb from copy import deepcopy import argparse import onnx import onnxruntime as ort import math from matplotlib.pyplot import imshow import numpy as np import pandas as pd import torch import torch.nn as nn from torch.utils.dat...
29.236264
162
0.682391
0
0
0
0
0
0
0
0
3,512
0.329982
370445cf9999e96692fc51abf088c2cec9bdb63b
4,004
py
Python
tests/ut/python/pipeline/parse/test_create_obj.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
2
2020-04-28T03:49:10.000Z
2020-04-28T03:49:13.000Z
tests/ut/python/pipeline/parse/test_create_obj.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
tests/ut/python/pipeline/parse/test_create_obj.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
30.105263
78
0.67008
1,061
0.264985
0
0
1,494
0.373127
0
0
1,725
0.430819
37058b29e2d2eb0d2cb3136d55f0713da2693a83
643
py
Python
hw_asr/augmentations/spectrogram_augmentations/SpecAug.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
hw_asr/augmentations/spectrogram_augmentations/SpecAug.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
hw_asr/augmentations/spectrogram_augmentations/SpecAug.py
isdevnull/asr_hw
9650506b80d4e38574b63390f79a6f01786b7d18
[ "MIT" ]
null
null
null
import torchaudio.transforms from torch import nn from hw_asr.augmentations.base import AugmentationBase from hw_asr.augmentations.random_apply import RandomApply class SpecAug(AugmentationBase): def __init__(self, freq_mask: int, time_mask: int, prob: float, *args, **kwargs): self.augmentation = nn.Sequ...
32.15
85
0.720062
475
0.738725
0
0
0
0
0
0
0
0
3705c276078ec2e2c7ef6800121e1f3622baddd8
1,982
py
Python
acrawler/settings.py
s723138643/acrawler
ad21514fc1fe5a531b33c042ff2deb6bf566e902
[ "MIT" ]
null
null
null
acrawler/settings.py
s723138643/acrawler
ad21514fc1fe5a531b33c042ff2deb6bf566e902
[ "MIT" ]
null
null
null
acrawler/settings.py
s723138643/acrawler
ad21514fc1fe5a531b33c042ff2deb6bf566e902
[ "MIT" ]
null
null
null
import json import pathlib DEFAULT_CONFIG = { # 设置默认class 'EngineClass': 'acrawler.engine.Engine', 'SchedulerClass': 'acrawler.scheduler.Scheduler', 'FilterClass': 'acrawler.filterlib.memfilter.MemFilter', 'QueueClass': 'acrawler.queuelib.sqlitequeue.PrioritySQLiteQueue', ...
28.314286
74
0.510091
0
0
0
0
0
0
0
0
576
0.28125
37061e0c420d7bf2c869932af34f099cf61b5c43
13,658
py
Python
plots/plots/weight_distribution.py
pps-lab/rofl-project-code
eaa9f1aeca3a40ca939c0f723af0186af0f95f9b
[ "MIT" ]
12
2021-07-08T13:27:54.000Z
2021-12-25T14:53:26.000Z
plots/plots/weight_distribution.py
pps-lab/rofl-project-code
eaa9f1aeca3a40ca939c0f723af0186af0f95f9b
[ "MIT" ]
1
2021-10-15T09:48:18.000Z
2022-03-31T12:41:15.000Z
plots/plots/weight_distribution.py
pps-lab/rofl-project-code
eaa9f1aeca3a40ca939c0f723af0186af0f95f9b
[ "MIT" ]
1
2021-11-24T19:21:38.000Z
2021-11-24T19:21:38.000Z
from functools import reduce import matplotlib.pyplot as plt import numpy as np import pandas as pd import os import yaml from matplotlib import cm import pymongo import matplotlib from matplotlib.backends.backend_pdf import PdfPages from matplotlib.lines import Line2D from matplotlib.patches import Rectangle from co...
38.691218
167
0.568458
0
0
0
0
0
0
0
0
3,281
0.240226
37064e9b1f6c4c2026274a61dc624c50744caad0
45,476
py
Python
analysis/Mass Action/DP/22Apro.py
tee-lab/PercolationModels
687cb8189fafeb2e0d205ea4d8a660bd953bd7b1
[ "BSD-3-Clause" ]
null
null
null
analysis/Mass Action/DP/22Apro.py
tee-lab/PercolationModels
687cb8189fafeb2e0d205ea4d8a660bd953bd7b1
[ "BSD-3-Clause" ]
null
null
null
analysis/Mass Action/DP/22Apro.py
tee-lab/PercolationModels
687cb8189fafeb2e0d205ea4d8a660bd953bd7b1
[ "BSD-3-Clause" ]
1
2021-09-11T17:25:25.000Z
2021-09-11T17:25:25.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 23 17:18:39 2021 @author: Koustav """ import os import glob import matplotlib.pyplot as plt import seaborn as sea import numpy as np import pandas as pan import math import collections import matplotlib.ticker as mtick from mpl_toolkits import mplot3d from matplotlib.col...
45.430569
207
0.473437
0
0
0
0
0
0
0
0
20,708
0.455361
3708da2d53e985416aa3068357d2ebc357bc0355
7,558
py
Python
loom/group.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
2
2019-10-25T17:57:22.000Z
2020-07-14T02:37:34.000Z
loom/group.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
1
2019-12-13T03:08:05.000Z
2019-12-13T03:08:05.000Z
loom/group.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
1
2020-06-22T11:23:43.000Z
2020-06-22T11:23:43.000Z
# Copyright (c) 2014, Salesforce.com, Inc. All rights reserved. # Copyright (c) 2015, Google, Inc. # # 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 must retain the above copyright ...
36.162679
78
0.653744
0
0
0
0
0
0
0
0
3,319
0.439137
37098bda53f4717ae975e2ce1e8c1a6a34894efe
1,948
py
Python
src/link_baseline.py
tahleen-rahman/linkability_stepcount
ed873782453d391865ad15e7c2d538058f5db88a
[ "Apache-2.0" ]
null
null
null
src/link_baseline.py
tahleen-rahman/linkability_stepcount
ed873782453d391865ad15e7c2d538058f5db88a
[ "Apache-2.0" ]
7
2021-04-30T21:20:19.000Z
2022-03-12T00:35:33.000Z
src/link_baseline.py
tahleen-rahman/linkability_stepcount
ed873782453d391865ad15e7c2d538058f5db88a
[ "Apache-2.0" ]
null
null
null
# Created by rahman at 16:54 2019-10-20 using PyCharm import os import sys from attacks.Linkability import Link from sklearn.ensemble import RandomForestClassifier from sklearn.linear_model import LinearRegression from attacks import BinaryDNN from sklearn import svm from link_utils import linkability_bl expdict =...
30.920635
119
0.603696
0
0
0
0
0
0
0
0
319
0.163758
3709b0c7de5e9e589c3abceef31dccfb79fe0137
28,849
py
Python
main.py
chelyabinsk/FootBallDashboard
81075cf43eb5ad4ae6fd26181ef1031df6f412f0
[ "MIT" ]
null
null
null
main.py
chelyabinsk/FootBallDashboard
81075cf43eb5ad4ae6fd26181ef1031df6f412f0
[ "MIT" ]
null
null
null
main.py
chelyabinsk/FootBallDashboard
81075cf43eb5ad4ae6fd26181ef1031df6f412f0
[ "MIT" ]
null
null
null
import streamlit as st import numpy as np import pandas as pd import requests import re import altair as alt # Find all available data def find_all_spreadsheets(): available_data = {} r = requests.get('https://www.football-data.co.uk/downloadm.php') if r.status_code != 200: print('Oh dear. Error {}...
46.232372
173
0.565115
0
0
0
0
1,983
0.068737
0
0
8,117
0.281362
370a15691cec20cb2cd5ab37aca120000fa1eaf8
40,610
py
Python
v2.5.7/toontown/episodes/MoneybinTakeover.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/episodes/MoneybinTakeover.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/episodes/MoneybinTakeover.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from toontown.avatar import ToontownAvatarUtils from toontown.avatar.CogExtras import * PROPS = [ ( 5, 'modules', 'suit_walls', (0.0, 342.4, 0.0), (-10.5, 0.0, 0.0), (54.6, 54.6, 54.6), 'wall_suit_build5', None, None), ( 5, 'modules', 'suit_walls', (53.686, 332.45, 0.0), (-16.5, 0.0, 0.0), (54.6, 54.6, 54.6), '...
106.868421
1,168
0.264664
31,906
0.785669
0
0
0
0
0
0
3,481
0.085718
370a96e1434086705b394298ea7d87edaa65f00a
4,309
py
Python
easyci/app/easyCI/tasksPool.py
9OMShitikov/anytask
71354543f467f6c824dfb194bf48ee76c391ff53
[ "MIT" ]
null
null
null
easyci/app/easyCI/tasksPool.py
9OMShitikov/anytask
71354543f467f6c824dfb194bf48ee76c391ff53
[ "MIT" ]
null
null
null
easyci/app/easyCI/tasksPool.py
9OMShitikov/anytask
71354543f467f6c824dfb194bf48ee76c391ff53
[ "MIT" ]
null
null
null
import json import requests import tempfile import shutil import subprocess import os import logging import urllib.request from multiprocessing import Pool import app.easyCI.docker as docker from contextlib import contextmanager LOG = logging.getLogger(__name__) CONFIG = "config.json" PASSWORDS = "passwords.json" MAX...
29.312925
116
0.601764
233
0.054073
118
0.027385
134
0.031098
0
0
692
0.160594
370bb514404727469781e53bb089355e3b933806
1,201
py
Python
polling_stations/apps/data_collection/management/commands/import_monmouthshire.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_monmouthshire.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_monmouthshire.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseShpStationsShpDistrictsImporter class Command(BaseShpStationsShpDistrictsImporter): srid = 27700 council_id = "W06000021" districts_name = "polling_district" stations_name = "polling_station.shp" election...
32.459459
83
0.613655
1,072
0.89259
0
0
0
0
0
0
435
0.362198
370d8cad82f39f9f6c319866224a8b6a5d29e6e7
147
py
Python
compiler/astnodes/typeannotation.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
3
2020-05-30T16:59:33.000Z
2020-05-31T00:28:45.000Z
compiler/astnodes/typeannotation.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
1
2020-05-30T17:57:11.000Z
2020-05-30T20:44:53.000Z
compiler/astnodes/typeannotation.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
null
null
null
from .node import Node class TypeAnnotation(Node): def __init__(self, location: [int], kind: str): super().__init__(location, kind)
18.375
51
0.673469
121
0.823129
0
0
0
0
0
0
0
0
370f39af0bff09b2f1ff0353894b6e2f8d8e79a5
2,821
py
Python
lib/lambdascrapers/sources_ lambdascrapers/de/video4k.py
proxium/script.module.lambdascrapers
f96ad4c7c44c011c9d0007a83edde8c4797e0e2f
[ "Beerware" ]
11
2018-12-21T22:52:37.000Z
2021-09-02T02:13:50.000Z
lib/lambdascrapers/sources_ lambdascrapers/de/video4k.py
proxium/script.module.lambdascrapers
f96ad4c7c44c011c9d0007a83edde8c4797e0e2f
[ "Beerware" ]
null
null
null
lib/lambdascrapers/sources_ lambdascrapers/de/video4k.py
proxium/script.module.lambdascrapers
f96ad4c7c44c011c9d0007a83edde8c4797e0e2f
[ "Beerware" ]
1
2020-02-01T19:52:36.000Z
2020-02-01T19:52:36.000Z
# -*- coding: UTF-8 -*- ####################################################################### # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): # @Daddy_Blamo wrote this file. As long as you retain this notice you # can do whatever you want wi...
33.987952
149
0.499468
1,998
0.708259
0
0
0
0
0
0
871
0.308756
370fc257e4ad1d9ff8e001439c3aa8ae3d6aba1a
808
py
Python
lab-sessions/lab-3/ex3_gray_scale.py
DatacollectorVN/BME-Bio-Image-Processing-class
bc750f190398a1c29e2a8cd8092ced2072ce02e9
[ "MIT" ]
null
null
null
lab-sessions/lab-3/ex3_gray_scale.py
DatacollectorVN/BME-Bio-Image-Processing-class
bc750f190398a1c29e2a8cd8092ced2072ce02e9
[ "MIT" ]
null
null
null
lab-sessions/lab-3/ex3_gray_scale.py
DatacollectorVN/BME-Bio-Image-Processing-class
bc750f190398a1c29e2a8cd8092ced2072ce02e9
[ "MIT" ]
null
null
null
import cv2 import numpy as np import argparse def main(image_file_path): img = cv2.imread(image_file_path) img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) name_window_1 = "original" name_window_2 = "grayscale" while True: cv2.imshow(name_window_1, img) cv2.imshow(name_window_2, im...
27.862069
76
0.632426
0
0
0
0
0
0
0
0
119
0.147277
371029d250aeabea72732a867201c7c53e2e6057
862
py
Python
project/tests/GUI/tools.py
RemuTeam/Remu
a7d100ff9002b1b1d27249f8adf510b5a89c09e3
[ "MIT" ]
2
2017-09-18T11:04:38.000Z
2017-09-25T17:23:21.000Z
project/tests/GUI/tools.py
RemuTeam/Remu
a7d100ff9002b1b1d27249f8adf510b5a89c09e3
[ "MIT" ]
26
2017-09-20T09:11:10.000Z
2017-12-11T12:21:56.000Z
project/tests/GUI/tools.py
RemuTeam/Remu
a7d100ff9002b1b1d27249f8adf510b5a89c09e3
[ "MIT" ]
null
null
null
from functools import partial from kivy.clock import Clock def to_task(s): s.press("//MenuButtonTitled[@name='LOGO']") s.assert_on_screen('activity') s.press('//StartNowButton') s.assert_on_screen('tasks') s.tap("//TestIntro//TestCarouselForwardButton") s.assert_on_screen("test", manager_sele...
24.628571
78
0.701856
0
0
0
0
0
0
0
0
183
0.212297
37108a3012ad4523c07b518dd9e47f3e03dc8e23
1,726
py
Python
login_spider.py
ERUIHNIYHBKBNF/Digit-Recognition
c2334222da4b357836e7a0d53de9eccabc587113
[ "MIT" ]
null
null
null
login_spider.py
ERUIHNIYHBKBNF/Digit-Recognition
c2334222da4b357836e7a0d53de9eccabc587113
[ "MIT" ]
null
null
null
login_spider.py
ERUIHNIYHBKBNF/Digit-Recognition
c2334222da4b357836e7a0d53de9eccabc587113
[ "MIT" ]
null
null
null
import requests as rq import cv2 import time import os from picdiv import divide from knn import getVeryValue from utils import showimg url = 'http://222.194.10.249/inc/validatecode.asp' res = rq.get(url) # 文件名加个时间戳 fileName = str(int(time.time())) + '.jpg' # 由于不会在内存中直接转换二进制到rgb就只能存了再读了qwq with open(fileName, 'wb') as...
33.192308
231
0.70336
0
0
0
0
0
0
0
0
1,100
0.611111
3710f1bb3487fa331fc10580553cc5631bd8c85e
808
py
Python
auctions/migrations/0020_bids_bidder_alter_list_date.py
AncientSoup/cs50w_commerce
fb4cb8a47279e562f1d4a859abbf44ea5a7d9891
[ "MIT" ]
1
2022-01-25T10:40:44.000Z
2022-01-25T10:40:44.000Z
auctions/migrations/0020_bids_bidder_alter_list_date.py
AncientSoup/cs50w_commerce
fb4cb8a47279e562f1d4a859abbf44ea5a7d9891
[ "MIT" ]
null
null
null
auctions/migrations/0020_bids_bidder_alter_list_date.py
AncientSoup/cs50w_commerce
fb4cb8a47279e562f1d4a859abbf44ea5a7d9891
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-02-12 11:07 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('auctions', '0019_alter_list_date_alte...
28.857143
133
0.653465
595
0.736386
0
0
0
0
0
0
122
0.15099
37110cd9f3d19b020331f8f0ff331ab009b270d9
1,896
py
Python
tests/test_baseline.py
pleiszenburg/pyIGRF
2572afd40650ef7f10ba1804aaa4c7f870ef704e
[ "MIT" ]
1
2022-02-13T07:30:05.000Z
2022-02-13T07:30:05.000Z
tests/test_baseline.py
pleiszenburg/pyCRGI
3a1f394e2df6702432b29d2a7edded4d63cb14da
[ "MIT" ]
null
null
null
tests/test_baseline.py
pleiszenburg/pyCRGI
3a1f394e2df6702432b29d2a7edded4d63cb14da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from math import isclose import pytest from pyCRGI.pure import ( get_coeffs as pure_get_coeffs, get_value as pure_get_value, get_variation as pure_get_variation, ) from pyCRGI.jited import ( get_coeffs as jited_get_coeffs, get_value as jited_get_value, get_variation as...
22.571429
85
0.675105
0
0
0
0
1,543
0.813819
0
0
87
0.045886
371263ea2ae9c13774481f8ebcb487baf4684615
1,188
py
Python
mum/update/__init__.py
mapgears/maritime-update-manager
5a08a3fc609e4a37c758e52dbf2f4fd6ae541bc7
[ "MIT" ]
null
null
null
mum/update/__init__.py
mapgears/maritime-update-manager
5a08a3fc609e4a37c758e52dbf2f4fd6ae541bc7
[ "MIT" ]
1
2022-01-13T01:08:28.000Z
2022-01-13T01:08:28.000Z
mum/update/__init__.py
mapgears/maritime-update-manager
5a08a3fc609e4a37c758e52dbf2f4fd6ae541bc7
[ "MIT" ]
null
null
null
"""Update maritime data using update modules""" from __future__ import annotations from argparse import ArgumentParser import base64 import hashlib import os import shelve import toml from .modules import get_update_module def main(): parser = ArgumentParser(description=__doc__) parser.add_argument('config...
31.263158
69
0.676768
0
0
0
0
0
0
0
0
153
0.128788
3712e528ebc57eaa9774a8a00d9c212c77e54ca6
4,627
py
Python
ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py
chrisyo99/ENCODN
578a5eb87b68e4ba5ebb1c87808ad04aa160df5e
[ "MIT" ]
6
2020-10-07T13:09:38.000Z
2021-01-16T17:16:51.000Z
ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py
chrisyo99/ENCODN
578a5eb87b68e4ba5ebb1c87808ad04aa160df5e
[ "MIT" ]
27
2020-10-09T09:14:23.000Z
2021-01-22T07:16:43.000Z
ENCODN/TOOLS/CRYPTOGRAPHY/OTHER/ROZIERCYPHER/ROZIER.py
chrisyo99/ENCODN
578a5eb87b68e4ba5ebb1c87808ad04aa160df5e
[ "MIT" ]
14
2020-10-07T14:25:59.000Z
2021-02-21T16:54:37.000Z
""" Information on the Rozier Cipher can be found at: https://www.dcode.fr/rozier-cipher ROZIER.py Written by: MrLukeKR Updated: 16/10/2020 """ # The Rozier cipher needs a string based key, which can be constant for ease # or changed for each message, for better security constant_key = "DCODE" def encrypt(plaintext:...
40.234783
80
0.685758
0
0
0
0
0
0
0
0
2,984
0.64491
37142a2768a71aca4c786f5f03f214574e278dfd
3,324
py
Python
tests/highlevel/simpler-deepcell.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
tests/highlevel/simpler-deepcell.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
tests/highlevel/simpler-deepcell.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
from seamless.highlevel import Context from pprint import pprint ctx = Context() ctx.a = 12 ctx.compute() print(ctx.a.value) print(ctx.a.schema) # None def triple_it(a): return 3 * a def triple_it_b(a, b): print("RUN!") return 3 * a + b ctx.transform = triple_it ctx.transform.debug.direct_print = True ...
30.777778
134
0.73225
0
0
0
0
0
0
0
0
969
0.291516
3714523a9df68433b2793b57885742031aadd9a3
58
py
Python
kanon_api/units.py
legau/kanon-api
bae8fcba11caefa2f6715247852f853bb52fb9a6
[ "BSD-3-Clause" ]
null
null
null
kanon_api/units.py
legau/kanon-api
bae8fcba11caefa2f6715247852f853bb52fb9a6
[ "BSD-3-Clause" ]
80
2021-04-21T16:02:03.000Z
2022-03-28T00:48:58.000Z
kanon_api/units.py
legau/kanon-api
bae8fcba11caefa2f6715247852f853bb52fb9a6
[ "BSD-3-Clause" ]
null
null
null
from astropy import units as u degree: u.Unit = u.degree
14.5
30
0.741379
0
0
0
0
0
0
0
0
0
0
37156272e00bd374fa326b7f03c221d972948d2a
2,374
py
Python
IMLearn/utils/utils.py
AlonViz/IML.HUJI
107f7c20b8bd64d41452e4a5b66abe843af7eb18
[ "MIT" ]
null
null
null
IMLearn/utils/utils.py
AlonViz/IML.HUJI
107f7c20b8bd64d41452e4a5b66abe843af7eb18
[ "MIT" ]
null
null
null
IMLearn/utils/utils.py
AlonViz/IML.HUJI
107f7c20b8bd64d41452e4a5b66abe843af7eb18
[ "MIT" ]
null
null
null
from typing import Tuple import numpy as np import pandas as pd import time def split_train_test(X: pd.DataFrame, y: pd.Series, train_proportion: float = .75) \ -> Tuple[pd.DataFrame, pd.Series, pd.DataFrame, pd.Series]: """ Randomly split given sample to a training- and testing sample Parameters...
29.308642
119
0.641112
0
0
0
0
0
0
0
0
1,546
0.651222
37164ce047902fb36b1255b04be946281d2676f6
2,583
py
Python
review/migrations/0004_auto_20170315_0930.py
kgdunn/peer-review-system
1fd5ac9d0f84d7637a86682e9e5fc068ac404afd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
review/migrations/0004_auto_20170315_0930.py
kgdunn/peer-review-system
1fd5ac9d0f84d7637a86682e9e5fc068ac404afd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
review/migrations/0004_auto_20170315_0930.py
kgdunn/peer-review-system
1fd5ac9d0f84d7637a86682e9e5fc068ac404afd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-15 08:30 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('review', '0003_auto_20170314_2217'), ] operations ...
47.833333
387
0.629113
2,392
0.926055
0
0
0
0
0
0
903
0.349593
37175535dd73bb85ce801f6d71053f502d010455
459
py
Python
sesame/utils.py
GamePad64/django-sesame
9d6144110b2cd74cca4e58273926b111eadb3f03
[ "BSD-3-Clause" ]
null
null
null
sesame/utils.py
GamePad64/django-sesame
9d6144110b2cd74cca4e58273926b111eadb3f03
[ "BSD-3-Clause" ]
null
null
null
sesame/utils.py
GamePad64/django-sesame
9d6144110b2cd74cca4e58273926b111eadb3f03
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from .backends import UrlAuthBackendMixin from .compatibility import urlencode from .middleware import TOKEN_NAME def get_parameters(user): """ Return GET parameters to log in `user`. """ return {TOKEN_NAME: UrlAuthBackendMixin().create_token(user)} def get_...
20.863636
65
0.718954
0
0
0
0
0
0
0
0
124
0.270153
3717e0e3aec2403c0fab9cf210bee60a06ef922a
1,743
py
Python
tests/verbs/test_drop_verb.py
RathmoreChaos/intficpy
a5076bba93208dc18dcbf2e4ad720af9e2127eda
[ "MIT" ]
25
2019-04-30T23:51:44.000Z
2022-03-23T02:02:54.000Z
tests/verbs/test_drop_verb.py
RathmoreChaos/intficpy
a5076bba93208dc18dcbf2e4ad720af9e2127eda
[ "MIT" ]
4
2019-07-09T03:43:35.000Z
2022-01-10T23:41:46.000Z
tests/verbs/test_drop_verb.py
RathmoreChaos/intficpy
a5076bba93208dc18dcbf2e4ad720af9e2127eda
[ "MIT" ]
5
2021-04-24T03:54:39.000Z
2022-01-06T20:59:03.000Z
from ..helpers import IFPTestCase from intficpy.things import Thing, Container, Liquid class TestDropVerb(IFPTestCase): def test_verb_func_drops_item(self): item = Thing(self.game, self._get_unique_noun()) item.invItem = True self.me.addThing(item) self.assertIn(item.ix, self.me.c...
36.3125
85
0.655766
1,652
0.947791
0
0
0
0
0
0
235
0.134825
37184bb52ce3b69f9a3ea49e44dc9a4d526d0292
3,076
py
Python
woot/apps/catalog/views/forum.py
Makeystreet/makeystreet
761331de52207227baf6f8d161ab6df1747f8ef3
[ "Apache-2.0" ]
1
2015-06-27T13:25:28.000Z
2015-06-27T13:25:28.000Z
woot/apps/catalog/views/forum.py
Makeystreet/makeystreet
761331de52207227baf6f8d161ab6df1747f8ef3
[ "Apache-2.0" ]
1
2015-07-02T20:18:53.000Z
2015-07-02T20:18:53.000Z
woot/apps/catalog/views/forum.py
Makeystreet/makeystreet
761331de52207227baf6f8d161ab6df1747f8ef3
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, render from woot.apps.catalog.models.forum import Question, Answer from woot.apps.catalog.models.core import Makey, Comment from woot.ap...
29.576923
76
0.539012
0
0
0
0
0
0
0
0
305
0.099155
371a4860fef108bacaa12c8950aae7cf93fc6975
223
py
Python
old_django_malliva/marketplaceAccounts/admin.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
null
null
null
old_django_malliva/marketplaceAccounts/admin.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
null
null
null
old_django_malliva/marketplaceAccounts/admin.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
1
2021-07-19T12:15:52.000Z
2021-07-19T12:15:52.000Z
from django.contrib import admin from .models import MarketplaceAccount, Plan, Subscription # Register your models here. admin.site.register(Plan) admin.site.register(Subscription) admin.site.register(MarketplaceAccount)
24.777778
58
0.829596
0
0
0
0
0
0
0
0
28
0.125561
371a8dcbd851a1e7977852eaa260257568a126f3
1,316
py
Python
tools/cr/cr/commands/info.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/cr/cr/commands/info.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/cr/cr/commands/info.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A module for the info implementation of Command.""" from __future__ import print_function import cr class InfoCommand(cr.Command): """The cr info co...
28.608696
72
0.660334
1,045
0.794073
0
0
0
0
0
0
412
0.31307
371b5cd190cc6453ea1cf3899da67cadf76aab9c
304
py
Python
mlapp/MLAPP_CODE/MLAPP-C5-Code/betaCredibleInt.py
xishansnow/MLAPP
2f30cd94fd852a3f66fe92a124f65722bd2af509
[ "MIT" ]
null
null
null
mlapp/MLAPP_CODE/MLAPP-C5-Code/betaCredibleInt.py
xishansnow/MLAPP
2f30cd94fd852a3f66fe92a124f65722bd2af509
[ "MIT" ]
null
null
null
mlapp/MLAPP_CODE/MLAPP-C5-Code/betaCredibleInt.py
xishansnow/MLAPP
2f30cd94fd852a3f66fe92a124f65722bd2af509
[ "MIT" ]
null
null
null
"""计算分位数""" from scipy import stats import numpy as np S = 47 N = 100 a = S + 1 b = (N -S) + 1 alpha = 0.05 lu = stats.beta.ppf([alpha/2, 1-alpha/2], a, b) print(lu) ## MC方法 S = 1000 X = stats.beta.rvs(a, b, size=S) X = np.sort(X, axis=0) l = X[round(S*alpha/2)] u = X[round(S*(1-alpha)/2)] print(l,u)
15.2
47
0.578947
0
0
0
0
0
0
0
0
32
0.100629
371b77ffe10a8965336c8ef7f84e3420344cd205
5,009
py
Python
cqa_dataloader.py
vksriharsha/CQA
50021cca2d1d0833a0300bea20fd259dc4871fad
[ "MIT" ]
8
2021-01-11T01:12:09.000Z
2022-01-20T23:23:22.000Z
cqa_dataloader.py
vksriharsha/CQA
50021cca2d1d0833a0300bea20fd259dc4871fad
[ "MIT" ]
null
null
null
cqa_dataloader.py
vksriharsha/CQA
50021cca2d1d0833a0300bea20fd259dc4871fad
[ "MIT" ]
2
2021-07-19T06:23:33.000Z
2021-09-09T15:28:51.000Z
import json import os from concurrent.futures import ProcessPoolExecutor import numpy as np import torch from PIL import Image from nltk.tokenize import word_tokenize from torch.utils.data import Dataset, DataLoader class CQADataset(Dataset): def __init__(self, cqa_data, ans2idx, ques2idx, maxlen, split, config)...
36.035971
118
0.65542
1,207
0.240966
0
0
0
0
0
0
311
0.062088
371c4a5f6f8c3976b640b0eedc55c96b6d333633
4,363
py
Python
re_calc/shunting_yard.py
LilacRapture/re_calc
d8dc744e26ade3edc545dd6509bf2baf973537a2
[ "MIT" ]
1
2020-02-27T18:29:52.000Z
2020-02-27T18:29:52.000Z
re_calc/shunting_yard.py
LilacRapture/re_calc
d8dc744e26ade3edc545dd6509bf2baf973537a2
[ "MIT" ]
1
2020-02-27T18:46:46.000Z
2020-02-27T18:46:46.000Z
re_calc/shunting_yard.py
LilacRapture/ReCalc
d8dc744e26ade3edc545dd6509bf2baf973537a2
[ "MIT" ]
null
null
null
from re_calc.config import * from re_calc.exceptions import CalcException from re_calc.util import is_number import re_calc.meta_containers as meta_containers def peek(stack): return stack[-1] def should_move_to_queue(stack, c_token_prc): ''' Checks token's precedence and associativity to decide if it should...
37.290598
86
0.572313
0
0
0
0
0
0
0
0
811
0.185881
371ccf1859b31fd5c4912f1fb9a89f63aca04cba
28,944
py
Python
image_classification/VOLO/volo.py
chuliuT/PaddleViT
282e5013f0460fa9f9b010775ff4d2607e7370ef
[ "Apache-2.0" ]
null
null
null
image_classification/VOLO/volo.py
chuliuT/PaddleViT
282e5013f0460fa9f9b010775ff4d2607e7370ef
[ "Apache-2.0" ]
null
null
null
image_classification/VOLO/volo.py
chuliuT/PaddleViT
282e5013f0460fa9f9b010775ff4d2607e7370ef
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PPViT Authors. 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
36.453401
110
0.530991
26,760
0.924544
0
0
0
0
0
0
7,416
0.256219
371f8ef580118827f3f0d0fba4c653c6f27eaf69
740
py
Python
setup.py
Mattjez914/Blackjack_Microchallenge
c4f60b62a3ada14663eb30ce72563af994e1eda4
[ "Apache-2.0" ]
null
null
null
setup.py
Mattjez914/Blackjack_Microchallenge
c4f60b62a3ada14663eb30ce72563af994e1eda4
[ "Apache-2.0" ]
null
null
null
setup.py
Mattjez914/Blackjack_Microchallenge
c4f60b62a3ada14663eb30ce72563af994e1eda4
[ "Apache-2.0" ]
1
2019-04-17T06:12:23.000Z
2019-04-17T06:12:23.000Z
import learntools from setuptools import setup from setuptools import find_packages setup(name='learntools', version=learntools.__version__, description='Utilities for Kaggle Learn exercises', url='http://github.com/kaggle/learntools', author='Dan Becker', author_email='dan@kaggle.com', ...
38.947368
120
0.737838
0
0
0
0
0
0
0
0
348
0.47027
372019bef08d8edff5f6ead1979cf5e63b3e3fd3
1,102
py
Python
maro/cli/grass/lib/scripts/create_job_details.py
yourmoonlight/maro
4fbe556f3ae1817995f90cb529e9ca6191f67d7f
[ "MIT" ]
1
2021-01-13T06:41:51.000Z
2021-01-13T06:41:51.000Z
maro/cli/grass/lib/scripts/create_job_details.py
chaosddp/maro
3d6715649467d49a83886c1fd4ae9b41ff012a50
[ "MIT" ]
2
2020-12-15T09:13:43.000Z
2020-12-16T08:02:41.000Z
maro/cli/grass/lib/scripts/create_job_details.py
chaosddp/maro
3d6715649467d49a83886c1fd4ae9b41ff012a50
[ "MIT" ]
1
2021-10-01T09:17:43.000Z
2021-10-01T09:17:43.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import json from redis import Redis from .utils import load_cluster_details, load_job_details def create_job_details(cluster_name: str, job_name: str): # Load details cluster_details = load_cluster_details(cluster_nam...
25.627907
80
0.708711
0
0
0
0
0
0
0
0
228
0.206897
37218dc001152be9a5cbbcb8a62c2a58d5ca62fb
287
py
Python
yard/skills/66-python/cookbook/yvhai/demo/input/xml.py
paser4se/bbxyard
d09bc6efb75618b2cef047bad9c8b835043446cb
[ "Apache-2.0" ]
1
2016-03-29T02:01:58.000Z
2016-03-29T02:01:58.000Z
yard/skills/66-python/cookbook/yvhai/demo/input/xml.py
paser4se/bbxyard
d09bc6efb75618b2cef047bad9c8b835043446cb
[ "Apache-2.0" ]
18
2019-02-13T09:15:25.000Z
2021-12-09T21:32:13.000Z
yard/skills/66-python/cookbook/yvhai/demo/input/xml.py
paser4se/bbxyard
d09bc6efb75618b2cef047bad9c8b835043446cb
[ "Apache-2.0" ]
2
2020-07-05T01:01:30.000Z
2020-07-08T22:33:06.000Z
#!/usr/bin/env python3 # xml 资源 xml_w3_book = """ <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book> <title lang="eng">Harry Potter</title> <price>29.99</price> </book> <book> <title lang="eng">Learning XML</title> <price>39.95</price> </book> </bookstore> """
13.045455
43
0.620209
0
0
0
0
0
0
0
0
272
0.934708
372d1783d09633f1dcce4eb049bf6981e1c19552
5,855
py
Python
test_001/test_006.py
kostur86/kasia_tut
a974bdac660208409ef3a9d2fcc670429ab5fc07
[ "MIT" ]
null
null
null
test_001/test_006.py
kostur86/kasia_tut
a974bdac660208409ef3a9d2fcc670429ab5fc07
[ "MIT" ]
null
null
null
test_001/test_006.py
kostur86/kasia_tut
a974bdac660208409ef3a9d2fcc670429ab5fc07
[ "MIT" ]
null
null
null
#!env python3 """ Introducing static object in the world. Tasks: 1. File got really long - move all classes to library file and import them here. """ import pygame from pygame import K_ESCAPE, K_LEFT, K_RIGHT, K_UP, K_DOWN, QUIT class Game(): def __init__(self): """ Set basic configura...
22.782101
83
0.525021
2,846
0.48608
0
0
138
0.02357
0
0
1,489
0.254313
372e7aa4b02b743d5cd7b6c3f4b391ee437c82f6
256
py
Python
earth_engine/apps.py
ecsnavarretemit/sarai-satellite-analysis-backend
73de6c4cac37889efff49b9be085f3c733e27702
[ "MIT" ]
null
null
null
earth_engine/apps.py
ecsnavarretemit/sarai-satellite-analysis-backend
73de6c4cac37889efff49b9be085f3c733e27702
[ "MIT" ]
null
null
null
earth_engine/apps.py
ecsnavarretemit/sarai-satellite-analysis-backend
73de6c4cac37889efff49b9be085f3c733e27702
[ "MIT" ]
null
null
null
# admin.py # # Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> # Licensed under MIT # Version 0.0.0 from __future__ import unicode_literals from django.apps import AppConfig class EarthEngineConfig(AppConfig): name = 'earth_engine'
18.285714
65
0.769531
61
0.238281
0
0
0
0
0
0
125
0.488281
372f0b9a0c5b68436afd58d4097085803b7bfd5f
1,333
py
Python
seapy/__init__.py
oceanum/seapy
758a02677340a51bbb20d622552ce798a3221b7b
[ "MIT" ]
2
2020-07-09T03:29:10.000Z
2021-07-07T22:00:46.000Z
seapy/__init__.py
joaometocean/seapy
5df410b3f1fa928f76d3421ae3c1698e9d4a5f52
[ "MIT" ]
null
null
null
seapy/__init__.py
joaometocean/seapy
5df410b3f1fa928f76d3421ae3c1698e9d4a5f52
[ "MIT" ]
null
null
null
""" __init__.py State Estimation and Analysis for PYthon Module for working with oceanographic data and models Copyright (c)2019 University of Hawaii under the MIT-License. Requires the following packages: joblib Import classes include: - :class:`~seapy.environ.opt` - :class:`~seapy.progressbar....
24.236364
63
0.699925
0
0
0
0
0
0
0
0
1,014
0.76069
372f9e118f442669abaa10df5175221694562ac7
22,776
py
Python
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/module/_ssl/interp_ssl.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
from pypy.rpython.rctypes.tool import ctypes_platform from pypy.rpython.rctypes.tool.libc import libc import pypy.rpython.rctypes.implementation # this defines rctypes magic from pypy.interpreter.error import OperationError from pypy.interpreter.baseobjspace import W_Root, ObjSpace, Wrappable from pypy.interpreter.type...
38.472973
85
0.67514
7,193
0.315815
0
0
0
0
0
0
3,744
0.164384
37303e892dc9ad94bf01158c4ae3cf2a203d0473
2,576
py
Python
apps/question2.py
roshik2016/CIS-5810-Health-Care
af06711c946a92d06ab198cbe10ff73dd103f1c2
[ "Apache-2.0" ]
null
null
null
apps/question2.py
roshik2016/CIS-5810-Health-Care
af06711c946a92d06ab198cbe10ff73dd103f1c2
[ "Apache-2.0" ]
null
null
null
apps/question2.py
roshik2016/CIS-5810-Health-Care
af06711c946a92d06ab198cbe10ff73dd103f1c2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 29 00:56:43 2017 @author: roshi """ import pandas as pd import matplotlib.pyplot as plt import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go from app import app data = pd.read_csv('./data/youth_to...
25.76
97
0.556289
0
0
0
0
1,112
0.431677
0
0
1,050
0.407609
3730b8d9d97aea9d5b10c216bcc20f5a6594936c
1,084
py
Python
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
1
2020-07-22T12:46:58.000Z
2020-07-22T12:46:58.000Z
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
54
2019-10-09T16:19:04.000Z
2022-01-19T20:28:59.000Z
tests/test_easy_patient_name.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
2
2019-10-30T19:54:43.000Z
2020-12-03T18:57:15.000Z
from phc.easy.patients.name import expand_name_value def test_name(): assert expand_name_value( [{"text": "ARA251 LO", "given": ["ARA251"], "family": "LO"}] ) == {"name_given_0": "ARA251", "name_family": "LO"} def test_name_with_multiple_values(): # NOTE: Official names are preferred first and t...
27.794872
79
0.47048
0
0
0
0
0
0
0
0
476
0.439114
37324e5514d40a1e4f6fc7ae82b9119d2c9de22e
2,249
py
Python
templates/fastApiService/zarubaServiceName/main.py
state-alchemists/zaruba
2c689c920df3589168ec81664b92110021892464
[ "Apache-2.0" ]
39
2020-03-13T19:41:11.000Z
2022-02-14T02:01:00.000Z
templates/fastApiService/zarubaServiceName/main.py
state-alchemists/zaruba
2c689c920df3589168ec81664b92110021892464
[ "Apache-2.0" ]
5
2020-08-01T08:55:48.000Z
2022-02-10T00:55:39.000Z
templates/fastApiService/zarubaServiceName/main.py
state-alchemists/zaruba
2c689c920df3589168ec81664b92110021892464
[ "Apache-2.0" ]
4
2020-11-10T20:45:12.000Z
2021-03-18T06:18:55.000Z
from fastapi import FastAPI from fastapi.staticfiles import StaticFiles from sqlalchemy import create_engine from helpers.transport import RMQEventMap, KafkaEventMap, get_rmq_connection_parameters, get_kafka_connection_parameters from configs.helper import get_abs_static_dir, create_message_bus, create_rpc import os ...
48.891304
120
0.803468
0
0
0
0
81
0.036016
0
0
768
0.341485
2e92110a4acf5b4d90f4de3ae5d754fd4d0bda47
292
py
Python
integration/tests_ok/user_agent.py
jleverenz/hurl
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
[ "Apache-2.0" ]
null
null
null
integration/tests_ok/user_agent.py
jleverenz/hurl
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
[ "Apache-2.0" ]
null
null
null
integration/tests_ok/user_agent.py
jleverenz/hurl
b81ca8ab7e0e409ec0c074fd8e118721ff4d3fb3
[ "Apache-2.0" ]
null
null
null
from app import app from flask import request @app.route("/user-agent/a") def useragent_a(): assert "Mozilla/5.0 A" == request.headers["User-Agent"] return "" @app.route("/user-agent/b") def useragent_b(): assert "Mozilla/5.0 B" == request.headers["User-Agent"] return ""
19.466667
59
0.657534
0
0
0
0
240
0.821918
0
0
88
0.30137
2e9468df37a2fdec7d11655ed9954768b1a4267e
61,398
py
Python
downloader_backend.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
2
2022-02-17T10:02:29.000Z
2022-02-22T21:31:09.000Z
downloader_backend.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
4
2022-02-15T09:56:49.000Z
2022-03-31T15:44:10.000Z
downloader_backend.py
ansys/automatic-installer
47563fbccf0769ba0153deb9cce373d99e8a8b26
[ "MIT" ]
1
2022-02-22T21:31:17.000Z
2022-02-22T21:31:17.000Z
import argparse import datetime import errno import json import logging import os import random import re import shutil import subprocess import sys import time import traceback import zipfile import zlib from functools import wraps from types import SimpleNamespace import psutil import py7zr from artifactory import A...
41.597561
118
0.610052
55,922
0.910811
0
0
19,382
0.315678
0
0
21,989
0.358139
2e9651f60def43e3b45da108464a7524c9c57ee1
14,752
py
Python
spectrum/input.py
elifesciences/elife-spectrum
05ed1dac44f4fd9271b30808e8381ab033c8ecc4
[ "MIT" ]
null
null
null
spectrum/input.py
elifesciences/elife-spectrum
05ed1dac44f4fd9271b30808e8381ab033c8ecc4
[ "MIT" ]
91
2016-12-12T10:00:00.000Z
2021-10-18T02:51:39.000Z
spectrum/input.py
elifesciences/elife-spectrum
05ed1dac44f4fd9271b30808e8381ab033c8ecc4
[ "MIT" ]
1
2017-04-13T22:26:46.000Z
2017-04-13T22:26:46.000Z
"""utility library for interacting with remote services, such as: * dashboard * journal * elife-bot * journal-cms contains no tests to be run.""" from os import path import random import string import requests from econtools import econ_workflow from pollute import modified_environ import mechanicalsoup from spectru...
39.762803
251
0.657606
12,133
0.822465
0
0
0
0
0
0
4,060
0.275217
2e9709ca8cc7d764b689cf057d3c5b3594a91da1
2,858
py
Python
tools/python/maps_generator/generator/osmtools.py
Polas/omim
03558b418b338f506fbf3aa72ddf15187a2005ee
[ "Apache-2.0" ]
1
2020-11-10T01:13:12.000Z
2020-11-10T01:13:12.000Z
tools/python/maps_generator/generator/osmtools.py
Polas/omim
03558b418b338f506fbf3aa72ddf15187a2005ee
[ "Apache-2.0" ]
1
2018-11-26T15:44:46.000Z
2018-11-27T10:55:36.000Z
tools/python/maps_generator/generator/osmtools.py
Polas/omim
03558b418b338f506fbf3aa72ddf15187a2005ee
[ "Apache-2.0" ]
null
null
null
import os import subprocess from . import settings from .exceptions import BadExitStatusError from .exceptions import wait_and_raise_if_fail def build_osmtools(path, output=subprocess.DEVNULL, error=subprocess.DEVNULL): src = { settings.OSM_TOOL_UPDATE: "osmupdate.c", settings.OSM_TOOL_FILTER: "o...
23.42623
78
0.557733
0
0
0
0
0
0
0
0
390
0.136459
2e97391dfc452d676130d4fba3d542a2e077ba24
3,210
py
Python
app.py
mikecarrier4/GITBTC-Prototype
aff6f9584def94abf15ab753829b032cda4b5e51
[ "MIT" ]
null
null
null
app.py
mikecarrier4/GITBTC-Prototype
aff6f9584def94abf15ab753829b032cda4b5e51
[ "MIT" ]
null
null
null
app.py
mikecarrier4/GITBTC-Prototype
aff6f9584def94abf15ab753829b032cda4b5e51
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect, request, url_for, session from flask_sqlalchemy import SQLAlchemy from src import DB import subprocess import os import signal app = Flask(__name__, template_folder='templates') app.secret_key = 'super secret key' app.config['SESSION_TYPE'] = 'filesystem' #app.config...
28.157895
95
0.593458
0
0
0
0
2,786
0.867913
0
0
842
0.262305
2e97b594597a17ee9700119005e1bb2d1097d89e
9,027
py
Python
codes/train_for_each_cate.py
thu-coai/DiaSafety
8383d45bea1be44ecf1cb9cd4bec52611812ea2d
[ "Apache-2.0" ]
3
2021-11-03T06:16:15.000Z
2022-03-11T07:09:23.000Z
codes/train_for_each_cate.py
thu-coai/DiaSafety
8383d45bea1be44ecf1cb9cd4bec52611812ea2d
[ "Apache-2.0" ]
null
null
null
codes/train_for_each_cate.py
thu-coai/DiaSafety
8383d45bea1be44ecf1cb9cd4bec52611812ea2d
[ "Apache-2.0" ]
null
null
null
from transformers import RobertaTokenizer, RobertaForSequenceClassification, AdamW import torch import json from sklearn import metrics from tqdm import tqdm import numpy as np from time import time from datetime import timedelta import pandas as pd from sklearn.model_selection import train_test_split import argparse i...
42.985714
174
0.641631
0
0
0
0
0
0
0
0
1,250
0.138473
2e9823bd8bb1e8b62572906d7b5463e1162c391e
5,065
py
Python
tests/functional/test_lentBook.py
deemarc/dmLibrary
ebdb77c45ffdf4c92797a2f268b59adedd46ef2a
[ "MIT" ]
null
null
null
tests/functional/test_lentBook.py
deemarc/dmLibrary
ebdb77c45ffdf4c92797a2f268b59adedd46ef2a
[ "MIT" ]
null
null
null
tests/functional/test_lentBook.py
deemarc/dmLibrary
ebdb77c45ffdf4c92797a2f268b59adedd46ef2a
[ "MIT" ]
null
null
null
import unittest from dmLibrary import create_app from dmLibrary.external.googleBook import GoogleBook import time import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) class TestClass(unittest.TestCase): def setUp(self): app = create_app() self.ctx = app.app_c...
35.41958
89
0.595854
4,885
0.956156
0
0
0
0
0
0
1,769
0.346252
2e9869e8da3125095fe2bf1fdea08f90bff81ce5
697
py
Python
LeetCode/Python/search_insert_position.py
tejeshreddy/competitive-programming
e98d3800c7f1dcca285286cac1ac056b11201e12
[ "MIT" ]
null
null
null
LeetCode/Python/search_insert_position.py
tejeshreddy/competitive-programming
e98d3800c7f1dcca285286cac1ac056b11201e12
[ "MIT" ]
null
null
null
LeetCode/Python/search_insert_position.py
tejeshreddy/competitive-programming
e98d3800c7f1dcca285286cac1ac056b11201e12
[ "MIT" ]
null
null
null
""" Title: 0035 - Search Insert Position Tags: Binary Search Time: O(logn) Space: O(1) Source: https://leetcode.com/problems/search-insert-position/ Difficulty: Easy """ class Solution(object): def searchInsert(self, nums, target): """ :type nums: List[int] :type target: int :rtype:...
22.483871
61
0.476327
525
0.753228
0
0
0
0
0
0
260
0.373027
2e9a0dfea1dd417d3aed705d60b72d8ce81c3470
1,337
py
Python
server/api/test.py
nwfsc-fram/Warehouse
c1a06ab7bacd6c15ab5fe2bb6076e3ea3c95757d
[ "BSD-3-Clause" ]
5
2019-02-27T03:06:02.000Z
2021-11-15T20:12:50.000Z
server/api/test.py
nwfsc-fram/Warehouse
c1a06ab7bacd6c15ab5fe2bb6076e3ea3c95757d
[ "BSD-3-Clause" ]
48
2019-02-14T21:15:18.000Z
2021-10-02T01:18:49.000Z
server/api/test.py
nwfsc-fram/Warehouse
c1a06ab7bacd6c15ab5fe2bb6076e3ea3c95757d
[ "BSD-3-Clause" ]
1
2021-03-22T23:47:54.000Z
2021-03-22T23:47:54.000Z
# pylint: disable=global-statement """ Module providing unittest test discovery hook for our Doctest testcases Copyright (C) 2015, 2016 ERT Inc. """ import unittest import doctest from time import sleep from api import app_module as app from api import ( config_loader ,aes ,json ,resource_util ) __au...
26.74
77
0.712042
0
0
0
0
0
0
0
0
422
0.315632
2e9ab9a70a398a99408deeddd6ad6d94b9da8cfd
9,736
py
Python
tests/old_wc.py
qiaojunfeng/yambo-aiida
1900f2a0932b7782759740e5835620dbfb897a76
[ "MIT", "BSD-3-Clause" ]
3
2018-10-30T14:00:40.000Z
2020-04-11T08:03:10.000Z
tests/old_wc.py
qiaojunfeng/yambo-aiida
1900f2a0932b7782759740e5835620dbfb897a76
[ "MIT", "BSD-3-Clause" ]
32
2017-10-23T17:11:35.000Z
2022-03-28T10:04:23.000Z
tests/old_wc.py
qiaojunfeng/yambo-aiida
1900f2a0932b7782759740e5835620dbfb897a76
[ "MIT", "BSD-3-Clause" ]
6
2017-10-23T17:01:13.000Z
2022-03-15T18:20:35.000Z
from __future__ import absolute_import from __future__ import print_function import unittest from aiida.manage.fixtures import PluginTestCase import subprocess, os def backend_obj_users(): """Test if aiida accesses users through backend object.""" backend_obj_flag = False try: from aiida.backends...
38.482213
112
0.57159
8,044
0.826212
0
0
0
0
0
0
2,160
0.221857
2e9d1bb5a95a4719b56246692e62c0136fc3c506
4,017
py
Python
knn.py
dengbuqi/lie_detection
a90070511e779c2ec765b34ec68bac806053bf9d
[ "MIT" ]
1
2022-01-23T17:21:20.000Z
2022-01-23T17:21:20.000Z
knn.py
dengbuqi/lie_detection
a90070511e779c2ec765b34ec68bac806053bf9d
[ "MIT" ]
null
null
null
knn.py
dengbuqi/lie_detection
a90070511e779c2ec765b34ec68bac806053bf9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @FileName : knn.py # @Time : 2020/9/25 12:29 # @Author : 陈嘉昕 # @Demand : k-临近算法,和训练的模型作比较 import csv import math import operator from random import shuffle import matplotlib.pyplot as plt # 数据集 training_set = [] # 测试集 test_set = [] def cross_validation(fil...
27.703448
104
0.62584
0
0
0
0
0
0
0
0
444
0.109064
2e9db835b85cc0a761a8f0a3c7d9faa9306aeec6
5,530
py
Python
vnpy/trader/http/controller/stock.py
chenzj810/vnpy-stock
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
2
2021-01-03T05:28:14.000Z
2021-01-03T05:28:19.000Z
vnpy/trader/http/controller/stock.py
chenzj810/vnpy
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
null
null
null
vnpy/trader/http/controller/stock.py
chenzj810/vnpy
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
1
2021-04-26T14:08:23.000Z
2021-04-26T14:08:23.000Z
# encoding: UTF-8 import os import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web import json ######################################################################## class StockHandler(tornado.web.RequestHandler): """handler""" def initialize(self, mainEngine...
29.414894
102
0.517541
5,721
0.96378
0
0
0
0
0
0
2,302
0.387803
2e9e6bf6e35ae4a1dfdd7e51e95b5be403c30f21
7,126
py
Python
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
1
2019-10-24T14:29:00.000Z
2019-10-24T14:29:00.000Z
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
7
2017-11-28T23:58:40.000Z
2022-03-11T23:12:12.000Z
src/headtracking_network/live_training.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import os import navirice_image_pb2 import cv2 import random import sys from navirice_generate_data import generate_bitmap_label from navirice_helpers import navirice_image_to_np from navirice_helpers import navirice_ir_to_np from navirice_helpers import map_depth_and_rgb fro...
33.772512
152
0.57648
0
0
0
0
0
0
0
0
849
0.119141
2e9f1ea21cc06a6a8937ede1cde54d73757d1f69
1,448
py
Python
src/python-opencv/001-base/test_003_change.py
bjlhx15/python-algorithm
bbd162e194359a01806922d73b709fe64fcfa422
[ "Apache-2.0" ]
null
null
null
src/python-opencv/001-base/test_003_change.py
bjlhx15/python-algorithm
bbd162e194359a01806922d73b709fe64fcfa422
[ "Apache-2.0" ]
null
null
null
src/python-opencv/001-base/test_003_change.py
bjlhx15/python-algorithm
bbd162e194359a01806922d73b709fe64fcfa422
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import cv2 import numpy as np # 仿射变换(图像位置校正) def img_three(imgPath): # ---------------------------三点得到一个变换矩阵 --------------------------- """ 三点确定一个平面,通过确定三个点的关系来得到转换矩阵 然后再通过warpAffine来进行变换 """ img = cv2.imread(imgPath) rows,cols,_ = img.shape points1 ...
27.846154
71
0.594613
0
0
0
0
0
0
0
0
796
0.460116
2ea01d9b33fe2e0d0e0d8aac551b396ffa45ae0c
6,836
py
Python
affine/preprocessing.py
OSU-slatelab/geometric-embedding-properties
0436d86303439681ad74aa4d29a53a15953cbb88
[ "MIT" ]
3
2019-06-06T18:57:22.000Z
2020-04-03T07:47:14.000Z
affine/preprocessing.py
OSU-slatelab/geometric-embedding-properties
0436d86303439681ad74aa4d29a53a15953cbb88
[ "MIT" ]
null
null
null
affine/preprocessing.py
OSU-slatelab/geometric-embedding-properties
0436d86303439681ad74aa4d29a53a15953cbb88
[ "MIT" ]
1
2019-09-23T20:44:04.000Z
2019-09-23T20:44:04.000Z
from progressbar import progressbar from tqdm import tqdm import multiprocessing as mp import pandas as pd import numpy as np import pyemblib import scipy import queue import time import sys import os ''' preprocessing.py Preprocessing methods for cuto.py. ''' #========1=========2=========3=========4=========5=...
32.708134
72
0.510532
0
0
0
0
0
0
0
0
2,950
0.43135
2ea13d20660fbbf34a9c2a82526adf203ee02dd1
6,931
py
Python
restcli/cliparser.py
jykntr/rest-cli-client
d9ebf5a6e056ba7ab0e59614d9702e373696580e
[ "MIT" ]
1
2015-07-03T10:43:04.000Z
2015-07-03T10:43:04.000Z
restcli/cliparser.py
jykntr/rest-cli-client
d9ebf5a6e056ba7ab0e59614d9702e373696580e
[ "MIT" ]
null
null
null
restcli/cliparser.py
jykntr/rest-cli-client
d9ebf5a6e056ba7ab0e59614d9702e373696580e
[ "MIT" ]
null
null
null
import argparse from profile import Profile PROXY = 'proxy' VERIFY = 'verify' DEBUG = 'verbose' class CliParser(): def __init__(self, requests, profiles, options): self.requests = requests self.profiles = profiles self.options = options self.args = None # Use a pre-parser...
38.292818
112
0.568605
6,831
0.985572
0
0
0
0
0
0
2,073
0.299091
2ea1906135b6dd2cc25bcc298892705479bf616f
448
py
Python
src/widgets/button.py
priscilafaliani/Analisis-De-Datos
247695e3e976f042fc453d02bd9d4d722fb331ff
[ "CC0-1.0" ]
6
2021-05-02T08:28:42.000Z
2021-05-07T13:18:32.000Z
src/widgets/button.py
priscilafaliani/Analisis-De-Datos
247695e3e976f042fc453d02bd9d4d722fb331ff
[ "CC0-1.0" ]
null
null
null
src/widgets/button.py
priscilafaliani/Analisis-De-Datos
247695e3e976f042fc453d02bd9d4d722fb331ff
[ "CC0-1.0" ]
null
null
null
"""Builds a button according to the theme of the app.""" import PySimpleGUI as sg from src.globals import colors def build(text, key, font, size): """Returns a button with the current theme""" button = sg.Button( button_text=text, button_color=(colors.WHITE, colors.LIGHT_GRAY), mou...
24.888889
56
0.633929
0
0
0
0
0
0
0
0
101
0.225446
2ea1bf2e9cb8105280a4f2635279518d125a4312
8,005
py
Python
python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_grad_op.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_grad_op.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
1
2022-01-28T07:23:22.000Z
2022-01-28T07:23:22.000Z
python/paddle/fluid/tests/unittests/test_fused_gemm_epilogue_grad_op.py
Li-fAngyU/Paddle
e548f65f96697830035a28f9070b40829408ccdb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2022 NVIDIA Corporation. 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 License at # # http://...
33.354167
75
0.6396
5,194
0.648844
0
0
6,910
0.86321
0
0
1,509
0.188507
2ea653e279e69de83e480c6b72197a40442f52f8
435
py
Python
scripts/classtest.py
alandegenhart/neuropy
a9f7b735da78a5296f648cb3bb94c1c31843c668
[ "MIT" ]
1
2020-09-03T19:33:48.000Z
2020-09-03T19:33:48.000Z
scripts/classtest.py
alandegenhart/neuropy
a9f7b735da78a5296f648cb3bb94c1c31843c668
[ "MIT" ]
null
null
null
scripts/classtest.py
alandegenhart/neuropy
a9f7b735da78a5296f648cb3bb94c1c31843c668
[ "MIT" ]
null
null
null
"""Class static method test""" class TestClass(): """Test class""" def __init__(self, a=1, b=2): self.a = a self.b = b def add(self): return self.a + self.b @staticmethod def static_add(a, b): return 2 * a + 2 * b def add2(self): return self.static_a...
16.730769
46
0.528736
305
0.701149
0
0
68
0.156322
0
0
56
0.128736