hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0b21e2f00c40d07177cb410cd49feb5911c3e992
1,017
py
Python
spoof-device.py
beniwtv/evdev-spoof-device
80a025289d46b5be283a6348b3591de1a45201e4
[ "MIT" ]
2
2021-01-04T02:07:02.000Z
2021-01-04T08:17:59.000Z
spoof-device.py
beniwtv/evdev-spoof-device
80a025289d46b5be283a6348b3591de1a45201e4
[ "MIT" ]
null
null
null
spoof-device.py
beniwtv/evdev-spoof-device
80a025289d46b5be283a6348b3591de1a45201e4
[ "MIT" ]
null
null
null
import evdev import sys from evdev import ecodes, AbsInfo devices = [evdev.InputDevice(path) for path in evdev.list_devices()] print("Available devices:") for device in devices: print(device.path, device.name) if len(sys.argv) == 1: sys.exit(1) for device in devices: if device.name == sys.argv[1]: ...
25.425
68
0.591937
44c9c0119efa3c17eed46679a64086d6192c1434
2,046
py
Python
examples/dynamic-projections-dask.py
jojoelfe/napari
b52a136dad392c091b0008c0b8d7fcc5ef460f66
[ "BSD-3-Clause" ]
7
2018-07-03T17:35:46.000Z
2018-11-07T15:48:58.000Z
examples/dynamic-projections-dask.py
maweigert/napari
48cdf4d1c4bcf6f76603e90b1c0c7498e2aba6c0
[ "BSD-3-Clause" ]
120
2018-09-04T22:05:13.000Z
2019-03-02T01:13:57.000Z
examples/dynamic-projections-dask.py
maweigert/napari
48cdf4d1c4bcf6f76603e90b1c0c7498e2aba6c0
[ "BSD-3-Clause" ]
8
2018-09-04T21:48:26.000Z
2019-01-29T04:48:30.000Z
""" Dynamic projections dask ======================== Using dask array operations, one can dynamically take arbitrary slices and computations of a source dask array and display the results in napari. When the computation takes one or more parameters, one can tie a UI to them using magicgui. """ import numpy as np imp...
30.088235
78
0.628055
48e9f606b2b3981c7b571fe9173730816fb7e00d
2,740
py
Python
tools/snippets/benchmark/python/numpy/benchmark.py
andbmme/stdlib
c1994db25727c32cd0065cdc5f0c019dd4fc855c
[ "Apache-2.0" ]
null
null
null
tools/snippets/benchmark/python/numpy/benchmark.py
andbmme/stdlib
c1994db25727c32cd0065cdc5f0c019dd4fc855c
[ "Apache-2.0" ]
null
null
null
tools/snippets/benchmark/python/numpy/benchmark.py
andbmme/stdlib
c1994db25727c32cd0065cdc5f0c019dd4fc855c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # @license Apache-2.0 # # Copyright (c) 2020 The Stdlib Authors. # # 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 # # ...
23.418803
88
0.629562
dca44f659c8516fa2ae7297d214bd9e734db20e9
1,453
py
Python
test/base.py
prius/python-leetcode
5e8bbee0f941ece8188853703d47aad992191456
[ "MIT" ]
25
2021-09-27T20:13:33.000Z
2022-03-25T07:12:19.000Z
test/base.py
iraghavr/python-leetcode
5e8bbee0f941ece8188853703d47aad992191456
[ "MIT" ]
3
2021-12-26T00:22:41.000Z
2022-03-06T17:30:24.000Z
test/base.py
iraghavr/python-leetcode
5e8bbee0f941ece8188853703d47aad992191456
[ "MIT" ]
6
2021-10-16T04:51:45.000Z
2022-02-24T10:53:55.000Z
import os from typing import Optional import leetcode.api.default_api import leetcode.api_client import leetcode.auth import leetcode.configuration class BaseTest: _api_instance_containter: Optional[leetcode.api.default_api.DefaultApi] = None @property def _api_instance(self) -> leetcode.api.default_api...
28.490196
82
0.703372
2386d7646229a94a895c1c5bc31d7b0fd8625d9b
29,976
py
Python
parsl/executors/high_throughput/process_worker_pool.py
jmoon1506/parsl
f4070799a07f314b09b255689972534059fc746e
[ "Apache-2.0" ]
null
null
null
parsl/executors/high_throughput/process_worker_pool.py
jmoon1506/parsl
f4070799a07f314b09b255689972534059fc746e
[ "Apache-2.0" ]
null
null
null
parsl/executors/high_throughput/process_worker_pool.py
jmoon1506/parsl
f4070799a07f314b09b255689972534059fc746e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import logging import os import sys import platform import threading import pickle import time import datetime import queue import uuid import zmq import math import json import psutil import multiprocessing from parsl.process_loggers import wrap_with_logs from parsl.version im...
44.540862
149
0.567654
1f491c1281c7722013c7f2f10d147054d1e49172
14,912
py
Python
aim/storage/rockscontainer.py
gorarakelyan/aim
eed0ac76f4bdcc81277cef4a4de1dfc3dd690644
[ "Apache-2.0" ]
null
null
null
aim/storage/rockscontainer.py
gorarakelyan/aim
eed0ac76f4bdcc81277cef4a4de1dfc3dd690644
[ "Apache-2.0" ]
null
null
null
aim/storage/rockscontainer.py
gorarakelyan/aim
eed0ac76f4bdcc81277cef4a4de1dfc3dd690644
[ "Apache-2.0" ]
null
null
null
import logging from pathlib import Path from filelock import FileLock import aimrocks from typing import Iterator, Optional, Tuple from aim.storage.container import Container from aim.storage.prefixview import PrefixView from aim.storage.treeview import TreeView logger = logging.getLogger(__name__) class RocksCo...
30.432653
103
0.55794
c97151c14b85802ea051b6ef666723df4f821c7c
3,918
py
Python
alipay/aop/api/request/AlipayBossOrderApplyRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayBossOrderApplyRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayBossOrderApplyRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayBossOrderApplyModel import AlipayBossOrderApplyModel class AlipayBossOrderApplyRequest(object): def __init__(self, biz_mo...
27.02069
148
0.640123
92edf6a8f22bae46f399e9d3ca1656f76b40c8f9
23,204
py
Python
src/python/director/pydrakeik.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
src/python/director/pydrakeik.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
src/python/director/pydrakeik.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
# import pydrake first. This is a workaround for the issue: # https://github.com/RobotLocomotion/director/issues/467 import pydrake.solvers.ik as pydrakeik import pydrake import os import json from collections import OrderedDict import numpy as np import scipy.interpolate from director import ikconstraints from dire...
36.143302
146
0.672039
4f168e6a8b8a144b50d668f7bf99a132c0ab1ab2
390
py
Python
Catalan Numbers/catalan_numbers.py
FatalTrip/Integer-Sequences
e2e1181a1956cdd1d68bae7c022f93cac7bb919c
[ "Unlicense" ]
null
null
null
Catalan Numbers/catalan_numbers.py
FatalTrip/Integer-Sequences
e2e1181a1956cdd1d68bae7c022f93cac7bb919c
[ "Unlicense" ]
null
null
null
Catalan Numbers/catalan_numbers.py
FatalTrip/Integer-Sequences
e2e1181a1956cdd1d68bae7c022f93cac7bb919c
[ "Unlicense" ]
null
null
null
""" Catalan Numbers (sequence A000108 in the OEIS) """ """ (2n)! / ((n + 1)!n!) """ # The first ten (starting with n=0 are: 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862) import math def Catalan_Numbers(n): formula = math.factorial(2*n) / (math.factorial(n + 1) * math.factorial(n)) return('C{} = {}'.format(n, fo...
26
82
0.602564
8aaa379d7e88bff7cfaecb6241b60fdad7d884da
4,239
py
Python
Chapter08/chatserver.py
yoyboy/Software-Architecture-with-Python
c228a9c77e3d1d0e8651146611b34fed0a00bc5e
[ "MIT" ]
null
null
null
Chapter08/chatserver.py
yoyboy/Software-Architecture-with-Python
c228a9c77e3d1d0e8651146611b34fed0a00bc5e
[ "MIT" ]
null
null
null
Chapter08/chatserver.py
yoyboy/Software-Architecture-with-Python
c228a9c77e3d1d0e8651146611b34fed0a00bc5e
[ "MIT" ]
null
null
null
# Code Listing #2 """ Chat server using select based I/O multiplexing """ # scp chatserver.py root@95.179.184.41:/root/py_manage # chatserver.py import socket import select import signal import sys from communication import send, receive class ChatServer: """ Simple chat server using select """ def __...
33.377953
106
0.448691
380508a54d39fd08430af3c9826d0b3345c04d7b
1,068
py
Python
exercises/044.py
rpoliselit/python-for-dummies
d6f45a966a5238058953f93d8660832fa692b3d4
[ "MIT" ]
null
null
null
exercises/044.py
rpoliselit/python-for-dummies
d6f45a966a5238058953f93d8660832fa692b3d4
[ "MIT" ]
null
null
null
exercises/044.py
rpoliselit/python-for-dummies
d6f45a966a5238058953f93d8660832fa692b3d4
[ "MIT" ]
null
null
null
""" Make a program that calculates the value to be paid for a product, considering its NOMINAL PRICE and PAYMENT CONDITIONS: - cash: 10% off - card (in one loop sum): 5% off - card (2x): norminal price - card (3x or more): 20% interest """ print('{:=^40}'.format(' PAYMENT CALCULATION ')) price = float(input('Enter the ...
29.666667
65
0.626404
bc48f1d94f30a67b73156cdab362c393de5d9bd5
2,667
py
Python
app.py
aseldar/trading_bot
a21190f4dca6c3825d938222f076783e209461dd
[ "MIT" ]
null
null
null
app.py
aseldar/trading_bot
a21190f4dca6c3825d938222f076783e209461dd
[ "MIT" ]
null
null
null
app.py
aseldar/trading_bot
a21190f4dca6c3825d938222f076783e209461dd
[ "MIT" ]
null
null
null
import websocket, json, pprint, talib, numpy import config from binance.client import Client from binance.enums import * SOCKET = "wss://stream.binance.com:9443/ws/ethusdt@kline_1m" RSI_PERIOD = 14 RSI_OVERBOUGHT = 70 RSI_OVERSOLD = 30 TRADE_SYMBOL = 'ETHUSD' TRADE_QUANTITY = 0.05 closes = [] in_positi...
31.376471
98
0.574428
b8c9a8404b94d4ceba2c142cc34f153ba4ba1051
584
py
Python
lib/python2.7/site-packages/braintree/disbursement_detail.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
2
2019-12-06T15:40:14.000Z
2020-07-29T21:30:35.000Z
lib/python2.7/site-packages/braintree/disbursement_detail.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
lib/python2.7/site-packages/braintree/disbursement_detail.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
2
2019-04-29T14:16:10.000Z
2020-07-23T12:04:17.000Z
from decimal import Decimal from braintree.attribute_getter import AttributeGetter class DisbursementDetail(AttributeGetter): def __init__(self, attributes): AttributeGetter.__init__(self, attributes) if self.settlement_amount is not None: self.settlement_amount = Decimal(self.settleme...
36.5
100
0.758562
4322f03abb360c0f3bfbbf539a9124d9643c401f
5,936
py
Python
examples/looper_example.py
zhengquantao/ctpbee_indicator
499e656d404fe38a0a87ba6eb234312033c1204a
[ "MIT" ]
11
2019-09-22T12:45:14.000Z
2022-02-11T05:56:33.000Z
examples/looper_example.py
zhengquantao/ctpbee_indicator
499e656d404fe38a0a87ba6eb234312033c1204a
[ "MIT" ]
1
2019-10-26T02:57:58.000Z
2019-10-26T02:57:58.000Z
examples/looper_example.py
zhengquantao/ctpbee_indicator
499e656d404fe38a0a87ba6eb234312033c1204a
[ "MIT" ]
10
2019-09-22T07:53:43.000Z
2022-02-11T05:56:32.000Z
""" 当前回测示例 1.当前数据基于rq进行下载的 2.首先你需要调用get_data 来获得rq的数据 ,然后save_to_json保存到 json文件中去,主要在此过程中你需要手动对数据加入symbol等 3.然后通过load_data函数重复调用数据 4.调用run_main进行回测 当前的strategy是借助vnpy的 ArrayManager . 你需要对此实现一些额外的安装操作 需要额外安装的包 ta-lib, rqdatac( 后面需要被取代 ?? Maybe use quantdata ) 目前暂时不够完善 ---> hope...
33.92
104
0.541779
187d5ec394da733a18ee42fd4702ea7811bb5636
1,904
py
Python
cdhit2orthotable.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
null
null
null
cdhit2orthotable.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
1
2020-09-17T11:14:13.000Z
2020-09-17T11:14:13.000Z
cdhit2orthotable.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 """ Turn a clstr file from CD-Hit into a tsv file with gene names suitable for use in a database. cdhit2orthotable.py --output <output file> [--strain-map <strain map file] <clstr file> Assumes genes are named <strain>.<gene name> """ import argparse import collection...
26.082192
78
0.613445
90913168be774ba054588ee5d8fb8681c8f24974
32,783
py
Python
bluerov2_control/scripts/simple_los.py
nyuad-robosub/bluerov2
c416fc8530aac2b0ac52626001308d780347d639
[ "Apache-2.0" ]
4
2021-02-18T11:36:05.000Z
2022-03-05T08:41:20.000Z
bluerov2_control/scripts/simple_los.py
nyuad-robosub/bluerov2
c416fc8530aac2b0ac52626001308d780347d639
[ "Apache-2.0" ]
1
2022-02-14T13:25:27.000Z
2022-02-16T07:41:04.000Z
bluerov2_control/scripts/simple_los.py
nyuad-robosub/bluerov2
c416fc8530aac2b0ac52626001308d780347d639
[ "Apache-2.0" ]
4
2021-08-18T09:15:53.000Z
2022-02-16T09:46:03.000Z
#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry # We listen to this message for state estimation from geometry_msgs.msg import AccelWithCovarianceStamped, WrenchStamped, AccelStamped, TwistStamped, PoseStamped, Vector3Stamped, Vector3, Twist, PointStamped, Point from PID import PIDRegulator from m...
49.297744
245
0.56996
93ff49e8a9b65af0470c6fc8df9d39cd214d2d20
1,707
py
Python
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20190307/DescribeVerifySDKRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20190307/DescribeVerifySDKRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20190307/DescribeVerifySDKRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.836735
87
0.760398
8af2b716fe3063da7c58e3f702fa9664937402d3
5,325
py
Python
Code/training_script.py
antoine-spahr/Cocoa_plantations_detection
1c0faa4651c73981f006b0428eb3d5f80605689b
[ "MIT" ]
3
2020-08-08T08:22:41.000Z
2021-05-06T17:02:42.000Z
Code/training_script.py
antoine-spahr/Cocoa_plantations_detection
1c0faa4651c73981f006b0428eb3d5f80605689b
[ "MIT" ]
null
null
null
Code/training_script.py
antoine-spahr/Cocoa_plantations_detection
1c0faa4651c73981f006b0428eb3d5f80605689b
[ "MIT" ]
1
2020-07-18T01:24:33.000Z
2020-07-18T01:24:33.000Z
import rasterio import rasterio.plot as rioplot import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib import skimage import pyproj import pickle from sklearn.model_selection import cross_validate, train_test_split from sklearn.pipeline import Pipeline from sklearn.decomposition impor...
45.127119
168
0.613897
1b822b47cb403b717a3c89f0caff72f2440de7c8
153
py
Python
lna/algorithms/__init__.py
ZacBi/learn_NLP_again
3fac81c054f3b365ed50feac7a6f020ad8c7afeb
[ "MIT" ]
16
2019-12-09T10:45:56.000Z
2022-01-03T15:54:52.000Z
lna/algorithms/__init__.py
ZacBi/learn_NLP_again
3fac81c054f3b365ed50feac7a6f020ad8c7afeb
[ "MIT" ]
null
null
null
lna/algorithms/__init__.py
ZacBi/learn_NLP_again
3fac81c054f3b365ed50feac7a6f020ad8c7afeb
[ "MIT" ]
5
2019-12-24T07:06:31.000Z
2020-07-28T01:53:59.000Z
"""algorithms""" from lna.algorithms.bpe import byte_pair_encoding from lna.algorithms.min_edit_distance import min_edit_distance, min_edit_distance_pro
38.25
85
0.862745
ea8eb49733c76ea006769501bbde0cc8b3800cd5
566
py
Python
axf_1905/users/models.py
passed-by/axf
9f8fa77f856703f733db3bad5be37eea33de37bd
[ "MIT" ]
2
2019-12-03T01:40:10.000Z
2019-12-03T01:43:18.000Z
axf_1905/users/models.py
passed-by/axf
9f8fa77f856703f733db3bad5be37eea33de37bd
[ "MIT" ]
3
2020-06-05T23:01:05.000Z
2021-06-08T20:23:20.000Z
axf_1905/users/models.py
passed-by/axf
9f8fa77f856703f733db3bad5be37eea33de37bd
[ "MIT" ]
1
2020-08-04T22:45:10.000Z
2020-08-04T22:45:10.000Z
from django.db import models # Create your models here. # 用户模型类 class User(models.Model): username = models.CharField(max_length=100, unique=True, verbose_name="用户名") password = models.CharField(max_length=200, verbose_name="密码") phone = models.CharField(max_length=20, verbose_name="手机号") email = mo...
33.294118
80
0.720848
293ac92db788d14ee654db1874e0432d0f7f04bf
14,198
py
Python
oscar/lib/python2.7/site-packages/flake8/main/application.py
bhav11esh/Oscar-Bookshelf
b48f088e2ed908b3603f2ecc63d602f81392eac4
[ "BSD-3-Clause" ]
2
2018-03-14T06:45:40.000Z
2018-06-08T07:46:02.000Z
oscar/lib/python2.7/site-packages/flake8/main/application.py
bhav11esh/Oscar-Bookshelf
b48f088e2ed908b3603f2ecc63d602f81392eac4
[ "BSD-3-Clause" ]
1
2019-03-23T08:23:21.000Z
2019-03-23T08:23:21.000Z
oscar/lib/python2.7/site-packages/flake8/main/application.py
bhav11esh/Oscar-Bookshelf
b48f088e2ed908b3603f2ecc63d602f81392eac4
[ "BSD-3-Clause" ]
2
2017-11-07T18:05:19.000Z
2017-11-14T18:06:55.000Z
"""Module containing the application logic for Flake8.""" from __future__ import print_function import logging import sys import time import flake8 from flake8 import checker from flake8 import defaults from flake8 import exceptions from flake8 import style_guide from flake8 import utils from flake8.main import optio...
39.112948
78
0.627835
42297504ca9fe06ff2e9965c84eb667e4c1db767
3,785
py
Python
scripts/unzip.py
OpenWebGlobe/ColladaToJSON
325f535452c6cbd3afb1c9e0e247479cb82dc87e
[ "MIT" ]
4
2015-12-08T09:20:10.000Z
2019-11-25T05:25:43.000Z
scripts/unzip.py
OpenWebGlobe/ColladaToJSON
325f535452c6cbd3afb1c9e0e247479cb82dc87e
[ "MIT" ]
null
null
null
scripts/unzip.py
OpenWebGlobe/ColladaToJSON
325f535452c6cbd3afb1c9e0e247479cb82dc87e
[ "MIT" ]
null
null
null
""" unzip.py Version: 1.1 Extract a zipfile to the directory provided It first creates the directory structure to house the files then it extracts the files to it. Sample usage: command line unzip.py -p 10 -z c:\testfile.zip -o c:\testoutput python class import unzip un = unzi...
25.924658
73
0.545839
8bfed540ece9ba2f3c09c412d5de3fbfd0602ef2
5,473
py
Python
gsutil.py
stdft112/depot_tools
52c7211807930272424213ff6127c209de790eca
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
gsutil.py
stdft112/depot_tools
52c7211807930272424213ff6127c209de790eca
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
gsutil.py
stdft112/depot_tools
52c7211807930272424213ff6127c209de790eca
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Run a pinned gsutil.""" import argparse import base64 import contextlib import hashlib import json import os import shutil import ...
29.907104
80
0.695962
f89239c89a800e3b4709f9e38c647365fa7fbd98
69,746
py
Python
electrum/tests/test_bitcoin.py
shankerwangmiao/electrum
c87f42248d4d2143e7b6033acd026dd9dc6a4c88
[ "MIT" ]
1
2022-03-07T14:03:15.000Z
2022-03-07T14:03:15.000Z
electrum/tests/test_bitcoin.py
shankerwangmiao/electrum
c87f42248d4d2143e7b6033acd026dd9dc6a4c88
[ "MIT" ]
null
null
null
electrum/tests/test_bitcoin.py
shankerwangmiao/electrum
c87f42248d4d2143e7b6033acd026dd9dc6a4c88
[ "MIT" ]
null
null
null
import base64 import sys from electrum.bitcoin import (public_key_to_p2pkh, address_from_private_key, is_address, is_private_key, var_int, _op_push, address_to_script, deserialize_privkey, serialize_privkey, is_segwit_address, ...
61.667551
1,378
0.719253
55d56fa0306903adb0a6cc3cd9f5ec690adb9dc1
19,084
py
Python
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/sphinx/websupport/__init__.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-02-05T13:19:58.000Z
2021-02-05T13:19:58.000Z
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/sphinx/websupport/__init__.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/sphinx/websupport/__init__.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
9
2015-08-26T19:59:06.000Z
2022-03-07T17:10:06.000Z
# -*- coding: utf-8 -*- """ sphinx.websupport ~~~~~~~~~~~~~~~~~ Base Module for web support functions. :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import sys import cPickle as pickle import posixpath from os import path from jinja2...
41.7593
80
0.590285
f7bc750e6adcbc8cf35c93071643481c700c39d3
3,746
py
Python
edge_detect_template_single_test.py
DizzyYunxuan/FlappyBird
4a078edff0d2276a717c437032cdbcebf33366f3
[ "MIT" ]
1
2021-12-02T14:53:20.000Z
2021-12-02T14:53:20.000Z
edge_detect_template_single_test.py
DizzyYunxuan/FlappyBird
4a078edff0d2276a717c437032cdbcebf33366f3
[ "MIT" ]
null
null
null
edge_detect_template_single_test.py
DizzyYunxuan/FlappyBird
4a078edff0d2276a717c437032cdbcebf33366f3
[ "MIT" ]
null
null
null
import numpy as np import cv2 from matplotlib import pyplot as plt from PIL import Image from scipy import ndimage import time import os def get_decisionMap(img): img_gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) img = img_gray[34:434, 8:-8] [h, w] = img.shape # lap kernel k = np.array([[-1, -1...
29.730159
110
0.628137
01a951505addd664cdfd6577ade3c6fa0a6b45a4
18,033
py
Python
lib/pyfrc/sim/ui.py
virtuald/pyfrc
f04a70fecc2897129e2f1318a97304e7a9202d31
[ "MIT" ]
null
null
null
lib/pyfrc/sim/ui.py
virtuald/pyfrc
f04a70fecc2897129e2f1318a97304e7a9202d31
[ "MIT" ]
null
null
null
lib/pyfrc/sim/ui.py
virtuald/pyfrc
f04a70fecc2897129e2f1318a97304e7a9202d31
[ "MIT" ]
null
null
null
''' Note: http://bugs.python.org/issue11077 seems to indicate that tk is supposed to be thread-safe, but everyone else on the net insists that it isn't. Be safe, don't call into the GUI from another thread. ''' try: import tkinter as tk except ImportError: print("pyfrc robot simulation requires ...
34.414122
96
0.492763
02f31e8ece5d2448403e57eb45107392fe7347a0
81
py
Python
abl/robot/__init__.py
AbletonAG/abl.robot
5aec663204865559c82b751b81406c32f82ccf18
[ "MIT" ]
null
null
null
abl/robot/__init__.py
AbletonAG/abl.robot
5aec663204865559c82b751b81406c32f82ccf18
[ "MIT" ]
null
null
null
abl/robot/__init__.py
AbletonAG/abl.robot
5aec663204865559c82b751b81406c32f82ccf18
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .base import Robot, RobotCallError
16.2
39
0.839506
e75388877b94df17f1db2377bbd2199b1814ea8a
1,873
py
Python
parlai/tasks/squad/build.py
pgoel92/ParlAI
9db71ed4d09763c166ec6fb811dac5617167c76d
[ "BSD-3-Clause" ]
null
null
null
parlai/tasks/squad/build.py
pgoel92/ParlAI
9db71ed4d09763c166ec6fb811dac5617167c76d
[ "BSD-3-Clause" ]
null
null
null
parlai/tasks/squad/build.py
pgoel92/ParlAI
9db71ed4d09763c166ec6fb811dac5617167c76d
[ "BSD-3-Clause" ]
1
2018-09-28T17:36:29.000Z
2018-09-28T17:36:29.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. # Download and build the da...
37.46
77
0.635878
06079aacb3d59037b8df9822cbd22e035daf9460
5,645
py
Python
lhrhost/messaging/transport/transport.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
null
null
null
lhrhost/messaging/transport/transport.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
null
null
null
lhrhost/messaging/transport/transport.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
1
2018-08-03T17:17:31.000Z
2018-08-03T17:17:31.000Z
"""Transport layer interfaces. This module provides a shared interface for implementations of transport layers in the host-peripheral messaging protocol. """ # Standard imports import asyncio from abc import abstractmethod from typing import Any, Dict, Iterable, List, Optional from async_generator import asynccontex...
32.442529
87
0.700443
03a09a8986a8ef1d3b88c78e9a9049cc3f848b60
298
py
Python
torch_geometric_signed_directed/utils/general/__init__.py
huangjunjie-cs/pytorch_geometric_signed_directed-1
24b121ff4325d201b30811975bcb6f104a39dc35
[ "MIT" ]
null
null
null
torch_geometric_signed_directed/utils/general/__init__.py
huangjunjie-cs/pytorch_geometric_signed_directed-1
24b121ff4325d201b30811975bcb6f104a39dc35
[ "MIT" ]
null
null
null
torch_geometric_signed_directed/utils/general/__init__.py
huangjunjie-cs/pytorch_geometric_signed_directed-1
24b121ff4325d201b30811975bcb6f104a39dc35
[ "MIT" ]
null
null
null
from .scipy_sparse_to_torch_sparse import scipy_sparse_to_torch_sparse from .extract_network import extract_network from .node_split import node_class_split from .link_split import link_class_split from .in_out_degree import in_out_degree from .triplet_loss import triplet_loss_node_classification
42.571429
70
0.899329
35db7e8e99364015a0de710491ad5de158dfc5cd
2,266
py
Python
mobot_utils/mobot_utils/disp_cam.py
mobotx/mobot
afaf128ab7a5aab86f776c414ea8f5444e0d0f25
[ "MIT" ]
13
2021-11-25T19:27:54.000Z
2022-01-21T01:30:00.000Z
mobot_utils/mobot_utils/disp_cam.py
mobotx/mobot
afaf128ab7a5aab86f776c414ea8f5444e0d0f25
[ "MIT" ]
27
2021-08-05T00:36:36.000Z
2022-02-27T11:10:38.000Z
mobot_utils/mobot_utils/disp_cam.py
mobotx/mobot
afaf128ab7a5aab86f776c414ea8f5444e0d0f25
[ "MIT" ]
null
null
null
import threading import numpy as np import cv2 from mobot.brain.agent import Agent def _do_nothing(x): pass class ImageGrid: """Simple wrapper around cv2 high level gui Features: 1. Grid of images of fixed size. 2. Trackbars """ def __init__(self, agent, name="Image Grid", siz...
28.325
95
0.605472
2528611161c75b38c7d0a560ce8afc1c67018f63
5,816
py
Python
platformio/commands/debug/command.py
Maniekkk/platformio-core
ffc3fec4f646636457836affb4700bbbea3837d6
[ "Apache-2.0" ]
1
2020-06-09T05:03:45.000Z
2020-06-09T05:03:45.000Z
platformio/commands/debug/command.py
Maniekkk/platformio-core
ffc3fec4f646636457836affb4700bbbea3837d6
[ "Apache-2.0" ]
null
null
null
platformio/commands/debug/command.py
Maniekkk/platformio-core
ffc3fec4f646636457836affb4700bbbea3837d6
[ "Apache-2.0" ]
1
2020-03-30T00:17:56.000Z
2020-03-30T00:17:56.000Z
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
36.35
88
0.685179
035e5771961cc6768f2b6f2de5ee1a4228ddb0bc
1,350
py
Python
automate.py
symsys1/symsys-cfg
4e441823d79b081fddf1eac2043db91ca44dedaa
[ "MIT" ]
null
null
null
automate.py
symsys1/symsys-cfg
4e441823d79b081fddf1eac2043db91ca44dedaa
[ "MIT" ]
null
null
null
automate.py
symsys1/symsys-cfg
4e441823d79b081fddf1eac2043db91ca44dedaa
[ "MIT" ]
null
null
null
import os # code adapted from https://realpython.com/beautiful-soup-web-scraper-python/#why-scrape-the-web # https://stackoverflow.com/questions/54616638/download-all-pdf-files-from-a-website-using-python import requests from bs4 import BeautifulSoup import wget # grab html from cs278 url = "box.html" page = open(url...
28.125
97
0.561481
4c710f0787183cd7c5af232d02a18044bf391f79
26,598
py
Python
pymc/backends/arviz.py
DebadityaPal/pymc
c06c2f46f9366e650b848f0b6dbe33e1a663c09d
[ "Apache-2.0" ]
1
2021-12-07T10:33:04.000Z
2021-12-07T10:33:04.000Z
pymc/backends/arviz.py
DebadityaPal/pymc
c06c2f46f9366e650b848f0b6dbe33e1a663c09d
[ "Apache-2.0" ]
null
null
null
pymc/backends/arviz.py
DebadityaPal/pymc
c06c2f46f9366e650b848f0b6dbe33e1a663c09d
[ "Apache-2.0" ]
null
null
null
"""PyMC-ArviZ conversion code.""" import logging import warnings from typing import ( # pylint: disable=unused-import TYPE_CHECKING, Any, Dict, Iterable, List, Mapping, Optional, Tuple, Union, ) import numpy as np import xarray as xr from aesara.graph.basic import Constant from a...
37.2
111
0.601323
395e696f20deca479d25ad2c6bbf5aee90008602
474
py
Python
lib/output.py
applanga/applanga-cli
6ca7218f30ff8ea62f660eeebf6e0db3ac908267
[ "MIT" ]
2
2018-06-27T12:28:19.000Z
2021-10-05T04:31:38.000Z
lib/output.py
applanga/applanga-cli
6ca7218f30ff8ea62f660eeebf6e0db3ac908267
[ "MIT" ]
null
null
null
lib/output.py
applanga/applanga-cli
6ca7218f30ff8ea62f660eeebf6e0db3ac908267
[ "MIT" ]
2
2020-01-24T16:49:34.000Z
2021-06-10T11:08:40.000Z
import click def showCommandHeader(command_name, ctx): """Displays basic information to user. Args: command_name: The name of the command which started method. Returns: Noting """ if ctx.obj['DEBUG']: click.echo('') click.echo('*' * 60) click.echo('Executi...
24.947368
92
0.592827
b70eb01a0aa67cda9a760f1a5c6f47818390f56e
3,985
py
Python
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_program_request_dto.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_program_request_dto.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/create_program_request_dto.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateProgramRequestDTO: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): Th...
28.262411
88
0.59197
8ddabd3a8c4e9108f006520d73527c7e4dfb24bb
598
py
Python
front/decorators.py
chicosilva/csms
844c809748099829b91f7edfe859dc41067a988b
[ "Unlicense" ]
null
null
null
front/decorators.py
chicosilva/csms
844c809748099829b91f7edfe859dc41067a988b
[ "Unlicense" ]
null
null
null
front/decorators.py
chicosilva/csms
844c809748099829b91f7edfe859dc41067a988b
[ "Unlicense" ]
null
null
null
from django.http import HttpResponseRedirect from functools import wraps from django.core.urlresolvers import reverse def verifica_termos_uso(): def decorator(func): def inner_decorator(request, *args, **kwargs): from autenticacao.models import Configuracao config = Configuracao.ob...
29.9
75
0.670569
9b4a437962cfba7086f7439db097233738af9568
5,913
py
Python
extract_negative_videos.py
Fork-for-Modify/SGN
675fbec85bbb88af878de88eb55b59d2a75ad7eb
[ "MIT" ]
null
null
null
extract_negative_videos.py
Fork-for-Modify/SGN
675fbec85bbb88af878de88eb55b59d2a75ad7eb
[ "MIT" ]
null
null
null
extract_negative_videos.py
Fork-for-Modify/SGN
675fbec85bbb88af878de88eb55b59d2a75ad7eb
[ "MIT" ]
null
null
null
from collections import Counter, defaultdict import json import nltk import pandas as pd from torchvision import transforms from tqdm import tqdm from loader.transform import TrimExceptAscii, Lowercase, RemovePunctuation, SplitWithWhiteSpace def load_MSVD_captions(caption_fpath): df = pd.read_csv(ca...
39.952703
108
0.630475
f1fd97f5a3e6752c6f85a56e4adba19bbfa509b4
1,746
py
Python
tests/unit/extractor/restapi/test_rest_api_extractor.py
fBedecarrats/amundsendatabuilder
69bf5b77af11c770641724f2c311dd13b6ea8b8b
[ "Apache-2.0" ]
null
null
null
tests/unit/extractor/restapi/test_rest_api_extractor.py
fBedecarrats/amundsendatabuilder
69bf5b77af11c770641724f2c311dd13b6ea8b8b
[ "Apache-2.0" ]
1
2020-07-07T08:44:33.000Z
2020-07-07T08:44:33.000Z
tests/unit/extractor/restapi/test_rest_api_extractor.py
fBedecarrats/amundsendatabuilder
69bf5b77af11c770641724f2c311dd13b6ea8b8b
[ "Apache-2.0" ]
1
2020-08-12T09:51:58.000Z
2020-08-12T09:51:58.000Z
import unittest from pyhocon import ConfigFactory # noqa: F401 from databuilder.extractor.restapi.rest_api_extractor import RestAPIExtractor, REST_API_QUERY, MODEL_CLASS, \ STATIC_RECORD_DICT from databuilder.models.dashboard.dashboard_metadata import DashboardMetadata from databuilder.rest_api.base_rest_api_que...
35.632653
109
0.607102
eaab1cb56ddd366e8accdc568f01dd672420b35b
481,389
py
Python
unittest/test_pow2.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
2
2017-08-28T08:41:16.000Z
2018-05-29T03:49:36.000Z
unittest/test_pow2.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
null
null
null
unittest/test_pow2.py
m1griffin/arrayfunc
df57097699c25d3e949e1ade307ed61eaa5728c2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ############################################################################## # Project: arrayfunc # Module: test_pow2.py # Purpose: arrayfunc unit test. # Language: Python 3.4 # Date: 10-Oct-2021. # Ver: 14-Oct-2021. # ###############################################################...
32.919989
108
0.62619
3398076d1a6b00e06377fc6917f3da47011809ef
1,389
py
Python
projects/twitter/seq2seq/train.py
mohan-chinnappan-n/ParlAI
ddf10373339390408c92d8765d7ff9ae00e4204e
[ "MIT" ]
41
2019-06-07T17:36:10.000Z
2021-11-16T06:26:16.000Z
projects/twitter/seq2seq/train.py
jacklee20151/ParlAI
b4a442018d1a46f9374547ef0a9b8134b7bb4944
[ "MIT" ]
14
2020-03-13T19:08:56.000Z
2020-05-12T07:38:41.000Z
projects/twitter/seq2seq/train.py
jacklee20151/ParlAI
b4a442018d1a46f9374547ef0a9b8134b7bb4944
[ "MIT" ]
11
2019-06-06T01:19:08.000Z
2020-07-23T07:34:56.000Z
#!/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. """ Train model for ppl metric with pre-selected parameters. These parameters have some variance in their final perplexi...
27.78
84
0.652268
93d730bf0ea12da9043cf4651ad617e69b49a7c7
2,579
py
Python
LinkedLists/LinkedList2.py
arnavbansal2764/Python
ba3e6e66cc3a5a023f641c84571b8838f2e0af14
[ "MIT" ]
1,340
2015-09-10T19:08:01.000Z
2022-03-31T01:31:29.000Z
LinkedLists/LinkedList2.py
arnavbansal2764/Python
ba3e6e66cc3a5a023f641c84571b8838f2e0af14
[ "MIT" ]
33
2017-01-18T14:31:27.000Z
2022-03-23T19:57:37.000Z
LinkedLists/LinkedList2.py
arnavbansal2764/Python
ba3e6e66cc3a5a023f641c84571b8838f2e0af14
[ "MIT" ]
1,382
2015-07-15T16:37:38.000Z
2022-03-30T12:46:34.000Z
class Node(object): def __init__ (self, d, n = None): self.data = d self.next_node = n def get_next (self): return self.next_node def set_next (self, n): self.next_node = n def get_data (self): return self.data def set_data (self, d): self.data = d def has_next (self): i...
20.307087
82
0.614579
b3bcd0f3c89c3af5e034417a2e7899abc19f9907
5,993
py
Python
egs/word_embedding/word2vec/skip-gram_en.py
charlesliucn/LanMIT
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
17
2019-07-08T08:34:50.000Z
2021-11-19T13:39:29.000Z
egs/word_embedding/word2vec/skip-gram_en.py
charlesliucn/kaldi-lm
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
null
null
null
egs/word_embedding/word2vec/skip-gram_en.py
charlesliucn/kaldi-lm
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import collections import math import numpy as np import os import random import tensorflow as tf import zipfile import urllib import urllib.request os.environ["CUDA_VISIBLE_DEVICES"] = "4" config = tf.ConfigProto() config.gpu_options.per_process_gpu_memory_fraction = 0.1 session = tf.Session(c...
31.051813
91
0.712998
031655562f5705cfa02789f2568e092e738ab2d0
919
py
Python
Configuration/StandardSequences/python/L1TrackTrigger_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
Configuration/StandardSequences/python/L1TrackTrigger_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
Configuration/StandardSequences/python/L1TrackTrigger_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms from L1Trigger.TrackTrigger.TrackTrigger_cff import * from SimTracker.TrackTriggerAssociation.TrackTriggerAssociator_cff import * from L1Trigger.TrackerDTC.ProducerED_cff import * from L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff import * L1TrackTrigger=cms.Sequ...
51.055556
137
0.883569
465ea013fb24a2d6820687e62ebe6b5f80c99a82
342
py
Python
ooer/models/user.py
williammck/ooer
d6dc07627acfa41de824b86addf4eb70ecc8fc76
[ "MIT" ]
null
null
null
ooer/models/user.py
williammck/ooer
d6dc07627acfa41de824b86addf4eb70ecc8fc76
[ "MIT" ]
null
null
null
ooer/models/user.py
williammck/ooer
d6dc07627acfa41de824b86addf4eb70ecc8fc76
[ "MIT" ]
null
null
null
from mongoengine import * from flask_login import UserMixin class User(Document, UserMixin, object): username = StringField(required=True, unique=True) email = StringField() def get_id(self): return str(self.id) def __repr__(self): return self.username def __str__(self): ...
20.117647
54
0.681287
58c8a3b3062c3dcad5c4c34e9dd91869cec636ab
439
py
Python
docs/examples/sync_job.py
targetaidev/arku
dfd12cc5f386f137c658895b63089b1fc48ddf97
[ "MIT" ]
8
2021-12-08T07:20:50.000Z
2021-12-10T05:38:02.000Z
docs/examples/sync_job.py
targetaidev/arku
dfd12cc5f386f137c658895b63089b1fc48ddf97
[ "MIT" ]
null
null
null
docs/examples/sync_job.py
targetaidev/arku
dfd12cc5f386f137c658895b63089b1fc48ddf97
[ "MIT" ]
null
null
null
import time import functools import asyncio from concurrent import futures def sync_task(t): return time.sleep(t) async def the_task(ctx, t): blocking = functools.partial(sync_task, t) loop = asyncio.get_running_loop() await loop.run_in_executor(ctx['pool'], blocking) async def startup(ctx): c...
18.291667
53
0.724374
b6476a56fd63733cd6497d27a2a3db0d7ea3a2ac
2,752
py
Python
ciper_encoder.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
3
2020-02-23T13:02:50.000Z
2020-02-25T16:54:39.000Z
ciper_encoder.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
null
null
null
ciper_encoder.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
null
null
null
**************************************************************************************************************************************** *********************************#code by rohab ailoni#time complexity O(n)************************************************************* **********************************************...
91.733333
168
0.341933
f38282c27a4742a83d1956e96cfc21ba347f2b58
13,325
py
Python
semidbm/db.py
benpankow/semidbm
4bab5232a62cc212630e31197c17e30a52cdc538
[ "BSD-3-Clause" ]
1
2019-06-20T22:02:02.000Z
2019-06-20T22:02:02.000Z
semidbm/db.py
benpankow/semidbm
4bab5232a62cc212630e31197c17e30a52cdc538
[ "BSD-3-Clause" ]
null
null
null
semidbm/db.py
benpankow/semidbm
4bab5232a62cc212630e31197c17e30a52cdc538
[ "BSD-3-Clause" ]
null
null
null
"""An only semi-dumb DBM. This module is an attempt to do slightly better than the standard library's dumbdbm. It keeps a similar design to dumbdbm while improving and fixing some of dumbdbm's problems. """ import os import sys from binascii import crc32 import struct from semidbm.exceptions import DBMLoadError, DB...
35.819892
85
0.596548
0650bad12f80a937eabfc0683635374b96498a4b
2,106
py
Python
RestApi/Python/RestApi_v1/SampleScripts/loadTestRun.py
scottwedge/BreakingPoint
71768f2a567b6830052ddedb2580060155cf9482
[ "MIT" ]
15
2018-03-20T07:37:42.000Z
2022-01-17T17:14:43.000Z
RestApi/Python/RestApi_v1/SampleScripts/loadTestRun.py
scottwedge/BreakingPoint
71768f2a567b6830052ddedb2580060155cf9482
[ "MIT" ]
8
2018-05-02T14:35:29.000Z
2021-04-22T07:01:45.000Z
RestApi/Python/RestApi_v1/SampleScripts/loadTestRun.py
scottwedge/BreakingPoint
71768f2a567b6830052ddedb2580060155cf9482
[ "MIT" ]
11
2018-12-11T06:49:16.000Z
2021-10-04T11:59:49.000Z
import sys sys.path.insert(0, '../Modules') from BpsRestApi import * from optparse import OptionParser # Demo 1 Script. This script will perform the following steps: # 1. Login # 2. Show current port reservation state and then reserve the ports # 3. Upload a test - default "Sample_HTTP_B2B.bpt" # 4. Run the...
35.1
94
0.707977
65c48aa4a543091b4f0af27ce7927da206de4ca2
11,389
py
Python
lm_1b/lm_1b_eval.py
robrkerr/tensorflow-models
3656a07e89be134c2bc333c60a6c709e475024a6
[ "Apache-2.0" ]
308
2018-09-06T18:46:57.000Z
2022-03-28T08:22:45.000Z
lm_1b/lm_1b_eval.py
robrkerr/tensorflow-models
3656a07e89be134c2bc333c60a6c709e475024a6
[ "Apache-2.0" ]
64
2018-06-20T10:14:17.000Z
2021-09-08T05:58:25.000Z
lm_1b/lm_1b_eval.py
robrkerr/tensorflow-models
3656a07e89be134c2bc333c60a6c709e475024a6
[ "Apache-2.0" ]
69
2018-09-18T12:06:56.000Z
2022-03-14T11:49:16.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.977273
80
0.610062
958ba63671a9e07443d4ffc7eace718e48960d36
5,258
py
Python
desktop/libs/aws/src/aws/s3/upload.py
landier/hue
5d8d2fb238772a26c28b17b0c0e559da8c27a419
[ "Apache-2.0" ]
null
null
null
desktop/libs/aws/src/aws/s3/upload.py
landier/hue
5d8d2fb238772a26c28b17b0c0e559da8c27a419
[ "Apache-2.0" ]
null
null
null
desktop/libs/aws/src/aws/s3/upload.py
landier/hue
5d8d2fb238772a26c28b17b0c0e559da8c27a419
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
33.278481
141
0.716432
5346b3a39ad2f259cdf424668df5f15b047fb8c2
6,049
py
Python
visuals.py
ChethanUC007/Creating-Customer-Segments
e31f048a71a269ee272b4373f6d17e2b0888621a
[ "Apache-2.0" ]
null
null
null
visuals.py
ChethanUC007/Creating-Customer-Segments
e31f048a71a269ee272b4373f6d17e2b0888621a
[ "Apache-2.0" ]
null
null
null
visuals.py
ChethanUC007/Creating-Customer-Segments
e31f048a71a269ee272b4373f6d17e2b0888621a
[ "Apache-2.0" ]
1
2020-05-16T20:20:37.000Z
2020-05-16T20:20:37.000Z
########################################### # Suppress matplotlib user warnings # Necessary for newer version of matplotlib import warnings warnings.filterwarnings("ignore", category = UserWarning, module = "matplotlib") # # Display inline matplotlib plots with IPython from IPython import get_ipython get_ipython().run_...
36.884146
130
0.675814
3cba78ef188298bd3ed8cf35a739577077268352
3,507
py
Python
cct/get_adjacencies_connected.py
sandrofsousa/covid-US-ethnicity-pub
ce234cd7cd2cdf87a081fe709c2f1739a396bc1a
[ "MIT" ]
null
null
null
cct/get_adjacencies_connected.py
sandrofsousa/covid-US-ethnicity-pub
ce234cd7cd2cdf87a081fe709c2f1739a396bc1a
[ "MIT" ]
null
null
null
cct/get_adjacencies_connected.py
sandrofsousa/covid-US-ethnicity-pub
ce234cd7cd2cdf87a081fe709c2f1739a396bc1a
[ "MIT" ]
null
null
null
""" This program is free software. You can use, copy, distribute, modify and/or redistribute it under the terms of the MIT/Expat License. See the file LICENSE for more details. (c) 2020 Sandro Sousa If you use this software please consider citing the original paper: A. Bassolas, S. Sousa, V. Nicosia "Diffusion segre...
33.721154
88
0.67294
678dd28ecc110fe1e99d10b415bd77e79380aa06
1,106
py
Python
guess.py
EasterGeorge/PythonGames
cdac1bd11b2f70f656087c8cec6306060817c880
[ "MIT" ]
null
null
null
guess.py
EasterGeorge/PythonGames
cdac1bd11b2f70f656087c8cec6306060817c880
[ "MIT" ]
null
null
null
guess.py
EasterGeorge/PythonGames
cdac1bd11b2f70f656087c8cec6306060817c880
[ "MIT" ]
null
null
null
"""" The program will first randomly generate a number unknown to the user. The user needs to guess what that number is. (In other words, the user needs to be able to input information.) If the user’s guess is wrong, the program should return some sort of indication as to how wrong (e.g. The number is too high or too l...
35.677419
109
0.748644
af9d453aba0d5fe9ab0e58e3c2585f995ea76f6d
43,220
py
Python
tests/test_document.py
kpdemetriou/jetengine
1b931efb4a4b0ad7a473773aa6fcf0677c71f122
[ "BSD-3-Clause" ]
5
2019-06-24T08:57:42.000Z
2021-12-17T22:58:08.000Z
tests/test_document.py
kpdemetriou/jetengine
1b931efb4a4b0ad7a473773aa6fcf0677c71f122
[ "BSD-3-Clause" ]
1
2020-02-24T15:04:13.000Z
2020-07-31T11:47:44.000Z
tests/test_document.py
kpdemetriou/jetengine
1b931efb4a4b0ad7a473773aa6fcf0677c71f122
[ "BSD-3-Clause" ]
3
2019-11-07T13:57:40.000Z
2021-12-17T22:58:00.000Z
import sys import asyncio from uuid import uuid4 from datetime import datetime from preggy import expect from jetengine import ( Document, StringField, BooleanField, ListField, EmbeddedDocumentField, ReferenceField, DESCENDING, URLField, DateTimeField, UUIDField, IntField, ...
35.807788
144
0.676793
f71aebc2afaca9f74e0aad77ccea915a36978cb2
1,995
py
Python
examples/classify_capture.py
tbeatty/edgetpu
14237f65ba07b7b1d8287e9f60dd20c88562871a
[ "Apache-2.0" ]
10
2019-04-12T08:02:12.000Z
2020-12-27T13:53:37.000Z
examples/classify_capture.py
tbeatty/edgetpu
14237f65ba07b7b1d8287e9f60dd20c88562871a
[ "Apache-2.0" ]
1
2019-04-03T12:22:55.000Z
2019-04-04T10:42:35.000Z
examples/classify_capture.py
tbeatty/edgetpu
14237f65ba07b7b1d8287e9f60dd20c88562871a
[ "Apache-2.0" ]
3
2019-04-25T13:44:36.000Z
2021-02-17T06:00:56.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.25
80
0.702757
f0364f32e9cbbe11009633cc9a6500946b26f611
4,809
py
Python
mantle/xilinx/spartan3/CLB.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
33
2018-06-11T22:58:23.000Z
2021-11-22T04:16:36.000Z
mantle/xilinx/spartan3/CLB.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
90
2017-08-31T01:12:13.000Z
2021-09-17T04:07:07.000Z
mantle/xilinx/spartan3/CLB.py
phanrahan/mantle
c42cf50fe5827e4d29ad29e0e25a8848ec43d162
[ "MIT" ]
12
2017-09-01T03:25:36.000Z
2020-10-14T21:43:12.000Z
from magma import * from .simulation import * __all__ = ['A0', 'A1', 'A2', 'A3'] __all__ += ['I0', 'I1', 'I2', 'I3'] __all__ += ['ALL', 'ANY', 'PARITY'] __all__ += ['ZERO', 'ONE'] __all__ += ['LUTS_PER_LOGICBLOCK', 'BITS_PER_LUT', 'LOG_BITS_PER_LUT'] __all__ += ['_LUT1', '_LUT2', '_LUT3', '_LUT4'] __all__ += ['MUXF5...
26.569061
85
0.440632
8b2b726cc15b1ba658081222c33faf6fdec11378
4,063
py
Python
generate_decoder_layer.py
carlosep93/LANGSPEC
8c8f55d999d79628a56f48d4e1a8918f8c426f72
[ "BSD-3-Clause" ]
null
null
null
generate_decoder_layer.py
carlosep93/LANGSPEC
8c8f55d999d79628a56f48d4e1a8918f8c426f72
[ "BSD-3-Clause" ]
null
null
null
generate_decoder_layer.py
carlosep93/LANGSPEC
8c8f55d999d79628a56f48d4e1a8918f8c426f72
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. """ Trans...
33.303279
134
0.673886
2014aa72a082cb5a9b4dbd8bfb012225e5b26495
6,682
py
Python
sublime_jedi/python/ycm/syntax_parse.py
rsumner33/SublimeJEDI
54604bb995e851e4c28d46cf13ffd43ab327b776
[ "MIT" ]
null
null
null
sublime_jedi/python/ycm/syntax_parse.py
rsumner33/SublimeJEDI
54604bb995e851e4c28d46cf13ffd43ab327b776
[ "MIT" ]
null
null
null
sublime_jedi/python/ycm/syntax_parse.py
rsumner33/SublimeJEDI
54604bb995e851e4c28d46cf13ffd43ab327b776
[ "MIT" ]
null
null
null
# Copyright (C) 2013 Google Inc. # # This file is part of YouCompleteMe. # # YouCompleteMe is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
28.194093
80
0.69575
8388f78a4bdb98679f1ac665018b093c3c22c6c0
1,461
py
Python
examples/bq_file_load_benchmark/load_benchmark_tools/load_file_parameters.py
gamma-data/professional-services
433da74fa5665dff9bb368133b46c384731eb0e2
[ "Apache-2.0" ]
1
2020-01-21T07:06:59.000Z
2020-01-21T07:06:59.000Z
examples/bq_file_load_benchmark/load_benchmark_tools/load_file_parameters.py
gamma-data/professional-services
433da74fa5665dff9bb368133b46c384731eb0e2
[ "Apache-2.0" ]
null
null
null
examples/bq_file_load_benchmark/load_benchmark_tools/load_file_parameters.py
gamma-data/professional-services
433da74fa5665dff9bb368133b46c384731eb0e2
[ "Apache-2.0" ]
null
null
null
""" load_file_parameters.py holds a dict called FILE_PARAMETERS that holds the paramters used to create combinations of files. If different parameters are to be used to create combinations, the FILE_PARAMETERS dict should be modified. """ # Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (...
33.204545
75
0.682409
e5b9454314b1486c177576271c4a6b22f2bcc385
1,558
py
Python
boardfarm/devices/cdrouter_bft.py
harry3689/boardfarm_harry
9fea807b4eca59220abd11b845474bdcdff82dda
[ "BSD-3-Clause-Clear" ]
null
null
null
boardfarm/devices/cdrouter_bft.py
harry3689/boardfarm_harry
9fea807b4eca59220abd11b845474bdcdff82dda
[ "BSD-3-Clause-Clear" ]
null
null
null
boardfarm/devices/cdrouter_bft.py
harry3689/boardfarm_harry
9fea807b4eca59220abd11b845474bdcdff82dda
[ "BSD-3-Clause-Clear" ]
null
null
null
class CDrouterDevice(object): """CDRouter is an industry standard server. Used for feature, security, and performance testing of broadband and enterprise edge gateways, Wi-Fi APs and mesh systems, VoIP gateways, set-top-boxes, and smart hubs enabling the Internet of Things. Since CD-Router has its...
38.95
101
0.661746
a6f3a11ee6ecfa99d0e4ff68ef540ea265a26b09
16,667
py
Python
hydraseq/hydraseq.py
Niarfe/hydraseq
43939e58857581fd493bf603038dcb72c419f30f
[ "MIT" ]
null
null
null
hydraseq/hydraseq.py
Niarfe/hydraseq
43939e58857581fd493bf603038dcb72c419f30f
[ "MIT" ]
1
2019-11-03T01:00:18.000Z
2019-11-03T01:00:18.000Z
hydraseq/hydraseq.py
hydraseq/hydraseq
43939e58857581fd493bf603038dcb72c419f30f
[ "MIT" ]
null
null
null
""" Basic Memory Data Structure """ from collections import defaultdict, namedtuple import re class Node: """Simple node class, linked list to keep forward chain in sequence Holds: key: identifies which column this is in, key of dictionary of which this is part of sequence: # separate...
39.308962
131
0.595008
6824ffd79f1ec01296c25f00197379565c7359d5
1,063
py
Python
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_randomforestregencoder.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_randomforestregencoder.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_randomforestregencoder.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
import unittest from pyalink.alink import * import numpy as np import pandas as pd class TestRandomForestRegEncoder(unittest.TestCase): def test_randomforestregencoder(self): df = pd.DataFrame([ [1.0, "A", 0, 0, 0], [2.0, "B", 1, 1, 0], [3.0, "C", 2, 2, 1], [...
35.433333
77
0.577611
413433193ed5e316f8037d7b407c7dc85a808fea
1,918
py
Python
danibraz/bookings/forms.py
CoutinhoElias/danibraz
b21f3ce3477ded74c901fa377a5b2ac5e68faf36
[ "MIT" ]
null
null
null
danibraz/bookings/forms.py
CoutinhoElias/danibraz
b21f3ce3477ded74c901fa377a5b2ac5e68faf36
[ "MIT" ]
1
2017-06-15T20:14:05.000Z
2017-06-15T20:14:05.000Z
danibraz/bookings/forms.py
CoutinhoElias/danibraz
b21f3ce3477ded74c901fa377a5b2ac5e68faf36
[ "MIT" ]
1
2017-06-15T20:07:41.000Z
2017-06-15T20:07:41.000Z
from django import forms from danibraz.users.models import User from django.contrib.admin.widgets import FilteredSelectMultiple from material import Fieldset from material import Layout from material import Row from material import Span6 from danibraz.bookings.models import Booking class BookingsForm(forms.ModelF...
41.695652
221
0.608968
2f1d9c0928b026c2f964c8fda8b8abe65bcc291c
1,982
py
Python
classification/multi_layer_perceptron_classification_sample.py
JordiCorbilla/natural-language-processing
d982ae5377b47ea4a8a22bacdad2302ffbf6b6e9
[ "CC0-1.0" ]
2
2021-04-05T16:08:51.000Z
2021-04-06T19:52:17.000Z
classification/multi_layer_perceptron_classification_sample.py
JordiCorbilla/natural-language-processing
d982ae5377b47ea4a8a22bacdad2302ffbf6b6e9
[ "CC0-1.0" ]
null
null
null
classification/multi_layer_perceptron_classification_sample.py
JordiCorbilla/natural-language-processing
d982ae5377b47ea4a8a22bacdad2302ffbf6b6e9
[ "CC0-1.0" ]
1
2021-12-26T19:22:38.000Z
2021-12-26T19:22:38.000Z
# -*- coding: utf-8 -*- """ Created on Thu Apr 8 20:59:18 2021 @author: Jordi Corbilla """ from __future__ import print_function, division import numpy as np from sklearn.datasets import load_breast_cancer from sklearn.model_selection import train_test_split from sklearn.neural_network import MLPClassifier from sklea...
25.74026
67
0.729566
254431f3b42a019f5b3f3d6d416d897594e5a5ec
7,558
py
Python
Salami/Level.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
15
2020-04-17T12:02:14.000Z
2022-03-16T03:01:34.000Z
Salami/Level.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
9
2020-04-25T01:57:16.000Z
2020-04-29T11:42:34.000Z
Salami/Level.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
55
2020-04-17T12:01:11.000Z
2021-12-28T10:14:02.000Z
import arcade import pyglet.gl as gl import random import PIL import LevelGenerator import Maths import Graphics import Textures from Engine import Engine from Entity import Entity, Texs, Tex from Projectile import Projectile from Mob import Mob from Player import Player from EnemyBall import EnemyBall from Enemy im...
34.511416
108
0.618021
41b09a867e0101899eb37e7dfcb01e41084bedc0
30,687
py
Python
clients/oathkeeper/python/ory_oathkeeper_client/api/api_api.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/oathkeeper/python/ory_oathkeeper_client/api/api_api.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/oathkeeper/python/ory_oathkeeper_client/api/api_api.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
""" ORY Oathkeeper ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501 The version of the OpenAPI document: v0.38.11-beta.1 Contact: hi@ory.am Generated by: https://o...
38.215442
486
0.488318
1d7dd0315d650fab404986c5c64913e819e89324
3,219
py
Python
experiments/cp3_1/ex3_1.py
Rick0514/VPR_SMCN
7a00dc8e4de0c21438474c05a4a7be18d05367fa
[ "MIT" ]
null
null
null
experiments/cp3_1/ex3_1.py
Rick0514/VPR_SMCN
7a00dc8e4de0c21438474c05a4a7be18d05367fa
[ "MIT" ]
null
null
null
experiments/cp3_1/ex3_1.py
Rick0514/VPR_SMCN
7a00dc8e4de0c21438474c05a4a7be18d05367fa
[ "MIT" ]
null
null
null
import numpy as np import main.utils as utils import main.MCN as MCN import main.SMCN as SMCN import matplotlib.pyplot as plt import pickle import tools.visualize as vis # experiment 1 # use gardens point datatset to giev the result of MCN's # unstability when input connections is less # and the more input connections...
33.884211
97
0.639329
e3c60ace394979b6c86bc5c2eaebbf9e499e497a
2,003
py
Python
tools/telemetry/telemetry/core/platform/posix_platform_backend.py
MIPS/external-chromium_org
e31b3128a419654fd14003d6117caa8da32697e7
[ "BSD-3-Clause" ]
2
2017-03-21T23:19:25.000Z
2019-02-03T05:32:47.000Z
tools/telemetry/telemetry/core/platform/posix_platform_backend.py
carlosavignano/android_external_chromium_org
2b5652f7889ccad0fbdb1d52b04bad4c23769547
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/core/platform/posix_platform_backend.py
carlosavignano/android_external_chromium_org
2b5652f7889ccad0fbdb1d52b04bad4c23769547
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
3
2017-07-31T19:09:52.000Z
2019-01-04T18:48:50.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import subprocess from collections import defaultdict from telemetry.core.platform import desktop_platform_backend class PosixPlatformBackend(desktop_pla...
30.815385
76
0.67998
f532a8760fa27be1824ac24e6c75f75e1624275a
559
py
Python
paraphrase/views.py
Shaurov05/t5-transformer-paraphraser
001dc7be903a408965639dce93c24600533d1ed4
[ "MIT" ]
null
null
null
paraphrase/views.py
Shaurov05/t5-transformer-paraphraser
001dc7be903a408965639dce93c24600533d1ed4
[ "MIT" ]
1
2020-11-28T18:41:02.000Z
2020-11-28T18:41:02.000Z
paraphrase/views.py
Shaurov05/t5-transformer-paraphraser
001dc7be903a408965639dce93c24600533d1ed4
[ "MIT" ]
null
null
null
from django.shortcuts import render from .forms import ParaphraseForm from .t5_paws_model import paraphrase_text def index(request): data = {} form = ParaphraseForm() if request.method == "POST": form = ParaphraseForm(request.POST) if form.is_valid(): text = str(form.cleaned_dat...
31.055556
70
0.635063
d40ddfc1c1141a5248d7f5e377c8009db2533441
2,990
py
Python
huaweicloud-sdk-nat/huaweicloudsdknat/v2/model/show_nat_gateway_dnat_rule_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-nat/huaweicloudsdknat/v2/model/show_nat_gateway_dnat_rule_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-nat/huaweicloudsdknat/v2/model/show_nat_gateway_dnat_rule_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowNatGatewayDnatRuleResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute...
27.431193
81
0.572241
0fa7ce3b275ce9835dc681fea324fd33a4a8bcfc
1,015
py
Python
app/api/api_admin/endpoints/resource_used.py
zephyrxvxx7/KubeZephyr-Backend
242410bc236e1f7204c24d635eb3346b0c256dc8
[ "MIT" ]
2
2021-04-25T01:49:45.000Z
2021-11-25T09:10:40.000Z
app/api/api_admin/endpoints/resource_used.py
zephyrxvxx7/KubeZephyr-Backend
242410bc236e1f7204c24d635eb3346b0c256dc8
[ "MIT" ]
null
null
null
app/api/api_admin/endpoints/resource_used.py
zephyrxvxx7/KubeZephyr-Backend
242410bc236e1f7204c24d635eb3346b0c256dc8
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Body, Depends, Path, HTTPException from kubernetes.client.api.core_v1_api import CoreV1Api from starlette.status import ( HTTP_201_CREATED, HTTP_204_NO_CONTENT, HTTP_400_BAD_REQUEST, HTTP_404_NOT_FOUND, HTTP_422_UNPROCESSABLE_ENTITY, ) from app.core.jwt import get_cu...
31.71875
102
0.807882
c18cb84f5c95f9137fa481e7f600f127b3335970
16,021
py
Python
src/z3c/form/converter.py
zopefoundation/z3c.form
cf3e0b00084802a0eebc083e861f3a2d88385a80
[ "ZPL-2.1" ]
5
2015-09-02T15:03:34.000Z
2018-05-09T04:12:36.000Z
src/z3c/form/converter.py
zopefoundation/z3c.form
cf3e0b00084802a0eebc083e861f3a2d88385a80
[ "ZPL-2.1" ]
65
2015-02-20T12:19:15.000Z
2022-03-22T08:14:09.000Z
src/z3c/form/converter.py
zopefoundation/z3c.form
cf3e0b00084802a0eebc083e861f3a2d88385a80
[ "ZPL-2.1" ]
27
2015-02-17T19:32:14.000Z
2020-07-21T05:42:03.000Z
############################################################################## # # Copyright (c) 2007 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
35.133772
80
0.643343
e04bfaa971ae9c3fb71fd2af79184751a91e01b9
4,829
py
Python
testing/test_jsonnet.py
jinchihe/kubeflow
8706753b125516013a6300fabc5d5da5f35a0764
[ "Apache-2.0" ]
1
2019-01-22T03:05:34.000Z
2019-01-22T03:05:34.000Z
testing/test_jsonnet.py
jinchihe/kubeflow
8706753b125516013a6300fabc5d5da5f35a0764
[ "Apache-2.0" ]
null
null
null
testing/test_jsonnet.py
jinchihe/kubeflow
8706753b125516013a6300fabc5d5da5f35a0764
[ "Apache-2.0" ]
1
2022-02-11T03:20:23.000Z
2022-02-11T03:20:23.000Z
#!/usr/bin/env python # Copyright 2018 The Kubeflow Authors All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
35.77037
338
0.675295
7b29e90b264db22958be16eee43af2ae3a4eae6c
242,067
py
Python
tool/cpplint.py
dataviral/incubator-singa
9b06c29712e4fbfe955d3c7a7f651da037c09693
[ "Apache-2.0" ]
3
2018-02-12T06:01:41.000Z
2018-04-04T03:42:34.000Z
tool/cpplint.py
dataviral/incubator-singa
9b06c29712e4fbfe955d3c7a7f651da037c09693
[ "Apache-2.0" ]
null
null
null
tool/cpplint.py
dataviral/incubator-singa
9b06c29712e4fbfe955d3c7a7f651da037c09693
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
38.253319
97
0.651171
68ba4a081fc84a16c5ad3f8880f558a7685f7f8b
1,825
py
Python
MURA/Classification/dataset.py
XiaoyuanGuo/MedShift
182942fcc7e337de616ce3819671df9d82702bcc
[ "MIT" ]
1
2022-02-03T17:40:00.000Z
2022-02-03T17:40:00.000Z
MURA/Classification/dataset.py
XiaoyuanGuo/MedShift
182942fcc7e337de616ce3819671df9d82702bcc
[ "MIT" ]
null
null
null
MURA/Classification/dataset.py
XiaoyuanGuo/MedShift
182942fcc7e337de616ce3819671df9d82702bcc
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from PIL import Image import torch from torchvision import transforms from torch.utils.data.dataset import Dataset input_size = 224 data_transforms = { 'train': transforms.Compose([ transforms.RandomResizedCrop(input_size), transforms.RandomH...
29.435484
70
0.581918
5399b3097ad1850ece5ac16c1bcf251e07789dc5
2,046
py
Python
routers/auth.py
Soneji/instagrapi-rest
40937610876c74327b13061859d613dfe449df0d
[ "MIT" ]
null
null
null
routers/auth.py
Soneji/instagrapi-rest
40937610876c74327b13061859d613dfe449df0d
[ "MIT" ]
null
null
null
routers/auth.py
Soneji/instagrapi-rest
40937610876c74327b13061859d613dfe449df0d
[ "MIT" ]
null
null
null
import json from typing import Optional, Dict from fastapi import APIRouter, Depends, Form from dependencies import ClientStorage, get_clients router = APIRouter( prefix="/auth", tags=["auth"], responses={404: {"description": "Not found"}} ) @router.post("/login") async def auth_login(username: str = Form...
28.027397
77
0.606061
8b01f223beecd658f70a922bce04a9f99e552e93
12,776
py
Python
src/evaluate_webcavi_identify.py
hengxyz/cari-visual-recognition-via-multitask-learning
bc0f43060aa090bb1ad4d4931f14883d2246b95d
[ "MIT" ]
13
2019-11-13T02:17:45.000Z
2021-11-22T08:47:41.000Z
src/evaluate_webcavi_identify.py
hengxyz/cari-visual-recognition-via-multitask-learning
bc0f43060aa090bb1ad4d4931f14883d2246b95d
[ "MIT" ]
1
2021-11-07T11:07:08.000Z
2021-11-07T11:07:08.000Z
src/evaluate_webcavi_identify.py
hengxyz/cari-visual-recognition-via-multitask-learning
bc0f43060aa090bb1ad4d4931f14883d2246b95d
[ "MIT" ]
2
2019-11-18T10:05:50.000Z
2020-03-17T02:48:58.000Z
"""Functions for the evaluation of the Rank-n identification of the dynamic multi-task caricature-visual image face recogntion on dataset webcaricature. """ # MIT License # # Copyright (c) 2019 Zuheng Ming from __future__ import absolute_import from __future__ import division from __future__ import print_function imp...
47.494424
152
0.690122
0d8ab18d56859a1efec494f5b33ef1a401ae2fc6
190
py
Python
trim_to_name.py
northWind87/py_blackboard_marking_helper
4692b0f541ad7cec95da807e6e852527d84a98b4
[ "MIT" ]
null
null
null
trim_to_name.py
northWind87/py_blackboard_marking_helper
4692b0f541ad7cec95da807e6e852527d84a98b4
[ "MIT" ]
null
null
null
trim_to_name.py
northWind87/py_blackboard_marking_helper
4692b0f541ad7cec95da807e6e852527d84a98b4
[ "MIT" ]
null
null
null
import os import shutil if __name__ == "__main__": for f in os.listdir('.'): if "2014" in f: new_name = f[f.find("2014") + 20:] shutil.move(f, new_name)
21.111111
46
0.531579
b189a2cb55418ee5ea2e0c131dd139f95bd928cc
2,981
py
Python
hikyuu/admin/widget/RestDataTableModel.py
kknet/hikyuu
650814c3e1d32894ccc1263a0fecd6693028d2e3
[ "MIT" ]
1,283
2016-04-06T16:06:46.000Z
2022-03-31T06:37:53.000Z
hikyuu/admin/widget/RestDataTableModel.py
kknet/hikyuu
650814c3e1d32894ccc1263a0fecd6693028d2e3
[ "MIT" ]
47
2017-08-12T10:37:03.000Z
2022-03-28T13:22:21.000Z
hikyuu/admin/widget/RestDataTableModel.py
kknet/hikyuu
650814c3e1d32894ccc1263a0fecd6693028d2e3
[ "MIT" ]
416
2017-05-15T05:28:26.000Z
2022-03-22T07:44:15.000Z
# -*- coding: utf-8 -*- import typing from PyQt5 import QtCore class RestDataTableModel(QtCore.QAbstractTableModel): def __init__(self, head: list, head_tr: list, data: list = [], parent=None): """ Restful接口返回表数据模型 :param head: 表头字段名称列表(按顺序) :param head_tr: 表头字段名称国际化翻译列表(与head对应) ...
38.217949
93
0.625964
fc6406aff03d9073ca1698248e536e885cac08fd
1,283
py
Python
resources/python/getSubreddits.py
Griebia/RedditMangamentSystem
f5381bc161e92d02724fcc5145754ea1d4c850da
[ "MIT" ]
null
null
null
resources/python/getSubreddits.py
Griebia/RedditMangamentSystem
f5381bc161e92d02724fcc5145754ea1d4c850da
[ "MIT" ]
null
null
null
resources/python/getSubreddits.py
Griebia/RedditMangamentSystem
f5381bc161e92d02724fcc5145754ea1d4c850da
[ "MIT" ]
null
null
null
#!/usr/bin/env python import praw import sys import json def score(elem): return elem.score client_id = sys.argv[1] client_secret = sys.argv[2] redirect_uri = sys.argv[3] sub = sys.argv[4] subs = sub.split(',') # reddit = praw.Reddit(client_id = '_0M8fLv5rf7bcw', # client_secret = 'TLhiSC...
23.327273
69
0.646921
aaa25a0d335121a60caecb98c5502ef25e9966f6
463
py
Python
setup.py
cignul9/vtm
6b49318f571dc1589e84160c820d6d48fb5e1200
[ "MIT" ]
4
2016-05-09T20:51:03.000Z
2019-01-22T06:32:11.000Z
setup.py
cignul9/vtm
6b49318f571dc1589e84160c820d6d48fb5e1200
[ "MIT" ]
1
2017-03-09T12:02:07.000Z
2017-03-09T13:02:52.000Z
setup.py
cignul9/vtm
6b49318f571dc1589e84160c820d6d48fb5e1200
[ "MIT" ]
7
2016-12-07T14:27:49.000Z
2020-11-17T16:31:32.000Z
from distutils.core import setup setup( name = 'vtm', packages = ['vtm'], version = '1.4', description = 'Facilitates using the API to configure Brocade Virtual Traffic Managers', author = 'Shawn Magill', author_email = 'cignul9@gmail.com', url = 'https://github.com/cignul9', download_url = 'https://git...
28.9375
90
0.667387
f030134c11d4149fee75e9dbb6e70bcb403bbfa3
985
py
Python
1-redis/config.py
plasma-umass/mesh-testsuite
322e727877d25c8fbdb30eee8fae960b48c2ffa1
[ "Apache-2.0" ]
1
2019-10-28T22:06:19.000Z
2019-10-28T22:06:19.000Z
1-redis/config.py
plasma-umass/mesh-testsuite
322e727877d25c8fbdb30eee8fae960b48c2ffa1
[ "Apache-2.0" ]
null
null
null
1-redis/config.py
plasma-umass/mesh-testsuite
322e727877d25c8fbdb30eee8fae960b48c2ffa1
[ "Apache-2.0" ]
3
2019-02-23T06:42:18.000Z
2020-11-09T18:25:54.000Z
import collections # Config = collections.namedtuple('Config', ['name', 'use_flags', 'ldflags']) class Config: def __init__(self, name, use_flags, ldflags=None, skip=False, defrag=False): self.name = name self.use_flags = use_flags self.ldflags = ldflags self.skip = skip se...
42.826087
103
0.570558
e429a7cff3f4badc674c7795a32d5817e8d87dfc
1,242
py
Python
gpytorch/__init__.py
johnryan465/gpytorch
61f643eb8b487aef332c818f661fbcdb1df576ca
[ "MIT" ]
null
null
null
gpytorch/__init__.py
johnryan465/gpytorch
61f643eb8b487aef332c818f661fbcdb1df576ca
[ "MIT" ]
null
null
null
gpytorch/__init__.py
johnryan465/gpytorch
61f643eb8b487aef332c818f661fbcdb1df576ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from . import ( beta_features, distributions, kernels, lazy, likelihoods, means, mlls, models, optim, priors, settings, utils, variational, ) from .functions import ( # Deprecated add_diag, add_jitter, dsmm, inv_matmul, inv_...
16.56
44
0.599839
66f85e77fe825574c69fb35ed686a32c5025b38b
1,395
py
Python
Python Version/localizer.py
ianleongg/Sensing-Movement-Histogram-Filter-2D
fb2999b99ae19900fbe0e8988722dd6517078ed1
[ "MIT" ]
null
null
null
Python Version/localizer.py
ianleongg/Sensing-Movement-Histogram-Filter-2D
fb2999b99ae19900fbe0e8988722dd6517078ed1
[ "MIT" ]
null
null
null
Python Version/localizer.py
ianleongg/Sensing-Movement-Histogram-Filter-2D
fb2999b99ae19900fbe0e8988722dd6517078ed1
[ "MIT" ]
null
null
null
import pdb from helpers import normalize, blur def initialize_beliefs(grid): height = len(grid) width = len(grid[0]) area = height * width belief_per_cell = 1.0 / area beliefs = [] for i in range(height): row = [] for j in range(width): row.append(belief_per_cell) ...
27.9
69
0.554122
ce823c7dbbeb48324a141e40a837eacbd0006e6c
6,964
py
Python
pypy/objspace/std/nametokentype.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
pypy/objspace/std/nametokentype.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/objspace/std/nametokentype.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
from pypy.interpreter.error import OperationError from pypy.objspace.descroperation import Object from pypy.interpreter import gateway from pypy.interpreter.typedef import default_identity_hash from pypy.objspace.std.stdtypedef import * from pypy.objspace.std.register_all import register_all from pypy.objspace.std.objs...
37.240642
102
0.654652
427b543a5b8ab6f65399bf78090ab3da0da2ac77
38,544
py
Python
google/cloud/dialogflowcx_v3beta1/services/agents/async_client.py
googleapis/python-dialogflow-cx
dfefa4e21bcd6bf37d341911187fab283152f514
[ "Apache-2.0" ]
37
2020-09-01T04:15:08.000Z
2022-01-28T00:30:00.000Z
google/cloud/dialogflowcx_v3beta1/services/agents/async_client.py
googleapis/python-dialogflow-cx
dfefa4e21bcd6bf37d341911187fab283152f514
[ "Apache-2.0" ]
98
2020-08-24T15:32:01.000Z
2022-03-31T21:08:26.000Z
google/cloud/dialogflowcx_v3beta1/services/agents/async_client.py
googleapis/python-dialogflow-cx
dfefa4e21bcd6bf37d341911187fab283152f514
[ "Apache-2.0" ]
18
2020-08-24T15:29:37.000Z
2022-02-09T19:25:12.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
42.637168
171
0.634599
a3aeae357f5e0525489175d53418a53015e4e4ad
10,112
py
Python
src/transformers/tokenization_mbart_fast.py
Liang813/transformers
08f534d2da47875a4b7eb1c125cfa7f0f3b79642
[ "Apache-2.0" ]
null
null
null
src/transformers/tokenization_mbart_fast.py
Liang813/transformers
08f534d2da47875a4b7eb1c125cfa7f0f3b79642
[ "Apache-2.0" ]
null
null
null
src/transformers/tokenization_mbart_fast.py
Liang813/transformers
08f534d2da47875a4b7eb1c125cfa7f0f3b79642
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Facebook AI Research Team Authors and The HuggingFace Inc. team. # # 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/LIC...
40.774194
119
0.669007
179632e5b565db48f3c44466616535435e70dbcd
5,962
py
Python
frinx_conductor_workers/http_worker.py
FRINXio/uniflow-micros
827542cea483ce3ebe73f72d982ec75a1c42aa19
[ "Apache-2.0" ]
null
null
null
frinx_conductor_workers/http_worker.py
FRINXio/uniflow-micros
827542cea483ce3ebe73f72d982ec75a1c42aa19
[ "Apache-2.0" ]
null
null
null
frinx_conductor_workers/http_worker.py
FRINXio/uniflow-micros
827542cea483ce3ebe73f72d982ec75a1c42aa19
[ "Apache-2.0" ]
1
2021-03-29T01:08:21.000Z
2021-03-29T01:08:21.000Z
from __future__ import print_function import json import copy from string import Template import requests from frinx_conductor_workers.frinx_rest import parse_response # Example 1: simple GET request returning HTML # { # "name": "HTTP_task", # "taskReferenceName": "google_worker", # "type": "SIMPLE", #...
35.915663
108
0.513418
72303de1a4a4e8bf5cb34f1d2a447f86dee4f203
16,554
py
Python
train.py
zhongbin1/bert_for_text_matching
e887c5c227493c0f9de4731b30e9890a025ff160
[ "Apache-2.0" ]
17
2019-05-20T16:04:22.000Z
2021-08-20T06:43:38.000Z
train.py
zhongbin1/bert_for_text_matching
e887c5c227493c0f9de4731b30e9890a025ff160
[ "Apache-2.0" ]
1
2019-11-18T05:40:28.000Z
2020-01-19T15:47:07.000Z
train.py
zhongbin1/bert_for_text_matching
e887c5c227493c0f9de4731b30e9890a025ff160
[ "Apache-2.0" ]
5
2019-07-16T12:59:55.000Z
2020-04-28T04:18:11.000Z
# coding=utf-8 import csv import os import modeling import optimization import tokenization import tensorflow as tf flags = tf.flags FLAGS = flags.FLAGS ## Required parameters flags.DEFINE_string( "data_dir", "./data/lcqmc", "The input data dir. Should contain the .tsv files (or other data files) " "for...
33.442424
97
0.686843
6232ea0f115feaedb54d8a1f63266451b5e2a81f
1,385
py
Python
nipype/algorithms/tests/test_auto_SpecifySPMModel.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/algorithms/tests/test_auto_SpecifySPMModel.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
nipype/algorithms/tests/test_auto_SpecifySPMModel.py
Conxz/nipype
1281723ae56eacd103597ff4081a205583706e62
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ...testing import assert_equal from ..modelgen import SpecifySPMModel def test_SpecifySPMModel_inputs(): input_map = dict(concatenate_runs=dict(usedefault=True, ), event_files=dict(mandatory=True, xor=[u'subject_info', u'event_files'], ), ...
28.265306
78
0.683032
8286476c995b64b2d821421f9a1f24c4ce5498c8
2,046
py
Python
config/settings/local.py
team-mbm/ashray
bc1223e750028fcace242e4fa616d0c7eebb41fa
[ "MIT" ]
null
null
null
config/settings/local.py
team-mbm/ashray
bc1223e750028fcace242e4fa616d0c7eebb41fa
[ "MIT" ]
null
null
null
config/settings/local.py
team-mbm/ashray
bc1223e750028fcace242e4fa616d0c7eebb41fa
[ "MIT" ]
null
null
null
""" Local settings - Run in Debug mode - Use console backend for emails - Add Django Debug Toolbar - Add django-extensions as app """ from .base import * # noqa # DEBUG # ------------------------------------------------------------------------------ DEBUG = env.bool('DJANGO_DEBUG', default=True) TEMPLATES[0]['OPT...
29.652174
99
0.481916
84a08ccdd71f822df39bd80c5b5feff649e8a704
107
py
Python
dns/apps.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
dns/apps.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
dns/apps.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.apps import AppConfig class DnsConfig(AppConfig): name = 'dns'
11.888889
33
0.64486
01aca33d3b70a159df740d044abd3525d20c474b
3,062
py
Python
ibc/service.py
andrey-zotov/ib_console
10f484c4bd071f4e58656bff5206a5f4da5f4fd6
[ "Apache-2.0" ]
21
2020-10-21T06:01:51.000Z
2022-01-30T06:59:21.000Z
ibc/service.py
andrey-zotov/ib_console
10f484c4bd071f4e58656bff5206a5f4da5f4fd6
[ "Apache-2.0" ]
null
null
null
ibc/service.py
andrey-zotov/ib_console
10f484c4bd071f4e58656bff5206a5f4da5f4fd6
[ "Apache-2.0" ]
3
2020-10-21T16:52:29.000Z
2021-02-28T17:25:52.000Z
""" IBC actions """ import datetime import logging import math from typing import List import pytz import tzlocal from sqlalchemy.engine import Engine, create_engine from sqlalchemy.orm import Session import ibc.config as config from ibc.data_models import Base, Account, Order, OrderAction, OrderStatus from ibc.ib_s...
30.929293
97
0.651862
bf4c7bb1f351bcb5883a2cc7d971602b9a5a8ec9
46
py
Python
tests/__init__.py
lokaimoma/Flask-QR-Code-Web-APP
5789753757aa1939119a799cbc6bda023ea75bbc
[ "MIT" ]
2
2022-03-05T18:54:15.000Z
2022-03-24T12:19:22.000Z
tests/__init__.py
lokaimoma/Flask-QR-Code-Web-APP
5789753757aa1939119a799cbc6bda023ea75bbc
[ "MIT" ]
null
null
null
tests/__init__.py
lokaimoma/Flask-QR-Code-Web-APP
5789753757aa1939119a799cbc6bda023ea75bbc
[ "MIT" ]
null
null
null
# Created by Kelvin_Clark on 3/10/22, 5:34 PM
23
45
0.717391
53272a3317c11d8f46bc1e83afc750bfe44f4aa1
1,169
py
Python
xenvman/errors.py
syhpoon/xenvman-python
a6b665936085b8da9e408c691aa172e7fd2500ba
[ "MIT" ]
null
null
null
xenvman/errors.py
syhpoon/xenvman-python
a6b665936085b8da9e408c691aa172e7fd2500ba
[ "MIT" ]
null
null
null
xenvman/errors.py
syhpoon/xenvman-python
a6b665936085b8da9e408c691aa172e7fd2500ba
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Max Kuznetsov <syhpoon@syhpoon.ca> # # 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 rights # to use...
44.961538
80
0.775877
af873e93fc02ffd2a23989b3888054146cc14e15
6,345
py
Python
oj/settings.py
wanderknight/OnlineJudge
dc1a085867a7f26799931f7ab6d58e071f75cf1c
[ "MIT" ]
null
null
null
oj/settings.py
wanderknight/OnlineJudge
dc1a085867a7f26799931f7ab6d58e071f75cf1c
[ "MIT" ]
null
null
null
oj/settings.py
wanderknight/OnlineJudge
dc1a085867a7f26799931f7ab6d58e071f75cf1c
[ "MIT" ]
null
null
null
""" Django settings for oj project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ import os import ra...
25.584677
103
0.638298
e199b595b33669002ce95b1c0bdeb5d05df02b03
542
py
Python
2.extract_title.py
kissingurami/duonao_douban_crawler_python3
1f0427e18dc8556199f1b566b948feb0843b59ec
[ "MIT" ]
null
null
null
2.extract_title.py
kissingurami/duonao_douban_crawler_python3
1f0427e18dc8556199f1b566b948feb0843b59ec
[ "MIT" ]
null
null
null
2.extract_title.py
kissingurami/duonao_douban_crawler_python3
1f0427e18dc8556199f1b566b948feb0843b59ec
[ "MIT" ]
null
null
null
import re uuid = 0 for i in range(1, 605): html = [] with open('duonao/htmls/%d.html' % i, 'r') as f: for cnt, line in enumerate(f): html.append(line.strip()) html = ' '.join(html) titleRegex = 'class="title">.*?>(.*?)<\/a>' for idx, title in enumerate(re.findall(titleRegex, html...
31.882353
62
0.51107
64577879d5093d12f7b52fddca652f079d250414
7,573
py
Python
anima/config.py
Khosiyat/anima
f631c08400547f49ac5f1feeb730f22c255eb771
[ "MIT" ]
1
2021-07-03T19:03:41.000Z
2021-07-03T19:03:41.000Z
anima/config.py
Khosiyat/anima
f631c08400547f49ac5f1feeb730f22c255eb771
[ "MIT" ]
null
null
null
anima/config.py
Khosiyat/anima
f631c08400547f49ac5f1feeb730f22c255eb771
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from stalker.config import Config as ConfigBase class Config(ConfigBase): """configurator """ extra_config_values = dict( # stalker_server_internal_address= # defaults.stalker_server_internal_address # if 'stalker_server_internal_address' in defaults else ...
32.363248
72
0.377261