hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
1b20193ab5a597fe5a739a07660e65af8a91d2ac
385
py
Python
scripts/shared.py
bozhnyukAlex/high-performance-graph-analysis-course
13d4de4257a59d03c585896ee89011d6a4adc58f
[ "Apache-2.0" ]
1
2021-11-14T01:04:17.000Z
2021-11-14T01:04:17.000Z
scripts/shared.py
bozhnyukAlex/high-performance-graph-analysis-course
13d4de4257a59d03c585896ee89011d6a4adc58f
[ "Apache-2.0" ]
9
2021-09-01T12:01:23.000Z
2021-11-25T12:25:10.000Z
scripts/shared.py
miloserdova-l/formal-lang-course
042e1b381a8ea96a7602fb876e20cdb6506044ac
[ "Apache-2.0" ]
12
2021-08-30T11:40:04.000Z
2022-03-04T07:06:15.000Z
import os import pathlib ROOT = pathlib.Path(__file__).parent.parent DOCS = ROOT / "docs" TESTS = ROOT / "tests"
22.647059
61
0.654545
1b203175eee2fabf30e9c6b11be336bcd0773399
28,139
py
Python
main.py
Ethan-Chew/toobox
7f774a0eac12c9e6ceeb078474fdab6205247c29
[ "MIT" ]
4
2022-01-12T02:21:07.000Z
2022-03-27T13:34:32.000Z
main.py
Ethan-Chew/toobox
7f774a0eac12c9e6ceeb078474fdab6205247c29
[ "MIT" ]
null
null
null
main.py
Ethan-Chew/toobox
7f774a0eac12c9e6ceeb078474fdab6205247c29
[ "MIT" ]
null
null
null
# Everyone did everything here ## JSON, Main UI, Keybinds, 'Backend' mostly by Ethan ## Refractoring, 'Backend' by Jerick ## Everything else + Starting Point by Granwyn import tkinter as tk from tkinter import ttk import os from tkinter import font import json from PIL import ImageTk, Image from tkinter import Menu im...
45.312399
355
0.591457
1b206ae3f5c5fdb2c9e5d1ecca0c6fbb09923902
5,152
py
Python
test/acceptance/tools/fabric_utils.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
test/acceptance/tools/fabric_utils.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
test/acceptance/tools/fabric_utils.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
2
2016-08-22T16:03:25.000Z
2018-03-05T23:28:55.000Z
# -*- coding: utf-8 -*- # Copyright 2014 Telefonica Investigacin y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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://ww...
35.287671
115
0.658579
1b206be8b7765566c3651186ba151112e61310ba
3,079
py
Python
testbot/bot/bot.py
Carberra/discord.py-2.0-testing
6143f62636ee712f468af2462060f09ff8e24730
[ "BSD-3-Clause" ]
null
null
null
testbot/bot/bot.py
Carberra/discord.py-2.0-testing
6143f62636ee712f468af2462060f09ff8e24730
[ "BSD-3-Clause" ]
null
null
null
testbot/bot/bot.py
Carberra/discord.py-2.0-testing
6143f62636ee712f468af2462060f09ff8e24730
[ "BSD-3-Clause" ]
null
null
null
import traceback from pathlib import Path import discord from apscheduler.schedulers.asyncio import AsyncIOScheduler from discord.ext import commands, fancyhelp from pytz import utc from testbot import __version__ MAIN_GUILD_ID = 845688627265536010 STDOUT_CHANNEL_ID = 845691044527210515
31.10101
91
0.626827
1b2089f485f3812855dad084d1e839ff916e3e3b
759
py
Python
alembic/versions/8feba263d722_added_a_flag_to_commands_if_it_should_.py
smackedlol/pajbot
cc6d00e20fd0847f88e487937ac02d0011e05e67
[ "MIT" ]
1
2020-10-01T23:36:38.000Z
2020-10-01T23:36:38.000Z
alembic/versions/8feba263d722_added_a_flag_to_commands_if_it_should_.py
smackedlol/pajbot
cc6d00e20fd0847f88e487937ac02d0011e05e67
[ "MIT" ]
1
2021-03-25T05:37:40.000Z
2021-03-25T05:37:40.000Z
alembic/versions/8feba263d722_added_a_flag_to_commands_if_it_should_.py
leecopland/bullbot
52e463293097b58084afb4f9f1d85b0656a67d44
[ "MIT" ]
1
2020-03-11T19:37:10.000Z
2020-03-11T19:37:10.000Z
"""Added a flag to commands if it should be run through the banphrases Revision ID: 8feba263d722 Revises: a6f9b5c3ba83 Create Date: 2016-05-24 22:04:49.803097 """ # revision identifiers, used by Alembic. revision = '8feba263d722' down_revision = 'a6f9b5c3ba83' branch_labels = None depends_on = None from alembic imp...
26.172414
118
0.72332
1b21ac02930b4e22bdd28cedc76ce3ebf51b7c69
650
py
Python
hdri_encoding/metadata_encoding_utils.py
microsoft/ConfigNet
f16b9b52698b1fe588322fdc5d921746f68d0e9e
[ "MIT" ]
82
2020-08-24T01:47:03.000Z
2022-02-28T08:33:50.000Z
hdri_encoding/metadata_encoding_utils.py
microsoft/ConfigNet
f16b9b52698b1fe588322fdc5d921746f68d0e9e
[ "MIT" ]
3
2020-09-18T07:21:00.000Z
2022-02-09T23:42:27.000Z
hdri_encoding/metadata_encoding_utils.py
microsoft/ConfigNet
f16b9b52698b1fe588322fdc5d921746f68d0e9e
[ "MIT" ]
16
2020-08-24T05:47:00.000Z
2022-01-05T07:25:13.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """Common functions used by the metadata encoding scripts""" import json
34.210526
61
0.690769
1b227e9375b3dddeb348d11a30d06d878e3e08d5
11,700
py
Python
code/segmentation/MELC_ImageProcessing.py
perlfloccri/DeepFLEX
84d2d83f09acdb4dbc7c02735e071bf8d67ddafe
[ "MIT" ]
null
null
null
code/segmentation/MELC_ImageProcessing.py
perlfloccri/DeepFLEX
84d2d83f09acdb4dbc7c02735e071bf8d67ddafe
[ "MIT" ]
null
null
null
code/segmentation/MELC_ImageProcessing.py
perlfloccri/DeepFLEX
84d2d83f09acdb4dbc7c02735e071bf8d67ddafe
[ "MIT" ]
1
2020-09-30T21:44:12.000Z
2020-09-30T21:44:12.000Z
from MELC.utils.myDatasets import generate_workingRaw_from_raw, MELCStructureDataset import numpy as np import tifffile as tiff from MELC.utils.registration_daria import register import matplotlib.pyplot as plt import cv2 from MELC.utils.Files import create_folder from skimage import img_as_float, img_as_uint from MELC...
42.238267
148
0.685897
1b228384e19773cced14f8e402df3707f46aed14
429
py
Python
examples/extremes.py
gimait/pycozmo
601d9c09903b9300e8990723cae95974212afb09
[ "MIT" ]
1
2020-12-20T13:33:41.000Z
2020-12-20T13:33:41.000Z
examples/extremes.py
solosito/pycozmo
5d28118eb8f7a625ae4a66054dabf19b4fe27483
[ "MIT" ]
null
null
null
examples/extremes.py
solosito/pycozmo
5d28118eb8f7a625ae4a66054dabf19b4fe27483
[ "MIT" ]
1
2019-12-25T13:36:16.000Z
2019-12-25T13:36:16.000Z
#!/usr/bin/env python import time import pycozmo pycozmo.run_program(pycozmo_program)
19.5
54
0.757576
1b24854fdff1c239a2ae1dd104ad4dbb9b57c601
1,668
py
Python
ryu/tests/server-for-consistency-test.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
null
null
null
ryu/tests/server-for-consistency-test.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
null
null
null
ryu/tests/server-for-consistency-test.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ An echo server that uses select to handle multiple clients at a time. Command-line parameter: port=listening port """ import select import socket import sys if len(sys.argv)!=2: print("You need to specify a listening port!") sys.exit() host = '' port = int(sys.argv[1]) back...
27.344262
103
0.550959
1b24a9c95de8992eb607fee932124e52311407d1
1,146
py
Python
2015/python/d07.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2015/python/d07.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2015/python/d07.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
import re lines = open('d07.in').read().split('\n') calc = dict() for line in lines: instruction = re.findall(r'(.*)\s->\s(\w*)', line) for ops, register in instruction: calc[register] = ops.strip().split(' ') results = dict() original = calculate('a') print('P1:', original) results = dict() result...
25.466667
58
0.519197
1b296874bf5074952d7f78ae18699f62788825a3
17,739
py
Python
extensions/logger.py
cobrab11/black1-bot
47c1a80029d6183fc990960b422bb3155360702d
[ "Apache-2.0" ]
3
2015-10-15T15:40:17.000Z
2021-06-08T05:39:21.000Z
extensions/logger.py
cobrab11/black1-bot
47c1a80029d6183fc990960b422bb3155360702d
[ "Apache-2.0" ]
1
2019-04-06T11:54:56.000Z
2019-04-07T00:57:49.000Z
extensions/logger.py
cobrab11/black1-bot
47c1a80029d6183fc990960b422bb3155360702d
[ "Apache-2.0" ]
3
2015-10-26T14:49:57.000Z
2018-03-04T15:34:11.000Z
# BS mark.1-55 # /* coding: utf-8 */ # BlackSmith mark.1 # logger.py # 2011-2013 simpleApps (http://simpleapps.ru) # Thanks to: WitcherGeralt (alkorgun@gmail.com) logConfigFile = "dynamic/logstate.txt" logCacheFile = "logcache.txt" logThemes = {} Months, Days = ("", u"", u"", u"", u"", u"", u"", u"", u"", u"", ...
36.879418
255
0.631434
1b2ad0ae61c78643d62af25d4ac99dd6250e8bf1
1,655
py
Python
jupiter/use_cases/prm/person/remove.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
15
2019-05-05T14:34:58.000Z
2022-02-25T09:57:28.000Z
jupiter/use_cases/prm/person/remove.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
3
2020-02-22T16:09:39.000Z
2021-12-18T21:33:06.000Z
jupiter/use_cases/prm/person/remove.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
null
null
null
"""Remove a person.""" import logging from typing import Final from jupiter.domain.inbox_tasks.infra.inbox_task_notion_manager import InboxTaskNotionManager from jupiter.domain.prm.infra.prm_notion_manager import PrmNotionManager from jupiter.domain.prm.service.remove_service import PersonRemoveService from jupiter.do...
40.365854
109
0.767372
1b2c8ab1cb51ed50fafc8095cf24fef9233aa71a
2,755
py
Python
lib/durak/game/ai.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
null
null
null
lib/durak/game/ai.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
1
2020-10-23T14:12:47.000Z
2020-11-03T17:33:11.000Z
lib/durak/game/ai.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
null
null
null
from itertools import chain from random import choice from lib.durak.exceptions import IllegalAction
29.945652
86
0.57931
1b2cf5164131d83c30f0c82c36524c69f4744fce
2,954
py
Python
diatomic/grids.py
ihavalyova/DiAtomic
7eb6394947574c19be9a307fd7706939abc35e3f
[ "BSD-3-Clause" ]
3
2022-01-26T02:40:12.000Z
2022-02-10T19:03:15.000Z
diatomic/grids.py
ihavalyova/DiAtomic
7eb6394947574c19be9a307fd7706939abc35e3f
[ "BSD-3-Clause" ]
null
null
null
diatomic/grids.py
ihavalyova/DiAtomic
7eb6394947574c19be9a307fd7706939abc35e3f
[ "BSD-3-Clause" ]
1
2021-03-20T10:34:27.000Z
2021-03-20T10:34:27.000Z
import numpy as np from utils import C_bohr __all__ = ['Grid']
31.763441
78
0.585647
1b2e5bc5b7359f315c6568c59fbcd38f9b3397a5
948
py
Python
string/tinyUrl.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
string/tinyUrl.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
string/tinyUrl.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
import random
28.727273
77
0.597046
1b3057afe6cc042a2d06d8c6901dc21dbf505ca6
1,328
py
Python
Lib/objc/MetalKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
Lib/objc/MetalKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
Lib/objc/MetalKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
''' Classes from the 'MetalKit' framework. ''' try: from rubicon.objc import ObjCClass except ValueError: MTKViewDisplayLinkTarget = _Class('MTKViewDisplayLinkTarget') MTKMeshBuffer = _Class('MTKMeshBuffer') MTKTextureLoaderASTCHelper = _Class('MTKTextureLoaderASTCHelper') MTKMeshBufferZone = _Class('MTKMes...
33.2
67
0.799699
1b30bcf71204112edd6ec2cc41795827d523cf03
1,151
py
Python
mzitu_page.py
swiftlc/python_meizi_reptile
aedb4d84b99a0663330cc4e9dc59e5cdc776296b
[ "MIT" ]
null
null
null
mzitu_page.py
swiftlc/python_meizi_reptile
aedb4d84b99a0663330cc4e9dc59e5cdc776296b
[ "MIT" ]
null
null
null
mzitu_page.py
swiftlc/python_meizi_reptile
aedb4d84b99a0663330cc4e9dc59e5cdc776296b
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import os import shutil import threading import uuid import time import sys import helper import threadpool import mzitu_frame if __name__ == "__main__": url = r'' if not url: argv = sys.argv if len(argv) == 1: print("page url") ...
22.134615
59
0.569939
1b316ea404a1e338f174eb77075582820fee88dd
21
py
Python
vnpy/trader/dbHistory/historyDataFile/__init__.py
chenzj810/vnpy-stock
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
2
2021-01-03T05:28:14.000Z
2021-01-03T05:28:19.000Z
vnpy/trader/dbHistory/historyDataFile/__init__.py
chenzj810/vnpy
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
null
null
null
vnpy/trader/dbHistory/historyDataFile/__init__.py
chenzj810/vnpy
ca30eb309e38f9f916e9877538b98096303e0b60
[ "MIT" ]
1
2021-04-26T14:08:23.000Z
2021-04-26T14:08:23.000Z
# encoding: UTF-8
7
18
0.571429
1b323fb4983d14a761e7a1012a9aa7ebe6dd9100
1,334
py
Python
eden/cli/test/interp_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
eden/cli/test/interp_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
eden/cli/test/interp_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. ...
34.205128
82
0.64018
1b32d43c547f2def5bee763b8d7fd01add81e1cf
8,247
py
Python
tests/unit/connection_test.py
ArthurKamalov/scalyr-agent-2
8392568792fa06534ed9f9ef1892cf91577e3a62
[ "Apache-2.0" ]
67
2015-02-03T00:35:33.000Z
2022-03-23T10:14:26.000Z
tests/unit/connection_test.py
kdelph23/scalyr-agent-2
6b975db59367d271eeba6a614ac40c7cb4205c41
[ "Apache-2.0" ]
578
2015-04-09T08:58:56.000Z
2022-03-30T12:13:21.000Z
tests/unit/connection_test.py
kdelph23/scalyr-agent-2
6b975db59367d271eeba6a614ac40c7cb4205c41
[ "Apache-2.0" ]
58
2015-01-15T22:00:43.000Z
2022-02-18T15:48:31.000Z
# Copyright 2014-2020 Scalyr Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
38.35814
119
0.659391
1b33c128befc050cac21642510f7cc293d57c338
3,365
py
Python
tests/oauth1/client.py
ashleysommer/sanic-oauthlib
9d25d5b34180678e2b4437efb7d6cd7e0a62b4ce
[ "BSD-3-Clause" ]
2
2020-10-29T02:08:16.000Z
2021-08-30T23:25:41.000Z
tests/oauth1/client.py
ashleysommer/sanic-oauthlib
9d25d5b34180678e2b4437efb7d6cd7e0a62b4ce
[ "BSD-3-Clause" ]
1
2020-10-29T02:07:33.000Z
2020-10-29T09:34:24.000Z
tests/oauth1/client.py
ashleysommer/sanic-oauthlib
9d25d5b34180678e2b4437efb7d6cd7e0a62b4ce
[ "BSD-3-Clause" ]
2
2019-12-23T15:32:05.000Z
2020-02-11T02:01:17.000Z
from inspect import isawaitable from sanic import Sanic from sanic.response import redirect, json, text from sanic.exceptions import SanicException from sanic_plugin_toolkit import SanicPluginRealm from sanic_oauthlib.client import oauthclient if __name__ == '__main__': app = Sanic("test_main") create_clie...
29.517544
86
0.626449
1b34238a33e3602211d94b11d52414e9597c513e
5,154
py
Python
lph/IntentLearner.py
PhilippeMorere/learning-to-plan-hierarchically
7342a835127a17160de69e12c0e682472d8c6f8f
[ "MIT" ]
6
2019-07-09T06:47:09.000Z
2021-01-25T15:43:41.000Z
lph/IntentLearner.py
PhilippeMorere/learning-to-plan-hierarchically
7342a835127a17160de69e12c0e682472d8c6f8f
[ "MIT" ]
null
null
null
lph/IntentLearner.py
PhilippeMorere/learning-to-plan-hierarchically
7342a835127a17160de69e12c0e682472d8c6f8f
[ "MIT" ]
2
2019-07-09T06:47:14.000Z
2019-07-18T03:41:23.000Z
from functools import reduce from operator import add from lph.IntentPlanner import IntentPlanner from lph.Skill import SkillBase, Skill, PrimitiveSkill from lph.utils import SparseState, Effect
40.582677
79
0.620489
1b34a6e317513d1c6eae487960fb1aa32926aad5
2,182
py
Python
linear_ucb.py
nizamphoenix/Bandits
83f6298e6339a897887b7bd30efe3d29f92c8509
[ "MIT" ]
null
null
null
linear_ucb.py
nizamphoenix/Bandits
83f6298e6339a897887b7bd30efe3d29f92c8509
[ "MIT" ]
null
null
null
linear_ucb.py
nizamphoenix/Bandits
83f6298e6339a897887b7bd30efe3d29f92c8509
[ "MIT" ]
null
null
null
from mab import MAB
49.590909
164
0.63428
1b3af065e11ddefc9d69f8908fab887ea05f1e93
1,233
py
Python
plugins_/open_package.py
calculuswhiz/PackageDev
76fe412eefbc775f647591fbd2c526391aea98fc
[ "MIT" ]
null
null
null
plugins_/open_package.py
calculuswhiz/PackageDev
76fe412eefbc775f647591fbd2c526391aea98fc
[ "MIT" ]
null
null
null
plugins_/open_package.py
calculuswhiz/PackageDev
76fe412eefbc775f647591fbd2c526391aea98fc
[ "MIT" ]
null
null
null
import glob import os import sublime import sublime_plugin from .create_package import _open_folder_in_st, _is_override_package __all__ = ('PackagedevOpenPackageCommand',) OVERRIDE_SUFFIX = " [*Override*]"
26.234043
69
0.675588
1b3b726fdd352738b9bb7f371ccb99a43f38c221
2,493
py
Python
examples/demo/quiver.py
ContinuumIO/chaco
e4a42b91cb25ef7191fd465caaef2c3256fc668e
[ "BSD-3-Clause" ]
3
2017-09-17T17:32:06.000Z
2022-03-15T13:04:43.000Z
examples/demo/quiver.py
ContinuumIO/chaco
e4a42b91cb25ef7191fd465caaef2c3256fc668e
[ "BSD-3-Clause" ]
null
null
null
examples/demo/quiver.py
ContinuumIO/chaco
e4a42b91cb25ef7191fd465caaef2c3256fc668e
[ "BSD-3-Clause" ]
5
2015-05-17T16:08:11.000Z
2021-02-23T09:23:42.000Z
""" Draws a vector or "quiver" plot of a set of random points. - Left-drag pans the plot. - Mousewheel up and down zooms the plot in and out. - Pressing "z" brings up the Zoom Box, and you can click-drag a rectangular region to zoom. If you use a sequence of zoom boxes, pressing alt-left-arrow and alt-right-a...
31.556962
80
0.661853
1b3c0f287457855644bb8a0b8a4eb6a1990d11e6
2,005
py
Python
resolwe/flow/executors/local/run.py
JureZmrzlikar/resolwe
2c967b5fa06b6b7daeee88b3fca4cd19d10d99c3
[ "Apache-2.0" ]
null
null
null
resolwe/flow/executors/local/run.py
JureZmrzlikar/resolwe
2c967b5fa06b6b7daeee88b3fca4cd19d10d99c3
[ "Apache-2.0" ]
null
null
null
resolwe/flow/executors/local/run.py
JureZmrzlikar/resolwe
2c967b5fa06b6b7daeee88b3fca4cd19d10d99c3
[ "Apache-2.0" ]
null
null
null
""".. Ignore pydocstyle D400. .. autoclass:: resolwe.flow.executors.local.run.FlowExecutor """ import asyncio import logging import os import shlex from asyncio import subprocess from ..run import BaseFlowExecutor logger = logging.getLogger(__name__)
27.465753
84
0.616958
1b3cb28fe5d89cdbcd53ffd981cabf41b464fad3
11,974
py
Python
affectnet.py
orena1/DAN
49247ad0cad2a67057d184fa92d15fe2e7bb2cb6
[ "MIT" ]
50
2021-09-16T14:22:54.000Z
2022-03-25T17:10:55.000Z
affectnet.py
orena1/DAN
49247ad0cad2a67057d184fa92d15fe2e7bb2cb6
[ "MIT" ]
11
2021-09-23T06:40:50.000Z
2022-03-25T03:11:45.000Z
affectnet.py
orena1/DAN
49247ad0cad2a67057d184fa92d15fe2e7bb2cb6
[ "MIT" ]
16
2021-09-16T14:22:56.000Z
2022-03-29T12:52:00.000Z
import os import glob from tqdm import tqdm import argparse from PIL import Image import numpy as np import pandas as pd import torch import torch.nn as nn import torch.utils.data as data from torchvision import transforms, datasets from networks.dan import DAN def run_training(): args = parse_args() d...
38.133758
138
0.576416
1b3e671c11ff77239e8ab8e03baca3eb7d514c79
5,007
py
Python
main.py
Dropout1337/ComboWatermarker
6c1dfa9fb6f12dc2924268fcd91458b839796824
[ "MIT" ]
6
2020-09-20T22:23:26.000Z
2021-06-30T16:14:25.000Z
main.py
Dropout1337/ComboWatermarker
6c1dfa9fb6f12dc2924268fcd91458b839796824
[ "MIT" ]
null
null
null
main.py
Dropout1337/ComboWatermarker
6c1dfa9fb6f12dc2924268fcd91458b839796824
[ "MIT" ]
null
null
null
import os import keyboard banner = '''\u001b[34m____ ____ _ _ ___ ____ _ _ _ ____ ___ ____ ____ _ _ ____ ____ _ _ | | | |\/| |__] | | | | | |__| | |___ |__/ |\/| |__| |__/ |_/ |___ |__| | | |__] |__| |_|_| | | | |___ | \ | | | | | \ | \_ \u001b[37m''' if __name__ == "__main__": ...
43.53913
126
0.46415
1b3eb815d7dc1334894f133246fe3bca46ed81e2
216,073
py
Python
fixtures/webui_test.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
fixtures/webui_test.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
fixtures/webui_test.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
from netaddr import IPNetwork from selenium import webdriver from pyvirtualdisplay import Display from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.common.exceptions import WebDriverException import time import random import fixtures from ipam_test imp...
60.406206
542
0.542983
1b416d5cad38f7b81e96e9dfe23519772715bfa6
2,064
py
Python
generate_readme.py
mlazaric/Chebyshev
d55dc6f0a1ff2ac3e037476a9c3785ff6953c0a6
[ "MIT" ]
14
2018-12-05T18:02:42.000Z
2022-02-09T08:16:23.000Z
generate_readme.py
mlazaric/Chebyshev
d55dc6f0a1ff2ac3e037476a9c3785ff6953c0a6
[ "MIT" ]
2
2018-12-21T19:07:23.000Z
2022-01-10T02:55:37.000Z
generate_readme.py
mlazaric/Chebyshev
d55dc6f0a1ff2ac3e037476a9c3785ff6953c0a6
[ "MIT" ]
null
null
null
#! /bin/python import re from sympy import exp, ln, sin, cos from sympy.abc import x from chebyshev.approximation import get_best_approximation table_of_contents = [] function_entries = [] generate_for_readme(get_best_approximation(exp(x), (0, 1), 6, 7, point=0.5)) generate_for_readme(get_best_approximation(ln(1 +...
35.586207
180
0.718508
1b42bdaa222371750f61ef24741923cb5ba6d385
3,392
py
Python
tests/test_datasets.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
47
2021-08-10T09:30:53.000Z
2022-03-29T07:53:43.000Z
tests/test_datasets.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
1
2021-08-07T13:46:49.000Z
2021-08-07T13:46:49.000Z
tests/test_datasets.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
6
2021-08-12T02:40:43.000Z
2022-01-31T16:12:40.000Z
import random import pytest import numpy as np import torch from torch.utils.data import DataLoader from centernet_lightning.datasets import COCODataset, VOCDataset, CrowdHumanDataset, MOTTrackingSequence, MOTTrackingDataset, KITTITrackingSequence, KITTITrackingDataset from centernet_lightning.datasets.utils import g...
34.262626
169
0.65684
1b437fea1f8494157ef38e2b0fdd72c52d6e8cfe
768
py
Python
docs/run.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
1
2022-01-12T12:36:20.000Z
2022-01-12T12:36:20.000Z
docs/run.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
null
null
null
docs/run.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
null
null
null
from werkzeug.middleware.dispatcher import DispatcherMiddleware from components_page import register_apps as register_component_apps from examples import register_apps as register_example_apps from markdown_to_html import convert_all_markdown_files from server import create_server convert_all_markdown_files() server...
30.72
68
0.807292
1b44cd65539b9da5eb8666339aae04096641f0bd
1,962
py
Python
myia/operations/op_array_getitem_wrap.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
222
2019-02-13T07:56:28.000Z
2022-03-28T07:07:54.000Z
myia/operations/op_array_getitem_wrap.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
107
2019-02-12T21:56:39.000Z
2022-03-12T01:08:03.000Z
myia/operations/op_array_getitem_wrap.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
27
2017-11-14T17:58:15.000Z
2019-01-14T01:36:09.000Z
"""Implementation of the 'array_getitem_wrap' operation.""" from ..lib import Slice, core, myia_static from ..operations import array_getitem, reshape __operation_defaults__ = { "name": "array_getitem_wrap", "registered_name": "array_getitem_wrap", "mapping": array_getitem_wrap, "python_implementa...
30.184615
80
0.563201
1b4626f96dec1d654d95e876fe84b62e1e6877b4
1,426
py
Python
fledgling/app/entity/task.py
PracticalCleanArchitecture/fledgling
ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683
[ "MIT" ]
1
2021-08-28T16:26:44.000Z
2021-08-28T16:26:44.000Z
fledgling/app/entity/task.py
PracticalCleanArchitecture/fledgling
ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683
[ "MIT" ]
null
null
null
fledgling/app/entity/task.py
PracticalCleanArchitecture/fledgling
ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from abc import ABC, abstractmethod from datetime import datetime from enum import Enum from typing import List, Optional, Tuple, Union
22.634921
75
0.581346
1b462ceaf5cd2d06ce934814a8e36a43af26e4ed
977
py
Python
turbustat/tests/test_vca.py
keflavich/TurbuStat
a6fac4c0d10473a74c62cce4a9c6a30773a955b1
[ "MIT" ]
null
null
null
turbustat/tests/test_vca.py
keflavich/TurbuStat
a6fac4c0d10473a74c62cce4a9c6a30773a955b1
[ "MIT" ]
null
null
null
turbustat/tests/test_vca.py
keflavich/TurbuStat
a6fac4c0d10473a74c62cce4a9c6a30773a955b1
[ "MIT" ]
null
null
null
# Licensed under an MIT open source license - see LICENSE ''' Test functions for VCA ''' from unittest import TestCase import numpy as np import numpy.testing as npt from ..statistics import VCA, VCA_Distance from ._testing_data import \ dataset1, dataset2, computed_data, computed_distances
27.138889
70
0.62129
1b469269698aba27e175e7d85e9c7b4f767ceec3
7,254
py
Python
ElectroWeakAnalysis/ZMuMu/python/ZMuMuCategoriesPlots_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
ElectroWeakAnalysis/ZMuMu/python/ZMuMuCategoriesPlots_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
ElectroWeakAnalysis/ZMuMu/python/ZMuMuCategoriesPlots_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms from ElectroWeakAnalysis.ZMuMu.ZMuMuCategoriesSequences_cff import * import copy zPlots = cms.PSet( histograms = cms.VPSet( cms.PSet( min = cms.untracked.double(0.0), max = cms.untracked.double(200.0), nbins = cms.untracked.int32(200), name = cms.untra...
34.056338
95
0.809347
1b4acf3e59a5b34f3e0546db195f5c9514fda9a2
1,385
py
Python
pages/index.py
cshields143/unit2project
f8ac979137a421758b56452321886955d596b985
[ "MIT" ]
null
null
null
pages/index.py
cshields143/unit2project
f8ac979137a421758b56452321886955d596b985
[ "MIT" ]
null
null
null
pages/index.py
cshields143/unit2project
f8ac979137a421758b56452321886955d596b985
[ "MIT" ]
null
null
null
# Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import plotly.express as px # Imports from this application from app import app layout = dbc.Col([ html.Button(...
43.28125
190
0.577617
1b4b3d3ab6ebe0ec3481ce7190fc80763629166b
937
py
Python
applications/tensorflow/contrastive_divergence_vae/utils/train_utils.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/contrastive_divergence_vae/utils/train_utils.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/contrastive_divergence_vae/utils/train_utils.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. # coding=utf-8 import tensorflow as tf from utils.optimisers import VcdRMSPropOptimizer def vcd_lr_schedule(base_lr, current_step, total_steps, n_epoch, iter_timescale=15000, decay_factor=0.9): """ Exponential LR decay: lr <- lr * 0.9 applied every 15000 iterations """ ...
36.038462
105
0.499466
1b4c36ef85d23630099a5b73f9ef9b5386a12e64
1,032
py
Python
batch_jobs/ewas_predictions/python_caller_features.py
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
f6913ce4ec1f6aed358ba27fdf575257f712c132
[ "MIT" ]
null
null
null
batch_jobs/ewas_predictions/python_caller_features.py
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
f6913ce4ec1f6aed358ba27fdf575257f712c132
[ "MIT" ]
null
null
null
batch_jobs/ewas_predictions/python_caller_features.py
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
f6913ce4ec1f6aed358ba27fdf575257f712c132
[ "MIT" ]
null
null
null
import sys import os if sys.platform == 'linux': sys.path.append('/n/groups/patel/samuel/Aging') elif sys.platform == 'darwin': sys.path.append('/Users/samuel/Desktop/Aging') from aging.model.environment_predictor import EnvironmentPredictor name = sys.argv[1] n_iter = int(sys.argv[2]) target_dataset = sy...
26.461538
88
0.768411
1b4e40b3667a2b8543c968bbe653fc8de682b7a8
99
py
Python
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/connectors/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/connectors/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/connectors/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .kafka import init_kafka, KafkaSettings from .rabbitmq import init_rabbitmq, RabbitmqSettings
33
53
0.858586
1b4f250eb95e76631c9784db08283d905057b857
4,454
py
Python
test.py
KKN18/ViT-pytorch
9c053579cf93c303afd817e8eacad3fbe0afb483
[ "MIT" ]
null
null
null
test.py
KKN18/ViT-pytorch
9c053579cf93c303afd817e8eacad3fbe0afb483
[ "MIT" ]
null
null
null
test.py
KKN18/ViT-pytorch
9c053579cf93c303afd817e8eacad3fbe0afb483
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, division, print_function import logging import argparse import os import random import numpy as np from datetime import timedelta import torch import torch.distributed as dist from tqdm import tqdm from torch.utils.tensorboard import SummaryWriter from apex imp...
32.75
93
0.605299
1b50b3ddf987ed769b7797b25c5046700b7a5755
4,172
py
Python
data/scons/icl12.py
mmanzi/gradientdomain-mitsuba
c7c94e66e17bc41cca137717971164de06971bc7
[ "Unlicense" ]
92
2015-09-30T20:41:19.000Z
2022-02-08T03:28:06.000Z
data/scons/icl12.py
mmanzi/gradientdomain-mitsuba
c7c94e66e17bc41cca137717971164de06971bc7
[ "Unlicense" ]
null
null
null
data/scons/icl12.py
mmanzi/gradientdomain-mitsuba
c7c94e66e17bc41cca137717971164de06971bc7
[ "Unlicense" ]
21
2015-09-29T20:20:04.000Z
2021-01-13T12:20:40.000Z
import os, sys, subprocess, copy, re def normalize_env(shellenv, keys): """Given a dictionary representing a shell environment, add the variables from os.environ needed for the processing of .bat files; the keys are controlled by the keys argument. It also makes sure the environment values are correctly encoded....
30.452555
109
0.704938
1b52292b45e0add22d3b789bcff47a696f671cfa
2,740
py
Python
src/backend/expungeservice/test/test_expunger.py
htharker42/recordExpung
c4cc21918f9974dc58bc6265407edbaa28d8b674
[ "CNRI-Python", "Linux-OpenIB", "CECILL-B" ]
null
null
null
src/backend/expungeservice/test/test_expunger.py
htharker42/recordExpung
c4cc21918f9974dc58bc6265407edbaa28d8b674
[ "CNRI-Python", "Linux-OpenIB", "CECILL-B" ]
null
null
null
src/backend/expungeservice/test/test_expunger.py
htharker42/recordExpung
c4cc21918f9974dc58bc6265407edbaa28d8b674
[ "CNRI-Python", "Linux-OpenIB", "CECILL-B" ]
null
null
null
import datetime import copy import unittest from expungeservice.expunger import * """ This mainly tests if we're able to construct the objects. """
33.012048
76
0.584672
1b52e20e625677fa6203cae0d82c1a6e58aa1a2a
254
py
Python
django_tutorial/views/error_views.py
twtrubiks/django-tutorial
9cb92ca03ba3de574b124446ab49c94f9900dcc8
[ "MIT" ]
431
2017-04-09T11:44:30.000Z
2022-03-09T09:22:00.000Z
django_tutorial/views/error_views.py
zshen00/django-tutorial
9cb92ca03ba3de574b124446ab49c94f9900dcc8
[ "MIT" ]
1
2017-10-26T06:17:58.000Z
2018-04-27T06:52:01.000Z
django_tutorial/views/error_views.py
zshen00/django-tutorial
9cb92ca03ba3de574b124446ab49c94f9900dcc8
[ "MIT" ]
138
2017-04-10T13:36:03.000Z
2022-03-16T13:16:09.000Z
from django.shortcuts import render
25.4
83
0.783465
1b535c50608ad5d4557f8f150480d6750d1307a3
4,092
py
Python
IMDB Sentiment Analysis using LSTMs, CNNs and BERT/main.py
lucalaringe/pytorch-examples
5d5682bff0490748b7358ad71c6afc22bfdafab5
[ "MIT" ]
1
2018-11-21T07:01:16.000Z
2018-11-21T07:01:16.000Z
IMDB Sentiment Analysis using LSTMs, CNNs and BERT/main.py
lucalaringe/pytorch-examples
5d5682bff0490748b7358ad71c6afc22bfdafab5
[ "MIT" ]
null
null
null
IMDB Sentiment Analysis using LSTMs, CNNs and BERT/main.py
lucalaringe/pytorch-examples
5d5682bff0490748b7358ad71c6afc22bfdafab5
[ "MIT" ]
1
2018-11-29T06:51:06.000Z
2018-11-29T06:51:06.000Z
# importing the libraries I need import numpy as np import matplotlib.pyplot as plt import pickle import os import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from torch.utils.data import Dataset, DataLoader import nltk # natural ...
39.728155
123
0.676197
1b553f907737e4266f1cd586e890b52f138a78d7
6,708
py
Python
pooch/tests/test_hashes.py
rabernat/pooch
bc32d4eecec115e1fdf9bd4e306df5a6c22661fd
[ "BSD-3-Clause" ]
null
null
null
pooch/tests/test_hashes.py
rabernat/pooch
bc32d4eecec115e1fdf9bd4e306df5a6c22661fd
[ "BSD-3-Clause" ]
null
null
null
pooch/tests/test_hashes.py
rabernat/pooch
bc32d4eecec115e1fdf9bd4e306df5a6c22661fd
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018 The Pooch Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause # # This code is part of the Fatiando a Terra project (https://www.fatiando.org) # # pylint: disable=redefined-outer-name """ Test the hash calculation and checking functions. ""...
35.305263
93
0.714669
1b5728fb13835525abdbb3be08ce7804a39a37e6
134
py
Python
TemplateEngineForRESP-F3T/RoofFunctions/trigonometric_function.py
riku-sakamoto/RESP-ProgramTips
45be5afb90283e56ddf5d32681c58dec17986ba8
[ "MIT" ]
1
2021-10-13T02:07:17.000Z
2021-10-13T02:07:17.000Z
TemplateEngineForRESP-F3T/RoofFunctions/trigonometric_function.py
riku-sakamoto/RESP-ProgramTips
45be5afb90283e56ddf5d32681c58dec17986ba8
[ "MIT" ]
null
null
null
TemplateEngineForRESP-F3T/RoofFunctions/trigonometric_function.py
riku-sakamoto/RESP-ProgramTips
45be5afb90283e56ddf5d32681c58dec17986ba8
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import numpy as np
13.4
68
0.61194
1b579f594f5cf06701a36a04347c2a0975c62ec7
2,534
py
Python
tidal_precession.py
ddeb32/APR_Testing
08cf346e6047f75ad57a7c9b497ea2dd9cb13f59
[ "MIT" ]
null
null
null
tidal_precession.py
ddeb32/APR_Testing
08cf346e6047f75ad57a7c9b497ea2dd9cb13f59
[ "MIT" ]
null
null
null
tidal_precession.py
ddeb32/APR_Testing
08cf346e6047f75ad57a7c9b497ea2dd9cb13f59
[ "MIT" ]
null
null
null
##################################################################### ### Evaluating the tidal component to the precession rate ### ##################################################################### import numpy as np import pandas as pd from numpy import pi from scipy import integrate import scipy.consta...
28.155556
98
0.480268
1b588099d4b30e26fb0a274ed99ed4ea86b7a285
1,038
py
Python
appcred.py
tamalsaha/keystone-demo
dd13b3d283565f72f38d696b235be4e2ad2c2845
[ "Apache-2.0" ]
1
2018-07-31T09:25:53.000Z
2018-07-31T09:25:53.000Z
appcred.py
tamalsaha/keystone-demo
dd13b3d283565f72f38d696b235be4e2ad2c2845
[ "Apache-2.0" ]
null
null
null
appcred.py
tamalsaha/keystone-demo
dd13b3d283565f72f38d696b235be4e2ad2c2845
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from keystoneauth1.identity import v3 from keystoneauth1 import session from keystoneclient.v3 import client from pprint import pprint import os if __name__ == "__main__": main()
27.315789
52
0.754335
1b5abd620bf6c3fd9ffce5839f82ac6ace822f1a
664
py
Python
data/admin.py
FSavoy/visuo-server
d9c93ec7ae9dd033f3f0290381ddbac413bb6f9a
[ "BSD-3-Clause" ]
2
2017-11-16T08:32:46.000Z
2018-04-02T13:36:42.000Z
data/admin.py
FSavoy/visuo-server
d9c93ec7ae9dd033f3f0290381ddbac413bb6f9a
[ "BSD-3-Clause" ]
null
null
null
data/admin.py
FSavoy/visuo-server
d9c93ec7ae9dd033f3f0290381ddbac413bb6f9a
[ "BSD-3-Clause" ]
2
2017-11-16T08:33:52.000Z
2021-05-12T06:31:54.000Z
from django.contrib.gis import admin # Register your models here. from models import SkyPicture, MeasuringDevice, WeatherMeasurement, RadiosondeMeasurement from django.contrib.gis import forms # Custom interface for selecting the location of devices admin.site.register(SkyPicture) admin.site.register(WeatherMea...
34.947368
89
0.813253
1b5ae15c5f93d6a5c129b200254b544ee0bfa0ee
1,577
py
Python
setup.py
ilkka/nap
3ea7b41ef6b24b7e127bc87bb010d8a8bb18a4bd
[ "MIT" ]
31
2015-02-11T22:36:26.000Z
2019-03-26T17:00:36.000Z
setup.py
ilkka/nap
3ea7b41ef6b24b7e127bc87bb010d8a8bb18a4bd
[ "MIT" ]
6
2015-11-16T13:29:34.000Z
2019-10-28T13:37:57.000Z
setup.py
ilkka/nap
3ea7b41ef6b24b7e127bc87bb010d8a8bb18a4bd
[ "MIT" ]
11
2015-04-15T00:09:08.000Z
2020-08-25T13:50:21.000Z
#!/usr/bin/env python from pip.req import parse_requirements # parse_requirements() returns generator of pip.req.InstallRequirement objects install_reqs = parse_requirements('requirements.txt') # reqs is a list of requirement # e.g. ['django==1.5.1', 'mezzanine==1.4.6'] reqs = [str(ir.req) for ir in install_reqs] ...
28.160714
78
0.641725
1b5b58c46eceee94ff2083f63bbd9128f0ea25c7
555
py
Python
ivy/functional/backends/jax/statistical.py
odehDanOps/ivy
996cabd0901ed331d5e8761e2cdee429d0ca8d43
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/jax/statistical.py
odehDanOps/ivy
996cabd0901ed331d5e8761e2cdee429d0ca8d43
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/jax/statistical.py
odehDanOps/ivy
996cabd0901ed331d5e8761e2cdee429d0ca8d43
[ "Apache-2.0" ]
null
null
null
# global import jax.numpy as jnp from typing import Tuple, Union # Array API Standard # # -------------------# # Extra # # ------#
23.125
72
0.569369
1b5dfc54272c0e15842823c60d77faea8d0bda76
2,955
py
Python
tests/generate_new_site/utilities/test_tables.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
1
2020-10-01T01:07:11.000Z
2020-10-01T01:07:11.000Z
tests/generate_new_site/utilities/test_tables.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
tests/generate_new_site/utilities/test_tables.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
from unittest import mock from unittest.mock import patch from src.generate_new_site.utilities import tables from pathlib import Path ############################### # PathTable integration tests # ############################### ############################### # PageTable integration tests # ######################...
33.579545
101
0.609475
1b5e5af181654c4b7294055065638f813e904dc8
910
py
Python
tools/dnase/wellingtonAnalysis.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-02-05T13:19:58.000Z
2021-02-05T13:19:58.000Z
tools/dnase/wellingtonAnalysis.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
tools/dnase/wellingtonAnalysis.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
import sys import pyDNase import pyDNase.footprinting as fp import subprocess import os if __name__ == "__main__": #There should be two input files: #1. original .bam file #2. fseq output .bed file #3. folder needs to contain .bam.bai file for reference input_bed_name = sys.argv[1] input_bam...
27.575758
65
0.708791
1b5ef5d971968c8909b478034323bf06ff019c92
3,432
py
Python
idiotic/util/blocks/http.py
idiotic/idiotic
283b2919356c0735e43d1b42526c54fc7babf7d6
[ "MIT" ]
7
2016-03-27T04:26:05.000Z
2021-02-24T17:16:10.000Z
idiotic/util/blocks/http.py
idiotic/idiotic
283b2919356c0735e43d1b42526c54fc7babf7d6
[ "MIT" ]
38
2016-03-18T05:53:04.000Z
2017-07-01T05:06:36.000Z
idiotic/util/blocks/http.py
idiotic/idiotic
283b2919356c0735e43d1b42526c54fc7babf7d6
[ "MIT" ]
null
null
null
import logging from urllib.parse import urlparse, urlunparse from idiotic import block from idiotic.util.resources import http import aiohttp import asyncio import json import types log = logging.getLogger(__name__)
32.074766
117
0.516026
1b5f5814e99811388d8791f4808e71fca930b211
651
py
Python
chapter9/msfrpc/msfrpc_connect.py
abbbhucho/Mastering-Python-for-Networking-and-Security
f4fb1131253e9daad8da501c297758fdcedfbac3
[ "MIT" ]
98
2018-05-13T20:41:43.000Z
2022-03-31T00:24:01.000Z
chapter9/msfrpc/msfrpc_connect.py
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
4cf04d1758f17ae378b5e3422404e5b7a174a243
[ "MIT" ]
null
null
null
chapter9/msfrpc/msfrpc_connect.py
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
4cf04d1758f17ae378b5e3422404e5b7a174a243
[ "MIT" ]
62
2018-06-19T13:46:34.000Z
2022-02-11T05:47:24.000Z
# -*- encoding: utf-8 -*- import msfrpc client = msfrpc.Msfrpc({'uri':'/msfrpc', 'port':'5553', 'host':'127.0.0.1', 'ssl': True}) auth = client.login('msf','password') if auth: print str(client.call('core.version'))+'\n' print str(client.call('core.thread_list', []))+'\n' print str(client.call('job.list', [...
46.5
89
0.597542
1b6202aaa27a1de6b25a387e3e874186d7ae1c19
351
py
Python
examples/anagrams_demo.py
aathi2002/open-tamil
84161b622b7cb5d369b4ab4e8025dcf432e867e8
[ "MIT" ]
218
2016-03-19T20:59:17.000Z
2022-03-31T03:35:32.000Z
examples/anagrams_demo.py
aathi2002/open-tamil
84161b622b7cb5d369b4ab4e8025dcf432e867e8
[ "MIT" ]
132
2016-02-23T06:16:32.000Z
2022-02-17T05:16:43.000Z
examples/anagrams_demo.py
aathi2002/open-tamil
84161b622b7cb5d369b4ab4e8025dcf432e867e8
[ "MIT" ]
62
2016-03-19T20:59:26.000Z
2022-03-01T11:34:48.000Z
import codecs from solthiruthi.dictionary import * from tamil import wordutils TVU, TVU_size = DictionaryBuilder.create(TamilVU) ag, ag2 = wordutils.anagrams_in_dictionary(TVU) with codecs.open("demo.txt", "w", "utf-8") as fp: itr = 1 for k, c in ag: v = ag2[k] fp.write("%03d) %s\n" % (itr, " ...
25.071429
53
0.623932
1b62a0d4ec377c212288a73dec2ea0b7124e85ec
659
py
Python
examples/notiltangle.py
jckw/Adafruit_LSM9DS0
98ff135fbf1702160a9277df1fd637022f91e234
[ "MIT" ]
6
2017-11-14T07:21:58.000Z
2018-08-24T03:47:58.000Z
examples/notiltangle.py
jckw/Adafruit_LSM9DS0
98ff135fbf1702160a9277df1fd637022f91e234
[ "MIT" ]
null
null
null
examples/notiltangle.py
jckw/Adafruit_LSM9DS0
98ff135fbf1702160a9277df1fd637022f91e234
[ "MIT" ]
2
2017-09-26T16:57:16.000Z
2018-12-06T12:33:11.000Z
# Simple example whereby the angle is calculated, assuming the magnetometer is flat, # i.e. there is no tilt-compensation. # Author: Jack Weatherilt # License: Public Domain import math import time # Import the LSM9DS0 module import Adafruit_LSM9DS0 # Create new LSM9DS0 instance imu = Adafruit_LSM9DS0.LSM9DS0() whil...
21.258065
84
0.743551
1b6463efb1da06009a0314631e1b650f5443584c
1,702
py
Python
proj/python/opencvtest/Test/FaceCountingCCTV-master/CCTV-Code.py
joalvis777/c-through
7e8bf43b88436edb4ffb779f75e641941216ea11
[ "MIT" ]
null
null
null
proj/python/opencvtest/Test/FaceCountingCCTV-master/CCTV-Code.py
joalvis777/c-through
7e8bf43b88436edb4ffb779f75e641941216ea11
[ "MIT" ]
null
null
null
proj/python/opencvtest/Test/FaceCountingCCTV-master/CCTV-Code.py
joalvis777/c-through
7e8bf43b88436edb4ffb779f75e641941216ea11
[ "MIT" ]
null
null
null
import numpy as np import datetime import smtplib import logging import time import csv import cv2 print ("======================START======================") all_count = 0 #Checking finding count true_count = 0 #Checking detection count #open result CSV file file = open('./result/res_Insert_name.csv', 'w') #...
30.945455
99
0.611633
1b64d2f0be129dd3396f04b7059ff171be4e05bd
3,039
py
Python
Scraping/Code/scraping_tools.py
Jhagrut/Sports-Bot
4c1cf06cf97317644ed924455abcf9a9cc2eb149
[ "MIT" ]
null
null
null
Scraping/Code/scraping_tools.py
Jhagrut/Sports-Bot
4c1cf06cf97317644ed924455abcf9a9cc2eb149
[ "MIT" ]
null
null
null
Scraping/Code/scraping_tools.py
Jhagrut/Sports-Bot
4c1cf06cf97317644ed924455abcf9a9cc2eb149
[ "MIT" ]
1
2021-09-06T12:16:34.000Z
2021-09-06T12:16:34.000Z
""" Scraping Tools Provides all tools for getting data onto/off the pi and submitting back to google drive. """ from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import requests import time # for twint import twint import nest_asyncio
27.880734
88
0.582757
1b653b94676163dc7e361fd0adb14baf9eddd8ca
6,522
py
Python
tests/api/test_rest.py
oarepo/oarepo-communities
eb05dbdd5caf29e8741df5213456220d8f359cfa
[ "MIT" ]
null
null
null
tests/api/test_rest.py
oarepo/oarepo-communities
eb05dbdd5caf29e8741df5213456220d8f359cfa
[ "MIT" ]
24
2021-02-01T17:30:33.000Z
2022-02-08T09:54:22.000Z
tests/api/test_rest.py
oarepo/oarepo-communities
eb05dbdd5caf29e8741df5213456220d8f359cfa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CESNET. # # OARepo-Communities is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """OArepo module that adds support for communities""" from flask import url_for from invenio_access import Ac...
39.053892
114
0.657927
1b66af2900d9a50cf311b38e534f344bfbeea028
5,073
py
Python
code/datasets/adult.py
eth-sri/lcifer
4a21f9c330d3cc458153689442d2fca702ed837b
[ "MIT" ]
23
2020-02-25T12:49:59.000Z
2021-11-01T13:59:39.000Z
code/datasets/adult.py
eth-sri/lcifer
4a21f9c330d3cc458153689442d2fca702ed837b
[ "MIT" ]
2
2020-04-15T08:30:29.000Z
2021-05-15T16:11:30.000Z
code/datasets/adult.py
eth-sri/lcifer
4a21f9c330d3cc458153689442d2fca702ed837b
[ "MIT" ]
7
2020-02-24T17:24:44.000Z
2022-01-16T03:29:43.000Z
from os import path from urllib import request import numpy as np import pandas as pd import torch from sklearn.model_selection import train_test_split from datasets import AbstractDataset
46.541284
120
0.673566
1b67df276aa186215a09aa4ae47cdc677ec9f777
7,854
py
Python
data/kitti_raw_loader.py
infinityofspace/SfmLearner-Pytorch
531fc2d1928d7d7575c5d486ce957995639ebdc9
[ "MIT" ]
908
2017-10-20T14:24:38.000Z
2022-03-29T09:54:56.000Z
data/kitti_raw_loader.py
infinityofspace/SfmLearner-Pytorch
531fc2d1928d7d7575c5d486ce957995639ebdc9
[ "MIT" ]
133
2017-10-31T09:25:44.000Z
2022-03-25T20:27:18.000Z
data/kitti_raw_loader.py
infinityofspace/SfmLearner-Pytorch
531fc2d1928d7d7575c5d486ce957995639ebdc9
[ "MIT" ]
236
2017-10-21T06:34:33.000Z
2022-02-23T08:15:31.000Z
from __future__ import division import numpy as np from path import Path from imageio import imread from skimage.transform import resize as imresize from kitti_util import pose_from_oxts_packet, generate_depth_map, read_calib_file, transform_from_rot_trans from datetime import datetime
42.918033
119
0.564298
1b686f4d493c18d208dadc42777a3824c6ba09a2
4,622
py
Python
process_patient_data/draw_general_samples.py
ChrisSheng97/hackauton
7c53579974604e8bc97363e038aaafb0aad6e7b4
[ "MIT" ]
1
2020-05-03T11:24:16.000Z
2020-05-03T11:24:16.000Z
process_patient_data/draw_general_samples.py
sumrania/hackauton
7c53579974604e8bc97363e038aaafb0aad6e7b4
[ "MIT" ]
null
null
null
process_patient_data/draw_general_samples.py
sumrania/hackauton
7c53579974604e8bc97363e038aaafb0aad6e7b4
[ "MIT" ]
1
2019-07-26T20:13:58.000Z
2019-07-26T20:13:58.000Z
import pickle import numpy as np import feature_extraction as fe """ source : https://www.census.gov/quickfacts/fact/table/alleghenycountypennsylvania/PST045216 """ CURR_YEAR = 2015 # gender FEMALE_PERCENT = 0.517 # 4327 # MALE = 0.483 # 3134 # age # BELOW_18 = 0.189 # 0 OVER_65_PERCENT = 0.18 # 4353 # OTHER = 0.631 #...
35.829457
129
0.618563
1b6956f7c730ca88993d0e21d27dfbe960d89092
480
py
Python
1 Semestre/Analise e Projeto de Algoritmos (Mauricio)/Aula 5 Aplicacoes com Selecao/Exercicio 8.py
LukasHeidern/Univem-Aulas
3e7f24eb90a0bfe2af8d49ead958cf4d7072257c
[ "MIT" ]
null
null
null
1 Semestre/Analise e Projeto de Algoritmos (Mauricio)/Aula 5 Aplicacoes com Selecao/Exercicio 8.py
LukasHeidern/Univem-Aulas
3e7f24eb90a0bfe2af8d49ead958cf4d7072257c
[ "MIT" ]
null
null
null
1 Semestre/Analise e Projeto de Algoritmos (Mauricio)/Aula 5 Aplicacoes com Selecao/Exercicio 8.py
LukasHeidern/Univem-Aulas
3e7f24eb90a0bfe2af8d49ead958cf4d7072257c
[ "MIT" ]
null
null
null
'''8) Elabore um algoritmo que leia 3 valores inteiros (a,b e c) e os coloque em ordem crescente, de modo que em a fique o menor valor, em b o valor intermedirio e em c o maior valor. ''' a = int(input("Digite o valor do primeiro valor: ")) b = int(input("Digite o valor do segundo valor: ")) c = int(input("Digite o...
30
84
0.61875
1b6b9bb3b81f1790e19b1a9ea45c871f7adbdef4
796
py
Python
python_developer_tools/machinelearning/knn.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
32
2021-06-21T04:49:48.000Z
2022-03-29T05:46:59.000Z
python_developer_tools/machinelearning/knn.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
1
2021-11-12T03:45:55.000Z
2021-11-12T03:45:55.000Z
python_developer_tools/machinelearning/knn.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
10
2021-06-03T08:05:05.000Z
2021-12-13T03:10:42.000Z
# !/usr/bin/env python # -- coding: utf-8 -- # @Author zengxiaohui # Datatime:8/20/2021 8:39 AM # @File:knn from sklearn.model_selection import train_test_split from sklearn.neighbors import KNeighborsClassifier from sklearn import datasets X, y = datasets.load_iris(return_X_y=True) X_train, X_test, y_train, y_test = t...
30.615385
88
0.752513
1b6d044699c6c19b255bab4c846b102b0a2b1aae
7,604
py
Python
test/basemodule_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
test/basemodule_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
test/basemodule_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
import pytest import torch import torch.nn as nn from module_list import get_test_module from PytorchCNNModules.modules.base_module import BaseModule,SEmodule test_modules = get_test_module() normal_test = [ ((2, 3, 5, 5), (2, 10, 5, 5), 3, 10, 1), ((1, 10, 10, 10), (1, 20, 10, 10), 10, 20, 1), ((5, 8, 20...
37.458128
110
0.687138
1b72096dfb377d3bbc56672d41f1e99b14c18550
10,981
py
Python
experiments/rex_example.py
aws-samples/aws-lex-retrieval-extraction-lm-pt
b9de2e9844593e0c0bbd380ed3ea126c1b33fa32
[ "Apache-2.0" ]
1
2021-05-31T14:55:09.000Z
2021-05-31T14:55:09.000Z
experiments/rex_example.py
aws-samples/aws-lex-retrieval-extraction-lm-pt
b9de2e9844593e0c0bbd380ed3ea126c1b33fa32
[ "Apache-2.0" ]
null
null
null
experiments/rex_example.py
aws-samples/aws-lex-retrieval-extraction-lm-pt
b9de2e9844593e0c0bbd380ed3ea126c1b33fa32
[ "Apache-2.0" ]
1
2021-06-10T18:53:03.000Z
2021-06-10T18:53:03.000Z
import os import gc import sys import copy import psutil import torch import gzip import json import glob import random from collections import Counter from functools import partial from multiprocessing import Pool from os import listdir from os.path import isfile, join from tqdm import tqdm, trange from transformers ...
33.58104
107
0.626719
1b730a1ad9ad1fa78cb7e47435bcdc5ea1daee8d
1,279
py
Python
lab01/authserver/lab01_authserver/client_test.py
Boris-Barboris/rsoi
30b03f50549f7977d5ecb7788b8e22b789f8859f
[ "MIT" ]
null
null
null
lab01/authserver/lab01_authserver/client_test.py
Boris-Barboris/rsoi
30b03f50549f7977d5ecb7788b8e22b789f8859f
[ "MIT" ]
null
null
null
lab01/authserver/lab01_authserver/client_test.py
Boris-Barboris/rsoi
30b03f50549f7977d5ecb7788b8e22b789f8859f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from lab01_authserver_app.oauthclient import * import json import requests import time import requests import logging import http.client http.client.HTTPConnection.debuglevel = 1 logging.basicConfig() logging.getLogger().setLevel(logging.DEBUG) requests_log = logging.getLogger("requests.packages...
27.804348
91
0.702893
1b73f658c2495b3c08ab7ff7d8488599e76db525
5,332
py
Python
vmware_nsx_tempest/tests/nsxv/api/test_flat_network.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/test_flat_network.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/test_flat_network.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 OpenStack Foundation # 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 requ...
45.57265
78
0.674606
1b76f5bb1aa93e1e73ce925999a4fb1d6faa34a6
651
py
Python
tests/checkstyle.py
MattCJones/engutils
0115f1896f72f475d9073073469d3495ce511f2f
[ "MIT" ]
1
2020-10-31T16:42:03.000Z
2020-10-31T16:42:03.000Z
tests/checkstyle.py
MattCJones/engutils
0115f1896f72f475d9073073469d3495ce511f2f
[ "MIT" ]
1
2021-04-07T09:51:15.000Z
2021-04-07T09:51:15.000Z
tests/checkstyle.py
MattCJones/engutils
0115f1896f72f475d9073073469d3495ce511f2f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Check that PEP8 format is followed Author: Matthew C. Jones Email: matt.c.jones.aoe@gmail.com :copyright: 2020 by Optionset authors, see AUTHORS for more details. :license: GPLv3, see LICENSE for more details. """ import subprocess def check_format(py_file_path): """Check format of Py...
25.038462
70
0.675883
1b772cab2ebc2949130c95b8d651bc778a308880
5,233
py
Python
test/test_version.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
test/test_version.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
test/test_version.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
import re import os from shutil import rmtree from uuid import uuid1 import subprocess from pathlib import Path import tempfile from unittest import TestCase, mock from bigflow.version import VERSION_PATTERN, bump_minor, release, STARTING_VERSION from bigflow.commons import resolve NO_REPOSITORY_VERSION_PATTERN = re....
33.120253
153
0.65966
1b78db61df8513cdfba1daf0489e66f494f59626
2,182
py
Python
misc/eulerhelper.py
Hashi4/vmdgadgets
07ff21c2ce20ab6dbae410d365b6c2189635944a
[ "Apache-2.0" ]
null
null
null
misc/eulerhelper.py
Hashi4/vmdgadgets
07ff21c2ce20ab6dbae410d365b6c2189635944a
[ "Apache-2.0" ]
null
null
null
misc/eulerhelper.py
Hashi4/vmdgadgets
07ff21c2ce20ab6dbae410d365b6c2189635944a
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append('../vmdgadgets') import vmdutil import functools vmdutil.vmdutil.dot_v = alt_dot_v vmdutil.dot_v = alt_dot_v if __name__ == '__main__': zero = strexp('0') one = strexp('1') p = [strexp('sp'), zero, zero, strexp('cp')] # q(1, 0, 0, wx) y = [zero, strexp('sy'), zero, strexp('...
28.337662
70
0.493126
1b790769f9ec806dc08494f05272f0127dd9fe0f
2,528
py
Python
app/api/data/service.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
1
2020-12-24T10:49:02.000Z
2020-12-24T10:49:02.000Z
app/api/data/service.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
app/api/data/service.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path from typing import List, Optional, Tuple from app.api.meta.service import task_type_from_id from fedot.core.data.data import DataTypesEnum, InputData from fedot.core.repository.tasks import Task, TaskParams, TsForecastingParams from flask import current_app from utils import project_root defa...
34.162162
108
0.673259
1b7abe7f4afad6c95d3ce7822b662af263bb8812
1,172
py
Python
data/strategies/bases.py
jamesrharwood/journal-guidelines
fe6c0a6d3c0443df6fc816b9503fad24459ddb4a
[ "MIT" ]
null
null
null
data/strategies/bases.py
jamesrharwood/journal-guidelines
fe6c0a6d3c0443df6fc816b9503fad24459ddb4a
[ "MIT" ]
null
null
null
data/strategies/bases.py
jamesrharwood/journal-guidelines
fe6c0a6d3c0443df6fc816b9503fad24459ddb4a
[ "MIT" ]
null
null
null
import re from data.scrape.link_extractors.create_extractor import create_extractor from data.scrape.utils import clean_url from .constants import ID
31.675676
79
0.668942
1b7b00a69a0d287e97e0ec900905293bcb8524cc
1,973
py
Python
tests/regressiontests/get_or_create_regress/models.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
23
2015-01-26T12:16:59.000Z
2022-02-10T10:58:40.000Z
tests/regressiontests/get_or_create_regress/models.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
tests/regressiontests/get_or_create_regress/models.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
from django.db import models __test__ = {'one':""" # # RelatedManager # # First create a Publisher. >>> p = Publisher.objects.create(name='Acme Publishing') # Create a book through the publisher. >>> book, created = p.books.get_or_create(name='The Book of Ed & Fred') >>> created True # The publisher should have on...
21.445652
74
0.706031
1b7cb10575222f004342449819d9940438677034
3,613
py
Python
python_files/generate_figures/7.2_Perturbations.py
TiKeil/Masterthesis-LOD
03c1c6748a0464165a666bd9f4f933bc8e4f233b
[ "Apache-2.0" ]
null
null
null
python_files/generate_figures/7.2_Perturbations.py
TiKeil/Masterthesis-LOD
03c1c6748a0464165a666bd9f4f933bc8e4f233b
[ "Apache-2.0" ]
null
null
null
python_files/generate_figures/7.2_Perturbations.py
TiKeil/Masterthesis-LOD
03c1c6748a0464165a666bd9f4f933bc8e4f233b
[ "Apache-2.0" ]
1
2020-03-30T08:49:13.000Z
2020-03-30T08:49:13.000Z
# This file is part of the master thesis "Variational crimes in the Localized orthogonal decomposition method": # https://github.com/TiKeil/Masterthesis-LOD.git # Copyright holder: Tim Keil # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import numpy as np import buildcoef2d import m...
39.703297
111
0.4124
1b7cb45d76ebe48d79805caba5c36070a7bbe517
550
py
Python
lib.py
TakuyaNoguchi/cb_lib
d0254b65126a544ee7564930fe0c6f9441ab8cba
[ "MIT" ]
null
null
null
lib.py
TakuyaNoguchi/cb_lib
d0254b65126a544ee7564930fe0c6f9441ab8cba
[ "MIT" ]
null
null
null
lib.py
TakuyaNoguchi/cb_lib
d0254b65126a544ee7564930fe0c6f9441ab8cba
[ "MIT" ]
null
null
null
import math # 10 -> base # # n
19.642857
51
0.505455
1b7d3e825fb41006762ca249a60864707434a95c
516
py
Python
entertainment_tonight/migrations/0003_event_upload_photo.py
ashleyf1996/OOP_Web_Application_Assignment3
5c398bf282e8decefaac2ff54a5ec50aff3ab32f
[ "MIT" ]
null
null
null
entertainment_tonight/migrations/0003_event_upload_photo.py
ashleyf1996/OOP_Web_Application_Assignment3
5c398bf282e8decefaac2ff54a5ec50aff3ab32f
[ "MIT" ]
null
null
null
entertainment_tonight/migrations/0003_event_upload_photo.py
ashleyf1996/OOP_Web_Application_Assignment3
5c398bf282e8decefaac2ff54a5ec50aff3ab32f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-06 20:39 from __future__ import unicode_literals from django.db import migrations, models
23.454545
62
0.629845
1b7db79014deaf78f87cbb4258acd5febac0be17
2,029
py
Python
tests/test_models.py
epandurski/swp_accounts
6fefe98b7fde945e2d6ea4f536acc576a59d9915
[ "MIT" ]
null
null
null
tests/test_models.py
epandurski/swp_accounts
6fefe98b7fde945e2d6ea4f536acc576a59d9915
[ "MIT" ]
2
2022-03-08T20:49:24.000Z
2022-03-08T20:49:24.000Z
tests/test_models.py
epandurski/swpt_accounts
9bcb5349d700bcf3d17928ab7bd63440a4a6f938
[ "MIT" ]
null
null
null
from datetime import datetime, date, timezone, timedelta from swpt_accounts.models import Account D_ID = -1 C_ID = 1
38.283019
87
0.739773
1b7ed426c8537d2c5b9aac0eec06e951c8f52d4b
1,735
py
Python
examples/socket/asr_socketClient.py
marvin-nj/py-kaldi-asr
1f16ba0bb1029ec2549d5cd6062e612db562ba32
[ "Apache-2.0" ]
1
2021-03-29T08:11:58.000Z
2021-03-29T08:11:58.000Z
examples/socket/asr_socketClient.py
marvin-nj/py-kaldi-asr
1f16ba0bb1029ec2549d5cd6062e612db562ba32
[ "Apache-2.0" ]
null
null
null
examples/socket/asr_socketClient.py
marvin-nj/py-kaldi-asr
1f16ba0bb1029ec2549d5cd6062e612db562ba32
[ "Apache-2.0" ]
1
2021-03-29T08:11:59.000Z
2021-03-29T08:11:59.000Z
# -*- coding: UTF-8 -*- import socket import pyaudio import numpy as np import time import logging address = ('127.0.0.1', 8301) RATE = 8000 RECORD_SECONDS = 10 # FORMAT = pyaudio.paInt16 CHANNELS = 1 CHUNK=256 DEBUG=1 if __name__ == '__main__': logfile="log.asr_server" if DEBUG: logging.basicCon...
27.983871
112
0.629971
1b8172a9213dc0fc85ea4cac4402ab2fd75468c4
293
py
Python
Topic09-errors/myfunction.py
mizydorek/pands-problems-2020
a418dcc58e49dfbcb269e4524f676c1c6a0a6255
[ "MIT" ]
null
null
null
Topic09-errors/myfunction.py
mizydorek/pands-problems-2020
a418dcc58e49dfbcb269e4524f676c1c6a0a6255
[ "MIT" ]
null
null
null
Topic09-errors/myfunction.py
mizydorek/pands-problems-2020
a418dcc58e49dfbcb269e4524f676c1c6a0a6255
[ "MIT" ]
null
null
null
# Calculate factorial of a number def factorial(n): ''' Returns the factorial of n. e.g. factorial(7) = 7x76x5x4x3x2x1 = 5040. ''' answer = 1 for i in range(1,n+1): answer = answer * i return answer if __name__ == "__main__": assert factorial(7) == 5040
19.533333
46
0.600683
1b81dd0d1830c6f75ae724553d61f0767f0550dc
1,696
py
Python
developers_chamber/scripts/version.py
radimsuckr/developers-chamber
b29306a33c59473184206ad9f5354313f032a6c3
[ "MIT" ]
null
null
null
developers_chamber/scripts/version.py
radimsuckr/developers-chamber
b29306a33c59473184206ad9f5354313f032a6c3
[ "MIT" ]
null
null
null
developers_chamber/scripts/version.py
radimsuckr/developers-chamber
b29306a33c59473184206ad9f5354313f032a6c3
[ "MIT" ]
null
null
null
import os import click from developers_chamber.scripts import cli from developers_chamber.version_utils import bump_to_next_version as bump_to_next_version_func from developers_chamber.version_utils import get_next_version, get_version from developers_chamber.types import EnumType, ReleaseType default_version_files...
38.545455
116
0.751179
1b82fee94cf72f5f38cff15f6ac47f29bd71f75c
78
py
Python
Practice/buttons.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
Practice/buttons.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
Practice/buttons.py
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
line = input().split() n = int(line[0]) m = int(line[1]) print(str(abs(n-m)))
15.6
22
0.576923
1b834a2c0a248402fca286b2a1394e08ad414754
12,470
py
Python
PuTTY/putty.py
caltaojihun/Packages
58811a7fdebbdc60327d3d1cf44eb2335fc2f2b9
[ "Zlib" ]
null
null
null
PuTTY/putty.py
caltaojihun/Packages
58811a7fdebbdc60327d3d1cf44eb2335fc2f2b9
[ "Zlib" ]
null
null
null
PuTTY/putty.py
caltaojihun/Packages
58811a7fdebbdc60327d3d1cf44eb2335fc2f2b9
[ "Zlib" ]
null
null
null
# Keypirinha: a fast launcher for Windows (keypirinha.com) import keypirinha as kp import keypirinha_util as kpu import os.path import winreg import urllib.parse
37.902736
141
0.557979
1b83893f087fa124b92468cb84f5165e0e3c0d9a
3,737
py
Python
tests/graphical/one_view.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
26
2016-12-17T10:39:30.000Z
2020-10-28T14:16:42.000Z
tests/graphical/one_view.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
120
2016-09-05T20:53:20.000Z
2021-11-24T18:32:27.000Z
tests/graphical/one_view.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
8
2017-08-02T23:12:50.000Z
2021-11-16T07:20:24.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 MIT Probabilistic Computing Project # 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 # Unles...
31.940171
79
0.666042
1b841323151f94cecfae15579531c3557720f55a
3,401
py
Python
app.py
Tokky-tane/todo_server
08d4127cf31d9dd387abdfdc7545ead21e5d74ff
[ "Apache-2.0" ]
null
null
null
app.py
Tokky-tane/todo_server
08d4127cf31d9dd387abdfdc7545ead21e5d74ff
[ "Apache-2.0" ]
null
null
null
app.py
Tokky-tane/todo_server
08d4127cf31d9dd387abdfdc7545ead21e5d74ff
[ "Apache-2.0" ]
null
null
null
import os import datetime import dateutil.parser from flask import Flask, request, Response from flask_api import status from database import close_db from crud_task import get_all_tasks, delete_all_tasks, create_task, delete_user_tasks, get_user_tasks, delete_task, get_task, update_task, exist_task import firebase_adm...
32.701923
149
0.69656
1b844fc8072efe4493670c7cec4e521cf36cb60d
927
py
Python
BestMovies/TMDBClient.py
brunoluizcs/fiap
1c42eba68dddd81a73c07584b7e52a2801e73fc0
[ "Apache-2.0" ]
null
null
null
BestMovies/TMDBClient.py
brunoluizcs/fiap
1c42eba68dddd81a73c07584b7e52a2801e73fc0
[ "Apache-2.0" ]
null
null
null
BestMovies/TMDBClient.py
brunoluizcs/fiap
1c42eba68dddd81a73c07584b7e52a2801e73fc0
[ "Apache-2.0" ]
null
null
null
import requests
22.071429
60
0.482201
1b84fddae5fbb8ef03fd12251b718e4f86816d5a
746
py
Python
segme/model/f3_net/tests/test_decoder.py
shkarupa-alex/segme
d5bc0043f9e709c8ccaf8949d662bc6fd6144006
[ "MIT" ]
2
2021-05-25T18:53:00.000Z
2021-05-26T12:11:41.000Z
segme/model/f3_net/tests/test_decoder.py
shkarupa-alex/segme
d5bc0043f9e709c8ccaf8949d662bc6fd6144006
[ "MIT" ]
null
null
null
segme/model/f3_net/tests/test_decoder.py
shkarupa-alex/segme
d5bc0043f9e709c8ccaf8949d662bc6fd6144006
[ "MIT" ]
2
2021-11-21T02:39:37.000Z
2021-12-08T07:26:56.000Z
import tensorflow as tf from keras import keras_parameterized from ..decoder import Decoder from ....testing_utils import layer_multi_io_test if __name__ == '__main__': tf.test.main()
31.083333
107
0.592493
1b850dbfb0c60c1aeafce298fa429a15013488c3
20,047
py
Python
PassPY0.2Win.py
IvaldiS6/PassPYWin
25ffc73392166fd85a8590866c5b65fd0aece72c
[ "MIT" ]
null
null
null
PassPY0.2Win.py
IvaldiS6/PassPYWin
25ffc73392166fd85a8590866c5b65fd0aece72c
[ "MIT" ]
1
2021-09-15T20:02:36.000Z
2021-09-15T20:02:36.000Z
PassPY0.2Win.py
IvaldiS6/PassPYWin
25ffc73392166fd85a8590866c5b65fd0aece72c
[ "MIT" ]
1
2021-09-15T21:49:40.000Z
2021-09-15T21:49:40.000Z
import codecs import os import os.path import string import random from random import shuffle import csv import time import hashlib import struct import binascii from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes DefaultSize = "mode con: cols=100 lines=20" os.system(DefaultSize) pre = "C:\Pr...
42.562633
284
0.521874
1b87d6becc53e7c2b04088a17b003a62df6d1a55
291
py
Python
cloudtunes-server/cloudtunes/async.py
skymemoryGit/cloudtunes
424bf59e05663b0df20e16ddbd119eb39f6a729b
[ "BSD-3-Clause" ]
529
2015-01-01T04:59:12.000Z
2022-03-31T16:09:38.000Z
cloudtunes-server/cloudtunes/async.py
skymemoryGit/cloudtunes
424bf59e05663b0df20e16ddbd119eb39f6a729b
[ "BSD-3-Clause" ]
21
2015-01-13T15:41:15.000Z
2021-11-06T20:56:40.000Z
cloudtunes-server/cloudtunes/async.py
skymemoryGit/cloudtunes
424bf59e05663b0df20e16ddbd119eb39f6a729b
[ "BSD-3-Clause" ]
116
2015-01-04T22:12:56.000Z
2022-02-23T11:43:01.000Z
"""Asynchronous MongoDB and Redis connections.""" from functools import partial import motor import tornadoredis from cloudtunes import settings RedisClient = partial(tornadoredis.Client, **settings.REDIS) mongo = motor.MotorClient(**settings.MONGODB).cloudtunes redis = RedisClient()
19.4
60
0.797251
1b884b81a434124c2e9b5b7bec2f3d3b1a796257
183
py
Python
output/models/saxon_data/id/id008_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/saxon_data/id/id008_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/saxon_data/id/id008_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.saxon_data.id.id008_xsd.id008 import ( Doc, Node, PseudoId, PseudoIdref, ) __all__ = [ "Doc", "Node", "PseudoId", "PseudoIdref", ]
13.071429
57
0.584699
1b89f8f65882ad931575298d75654e28396d40ac
1,541
py
Python
scripts/convert_ts_model_to_onnx.py
SakodaShintaro/Miacis
af3508076660cc6e19186f17fa436499e32164f5
[ "BSD-3-Clause" ]
10
2019-05-14T12:54:49.000Z
2022-02-28T12:02:52.000Z
scripts/convert_ts_model_to_onnx.py
SakodaShintaro/Miacis
af3508076660cc6e19186f17fa436499e32164f5
[ "BSD-3-Clause" ]
null
null
null
scripts/convert_ts_model_to_onnx.py
SakodaShintaro/Miacis
af3508076660cc6e19186f17fa436499e32164f5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os from generate_cnn_model import * from generate_transformer_model import * parser = argparse.ArgumentParser() parser.add_argument("model_path", type=str) parser.add_argument("--batch_size", type=int, default=128) args = parser.parse_args() input_channel_num = 42 board_size = 9 policy_c...
31.44898
95
0.704737
1b8be8576b611a2c50fd6a04efe0790fe0d5e554
1,916
py
Python
ietf/mailtrigger/migrations/0009_review_sent.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-11-20T03:40:40.000Z
2021-11-20T03:40:42.000Z
ietf/mailtrigger/migrations/0009_review_sent.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/mailtrigger/migrations/0009_review_sent.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations
33.034483
142
0.692067
1b8cff6c78d91bb987bc3e4d6107a012b36bc8af
2,092
py
Python
utils/configs.py
realeu/ImgBB-Bot
8e71df093e41690f815051636c91815f2db08ec2
[ "MIT" ]
null
null
null
utils/configs.py
realeu/ImgBB-Bot
8e71df093e41690f815051636c91815f2db08ec2
[ "MIT" ]
null
null
null
utils/configs.py
realeu/ImgBB-Bot
8e71df093e41690f815051636c91815f2db08ec2
[ "MIT" ]
null
null
null
import os import time
31.69697
267
0.672084
1b8d1a7f7c749a047b0eddbcadab57bb15964022
4,517
py
Python
unsupervised_meta_learning/_nbdev.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
3
2022-02-24T07:02:12.000Z
2022-03-20T18:33:58.000Z
unsupervised_meta_learning/_nbdev.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
null
null
null
unsupervised_meta_learning/_nbdev.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"c_imshow": "01_nn_utils.ipynb", "Flatten": "01_nn_utils.ipynb", "conv3x3": "01_nn_utils.ipynb", "get_proto_accuracy": "01_nn_utils.ipynb", "get_accuracy": "02_maml_pl.ipyn...
44.722772
73
0.636263
1b8eb8a92908acc22a08cbb4b026df99be610d7a
9,413
py
Python
code/applications/qs_predict_probablistic.py
ninamiolane/quicksilver
1baf251360dadea0afa3daaa09942d9d2d7c71fb
[ "Apache-2.0" ]
126
2017-04-06T03:19:03.000Z
2022-03-08T07:44:09.000Z
code/applications/qs_predict_probablistic.py
ninamiolane/quicksilver
1baf251360dadea0afa3daaa09942d9d2d7c71fb
[ "Apache-2.0" ]
7
2017-09-22T01:46:04.000Z
2021-04-29T07:22:44.000Z
code/applications/qs_predict_probablistic.py
ninamiolane/quicksilver
1baf251360dadea0afa3daaa09942d9d2d7c71fb
[ "Apache-2.0" ]
37
2017-04-03T17:14:44.000Z
2022-03-09T16:00:03.000Z
# add LDDMM shooting code into path import sys sys.path.append('../vectormomentum/Code/Python'); sys.path.append('../library') from subprocess import call import argparse import os.path #Add deep learning related libraries from collections import Counter import torch import prediction_network import util import numpy...
46.369458
185
0.691809
1b8fc5e29f8f56408c4c25c653cdf874f3bd78ff
1,685
py
Python
exifGPSimplant.py
Bahrd/AppliedPythonology
65d7bd665eba823c3319c3efdc5a5047ddfa534d
[ "MIT" ]
4
2019-10-11T07:39:49.000Z
2022-03-01T23:18:57.000Z
exifGPSimplant.py
Bahrd/AppliedPythonology
65d7bd665eba823c3319c3efdc5a5047ddfa534d
[ "MIT" ]
null
null
null
exifGPSimplant.py
Bahrd/AppliedPythonology
65d7bd665eba823c3319c3efdc5a5047ddfa534d
[ "MIT" ]
null
null
null
## EXIF GPS tags hand-crafted modification ('autografts')... from exif import Image from sys import argv as names from math import floor if(len(names) < 4): print('USAGE: exifGPSimplant filename latitude [0-360) longitude [0 - 180)') exit(-1) else: (recipient, latitude, longitude) = names[1:4] with open(r...
33.039216
107
0.695549
1b90a0ad6a0068ff9c4007e6a35e5372ec92638b
1,443
py
Python
RegonAPI/converters.py
damianwasik98/RegonAPI
0c45363ba7fcfdc7c0938084288575c5b32ec4da
[ "MIT" ]
10
2020-01-17T15:40:16.000Z
2022-01-29T10:45:21.000Z
RegonAPI/converters.py
damianwasik98/RegonAPI
0c45363ba7fcfdc7c0938084288575c5b32ec4da
[ "MIT" ]
4
2019-10-25T08:21:26.000Z
2021-04-19T11:28:30.000Z
RegonAPI/converters.py
damianwasik98/RegonAPI
0c45363ba7fcfdc7c0938084288575c5b32ec4da
[ "MIT" ]
3
2020-11-23T13:12:26.000Z
2021-07-23T10:10:46.000Z
""" Converters of codes """ from string import digits from .exceptions import RegonConvertionError from . import validators REGON9_WEIGHTS = [8, 9, 2, 3, 4, 5, 6, 7] REGON14_WEIGHTS = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8] def regon8_to_9(regon8): """Convert REGON8 to REGON9 Parameters ---------...
21.537313
84
0.600139
1b9205fa35c003e972162f8ca03dbd40a69ae685
1,609
py
Python
analysis/time_domain_response.py
Joeltronics/audioexperiments
9f677ce72b0a50c7240ace880603d8e955f270a8
[ "MIT" ]
1
2021-12-13T03:05:03.000Z
2021-12-13T03:05:03.000Z
analysis/time_domain_response.py
Joeltronics/audioexperiments
9f677ce72b0a50c7240ace880603d8e955f270a8
[ "MIT" ]
null
null
null
analysis/time_domain_response.py
Joeltronics/audioexperiments
9f677ce72b0a50c7240ace880603d8e955f270a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math from typing import Iterable, Optional, Tuple, Union import numpy as np from analysis import linearity from utils import utils from unit_test import unit_test from processor import ProcessorBase from generation import signal_generation
22.985714
99
0.707272