hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
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
368k
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
4
247
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
4
247
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.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
b656645bcc71a628ef668e7169c02be6698981f6
48
py
Python
server/tomato/__init__.py
dtcooper/tomato
a54aa3bc3858fa8ad377696f5275ac0c2103f33a
[ "MIT" ]
1
2020-02-25T09:21:31.000Z
2020-02-25T09:21:31.000Z
server/tomato/__init__.py
dtcooper/tomato
a54aa3bc3858fa8ad377696f5275ac0c2103f33a
[ "MIT" ]
null
null
null
server/tomato/__init__.py
dtcooper/tomato
a54aa3bc3858fa8ad377696f5275ac0c2103f33a
[ "MIT" ]
null
null
null
default_app_config = 'tomato.apps.TomatoConfig'
24
47
0.833333
default_app_config = 'tomato.apps.TomatoConfig'
0
0
0
0
0
0
0
0
0
1332178f1063d191575dbabb00a6432c5253c8b8
801
py
Python
2017/11/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
2017/11/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
2017/11/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
import common data = common.read_file('2017/11/data.txt').strip().split(',') offset_x = 0 offset_y = 0 max_dist = 0 # |nw|n # sw| |ne # s |se| for move in data: if move == 'sw' or move == 's': offset_x -= 1 elif move == 'n' or move == 'ne': offset_x += 1 if move == 'nw' or move == ...
18.204545
62
0.526841
import common data = common.read_file('2017/11/data.txt').strip().split(',') offset_x = 0 offset_y = 0 def dist(): def sign(x): if x > 0: return 1 if x < 0: return -1 return 0 if sign(offset_x) != sign(offset_y): return max([abs(offset_x), abs(offset_y...
0
0
0
0
0
236
0
0
23
54a9831344f4c0e3f5b036d8445596a4fd1bd19f
12,297
py
Python
backend/tests/test_vote.py
Davidw1339/GroceryBuddy
6e2fde00999b4b9e218a919d793ee10128212ea8
[ "Apache-2.0" ]
null
null
null
backend/tests/test_vote.py
Davidw1339/GroceryBuddy
6e2fde00999b4b9e218a919d793ee10128212ea8
[ "Apache-2.0" ]
18
2019-02-09T21:59:15.000Z
2019-03-10T19:13:19.000Z
backend/tests/test_vote.py
Davidw1339/GroceryBuddy
6e2fde00999b4b9e218a919d793ee10128212ea8
[ "Apache-2.0" ]
2
2019-02-12T17:12:22.000Z
2019-02-25T05:41:31.000Z
import json import model from utils import Error import test_data def test_upvote(client, existing_item): ''' Tests upvoting. ''' upc = str(existing_item.upc) store = existing_item.stores[0] store_name = str(store.name) lat = float(store.location['lat']) long_arg = float(store.location...
25.997886
75
0.582988
import json import model from utils import Error import test_data import validation def test_upvote(client, existing_item): ''' Tests upvoting. ''' upc = str(existing_item.upc) store = existing_item.stores[0] store_name = str(store.name) lat = float(store.location['lat']) long_arg = fl...
0
0
0
0
0
0
0
-4
22
02404d9331a63bf8fa9b8c3262b1f0d51b0d7416
3,828
py
Python
openslides_backend/models/base.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
openslides_backend/models/base.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
openslides_backend/models/base.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
from typing import Dict, Type from ..shared.patterns import Collection model_registry: Dict[Collection, Type["Model"]] = {}
33.578947
88
0.613375
import re from typing import Dict, Iterable, Optional, Type from ..shared.patterns import Collection from . import fields model_registry: Dict[Collection, Type["Model"]] = {} class ModelMetaClass(type): """ Metaclass for Model base class (see below). This metaclass ensures that all fields get attribute...
0
0
0
3,603
0
0
0
7
90
dbd10b530e1efbdd7bfcde5fecee46c89eefe1da
276
py
Python
test/test_astrofunc.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
test/test_astrofunc.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
test/test_astrofunc.py
LBJ-Wade/astrofunc_lensing_profile
d2223705bc44d07575a5e93291375ab8e69ebfa8
[ "MIT" ]
null
null
null
""" Tests for `astrofunc` module. """
13.8
31
0.648551
""" Tests for `astrofunc` module. """ import pytest from astrofunc import astrofunc class TestAstrofunc(object): @classmethod def setup_class(cls): pass def test_something(self): pass @classmethod def teardown_class(cls): pass
0
63
0
105
0
0
0
2
67
0a24d1d4f17820efe8895ed41e622db3e084accc
1,713
py
Python
AutoHTMLReload/__main__.py
jupiterbjy/ProjectIncubator
81ea87f927cda105ff55aa9504bd1d9ea7318bcd
[ "MIT" ]
1
2021-05-21T08:08:57.000Z
2021-05-21T08:08:57.000Z
AutoHTMLReload/__main__.py
jupiterbjy/ProjectIncubator
81ea87f927cda105ff55aa9504bd1d9ea7318bcd
[ "MIT" ]
null
null
null
AutoHTMLReload/__main__.py
jupiterbjy/ProjectIncubator
81ea87f927cda105ff55aa9504bd1d9ea7318bcd
[ "MIT" ]
null
null
null
import argparse import time try: from TinyTools.LoggingConfigurator import logger except ModuleNotFoundError: from sys import path from os.path import abspath path.append(abspath("")) parser = argparse.ArgumentParser(description="Auto-reload designated HTML file using selenium and watchdog.") parser....
25.567164
109
0.697023
import argparse import pathlib import time from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler from selenium import webdriver try: from TinyTools.LoggingConfigurator import logger except ModuleNotFoundError: from sys import path from os.path import abspath path.a...
0
0
0
174
0
570
0
76
185
12b1642a0f903292290653b06867eeab2de6d92b
2,016
py
Python
pilapse/interface.py
git-akihakune/pilapse
2e2cb99e074b5b234c3d8816d421e3d24909e2e6
[ "MIT" ]
null
null
null
pilapse/interface.py
git-akihakune/pilapse
2e2cb99e074b5b234c3d8816d421e3d24909e2e6
[ "MIT" ]
null
null
null
pilapse/interface.py
git-akihakune/pilapse
2e2cb99e074b5b234c3d8816d421e3d24909e2e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Because it's better not to rely on external libraries def banner(): """Print the program's banner""" banner = """ ____ ____ __ __ ____ ___ ____ ( _ \(_ _)( ) /__\ ( _ \/ __)( ___) )___/ _)(_ )(__ /(__)\ )___/\__ \ )__) (__) (____)(____)(__)(__)(__) (___/(...
27.243243
86
0.573413
#!/usr/bin/env python3 # Because it's better not to rely on external libraries class logger: def __init__(self, verbose: bool) -> None: self.verbose = verbose def error(self, text): print("{} {}".format("\033[95m[error]\033[00m", text)) def critical(self, text): print("{} {}".form...
0
0
0
741
0
270
0
0
45
69bd7542bf468a9b3b4f4930726f0a785514ea9f
23
py
Python
Python/Tests/TestData/DebuggerProject/DebugReplTest5.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
404
2019-05-07T02:21:57.000Z
2022-03-31T17:03:04.000Z
Python/Tests/TestData/DebuggerProject/DebugReplTest5.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
1,672
2019-05-06T21:09:38.000Z
2022-03-31T23:16:04.000Z
Python/Tests/TestData/DebuggerProject/DebugReplTest5.py
techkey/PTVS
8355e67eedd8e915ca49bd38a2f36172696fd903
[ "Apache-2.0" ]
186
2019-05-13T03:17:37.000Z
2022-03-31T16:24:05.000Z
print('')
5.75
11
0.652174
import time print('')
0
0
0
0
0
0
0
-10
22
cf0656a44175ebff827492b59c164f6449521196
5,234
py
Python
banners.py
FingerLeakers/technowlogger
9b5dd3cf83521e6cacc5504114b930270fb1d414
[ "BSD-3-Clause" ]
153
2020-09-02T07:41:49.000Z
2022-03-24T11:57:46.000Z
banners.py
FingerLeakers/technowlogger
9b5dd3cf83521e6cacc5504114b930270fb1d414
[ "BSD-3-Clause" ]
25
2019-10-28T03:36:19.000Z
2020-08-31T11:51:42.000Z
banners.py
FingerLeakers/technowlogger
9b5dd3cf83521e6cacc5504114b930270fb1d414
[ "BSD-3-Clause" ]
34
2020-10-01T15:20:38.000Z
2022-03-28T20:42:07.000Z
figlet_ansi_shadow = """ """ figlet_big = """ ______...
49.847619
162
0.2094
import random figlet_ansi_shadow = """ ████████╗██╗ ██████╗ ██████╗ ██████╗ ███████╗██████╗ ╚══██╔══╝██║ ██╔═══██╗██╔════╝ ██╔════╝ ██╔════╝██╔══██╗ ██║ ██║ ██║ ██║██║ ███╗██║ ███╗█████╗ ██████╔╝ ██║ ██║ ██║ ██║██║ ██║██║ ██║██╔══╝ ██╔══██╗ ██║ ███████╗╚██████╔╝╚...
1,716
0
0
0
0
160
0
-8
47
d7f906859a056378a94b0694f7bb8266790d82ec
452
bzl
Python
rust/deps.bzl
justinwp/rules_proto
76e30bc0ad6c2f4150f40e593db83eedeb069f1e
[ "Apache-2.0" ]
null
null
null
rust/deps.bzl
justinwp/rules_proto
76e30bc0ad6c2f4150f40e593db83eedeb069f1e
[ "Apache-2.0" ]
null
null
null
rust/deps.bzl
justinwp/rules_proto
76e30bc0ad6c2f4150f40e593db83eedeb069f1e
[ "Apache-2.0" ]
null
null
null
load( "//:deps.bzl", "com_google_protobuf", "io_bazel_rules_rust", )
21.52381
33
0.719027
load( "//:deps.bzl", "com_google_protobuf", "io_bazel_rules_rust", ) def rust_proto_compile(**kwargs): com_google_protobuf(**kwargs) io_bazel_rules_rust(**kwargs) def rust_grpc_compile(**kwargs): rust_proto_compile(**kwargs) def rust_proto_library(**kwargs): rust_proto_compile(**kwargs) ...
0
0
0
0
0
279
0
0
92
95f681282c638cfe3b0e868377558b9e8a5cbe87
292
py
Python
wwwhisper_admin/__init__.py
wrr/wwwhisper
38a55dd9c828fbb1b5a8234ea3ddf2242e684983
[ "MIT" ]
54
2015-01-19T23:49:39.000Z
2021-02-18T01:14:51.000Z
wwwhisper_admin/__init__.py
wrr/wwwhisper
38a55dd9c828fbb1b5a8234ea3ddf2242e684983
[ "MIT" ]
13
2015-01-26T14:51:10.000Z
2020-11-10T04:15:36.000Z
wwwhisper_admin/__init__.py
wrr/wwwhisper
38a55dd9c828fbb1b5a8234ea3ddf2242e684983
[ "MIT" ]
11
2015-07-25T02:13:12.000Z
2021-07-10T14:11:46.000Z
# wwwhisper - web access control. # Copyright (C) 2012-2018 Jan Wrobel <jan@mixedbit.org> """wwwhisper admin API. The package exposes http API for specifying which users can access which locations and for other admin operations. """ default_app_config = 'wwwhisper_admin.appconfig.Config'
26.545455
66
0.777397
# wwwhisper - web access control. # Copyright (C) 2012-2018 Jan Wrobel <jan@mixedbit.org> """wwwhisper admin API. The package exposes http API for specifying which users can access which locations and for other admin operations. """ default_app_config = 'wwwhisper_admin.appconfig.Config'
0
0
0
0
0
0
0
0
0
487ec555e13c25fe91160533649b3523747000df
3,729
py
Python
tests/minionswarm.py
mika/salt
8430482c7177356964c894d161830c94d09f1cab
[ "Apache-2.0" ]
1
2016-09-16T17:12:11.000Z
2016-09-16T17:12:11.000Z
tests/minionswarm.py
mika/salt
8430482c7177356964c894d161830c94d09f1cab
[ "Apache-2.0" ]
null
null
null
tests/minionswarm.py
mika/salt
8430482c7177356964c894d161830c94d09f1cab
[ "Apache-2.0" ]
null
null
null
#/usr/bin/env python ''' The minionswarm script will start a group of salt minions with different ids on a single system to test scale capabilities ''' # Import Python Libs import optparse # Import salt libs # Import third party libs def parse(): ''' Parse the cli options ''' parser = optparse.Opti...
26.260563
78
0.503888
#/usr/bin/env python ''' The minionswarm script will start a group of salt minions with different ids on a single system to test scale capabilities ''' # Import Python Libs import os import optparse import subprocess import tempfile import shutil import random import hashlib # Import salt libs import salt # Import t...
0
0
0
2,270
0
0
0
-65
199
6a265cb064e17fd5725f7e3cb5bfe8927eb217f2
106
py
Python
tests/python.py
Doombite/python-cs50
9a384f6e24dfa2a666c4904a2a2021470792bfda
[ "MIT" ]
1
2022-02-26T13:50:06.000Z
2022-02-26T13:50:06.000Z
tests/python.py
Doombite/python-cs50
9a384f6e24dfa2a666c4904a2a2021470792bfda
[ "MIT" ]
null
null
null
tests/python.py
Doombite/python-cs50
9a384f6e24dfa2a666c4904a2a2021470792bfda
[ "MIT" ]
1
2022-03-05T09:06:50.000Z
2022-03-05T09:06:50.000Z
import sys sys.path.insert(0, "../src") import cs50 i = cs50.get_int("Input: ") print(f"Output: {i}")
11.777778
28
0.622642
import sys sys.path.insert(0, "../src") import cs50 i = cs50.get_int("Input: ") print(f"Output: {i}")
0
0
0
0
0
0
0
0
0
30602707207ab4110fd6f44ab1068a80c01efc53
709
py
Python
config.py
xiaosimao/ip_pool
5f074f7288ed4174f44096d8d982a1d7caa3460a
[ "Apache-2.0" ]
659
2017-09-22T09:30:43.000Z
2022-02-20T05:10:32.000Z
config.py
chengzhu-zc/IP_POOL
5f074f7288ed4174f44096d8d982a1d7caa3460a
[ "Apache-2.0" ]
3
2017-10-27T16:48:09.000Z
2018-03-07T00:52:41.000Z
config.py
chengzhu-zc/IP_POOL
5f074f7288ed4174f44096d8d982a1d7caa3460a
[ "Apache-2.0" ]
179
2017-09-22T09:30:43.000Z
2021-08-19T02:52:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by shimeng on 17-8-17 # spider_name = 'get_ip' # log_folder_name = '%s_logs' % spider_name delete_existed_logs = True # thread_num = 50 sleep_time = 0.5 retry_times = 10 time_out = 5 # use_proxyTrueargsip, eg: ip="120.52.72.58:80", use_proxy = False ip = N...
16.488372
77
0.732017
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by shimeng on 17-8-17 # 爬虫名称 spider_name = 'get_ip' # 日志设置 log_folder_name = '%s_logs' % spider_name delete_existed_logs = True # 请求参数设置 thread_num = 50 sleep_time = 0.5 retry_times = 10 time_out = 5 # 当use_proxy为True时,必须在请求的args中或者在配置文件中定义ip, eg: ip="120.52.7...
354
0
0
0
0
0
0
0
0
b17bd501de05aab10f4db56343dd9a372946a8ec
4,566
py
Python
Day 73/Model-1.py
vgaurav3011/100-Days-of-ML
ec302b03fd492c459cff2592b3a4f5e38f9c9d72
[ "MIT" ]
12
2020-03-30T15:10:48.000Z
2021-11-08T06:04:01.000Z
Day 73/Model-1.py
vgaurav3011/100-Days-of-ML
ec302b03fd492c459cff2592b3a4f5e38f9c9d72
[ "MIT" ]
3
2021-06-08T22:34:58.000Z
2022-01-13T03:25:23.000Z
Day 73/Model-1.py
vgaurav3011/100-Days-of-ML
ec302b03fd492c459cff2592b3a4f5e38f9c9d72
[ "MIT" ]
3
2020-04-13T09:51:28.000Z
2021-04-28T07:37:36.000Z
# -*- coding: utf-8 -*- """Working_Model.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/15vMWS3F0cKUYSGMFpdKrZkNjuDhfApRm """ from google.colab import drive drive.mount('/content/drive') import pandas as pd import seaborn as sns from lightgbm...
31.708333
110
0.708717
# -*- coding: utf-8 -*- """Working_Model.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/15vMWS3F0cKUYSGMFpdKrZkNjuDhfApRm """ from google.colab import drive drive.mount('/content/drive') import pandas as pd import numpy as np import matplotli...
0
0
0
0
0
2,174
0
115
348
235921857a710d571fbd81b754a11f3d958d21d5
5,413
py
Python
bme280.py
rainerraul/pi-python
111a50b5fa23960f02c4a19740b40e6026b7741c
[ "MIT" ]
null
null
null
bme280.py
rainerraul/pi-python
111a50b5fa23960f02c4a19740b40e6026b7741c
[ "MIT" ]
null
null
null
bme280.py
rainerraul/pi-python
111a50b5fa23960f02c4a19740b40e6026b7741c
[ "MIT" ]
null
null
null
#!/usr/bin/python import smbus import time twowire = smbus.SMBus(1) cal0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] cal1 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] dig_T = [0,0,0,0,0,0,0,0,0] dig_P = [0,0,0,0,0,0,0,0,0,0] dig_H = [0,0,0,0,0,0,0,0,0] raw_data = [0,0,0,0,0,0,0,0] raw_values = [0,0,0] TEMP = 1 ...
28.946524
118
0.630334
#!/usr/bin/python import smbus import os import time import math twowire = smbus.SMBus(1) cal0 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] cal1 = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] dig_T = [0,0,0,0,0,0,0,0,0] dig_P = [0,0,0,0,0,0,0,0,0,0] dig_H = [0,0,0,0,0,0,0,0,0] raw_data = [0,0,0,0,0,0,0,0] raw_value...
0
0
0
0
0
3,556
0
-22
366
908832a2def4f0eda1e748b9c14c553a6a6db9f4
1,476
py
Python
graph/Python/DSU-Kruskal.py
bakuryuthem0/al-go-rithms
8ad4b65a988740525585ecae2b6f0b815cdbcd66
[ "CC0-1.0" ]
4
2019-10-11T06:12:18.000Z
2021-08-01T14:24:18.000Z
graph/Python/DSU-Kruskal.py
bakuryuthem0/al-go-rithms
8ad4b65a988740525585ecae2b6f0b815cdbcd66
[ "CC0-1.0" ]
null
null
null
graph/Python/DSU-Kruskal.py
bakuryuthem0/al-go-rithms
8ad4b65a988740525585ecae2b6f0b815cdbcd66
[ "CC0-1.0" ]
8
2019-10-11T22:05:43.000Z
2021-12-23T23:18:12.000Z
n = int(input("Enter number of nodes:")) node = Node() node.makeset(n) edges = int(input("Enter number of edges:")) lis = [] mst = [] for i in range(edges): x, y, w = input().split(' ') lis.append((int(w), int(x), int(y))) lis.sort() print (lis) for j in range(edges): u = lis[j][1] v = lis[j][2] ...
24.196721
69
0.50813
class Node: def __init__(self): self.nodes = [] self.index = 0 self.rank = 0 self.parent = None def makeset(self, n): for i in range(0, n): node = Node() node.index = i node.rank = 0 node.parent = node self.nod...
0
0
0
707
0
0
0
0
22
be270763ac97712ab39d7683d00404bf471ffdc0
9,476
py
Python
asyncpraw/exceptions.py
vikasbhatia/asyncpraw
8b9e1bd72945023f6eb4567ff69ba13aa428a2d2
[ "BSD-2-Clause" ]
null
null
null
asyncpraw/exceptions.py
vikasbhatia/asyncpraw
8b9e1bd72945023f6eb4567ff69ba13aa428a2d2
[ "BSD-2-Clause" ]
null
null
null
asyncpraw/exceptions.py
vikasbhatia/asyncpraw
8b9e1bd72945023f6eb4567ff69ba13aa428a2d2
[ "BSD-2-Clause" ]
1
2020-12-13T05:10:35.000Z
2020-12-13T05:10:35.000Z
"""PRAW exception classes. Includes two main exceptions: :class:`.RedditAPIException` for when something goes wrong on the server side, and :class:`.ClientException` when something goes wrong on the client side. Both of these classes extend :class:`.PRAWException`. All other exceptions are subclassed from :class:`.Cl...
34.209386
123
0.633917
"""PRAW exception classes. Includes two main exceptions: :class:`.RedditAPIException` for when something goes wrong on the server side, and :class:`.ClientException` when something goes wrong on the client side. Both of these classes extend :class:`.PRAWException`. All other exceptions are subclassed from :class:`.Cl...
0
2,652
0
6,104
0
0
0
23
343
89046272d87a83b82a67a3e619887f60e1f0fabc
1,927
py
Python
GC/Tareas/T3/manejoMatrices.py
BenchHPZ/UG-Compu
fa3551a862ee04b59a5ba97a791f39a77ce2df60
[ "MIT" ]
null
null
null
GC/Tareas/T3/manejoMatrices.py
BenchHPZ/UG-Compu
fa3551a862ee04b59a5ba97a791f39a77ce2df60
[ "MIT" ]
null
null
null
GC/Tareas/T3/manejoMatrices.py
BenchHPZ/UG-Compu
fa3551a862ee04b59a5ba97a791f39a77ce2df60
[ "MIT" ]
null
null
null
""" Modulo para manejo de matrices de transformadas. """ # Decorador para mantener orden en matriz def matriz_propia(fun): """ Funcion para manejar espacios de matriz de OpenGL. La funcion que sea recibida por el decorador espera manejar matrices de traslacion, rota_ cion o escalamiento de OpenGl. De...
27.927536
61
0.631033
""" Modulo para manejo de matrices de transformadas. """ from OpenGL.GL import * from functools import wraps # Decorador para mantener orden en matriz def matriz_propia(fun): """ Funcion para manejar espacios de matriz de OpenGL. La funcion que sea recibida por el decorador espera manejar matrices de tr...
0
98
0
1,083
0
0
0
8
94
ced5ec306c4708726849d200dff4bf825420a0df
1,940
py
Python
blitzortung/dataimport/raw_signal.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
3
2015-04-09T22:33:59.000Z
2019-02-12T12:52:16.000Z
blitzortung/dataimport/raw_signal.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
7
2015-05-23T13:38:14.000Z
2019-12-13T20:43:12.000Z
blitzortung/dataimport/raw_signal.py
wuan/bo-python
86c90e437ff456092bf7c9eff8c85daffdd220f0
[ "Apache-2.0" ]
4
2015-12-13T12:40:40.000Z
2021-07-09T10:48:16.000Z
# -*- coding: utf8 -*- """ Copyright 2014-2016 Andreas Wrl 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 app...
34.642857
111
0.702062
# -*- coding: utf8 -*- """ Copyright 2014-2016 Andreas Würl 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 ap...
2
1,117
0
0
0
0
0
63
114
3645603ad6f0fd55309e78f9e8fef65537843d6a
1,344
py
Python
archiveur.py
leximpact/tweet-archiveur
5792862b632012be0517445c77b76b87c2720c5e
[ "Apache-2.0" ]
1
2021-03-19T15:36:48.000Z
2021-03-19T15:36:48.000Z
archiveur.py
leximpact/tweet-archiveur
5792862b632012be0517445c77b76b87c2720c5e
[ "Apache-2.0" ]
null
null
null
archiveur.py
leximpact/tweet-archiveur
5792862b632012be0517445c77b76b87c2720c5e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from tweet_archiveur.scrapper import Scrapper from tweet_archiveur.database import Database from os import getenv from dotenv import load_dotenv from pathlib import Path from sys import exit import logging # Logging logger = logging.getLogger("tweet-archiveur") logFormatter = logging.Formatter("%(as...
27.428571
90
0.756696
#!/usr/bin/python from tweet_archiveur.scrapper import Scrapper from tweet_archiveur.database import Database import pandas as pd from os import getenv from dotenv import load_dotenv from pathlib import Path from sys import exit import logging import time import tweepy import random # Logging logger = logging.getLogg...
0
0
0
0
0
0
0
-28
88
ca5bbe1512658899deeca8004f0493770fe0bcd9
2,996
py
Python
lib/service/AthleteData.py
SportsToken/ae_dapp
8547a35d7d08bbef86483b170804f8961234642c
[ "MIT" ]
4
2021-08-17T02:25:42.000Z
2022-01-26T17:10:43.000Z
lib/service/AthleteData.py
SportsToken/ax_dapp
b99d923b698f25b2579b9a78dca18394ac9c238c
[ "MIT" ]
136
2021-08-12T19:33:03.000Z
2022-03-10T21:15:26.000Z
lib/service/AthleteData.py
SportsToken/ae_dapp
8547a35d7d08bbef86483b170804f8961234642c
[ "MIT" ]
null
null
null
import requests import json # from requests.sessions import _TextMapping ATHLETES = [] with open('../../assets/nflAthletes.json', 'r') as athFile: data = athFile.read() athJson = json.loads(data) # list of abbreviated names active_list = [] id_list = [] for ath in athJson: id_list.append(ath['id']) ac...
29.96
330
0.594793
import requests import json import re # from requests.sessions import _TextMapping ATHLETES = [] with open('../../assets/nflAthletes.json', 'r') as athFile: data = athFile.read() athJson = json.loads(data) # list of abbreviated names active_list = [] id_list = [] for ath in athJson: id_list.append(ath['id...
0
0
0
715
0
0
0
-12
45
d4fbf059031d5a37cd870c360fddc7dca01256be
3,278
py
Python
tests/security/test_image.py
xianfang-qian/docker_ci
0ff773d1e7d9420ef6a05a63bc56b32952b71192
[ "Apache-2.0" ]
35
2020-10-11T07:39:42.000Z
2022-03-20T06:17:08.000Z
tests/security/test_image.py
xianfang-qian/docker_ci
0ff773d1e7d9420ef6a05a63bc56b32952b71192
[ "Apache-2.0" ]
32
2020-10-13T06:58:20.000Z
2022-02-10T04:34:03.000Z
tests/security/test_image.py
xianfang-qian/docker_ci
0ff773d1e7d9420ef6a05a63bc56b32952b71192
[ "Apache-2.0" ]
39
2020-10-07T07:22:20.000Z
2022-03-14T18:21:56.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2019-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0
51.21875
118
0.603722
# -*- coding: utf-8 -*- # Copyright (C) 2019-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pathlib import subprocess # nosec import sys import pytest from setup import SNYK_API, SNYK_TOKEN from utils.loader import SNYK_URL from utils.utilities import download_file class TestSDLImage: @pyt...
0
2,913
0
-2
0
0
0
19
241
a2721b26bb01173ae62233042661b3f309e05fe2
8,960
py
Python
py_proto/modules/prediction/proto/prediction_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
2
2019-03-04T02:11:04.000Z
2019-04-18T11:19:45.000Z
py_proto/modules/prediction/proto/prediction_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-15T08:37:53.000Z
2019-03-15T08:37:53.000Z
py_proto/modules/prediction/proto/prediction_conf_pb2.py
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-04T02:11:09.000Z
2019-03-04T02:11:09.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: modules/prediction/proto/prediction_conf.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pro...
37.805907
1,217
0.766853
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: modules/prediction/proto/prediction_conf.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pro...
0
0
0
0
0
0
0
21
22
75cd32ba7e2545516e050e308b4e8da06031672a
702
py
Python
scripts/console_commands.py
iamHarin17/Core
9ad22f97ae0dc2d9e0ae60528bd0c7b14999a306
[ "MIT" ]
null
null
null
scripts/console_commands.py
iamHarin17/Core
9ad22f97ae0dc2d9e0ae60528bd0c7b14999a306
[ "MIT" ]
null
null
null
scripts/console_commands.py
iamHarin17/Core
9ad22f97ae0dc2d9e0ae60528bd0c7b14999a306
[ "MIT" ]
null
null
null
TEMPLATE_PATH = "core/conf/projct_template"
29.25
59
0.64245
import argparse from os import path from distutils.dir_util import copy_tree TEMPLATE_PATH = "core/conf/projct_template" def main(): parser = argparse.ArgumentParser() parser.add_argument('operation', type=str, nargs='+', help='project managment commands') args = parser.parse_args...
0
0
0
0
0
522
0
11
124
9d1eecec7500a32df6d5b5a44ca84f94d4f574d8
4,314
py
Python
models/cnnlstm.py
Keiku/PyTorch-Lightning-Video-Classification
72ed3c1606fe0657af267399fc32f1df59eca8ec
[ "MIT" ]
5
2021-05-03T09:14:28.000Z
2022-02-24T07:42:57.000Z
models/cnnlstm.py
Keiku/PyTorch-Lightning-Video-Classification
72ed3c1606fe0657af267399fc32f1df59eca8ec
[ "MIT" ]
1
2022-01-04T02:33:02.000Z
2022-01-05T03:58:13.000Z
models.py
Keiku/Action-Recognition-CNN-LSTM
004e4442d4a0e6a527396f279677c4d10cf92cbe
[ "MIT" ]
null
null
null
import torch.nn as nn
33.184615
85
0.597357
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torchvision.models import resnet152 class Encoder(nn.Module): def __init__(self, latent_dim): super(Encoder, self).__init__() resnet = resnet152(pretrained=True) s...
0
0
0
4,031
0
0
0
31
225
bdc33f192eb9520c77c9ba2ada5a552209ec4fd1
871
py
Python
setup.py
dbeley/FIP_lastfm_mirror
9561c233c0733a77a1ad59994e5792b52df76966
[ "MIT" ]
null
null
null
setup.py
dbeley/FIP_lastfm_mirror
9561c233c0733a77a1ad59994e5792b52df76966
[ "MIT" ]
1
2021-06-02T00:02:42.000Z
2021-06-02T00:02:42.000Z
setup.py
dbeley/FIP_lastfm_mirror
9561c233c0733a77a1ad59994e5792b52df76966
[ "MIT" ]
null
null
null
import setuptools import FIP_mirror with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="FIP_mirror", version=FIP_mirror.__version__, author="dbeley", author_email="dbeley@protonmail.com", description="Mirror the FIP webradios on several services.", long_...
27.21875
78
0.65442
import setuptools import FIP_mirror with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="FIP_mirror", version=FIP_mirror.__version__, author="dbeley", author_email="dbeley@protonmail.com", description="Mirror the FIP webradios on several services.", long_...
0
0
0
0
0
0
0
0
0
f63d872765b825c67b81518415277301754d214c
109
py
Python
achievements/settings.example.py
seLain/MissAchieve
e65ecf46d3c35b79151d526d0b0abce7b55a6652
[ "MIT" ]
null
null
null
achievements/settings.example.py
seLain/MissAchieve
e65ecf46d3c35b79151d526d0b0abce7b55a6652
[ "MIT" ]
7
2018-03-29T05:38:46.000Z
2021-06-10T20:09:49.000Z
achievements/settings.example.py
seLain/MissAchieve
e65ecf46d3c35b79151d526d0b0abce7b55a6652
[ "MIT" ]
null
null
null
""" Settings for achievements app. """ DEFAULT_ADMIN = '' DEFAULT_ADMIN_PASSWORD = '' DEFAULT_ADMIN_MAIL = ''
18.166667
30
0.724771
""" Settings for achievements app. """ DEFAULT_ADMIN = '' DEFAULT_ADMIN_PASSWORD = '' DEFAULT_ADMIN_MAIL = ''
0
0
0
0
0
0
0
0
0
3612bd57a165c25e66b5ce2e5f7f7966a9f8d5db
17,209
py
Python
flexmeasures/data/migrations/versions/6cf5b241b85f_copy_attributes_from_old_data_models_to_GenericAsset.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
12
2021-12-18T10:41:10.000Z
2022-03-29T23:00:29.000Z
flexmeasures/data/migrations/versions/6cf5b241b85f_copy_attributes_from_old_data_models_to_GenericAsset.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
103
2021-12-07T08:51:15.000Z
2022-03-31T13:28:48.000Z
flexmeasures/data/migrations/versions/6cf5b241b85f_copy_attributes_from_old_data_models_to_GenericAsset.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
3
2022-01-18T04:45:48.000Z
2022-03-14T09:48:22.000Z
"""Copy attributes from old data models to GenericAsset Revision ID: 6cf5b241b85f Revises: 1ae32ffc8c3f Create Date: 2021-11-11 17:18:15.395915 """ import json from datetime import datetime from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "6cf5b241b85f" down_revisi...
34.009881
154
0.590505
"""Copy attributes from old data models to GenericAsset Revision ID: 6cf5b241b85f Revises: 1ae32ffc8c3f Create Date: 2021-11-11 17:18:15.395915 """ import json from datetime import datetime from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "6cf5b241b85f" down_revisi...
0
0
0
0
0
1,920
0
0
69
34baf8bbf78edbbaa51c950b55c38d254daf2326
1,817
py
Python
models/network.py
cristyioan2000/mask_classification
f5451c18864eb60c7642614df62dcae9f0983910
[ "MIT" ]
null
null
null
models/network.py
cristyioan2000/mask_classification
f5451c18864eb60c7642614df62dcae9f0983910
[ "MIT" ]
null
null
null
models/network.py
cristyioan2000/mask_classification
f5451c18864eb60c7642614df62dcae9f0983910
[ "MIT" ]
null
null
null
import torch.nn as nn if __name__ == "__main___": __main__()
27.530303
97
0.606494
import torch.nn as nn import torch from utils.model_utils import init_model from torchsummary import summary class Network_v1(nn.Module): def __init__(self): super(Network_v1,self).__init__() # Define layers self.conv1 = nn.Conv2d(in_channels=3,out_channels=64,kernel_size=5,stride=1,paddin...
0
0
0
1,467
0
151
0
21
112
753cdda1822c89409e246fde61a373b297af8a46
716
py
Python
setup.py
yangjiaronga/acmclient
d0e35cb2f711276df965bb8bf6e27b8ee33af729
[ "MIT" ]
2
2018-08-22T03:38:47.000Z
2018-08-30T07:56:56.000Z
setup.py
yangjiaronga/acmclient
d0e35cb2f711276df965bb8bf6e27b8ee33af729
[ "MIT" ]
null
null
null
setup.py
yangjiaronga/acmclient
d0e35cb2f711276df965bb8bf6e27b8ee33af729
[ "MIT" ]
2
2018-08-22T02:54:10.000Z
2018-08-30T03:59:35.000Z
from setuptools import find_packages, setup setup( name='acmclient', version="0.2", url='https://github.com/yangjiaronga/acmclient/', license='MIT', author='yangjiaronga', author_email='yangjiaronga@gmail.com', description='Aliyun acm client for Python', packages=find_packages(), i...
28.64
53
0.614525
from setuptools import find_packages, setup setup( name='acmclient', version="0.2", url='https://github.com/yangjiaronga/acmclient/', license='MIT', author='yangjiaronga', author_email='yangjiaronga@gmail.com', description='Aliyun acm client for Python', packages=find_packages(), i...
0
0
0
0
0
0
0
0
0
3d3ab17c34f53c838d4829ba2f2b0e468547c454
1,439
py
Python
test/iter_test.py
TomNicholas/experi
5d1c1a76fff9cca3009052093ed66dccd675ba7d
[ "MIT" ]
4
2018-06-26T07:31:46.000Z
2020-05-09T20:22:32.000Z
test/iter_test.py
TomNicholas/experi
5d1c1a76fff9cca3009052093ed66dccd675ba7d
[ "MIT" ]
131
2018-02-01T23:41:13.000Z
2021-07-01T19:24:59.000Z
test/iter_test.py
TomNicholas/experi
5d1c1a76fff9cca3009052093ed66dccd675ba7d
[ "MIT" ]
1
2018-11-11T16:11:35.000Z
2018-11-11T16:11:35.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright 2018 Malcolm Ramsay <malramsay64@gmail.com> # # Distributed under terms of the MIT license. """Test the behaviour of the looping through variables. This is a series of tests that are defining the interface of the module, primarily the iter...
29.367347
85
0.694927
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2018 Malcolm Ramsay <malramsay64@gmail.com> # # Distributed under terms of the MIT license. """Test the behaviour of the looping through variables. This is a series of tests that are defining the interface of the module, primarily the ite...
2
874
0
0
0
0
0
40
92
33803abf582abfd6fde5759fb4893b79e81960e2
1,067
py
Python
color.py
roukaour/sudoku
f405f627b49b7400c8b41c36194d99ef4b6b179e
[ "MIT" ]
7
2015-09-30T19:09:29.000Z
2022-03-26T05:51:18.000Z
color.py
roukaour/sudoku
f405f627b49b7400c8b41c36194d99ef4b6b179e
[ "MIT" ]
1
2018-07-10T18:31:45.000Z
2018-07-11T01:32:11.000Z
color.py
roukaour/sudoku
f405f627b49b7400c8b41c36194d99ef4b6b179e
[ "MIT" ]
2
2019-06-26T11:37:31.000Z
2020-06-27T07:55:08.000Z
from __future__ import print_function Color.NEITHER = Color(0, 'neither', '0') Color.RED = Color(1, 'red', '31;1') Color.BLUE = Color(~1, 'blue', '44') Color.PURPLE = Color(~0, 'purple', '37;45;1') # RED == ~BLUE # BLUE == ~RED # PURPLE == RED | BLUE # NEITHER == RED & BLUE
21.77551
65
0.661668
from __future__ import print_function import sys class Color(object): """A printable and mixable color.""" # A dictionary of all colors, keyed by their numeric value colors = {} def __init__(self, value, name, code): self.value = value self.name = name self.code = code Color.colors[value] = self def _...
0
0
0
755
0
0
0
-11
46
58d7874e2071ed69f4f866554b981b6b71c80653
15,976
py
Python
xlsxwriter/test/styles/test_write_xf_methods.py
DeltaEpsilon7787/XlsxWriter
550b9c5bd678c861dcc9f6f4072b33a69566e065
[ "BSD-2-Clause-FreeBSD" ]
2,766
2015-01-02T17:36:42.000Z
2022-03-31T09:23:30.000Z
xlsxwriter/test/styles/test_write_xf_methods.py
DeltaEpsilon7787/XlsxWriter
550b9c5bd678c861dcc9f6f4072b33a69566e065
[ "BSD-2-Clause-FreeBSD" ]
683
2015-01-03T09:55:02.000Z
2022-03-31T07:18:15.000Z
xlsxwriter/test/styles/test_write_xf_methods.py
jmcnamara/test_py_github_actions
d445d5d98b038b63453dd70c9c1a9ca1b325cb47
[ "BSD-2-Clause-FreeBSD" ]
636
2015-01-05T01:57:08.000Z
2022-03-25T18:42:41.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org #
31.824701
191
0.607223
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ...styles import Styles from ...format import Format class TestWriteXf(unittest.TestCase): """ ...
0
0
0
15,681
0
0
0
10
112
0ae883536fe83d78c8c4581559039a3ac14f939f
10,202
py
Python
auscophub/saraclient.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
4
2020-01-25T02:01:49.000Z
2021-06-21T08:38:18.000Z
auscophub/saraclient.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
null
null
null
auscophub/saraclient.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
null
null
null
""" Functions for interface to the SARA client API. These routines can be used to build client-side applications for searching and downloading data. The most obvious way to use these routines is as follows:: urlOpener = saraclient.makeUrlOpener() sentinel = 2 paramList = ['startDate=2017-05-01', 'comp...
38.790875
97
0.685846
""" Functions for interface to the SARA client API. These routines can be used to build client-side applications for searching and downloading data. The most obvious way to use these routines is as follows:: urlOpener = saraclient.makeUrlOpener() sentinel = 2 paramList = ['startDate=2017-05-01', 'comp...
0
0
0
17
0
0
0
0
23
2ba1a6712dd4c0afededa3165d1286b86bf017a5
87,967
py
Python
dynamo/preprocessing/preprocess.py
aristoteleo/dynamo-release
841b5f1ba0d0e9d0ae75ff71e764828a7051d462
[ "BSD-3-Clause" ]
236
2019-07-09T22:06:21.000Z
2022-03-31T17:56:07.000Z
dynamo/preprocessing/preprocess.py
crsky1023/dynamo-release
793ea493b5fbcfece00c249493ee222fa128c774
[ "BSD-3-Clause" ]
115
2019-07-12T19:06:21.000Z
2022-03-31T17:34:18.000Z
dynamo/preprocessing/preprocess.py
crsky1023/dynamo-release
793ea493b5fbcfece00c249493ee222fa128c774
[ "BSD-3-Clause" ]
34
2019-07-10T03:34:04.000Z
2022-03-22T12:44:22.000Z
from collections.abc import Iterable import numpy as np import pandas as pd import warnings from scipy.sparse import issparse, csr_matrix from sklearn.decomposition import FastICA from sklearn.utils import sparsefuncs import anndata from anndata import AnnData from typing import Optional, Union, Callable from .cell_cy...
41.260319
136
0.608103
from collections.abc import Iterable import numpy as np import pandas as pd import warnings from scipy.sparse import issparse, csr_matrix from sklearn.decomposition import FastICA from sklearn.utils import sparsefuncs import anndata from anndata import AnnData from typing import Optional, Union, Callable from .cell_cy...
27
0
0
0
0
1,248
0
102
85
bfdd1b0704c3900d4fdd972910d23989016b822e
9,020
py
Python
cosmos/construct_caption_tables/construct.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
null
null
null
cosmos/construct_caption_tables/construct.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
5
2020-01-28T23:13:10.000Z
2022-02-10T00:28:15.000Z
cosmos/construct_caption_tables/construct.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
1
2021-03-10T19:25:44.000Z
2021-03-10T19:25:44.000Z
""" Construct csvs for Figure--Figure Captions/ Tables -- Table Captions """ from lxml import etree import os from Parser.parse_preprocess import get_words_from_child as get_words from converters.html2xml import htmlfile2xml from converters.xml2list import xml2list import pandas as pd import multiprocessing as mp impo...
40.267857
153
0.611197
""" Construct csvs for Figure--Figure Captions/ Tables -- Table Captions """ from lxml import etree import os from Parser.parse_preprocess import get_words_from_child as get_words from converters.html2xml import htmlfile2xml from converters.xml2list import xml2list import pandas as pd import multiprocessing as mp impo...
0
338
0
0
0
258
0
13
128
4b5f6671ad6ba6bc14117e33a89d780d24c6e735
629
py
Python
exasol_integration_test_docker_environment/test/test_find_free_port.py
exasol/integration-test-docker-environment
35850f67cd4cde010f03dd556d1a0f74b3291eb8
[ "MIT" ]
4
2020-06-25T20:47:31.000Z
2021-09-10T15:22:51.000Z
exasol_integration_test_docker_environment/test/test_find_free_port.py
exasol/integration-test-docker-environment
35850f67cd4cde010f03dd556d1a0f74b3291eb8
[ "MIT" ]
113
2020-06-02T08:51:08.000Z
2022-03-31T08:47:41.000Z
exasol_integration_test_docker_environment/test/test_find_free_port.py
exasol/integration-test-docker-environment
35850f67cd4cde010f03dd556d1a0f74b3291eb8
[ "MIT" ]
2
2020-05-19T10:57:47.000Z
2020-06-22T13:32:20.000Z
import unittest if __name__ == '__main__': unittest.main()
26.208333
84
0.680445
import unittest from exasol_integration_test_docker_environment.testing.utils import find_free_ports class FindFreePortTest(unittest.TestCase): def run_it(self, num_ports: int): ports = find_free_ports(num_ports) self.assertNotIn(0, ports) self.assertEqual(len(ports), num_ports) ...
0
0
0
454
0
0
0
63
46
37e7b4a58f2b5753a7f59640dc32a76aa6573b75
5,335
py
Python
contrib/android/tests/python/pants_test/contrib/android/test_android_base.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
contrib/android/tests/python/pants_test/contrib/android/test_android_base.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
contrib/android/tests/python/pants_test/contrib/android/test_android_base.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement)
38.65942
100
0.652296
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import tex...
0
4,132
0
260
0
0
0
351
291
ac71c80abca4e11319ef2d6387bdf0e57e982db3
3,539
py
Python
src/SmallNet.py
aponamarev/FootBallTracking
a1907164aa35fe925b2a11a1c596c1a489b90231
[ "MIT" ]
null
null
null
src/SmallNet.py
aponamarev/FootBallTracking
a1907164aa35fe925b2a11a1c596c1a489b90231
[ "MIT" ]
null
null
null
src/SmallNet.py
aponamarev/FootBallTracking
a1907164aa35fe925b2a11a1c596c1a489b90231
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ SmallNet.py is a class that provides a network for Person localization Created 6/13/17. """ __author__ = "Alexander Ponamarev" __email__ = "alex.ponamaryov@gmail.com" from collections import namedtuple Point = namedtuple('Point',['x', 'y'])
38.053763
100
0.60356
#!/usr/bin/env python """ SmallNet.py is a class that provides a network for Person localization Created 6/13/17. """ __author__ = "Alexander Ponamarev" __email__ = "alex.ponamaryov@gmail.com" import tensorflow as tf from collections import namedtuple from tensorflow import name_scope, variable_scope, stop_gradient ...
0
0
0
3,108
0
0
0
71
91
3a3bfbf477153a99bd4a220d6c47d81694221478
22,557
py
Python
SRC/common/IO/GUI/gtklogger/gtklogger/replay.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
SRC/common/IO/GUI/gtklogger/gtklogger/replay.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
SRC/common/IO/GUI/gtklogger/gtklogger/replay.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
43.130019
80
0.563461
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
0
0
0
18,831
0
836
0
-59
432
d8199a578b11aa9d10481a36e6942b751c2361cb
7,977
py
Python
qa/rpc-tests/electrum_transaction_get.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
535
2015-09-04T15:10:08.000Z
2022-03-17T20:51:05.000Z
qa/rpc-tests/electrum_transaction_get.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
1,269
2016-01-31T20:21:24.000Z
2022-03-16T01:20:08.000Z
qa/rpc-tests/electrum_transaction_get.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
295
2015-10-19T16:12:29.000Z
2021-08-02T20:05:17.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitcoin Unlimited developers """ Tests the electrum call 'blockchain.transaction.get' """ TX_GET = "blockchain.transaction.get" DUMMY_HASH = 0x1111111111111111111111111111111111111111 if __name__ == '__main__': ElectrumTransactionGet().main()
38.912195
113
0.55121
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitcoin Unlimited developers """ Tests the electrum call 'blockchain.transaction.get' """ import asyncio from test_framework.util import assert_equal, p2p_port from test_framework.electrumutil import ElectrumTestFramework, ElectrumConnection from test_framework.nodemessag...
0
0
5,349
1,793
0
0
0
360
177
8915b50a760df688402b47cae324268e702315b6
1,062
py
Python
233-Number-of-Digit-One/Python/Solution02.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
7
2015-05-05T22:21:30.000Z
2021-03-13T04:04:15.000Z
233-Number-of-Digit-One/Python/Solution02.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
null
null
null
233-Number-of-Digit-One/Python/Solution02.py
Eroica-cpp/LeetCode
07276bd11558f3d0e32bec768b09e886de145f9e
[ "CC-BY-3.0", "MIT" ]
2
2018-12-26T08:13:25.000Z
2020-07-18T20:18:24.000Z
#!/usr/bin/python """ ============================================================================== Author: Tao Li (taoli@ucsd.edu) Date: Jul 8, 2015 Question: 233-Number-of-Digit-One Link: https://leetcode.com/problems/number-of-digit-one/ ====================================================================...
33.1875
79
0.433145
#!/usr/bin/python """ ============================================================================== Author: Tao Li (taoli@ucsd.edu) Date: Jul 8, 2015 Question: 233-Number-of-Digit-One Link: https://leetcode.com/problems/number-of-digit-one/ ====================================================================...
0
0
0
249
0
0
0
0
23
7d692475de01f8e179c2db79fa3131cc57a9d957
6,591
py
Python
mistraldashboard/actions/forms.py
openstack/mistral-dashboard
2980dfc44f11400c75a1113e468f50e7c6d6396c
[ "Apache-2.0" ]
18
2015-06-23T08:06:12.000Z
2019-07-18T10:32:17.000Z
mistraldashboard/actions/forms.py
stackforge/mistral-dashboard
2980dfc44f11400c75a1113e468f50e7c6d6396c
[ "Apache-2.0" ]
2
2016-06-03T15:20:20.000Z
2016-08-09T04:57:38.000Z
mistraldashboard/actions/forms.py
stackforge/mistral-dashboard
2980dfc44f11400c75a1113e468f50e7c6d6396c
[ "Apache-2.0" ]
9
2015-07-09T02:15:05.000Z
2021-06-14T09:25:15.000Z
# Copyright 2015 Huawei Technologies Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
33.8
75
0.573206
# Copyright 2015 Huawei Technologies Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
0
0
0
5,707
0
0
0
65
227
19f278dd7535c00bc9ebe8e0e1741188feae5439
6,695
py
Python
build_dataset.py
asyrovprog/cs230project
cc9aebe256393b39140f69a2f31d1e9688c1e3d4
[ "MIT" ]
1
2021-04-28T08:29:28.000Z
2021-04-28T08:29:28.000Z
build_dataset.py
asyrovprog/cs230project
cc9aebe256393b39140f69a2f31d1e9688c1e3d4
[ "MIT" ]
null
null
null
build_dataset.py
asyrovprog/cs230project
cc9aebe256393b39140f69a2f31d1e9688c1e3d4
[ "MIT" ]
1
2021-01-27T21:52:07.000Z
2021-01-27T21:52:07.000Z
"""Split the Urban 3D dataset into train/dev/test and splits each image to 256x256 sub-tiles. Original images have size (2048, 2048). We do not resize images, but split them into smaller images i.e. each input image divided into 64 256x256 images """ import argparse import os from pathlib import Path import glob imp...
37.824859
167
0.6823
"""Split the Urban 3D dataset into train/dev/test and splits each image to 256x256 sub-tiles. Original images have size (2048, 2048). We do not resize images, but split them into smaller images i.e. each input image divided into 64 256x256 images """ import argparse import os from pathlib import Path import skimage....
0
0
0
0
329
2,910
0
22
295
2054415a49aef01461c7d34aa9921526cd007ccf
1,767
py
Python
Applications/RussianAlphabet/russian.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
Applications/RussianAlphabet/russian.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
Applications/RussianAlphabet/russian.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
1
2020-12-08T01:19:23.000Z
2020-12-08T01:19:23.000Z
import unicodedata import sys tbl = dict.fromkeys(i for i in xrange(sys.maxunicode) if unicodedata.category(unichr(i)).startswith('P')) def uniq(listinput): """ This finds the unique elements of the list listinput. """ """ This will be provided for the student. """ output = [] for x in listi...
28.967213
88
0.722694
import unicodedata import codecs import sys import scipy as sp import hmm tbl = dict.fromkeys(i for i in xrange(sys.maxunicode) if unicodedata.category(unichr(i)).startswith('P')) def uniq(listinput): """ This finds the unique elements of the list listinput. """ """ This will be provided for t...
0
0
0
0
0
1,202
0
-22
204
e8c31869fab6d27bcdc5c8f62d3992e1c767f425
1,052
py
Python
song_classifier/reflection.py
tonywu7/nyu-nlp-spring21-final
1ace33dc2b9b6deef7f73c0d347dc6b5c74bd304
[ "Apache-2.0" ]
null
null
null
song_classifier/reflection.py
tonywu7/nyu-nlp-spring21-final
1ace33dc2b9b6deef7f73c0d347dc6b5c74bd304
[ "Apache-2.0" ]
null
null
null
song_classifier/reflection.py
tonywu7/nyu-nlp-spring21-final
1ace33dc2b9b6deef7f73c0d347dc6b5c74bd304
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Tony Wu +https://github.com/tonywu7/ # # 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 ...
36.275862
87
0.739544
# Copyright 2021 Tony Wu +https://github.com/tonywu7/ # # 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 ...
0
0
0
0
0
323
0
36
92
0fbd334600607aabad74ee93b3e4426a3cb8ef45
8,344
py
Python
mro/stages/analyzer/run_graph_clustering/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
1
2019-03-29T04:05:58.000Z
2019-03-29T04:05:58.000Z
mro/stages/analyzer/run_graph_clustering/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
mro/stages/analyzer/run_graph_clustering/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2017 10X Genomics, Inc. All rights reserved. # import cellranger.h5_constants as h5_constants __MRO__ = """ stage RUN_GRAPH_CLUSTERING( in h5 matrix_h5, in h5 pca_h5, in int num_neighbors "Use this many neighbors", in float neighbor_a ...
38.275229
131
0.691275
#!/usr/bin/env python # # Copyright (c) 2017 10X Genomics, Inc. All rights reserved. # import martian import numpy as np import sys import cellranger.analysis.clustering as cr_clustering import cellranger.analysis.graphclust as cr_graphclust import cellranger.analysis.io as analysis_io from cellranger.analysis.singlege...
0
0
0
0
0
6,320
0
174
288
f5aeb1ef93a80b4d2f5780d60d6e9d527455fa80
475
py
Python
dimetric.py
BastiHz/dimetric
98feaca01bae8ca3e5019fc3722963843584b8c9
[ "Apache-2.0" ]
null
null
null
dimetric.py
BastiHz/dimetric
98feaca01bae8ca3e5019fc3722963843584b8c9
[ "Apache-2.0" ]
5
2020-08-17T17:39:40.000Z
2020-10-03T12:00:04.000Z
dimetric.py
BastiHz/dimetric
98feaca01bae8ca3e5019fc3722963843584b8c9
[ "Apache-2.0" ]
null
null
null
import os import logging logging.basicConfig( filename=".last_run.log", filemode="w", format="%(asctime)s %(levelname)s: %(message)s", level=logging.DEBUG ) # Must be done before importing Pygame: os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "1" os.environ["SDL_VIDEO_CENTERED"] = "1" from src.game imp...
19.791667
52
0.675789
import os import logging logging.basicConfig( filename=".last_run.log", filemode="w", format="%(asctime)s %(levelname)s: %(message)s", level=logging.DEBUG ) # Must be done before importing Pygame: os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "1" os.environ["SDL_VIDEO_CENTERED"] = "1" from src.game imp...
0
0
0
0
0
0
0
0
0
db3f35a2d1974ac6742727acfccf74a1839e665d
600
py
Python
apyce/io/__init__.py
mateustosta/apyce-project
5e2b82f3e74eb5a922146b796a12994d08a0f744
[ "BSD-3-Clause" ]
4
2021-04-02T04:12:27.000Z
2021-08-21T01:50:32.000Z
apyce/io/__init__.py
mateustosta/apyce-repo
5e2b82f3e74eb5a922146b796a12994d08a0f744
[ "BSD-3-Clause" ]
null
null
null
apyce/io/__init__.py
mateustosta/apyce-repo
5e2b82f3e74eb5a922146b796a12994d08a0f744
[ "BSD-3-Clause" ]
null
null
null
r""" **apyce.io** ---- This module contains functionality for exporting data to VTK ---- +----------------+------------------------------------------------------------+ | Format | Description | +================+================================================...
30
79
0.268333
r""" **apyce.io** ---- This module contains functionality for exporting data to VTK ---- +----------------+------------------------------------------------------------+ | Format | Description | +================+================================================...
0
0
0
0
0
0
0
-1
23
99463c982945df97a5194918e45b17a17224a910
4,184
py
Python
docx_to_json.py
CamzBarber/CameronBarber.com
0c07643e249a9d3361eede5c45a9dc5b008b6f8e
[ "MIT" ]
1
2018-09-23T15:59:58.000Z
2018-09-23T15:59:58.000Z
docx_to_json.py
CamzBarber/CameronBarber.com
0c07643e249a9d3361eede5c45a9dc5b008b6f8e
[ "MIT" ]
null
null
null
docx_to_json.py
CamzBarber/CameronBarber.com
0c07643e249a9d3361eede5c45a9dc5b008b6f8e
[ "MIT" ]
null
null
null
import docx import json import pyperclip # Concatenate role/company for keys below. # Order: URL, img, skills list # Read bullet points to check for skills. extra_info = { "IT Associate [Placement]PwC": [ "http://www.pwc.com/", "img/experience/pwc.jpeg", ["Python", "HTML5", "CSS3", "Bootst...
30.540146
284
0.508365
import docx import json import pyperclip # Concatenate role/company for keys below. # Order: URL, img, skills list # Read bullet points to check for skills. extra_info = { "IT Associate [Placement]PwC": [ "http://www.pwc.com/", "img/experience/pwc.jpeg", ["Python", "HTML5", "CSS3", "Bootst...
0
0
0
0
0
2,359
0
0
69
1448618a7b232dc43f18763973df4b308abeedc0
457
py
Python
users/migrations/0002_auto_20190704_1433.py
juliolugo96/projex-api
4bf12ce3ab228e43e7aa1b3d2d8972c1e4733a89
[ "MIT" ]
1
2019-05-31T04:40:09.000Z
2019-05-31T04:40:09.000Z
users/migrations/0002_auto_20190704_1433.py
juliolugo96/projex-api
4bf12ce3ab228e43e7aa1b3d2d8972c1e4733a89
[ "MIT" ]
4
2020-06-05T20:41:34.000Z
2021-09-08T00:58:10.000Z
users/migrations/0002_auto_20190704_1433.py
juliolugo96/projex-api
4bf12ce3ab228e43e7aa1b3d2d8972c1e4733a89
[ "MIT" ]
3
2019-05-31T04:40:04.000Z
2020-02-08T21:54:23.000Z
# Generated by Django 2.1.7 on 2019-07-04 14:33
22.85
103
0.636761
# Generated by Django 2.1.7 on 2019-07-04 14:33 from django.db import migrations, models import users.models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='customuser', name='...
0
0
0
323
0
0
0
17
68
fe4976fec9b26ca0009bde09fe3e99f18fe048ee
1,169
py
Python
src/artifactcli/operation/__init__.py
arcizan/artifact-cli
1b4ddcd8bb3c32899fa385eefd128829c8cdd6e5
[ "Apache-2.0" ]
10
2015-01-11T14:43:57.000Z
2020-05-08T06:18:30.000Z
src/artifactcli/operation/__init__.py
arcizan/artifact-cli
1b4ddcd8bb3c32899fa385eefd128829c8cdd6e5
[ "Apache-2.0" ]
34
2015-01-04T17:37:54.000Z
2019-11-11T17:11:24.000Z
src/artifactcli/operation/__init__.py
arcizan/artifact-cli
1b4ddcd8bb3c32899fa385eefd128829c8cdd6e5
[ "Apache-2.0" ]
4
2015-01-11T07:05:33.000Z
2021-11-17T04:26:32.000Z
__all__ = [ 'HelpOperation', 'ListOperation', 'UploadOperation', 'DownloadOperation', 'InfoOperation', 'DeleteOperation', ] from .help import HelpOperation from .list import ListOperation from .upload import UploadOperation from .download import DownloadOperation from .info import InfoOperation ...
32.472222
87
0.696322
__all__ = [ 'HelpOperation', 'ListOperation', 'UploadOperation', 'DownloadOperation', 'InfoOperation', 'DeleteOperation', ] from .help import HelpOperation from .list import ListOperation from .upload import UploadOperation from .download import DownloadOperation from .info import InfoOperation ...
0
0
0
0
0
0
0
0
0
d94ac4c6a13dd5a87253bfb2d54a02964371911a
3,169
py
Python
torchlib/generative_model/autoencoder/aae/utils.py
vermouth1992/torchlib
63b2bedb40f670b2d9fbfc0daeab4a8d44623095
[ "MIT" ]
3
2019-07-23T21:32:36.000Z
2022-02-04T23:13:30.000Z
torchlib/generative_model/autoencoder/aae/utils.py
vermouth1992/torchlib
63b2bedb40f670b2d9fbfc0daeab4a8d44623095
[ "MIT" ]
null
null
null
torchlib/generative_model/autoencoder/aae/utils.py
vermouth1992/torchlib
63b2bedb40f670b2d9fbfc0daeab4a8d44623095
[ "MIT" ]
1
2019-07-23T21:32:23.000Z
2019-07-23T21:32:23.000Z
""" Utilities for AAE """
32.670103
84
0.584727
""" Utilities for AAE """ import torch from sklearn.manifold import TSNE from sklearn.decomposition import PCA from visdom import Visdom from ....common import FloatTensor class SampleImage(object): """ Make a grid and plot a class of image on one row """ def __init__(self, n_row, n_col): self.n_row...
0
0
0
2,924
0
0
0
36
181
e3e29ab1ac785703839dbf6155470f174571a37d
7,740
py
Python
configs/fisheye_pig/mask_rcnn_r50_caffe_fpn_mstrain-poly_1x_all_pig_head_and_hip.py
leemengwei/my_mmdetection
be90a1da8b16154db5ad6847c2bc4b0545feece0
[ "Apache-2.0" ]
1
2021-09-07T13:05:38.000Z
2021-09-07T13:05:38.000Z
configs/fisheye_pig/mask_rcnn_r50_caffe_fpn_mstrain-poly_1x_all_pig_head_and_hip.py
leemengwei/my_mmdetection
be90a1da8b16154db5ad6847c2bc4b0545feece0
[ "Apache-2.0" ]
null
null
null
configs/fisheye_pig/mask_rcnn_r50_caffe_fpn_mstrain-poly_1x_all_pig_head_and_hip.py
leemengwei/my_mmdetection
be90a1da8b16154db5ad6847c2bc4b0545feece0
[ "Apache-2.0" ]
null
null
null
_base_ = '../mask_rcnn/mask_rcnn_r50_caffe_fpn_mstrain-poly_1x_coco.py' # We also need to change the num_classes in head to match the dataset's annotation classes=('pig', 'person', 'pig_head', 'pig_hip') # pig person pigpig (pigdormpigmask) model = dict( roi_head=dict( bbox_head=dict(num_classes=...
36.857143
130
0.528295
_base_ = '../mask_rcnn/mask_rcnn_r50_caffe_fpn_mstrain-poly_1x_coco.py' # We also need to change the num_classes in head to match the dataset's annotation classes=('pig', 'person', 'pig_head', 'pig_hip') # pig person 类分了也没法用,肯定不如专门分pig的分的准,所以不用这个的pig (目前pig类不能用,因为dorm中的pig在mask里) model = dict( roi_head=di...
186
0
0
0
0
0
0
0
0
462351cf8874c79566eacf27e49fc93d3ee8cb1c
2,198
py
Python
src/code_submission/2_pasanju/models/nas_autograph_b.py
NehzUx/AutoGraph-KDDCup2020
d2fc228f4ccc5785db3129cca0445a80b6fef11d
[ "MIT" ]
1
2021-12-06T14:59:55.000Z
2021-12-06T14:59:55.000Z
src/code_submission/2_pasanju/models/nas_autograph_b.py
NehzUx/AutoGraph-Benchmark
d2fc228f4ccc5785db3129cca0445a80b6fef11d
[ "MIT" ]
null
null
null
src/code_submission/2_pasanju/models/nas_autograph_b.py
NehzUx/AutoGraph-Benchmark
d2fc228f4ccc5785db3129cca0445a80b6fef11d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by HazzaCheng on 2020-05-11
37.896552
111
0.656961
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by HazzaCheng on 2020-05-11 import torch import torch.nn.functional as F from torch import nn from torch_geometric.nn import GATConv, ARMAConv, SAGEConv class NasAutoGraphB(nn.Module): def __init__(self, features_num, num_class, num_layers=2, dropout=0.5, h...
0
50
0
1,890
0
0
0
37
135
ccae83714ad7cc962eb063c91b0e06cccee3c2c9
1,230
py
Python
predict.py
schuangs/Satellite-Orbit-Prediction
48df4814802a481fc54a3691c4a756ec1c224477
[ "MIT" ]
1
2022-03-17T08:16:29.000Z
2022-03-17T08:16:29.000Z
predict.py
schuangs/Satellite-Orbit-Prediction
48df4814802a481fc54a3691c4a756ec1c224477
[ "MIT" ]
null
null
null
predict.py
schuangs/Satellite-Orbit-Prediction
48df4814802a481fc54a3691c4a756ec1c224477
[ "MIT" ]
null
null
null
# Functions for orbit prediction # # function predict: # input: # elements - elements of satellite orbit, defined in model.py # ts - array of time points # flag - whether to consider perturbation # return: # list of elements at each predict point # ...
28.604651
146
0.617886
# Functions for orbit prediction import model import perturbation import transform import numpy as np from scipy.integrate import solve_ivp # # function predict: # input: # elements - elements of satellite orbit, defined in model.py # ts - array of time points # ...
0
0
0
0
0
527
0
-3
164
8199649f46973979751ba0334875b0faa2f586ef
2,614
py
Python
labs/ai-edge/vision/ocr/code/ocr.py
chagen24/iot-curriculum
32c4cfe6a24d63e10d2f3f8ca5bcd32d6d84652d
[ "CC-BY-4.0", "MIT" ]
126
2020-07-15T02:46:53.000Z
2022-03-20T06:11:47.000Z
labs/ai-edge/vision/ocr/code/ocr.py
toolboc/iot-curriculum
ca7e6a62f8d5367708b9b397bb8a3f87e7562f50
[ "CC-BY-4.0", "MIT" ]
33
2020-08-31T21:59:16.000Z
2021-06-27T15:42:59.000Z
labs/ai-edge/vision/ocr/code/ocr.py
toolboc/iot-curriculum
ca7e6a62f8d5367708b9b397bb8a3f87e7562f50
[ "CC-BY-4.0", "MIT" ]
48
2020-07-14T19:13:06.000Z
2022-03-01T08:55:49.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os from azure.cognitiveservices.vision import computervision from msrest import authentication from dotenv import load_dotenv # Load the API key and endpoint from the .env file load_dotenv() API_KEY = os.getenv('API_KEY') ENDPOINT = os.ge...
33.512821
82
0.734124
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os from azure.cognitiveservices.vision import computervision from msrest import authentication from dotenv import load_dotenv # Load the API key and endpoint from the .env file load_dotenv() API_KEY = os.getenv('API_KEY') ENDPOINT = os.ge...
0
0
0
0
0
616
0
0
48
c8028064d6ca70da5a988c29c3b6250c204abb83
722
py
Python
skylantern/utils/util.py
chzhong25346/Skylantern
b199d9fa890c3a4a35e28b0e8089e1d97a351500
[ "Apache-2.0" ]
null
null
null
skylantern/utils/util.py
chzhong25346/Skylantern
b199d9fa890c3a4a35e28b0e8089e1d97a351500
[ "Apache-2.0" ]
2
2021-03-31T20:03:41.000Z
2021-12-13T20:45:29.000Z
skylantern/utils/util.py
chzhong25346/Skylantern
b199d9fa890c3a4a35e28b0e8089e1d97a351500
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger('main.util')
23.290323
72
0.608033
import hashlib import logging import re logger = logging.getLogger('main.util') def gen_id(string): return int(hashlib.md5(str.encode(string)).hexdigest(), 16) def groupby_na_to_zero(df, ticker): df = df.groupby(ticker).first() df.fillna(0, inplace=True) return df def missing_ticker(index): ...
0
0
0
0
0
568
0
-19
113
868cdbc6cc7cf0c2b01886ee5ef1a5f76118b107
5,447
py
Python
IoT course/addition/algorithms/data_generator.py
SunnyientDev/kaggle_contests
f682bf33c0155d872913d9a0db99ba819745bc11
[ "MIT" ]
1
2021-08-19T18:55:07.000Z
2021-08-19T18:55:07.000Z
IoT course/addition/algorithms/data_generator.py
SunnyientDev/kaggle_contests
f682bf33c0155d872913d9a0db99ba819745bc11
[ "MIT" ]
null
null
null
IoT course/addition/algorithms/data_generator.py
SunnyientDev/kaggle_contests
f682bf33c0155d872913d9a0db99ba819745bc11
[ "MIT" ]
null
null
null
''' This code works as simulator. Main values: brightness, time, date, temperature, humidity. Users values: message. ''' import datetime ################################## PLANT SETTINGS ################################## plant_last_watering_day = "2021-01-12" plant_watering_range_days = 7 plant_temperature = [20, 25...
40.051471
201
0.631173
''' This code works as simulator. Main values: brightness, time, date, temperature, humidity. Users values: message. ''' import datetime from datetime import datetime import random ################################## PLANT SETTINGS ################################## plant_last_watering_day = "2021-01-12" plant_waterin...
192
0
0
0
0
4,300
0
0
224
13b66fc7309a1607362996695589538dbea15b3d
10,654
py
Python
tests/conftest.py
elastic-coders/aiopg
1e1a06eb63d093b14125d51e3444c135aaf15679
[ "BSD-2-Clause" ]
null
null
null
tests/conftest.py
elastic-coders/aiopg
1e1a06eb63d093b14125d51e3444c135aaf15679
[ "BSD-2-Clause" ]
null
null
null
tests/conftest.py
elastic-coders/aiopg
1e1a06eb63d093b14125d51e3444c135aaf15679
[ "BSD-2-Clause" ]
1
2021-02-09T10:08:33.000Z
2021-02-09T10:08:33.000Z
import collections _LoggingWatcher = collections.namedtuple("_LoggingWatcher", ["records", "output"])
28.872629
76
0.612915
import asyncio import collections import gc import logging import psycopg2 import pytest import re import socket import sys import time import uuid import warnings from docker import Client as DockerClient import aiopg from aiopg import sa @pytest.fixture(scope='session') def unused_port(): def f(): wit...
0
4,611
0
4,294
0
877
0
-87
793
7b6bde1e004368c2c31024dd5f4761b9e5b438c4
139
py
Python
airbyte-integrations/connectors/destination-hadoop/destination_hadoop/__init__.py
jaynyoni/localAirbyte
efd7a52d6c5b1cdbac9801cf8a4e20b4f07aa3b6
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/destination-hadoop/destination_hadoop/__init__.py
jaynyoni/localAirbyte
efd7a52d6c5b1cdbac9801cf8a4e20b4f07aa3b6
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/destination-hadoop/destination_hadoop/__init__.py
jaynyoni/localAirbyte
efd7a52d6c5b1cdbac9801cf8a4e20b4f07aa3b6
[ "MIT" ]
null
null
null
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # from .destination import DestinationHadoop __all__ = ["DestinationHadoop"]
15.444444
56
0.741007
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # from .destination import DestinationHadoop __all__ = ["DestinationHadoop"]
0
0
0
0
0
0
0
0
0
602253f90741cbb64b075a23d837cda11ae2925e
1,492
py
Python
6_3_InceptionNet_Visualization.py
matiji66/car_light_dection
75effbe7835473700d6617b3a407edee0a011135
[ "Apache-2.0" ]
null
null
null
6_3_InceptionNet_Visualization.py
matiji66/car_light_dection
75effbe7835473700d6617b3a407edee0a011135
[ "Apache-2.0" ]
null
null
null
6_3_InceptionNet_Visualization.py
matiji66/car_light_dection
75effbe7835473700d6617b3a407edee0a011135
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @author:Spring import tensorflow as tf import os import tarfile import requests inception_pretrain_model_url = 'http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz' # inception pretrain inception_pretrain_model_dir = "inception_pretrain" if not...
32.434783
110
0.737936
#!/usr/bin/env python # -*- coding:utf-8 -*- # @author:Spring import tensorflow as tf import os import tarfile import requests inception_pretrain_model_url = 'http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz' # 下载inception pretrain模型 inception_pretrain_model_dir = "inception_pretrain" if...
60
0
0
0
0
0
0
0
0
5b645ed91fdb69e6e8458c66f65224088dca4981
7,311
py
Python
src/auth/auth_ldap.py
kbza/script-server
ad37a5c7e904ba1c466edebf8e409c6ae2710135
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/auth/auth_ldap.py
kbza/script-server
ad37a5c7e904ba1c466edebf8e409c6ae2710135
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/auth/auth_ldap.py
kbza/script-server
ad37a5c7e904ba1c466edebf8e409c6ae2710135
[ "Apache-2.0", "CC0-1.0" ]
1
2020-04-28T14:50:28.000Z
2020-04-28T14:50:28.000Z
import logging KNOWN_REJECTIONS = [ "invalidCredentials", "user name is mandatory in simple bind", "password is mandatory in simple bind"] LOGGER = logging.getLogger('script_server.LdapAuthorizer')
32.065789
111
0.623444
import json import logging import os from string import Template from ldap3 import Connection, SIMPLE from ldap3.core.exceptions import LDAPAttributeError from auth import auth_base from model import model_helper from utils import file_utils from utils.string_utils import strip KNOWN_REJECTIONS = [ "invalidCrede...
0
0
0
5,398
0
1,315
0
66
315
0787203a3df45e02ff149e475813576a32ca9ab2
796
py
Python
v1/validators/migrations/0002_auto_20201126_0016.py
nishp77/Validator
77888fc95db1c69a8a734a6d4eded5fe539ac0b6
[ "MIT" ]
43
2020-07-12T23:08:35.000Z
2021-11-28T00:50:49.000Z
v1/validators/migrations/0002_auto_20201126_0016.py
nishp77/Validator
77888fc95db1c69a8a734a6d4eded5fe539ac0b6
[ "MIT" ]
72
2020-07-15T02:33:15.000Z
2021-10-04T20:52:13.000Z
v1/validators/migrations/0002_auto_20201126_0016.py
nishp77/Validator
77888fc95db1c69a8a734a6d4eded5fe539ac0b6
[ "MIT" ]
43
2020-07-13T08:14:24.000Z
2021-10-04T17:33:26.000Z
# Generated by Django 3.1.3 on 2020-11-26 00:16
29.481481
140
0.61809
# Generated by Django 3.1.3 on 2020-11-26 00:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('validators', '0001_initial'), ] operations = [ migrations.AlterField( model_name='validator', name='ip_address', ...
0
0
0
682
0
0
0
19
46
8fb522f92d1c45c0f54616c4dafb7b45a145a79d
317
py
Python
old-stuff/python-exercises/country_test2.py
bleekere/eScience2022
be58ab45a75e26551f5409d5afe407e60b1989b1
[ "CC0-1.0" ]
null
null
null
old-stuff/python-exercises/country_test2.py
bleekere/eScience2022
be58ab45a75e26551f5409d5afe407e60b1989b1
[ "CC0-1.0" ]
null
null
null
old-stuff/python-exercises/country_test2.py
bleekere/eScience2022
be58ab45a75e26551f5409d5afe407e60b1989b1
[ "CC0-1.0" ]
null
null
null
from finding_parents_method import finding_parents # import lxml library from lxml import etree as ElementTree # genereer data voor input later file = open('country_data.xml') data = file.read() tree = ElementTree.fromstring(data) rank = tree.xpath('.//rank')[0] parents = finding_parents(rank) print(parents)
17.611111
50
0.763407
from finding_parents_method import finding_parents # import lxml library from lxml import etree as ElementTree # genereer data voor input later file = open('country_data.xml') data = file.read() tree = ElementTree.fromstring(data) rank = tree.xpath('.//rank')[0] parents = finding_parents(rank) print(parents)
0
0
0
0
0
0
0
0
0
6fbe1cdf00e8e7a71160e04af88c39b38e6791f0
69,336
py
Python
sdk/python/pulumi_keycloak/oidc/google_identity_provider.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
13
2020-04-28T15:20:56.000Z
2022-03-24T18:00:17.000Z
sdk/python/pulumi_keycloak/oidc/google_identity_provider.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
49
2020-02-06T17:53:35.000Z
2022-03-25T19:36:08.000Z
sdk/python/pulumi_keycloak/oidc/google_identity_provider.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
2
2020-06-09T01:08:56.000Z
2021-12-07T15:30:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from .. import _utilities __all__ = ['GoogleIdentityProviderArgs', 'GoogleIdentityProvider']
54.897862
302
0.685041
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
0
63,059
0
5,805
0
0
0
41
136
75d30d6a94aff4ecbd33f63600c4eb532eb07885
1,751
py
Python
detectron2/distiller_zoo/test.py
lijingyao20010602/Dilation-FasterRCNN
fb1f2f0ab336a65604c4d520cca61995b42fb1a6
[ "Apache-2.0" ]
1
2021-11-07T11:30:57.000Z
2021-11-07T11:30:57.000Z
detectron2/distiller_zoo/test.py
lijingyao20010602/Dilation-FasterRCNN
fb1f2f0ab336a65604c4d520cca61995b42fb1a6
[ "Apache-2.0" ]
null
null
null
detectron2/distiller_zoo/test.py
lijingyao20010602/Dilation-FasterRCNN
fb1f2f0ab336a65604c4d520cca61995b42fb1a6
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import torch import torch.nn as nn student = torch.tensor([[0,1,2],[2,3,4],[2,3,5]], dtype=torch.float) teacher = torch.tensor([[1,2,2],[3,4,5],[3,4,0]], dtype=torch.float) student2 = torch.tensor([[[0,1],[0,3]]], dtype=torch.float) teacher2 = torch.tensor([[[1,2],[4,3]]], dtype...
39.795455
106
0.714449
from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F import pdb def cosine_similarity_loss(output_net, target_net, eps=0.0000001): # Normalize each vector by its norm output_net_norm = torch.sqrt(torch.sum(output_net ** 2, dim=1, keepdim=True)) output_n...
0
0
0
0
0
1,221
0
-1
67
628cd1cf84b9aa86b82bce5441be277aeb25b435
2,191
py
Python
src/smart_compose/run_smart_compose.py
StarWang/detext
66f071ec2cebf5e54e7d1de40936b5f281c2a69b
[ "BSD-2-Clause" ]
1,229
2020-02-07T22:17:47.000Z
2022-03-26T06:56:52.000Z
src/smart_compose/run_smart_compose.py
StarWang/detext
66f071ec2cebf5e54e7d1de40936b5f281c2a69b
[ "BSD-2-Clause" ]
36
2020-04-10T02:00:20.000Z
2022-02-09T06:52:35.000Z
src/smart_compose/run_smart_compose.py
StarWang/detext
66f071ec2cebf5e54e7d1de40936b5f281c2a69b
[ "BSD-2-Clause" ]
142
2020-04-07T01:04:07.000Z
2022-03-31T16:22:20.000Z
import sys import tempfile from dataclasses import asdict import tensorflow as tf from absl import logging from official.utils.misc import distribution_utils from smart_compose.args import SmartComposeArg from smart_compose.train import train from smart_compose.utils import distributed_utils, parsing_utils def main...
31.3
155
0.721132
import sys import tempfile from dataclasses import asdict import tensorflow as tf from absl import logging from official.utils.misc import distribution_utils from smart_compose.args import SmartComposeArg from smart_compose.train import train from smart_compose.utils import distributed_utils, parsing_utils def main...
0
0
0
0
0
0
0
0
0
da7d73888f2d1d5596bff3cb443d6daa490ff550
1,301
py
Python
ctxdec/ctx.py
tebeka/pythonwise
56f8cb7aa792c3ad6a3dc754e15f6a04890d694a
[ "BSD-3-Clause" ]
21
2016-11-16T20:08:56.000Z
2021-12-11T23:13:05.000Z
ctxdec/ctx.py
tebeka/pythonwise
56f8cb7aa792c3ad6a3dc754e15f6a04890d694a
[ "BSD-3-Clause" ]
1
2020-10-05T08:35:31.000Z
2020-10-05T08:35:31.000Z
ctxdec/ctx.py
tebeka/pythonwise
56f8cb7aa792c3ad6a3dc754e15f6a04890d694a
[ "BSD-3-Clause" ]
8
2016-11-12T22:54:55.000Z
2021-02-10T10:46:23.000Z
## Greeter ## timed_block ## Closer ## Database ## contextlib
19.41791
63
0.599539
## Greeter class greeter(object): def __enter__(self): print('Hai') def __exit__(self, exc_type, exc_value, traceback): print('Bai') ## timed_block from time import time class timed_block(object): def __init__(self, name): self.name = name def __enter__(self): self....
0
140
0
917
0
0
0
16
156
8acd0b665b53712ee677bc1809daea30359ef3c9
1,905
py
Python
utils/nn_utils.py
fpthink/PDGN
e2f7c26a74069868231b4fefdb90db1386590809
[ "MIT" ]
21
2020-07-13T03:14:21.000Z
2022-03-15T20:14:42.000Z
utils/nn_utils.py
fpthink/PDGN
e2f7c26a74069868231b4fefdb90db1386590809
[ "MIT" ]
2
2020-08-08T12:18:14.000Z
2022-03-21T12:59:10.000Z
utils/nn_utils.py
fpthink/PDGN
e2f7c26a74069868231b4fefdb90db1386590809
[ "MIT" ]
5
2020-09-14T09:37:04.000Z
2021-09-15T08:35:54.000Z
import sklearn import torch.nn as nn
25.4
61
0.543832
import math import sklearn import torch import torch.nn as nn from torch.nn.parameter import Parameter from torch.autograd import Variable import torch.nn.functional as F import sklearn.metrics class fcbr(nn.Module): """ fc-bn-relu [B, Fin] -> [B, Fout] """ def __init__(self, Fin, Fout): super...
0
0
0
1,618
0
0
0
25
225
29cba6f36a73c1084ee342ce8960ff548cee2cc2
5,178
py
Python
scripts/eval_cityscapes.py
dr-benway/RevGAN
fcaf4f837a58f20f787e442914d68194325c2ca6
[ "BSD-3-Clause" ]
1
2019-03-20T10:37:24.000Z
2019-03-20T10:37:24.000Z
scripts/eval_cityscapes.py
dr-benway/RevGAN
fcaf4f837a58f20f787e442914d68194325c2ca6
[ "BSD-3-Clause" ]
null
null
null
scripts/eval_cityscapes.py
dr-benway/RevGAN
fcaf4f837a58f20f787e442914d68194325c2ca6
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from PIL import Image import os import argparse import scipy from sklearn.metrics import confusion_matrix import caffe parser = argparse.ArgumentParser() parser.add_argument("--result_dir", type=str, required=True, help="Path to the generated images to be evaluated") parser.add_argument("--vers...
36.20979
127
0.645616
import numpy as np from PIL import Image import os, sys import argparse from sklearn.metrics import mean_absolute_error as compare_mae from skimage.measure import compare_psnr from skimage.measure import compare_ssim from labels import labels import scipy, skimage from scipy.spatial import KDTree from sklearn.metric...
0
0
0
0
0
1,145
0
105
256
e8f34adf12d491826259e2222f4c1bc90ac0f315
5,336
py
Python
cafe/drivers/unittest/suite_builder.py
rcbops-qa/opencafe
4e6d99ce763fd28289cd35cbd56ca5722824f89e
[ "Apache-2.0" ]
null
null
null
cafe/drivers/unittest/suite_builder.py
rcbops-qa/opencafe
4e6d99ce763fd28289cd35cbd56ca5722824f89e
[ "Apache-2.0" ]
null
null
null
cafe/drivers/unittest/suite_builder.py
rcbops-qa/opencafe
4e6d99ce763fd28289cd35cbd56ca5722824f89e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Rackspace # 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, sof...
38.388489
79
0.605697
# Copyright 2015 Rackspace # 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, sof...
0
443
0
3,966
0
0
0
114
201
6893dd14fd692112798e40d198652cfd76d734e0
3,626
py
Python
scripts/self_intersections.py
fscottfoti/cutting_board
fda64472fa434d217334f5aaead0c799870672ce
[ "BSD-3-Clause" ]
null
null
null
scripts/self_intersections.py
fscottfoti/cutting_board
fda64472fa434d217334f5aaead0c799870672ce
[ "BSD-3-Clause" ]
null
null
null
scripts/self_intersections.py
fscottfoti/cutting_board
fda64472fa434d217334f5aaead0c799870672ce
[ "BSD-3-Clause" ]
1
2019-12-27T15:28:17.000Z
2019-12-27T15:28:17.000Z
import geopandas as gpd import pandas as pd import numpy as np import shared import sys from shapely.geometry import Polygon args = sys.argv[1:] prefix = args[0] + "_" if len(args) else "" parcels = gpd.read_geocsv("parcels/%sparcels.csv" % prefix, low_memory=False) mazs = gpd.read_geocsv("data/mazs.csv") parcels_ce...
32.666667
77
0.707943
import geopandas as gpd import pandas as pd import numpy as np import shared import sys from shapely.geometry import Polygon args = sys.argv[1:] prefix = args[0] + "_" if len(args) else "" parcels = gpd.read_geocsv("parcels/%sparcels.csv" % prefix, low_memory=False) mazs = gpd.read_geocsv("data/mazs.csv") parcels_ce...
0
0
0
0
0
2,061
0
0
91
c75feb0738ced069d8a492125c42e855fa621a17
1,238
py
Python
test/test_baseOT.py
marksibrahim/CrypTen
4e5b13487d7f6ceaa4f06e86f0b260e0761960fd
[ "MIT" ]
null
null
null
test/test_baseOT.py
marksibrahim/CrypTen
4e5b13487d7f6ceaa4f06e86f0b260e0761960fd
[ "MIT" ]
null
null
null
test/test_baseOT.py
marksibrahim/CrypTen
4e5b13487d7f6ceaa4f06e86f0b260e0761960fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest import crypten.mpc.primitives.baseOT as baseOT if __name__ == "__main__": unittest.main()
30.195122
69
0.584814
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from test.multiprocess_test_case import MultiProcessTestCase import crypten.mpc.primitives.baseOT as ...
0
0
0
838
0
0
0
39
45
07d75022dbbab4c52ed216c2d2990515b7f8948b
5,591
py
Python
MonkeyParser.py
ideaworld/Monkey
4867598bddb142a82adb7460e35fb5836be2e219
[ "MIT" ]
1
2017-08-01T03:30:08.000Z
2017-08-01T03:30:08.000Z
MonkeyParser.py
ideaworld/Monkey
4867598bddb142a82adb7460e35fb5836be2e219
[ "MIT" ]
null
null
null
MonkeyParser.py
ideaworld/Monkey
4867598bddb142a82adb7460e35fb5836be2e219
[ "MIT" ]
null
null
null
import MonkeyLex tokens = MonkeyLex.tokens def p_program(p): '''program : program compound_action actions | compound_action actions | program actions | actions ''' if len(p) == 4: p[0] = p[1] if not p[0]: p[0] = [] p[0].append(p[2])...
24.414847
71
0.434806
from ply import * import MonkeyLex tokens = MonkeyLex.tokens def p_program(p): '''program : program compound_action actions | compound_action actions | program actions | actions ''' if len(p) == 4: p[0] = p[1] if not p[0]: p[0] = [] ...
0
0
0
0
0
112
0
-4
45
eea67e103d4c54a433a7d16617019736c435f6fb
24,214
py
Python
generate_testcase.py
EmbSys-WWU/SLAMtesting
8b92531b32d57a915b00027d985d030707b90086
[ "MIT" ]
1
2022-03-23T07:13:58.000Z
2022-03-23T07:13:58.000Z
generate_testcase.py
EmbSys-WWU/SLAMtesting
8b92531b32d57a915b00027d985d030707b90086
[ "MIT" ]
null
null
null
generate_testcase.py
EmbSys-WWU/SLAMtesting
8b92531b32d57a915b00027d985d030707b90086
[ "MIT" ]
null
null
null
from math import sqrt, atan2, hypot, sin, cos, pi from random import uniform, gauss from typing import Optional, Tuple import numpy as np from map import Map from motion import Velocity, Odometry from obstacle import Obstacle, ObstacleID from robot import Robot from sensor_trace import SensorTrace, TimeStep from simu...
45.175373
120
0.609234
from math import sqrt, atan2, hypot, sin, cos, pi from random import uniform, gauss from typing import Optional, Tuple import numpy as np from map import Map from motion import Velocity, Odometry from obstacle import Obstacle, ObstacleID from robot import Robot from sensor_trace import SensorTrace, TimeStep from simu...
6
0
0
0
0
0
0
0
0
0690a08b7836518ef0ef2d115bea957b10f98759
2,342
py
Python
src/bot.py
gilz688/gbot
b0e159c0a86240f5b1a4f64cfc3c4e7eded33120
[ "MIT" ]
null
null
null
src/bot.py
gilz688/gbot
b0e159c0a86240f5b1a4f64cfc3c4e7eded33120
[ "MIT" ]
null
null
null
src/bot.py
gilz688/gbot
b0e159c0a86240f5b1a4f64cfc3c4e7eded33120
[ "MIT" ]
null
null
null
# Android environment DESIRED_CAPS = dict( avd='Pixel_4_API_31', platformName='Android', deviceName='Pixel_2_API_31', appPackage='com.globe.gcash.android', appActivity='gcash.module.splashscreen.mvp.view.SplashScreenActivity', noReset=True ) APPIUM_URL = 'http://localhost:4723/wd/hub' PIN_ELEME...
35.484848
158
0.69257
# Android environment import time from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from eyes import Eyes DESIRED_CAPS = dict( avd='Pixel_4_API_31', platformName='Android', deviceName='Pixel_2_API_31', appPackage='com.globe.gcash.android', appActivity='gcash....
0
0
0
1,774
0
0
0
36
111
9db66e468ae7b1894fefc1c98486640202e9f671
5,786
py
Python
pysnmp/CISCO-IF-LOOPBACK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-IF-LOOPBACK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-IF-LOOPBACK-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-IF-LOOPBACK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IF-LOOPBACK-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:44:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
128.577778
708
0.754234
# # PySNMP MIB module CISCO-IF-LOOPBACK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IF-LOOPBACK-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:44:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
0
0
0
0
0
0
0
0
0
f29a3396565b790e8efdf58603b05f0f1d71ac71
1,330
py
Python
flod_sak/alembic/versions/20141219-1222-2a2a61dd26dc_til_446_ny_tabell_for_de_dataene_som_.py
Trondheim-kommune/Tilskuddsbasen
4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
flod_sak/alembic/versions/20141219-1222-2a2a61dd26dc_til_446_ny_tabell_for_de_dataene_som_.py
Trondheim-kommune/Tilskuddsbasen
4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4
[ "BSD-2-Clause-FreeBSD" ]
3
2021-03-31T18:23:12.000Z
2021-12-13T19:43:12.000Z
flod_sak/alembic/versions/20141219-1222-2a2a61dd26dc_til_446_ny_tabell_for_de_dataene_som_.py
Trondheim-kommune/Tilskuddsbasen
4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""TIL-446 Ny tabell for de dataene som skal arkiveres Revision ID: 2a2a61dd26dc Revises: 31c82e4a3348 Create Date: 2014-12-19 12:22:28.513372 """ # revision identifiers, used by Alembic. revision = '2a2a61dd26dc' down_revision = '31c82e4a3348'
34.102564
96
0.613534
"""TIL-446 Ny tabell for de dataene som skal arkiveres Revision ID: 2a2a61dd26dc Revises: 31c82e4a3348 Create Date: 2014-12-19 12:22:28.513372 """ # revision identifiers, used by Alembic. from sqlalchemy.dialects.postgresql import JSON, ENUM revision = '2a2a61dd26dc' down_revision = '31c82e4a3348' from alembic im...
0
0
0
0
0
930
0
35
113
91135ad37e819ac8f5be88b4d603a5483e4a349b
348
py
Python
lib/getlocaladdress/getlocaladdress.py
anandtiwarics/udp-hunter
c00c20f30582cbb4bee2d9e51b92774ad4325188
[ "Apache-2.0" ]
null
null
null
lib/getlocaladdress/getlocaladdress.py
anandtiwarics/udp-hunter
c00c20f30582cbb4bee2d9e51b92774ad4325188
[ "Apache-2.0" ]
null
null
null
lib/getlocaladdress/getlocaladdress.py
anandtiwarics/udp-hunter
c00c20f30582cbb4bee2d9e51b92774ad4325188
[ "Apache-2.0" ]
null
null
null
localips = []
24.857143
100
0.609195
import ifaddr localips = [] def getlocaladdress(): adapters = ifaddr.get_adapters() i = 1 for adapter in adapters: localips.append((str(adapter.nice_name), str(adapter.ips[0].ip[0]), str(adapter.ips[1].ip))) for localip in localips: print(i, localip[0], ": IPv6", localip[1], ": IPv4",...
0
0
0
0
0
295
0
-8
45
d8bd711a7f9fd572e1556f921db1b2014219e04d
611
py
Python
src/framework/migrations/0005_auto_20200705_1845.py
rooneyrulz/polls_pro
11409d5e80ee7b582277a22bdf8f8e196965368e
[ "MIT" ]
1
2020-06-22T06:41:40.000Z
2020-06-22T06:41:40.000Z
src/framework/migrations/0005_auto_20200705_1845.py
rooneyrulz/polls_pro
11409d5e80ee7b582277a22bdf8f8e196965368e
[ "MIT" ]
6
2020-07-24T14:41:32.000Z
2021-09-22T19:06:21.000Z
src/framework/migrations/0005_auto_20200705_1845.py
rooneyrulz/polls_pro
11409d5e80ee7b582277a22bdf8f8e196965368e
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-07-05 13:15
24.44
70
0.621931
# Generated by Django 3.0.6 on 2020-07-05 13:15 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('framework', '0004_auto_20200705_1818'), ] operat...
0
0
0
464
0
0
0
30
68
862f0f30b1b371e15c644721c089726d54135dcb
4,018
py
Python
tests/host/test_graph.py
haydnv/tinychain
3ce912677c8359ee3050cd084c29b3c855d7f461
[ "Apache-2.0" ]
39
2021-03-04T07:43:33.000Z
2021-12-31T06:41:59.000Z
tests/host/test_graph.py
haydnv/tinychain
3ce912677c8359ee3050cd084c29b3c855d7f461
[ "Apache-2.0" ]
56
2021-06-23T16:02:44.000Z
2022-03-30T11:40:20.000Z
tests/host/test_graph.py
haydnv/tinychain
0b6ab0c749a7e0fa1becf11352e39fdf48e06020
[ "Apache-2.0" ]
10
2021-03-05T22:48:32.000Z
2022-02-11T20:02:29.000Z
import unittest if __name__ == "__main__": unittest.main()
37.203704
111
0.61324
import tinychain as tc import unittest from testutils import start_host class TestGraph(tc.graph.Graph): __uri__ = tc.URI(f"/test/graph") @classmethod def create(cls): users = tc.table.Schema( [tc.Column("user_id", tc.U64)], [tc.Column("email", tc.String, 320), tc.Column(...
0
2,589
0
1,235
0
0
0
12
114
098516e7968046dba602f3a3b8912c5f5b31e987
15,201
py
Python
ASR_TransV1/Training.py
HariKrishna-Vydana/ASR_Transformer
a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0
[ "MIT" ]
1
2020-10-25T00:21:40.000Z
2020-10-25T00:21:40.000Z
ASR_TransV1/Training.py
HariKrishna-Vydana/ASR_Transformer
a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0
[ "MIT" ]
null
null
null
ASR_TransV1/Training.py
HariKrishna-Vydana/ASR_Transformer
a37dc7f1add148b14ca1d265d72fc4e9d9dd0fc0
[ "MIT" ]
1
2021-09-08T10:32:55.000Z
2021-09-08T10:32:55.000Z
#!/usr/bin/python import sys import os import subprocess from os.path import join, isdir ##------------------------------------------------------------------ import torch import torch.nn.parallel import torch.backends.cudnn as cudnn #---------------------------------------- import matplotlib import matplotlib.pyplot as...
51.528814
175
0.436616
#!/usr/bin/python import sys import os import subprocess from os.path import join, isdir import numpy as np import fileinput from numpy.random import permutation ##------------------------------------------------------------------ import torch from torch import autograd, nn, optim from torch.autograd import Variable im...
0
0
0
0
0
8,715
0
305
462
259d720ea3acdc3d764717c738f63e76aa4499dd
1,295
py
Python
tests/graph_builder_test.py
wwx007121/athena-decoder
a2172b41df3ceffebb2d712cd13df53b119ba0df
[ "Apache-2.0" ]
76
2019-12-22T03:21:00.000Z
2022-02-28T09:26:01.000Z
tests/graph_builder_test.py
ZhengkunTian/athena-decoder
1ebc557d37606d8a7c9f80b87b422becf7aeb56a
[ "Apache-2.0" ]
15
2020-01-08T09:13:24.000Z
2021-04-07T02:10:20.000Z
tests/graph_builder_test.py
ZhengkunTian/athena-decoder
1ebc557d37606d8a7c9f80b87b422becf7aeb56a
[ "Apache-2.0" ]
25
2020-01-02T15:00:16.000Z
2022-03-18T08:40:15.000Z
from unittest import main from absl import logging if __name__ == '__main__': logging.set_verbosity(logging.INFO) main()
38.088235
112
0.689575
from unittest import TestCase, main import os from tempfile import TemporaryDirectory from absl import logging import openfst_python as fst from pydecoders.graph.graph_builder import GraphBuilder class GraphBuilderTestCase(TestCase): def setUp(self): self.unittest_dir = TemporaryDirectory() def test_...
0
0
0
996
0
0
0
57
111
daac6ab49165b7d687622732ba47897fb18f8759
420
py
Python
setup.py
jpanikulam/cvxbind
1a655e4b5a2433065b7559d672558caa8ae1f12f
[ "MIT" ]
9
2016-09-08T14:47:49.000Z
2021-04-07T23:25:39.000Z
setup.py
jpanikulam/cvxbind
1a655e4b5a2433065b7559d672558caa8ae1f12f
[ "MIT" ]
null
null
null
setup.py
jpanikulam/cvxbind
1a655e4b5a2433065b7559d672558caa8ae1f12f
[ "MIT" ]
1
2016-09-08T17:10:56.000Z
2016-09-08T17:10:56.000Z
from setuptools import setup setup( name='cvxbind', version='1.0', description='Python Oculus Rift DK2 Driver', author='Jacob Panikulam', author_email='jpanikulam@ufl.edu', url='https://www.python.org/', entry_points={ "console_scripts": ["cvxbind=cvxbind.main:main"] }, pack...
19.090909
56
0.578571
from setuptools import setup setup( name='cvxbind', version='1.0', description='Python Oculus Rift DK2 Driver', author='Jacob Panikulam', author_email='jpanikulam@ufl.edu', url='https://www.python.org/', entry_points={ "console_scripts": ["cvxbind=cvxbind.main:main"] }, pack...
0
0
0
0
0
0
0
0
0
31c5f3c0fe58d7a879a5f41d31ad83023ea00b33
122
py
Python
generators/app/templates/_project/_models/my_model.py
jrabary/generator-tf
ef376fcd0f2b968b5b7e18a2d68950243f376432
[ "Apache-2.0" ]
null
null
null
generators/app/templates/_project/_models/my_model.py
jrabary/generator-tf
ef376fcd0f2b968b5b7e18a2d68950243f376432
[ "Apache-2.0" ]
null
null
null
generators/app/templates/_project/_models/my_model.py
jrabary/generator-tf
ef376fcd0f2b968b5b7e18a2d68950243f376432
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf def my_model(features): """ Base model definitions """ return tf.layers.dense(features, 1024)
24.4
40
0.737705
import tensorflow as tf def my_model(features): """ Base model definitions """ return tf.layers.dense(features, 1024)
0
0
0
0
0
0
0
0
0
fa0feab7530b6e32819ad39d833193c4d73abf37
5,952
py
Python
grasp/cfg/fsa.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
9
2015-07-22T18:07:44.000Z
2021-11-08T11:21:11.000Z
grasp/cfg/fsa.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
null
null
null
grasp/cfg/fsa.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
1
2021-01-12T10:00:22.000Z
2021-01-12T10:00:22.000Z
""" This module contains class definitions for wFSAs. :Authors: - Wilker Aziz """ from .symbol import Terminal def make_linear_fsa(sentence, semiring, terminal_constructor=Terminal): """ Return a linea (unweighted) FSA representing an input sentence. :param sentence: a string or a sequence of t...
32.883978
122
0.597278
""" This module contains class definitions for wFSAs. :Authors: - Wilker Aziz """ from collections import defaultdict from .symbol import Terminal class WDFSA(object): """ This is a deterministic wFSA. TODO: extend it to handle nondeterminism. """ def __init__(self): self._arcs = [...
0
0
0
4,797
0
0
0
14
46
b042e629ffb4f8039e38ec22d9df1e2bfd9da3e1
7,946
py
Python
c2cgeoportal/lib/dbreflection.py
pgiraud/c2cgeoportal
3ec955c5c67d16256af726a62d586b3f4ec3b500
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/lib/dbreflection.py
pgiraud/c2cgeoportal
3ec955c5c67d16256af726a62d586b3f4ec3b500
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/lib/dbreflection.py
pgiraud/c2cgeoportal
3ec955c5c67d16256af726a62d586b3f4ec3b500
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from geoalchemy import (Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon) _class_cache = {} _geometry_type_mappings = dict( [(t.name, t) for t in (Point, LineString, Polygon, MultiPoint, MultiLineString, Multi...
32.699588
79
0.634659
import functools import warnings from sqlalchemy import Table, sql, types, MetaData from sqlalchemy.orm import relationship from sqlalchemy.orm.util import class_mapper from sqlalchemy.exc import SAWarning from sqlalchemy.ext.declarative import declarative_base from geoalchemy import Geometry, GeometryColumn from geo...
0
0
0
1,321
0
4,487
0
155
362
0edcac3d78e048f2bc53ca273ff6c26aa90cfe46
908
py
Python
app/data/usecases/getters/get_user.py
lokaimoma/Bugza
93ffe344cb0be7dc4c45965f52798e02d05d320b
[ "Unlicense" ]
2
2022-02-14T23:53:00.000Z
2022-03-24T12:19:49.000Z
app/data/usecases/getters/get_user.py
lokaimoma/Bugza
93ffe344cb0be7dc4c45965f52798e02d05d320b
[ "Unlicense" ]
null
null
null
app/data/usecases/getters/get_user.py
lokaimoma/Bugza
93ffe344cb0be7dc4c45965f52798e02d05d320b
[ "Unlicense" ]
null
null
null
# Created by Kelvin_Clark on 1/31/2022, 12:59 PM
34.923077
100
0.75
# Created by Kelvin_Clark on 1/31/2022, 12:59 PM from typing import Optional from sqlalchemy import and_ from sqlalchemy.orm import Session from app.data.entities.user import User from app.utils.security.password_util import verify_password_hash def get_user_by_username_id(session: Session, username: str, user_id: ...
0
0
0
0
0
588
0
87
181
f9da0ef59e1e463b7b8c6b59e93da8f2e821618a
565
py
Python
ex042.py
thiagobachiega/python
493b6bdee9c94e1ae8d4db06c8e5295a96f8922c
[ "MIT" ]
null
null
null
ex042.py
thiagobachiega/python
493b6bdee9c94e1ae8d4db06c8e5295a96f8922c
[ "MIT" ]
null
null
null
ex042.py
thiagobachiega/python
493b6bdee9c94e1ae8d4db06c8e5295a96f8922c
[ "MIT" ]
null
null
null
r1 = float(input('Primeiro segmento: ')) r2 = float(input('Segundo segmento: ')) r3 = float(input('Terceiro segmento: ')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r2 + r1: print('Podem formar um triangulo') if r1 == r2 and r2 == r3 and r1 == r3: #pode ser feito tambm com: 'if r1 == r2 == r3:', sem utilizar a fu...
37.666667
117
0.60354
r1 = float(input('Primeiro segmento: ')) r2 = float(input('Segundo segmento: ')) r3 = float(input('Terceiro segmento: ')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r2 + r1: print('Podem formar um triangulo') if r1 == r2 and r2 == r3 and r1 == r3: #pode ser feito também com: 'if r1 == r2 == r3:', sem utilizar a f...
14
0
0
0
0
0
0
0
0
8b2e774f661b1045946c9f904512d2c115680ebf
1,906
py
Python
bot/trial3.py
Nova-Striker/discord-bot
1c977711f348467bd73e1886c27ad4a9a93c779b
[ "Apache-2.0" ]
1
2020-11-10T06:33:49.000Z
2020-11-10T06:33:49.000Z
bot/trial3.py
Nova-Striker/discord-bot
1c977711f348467bd73e1886c27ad4a9a93c779b
[ "Apache-2.0" ]
null
null
null
bot/trial3.py
Nova-Striker/discord-bot
1c977711f348467bd73e1886c27ad4a9a93c779b
[ "Apache-2.0" ]
1
2020-11-13T17:12:00.000Z
2020-11-13T17:12:00.000Z
import discord from discord.ext import commands token = open("token.txt", "r").read() client = discord.Client() bot = commands.Bot(command_prefix='!joker') #didnot work on bot join ##@bot.command() ##async def mention(ctx, user : discord.Member): ## await ctx.send(user.mention) ## if "play" in ...
38.12
156
0.591291
import discord import random from discord.ext import commands token = open("token.txt", "r").read() client = discord.Client() bot = commands.Bot(command_prefix='!joker') @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) #didnot work on bot join @client.event as...
0
1,021
0
0
0
0
0
-8
96
d9d8c0c81581bbfa1e2c77e4fdc7cb813f2a115a
642
py
Python
data-pipeline/bcreg/controller_health.py
esune/von-bc-registries-agent
712008543e579eee46be23c418f2eeb41626bfcd
[ "Apache-2.0" ]
null
null
null
data-pipeline/bcreg/controller_health.py
esune/von-bc-registries-agent
712008543e579eee46be23c418f2eeb41626bfcd
[ "Apache-2.0" ]
null
null
null
data-pipeline/bcreg/controller_health.py
esune/von-bc-registries-agent
712008543e579eee46be23c418f2eeb41626bfcd
[ "Apache-2.0" ]
1
2018-05-12T01:38:38.000Z
2018-05-12T01:38:38.000Z
import asyncio import time from bcreg.credssubmitter import CONTROLLER_HEALTH_URL, CONTROLLER_HEALTH_WAIT, CONTROLLER_HEALTH_TIMEOUT, check_controller_health print("Pinging " + CONTROLLER_HEALTH_URL + " ...") try: loop = asyncio.get_event_loop() start_time = time.perf_counter() while (time.perf_counter(...
33.789474
130
0.750779
import asyncio import time from bcreg.credssubmitter import CONTROLLER_HEALTH_URL, CONTROLLER_HEALTH_WAIT, CONTROLLER_HEALTH_TIMEOUT, check_controller_health print("Pinging " + CONTROLLER_HEALTH_URL + " ...") try: loop = asyncio.get_event_loop() start_time = time.perf_counter() while (time.perf_counter(...
0
0
0
0
0
0
0
0
0
bf55bb3c31302eb24ba55f42898179c7eba3f666
2,523
py
Python
upydevice/devtools.py
Carglglz/upydevice
0bd0686b9d729f8c2d5b23482fbc2f7dab990806
[ "MIT" ]
8
2019-10-24T14:59:35.000Z
2021-07-09T21:23:48.000Z
upydevice/devtools.py
Carglglz/upydevice
0bd0686b9d729f8c2d5b23482fbc2f7dab990806
[ "MIT" ]
3
2019-12-10T05:58:54.000Z
2022-03-27T12:19:21.000Z
upydevice/devtools.py
Carglglz/upydevice
0bd0686b9d729f8c2d5b23482fbc2f7dab990806
[ "MIT" ]
4
2019-11-30T23:07:29.000Z
2022-03-21T01:32:37.000Z
#!/usr/bin/env python 3 # MIT License # # Copyright (c) 2020 Carlos Gil Gonzalez # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the right...
37.102941
99
0.682917
#!/usr/bin/env python 3 # MIT License # # Copyright (c) 2020 Carlos Gil Gonzalez # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the right...
0
0
0
0
0
1,182
0
-10
91
57e431496954d35b15525cbb817b8c9f2ec73940
108
py
Python
demo.py
edigiacomo/skinnywms
953ebb637b4d9ef1b78bfcbcfebae4496ec7f9d5
[ "Apache-2.0" ]
null
null
null
demo.py
edigiacomo/skinnywms
953ebb637b4d9ef1b78bfcbcfebae4496ec7f9d5
[ "Apache-2.0" ]
null
null
null
demo.py
edigiacomo/skinnywms
953ebb637b4d9ef1b78bfcbcfebae4496ec7f9d5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from skinnywms.wmssvr import application application.run(debug=True, threaded=False)
27
43
0.814815
#!/usr/bin/env python3 from skinnywms.wmssvr import application application.run(debug=True, threaded=False)
0
0
0
0
0
0
0
0
0
2f2e054bb6efd12637fcd86ee1f9e715b5b62d07
1,310
py
Python
ebay_tweet_bot/tweeter.py
geoffsmiller/ebay_tweet_bot
32c7ccee67e04c268c8b15256df601b502261e69
[ "MIT" ]
4
2016-08-16T13:06:24.000Z
2019-09-02T22:34:34.000Z
ebay_tweet_bot/tweeter.py
geoffsmiller/ebay_tweet_bot
32c7ccee67e04c268c8b15256df601b502261e69
[ "MIT" ]
null
null
null
ebay_tweet_bot/tweeter.py
geoffsmiller/ebay_tweet_bot
32c7ccee67e04c268c8b15256df601b502261e69
[ "MIT" ]
1
2019-09-30T18:47:32.000Z
2019-09-30T18:47:32.000Z
# -*- coding: utf-8 -*-
35.405405
88
0.628244
# -*- coding: utf-8 -*- import twitter import requests class Tweeter(): BITLY_API_BASE_URL = 'https://api-ssl.bitly.com/v3/shorten' def __init__(self, config_consumer_key, config_consumer_secret, config_access_token_key, config_access_token_secret, config_bitly_access_token)...
3
0
0
1,230
0
0
0
-13
67
869afaf72841d583d7ecbf9f55c25f1fb7fbc88c
10,223
py
Python
rj_gameplay/rj_gameplay/play/restart.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
200
2015-01-26T01:45:34.000Z
2022-03-19T13:05:31.000Z
rj_gameplay/rj_gameplay/play/restart.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
1,254
2015-01-03T01:57:35.000Z
2022-03-16T06:32:21.000Z
rj_gameplay/rj_gameplay/play/restart.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
206
2015-01-21T02:03:18.000Z
2022-02-01T17:57:46.000Z
import stp.play as play import stp.tactic as tactic import stp.skill as skill import stp.role as role import stp.rc as rc
45.435556
109
0.604519
import stp.play as play import stp.tactic as tactic from rj_gameplay.tactic import pass_tactic, pass_seek, nmark_tactic, goalie_tactic, clear_tactic, wall_tactic import stp.skill as skill import stp.role as role from stp.role.assignment.naive import NaiveRoleAssignment import stp.rc as rc from typing import Dict, Gene...
0
0
0
9,729
0
0
0
213
157
ad89ebefe25057d4f023bf56acfaa6b21d405ef9
3,461
py
Python
inrange.py
li195111/ObjectFilter
32392171c2ad698aa6764e1c7abaa063e43d6e64
[ "Apache-2.0" ]
null
null
null
inrange.py
li195111/ObjectFilter
32392171c2ad698aa6764e1c7abaa063e43d6e64
[ "Apache-2.0" ]
null
null
null
inrange.py
li195111/ObjectFilter
32392171c2ad698aa6764e1c7abaa063e43d6e64
[ "Apache-2.0" ]
null
null
null
import cv2 if __name__ == "__main__": img = cv2.imread('/Users/liyue/Desktop/QC/QRCode//0_origin.jpg') irimg = InRangeImage(img) cv2.waitKey(0) cv2.destroyAllWindows()
42.207317
118
0.6423
import cv2 import numpy as np class InRangeImage: def __init__(self, image, title='image') -> None: self.image = image self.filted = image.copy() self.control_map = { 'low_r':0, 'low_g':0, 'low_b':0, 'height_r':255, 'height_g':255,...
12
388
0
2,835
0
0
0
-3
45
4384e5486738957e3632386cb5db8189764f5eed
65,238
py
Python
raiden/transfer/mediated_transfer/mediator.py
gmarko/raiden
5d181843b44b7766904120e19077cc6949f17e0c
[ "MIT" ]
1
2020-10-19T15:00:42.000Z
2020-10-19T15:00:42.000Z
raiden/transfer/mediated_transfer/mediator.py
gmarko/raiden
5d181843b44b7766904120e19077cc6949f17e0c
[ "MIT" ]
null
null
null
raiden/transfer/mediated_transfer/mediator.py
gmarko/raiden
5d181843b44b7766904120e19077cc6949f17e0c
[ "MIT" ]
null
null
null
import itertools import operator import random from fractions import Fraction from typing import Callable from raiden.exceptions import UndefinedMediationFee from raiden.transfer import channel, routes, secret_registry from raiden.transfer.architecture import Event, StateChange, SuccessOrError, TransitionResult from r...
39.827839
99
0.70928
import itertools import operator import random from fractions import Fraction from typing import Callable from raiden.exceptions import UndefinedMediationFee from raiden.transfer import channel, routes, secret_registry from raiden.transfer.architecture import Event, StateChange, SuccessOrError, TransitionResult from r...
0
0
0
0
0
4,273
0
206
69
981026ea4a4f66c72db656e359443133d64bcc1a
17,366
py
Python
NN_NER_tensorFlow/BasicTextPreprocessing_CNN_CRF.py
adapt-sjtu/novelner
a8f54ffe3360a4fdfa4b154a6668e74459a61ec3
[ "Apache-2.0" ]
8
2017-06-08T09:48:25.000Z
2020-07-09T10:51:36.000Z
NN_NER_tensorFlow/BasicTextPreprocessing_CNN_CRF.py
adapt-sjtu/novelner
a8f54ffe3360a4fdfa4b154a6668e74459a61ec3
[ "Apache-2.0" ]
1
2018-07-07T12:38:25.000Z
2018-07-07T12:38:25.000Z
NN_NER_tensorFlow/BasicTextPreprocessing_CNN_CRF.py
adapt-sjtu/novelner
a8f54ffe3360a4fdfa4b154a6668e74459a61ec3
[ "Apache-2.0" ]
4
2018-01-13T01:37:51.000Z
2019-08-05T12:25:32.000Z
# coding: utf-8 # In[1]: import tensorflow as tf import utils as utils import aux_network_func as af import data_processor as dp #Alphabet maps objects to integer ids from alphabet import Alphabet import network as network import dill import numpy as np import os import time import datetime from tensorflow.python ...
51.838806
200
0.754348
# coding: utf-8 # In[1]: import tensorflow as tf import utils as utils import aux_network_func as af import data_processor as dp #Alphabet maps objects to integer ids from alphabet import Alphabet import network as network import dill import numpy as np import os import time import datetime from tensorflow.python ...
0
0
0
0
0
990
0
0
27