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
e76480471e6bea18ea40a9e4037a74ba815e2226
1,756
py
Python
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
bot/sign_api.py
rombintu/project12
a127b8c697cb6e7cc07ff9528a79888f72c4c4ca
[ "MIT" ]
null
null
null
import os from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA from Crypto.Signature import pkcs1_15 def create_sign_of_file(file_name): # Генерируем новый ключ key = RSA.generate(1024, os.urandom) # Получаем хэш файла hesh = SHA256.new() with open(file_name, "rb") as f: for ch...
28.786885
109
0.656606
0
0
0
0
0
0
0
0
522
0.27416
e764cbf89763dd805ae8cb69ca387c4c6438236e
38,685
py
Python
vyperlogix/decorators/pyanno.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/decorators/pyanno.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/decorators/pyanno.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
""" Pyanno Python Annotations version 0.76 Uses the new python decorators feature. Do not apply these annotations within this module. charlesmchen@gmail.com for documentation, see the index.html file included in the distribution. http://fightingquaker.com/pyanno/ """ #from __future__ import with_statement imp...
36.323944
158
0.632338
3,466
0.089595
0
0
0
0
0
0
10,008
0.258705
e765459a83dd0305141cdf26d6934ff99915432e
495
py
Python
apps/batchResize.py
mshafiei/cvutils
5805229d8822a9ee4a3c63e060358aca96fe5338
[ "MIT" ]
2
2021-07-19T12:38:14.000Z
2021-11-01T21:30:36.000Z
apps/batchResize.py
mshafiei/cvgutils
ea93b3cb70a969c3b814f5a9f7672c6e00de5c61
[ "MIT" ]
null
null
null
apps/batchResize.py
mshafiei/cvgutils
ea93b3cb70a969c3b814f5a9f7672c6e00de5c61
[ "MIT" ]
null
null
null
import numpy as np import glob import cvgutils.Image as cvgim import os import tqdm indir = '/home/mohammad/Projects/NRV/dataset/envmaps/*.exr' outdir = '/home/mohammad/Projects/NRV/dataset/envmaps_512_1024' inimgs = glob.glob(indir) max16 = (2**16-1) for img in tqdm.tqdm(inimgs): im = cvgim.imread(img) im = cv...
30.9375
76
0.705051
0
0
0
0
0
0
0
0
156
0.315152
e765541ab914b48a4f43b07b88c06ff9c0e6465a
44
py
Python
cli/__init__.py
charlesreid1/dahak-taco
b7ab6d510f4989e495667c745c4dd818d1732823
[ "BSD-3-Clause" ]
null
null
null
cli/__init__.py
charlesreid1/dahak-taco
b7ab6d510f4989e495667c745c4dd818d1732823
[ "BSD-3-Clause" ]
null
null
null
cli/__init__.py
charlesreid1/dahak-taco
b7ab6d510f4989e495667c745c4dd818d1732823
[ "BSD-3-Clause" ]
1
2018-03-16T21:27:28.000Z
2018-03-16T21:27:28.000Z
_program = "taco" __version__ = "1.0.1beta"
14.666667
25
0.681818
0
0
0
0
0
0
0
0
17
0.386364
e765b119fb0c58069efcdb5bcbcb88dc12c714c8
257
py
Python
telegramtoken/settings/sample_config.py
kahihia/community
46d55d1029764b8d66278c930a9d574e7d1421d8
[ "MIT" ]
null
null
null
telegramtoken/settings/sample_config.py
kahihia/community
46d55d1029764b8d66278c930a9d574e7d1421d8
[ "MIT" ]
null
null
null
telegramtoken/settings/sample_config.py
kahihia/community
46d55d1029764b8d66278c930a9d574e7d1421d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- NODE_IP = '127.0.0.1' NODE_PORT = '9718' NODE_USER = 'testuser' NODE_PWD = 'testpassword' STREAM_SMART_LICENSE = 'Telegram-license' STREAM_SMART_LICENSE_ATTESTATION = 'Telegram-license-attestation' STREAM_ISCC = 'telegramTokenJar'
23.363636
65
0.750973
0
0
0
0
0
0
0
0
130
0.505837
e765fb3f3635f387b5b8188b7acfcdc41c6bffec
894
py
Python
test/test_substitution.py
corneliusroemer/pyro-cov
54e89d128293f9ff9e995c442f72fa73f5f99b76
[ "Apache-2.0" ]
22
2021-09-14T04:33:11.000Z
2022-02-01T21:33:05.000Z
test/test_substitution.py
corneliusroemer/pyro-cov
54e89d128293f9ff9e995c442f72fa73f5f99b76
[ "Apache-2.0" ]
7
2021-11-02T13:48:35.000Z
2022-03-23T18:08:35.000Z
test/test_substitution.py
corneliusroemer/pyro-cov
54e89d128293f9ff9e995c442f72fa73f5f99b76
[ "Apache-2.0" ]
6
2021-09-18T01:06:51.000Z
2022-01-10T02:22:06.000Z
# Copyright Contributors to the Pyro-Cov project. # SPDX-License-Identifier: Apache-2.0 import pyro.poutine as poutine import pytest import torch from pyro.infer.autoguide import AutoDelta from pyrocov.substitution import GeneralizedTimeReversible, JukesCantor69 @pytest.mark.parametrize("Model", [JukesCantor69, Gen...
29.8
77
0.694631
0
0
0
0
626
0.700224
0
0
93
0.104027
e7666c41475df3a201f3e9500fe80142589cab4b
438
py
Python
angr/engines/vex/expressions/unsupported.py
aeflores/angr
ac85a3f168375ed0ee20551b1b716c1bff4ac02b
[ "BSD-2-Clause" ]
1
2020-11-18T16:39:11.000Z
2020-11-18T16:39:11.000Z
angr/engines/vex/expressions/unsupported.py
aeflores/angr
ac85a3f168375ed0ee20551b1b716c1bff4ac02b
[ "BSD-2-Clause" ]
1
2019-04-08T12:10:07.000Z
2019-04-08T12:10:07.000Z
angr/engines/vex/expressions/unsupported.py
aeflores/angr
ac85a3f168375ed0ee20551b1b716c1bff4ac02b
[ "BSD-2-Clause" ]
1
2020-11-18T16:39:13.000Z
2020-11-18T16:39:13.000Z
import logging l = logging.getLogger(name=__name__) def SimIRExpr_Unsupported(_engine, state, expr): l.error("Unsupported IRExpr %s. Please implement.", type(expr).__name__) size = expr.result_size(state.scratch.tyenv) result = state.solver.Unconstrained(type(expr).__name__, size) state.history.add_ev...
39.818182
123
0.755708
0
0
0
0
0
0
0
0
82
0.187215
e766e365a4ab93717384f44001cba425202a3102
837
py
Python
modulo-1/exercicios/atividade_2_operadores_aritmeticos.py
giselemanuel/programa-Ifood-backend
d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7
[ "MIT" ]
3
2021-04-25T23:31:13.000Z
2021-04-26T16:59:12.000Z
modulo-1/exercicios/atividade_2_operadores_aritmeticos.py
giselemanuel/programa-Ifood-backend
d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7
[ "MIT" ]
null
null
null
modulo-1/exercicios/atividade_2_operadores_aritmeticos.py
giselemanuel/programa-Ifood-backend
d12544c30e2a26f7e2e2cd85df38a3f2c8860fe7
[ "MIT" ]
null
null
null
""" Programa VamoAI: Aluna: Gisele Rodrigues Manuel Atividade 1.3 Descrição do Execício 2: Criar um programa que: Some : 1024 por 2048, Multiplique: 1024 por 2048, Divida 2048 por 1024,Subtraia 1024 por 2048, executar print dos operadores aritméticos. """ #Definição das variáveis num1 = 1024 num2 = 2048 soma = num1 ...
27.9
162
0.685783
0
0
0
0
0
0
0
0
624
0.726426
e76743f69fad47d5de760eeb8b2c1a2dca1ce8fe
2,354
py
Python
scripts/sfuzz_data_retr.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
1
2021-04-01T09:33:58.000Z
2021-04-01T09:33:58.000Z
scripts/sfuzz_data_retr.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
2
2021-11-09T03:25:40.000Z
2021-11-09T06:23:45.000Z
scripts/sfuzz_data_retr.py
sunbeam891/Smart_contract_fuzzing
327873f562028fb3ea241fb0c1dc0f039e8c005d
[ "MIT" ]
null
null
null
#Script_sFuzz_data_retriever_v0.6 #format = python3 sfuzz_data_retr.py <filename> <contractname> <contracts_folder> import json import os from decimal import Decimal import sys from openpyxl import load_workbook import pandas as pd import coverage_json import vulnerabilities_json filename = sys.argv[1] Contractname = ...
39.898305
89
0.708581
0
0
0
0
0
0
0
0
554
0.235344
e76781753c0e4a869e70caddd34d8e8a1557bef1
5,090
py
Python
bifrost_whats_my_species/datadump.py
ssi-dk/bifrost_whats_my_species
fe59e8cf096b8622747278959d53a95c80bed9ad
[ "MIT" ]
null
null
null
bifrost_whats_my_species/datadump.py
ssi-dk/bifrost_whats_my_species
fe59e8cf096b8622747278959d53a95c80bed9ad
[ "MIT" ]
2
2020-11-13T13:46:11.000Z
2020-11-20T08:36:55.000Z
bifrost_whats_my_species/datadump.py
ssi-dk/bifrost-whats_my_species
fe59e8cf096b8622747278959d53a95c80bed9ad
[ "MIT" ]
null
null
null
from bifrostlib import common from bifrostlib.datahandling import Sample from bifrostlib.datahandling import SampleComponentReference from bifrostlib.datahandling import SampleComponent from bifrostlib.datahandling import Category from typing import Dict import os def extract_bracken_txt(species_detection: C...
57.840909
226
0.711591
0
0
0
0
0
0
0
0
1,131
0.2222
e76785635d525e1ea987b9fb10498fdb21db674e
627
py
Python
ex6-8.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
ex6-8.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
ex6-8.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
cristiano = { 'type': 'dog', 'owner': 'wei', } rose = { 'type': 'cat', 'owner': 'yan', } cloud = { 'type': 'pig', 'owner': 'luo', } pets = [cristiano, rose, cloud] for pet in pets: if pet == cristiano: print('\nCristiano: ' + '\n\ttype: ' + pet['type'] ...
20.225806
45
0.405104
0
0
0
0
0
0
0
0
219
0.349282
e769251e473b5f4b32970f5dbac6d06da53753e2
4,766
py
Python
dexy/filters/matrix.py
dexy/dexy
323c1806e51f75435e11d2265703e68f46c8aef3
[ "MIT" ]
136
2015-01-06T15:04:47.000Z
2021-12-21T22:52:41.000Z
dexy/filters/matrix.py
dexy/dexy
323c1806e51f75435e11d2265703e68f46c8aef3
[ "MIT" ]
13
2015-01-26T14:06:58.000Z
2020-03-27T21:16:10.000Z
dexy/filters/matrix.py
dexy/dexy
323c1806e51f75435e11d2265703e68f46c8aef3
[ "MIT" ]
34
2015-01-02T16:24:53.000Z
2021-11-27T05:38:30.000Z
from bs4 import BeautifulSoup from dexy.filters.api import ApiFilter import asyncio import json import mimetypes import markdown try: from nio import AsyncClient AVAILABLE = True except ImportError: AVAILABLE = False async def main_nio(homeserver, user, password, room_id, ext, mimetype, data_provider, con...
32.868966
134
0.536299
3,743
0.785355
0
0
0
0
789
0.165548
1,331
0.27927
e76a39929d3dba1cca55b2346b00be6b52fb4b66
880
py
Python
vera molnar/random_grids.py
jkocontreras/drawbotscripts
6688e65e057f25901ac1adb93c3108ab889de49f
[ "MIT" ]
null
null
null
vera molnar/random_grids.py
jkocontreras/drawbotscripts
6688e65e057f25901ac1adb93c3108ab889de49f
[ "MIT" ]
null
null
null
vera molnar/random_grids.py
jkocontreras/drawbotscripts
6688e65e057f25901ac1adb93c3108ab889de49f
[ "MIT" ]
null
null
null
import random # ---------------------- # settings pw = ph = 500 cell_a = 10 # amount of cells sbdvs = 3 # subdivisions gap = pw /(cell_a * sbdvs + cell_a + 1) cell_s = sbdvs * gap points = [(x * gap, y * gap) for x in range(sbdvs+1) for y in range(sbdvs+1) ] # ---------------------- # function(s) def a_grid_c...
19.555556
79
0.575
0
0
0
0
0
0
0
0
184
0.209091
e76a3be58b3e2fbe5929631298e3ee8bfa3c6f30
1,997
py
Python
tests/exercise5/lesson_5/exercise_6/hangman_clean.py
PONSASIKALA/signal-interpreter-server
2a0fad375768e0dca99b8e8cb4ef19e863d99007
[ "MIT" ]
null
null
null
tests/exercise5/lesson_5/exercise_6/hangman_clean.py
PONSASIKALA/signal-interpreter-server
2a0fad375768e0dca99b8e8cb4ef19e863d99007
[ "MIT" ]
null
null
null
tests/exercise5/lesson_5/exercise_6/hangman_clean.py
PONSASIKALA/signal-interpreter-server
2a0fad375768e0dca99b8e8cb4ef19e863d99007
[ "MIT" ]
null
null
null
# pylint: disable=missing-function-docstring ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" def get_display_word(secret_word): display_word = [] for i in range(len(secret_word)): if secret_word[i] in ALPHABET: display_word.append("_") else: display_word.append(secr...
27.356164
79
0.620431
0
0
0
0
0
0
0
0
389
0.194792
e76c2081bccf726a610c27def463e58a09b8c81d
21,136
py
Python
utlz/__init__.py
theno/utlz
bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389
[ "MIT" ]
2
2018-10-29T18:35:12.000Z
2019-01-14T12:56:15.000Z
utlz/__init__.py
Bhanditz/utlz
bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389
[ "MIT" ]
null
null
null
utlz/__init__.py
Bhanditz/utlz
bf7d2b53f3e0d35c6f8ded81f3f774a74fcd3389
[ "MIT" ]
1
2019-01-14T11:11:32.000Z
2019-01-14T11:11:32.000Z
# -*- coding: utf-8 -*- import collections import functools import gzip import json import inspect import os.path import shutil import sys import struct import time from functools import wraps from utlz._version import __version__ # inspired by: http://stackoverflow.com/a/6618825 def flo(string): '''Return the s...
31.879336
86
0.58909
1,400
0.066235
0
0
1,445
0.068364
0
0
8,814
0.416994
e76c656e6c74af8f2d56825e23cd387e36aeef31
401
py
Python
dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGeometryDataResponse.py
srcarter3/python-awips
d981062662968cf3fb105e8e23d955950ae2497e
[ "BSD-3-Clause" ]
33
2016-03-17T01:21:18.000Z
2022-02-08T10:41:06.000Z
dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGeometryDataResponse.py
srcarter3/python-awips
d981062662968cf3fb105e8e23d955950ae2497e
[ "BSD-3-Clause" ]
15
2016-04-19T16:34:08.000Z
2020-09-09T19:57:54.000Z
dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGeometryDataResponse.py
Unidata/python-awips
8459aa756816e5a45d2e5bea534d23d5b1dd1690
[ "BSD-3-Clause" ]
20
2016-03-12T01:46:58.000Z
2022-02-08T06:53:22.000Z
class GetGeometryDataResponse(object): def __init__(self): self.geometryWKBs = None self.geoData = None def getGeometryWKBs(self): return self.geometryWKBs def setGeometryWKBs(self, geometryWKBs): self.geometryWKBs = geometryWKBs def getGeoData(self): return...
20.05
44
0.663342
398
0.992519
0
0
0
0
0
0
0
0
e76c666397b985650186328fae42e70cb9a10b72
1,835
py
Python
distiller/core/Distiller.py
darkclouder/distiller
a8efbfd807d781b90daba6023e3f966a52836b42
[ "BSD-2-Clause" ]
3
2018-07-18T14:41:00.000Z
2020-10-30T13:26:26.000Z
distiller/core/Distiller.py
darkclouder/distiller
a8efbfd807d781b90daba6023e3f966a52836b42
[ "BSD-2-Clause" ]
1
2018-07-19T08:23:09.000Z
2018-07-19T08:23:09.000Z
distiller/core/Distiller.py
darkclouder/distiller
a8efbfd807d781b90daba6023e3f966a52836b42
[ "BSD-2-Clause" ]
null
null
null
import os from distiller.core.impl.HttpServer import HttpServer from distiller.core.impl.CoreHandler import CoreHandler class Distiller: def __init__(self, env): self.env = env self.logger = self.env.logger.claim("Core") self.shutdown = False self.srv = HttpServer(CoreHandler(), ...
27.38806
81
0.541144
1,711
0.932425
0
0
0
0
0
0
384
0.209264
e76ddf3376b76bafc19cbf52b3ad8126a2980c57
2,491
py
Python
nora10/mylakeinitpar.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
nora10/mylakeinitpar.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
nora10/mylakeinitpar.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
import numpy as np import os depth_resolution = 0.1 # metre def mylakeinit(max_depth, area): '''max_depth: m, area: m2. returns string to be written to an init file of MyLake assumes a cone shaped bathymetry curve''' depth_levels = np.arange(0, max_depth, depth_resolution) if not max_depth i...
31.531646
172
0.653954
0
0
0
0
0
0
0
0
1,819
0.730229
e76ef4520136e84bfa60de421094e1c1499594a2
5,854
py
Python
StratLearner/run_PreTrain.py
cdslabamotong/stratLearner
58f278d438eed92683a7daac2605ec39abd18c94
[ "MIT" ]
7
2020-12-02T06:58:30.000Z
2022-03-04T01:21:59.000Z
StratLearner/run_PreTrain.py
dm-ytlds/stratLearner
3ad880a5ca0472a3a5823fa27db7dd2bc8ba0f33
[ "MIT" ]
null
null
null
StratLearner/run_PreTrain.py
dm-ytlds/stratLearner
3ad880a5ca0472a3a5823fa27db7dd2bc8ba0f33
[ "MIT" ]
1
2020-12-02T06:58:32.000Z
2020-12-02T06:58:32.000Z
""" ============================== StratLearner Training ============================== """ import numpy as np from one_slack_ssvm import OneSlackSSVM from stratLearner import (StratLearn, Utils, InputInstance) import multiprocessing import argparse import os import sys from datetime import datetime class Object(obje...
29.27
178
0.686197
30
0.005125
0
0
0
0
0
0
1,152
0.196789
e76f72134d51ed0f47cafe05a038eba895df8c92
2,059
py
Python
chapter10/mech.py
NetworkRanger/python-core
f0aa2c4ce0665e559e85aef04c40c42164cd838a
[ "MIT" ]
1
2018-12-29T15:32:06.000Z
2018-12-29T15:32:06.000Z
chapter10/mech.py
NetworkRanger/python-core
f0aa2c4ce0665e559e85aef04c40c42164cd838a
[ "MIT" ]
null
null
null
chapter10/mech.py
NetworkRanger/python-core
f0aa2c4ce0665e559e85aef04c40c42164cd838a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: NetworkRanger # Date: 2019/8/11 9:39 AM from BeautifulSoup import BeautifulSoup, SoupStrainer from mechanize import Browser BS = lambda page: page YOUR_LOGIN = '' YOUR_PASSWD = '' br = Browser() # home page rsp = br.open('http://us.pycon.org/2011/home/') print...
30.731343
99
0.685284
0
0
0
0
0
0
0
0
1,047
0.508499
e77025bb43131ecd54379f02fd5583a531b73916
581
py
Python
Assignment2/2-1/lib/session.py
Computer-Science-Lecture/ITE2038
3436ab4598e7ace334952156fa7a56b3124b5557
[ "MIT" ]
null
null
null
Assignment2/2-1/lib/session.py
Computer-Science-Lecture/ITE2038
3436ab4598e7ace334952156fa7a56b3124b5557
[ "MIT" ]
null
null
null
Assignment2/2-1/lib/session.py
Computer-Science-Lecture/ITE2038
3436ab4598e7ace334952156fa7a56b3124b5557
[ "MIT" ]
1
2018-09-07T01:47:09.000Z
2018-09-07T01:47:09.000Z
from lib.permission import Permission class Session(object): def __init__(self, user: int, permission: Permission): self.user = user self.permission = permission @property def isAdmin(self) -> bool: return self.permission == Permission.admin def require(): def wrapper(...
27.666667
58
0.567986
541
0.931153
0
0
285
0.490534
0
0
18
0.030981
e771901cac33122ea8a46bf698c48b3de96e015e
886
py
Python
nvic.py
dhylands/upy-examples
90cca32f0c6c65c33967da9ac1a998e731c60d91
[ "MIT" ]
78
2015-01-15T23:24:21.000Z
2022-02-25T09:24:58.000Z
nvic.py
dhylands/upy-examples
90cca32f0c6c65c33967da9ac1a998e731c60d91
[ "MIT" ]
1
2015-02-04T00:51:52.000Z
2015-02-04T00:51:52.000Z
nvic.py
dhylands/upy-examples
90cca32f0c6c65c33967da9ac1a998e731c60d91
[ "MIT" ]
26
2015-02-03T21:26:33.000Z
2022-02-21T02:57:46.000Z
import machine SCS = 0xE000E000 SCB = SCS + 0x0D00 NVIC = SCS + 0x0100 VTOR = SCB + 0x08 SCB_SHP = SCB + 0x18 NVIC_PRIO = NVIC + 0x300 def dump_nvic(): print('NVIC_PRIO = {:08x} @ {:08x}'.format(machine.mem32[NVIC_PRIO], NVIC_PRIO)) print('VTOR = {:08x} @ {:08x}'.format(machine.mem32[VTOR], VTOR)) ...
23.945946
84
0.546275
0
0
0
0
0
0
0
0
109
0.123025
e772c6aaf22ad97381e12d6d2154f737e40ff951
9,152
py
Python
trimesh/primitives.py
maganrobotics/UR3e-manipulation
ceaf650b1a811d0bfc3baf175d353fc7f4a33522
[ "MIT" ]
null
null
null
trimesh/primitives.py
maganrobotics/UR3e-manipulation
ceaf650b1a811d0bfc3baf175d353fc7f4a33522
[ "MIT" ]
null
null
null
trimesh/primitives.py
maganrobotics/UR3e-manipulation
ceaf650b1a811d0bfc3baf175d353fc7f4a33522
[ "MIT" ]
null
null
null
import numpy as np from . import util from . import points from . import creation from .base import Trimesh from .constants import log from .triangles import windings_aligned class Primitive(Trimesh): ''' Geometric primitives which are a subclass of Trimesh. Mesh is generated lazily when vertices...
33.52381
87
0.605114
8,959
0.978912
0
0
4,096
0.447552
0
0
2,324
0.253934
e7742de3e4510356f7231d426f247a622c865b21
1,923
py
Python
discordbot.py
asamii0006/discordpy-startup
3a14a4155373fff96067954e85ad64658e4bbbf5
[ "MIT" ]
null
null
null
discordbot.py
asamii0006/discordpy-startup
3a14a4155373fff96067954e85ad64658e4bbbf5
[ "MIT" ]
null
null
null
discordbot.py
asamii0006/discordpy-startup
3a14a4155373fff96067954e85ad64658e4bbbf5
[ "MIT" ]
null
null
null
from discord.ext import commands import os import traceback bot = commands.Bot(command_prefix='/') token = os.environ['DISCORD_BOT_TOKEN'] @bot.event async def on_command_error(ctx, error): orig_error = getattr(error, "original", error) error_msg = ''.join(traceback.TracebackException.from_exception(orig_err...
22.103448
89
0.651586
0
0
0
0
560
0.270662
506
0.244563
378
0.182697
e7765cf07995f7e47b792bf00a9c30793c228c4a
1,604
py
Python
filling/parse/ex.py
nvxden/flask-films
038f4bcaa7feabdfff7662fb1048bf48515e5c26
[ "MIT" ]
null
null
null
filling/parse/ex.py
nvxden/flask-films
038f4bcaa7feabdfff7662fb1048bf48515e5c26
[ "MIT" ]
null
null
null
filling/parse/ex.py
nvxden/flask-films
038f4bcaa7feabdfff7662fb1048bf48515e5c26
[ "MIT" ]
null
null
null
import asyncio as aio import os import re from aiohttp import ClientSession from pageloader import LoadPageTask, PageLoader from nvxlira import Lira from nvxaex import Executor ############################################################ # class class LoadPage(LoadPageTask): def __str__(self): retur...
20.831169
93
0.545511
72
0.044888
0
0
0
0
204
0.127182
750
0.467581
e776bec5c2d6010767a894ee51a22e9c4a498c74
5,803
py
Python
Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2019 ControlScan, Inc. # # This file is part of Cyphon Engine. # # Cyphon Engine is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # Cyphon En...
33.16
85
0.697398
4,485
0.772876
0
0
0
0
0
0
2,750
0.473893
e77801f926d4f34148ef7757e8d2132f28e45ad4
2,228
py
Python
download snipets.py
alxcord/my_public_scripts
856decd73afe869b68095d5ab21d32ea261d872f
[ "Apache-2.0" ]
null
null
null
download snipets.py
alxcord/my_public_scripts
856decd73afe869b68095d5ab21d32ea261d872f
[ "Apache-2.0" ]
null
null
null
download snipets.py
alxcord/my_public_scripts
856decd73afe869b68095d5ab21d32ea261d872f
[ "Apache-2.0" ]
null
null
null
import urllib.request ... url = 'http://example.com/' response = urllib.request.urlopen(url) data = response.read() # a `bytes` object text = data.decode('utf-8') # a `str`; this step can't be used if data is binary import urllib.request import gzip ... # Read the first 64 bytes of the file inside t...
25.318182
144
0.670108
0
0
0
0
0
0
0
0
786
0.352783
e77966df213ba660b9ceebdaefcb943c9ce395a4
33,959
py
Python
wavespin/scattering1d/utils.py
OverLordGoldDragon/dev_tg
1e06b89c1b0b5e95d9c53fda2efd02e41f708718
[ "MIT" ]
2
2020-03-28T05:37:34.000Z
2020-09-17T20:02:21.000Z
wavespin/scattering1d/utils.py
OverLordGoldDragon/dev_tg
1e06b89c1b0b5e95d9c53fda2efd02e41f708718
[ "MIT" ]
2
2020-06-02T17:52:53.000Z
2020-09-18T00:46:34.000Z
wavespin/scattering1d/utils.py
OverLordGoldDragon/dev_tg
1e06b89c1b0b5e95d9c53fda2efd02e41f708718
[ "MIT" ]
1
2020-06-02T17:52:24.000Z
2020-06-02T17:52:24.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2022- John Muradeli # # Distributed under the terms of the MIT License # (see wavespin/__init__.py for details) # ----------------------------------------------------------------------------- import n...
40.427381
83
0.55835
0
0
0
0
0
0
0
0
15,007
0.441915
e77ae9d82735c469e3ecb3a79c3b10547249e4e0
350
py
Python
Demo/Demo_gym/envs/classic_control/__init__.py
Remosy/iceHocekeyIRL
1ffeaf8a9bd9585038629be41a2da552e0a4473b
[ "MIT" ]
null
null
null
Demo/Demo_gym/envs/classic_control/__init__.py
Remosy/iceHocekeyIRL
1ffeaf8a9bd9585038629be41a2da552e0a4473b
[ "MIT" ]
3
2019-03-09T02:35:24.000Z
2019-09-27T11:05:01.000Z
Demo/Demo_gym/envs/classic_control/__init__.py
Remosy/iceHocekeyIRL
1ffeaf8a9bd9585038629be41a2da552e0a4473b
[ "MIT" ]
null
null
null
from Demo_gym.envs.classic_control.cartpole import CartPoleEnv from Demo_gym.envs.classic_control.mountain_car import MountainCarEnv from Demo_gym.envs.classic_control.continuous_mountain_car import Continuous_MountainCarEnv from Demo_gym.envs.classic_control.pendulum import PendulumEnv from Demo_gym.envs.classic_contr...
50
91
0.897143
0
0
0
0
0
0
0
0
0
0
e77bc1533880b4a66753674e008ece8b99afe6f5
3,959
py
Python
google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py
bonifacyj/datacatalog-connectors-message-brokers
0f72c800ebf1e570b638a0ad930d48e9dc44a25e
[ "Apache-2.0" ]
1
2021-04-30T22:52:41.000Z
2021-04-30T22:52:41.000Z
google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py
bonifacyj/datacatalog-connectors-message-brokers
0f72c800ebf1e570b638a0ad930d48e9dc44a25e
[ "Apache-2.0" ]
2
2020-10-01T14:24:12.000Z
2020-11-12T16:40:01.000Z
google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py
bonifacyj/datacatalog-connectors-message-brokers
0f72c800ebf1e570b638a0ad930d48e9dc44a25e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
42.569892
79
0.717605
3,003
0.758525
0
0
3,080
0.777974
0
0
988
0.249558
e77c7c1bc1c9242cd9b4a6f6bef09a3ab1d3884c
731
py
Python
_unittests/ut_datasource/test_geodata.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
28
2015-07-19T21:20:51.000Z
2022-02-16T11:50:53.000Z
_unittests/ut_datasource/test_geodata.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
34
2015-06-16T15:38:25.000Z
2021-12-29T11:04:01.000Z
_unittests/ut_datasource/test_geodata.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
27
2015-01-13T08:24:22.000Z
2022-03-31T14:51:23.000Z
""" @brief test log(time=3s) """ import unittest from pyquickhelper.pycode import ExtTestCase, get_temp_folder from pyensae.datasource import load_french_departements class TestGeoData(ExtTestCase): def test_load_french_departements(self): temp = get_temp_folder(__file__, "temp_load_french_departeme...
31.782609
92
0.670315
507
0.69357
0
0
0
0
0
0
206
0.281806
e77e265dab3efd07cc86c0fb9a999b719d05fb9d
1,053
py
Python
openfe/setup/methods/base.py
OpenFreeEnergy/openfe
f2423ed2e4444a0824ff9b560e23b420c4997c6f
[ "MIT" ]
14
2022-01-24T22:01:19.000Z
2022-03-31T04:58:35.000Z
openfe/setup/methods/base.py
OpenFreeEnergy/openfe
f2423ed2e4444a0824ff9b560e23b420c4997c6f
[ "MIT" ]
109
2022-01-24T18:57:05.000Z
2022-03-31T20:13:07.000Z
openfe/setup/methods/base.py
OpenFreeEnergy/openfe
f2423ed2e4444a0824ff9b560e23b420c4997c6f
[ "MIT" ]
4
2022-01-24T18:45:54.000Z
2022-02-21T06:28:24.000Z
# This code is part of OpenFE and is licensed under the MIT license. # For details, see https://github.com/OpenFreeEnergy/openfe import abc from openff.toolkit.utils.serialization import Serializable class FEMethod(abc.ABC): """Base class for defining a free energy method Child classes must implement: -...
27
71
0.660019
849
0.806268
0
0
461
0.437797
0
0
696
0.660969
e77e4dc700080418326c39439db7328ed34301f1
3,351
py
Python
miscellaneous_server_test/time_distribution/time_distribution.py
gellens/Master_thesis_JAQ_code
034de9d7883c0d81564f975405c8985aa4b4d428
[ "MIT" ]
null
null
null
miscellaneous_server_test/time_distribution/time_distribution.py
gellens/Master_thesis_JAQ_code
034de9d7883c0d81564f975405c8985aa4b4d428
[ "MIT" ]
null
null
null
miscellaneous_server_test/time_distribution/time_distribution.py
gellens/Master_thesis_JAQ_code
034de9d7883c0d81564f975405c8985aa4b4d428
[ "MIT" ]
1
2020-03-05T14:09:01.000Z
2020-03-05T14:09:01.000Z
# import matplotlib # import statsmodels as sm # import scipy.stats as st # import pandas as pd # import warnings import json import os from scipy.stats import gamma from scipy.stats import lognorm from scipy.stats import pareto from scipy.stats import norm import numpy as np import matplotlib.pyplot as plt def warm...
31.027778
175
0.63026
0
0
0
0
0
0
0
0
888
0.264996
e77f1fd0092c945c3470861a6d81a4b28e40b56f
422
py
Python
phasma_food_v2/devices/admin.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
phasma_food_v2/devices/admin.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
phasma_food_v2/devices/admin.py
VizLoreLabs/phasmaFoodPlatform
02c811c9178f338e081efbeacadb37c766dcb2db
[ "Apache-1.1" ]
null
null
null
from django.contrib import admin from .models import PhasmaDevice @admin.register(PhasmaDevice) class PhasmaDeviceAdmin(admin.ModelAdmin): list_display = ("mac", "name", "date_added") fieldsets = ( ("Info", {"fields": ("mac", "name")}), ("Date added/updated", {"fields": ("date_added", "date_u...
28.133333
74
0.64455
322
0.763033
0
0
352
0.834123
0
0
141
0.334123
e77f4dac26b5f08c981a363bf893116d6ff184f3
1,400
py
Python
scripts/af_assemblyPrep.py
aaronfang/small-Scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
1
2018-03-08T16:34:00.000Z
2018-03-08T16:34:00.000Z
scripts/af_assemblyPrep.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
scripts/af_assemblyPrep.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
import pymel.core as pm # Step1: # Select top group node. Run the following.It will generate a locator. # Send to the current group pivot position. # You can position the locator where you want to represent the final pivot position. curSel = pm.ls(sl=True,type='transform')[0] trans = pm.xform(curSel,ws=1,piv=1,q=1) r...
33.333333
95
0.702857
0
0
0
0
0
0
0
0
507
0.362143
e77fe1c595ad1068d9142dbaa9c92e34b2d27d6a
3,270
py
Python
util/vis_tool.py
LiderMyHand/AWR-Adaptive-Weighting-Regression
81c4c98edd98cd03d423d820ca1fe9e01dbbb242
[ "MIT" ]
90
2020-03-16T15:18:57.000Z
2022-03-16T10:02:52.000Z
util/vis_tool.py
LiderMyHand/AWR-Adaptive-Weighting-Regression
81c4c98edd98cd03d423d820ca1fe9e01dbbb242
[ "MIT" ]
16
2020-05-01T03:11:44.000Z
2021-12-14T13:03:38.000Z
util/vis_tool.py
LiderMyHand/AWR-Adaptive-Weighting-Regression
81c4c98edd98cd03d423d820ca1fe9e01dbbb242
[ "MIT" ]
16
2020-05-21T09:07:04.000Z
2022-02-22T13:00:19.000Z
import os.path as osp import matplotlib.pyplot as plt import numpy as np import cv2 class VisualUtil: def __init__(self, dataset): self.dataset = dataset # RED BGR self.color_pred = [(0,0,102), (0,0,179), (0,0,255), (77,77,255), (153,153,255)] # self.color_pred = ['#660000', '#b300...
39.39759
89
0.410092
3,180
0.972477
0
0
0
0
0
0
191
0.05841
e7808d26b562a5ddeb70cd3327c78d41fcdc891d
1,113
py
Python
lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py
cloudscale-ch/exabgp
55ee496dfbc3fce75c5107fae7a7d38567154d46
[ "BSD-3-Clause" ]
1
2019-06-25T20:49:37.000Z
2019-06-25T20:49:37.000Z
lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py
nembery/exabgp
53cfff843ddde33bf1c437a1c4ce99de20c6bade
[ "BSD-3-Clause" ]
null
null
null
lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py
nembery/exabgp
53cfff843ddde33bf1c437a1c4ce99de20c6bade
[ "BSD-3-Clause" ]
1
2020-07-23T16:52:51.000Z
2020-07-23T16:52:51.000Z
# encoding: utf-8 """ mac_mobility.py Created by Anton Aksola on 2018-11-03 """ from struct import pack from struct import unpack from exabgp.bgp.message.update.attribute.community.extended import ExtendedCommunity # ================================================================== MacMobility # RFC 7432 Section 7...
22.26
84
0.666667
759
0.681941
0
0
787
0.707098
0
0
244
0.219227
e780d9438e176381d9f02f6add14e1524a0e07ab
867
py
Python
aprendizado/udemy/03_desafio_POO/main.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
aprendizado/udemy/03_desafio_POO/main.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
aprendizado/udemy/03_desafio_POO/main.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
from banco import Banco from cliente import Cliente from conta import ContaCorrente, ContaPoupanca banco = Banco() cliente1 = Cliente('Luiz', 30) cliente2 = Cliente('Maria', 18) cliente3 = Cliente('João', 50) conta1 = ContaPoupanca(1111, 254136, 0) conta2 = ContaCorrente(2222, 254137, 0) conta3 = ContaPoupanca(1212,...
22.815789
46
0.734717
0
0
0
0
0
0
0
0
108
0.124138
e781cdbe0452060897cb4aa77bea0b37fe424f36
386
py
Python
detection_tf/scripts/stuff/node_finder.py
hywel1994/SARosPerceptionKitti
82c307facb5b39e47c510fbdb132962cebf09d2e
[ "MIT" ]
5
2019-01-17T03:08:41.000Z
2021-10-31T17:02:11.000Z
detection_tf/scripts/stuff/node_finder.py
hywel1994/SARosPerceptionKitti
82c307facb5b39e47c510fbdb132962cebf09d2e
[ "MIT" ]
11
2020-02-05T00:36:38.000Z
2020-05-31T23:20:21.000Z
detection_tf/scripts/stuff/node_finder.py
hywel1994/SARosPerceptionKitti
82c307facb5b39e47c510fbdb132962cebf09d2e
[ "MIT" ]
4
2018-11-02T09:57:59.000Z
2021-04-27T01:20:04.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Jan 11 15:58:42 2018 @author: gustav """ import tensorflow as tf NODE_OPS = ['Placeholder','Identity'] MODEL_FILE = '../models/ssd_mobilenet_v11_coco/frozen_inference_graph.pb' gf = tf.GraphDef() gf.ParseFromString(open(MODEL_FILE,'rb').read()) prin...
21.444444
73
0.681347
0
0
0
0
0
0
0
0
196
0.507772
e78557afcf99f289bebfa26454aa02ac75ba1622
1,483
py
Python
Clustering_Algorithms/create_chart.py
NikhilGupta1997/Data-Mining-Algorithms
56c9acca3d4f62b72e0ec22e150421eaee2dc850
[ "MIT" ]
7
2018-12-25T07:52:51.000Z
2021-05-17T23:53:18.000Z
Clustering_Algorithms/create_chart.py
NikhilGupta1997/Data-Mining-Algorithms
56c9acca3d4f62b72e0ec22e150421eaee2dc850
[ "MIT" ]
null
null
null
Clustering_Algorithms/create_chart.py
NikhilGupta1997/Data-Mining-Algorithms
56c9acca3d4f62b72e0ec22e150421eaee2dc850
[ "MIT" ]
null
null
null
import numpy as np import sys import matplotlib.pyplot as plt file = 'optics.txt' minpts = int(sys.argv[1]) epsilon = float(sys.argv[2]) X = [] Y = [] cluster_inds = [] inds = [] noise = [] buff = [] counter = 0 for i, line in enumerate(open(file).readlines()): counter += 1 val = line.strip().split() idx = int(va...
20.315068
94
0.631153
0
0
0
0
0
0
0
0
224
0.151045
e785fb58d580cc912f9ca3247c8aec7176d88b83
1,087
py
Python
setup.py
yudevan/django-indonesia-regions
5c01798c534e101115a1c943d13c6caa78897e01
[ "MIT" ]
5
2016-06-26T15:18:14.000Z
2020-09-25T06:22:35.000Z
setup.py
yudevan/django-indonesia-regions
5c01798c534e101115a1c943d13c6caa78897e01
[ "MIT" ]
5
2017-10-26T04:01:02.000Z
2021-02-03T04:34:11.000Z
setup.py
yudevan/django-indonesia-regions
5c01798c534e101115a1c943d13c6caa78897e01
[ "MIT" ]
7
2016-06-26T07:04:49.000Z
2021-02-02T13:41:02.000Z
import os from setuptools import find_packages, setup # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-indonesia-regions', version='1.0.6', packages=find_packages(), include_package_data=True, license='MIT ...
33.96875
97
0.651334
0
0
0
0
0
0
0
0
646
0.594296
e78630157ef111fb5facf453b100529fad826536
370
py
Python
objectModel/Python/cdm/enums/cdm_incremental_partition_type.py
Microsoft/CDM
7ea59264d661356ca1b44c31a352753928d08b5f
[ "CC-BY-4.0", "MIT" ]
265
2018-03-04T04:47:50.000Z
2019-05-06T13:31:18.000Z
objectModel/Python/cdm/enums/cdm_incremental_partition_type.py
Microsoft/CDM
7ea59264d661356ca1b44c31a352753928d08b5f
[ "CC-BY-4.0", "MIT" ]
39
2018-03-21T16:57:12.000Z
2019-05-06T17:30:23.000Z
objectModel/Python/cdm/enums/cdm_incremental_partition_type.py
Microsoft/CDM
7ea59264d661356ca1b44c31a352753928d08b5f
[ "CC-BY-4.0", "MIT" ]
75
2018-03-09T20:33:13.000Z
2019-05-05T06:55:43.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from enum import Enum class CdmIncrementalPartitionType(Enum): NONE = 'None' INSERT = 'Insert' UPDATE = 'Update' DELETE = 'Delete' UPSERT = 'U...
24.666667
94
0.716216
188
0.508108
0
0
0
0
0
0
208
0.562162
e7868823ca8a161623e547b6d7f6127e53f6a1db
534
py
Python
app/back/mongo/data/collect/maps/mongo.py
jgphilpott/polyplot
c46861174ee5881dadffbfb2278d555462523547
[ "MIT" ]
5
2021-05-17T14:17:14.000Z
2021-12-14T12:54:32.000Z
app/back/mongo/data/collect/maps/mongo.py
jgphilpott/iGraph
2a91ba57e4950856a83d3a109753f8f2badee829
[ "MIT" ]
8
2020-02-09T02:48:41.000Z
2021-05-16T04:57:02.000Z
app/back/mongo/data/collect/maps/mongo.py
jgphilpott/iGraph
2a91ba57e4950856a83d3a109753f8f2badee829
[ "MIT" ]
2
2016-09-12T03:48:16.000Z
2019-05-04T14:15:19.000Z
from back.mongo.data.collect.ions import find_collection from back.mongo.data.collect.maps.model import Map def find_map(query={}, filter={"_id": 0}, detail="micro"): collection = find_collection("maps_" + detail) return dict(collection.find_one(query, filter)) def find_maps(query={}, filter={"_id": 0}, sor...
31.411765
99
0.713483
0
0
0
0
0
0
0
0
55
0.102996
e786a7b6d7533638ac5bb296afe211e365fb9e28
7,727
py
Python
test/unitTest/arg_test.py
alljoyn/devtools-codegen
388cac15e584dce3040d5090e8f627e5360e5c0f
[ "0BSD" ]
null
null
null
test/unitTest/arg_test.py
alljoyn/devtools-codegen
388cac15e584dce3040d5090e8f627e5360e5c0f
[ "0BSD" ]
null
null
null
test/unitTest/arg_test.py
alljoyn/devtools-codegen
388cac15e584dce3040d5090e8f627e5360e5c0f
[ "0BSD" ]
null
null
null
# Copyright AllSeen Alliance. All rights reserved. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
39.423469
75
0.640481
6,802
0.88029
0
0
0
0
0
0
1,877
0.242914
e78723495183f0fe8aa489d98c4605dbae6178f0
914
py
Python
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
18
2021-11-29T06:43:46.000Z
2022-03-29T09:58:32.000Z
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
null
null
null
nlpatl/sampling/uncertainty/least_confidence.py
dumpmemory/nlpatl
59209242d1ac26714b11b86261070ac50cc90432
[ "MIT" ]
1
2021-11-29T06:43:47.000Z
2021-11-29T06:43:47.000Z
from typing import Tuple import numpy as np from nlpatl.sampling import Sampling class LeastConfidenceSampling(Sampling): """ Sampling data points according to the least confidence. Pick the lowest probabilies for the highest class. https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1...
30.466667
132
0.659737
822
0.899344
0
0
0
0
0
0
341
0.373085
e787bcef0fe3c055b3e9f9ae08c31b576c247a87
2,376
py
Python
random_video.py
enriqueav/the_random_video
0dbeef2efbbad33351fd106b16095b4bb3ed8821
[ "MIT" ]
1
2020-11-07T17:15:27.000Z
2020-11-07T17:15:27.000Z
random_video.py
enriqueav/the_random_video
0dbeef2efbbad33351fd106b16095b4bb3ed8821
[ "MIT" ]
null
null
null
random_video.py
enriqueav/the_random_video
0dbeef2efbbad33351fd106b16095b4bb3ed8821
[ "MIT" ]
null
null
null
import argparse import time from taor.randomvideo import random_video if __name__ == "__main__": parser = argparse.ArgumentParser( description='Create random videos. The --seed argument can be used to generate' 'consistent results. By default the name of the video will contain the epoch...
44.830189
97
0.513889
0
0
0
0
0
0
0
0
828
0.348485
e787dc94ca4111ab33a1d29a9785aad5e480ebdf
2,524
py
Python
src/leetcode_1743_restore_the_array_from_adjacent_pairs.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_1743_restore_the_array_from_adjacent_pairs.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_1743_restore_the_array_from_adjacent_pairs.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 1743 python3 # [1743] Restore the Array From Adjacent Pairs # Difficulty: Medium # https://leetcode.com/problems/restore-the-array-from-adjacent-pairs # # There is an integer array nums that consists of n unique elements,but you have forgotten it.However, # you do remember every pair of adjacent elements in nums...
30.409639
106
0.638669
881
0.349049
0
0
0
0
0
0
1,483
0.587559
e789b7eb8d4c8742185f24806004dfff92a4a404
1,449
py
Python
timetable/timetable.py
Huy-Ngo/usth-timetable-2
d9f653ee2cb138b075c7c630b6f8be08d959cb08
[ "MIT" ]
null
null
null
timetable/timetable.py
Huy-Ngo/usth-timetable-2
d9f653ee2cb138b075c7c630b6f8be08d959cb08
[ "MIT" ]
null
null
null
timetable/timetable.py
Huy-Ngo/usth-timetable-2
d9f653ee2cb138b075c7c630b6f8be08d959cb08
[ "MIT" ]
null
null
null
import datetime from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for, session ) from werkzeug.exceptions import abort from timetable.student_auth import login_required from . import db, updater bp = Blueprint('timetable', __name__) @bp.route('/', methods=['GET']) def index(): user...
30.1875
124
0.73844
0
0
0
0
1,172
0.808834
0
0
368
0.253968
e78c94bb5cf3e2d928816be2ee0ebeb373a52cb8
4,912
py
Python
apps/sepa/tests/integration.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
7
2015-01-02T19:31:14.000Z
2021-03-22T17:30:23.000Z
apps/sepa/tests/integration.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
1
2015-03-06T08:34:59.000Z
2015-03-06T08:34:59.000Z
apps/sepa/tests/integration.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
null
null
null
import os import unittest import decimal from lxml import etree from apps.sepa.sepa import SepaAccount, SepaDocument from .base import SepaXMLTestMixin class ExampleXMLTest(SepaXMLTestMixin, unittest.TestCase): """ Attempt to test recreating an example XML file """ def setUp(self): super(ExampleXML...
31.896104
107
0.578583
4,752
0.967427
0
0
0
0
0
0
1,448
0.294788
e78d0b3c483bba3574b16e118dcb9461ba02bf95
2,992
py
Python
freeflow/core/tests/dag.py
enorha/freeflow
5b655ce616d408e566b0b900f96b24804dc49578
[ "Apache-2.0" ]
1
2021-11-19T08:48:00.000Z
2021-11-19T08:48:00.000Z
freeflow/core/tests/dag.py
enorha/freeflow
5b655ce616d408e566b0b900f96b24804dc49578
[ "Apache-2.0" ]
1
2022-01-06T23:11:02.000Z
2022-01-06T23:11:02.000Z
freeflow/core/tests/dag.py
enorha/freeflow
5b655ce616d408e566b0b900f96b24804dc49578
[ "Apache-2.0" ]
2
2021-11-19T08:51:35.000Z
2021-12-24T14:39:00.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest import freeflow.core.tests from airflow import models as af_models class DagTest(unittest.TestCase): @classmethod def setUpClass(cls): cls._dag_files = freeflow.core.tests.dag_files def test_dag_integrity(self): def check_valid...
31.829787
98
0.531417
2,813
0.940174
0
0
92
0.030749
0
0
1,284
0.429144
e78d767af998e6e80008e8c991011efc8624eff7
1,429
py
Python
pingdomexport/tests/load/test_checks_output.py
mattboston/pingdomexport
1cd7acbf813abee0b9a7865b9cd4a1e166d55c37
[ "MIT" ]
4
2018-01-25T09:18:38.000Z
2021-02-12T18:36:08.000Z
pingdomexport/tests/load/test_checks_output.py
mattboston/pingdomexport
1cd7acbf813abee0b9a7865b9cd4a1e166d55c37
[ "MIT" ]
1
2018-12-04T18:42:06.000Z
2021-05-25T14:03:32.000Z
pingdomexport/tests/load/test_checks_output.py
mattboston/pingdomexport
1cd7acbf813abee0b9a7865b9cd4a1e166d55c37
[ "MIT" ]
3
2019-04-30T11:52:14.000Z
2021-03-24T20:58:04.000Z
from pingdomexport.load import checks_output class TestOutput: def test_load(self, capsys): checks_output.Output().load( [ { 'hostname': 'www.a.com', 'use_legacy_notifications': True, 'lastresponsetime': 411, ...
34.853659
152
0.401679
1,382
0.96711
0
0
0
0
0
0
428
0.29951
e78dbfdb3c598a36053c36006335775401473a5a
83
py
Python
Project_3/source/test_perihelion/test_perihelion.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
Project_3/source/test_perihelion/test_perihelion.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
Project_3/source/test_perihelion/test_perihelion.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
''' Created on 30. okt. 2017 @author: LJB ''' if __name__ == '__main__': pass
10.375
26
0.590361
0
0
0
0
0
0
0
0
56
0.674699
e79009e224114b1ec0ae87c6bd3d54452a3b6720
791
py
Python
story_with_exercises/5_ex_rename_like_a_pro.py
flrs/pycharm_tips_and_tricks
21a2768f2cc3b6b2af8e672d32c7bd178900adad
[ "MIT" ]
1
2020-02-17T15:08:57.000Z
2020-02-17T15:08:57.000Z
story_with_exercises/5_ex_rename_like_a_pro.py
flrs/pycharm_tips_and_tricks
21a2768f2cc3b6b2af8e672d32c7bd178900adad
[ "MIT" ]
null
null
null
story_with_exercises/5_ex_rename_like_a_pro.py
flrs/pycharm_tips_and_tricks
21a2768f2cc3b6b2af8e672d32c7bd178900adad
[ "MIT" ]
null
null
null
"""Rename Like a Pro Exercise: The contents of the people_on_meetup variable look more like a zoo. Let's rename the following items: - variable "people_on_meetup" -> "animals_in_zoo" - class "Meetup" -> "Zoo" To rename an item, put the cursor on the item you want to rename and then press Shift+F6 on Windows/...
22.6
105
0.663717
140
0.176545
0
0
0
0
0
0
466
0.587642
e79061260d07a54089774bc6a61e074894413160
832
py
Python
bot/plugins/trivia/content/flags.py
best-coloc-ever/globibot
a4c4dd8bb3b71bff09bd2e1c4c5ce58ab1bad176
[ "MIT" ]
14
2016-02-03T16:47:01.000Z
2019-12-09T14:24:25.000Z
bot/plugins/trivia/content/flags.py
best-coloc-ever/globibot
a4c4dd8bb3b71bff09bd2e1c4c5ce58ab1bad176
[ "MIT" ]
11
2016-08-19T22:00:25.000Z
2022-01-13T00:39:48.000Z
bot/plugins/trivia/content/flags.py
best-coloc-ever/globibot
a4c4dd8bb3b71bff09bd2e1c4c5ce58ab1bad176
[ "MIT" ]
6
2016-08-19T21:30:58.000Z
2019-09-27T05:24:08.000Z
from .helpers import * from .behavior import trivia_behavior from io import BytesIO DELAY = 20 async def premise(item): country, image = item flag_image_url = 'https://www.countries-ofthe-world.com/{}'.format(image) flag_image = await Utils.fetch(flag_image_url) return dict( file_path=Bytes...
24.470588
86
0.679087
0
0
0
0
0
0
359
0.43149
130
0.15625
e790a3d718923f21aded92fe9214fe4322d6f5f0
2,687
py
Python
pipe_text_wrapper.py
STealthy-and-haSTy/PipeText
518149cc3183ab9b6ba22be47405677259b7db7a
[ "MIT" ]
1
2020-10-16T08:41:23.000Z
2020-10-16T08:41:23.000Z
pipe_text_wrapper.py
STealthy-and-haSTy/PipeText
518149cc3183ab9b6ba22be47405677259b7db7a
[ "MIT" ]
null
null
null
pipe_text_wrapper.py
STealthy-and-haSTy/PipeText
518149cc3183ab9b6ba22be47405677259b7db7a
[ "MIT" ]
null
null
null
import sublime import sublime_plugin ### --------------------------------------------------------------------------- class PipeCommandHistory(): LIST_LIMIT = 50 def __init__(self): self.storage = [] def push(self, text, temp=False): self.del_duplicates(text) self.storage.insert...
31.244186
100
0.534053
2,186
0.813547
0
0
0
0
0
0
563
0.209527
e79113b7e230adcf093bfd7230288a6161d84a7d
4,663
py
Python
pytracer/texture/texturemap/__init__.py
zjiayao/pyTracer
c2b4ef299ecbdca1c519059488f7cd2438943ee4
[ "MIT" ]
9
2017-11-20T18:17:27.000Z
2022-01-27T23:00:31.000Z
pytracer/texture/texturemap/__init__.py
zjiayao/pyTracer
c2b4ef299ecbdca1c519059488f7cd2438943ee4
[ "MIT" ]
4
2021-06-08T19:03:51.000Z
2022-03-11T23:18:44.000Z
pytracer/texture/texturemap/__init__.py
zjiayao/pyTracer
c2b4ef299ecbdca1c519059488f7cd2438943ee4
[ "MIT" ]
1
2017-11-20T22:48:01.000Z
2017-11-20T22:48:01.000Z
""" __init__.py pytracer.texture.texturemap package Texture map definitions. Created by Jiayao on Aug 5, 2017 Modified on Aug 14, 2017 """ from __future__ import absolute_import from abc import (ABCMeta, abstractmethod) from pytracer import * import pytracer.geometry as geo import pytracer.transform as trans __all...
25.620879
97
0.633712
4,162
0.892558
0
0
755
0.161913
0
0
1,378
0.295518
e794ec0a4b84110bf4cfe442ef69d62eb12a32aa
5,780
py
Python
lib/task/worker.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
12
2018-01-24T20:58:10.000Z
2021-12-21T15:02:10.000Z
lib/task/worker.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
4
2018-01-13T14:39:45.000Z
2020-11-25T00:05:27.000Z
lib/task/worker.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
2
2018-10-23T17:13:44.000Z
2019-05-12T04:10:17.000Z
#!/usr/bin/env python3 ''' lib/task/worker.py Task pool worker thread. Meant for internal use only. Runs a thread to process items in a task pool. The class itself does not inherit from `threading.Thread` directly. Instead, a helper function is exposed for use in a thread target. Users should not need to access this...
28.613861
79
0.569896
4,462
0.771972
0
0
1,110
0.192042
0
0
2,651
0.458651
e7960cdb285d6dd5c4c71de1f2286b8e8d673adb
547
py
Python
skynet-agent/plugins/extension/loadavg.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
3
2016-09-12T08:54:46.000Z
2016-09-18T07:54:10.000Z
skynet-agent/plugins/extension/loadavg.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
null
null
null
skynet-agent/plugins/extension/loadavg.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 __author__ = 'whoami' """ @version: 1.0 @author: whoami @license: Apache Licence 2.0 @contact: skutil@gmail.com @site: http://www.itweet.cn @software: PyCharm Community Edition @file: loadavg.py @time: 2015-11-28 下午1:51 """ def monitor(frist_invoke=1): f = open('/proc/loadavg...
17.645161
36
0.6234
0
0
0
0
0
0
0
0
308
0.558984
e79e7ea88c51825b1ee8f322458db326ca24c050
1,129
py
Python
datasets/augmentations.py
sithu31296/re_identification
28c2cf32c6c8c9d79330e1419a7156fe10d8ac95
[ "MIT" ]
null
null
null
datasets/augmentations.py
sithu31296/re_identification
28c2cf32c6c8c9d79330e1419a7156fe10d8ac95
[ "MIT" ]
null
null
null
datasets/augmentations.py
sithu31296/re_identification
28c2cf32c6c8c9d79330e1419a7156fe10d8ac95
[ "MIT" ]
null
null
null
from torchvision import transforms def get_transforms(cfg): train_transform = transforms.Compose([ transforms.Resize(cfg['TRAIN']['IMG_SIZE']), transforms.ColorJitter(cfg['TRAIN']['AUG']['B_P'], cfg['TRAIN']['AUG']['C_P'], cfg['TRAIN']['AUG']['S_P'], cfg['TRAIN']['AUG']['H_P']), transforms....
51.318182
169
0.59876
0
0
0
0
0
0
0
0
285
0.252436
e79f9590300eb19ba909c0b5322d32b4049e33b7
2,056
py
Python
dora/tests/test_xp.py
kingjr/dora
f70fab1620c6cad6fc094be15ab22994bd08dd01
[ "MIT" ]
98
2021-09-21T14:27:21.000Z
2022-03-18T17:46:45.000Z
dora/tests/test_xp.py
kingjr/dora
f70fab1620c6cad6fc094be15ab22994bd08dd01
[ "MIT" ]
6
2021-09-22T13:29:48.000Z
2022-03-14T16:45:30.000Z
dora/tests/test_xp.py
kingjr/dora
f70fab1620c6cad6fc094be15ab22994bd08dd01
[ "MIT" ]
5
2021-09-21T12:42:01.000Z
2022-01-27T17:22:17.000Z
# 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. from pathlib import Path import torch import pytest from ..conf import DoraConfig from ..xp import XP class _Cfg: p...
26.701299
76
0.618191
20
0.009728
0
0
0
0
0
0
313
0.152237
e7a08c3c2295908e12651250df01fbce4284f4fe
3,227
py
Python
crawler/scheduler.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "Apache-2.0" ]
null
null
null
crawler/scheduler.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "Apache-2.0" ]
null
null
null
crawler/scheduler.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under t...
34.329787
75
0.570499
2,271
0.70375
0
0
0
0
0
0
897
0.277967
e7a093439e75bee53c35c1b7acda09ddedee4b02
1,897
py
Python
pyqtgraph_extensions/examples/demo_axis_alignment.py
draustin/pyqtgraph_extensions
9f53756bdab8c61749c3596d40024971d77c893a
[ "MIT" ]
10
2019-05-22T17:10:07.000Z
2022-02-09T08:14:28.000Z
pyqtgraph_extensions/examples/demo_axis_alignment.py
draustin/pyqtgraph_extensions
9f53756bdab8c61749c3596d40024971d77c893a
[ "MIT" ]
3
2020-06-09T22:36:43.000Z
2021-07-19T21:31:57.000Z
pyqtgraph_extensions/examples/demo_axis_alignment.py
draustin/pyqtgraph_extensions
9f53756bdab8c61749c3596d40024971d77c893a
[ "MIT" ]
null
null
null
"""Show how multiple AlignedPlotItems have aligned AxisItems by using their parent's graphics layout.""" import sys from textwrap import wrap import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph_extensions as pgx if QtGui.QApplication.instance() is None: qapp=QtGui.QApplication(sys.argv) ...
43.113636
120
0.732736
0
0
0
0
0
0
0
0
1,021
0.538218
e7a16d2263756e23b3fd10f42e7ec1fd27b2c6d0
377
py
Python
generators/cfg.py
Zarux/Steam-friend-graph-V2
1670a7e49904812b4f86b0d2590a25d77c05c6ee
[ "MIT" ]
null
null
null
generators/cfg.py
Zarux/Steam-friend-graph-V2
1670a7e49904812b4f86b0d2590a25d77c05c6ee
[ "MIT" ]
6
2021-03-09T09:46:03.000Z
2022-02-26T12:28:11.000Z
generators/cfg.py
Zarux/Steam-friend-graph-V2
1670a7e49904812b4f86b0d2590a25d77c05c6ee
[ "MIT" ]
null
null
null
import json class Config: api_key = None db_host = None db_pw = None db_user = None db_table_profile = None db_table_friends = None db = None def __init__(self): with open('../cfg/cfg.json', 'r') as f: config = json.loads(f.read()) for name, value in co...
20.944444
47
0.559682
362
0.960212
0
0
0
0
0
0
20
0.05305
e7a293afddd2a5b54862d63c4e761125a74a8ae5
73
py
Python
Python/Reals/river_in_brazil/matrix_rotation.py
Mr-Perfection/coding_practice
41df85292a151eef3266b01545124aeb4e831286
[ "Unlicense" ]
null
null
null
Python/Reals/river_in_brazil/matrix_rotation.py
Mr-Perfection/coding_practice
41df85292a151eef3266b01545124aeb4e831286
[ "Unlicense" ]
null
null
null
Python/Reals/river_in_brazil/matrix_rotation.py
Mr-Perfection/coding_practice
41df85292a151eef3266b01545124aeb4e831286
[ "Unlicense" ]
null
null
null
""" Rotate a matrix 90 degrees a certain direction based on the flag """
18.25
64
0.726027
0
0
0
0
0
0
0
0
72
0.986301
e7a2a74212459c5c2d287344ef757f817b24bd0e
58
py
Python
vector3d/__init__.py
jayman39tx/vector3d
6ea8a759b5102b65aea33173da1ed78cde9a67b0
[ "MIT" ]
2
2020-11-17T05:16:16.000Z
2021-11-07T19:48:30.000Z
vector3d/__init__.py
jayman39tx/vector3d
6ea8a759b5102b65aea33173da1ed78cde9a67b0
[ "MIT" ]
null
null
null
vector3d/__init__.py
jayman39tx/vector3d
6ea8a759b5102b65aea33173da1ed78cde9a67b0
[ "MIT" ]
3
2020-08-10T19:32:01.000Z
2021-04-09T12:58:50.000Z
name = "Vector3D" from . import vector from . import point
19.333333
20
0.741379
0
0
0
0
0
0
0
0
10
0.172414
e7a3a8f3dbc80823b966705e8802def2ed85da11
102
py
Python
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/simple_py3.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/simple_py3.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/simple_py3.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
import numpy as np array = np.array([1, 2]) # The @ operator is not in python 2 array @ array
14.571429
36
0.627451
0
0
0
0
0
0
0
0
36
0.352941
e7a5af266194fe6108245ee31d8f2544211c0ebb
2,518
py
Python
__init__.py
devsysenv/usr
989ad012b790b6d20f8dae90f0724109cd27b761
[ "MIT" ]
null
null
null
__init__.py
devsysenv/usr
989ad012b790b6d20f8dae90f0724109cd27b761
[ "MIT" ]
null
null
null
__init__.py
devsysenv/usr
989ad012b790b6d20f8dae90f0724109cd27b761
[ "MIT" ]
1
2022-03-09T12:24:37.000Z
2022-03-09T12:24:37.000Z
#!/usr/bin/env python """User package initialization module.""" import os import sys import dselib def _context(varfile=None): """returns the DSE context object for this script.""" try: myself = __file__ except NameError: myself = sys.argv[0] return dselib.DSEContext...
32.282051
105
0.645751
0
0
0
0
0
0
0
0
1,400
0.555997
e7a69e21b01e752968007e111248ff8bffeec7d2
3,833
py
Python
migrations/utils/sql_enum_migrator.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
23
2022-03-17T12:24:09.000Z
2022-03-31T09:13:30.000Z
migrations/utils/sql_enum_migrator.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
18
2022-03-21T08:17:44.000Z
2022-03-30T12:42:30.000Z
migrations/utils/sql_enum_migrator.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
16
2022-03-17T12:24:14.000Z
2022-03-31T12:15:12.000Z
""" OpenVINO DL Workbench Helping Class to migrate enums in database Copyright (c) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/...
38.717172
111
0.66658
3,076
0.802505
0
0
295
0.076963
0
0
1,383
0.360814
e7a75ab051e3341f6c0083af645a52d0c765ee59
4,542
py
Python
post_process/box_sphere_SMC_NSC.py
Milad-Rakhsha/Friction-Contact
59d17b231c5dd764c741c941e5443141d43ec7e8
[ "BSD-3-Clause" ]
null
null
null
post_process/box_sphere_SMC_NSC.py
Milad-Rakhsha/Friction-Contact
59d17b231c5dd764c741c941e5443141d43ec7e8
[ "BSD-3-Clause" ]
null
null
null
post_process/box_sphere_SMC_NSC.py
Milad-Rakhsha/Friction-Contact
59d17b231c5dd764c741c941e5443141d43ec7e8
[ "BSD-3-Clause" ]
null
null
null
import csv,os,sys import subprocess,re import matplotlib #matplotlib.use('TkAgg') matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! import matplotlib.pyplot as plt import numpy as np import pandas as pd from decimal import Decimal from collections import OrderedDict from matplotlib.ticker ...
34.671756
90
0.528181
0
0
0
0
0
0
0
0
1,056
0.232497
e7a7a001dc96d78bf26c54dfa2c539b4c6caf7e2
19,323
py
Python
codes/sensitivity_analysis_withRealParameters.py
atsoukevin93/tumorgrowth
96bda28a6ae6455c53c3b573c05746b6d4f2e802
[ "CC0-1.0" ]
null
null
null
codes/sensitivity_analysis_withRealParameters.py
atsoukevin93/tumorgrowth
96bda28a6ae6455c53c3b573c05746b6d4f2e802
[ "CC0-1.0" ]
null
null
null
codes/sensitivity_analysis_withRealParameters.py
atsoukevin93/tumorgrowth
96bda28a6ae6455c53c3b573c05746b6d4f2e802
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from fipy import * from numpy import * import scipy.sparse as sp import scipy.sparse.linalg as la import parameterFunctions.immuneResponse as delt import parameterFunctions.sigmaF as sigmaF import inspect from collections import OrderedDict import pygpc from pygpc.sobol_s...
40.006211
123
0.549915
8,994
0.465456
156
0.008073
0
0
0
0
7,251
0.375252
e7a8eb29f59a7169a8670d3bd2d5361afff30ad8
1,509
py
Python
setup.py
StreetHawkInc/behave-http
236f62faaa7448c55d13767c21bfd2711b11456c
[ "BSD-2-Clause" ]
null
null
null
setup.py
StreetHawkInc/behave-http
236f62faaa7448c55d13767c21bfd2711b11456c
[ "BSD-2-Clause" ]
null
null
null
setup.py
StreetHawkInc/behave-http
236f62faaa7448c55d13767c21bfd2711b11456c
[ "BSD-2-Clause" ]
null
null
null
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme_file: long_description = readme_file.read() setup_requires = ['wheel'] install_requires = [ 'behave>=1.2.4', 'Jinja2>=2.5', 'jpath>=1.1', 'ensure>=0.1.6', ...
30.18
71
0.609013
0
0
0
0
0
0
0
0
837
0.554672
e7a94a2ff34c1076fb500ca11f0f92ab4291d4b0
2,314
py
Python
src/day11.py
birdman74/advent-of-code-2021
190cd4110ef3553258a26c8521bdf372c006a77c
[ "Apache-2.0" ]
null
null
null
src/day11.py
birdman74/advent-of-code-2021
190cd4110ef3553258a26c8521bdf372c006a77c
[ "Apache-2.0" ]
null
null
null
src/day11.py
birdman74/advent-of-code-2021
190cd4110ef3553258a26c8521bdf372c006a77c
[ "Apache-2.0" ]
null
null
null
import os from typing import List MODULE_DIR = os.path.dirname(os.path.realpath(__file__)) PROJECT_DIR = os.path.join(MODULE_DIR, "..") INPUT_SOURCE_DIR = os.path.join(PROJECT_DIR, "input") def get_data_lines(input_file_name): input_file = os.path.join(INPUT_SOURCE_DIR, input_file_name) print(f"Input file: {...
27.223529
98
0.639585
0
0
0
0
0
0
0
0
322
0.139153
e7a9abe833ad06b98a4c2551f4c70ddffb9249c0
30
py
Python
a.py
Ankitgarg453/resume_builder
8ccffb4191d270685da446f0b2808409f282cecd
[ "MIT" ]
null
null
null
a.py
Ankitgarg453/resume_builder
8ccffb4191d270685da446f0b2808409f282cecd
[ "MIT" ]
null
null
null
a.py
Ankitgarg453/resume_builder
8ccffb4191d270685da446f0b2808409f282cecd
[ "MIT" ]
null
null
null
print "ankit" print "Saimon"
7.5
14
0.7
0
0
0
0
0
0
0
0
15
0.5
e7a9c1267f6e65a3675addd7271b9a0a997345e4
3,430
py
Python
src/models/adversarial_validation.py
solery-git/Yandex_MIPT_user_identification
6861c14ebeeaef963b1d180080b87637a9578dd5
[ "FTL" ]
null
null
null
src/models/adversarial_validation.py
solery-git/Yandex_MIPT_user_identification
6861c14ebeeaef963b1d180080b87637a9578dd5
[ "FTL" ]
null
null
null
src/models/adversarial_validation.py
solery-git/Yandex_MIPT_user_identification
6861c14ebeeaef963b1d180080b87637a9578dd5
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- import warnings warnings.filterwarnings('ignore') import pickle import yaml from pathlib import Path import numpy as np import pandas as pd from scipy.sparse import csr_matrix, hstack as sparse_hstack, vstack as sparse_vstack from sklearn.linear_model import LogisticRegression from sklearn.metri...
37.692308
151
0.732653
0
0
0
0
0
0
0
0
409
0.119242
e7aa8cac8e96224781686bd1388c518adf6e852b
3,803
py
Python
U3/src/e6.py
craciunescu/algo
81e91fa72d8896b459900510ee270d25de15f6fd
[ "MIT" ]
null
null
null
U3/src/e6.py
craciunescu/algo
81e91fa72d8896b459900510ee270d25de15f6fd
[ "MIT" ]
null
null
null
U3/src/e6.py
craciunescu/algo
81e91fa72d8896b459900510ee270d25de15f6fd
[ "MIT" ]
null
null
null
""" @author: David E. Craciunescu @date: 2020/04/30 (yyyy/mm/dd) 6. After passing through the Tile Room and stealing the Craddle of Life, Indiana Croft faces a new challenge before leaving the Cursed Temple! The Temple itself is located on a bridge under which there is a deep darkness. Fortu...
43.215909
80
0.720221
0
0
0
0
0
0
0
0
3,163
0.831056
e7ab93c674e1c7b0c7b235ef1ec15c5f79897159
184
py
Python
ptb/ledger/views.py
vkpdeveloper/ShaktiDeep-Traders-Bill-Management-Project
566a64268fabf256e80bee680d1fbde2c6c0787d
[ "MIT" ]
2
2019-11-26T11:57:56.000Z
2020-06-17T05:16:47.000Z
ptb/ledger/views.py
vkpdeveloper/ShaktiDeep-Traders-Bill-Management-Project
566a64268fabf256e80bee680d1fbde2c6c0787d
[ "MIT" ]
null
null
null
ptb/ledger/views.py
vkpdeveloper/ShaktiDeep-Traders-Bill-Management-Project
566a64268fabf256e80bee680d1fbde2c6c0787d
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.shortcuts import render from django.http import HttpResponse def index(request): return render(request, 'ledger/index.html')
26.285714
47
0.777174
0
0
0
0
0
0
0
0
19
0.103261
e7ad41b8d693a843781c9b1f0c9248a6d00b3029
492
py
Python
olamundo.py/exercicios_refeitos/ex024.py
gabrielviticov/exercicios-python
4068cb0029513f8ab8bd12fa3a9055f37b4040d4
[ "MIT" ]
null
null
null
olamundo.py/exercicios_refeitos/ex024.py
gabrielviticov/exercicios-python
4068cb0029513f8ab8bd12fa3a9055f37b4040d4
[ "MIT" ]
null
null
null
olamundo.py/exercicios_refeitos/ex024.py
gabrielviticov/exercicios-python
4068cb0029513f8ab8bd12fa3a9055f37b4040d4
[ "MIT" ]
null
null
null
''' ex024: Crie um programa que leia o nome de uma cidade e diga se ela começa ou não com o nome ‘SANTO’ ''' from colorise import set_color, reset_color cores = { 'limpa': '\033[m', 'white': '\033[1;97m', } set_color(fg='cyan') nome_cidade = str(input('Informe o nome de uma cidade: ')).strip().title() separad...
28.941176
100
0.658537
0
0
0
0
0
0
0
0
255
0.511022
e7ae68bcd377bc20a3f17e6c42c1085c7778f122
3,154
py
Python
preprocessing/preprocessTrainingfiles_generateFasttextinput.py
gerbentimmerman/community-based-abuse-detection
8ac03ccf1e594c2588b243e45ac535a0977bbcb0
[ "MIT" ]
null
null
null
preprocessing/preprocessTrainingfiles_generateFasttextinput.py
gerbentimmerman/community-based-abuse-detection
8ac03ccf1e594c2588b243e45ac535a0977bbcb0
[ "MIT" ]
null
null
null
preprocessing/preprocessTrainingfiles_generateFasttextinput.py
gerbentimmerman/community-based-abuse-detection
8ac03ccf1e594c2588b243e45ac535a0977bbcb0
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pandas as pd import csv import re import emoji import redditcleaner from nltk.tokenize import TweetTokenizer def filterText(text, tokenizer): # Filter URLs text = re.sub(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', "<URL>", text) # Filter numbers ...
27.666667
112
0.657895
0
0
0
0
0
0
0
0
1,139
0.361129
e7b099e6d68f75cea2e020cf38d8d5668c1b2d20
644
py
Python
chunked/models.py
grschafer/django-meetup-fileupload
e89e158e3d26a5ce41571f8d164e3f7aa0f1f079
[ "MIT" ]
null
null
null
chunked/models.py
grschafer/django-meetup-fileupload
e89e158e3d26a5ce41571f8d164e3f7aa0f1f079
[ "MIT" ]
null
null
null
chunked/models.py
grschafer/django-meetup-fileupload
e89e158e3d26a5ce41571f8d164e3f7aa0f1f079
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models # Create your models here. class Upload(models.Model): file = models.FileField(null=False, blank=False) num_chunks = models.PositiveIntegerField(null=False, blank=False) filesize = models.PositiveIntegerField(null=False, blank=False) chunk_size = mo...
37.882353
86
0.745342
559
0.868012
0
0
0
0
0
0
81
0.125776
e7b0d46435cdec670279bd998320fd1810c2643c
918
py
Python
fp_demo/functional3.py
AegirAexx/python-sandbox
fa1f584f615c6ed04f80b9dd92d2b241248c9ebe
[ "Unlicense" ]
null
null
null
fp_demo/functional3.py
AegirAexx/python-sandbox
fa1f584f615c6ed04f80b9dd92d2b241248c9ebe
[ "Unlicense" ]
null
null
null
fp_demo/functional3.py
AegirAexx/python-sandbox
fa1f584f615c6ed04f80b9dd92d2b241248c9ebe
[ "Unlicense" ]
null
null
null
"""" Playing around with MAP higher order function and lambdas. """ from datetime import datetime from pprint import pprint from scientist import scientists def age(yob): """ Accepts year of birth and returns the persons age. """ return datetime.now().year - yob NAMES_AND_AGES = tuple( map(lambda x: {'n...
24.810811
79
0.652505
0
0
0
0
0
0
0
0
395
0.430283
e7b19bb8fade9b6e53704f91808df520b32c215d
1,217
py
Python
src/mqtt_bridge/app.py
dftossem/mqtt_ros_aws_iot
0e0ae8d30d25753c5a12d936d07ae94730f3eccd
[ "MIT" ]
5
2021-07-23T09:52:40.000Z
2021-09-22T21:11:53.000Z
src/mqtt_bridge/app.py
dftossem/mqtt_ros_aws_iot
0e0ae8d30d25753c5a12d936d07ae94730f3eccd
[ "MIT" ]
null
null
null
src/mqtt_bridge/app.py
dftossem/mqtt_ros_aws_iot
0e0ae8d30d25753c5a12d936d07ae94730f3eccd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import inject import rospy import time import json from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient from .bridge import create_bridge from .util import lookup_object def mqtt_bridge_node(): # init node rospy.init_node('mqtt_bridge_node') ...
24.836735
65
0.72309
0
0
0
0
0
0
0
0
263
0.216105
e7b35b10fd121d0b29cd1d39fc4c75e4f568a1f4
25
py
Python
chapter2_ws/devel/lib/python3/dist-packages/mastering_ros_demo_pkg/srv/__init__.py
Rajat-Arora/ros_packt_book
a715485ea6e36d298bc6f6f306af0595d89e1174
[ "MIT" ]
null
null
null
chapter2_ws/devel/lib/python3/dist-packages/mastering_ros_demo_pkg/srv/__init__.py
Rajat-Arora/ros_packt_book
a715485ea6e36d298bc6f6f306af0595d89e1174
[ "MIT" ]
null
null
null
chapter2_ws/devel/lib/python3/dist-packages/mastering_ros_demo_pkg/srv/__init__.py
Rajat-Arora/ros_packt_book
a715485ea6e36d298bc6f6f306af0595d89e1174
[ "MIT" ]
null
null
null
from ._demo_srv import *
12.5
24
0.76
0
0
0
0
0
0
0
0
0
0
e7b5ecbc66cbd464a70b67852e8b57e73a22b34a
422
py
Python
system-test/tweet/test_tweet.py
jaimebuelta/django-docker-template
f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1
[ "MIT" ]
94
2017-07-30T21:33:46.000Z
2022-01-10T13:41:03.000Z
system-test/tweet/test_tweet.py
jaimebuelta/django-docker-template
f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1
[ "MIT" ]
1
2019-02-01T13:45:42.000Z
2019-02-01T13:45:42.000Z
system-test/tweet/test_tweet.py
jaimebuelta/django-docker-template
f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1
[ "MIT" ]
19
2017-07-31T12:03:12.000Z
2021-11-27T05:43:04.000Z
import os import requests HOSTPORT = os.environ.get('SYSTEM_TEST_HOSTPORT') TWEET_URL = HOSTPORT + 'tweet/' def test_tweets(): result = requests.get(TWEET_URL) assert result.status_code == 200 tweets = result.json() assert len(tweets) == 2 for tweet in tweets: # Get all the linked urls ...
23.444444
49
0.651659
0
0
0
0
0
0
0
0
61
0.14455
e7b5f75431381733711c32b614a4943fecd06b68
348
py
Python
src/PrintSubscriber.py
mansandersson/modbus-monitor
092c7f05c54a912a60d69f1461aeb54105d7b660
[ "MIT" ]
null
null
null
src/PrintSubscriber.py
mansandersson/modbus-monitor
092c7f05c54a912a60d69f1461aeb54105d7b660
[ "MIT" ]
null
null
null
src/PrintSubscriber.py
mansandersson/modbus-monitor
092c7f05c54a912a60d69f1461aeb54105d7b660
[ "MIT" ]
null
null
null
import Constants from pubsub import pub class PrintSubscriber: def __init__(self, verbose): pub.subscribe(self.valueChanged, Constants.VALUECHANGED_TOPIC) if verbose: print('Print subscriber inited ...') def valueChanged(self, entity): print(entity.dis + ' = ' + str(entity...
29
73
0.678161
306
0.87931
0
0
0
0
0
0
34
0.097701
e7bc9e4e1a533046092b0e42330e482c0a72d04c
3,990
py
Python
PressCurve.py
RichBu/PressCurve
4c89f04489abae5d3c87be2663133b8c974457bf
[ "MIT" ]
null
null
null
PressCurve.py
RichBu/PressCurve
4c89f04489abae5d3c87be2663133b8c974457bf
[ "MIT" ]
null
null
null
PressCurve.py
RichBu/PressCurve
4c89f04489abae5d3c87be2663133b8c974457bf
[ "MIT" ]
null
null
null
""" This program uses Digital Oscilliscope data read in from a PicScope. The PicoScope outputs the data as a CSV and this Python app reads it in. Then, we plot on an X-Y chart By Rich Budek 02/12/2021 in Python 3.8 """ import pandas as pd import numpy as np import jinja2 import math import re from pandas import DataF...
31.171875
121
0.69599
317
0.079449
0
0
0
0
0
0
1,726
0.432581
e7bca805299e41e9d298d69596d25e7ce1959ef5
580
py
Python
src/model/bow.py
slein89/BOW_transferlearning
785fe5e48da0dc0e9170e526f221daee154bebec
[ "MIT" ]
1
2019-03-05T11:23:26.000Z
2019-03-05T11:23:26.000Z
src/model/bow.py
slein89/BOW_transferlearning
785fe5e48da0dc0e9170e526f221daee154bebec
[ "MIT" ]
null
null
null
src/model/bow.py
slein89/BOW_transferlearning
785fe5e48da0dc0e9170e526f221daee154bebec
[ "MIT" ]
null
null
null
from sklearn.pipeline import Pipeline from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from sklearn.ensemble import GradientBoostingClassifier def bow_pipeline(X_train, y_train): pipeline = Pipeline([ ('countvect', CountVectorizer(analyzer='word', ...
38.666667
77
0.624138
0
0
0
0
0
0
0
0
35
0.060345
e7bd68b12a5e8867bbc35ac7cd372730ec172944
3,967
py
Python
train_offline.py
denisyarats/exorl
a3fb07a420939280aa0918150923dcca7e82bf2a
[ "MIT" ]
23
2022-02-08T20:28:47.000Z
2022-03-31T11:00:25.000Z
train_offline.py
denisyarats/exorl
a3fb07a420939280aa0918150923dcca7e82bf2a
[ "MIT" ]
1
2022-03-10T04:45:19.000Z
2022-03-10T04:45:19.000Z
train_offline.py
denisyarats/exorl
a3fb07a420939280aa0918150923dcca7e82bf2a
[ "MIT" ]
null
null
null
import warnings warnings.filterwarnings('ignore', category=DeprecationWarning) import os os.environ['MKL_SERVICE_FORCE_INTEL'] = '1' os.environ['MUJOCO_GL'] = 'egl' from pathlib import Path import hydra import numpy as np import torch from dm_env import specs import dmc import utils from logger import Logger from...
30.992188
79
0.637509
0
0
0
0
2,298
0.579279
0
0
413
0.104109
e7bf132349c97d22d52cdb3650636fe8ed882551
1,606
py
Python
December-15/python3_ASHIK11ab.py
ASHIK11ab/A-December-of-Algorithms-2021
2eeb1192c69b67b1c64033c1df155a705d1219c4
[ "MIT" ]
null
null
null
December-15/python3_ASHIK11ab.py
ASHIK11ab/A-December-of-Algorithms-2021
2eeb1192c69b67b1c64033c1df155a705d1219c4
[ "MIT" ]
null
null
null
December-15/python3_ASHIK11ab.py
ASHIK11ab/A-December-of-Algorithms-2021
2eeb1192c69b67b1c64033c1df155a705d1219c4
[ "MIT" ]
null
null
null
import ast class Solution: def __init__(self, orders, deadline): self.orders = orders self.deadline = deadline def solve(self): # `y` -> no of bracelets to be made in a day to deliver all orders # on time. The starting value of `y` will be >= maximum element in # the orders list since, no or...
27.220339
77
0.620174
572
0.356164
0
0
0
0
0
0
559
0.34807
e7bf5114270c4c1ba3fa4db47d240b4427db5d56
31
py
Python
is_ipfs/__init__.py
Barabazs/py-is_ipfs
c8ac622879b2223e298d9cc4a59ae7da89eb0479
[ "MIT" ]
1
2022-03-09T14:23:44.000Z
2022-03-09T14:23:44.000Z
is_ipfs/__init__.py
Barabazs/py-is_ipfs
c8ac622879b2223e298d9cc4a59ae7da89eb0479
[ "MIT" ]
null
null
null
is_ipfs/__init__.py
Barabazs/py-is_ipfs
c8ac622879b2223e298d9cc4a59ae7da89eb0479
[ "MIT" ]
null
null
null
from .is_ipfs import Validator
15.5
30
0.83871
0
0
0
0
0
0
0
0
0
0
e7c296cbcbe2a40314c5ebd466c9648b4f998c96
3,993
py
Python
Assignment_3/marbles.py
cVoltic/MIDS
417b7d2e6e7eff20292c5429cbe5245813e9a1d9
[ "MIT" ]
null
null
null
Assignment_3/marbles.py
cVoltic/MIDS
417b7d2e6e7eff20292c5429cbe5245813e9a1d9
[ "MIT" ]
null
null
null
Assignment_3/marbles.py
cVoltic/MIDS
417b7d2e6e7eff20292c5429cbe5245813e9a1d9
[ "MIT" ]
null
null
null
# A Marbles Game # A Marbles Game - Problem # Cuong Trinh import sys class MarblesBoard(): def __init__(self, board): self.board = list(board) def __str__(self): return f"{ ' '.join(map(str, self.board)) }" def __repr__(self): return f"MarblesBoard(({ ', '.join(map(str, self.b...
35.651786
169
0.569747
2,174
0.544453
0
0
0
0
0
0
2,213
0.55422
e7c5214a6861e2cb908a3d5d48328445859dbfbd
4,237
py
Python
windows.py
dcxSt/pfb-mod
1615790d0782f3becbba72a3e40c5b79ca4dc28b
[ "MIT" ]
1
2021-11-09T13:02:29.000Z
2021-11-09T13:02:29.000Z
windows.py
dcxSt/pfb-mod
1615790d0782f3becbba72a3e40c5b79ca4dc28b
[ "MIT" ]
null
null
null
windows.py
dcxSt/pfb-mod
1615790d0782f3becbba72a3e40c5b79ca4dc28b
[ "MIT" ]
null
null
null
#!/usr/bin/python3.8 """ Created on 2021-06-07 Author : Stephen Fay """ import numpy as np from constants import * import helper as h #%% spectrum transformers (spectrum ~ ft_block) f3 = lambda x:x*(1/(np.abs(x)+0.1)+0.3) f4 = lambda x:x*(1/(np.abs(x)+0.000001)) f5 = lambda x:x*(1/(np.abs(x)+0.01)) f6 = lambda x:x*...
30.482014
123
0.671702
0
0
0
0
0
0
0
0
1,308
0.308709
e7c57019e7800b7bf091d492331fc64fbacfb1a2
291
py
Python
package/PartSegCore/channel_class.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
15
2020-03-21T03:27:56.000Z
2022-03-21T07:46:39.000Z
package/PartSegCore/channel_class.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
479
2019-10-27T22:57:22.000Z
2022-03-30T12:48:14.000Z
package/PartSegCore/channel_class.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
5
2020-02-05T14:25:02.000Z
2021-12-21T03:44:52.000Z
class Channel(int): """ This class is introduced to distinguish numerical algorithm parameter from choose chanel. In autogenerated interface field with this type limits input values to number of current image channels """ def __str__(self): return str(self + 1)
32.333333
107
0.714777
290
0.996564
0
0
0
0
0
0
213
0.731959
e7c7b17b656904abd64163333b17badb2111d9ac
986
py
Python
Train/test.py
fanchy888/digit_ANN
5faf0e574321ff5e3c6b8ec82992d20177be15a0
[ "MIT" ]
null
null
null
Train/test.py
fanchy888/digit_ANN
5faf0e574321ff5e3c6b8ec82992d20177be15a0
[ "MIT" ]
null
null
null
Train/test.py
fanchy888/digit_ANN
5faf0e574321ff5e3c6b8ec82992d20177be15a0
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- from PIL import Image import numpy as np from scipy.io import loadmat from scipy.io import savemat def sigmoid(z): g=1/(1+np.exp(-z)) return g img=Image.open('test.png') img=img.convert('L') grey=img.getdata() X=np.asarray(grey) X=np.mat(X.ravel()) theta=loadmat('theta') theta1=theta['theta1']...
21.434783
41
0.679513
0
0
0
0
0
0
0
0
84
0.085193
e7c8356eb7291024a35ca2cbb8863750d4cda4f4
3,465
py
Python
dateien_lesen.py
hansalemaos/Everything2TXT
33dc7f15d9003441d7e38a8d872c3b7f6b3fa00b
[ "MIT" ]
1
2022-02-27T19:07:08.000Z
2022-02-27T19:07:08.000Z
dateien_lesen.py
hansalemaos/Everything2TXT
33dc7f15d9003441d7e38a8d872c3b7f6b3fa00b
[ "MIT" ]
null
null
null
dateien_lesen.py
hansalemaos/Everything2TXT
33dc7f15d9003441d7e38a8d872c3b7f6b3fa00b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import docx2txt from pdfminer.high_level import extract_text from pptx import Presentation from bs4 import BeautifulSoup from epubextract import epub2txt from xlsx2html import xlsx2html import tempfile from tkinter import Tk from tkinter.filedialog import askopenfilename import re def create_t...
27.283465
73
0.621356
0
0
0
0
0
0
0
0
253
0.073016
e7c92ca14bcce898f8943bb76fd1a82f7d605a8a
307
py
Python
tests/test_source.py
Kadas36/NEWS-App
ee0504ed04f5e3d8c7e06ea478d163e8209ac425
[ "MIT" ]
null
null
null
tests/test_source.py
Kadas36/NEWS-App
ee0504ed04f5e3d8c7e06ea478d163e8209ac425
[ "MIT" ]
null
null
null
tests/test_source.py
Kadas36/NEWS-App
ee0504ed04f5e3d8c7e06ea478d163e8209ac425
[ "MIT" ]
null
null
null
import unittest from app.models import Source class MovieTest(unittest.TestCase): def setUp(self): self.new_source = Source('cnn','cnn','Elections set for 2020','https://edition.cnn.com/','general','us') def test_instance(self): self.assertTrue(isinstance(self.new_source,Source))
30.7
112
0.70684
260
0.846906
0
0
0
0
0
0
73
0.237785
e7c9f67c367034f596fa0db99d380d2232e79275
195
py
Python
steppygraph/test/utils_test.py
mfrawley/steppy-graph
2094c95d2cfe3145ecc42311d799dad8ba2f007b
[ "MIT" ]
4
2019-02-12T21:56:03.000Z
2020-10-19T07:14:44.000Z
steppygraph/test/utils_test.py
mfrawley/steppy-graph
2094c95d2cfe3145ecc42311d799dad8ba2f007b
[ "MIT" ]
null
null
null
steppygraph/test/utils_test.py
mfrawley/steppy-graph
2094c95d2cfe3145ecc42311d799dad8ba2f007b
[ "MIT" ]
null
null
null
from steppygraph.utils import filter_props d = { "_foo": True, "foo": 1 } def test_filter_keys(): o = filter_props(d) assert o['foo'] == True assert '_foo' not in o.keys()
15
42
0.605128
0
0
0
0
0
0
0
0
22
0.112821
e7cc0e525cff12bc2b3486753006977533ce881a
9,346
py
Python
train.py
WKUAILAB/Risk_Level_Prediction
7074953cf2c19cf2f2ad5c1cad5df0ad30637418
[ "MIT" ]
null
null
null
train.py
WKUAILAB/Risk_Level_Prediction
7074953cf2c19cf2f2ad5c1cad5df0ad30637418
[ "MIT" ]
null
null
null
train.py
WKUAILAB/Risk_Level_Prediction
7074953cf2c19cf2f2ad5c1cad5df0ad30637418
[ "MIT" ]
1
2022-02-28T06:29:08.000Z
2022-02-28T06:29:08.000Z
import numpy as np import pandas as pd import os from joblib import dump from sklearn.model_selection import train_test_split, RandomizedSearchCV, GridSearchCV from sklearn.metrics import classification_report, recall_score, precision_recall_fscore_support from sklearn.ensemble import GradientBoostingClassifier from ...
43.469767
492
0.675904
0
0
0
0
0
0
0
0
2,026
0.213129
e7cd2f7b970a9548bf93ebb125e5939b4572b405
2,543
py
Python
mptb/models/commons.py
to-aoki/my-pytorch-bert
8e412ae6331f5f19fee55b430be389de2f5c49a6
[ "Apache-2.0" ]
21
2019-03-04T03:43:19.000Z
2022-02-14T15:50:41.000Z
mptb/models/commons.py
to-aoki/my-pytorch-bert
8e412ae6331f5f19fee55b430be389de2f5c49a6
[ "Apache-2.0" ]
1
2019-10-07T17:49:21.000Z
2019-12-14T11:50:10.000Z
mptb/models/commons.py
to-aoki/my-pytorch-bert
8e412ae6331f5f19fee55b430be389de2f5c49a6
[ "Apache-2.0" ]
5
2019-07-19T07:04:55.000Z
2020-07-01T13:24:14.000Z
# This file is based on # https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/pytorch_pretrained_bert/modeling.py. # changing class names and variables names for my understanding of BERT. # and Modified a bit to visualize with bertviz. # # Copyright 2018 The Google AI Language Team Authors and The Huggin...
40.365079
105
0.701534
1,331
0.523398
0
0
0
0
0
0
1,094
0.430201
e7cd8e5b68df4a3597e07017cc8ad1f64fc2dc4a
1,388
py
Python
simple_server.py
mlacayoemery/owslib-pywps-echo
9b19936989d8261986f6184547206386afb8c1fe
[ "Unlicense" ]
null
null
null
simple_server.py
mlacayoemery/owslib-pywps-echo
9b19936989d8261986f6184547206386afb8c1fe
[ "Unlicense" ]
null
null
null
simple_server.py
mlacayoemery/owslib-pywps-echo
9b19936989d8261986f6184547206386afb8c1fe
[ "Unlicense" ]
null
null
null
import flask import pywps class EchoVector(pywps.Process): def __init__(self): inputs = [pywps.ComplexInput('message', 'Input message', supported_formats=[pywps.Format('application/gml+xml'), ...
30.844444
96
0.53098
1,123
0.809078
0
0
73
0.052594
0
0
216
0.15562
e7cdb089436833732bfa37700ee373f489662c99
889
py
Python
tests/test_jaccard_score.py
jo-mueller/biapol-utilities
773b60a64fa12641ba869addd7b4be9a4ab87ecd
[ "BSD-3-Clause" ]
4
2021-12-17T19:37:11.000Z
2022-03-29T16:39:31.000Z
tests/test_jaccard_score.py
jo-mueller/biapol-utilities
773b60a64fa12641ba869addd7b4be9a4ab87ecd
[ "BSD-3-Clause" ]
34
2021-11-04T14:10:24.000Z
2022-01-31T13:23:44.000Z
tests/test_jaccard_score.py
jo-mueller/biapol-utilities
773b60a64fa12641ba869addd7b4be9a4ab87ecd
[ "BSD-3-Clause" ]
2
2021-12-14T13:53:16.000Z
2021-12-15T12:30:51.000Z
# -*- coding: utf-8 -*- from biapol_utilities import label import numpy as np def test_compare_labels(): a = np.asarray([5, 0, 0, 1, 1, 1, 2, 2]) b = np.asarray([5, 0, 0, 1, 1, 1, 2, 3]) result = label.compare_labels(a, b) assert('jaccard_score' in result.columns) assert('dice_score' in result...
21.166667
72
0.598425
0
0
0
0
0
0
0
0
60
0.067492