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
e21389138faeef26f2c2ee2be44922a1fad42cf9
6,501
py
Python
oldScripts/xtraScripts/tracker_cm.py
crackmech/flyclimb
551621d1d2747d22b407a6b640d7ccaf680b53e5
[ "MIT" ]
null
null
null
oldScripts/xtraScripts/tracker_cm.py
crackmech/flyclimb
551621d1d2747d22b407a6b640d7ccaf680b53e5
[ "MIT" ]
null
null
null
oldScripts/xtraScripts/tracker_cm.py
crackmech/flyclimb
551621d1d2747d22b407a6b640d7ccaf680b53e5
[ "MIT" ]
null
null
null
''' File name : tracker.py File Description : Tracker Using Kalman Filter & Hungarian Algorithm Author : Srini Ananthakrishnan Date created : 07/14/2017 Date last modified: 07/16/2017 Python Version : 2.7 ''' # Import python libraries import numpy as np from kalman_f...
38.241176
77
0.57022
ea9841da21e8b47ec62894276ccac4299b18217e
3,921
py
Python
xarray/backends/pynio_.py
apkrelling/xarray
abcae54664539e50a34d4b713faadf108cf6d22e
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xarray/backends/pynio_.py
apkrelling/xarray
abcae54664539e50a34d4b713faadf108cf6d22e
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xarray/backends/pynio_.py
apkrelling/xarray
abcae54664539e50a34d4b713faadf108cf6d22e
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import numpy as np from ..core import indexing from ..core.utils import Frozen, FrozenDict, close_on_error from ..core.variable import Variable from .common import ( BACKEND_ENTRYPOINTS, AbstractDataStore, BackendArray, BackendEntrypoint, ) from .file_manager import CachingFileManager from .locks impor...
28.620438
88
0.646009
1928ba7d70f868a32501d4af9dcd3725eee43519
1,392
py
Python
beakerx_tabledisplay/beakerx_tabledisplay/__init__.py
fcollonval/beakerx_tabledisplay
0c05d69b5d1431953b372621dd1478661a77a586
[ "Apache-2.0" ]
6
2020-05-07T22:25:44.000Z
2021-01-15T21:53:16.000Z
beakerx_tabledisplay/beakerx_tabledisplay/__init__.py
fcollonval/beakerx_tabledisplay
0c05d69b5d1431953b372621dd1478661a77a586
[ "Apache-2.0" ]
48
2020-05-20T09:55:37.000Z
2022-03-26T15:07:35.000Z
beakerx_tabledisplay/beakerx_tabledisplay/__init__.py
fcollonval/beakerx_tabledisplay
0c05d69b5d1431953b372621dd1478661a77a586
[ "Apache-2.0" ]
5
2020-07-14T03:39:12.000Z
2022-02-23T08:18:13.000Z
# Copyright 2019 TWO SIGMA OPEN SOURCE, 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 agre...
28.408163
74
0.718391
97c68d2483789610ca03ede57f5af6c81a4f8302
421
py
Python
projfd/appfd/models/activation.py
FirstDraftGIS/firstdraft
2f1f2124c9c75b1b1d380a9b8b16e2dfb99db873
[ "Apache-2.0" ]
10
2016-04-23T19:40:28.000Z
2021-09-27T19:06:45.000Z
projfd/appfd/models/activation.py
FirstDraftGIS/firstdraft
2f1f2124c9c75b1b1d380a9b8b16e2dfb99db873
[ "Apache-2.0" ]
19
2016-06-22T03:22:45.000Z
2018-02-09T04:55:34.000Z
projfd/appfd/models/activation.py
FirstDraftGIS/firstdraft
2f1f2124c9c75b1b1d380a9b8b16e2dfb99db873
[ "Apache-2.0" ]
1
2016-04-23T19:40:38.000Z
2016-04-23T19:40:38.000Z
#-*- coding: utf-8 -*- from .base import Base from django.contrib.gis.db.models import BooleanField, CASCADE, CharField, OneToOneField from django.contrib.auth.models import User class Activation(Base): expired = BooleanField(default=False) key = CharField(max_length=200) notified_success = BooleanField(de...
38.272727
88
0.760095
c973cfa4bafcb20c7a5b5b4bd31a093991c368fb
408
py
Python
data/scripts/templates/object/ship/shared_xwing_tier1.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/ship/shared_xwing_tier1.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/ship/shared_xwing_tier1.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Ship() result.template = "object/ship/shared_xwing_tier1.iff" result.attribute_template_id = -1 result.stfName("...
24
55
0.703431
182869af39d8470c966ae1f394a3a8635b793864
19,287
py
Python
chat/ui_client.py
Adhesh148/BaBbLe
e86cd19a25759728dd731201b62de239efa2fc3f
[ "MIT" ]
8
2020-09-23T10:30:46.000Z
2022-03-07T09:31:13.000Z
chat/ui_client.py
Ashwin-op/BaBbLe
e86cd19a25759728dd731201b62de239efa2fc3f
[ "MIT" ]
null
null
null
chat/ui_client.py
Ashwin-op/BaBbLe
e86cd19a25759728dd731201b62de239efa2fc3f
[ "MIT" ]
2
2020-11-30T04:25:15.000Z
2021-09-28T04:41:15.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'chat.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. import sys import os import time i...
45.168618
88
0.679266
aa8e4092627663702e9df52551c5189436a97823
1,209
py
Python
main.py
amanda/randcamp
1e2a46c2bbae9456a595b796d7e5730661d24c91
[ "MIT" ]
null
null
null
main.py
amanda/randcamp
1e2a46c2bbae9456a595b796d7e5730661d24c91
[ "MIT" ]
null
null
null
main.py
amanda/randcamp
1e2a46c2bbae9456a595b796d7e5730661d24c91
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import json def get_page_html(num): url = f"https://bandcamp.com/artist_index?page={num}" html = requests.get(url).text return html def get_artist_info(html): soup = BeautifulSoup(html, 'html.parser') names = soup.find_all(class_="item") return [...
25.1875
75
0.630273
ec5a9c34b785575c1af4f6cd07336300b34a698c
2,730
py
Python
scheduler/setup.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
1
2019-06-14T10:11:59.000Z
2019-06-14T10:11:59.000Z
scheduler/setup.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
null
null
null
scheduler/setup.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
1
2020-04-14T10:47:41.000Z
2020-04-14T10:47:41.000Z
# Copyright 2018 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, ...
32.117647
85
0.689377
f809ebecd2f77cc3042cc11c130c8b897be36a6f
1,020
py
Python
V2RaycSpider1225/src/BusinessLogicLayer/plugins/accelerator/vulcan_ash.py
pgymail00/V2RayCloudSpider
d2222ed1374817f328dc378acb8dca21b06cc073
[ "MIT" ]
1
2021-12-10T14:28:14.000Z
2021-12-10T14:28:14.000Z
V2RaycSpider1225/src/BusinessLogicLayer/plugins/accelerator/vulcan_ash.py
codemonkeyBeginner/V2RayCloudSpider
9cb8acc0bab3c81168256e9498f5a6a926396646
[ "MIT" ]
null
null
null
V2RaycSpider1225/src/BusinessLogicLayer/plugins/accelerator/vulcan_ash.py
codemonkeyBeginner/V2RayCloudSpider
9cb8acc0bab3c81168256e9498f5a6a926396646
[ "MIT" ]
1
2021-11-30T09:12:49.000Z
2021-11-30T09:12:49.000Z
""" - 核心功能: - “解压”与实例化采集器管理模块 - 加速器性能释放 """ from BusinessCentralLayer.setting import logger, DEFAULT_POWER from .core import CoroutineSpeedup class ShuntRelease(CoroutineSpeedup): """accelerator性能释放关口""" def __init__( self, work_queue=None, task_docker: list = None, power: int = DEFAULT_POWER...
26.153846
83
0.673529
ff81c9fbb03fb71c1e76f433d7db8c82cb55aac3
4,309
py
Python
function/python/brightics/function/statistics/cross_table.py
parkjh80/studio
6d8d8384272e5e1b2838b12e5557272a19408e89
[ "Apache-2.0" ]
1
2020-02-08T10:56:29.000Z
2020-02-08T10:56:29.000Z
function/python/brightics/function/statistics/cross_table.py
data-weirdo/studio
48852c4f097f773ce3d408b59f79fda2e2d60470
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/statistics/cross_table.py
data-weirdo/studio
48852c4f097f773ce3d408b59f79fda2e2d60470
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Samsung SDS 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 ...
40.271028
138
0.656301
6d03d1a742ef0150dff47550dd4df73aa6816049
2,499
py
Python
app.py
Ethan1498/Custom-URL-Shortener
405a23db5b2cb6900ab92a1b03998529c4173b50
[ "MIT" ]
null
null
null
app.py
Ethan1498/Custom-URL-Shortener
405a23db5b2cb6900ab92a1b03998529c4173b50
[ "MIT" ]
null
null
null
app.py
Ethan1498/Custom-URL-Shortener
405a23db5b2cb6900ab92a1b03998529c4173b50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Flask from flask import request from flask import render_template from flask import redirect import sqlite3 as sql import requests app = Flask(__name__) @app.route('/',methods=['GET']) def hello_world(): return render_template('index.html') @app.route('/s',methods=['G...
27.766667
111
0.590236
3b84b68332c5ab4e64a14548d8329ad4ddddbf72
3,432
py
Python
explorer/services/worker/manager.py
cryptassic/dex-explorer
1588011db1666b8f1ffb6499d909e4eff3f6b09b
[ "MIT" ]
null
null
null
explorer/services/worker/manager.py
cryptassic/dex-explorer
1588011db1666b8f1ffb6499d909e4eff3f6b09b
[ "MIT" ]
null
null
null
explorer/services/worker/manager.py
cryptassic/dex-explorer
1588011db1666b8f1ffb6499d909e4eff3f6b09b
[ "MIT" ]
null
null
null
import time import threading import time from multiprocessing import Process, Queue from explorer.utils.misc_helpers import get_sliced_range from explorer.utils import CustomLogger from explorer.models import WorkerTask from explorer.services import Worker class WorkerManager(): def __init__(self, callback_fun...
33.320388
132
0.629662
4ec023f00ce83ba799cd5221b2d97a4a868f7fc4
14,240
py
Python
src/lib/models/networks/msra_resnet_fpn.py
evitself/CenterNet
db3714397c776f3f84c6ab9b61a47160f78462f5
[ "MIT" ]
null
null
null
src/lib/models/networks/msra_resnet_fpn.py
evitself/CenterNet
db3714397c776f3f84c6ab9b61a47160f78462f5
[ "MIT" ]
null
null
null
src/lib/models/networks/msra_resnet_fpn.py
evitself/CenterNet
db3714397c776f3f84c6ab9b61a47160f78462f5
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Xingyi Zhou # ------------------------------------------------------------------------------ from __future__ import a...
38.27957
100
0.56889
1069c773ae75dccc1862c813261c20a19dfca163
512
py
Python
src/hypermodern_python_tutorial/console.py
arwinlashawn/hypermodern-python-tutorial
94e266aab271d0da64d222ba8821766eca34578e
[ "MIT" ]
null
null
null
src/hypermodern_python_tutorial/console.py
arwinlashawn/hypermodern-python-tutorial
94e266aab271d0da64d222ba8821766eca34578e
[ "MIT" ]
null
null
null
src/hypermodern_python_tutorial/console.py
arwinlashawn/hypermodern-python-tutorial
94e266aab271d0da64d222ba8821766eca34578e
[ "MIT" ]
null
null
null
import textwrap import click import requests from . import __version__ API_URL = "https://en.wikipedia.org/api/rest_v1/page/random/summary" @click.command() @click.version_option(version=__version__) def main(): """The hypermodern Python project.""" with requests.get(API_URL) as response: response...
17.655172
68
0.683594
6849578bbb9ac0aaf07f530ccd81bf3d876a1050
6,940
py
Python
tests/components/mfi/test_sensor.py
Hypfer/home-assistant
204ca3f3a6e24ef11ece2e2ee490a8d77553c147
[ "Apache-2.0" ]
1
2019-12-06T08:49:19.000Z
2019-12-06T08:49:19.000Z
tests/components/mfi/test_sensor.py
FuqiangSong/home-assistant
d5419b77f9c245e5af006143eb55ae4dda3f174e
[ "Apache-2.0" ]
2
2021-02-08T20:39:43.000Z
2021-09-08T01:36:57.000Z
tests/components/mfi/test_sensor.py
FuqiangSong/home-assistant
d5419b77f9c245e5af006143eb55ae4dda3f174e
[ "Apache-2.0" ]
null
null
null
"""The tests for the mFi sensor platform.""" import unittest import unittest.mock as mock import requests from mficlient.client import FailedToLogin from homeassistant.setup import setup_component import homeassistant.components.sensor as sensor import homeassistant.components.mfi.sensor as mfi from homeassistant.con...
37.513514
88
0.646974
09758795cd0dbf301f57a6b93a4722caa3245e0c
11,493
py
Python
010train_model_10_preprocess.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
010train_model_10_preprocess.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
010train_model_10_preprocess.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import pandas as pd import numpy as np import gensim from sklearn.svm import SVC from sklearn import preprocessing from sklearn.model_selection import KFold from sklearn.linear_model import LogisticRegression from sklearn.ensemble import RandomForestClassifier from sklearn import metrics import xgboost i...
38.567114
157
0.541982
ee81a941b2355a6c775d591c3a7c0df2d0a4cac8
5,442
py
Python
xeno/model.py
sourcery-ai-bot/xeno
df7e9448b681024fae7a899bb2060b9bcda84ecf
[ "MIT" ]
null
null
null
xeno/model.py
sourcery-ai-bot/xeno
df7e9448b681024fae7a899bb2060b9bcda84ecf
[ "MIT" ]
null
null
null
xeno/model.py
sourcery-ai-bot/xeno
df7e9448b681024fae7a899bb2060b9bcda84ecf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Linear stack of layers. """ import sys import numpy as np from xeno.utils.random import get_rng from .layers import Layer from .optimizers import SGD from . import optimizers from xeno.utils.random import get_dtype from .objectives import SoftmaxCategoricalCrossEntropy from . import obj...
34.443038
108
0.557883
0be4a25a2f23dd134f5ee848dd00ece8e15d4599
9,949
py
Python
tests/test_fellowships.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
null
null
null
tests/test_fellowships.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
null
null
null
tests/test_fellowships.py
oleksost/continuum
682d66540bfbfa171ac73281ed2989f9338e88bf
[ "MIT" ]
null
null
null
import os import copy import pytest import numpy as np from torch.utils.data import DataLoader import torchvision.transforms as trsf from continuum.tasks import TaskType from continuum.scenarios import ClassIncremental, InstanceIncremental, OnlineFellowship from continuum.datasets import ( CIFAR10, CIFAR100, KMNI...
32.619672
110
0.699266
566c645e15c57d77c5cad22956ee9d60863d8e37
16,509
py
Python
neutron/plugins/vmware/nsxlib/switch.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
10
2015-09-22T10:22:53.000Z
2016-02-25T06:12:05.000Z
neutron/plugins/vmware/nsxlib/switch.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
12
2015-01-08T18:30:45.000Z
2015-03-13T21:04:15.000Z
neutron/plugins/vmware/nsxlib/switch.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
7
2015-02-05T10:23:52.000Z
2019-05-18T17:11:19.000Z
# Copyright 2014 VMware, Inc. # 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 a...
41.37594
79
0.617057
0a4820c69ba70ad4aed96303c064eca8f15d9111
482
py
Python
testing/example_scripts/dataclasses/test_compare_two_different_dataclasses.py
markshao/pytest
611b579d21f7e62b4c8ed54ab70fbfee7c6f5f64
[ "MIT" ]
9,225
2015-06-15T21:56:14.000Z
2022-03-31T20:47:38.000Z
testing/example_scripts/dataclasses/test_compare_two_different_dataclasses.py
markshao/pytest
611b579d21f7e62b4c8ed54ab70fbfee7c6f5f64
[ "MIT" ]
7,794
2015-06-15T21:06:34.000Z
2022-03-31T10:56:54.000Z
testing/example_scripts/dataclasses/test_compare_two_different_dataclasses.py
markshao/pytest
611b579d21f7e62b4c8ed54ab70fbfee7c6f5f64
[ "MIT" ]
2,598
2015-06-15T21:42:39.000Z
2022-03-29T13:48:22.000Z
from dataclasses import dataclass from dataclasses import field def test_comparing_two_different_data_classes() -> None: @dataclass class SimpleDataObjectOne: field_a: int = field() field_b: str = field() @dataclass class SimpleDataObjectTwo: field_a: int = field() fie...
24.1
60
0.670124
7237fc5f21c6128c50c86b45f420896704a67e19
365
py
Python
bot_client/utils/constants.py
yankai14/AntiFish
2218d1403a1f9d82a64fd6c0d336a78d12a272bd
[ "MIT" ]
1
2022-02-27T12:34:36.000Z
2022-02-27T12:34:36.000Z
bot_client/utils/constants.py
yankai14/AntiFish
2218d1403a1f9d82a64fd6c0d336a78d12a272bd
[ "MIT" ]
null
null
null
bot_client/utils/constants.py
yankai14/AntiFish
2218d1403a1f9d82a64fd6c0d336a78d12a272bd
[ "MIT" ]
null
null
null
from enum import Enum class STATE(Enum): # Conversation states FEATURE_SELECTION = 1 PHISHING_CHECK = 10 PHISING_GET_LINK = 11 REPORT = 20 REPORT_GET_LINK = 21 ABOUT = 30 # Meta states SHOWING = 1000 BACK = 1001 STOPPING = 1002 START_OVER = 1004 END = -1. cl...
13.035714
29
0.621918
6deff95f8012cf460c6b296f126e2b7ea3f9b092
2,307
py
Python
res_viz.py
Fork-for-Modify/CSENDistance
6f6d1b87ea776389d543c7873422e44b35a3f0af
[ "MIT" ]
null
null
null
res_viz.py
Fork-for-Modify/CSENDistance
6f6d1b87ea776389d543c7873422e44b35a3f0af
[ "MIT" ]
null
null
null
res_viz.py
Fork-for-Modify/CSENDistance
6f6d1b87ea776389d543c7873422e44b35a3f0af
[ "MIT" ]
null
null
null
# visualization of the distance estimation results import os from os.path import dirname as opd import pandas as pd from numpy.random import randint as np_randint import cv2 import scipy.io as sio import matplotlib.pyplot as plt # %% params data_dir = './data/orig-data/test-data/parking-redgray/' csv_path = data_dir +...
28.134146
120
0.658431
7c54a827cf98f5f3f2974230eef0cd3cad380912
658
py
Python
contracts/tests/test_push.py
drLis/AnchorFintechLedger
e3f6e55a79c75f2385dc2a7cf753e01514464616
[ "MIT" ]
null
null
null
contracts/tests/test_push.py
drLis/AnchorFintechLedger
e3f6e55a79c75f2385dc2a7cf753e01514464616
[ "MIT" ]
null
null
null
contracts/tests/test_push.py
drLis/AnchorFintechLedger
e3f6e55a79c75f2385dc2a7cf753e01514464616
[ "MIT" ]
null
null
null
from brownie import * import pytest def test_push(accounts, test): def transfer(sender, receiver, id): sender_hash = test.computeSenderHash(accounts[0], id) receiver_hash = test.computeReceiverHash(id, accounts[1]) test.push(sender_hash, receiver_hash) def check_transfer(sender, receiver, id): sender_hash...
34.631579
59
0.756839
96040105712945c9c70cc483ea0cbff3e28de508
3,108
py
Python
pandas/tests/arrays/interval/test_interval.py
YuechengWu/pandas
7f753892eb6b29aaa62176cb9f00ad84c092c09a
[ "BSD-3-Clause" ]
1
2018-12-19T09:09:37.000Z
2018-12-19T09:09:37.000Z
pandas/tests/arrays/interval/test_interval.py
YuechengWu/pandas
7f753892eb6b29aaa62176cb9f00ad84c092c09a
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/arrays/interval/test_interval.py
YuechengWu/pandas
7f753892eb6b29aaa62176cb9f00ad84c092c09a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pytest import pandas as pd from pandas import Index, Interval, IntervalIndex, date_range, timedelta_range from pandas.core.arrays import IntervalArray import pandas.util.testing as tm @pytest.fixture(params=[ (Index([0, 2, 4]), Index([1, 3, 5])), (Index([0., ...
36.564706
78
0.646396
912d7400df20fac4aba2c9229a63bb6358e3a7b4
1,379
py
Python
scripts/utils_specs/download_spec_csv_from_gsheet.py
rathp/time_series_prediction
c776f988c633868c7106041ac91ab56ca9fd7968
[ "MIT" ]
1
2020-09-17T20:59:46.000Z
2020-09-17T20:59:46.000Z
scripts/utils_specs/download_spec_csv_from_gsheet.py
rathp/time_series_prediction
c776f988c633868c7106041ac91ab56ca9fd7968
[ "MIT" ]
null
null
null
scripts/utils_specs/download_spec_csv_from_gsheet.py
rathp/time_series_prediction
c776f988c633868c7106041ac91ab56ca9fd7968
[ "MIT" ]
null
null
null
import argparse import requests import json import os if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("--config_json_path", type=str) parser.add_argument("--output_dir", type=str) args = parser.parse_args() with open(args.config_json_path, 'r') as f: gshee...
36.289474
98
0.60116
a3320b20930cf2228206af860debb3962e5ad12f
630
py
Python
cloudmesh/foo/command/foo.py
cloudmesh/cloudmesh-bar
5ead95e8502e0ee761baa3ddce74680e919237ea
[ "Apache-2.0" ]
null
null
null
cloudmesh/foo/command/foo.py
cloudmesh/cloudmesh-bar
5ead95e8502e0ee761baa3ddce74680e919237ea
[ "Apache-2.0" ]
null
null
null
cloudmesh/foo/command/foo.py
cloudmesh/cloudmesh-bar
5ead95e8502e0ee761baa3ddce74680e919237ea
[ "Apache-2.0" ]
null
null
null
from cloudmesh.shell.command import command from cloudmesh.shell.command import PluginCommand from cloudmesh.common.debug import VERBOSE from cloudmesh.shell.command import map_parameters class FooCommand(PluginCommand): # noinspection PyUnusedLocal @command def do_foo(self, args, arguments): """ ...
21.724138
50
0.584127
6cabf0b0b9c676b7c8442047d674d783bd057768
551
py
Python
tests/test_value.py
virtuehive/traychain
8e3d869ec9354b7787452baf4fcb7d6f0a06d824
[ "Apache-2.0" ]
null
null
null
tests/test_value.py
virtuehive/traychain
8e3d869ec9354b7787452baf4fcb7d6f0a06d824
[ "Apache-2.0" ]
null
null
null
tests/test_value.py
virtuehive/traychain
8e3d869ec9354b7787452baf4fcb7d6f0a06d824
[ "Apache-2.0" ]
null
null
null
import traychain as tc import unittest from testutils import start_host ENDPOINT = "/transact/hypothetical" class NumberTests(unittest.TestCase): @classmethod def setUpClass(cls): cls.host = start_host("test_values") def testDivideByZero(self): cxt = tc.Context() cxt.result = t...
19.678571
85
0.667877
4918eba2d1eea76a6a27c91d0ee87580710d172e
874
py
Python
Chapter10/programs/prog05.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
17
2020-08-08T20:47:29.000Z
2022-03-12T03:08:21.000Z
Chapter10/programs/prog05.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
1
2020-07-27T09:57:19.000Z
2020-08-18T10:57:31.000Z
Chapter10/programs/prog05.py
gits00/raspberry-pi-computer-vision-programming
dfd5588c5d3e410945f862427c0f987536b04d9f
[ "MIT" ]
15
2020-06-30T01:52:06.000Z
2022-02-08T08:28:48.000Z
import cv2 import matplotlib.pyplot as plt img = cv2.imread('/home/pi/book/dataset/4.2.03.tiff', 1) img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) R, G, B = cv2.split(img) output1_R = cv2.equalizeHist(R) output1_G = cv2.equalizeHist(G) output1_B = cv2.equalizeHist(B) output1 = cv2.merge((output1_R, o...
28.193548
56
0.606407
e428e30c9f39fab1d2cdbe5d303f9da318f50e82
18,870
py
Python
seaborn/utils.py
romanwerpachowski/seaborn
6b7fa4270294e68d79f8ed561ce8eab2b6dbc9f5
[ "BSD-3-Clause" ]
2
2020-07-24T04:45:51.000Z
2020-09-04T11:10:27.000Z
seaborn/utils.py
romanwerpachowski/seaborn
6b7fa4270294e68d79f8ed561ce8eab2b6dbc9f5
[ "BSD-3-Clause" ]
null
null
null
seaborn/utils.py
romanwerpachowski/seaborn
6b7fa4270294e68d79f8ed561ce8eab2b6dbc9f5
[ "BSD-3-Clause" ]
2
2020-11-02T18:25:54.000Z
2021-07-23T16:15:34.000Z
"""Utility functions, mostly for internal use.""" import os import colorsys import warnings from urllib.request import urlopen, urlretrieve from http.client import HTTPException import numpy as np from scipy import stats import pandas as pd import matplotlib as mpl import matplotlib.colors as mplcol import matplotlib....
29.12037
79
0.605034
cc870662a4e16e7d3e3f1453d9cebbe9e102cb34
5,201
py
Python
kubernetes/client/api/core_api.py
sthagen/kubernetes-client-python
3a183048d7d568ba5ea418bcfb8f61713908d3ea
[ "Apache-2.0" ]
null
null
null
kubernetes/client/api/core_api.py
sthagen/kubernetes-client-python
3a183048d7d568ba5ea418bcfb8f61713908d3ea
[ "Apache-2.0" ]
3
2021-11-30T03:11:13.000Z
2022-02-09T03:39:41.000Z
kubernetes/client/api/core_api.py
sthagen/kubernetes-client-python
3a183048d7d568ba5ea418bcfb8f61713908d3ea
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.24 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import r...
36.370629
124
0.59777
1829f2310b132819505a34d44774b0ec98f902d2
9,032
py
Python
admin_interface/migrations/0006_bytes_to_str.py
Mustafa-Abu-Ghazy/django-admin-interface
a04878a1b3220e9e33e15f06cc2b7d075e61542e
[ "MIT" ]
null
null
null
admin_interface/migrations/0006_bytes_to_str.py
Mustafa-Abu-Ghazy/django-admin-interface
a04878a1b3220e9e33e15f06cc2b7d075e61542e
[ "MIT" ]
null
null
null
admin_interface/migrations/0006_bytes_to_str.py
Mustafa-Abu-Ghazy/django-admin-interface
a04878a1b3220e9e33e15f06cc2b7d075e61542e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import colorfield.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("admin_interface", "0005_add_recent_actions_visible"), ] operations = [ migrations.AlterField( ...
32.489209
84
0.481178
f9a84236d09bb8b64cea330c2a38530fdf6003c0
9,547
py
Python
models/backbone.py
GUOShuxuan/detr
80d45bf5df940ac6457e7cc9e3ccd6441518a903
[ "Apache-2.0" ]
null
null
null
models/backbone.py
GUOShuxuan/detr
80d45bf5df940ac6457e7cc9e3ccd6441518a903
[ "Apache-2.0" ]
null
null
null
models/backbone.py
GUOShuxuan/detr
80d45bf5df940ac6457e7cc9e3ccd6441518a903
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Backbone modules. """ from collections import OrderedDict import os import torch import torch.nn.functional as F import torchvision from torch import nn from torchvision.models._utils import IntermediateLayerGetter from typing import Dict, List...
41.689956
171
0.62648
ff09d56f312c9b56f4723c7d2a1174d177cdb820
1,130
py
Python
misc/make-apidoc.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
1
2019-03-31T09:56:11.000Z
2019-03-31T09:56:11.000Z
misc/make-apidoc.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
null
null
null
misc/make-apidoc.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fi...
31.388889
83
0.718584
2c317d60277bbe6cee39f90c753471ec43c003e6
767
py
Python
bin/clean_log_files.py
davidcorne/markdown-editor
1d6f2684f06dd7f350c68588aa3a6b5d61e3fdd5
[ "MIT" ]
null
null
null
bin/clean_log_files.py
davidcorne/markdown-editor
1d6f2684f06dd7f350c68588aa3a6b5d61e3fdd5
[ "MIT" ]
null
null
null
bin/clean_log_files.py
davidcorne/markdown-editor
1d6f2684f06dd7f350c68588aa3a6b5d61e3fdd5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Written by: DGC # python imports import os import logging import sys # local imports sys.path.append(".") sys.path.append("..") import Log # immediately stop logging logging.getLogger("").handlers = [] #============================================================================== def main()...
25.566667
79
0.514993
cfa1c410b8f3ef96e7130028a58645925fc06877
2,170
py
Python
share/qt/extract_strings_qt.py
needycoin/needycore
05c0ce57f27d66c37696a9c5eb3c067120fd68b8
[ "MIT" ]
1
2020-06-04T14:05:04.000Z
2020-06-04T14:05:04.000Z
share/qt/extract_strings_qt.py
needycoin/needycore
05c0ce57f27d66c37696a9c5eb3c067120fd68b8
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
needycoin/needycore
05c0ce57f27d66c37696a9c5eb3c067120fd68b8
[ "MIT" ]
1
2020-07-13T17:00:15.000Z
2020-07-13T17:00:15.000Z
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked up by Qt linguist. ''' from __future__ import division,print_function,unicode_literals from subprocess import Popen, PIPE import glob import operator import os import sys OUT_CPP="qt/needycoinstrings....
25.833333
105
0.620737
0ec4578ba3bfa1049ec9f68f568213567bfe363d
857
py
Python
python/mxnet/ndarray/random.py
saurabh3949/mxnet
e25074a469b45f2cbde68e2a0c8963daea93b66b
[ "Apache-2.0" ]
4
2017-11-17T07:28:09.000Z
2019-07-23T06:24:16.000Z
python/mxnet/ndarray/random.py
saurabh3949/mxnet
e25074a469b45f2cbde68e2a0c8963daea93b66b
[ "Apache-2.0" ]
null
null
null
python/mxnet/ndarray/random.py
saurabh3949/mxnet
e25074a469b45f2cbde68e2a0c8963daea93b66b
[ "Apache-2.0" ]
2
2019-06-12T12:40:20.000Z
2020-11-03T14:33:14.000Z
# 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...
42.85
62
0.767795
5a95f4834a853c917ee718bb2b595b99ee0b52fa
1,892
py
Python
tests/l0_retr_test.py
colligant/wrfxpy
eacce15cad55820d9fb82dac9597021e00eb99f8
[ "MIT" ]
null
null
null
tests/l0_retr_test.py
colligant/wrfxpy
eacce15cad55820d9fb82dac9597021e00eb99f8
[ "MIT" ]
null
null
null
tests/l0_retr_test.py
colligant/wrfxpy
eacce15cad55820d9fb82dac9597021e00eb99f8
[ "MIT" ]
1
2020-11-23T23:40:43.000Z
2020-11-23T23:40:43.000Z
# # Dalton Burke # # Test correct functionality of the retrieval of level0 files import os import subprocess import datetime import shutil # Set root directory of wrfxpy as working directory script_path = os.path.realpath(__file__) # + 6 gets us to wrfxpy index = script_path.find('wrfxpy/tests') + 6 os.chdir(scrip...
31.016393
91
0.676533
d4e577c157a6a62760a3d078b1487ac6618cafc6
1,973
py
Python
_Spark_makeSource_DailyC.py
developeration/stock
d1df7e152fd1fc7b5f0446148276cd16928071bb
[ "MIT" ]
null
null
null
_Spark_makeSource_DailyC.py
developeration/stock
d1df7e152fd1fc7b5f0446148276cd16928071bb
[ "MIT" ]
null
null
null
_Spark_makeSource_DailyC.py
developeration/stock
d1df7e152fd1fc7b5f0446148276cd16928071bb
[ "MIT" ]
null
null
null
from pyspark import SparkConf from _Setting import StockSetting import tushare as ts import numpy as np import pandas as pd from pyspark.sql import SparkSession from pyspark.sql.types import StructType, StructField, StringType, DoubleType import json #spark-submit --master yarn --py-files ./_Setting.py --deploy-mode...
35.872727
107
0.657375
a5513efdfc8f1ec2e31f933562c3afc866a8dd62
1,180
py
Python
thrift/compiler/py/setup.py
jesboat/fbthrift
7d8e1dcec59024e526e6768d3d4a66f6c4abe5ac
[ "Apache-2.0" ]
5
2015-11-23T00:26:06.000Z
2020-07-31T12:56:08.000Z
thrift/compiler/py/setup.py
jesboat/fbthrift
7d8e1dcec59024e526e6768d3d4a66f6c4abe5ac
[ "Apache-2.0" ]
2
2017-05-10T15:43:34.000Z
2018-01-04T22:36:04.000Z
thrift/compiler/py/setup.py
jesboat/fbthrift
7d8e1dcec59024e526e6768d3d4a66f6c4abe5ac
[ "Apache-2.0" ]
7
2017-09-01T01:30:25.000Z
2019-02-04T17:46:24.000Z
#!/usr/bin/env python import sys import shutil try: from setuptools import setup, Extension except: from distutils.core import setup, Extension, Command def run_setup(): if sys.argv[1] == 'build': shutil.copy('.libs/frontend.so', 'frontend.so') setup(name = 'thrift-py', version = '0.9...
29.5
59
0.561864
b8d4e9959fb21ceacb071fcf88fad10f793901d6
2,529
py
Python
homework/Testing with Examples (Data Format)/impl-temperature04.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
11
2018-02-08T05:23:28.000Z
2021-05-24T13:23:56.000Z
homework/Testing with Examples (Data Format)/impl-temperature04.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
null
null
null
homework/Testing with Examples (Data Format)/impl-temperature04.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
2
2020-09-15T08:51:22.000Z
2021-01-26T12:07:18.000Z
import re class PhysicalInfo(object): def set_date(self, date): if not isinstance(date, str): raise ValueError("date should be a string") t = date.split("-") if len(t) != 3: raise ValueError("date should be in MM-DD-YYYY format") if re.search(r'[^0-9\-...
37.191176
82
0.546066
625ed42d7399daf03766381b06d76d1bdd3cc8e0
4,586
py
Python
src/CADRE/parameters.py
JustinSGray/OpenMDAO-CADRE
d8378a8a571179990531d8a409efe727cbdf2bb7
[ "Apache-2.0" ]
1
2021-07-11T19:15:22.000Z
2021-07-11T19:15:22.000Z
src/CADRE/parameters.py
JustinSGray/OpenMDAO-CADRE
d8378a8a571179990531d8a409efe727cbdf2bb7
[ "Apache-2.0" ]
null
null
null
src/CADRE/parameters.py
JustinSGray/OpenMDAO-CADRE
d8378a8a571179990531d8a409efe727cbdf2bb7
[ "Apache-2.0" ]
1
2015-11-19T18:18:01.000Z
2015-11-19T18:18:01.000Z
''' Bspline module for CADRE ''' from openmdao.main.api import Component from openmdao.lib.datatypes.api import Float, Array from MBI.MBI import MBI import numpy as np class BsplineParameters(Component): '''Creates a Bspline interpolant for several CADRE variables so that their time histories can be sh...
36.688
94
0.441343
5de86698fbf5992b1c327a7a3e37baafc94f4b70
5,901
py
Python
service/auth/api.py
alan-turing-institute/science-gateway-counter
f27c5ad426f1808a81e7a531ed56be341e7ef683
[ "MIT" ]
null
null
null
service/auth/api.py
alan-turing-institute/science-gateway-counter
f27c5ad426f1808a81e7a531ed56be341e7ef683
[ "MIT" ]
null
null
null
service/auth/api.py
alan-turing-institute/science-gateway-counter
f27c5ad426f1808a81e7a531ed56be341e7ef683
[ "MIT" ]
null
null
null
from flask_restful import Resource, abort from flask import request, make_response, jsonify from service.database import db, bcrypt from service.models import Organisation, User DEFAULT_ORGANISATION_CREDIT = 400 DEFAULT_USER_CREDIT = 50 DEFAULT_ORGANISATION_NAME = 'Industry User' class CounterApi(Resource): """ ...
35.548193
86
0.469581
d17534ec4b4437f3848a1542dc81f17c37278d56
2,289
py
Python
tools/rvm.py
fyviezhao/Anim-NeRF
65f59a7993093e6530c05c0c47842f6f7866d7c4
[ "MIT" ]
1
2022-03-28T09:30:22.000Z
2022-03-28T09:30:22.000Z
tools/rvm.py
fyviezhao/Anim-NeRF
65f59a7993093e6530c05c0c47842f6f7866d7c4
[ "MIT" ]
null
null
null
tools/rvm.py
fyviezhao/Anim-NeRF
65f59a7993093e6530c05c0c47842f6f7866d7c4
[ "MIT" ]
null
null
null
import os import cv2 import pickle import shutil import argparse import torch import numpy as np from tqdm import tqdm import sys sys.path.append('third_party/RobustVideoMatting') from model import MattingNetwork from inference_utils import ImageSequenceReader, ImageSequenceWriter device = torch.device('cuda:0') EXT...
35.765625
119
0.637396
676f0f3a778530b225a64817daa14cce75bcf4cf
317
py
Python
authentication/forms.py
RAGNAROSaa/-
833688d556ecc70570a9b464160271ace07380d9
[ "Apache-2.0" ]
5
2016-09-25T02:59:13.000Z
2018-07-18T05:20:58.000Z
authentication/forms.py
RAGNAROSaa/-
833688d556ecc70570a9b464160271ace07380d9
[ "Apache-2.0" ]
1
2016-12-01T01:11:53.000Z
2016-12-01T01:11:53.000Z
authentication/forms.py
RAGNAROSaa/-
833688d556ecc70570a9b464160271ace07380d9
[ "Apache-2.0" ]
6
2016-09-24T02:42:57.000Z
2016-11-10T13:35:13.000Z
from django import forms from django.contrib.auth import authenticate class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField() def login(self): user = authenticate(username=self.cleaned_data['username'], password=self.cleaned_data['password']) return user
26.416667
107
0.722397
67d74cb95423d800e53a6caf33db67e848c0e12a
6,229
py
Python
w3testrunner/third_party/talos/ffprocess_linux.py
formido/browsercontrol
a4259cf239cdfe439e37ac13c2b7b4329c42198b
[ "BSD-3-Clause" ]
null
null
null
w3testrunner/third_party/talos/ffprocess_linux.py
formido/browsercontrol
a4259cf239cdfe439e37ac13c2b7b4329c42198b
[ "BSD-3-Clause" ]
null
null
null
w3testrunner/third_party/talos/ffprocess_linux.py
formido/browsercontrol
a4259cf239cdfe439e37ac13c2b7b4329c42198b
[ "BSD-3-Clause" ]
null
null
null
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
32.108247
81
0.69353
c7016dcb800e6d01ef6ec50b9aca62be58228d0b
1,628
py
Python
PythonLib/solvers/uflp.py
xNok/OR_NETWORK-AND-DISCRETE-LOCATION
0941e09a5a09322fe0aceca631c44f3288a74fe2
[ "MIT" ]
null
null
null
PythonLib/solvers/uflp.py
xNok/OR_NETWORK-AND-DISCRETE-LOCATION
0941e09a5a09322fe0aceca631c44f3288a74fe2
[ "MIT" ]
null
null
null
PythonLib/solvers/uflp.py
xNok/OR_NETWORK-AND-DISCRETE-LOCATION
0941e09a5a09322fe0aceca631c44f3288a74fe2
[ "MIT" ]
null
null
null
from docplex.mp.model import Model def uflp(I, J, f, c, name='UFLP'): """ Inputs: I = Set of customers (1d-array) J = Set of Facilities (1d-array) f = Fixed cost associated to each facility (1d-array) c = Cost of connecting element of I with J (2d-arra) Ouputs: m = c...
31.921569
83
0.512285
86ec11d4a486f6d91bee29476d2b3777a70234a6
5,856
py
Python
dataset/voc.py
francescodisalvo05/MiB
01faa3e62b20c5629da0e4b5bed902ea76a6aaa3
[ "MIT" ]
null
null
null
dataset/voc.py
francescodisalvo05/MiB
01faa3e62b20c5629da0e4b5bed902ea76a6aaa3
[ "MIT" ]
null
null
null
dataset/voc.py
francescodisalvo05/MiB
01faa3e62b20c5629da0e4b5bed902ea76a6aaa3
[ "MIT" ]
null
null
null
import os import random import torch.utils.data as data from torch import distributed import torchvision as tv import numpy as np from .utils import Subset, filter_images, group_images from PIL import Image classes = { 0: 'background', 1: 'aeroplane', 2: 'bicycle', 3: 'bird', 4: 'boat', 5: 'bo...
32.353591
116
0.569672
e4890933ee2a8d1b92ede30172b2815b6173624f
3,342
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_get_words_on_document_line_async.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
2
2021-09-07T18:30:33.000Z
2021-11-23T02:50:57.000Z
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_get_words_on_document_line_async.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
4
2021-10-06T16:39:52.000Z
2021-11-18T18:33:37.000Z
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_get_words_on_document_line_async.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
32.764706
136
0.585877
93e48f7d9df603bafdddc5903766549487355f3c
9,845
py
Python
powerdns_client/models/cryptokey.py
nrfta/python-powerdns-client
57dd0460995a5407c6f5c963553b4df0f4859667
[ "MIT" ]
1
2021-04-05T21:37:17.000Z
2021-04-05T21:37:17.000Z
powerdns_client/models/cryptokey.py
nrfta/python-powerdns-client
57dd0460995a5407c6f5c963553b4df0f4859667
[ "MIT" ]
null
null
null
powerdns_client/models/cryptokey.py
nrfta/python-powerdns-client
57dd0460995a5407c6f5c963553b4df0f4859667
[ "MIT" ]
1
2021-12-18T04:33:58.000Z
2021-12-18T04:33:58.000Z
# coding: utf-8 """ PowerDNS Authoritative HTTP API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.0.13 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # n...
26.323529
166
0.549518
b9f07a32840b99c95fe43dfb7009e598c69d89e4
44,774
py
Python
salt/modules/schedule.py
eiginn/salt
fae5bc757ad0f1716483ce7ae180b451545c2058
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/modules/schedule.py
eiginn/salt
fae5bc757ad0f1716483ce7ae180b451545c2058
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/modules/schedule.py
eiginn/salt
fae5bc757ad0f1716483ce7ae180b451545c2058
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Module for managing the Salt schedule on a minion .. versionadded:: 2014.7.0 """ import copy as pycopy import datetime import logging import os import salt.utils.event import salt.utils.files import salt.utils.odict import salt.utils.yaml try: import dateutil.parser as dateutil_parser _WHEN_SUPPORTED...
32.397974
101
0.51521
0d73ef7c7561d1d7cf7848df5799ad6e9ef34323
4,590
py
Python
rest_framework_mongoengine/tests/test_serializers.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
rest_framework_mongoengine/tests/test_serializers.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
rest_framework_mongoengine/tests/test_serializers.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
from datetime import datetime import mongoengine as me from unittest import TestCase from bson import objectid from rest_framework_mongoengine.serializers import MongoEngineModelSerializer from rest_framework import serializers as s class Job(me.Document): title = me.StringField() status = me.StringField(c...
30
88
0.641394
833dd20b5a3ca24a89bcf9ea536cbba27fe9e76a
1,431
py
Python
tensorflow/contrib/quantization/__init__.py
jdehotin/TensorFlow
a6c5f8e4e013e54fed8dfcf49fb6de365f018022
[ "Apache-2.0" ]
680
2016-12-03T14:38:28.000Z
2022-02-16T04:06:45.000Z
tensorflow/contrib/quantization/__init__.py
alainrk/tensorflow
314d9cd9b607460f8bfea80fc828b1521ca18443
[ "Apache-2.0" ]
38
2016-11-17T08:43:51.000Z
2019-11-12T12:27:04.000Z
tensorflow/contrib/quantization/__init__.py
alainrk/tensorflow
314d9cd9b607460f8bfea80fc828b1521ca18443
[ "Apache-2.0" ]
250
2016-12-05T10:37:17.000Z
2022-03-18T21:26:55.000Z
# Copyright 2015 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...
46.16129
88
0.773585
40f8edfcdd18eeef63a20b8590172b5d186fbf8c
27,514
py
Python
tensorflow/python/ops/map_fn.py
Mithilesh1609/tensorflow
63f70b5611d7f50512ea26295d26016c2704901b
[ "Apache-2.0" ]
8
2020-07-29T18:50:45.000Z
2021-07-25T07:06:43.000Z
tensorflow/python/ops/map_fn.py
3ecurityy/tensorflow
f8c0e68a8aa5d575a19129ec67c9ed6262652082
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/ops/map_fn.py
3ecurityy/tensorflow
f8c0e68a8aa5d575a19129ec67c9ed6262652082
[ "Apache-2.0" ]
11
2020-05-31T13:14:56.000Z
2021-12-14T04:39:25.000Z
# Copyright 2018 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...
42.199387
104
0.680054
30c69c20cd3deafad62d472339b84377d8396a95
9,798
py
Python
tests/wallet/test_wallet_store.py
Stor-Network/stor-blockchain
3c3cd1a3b99592e88160107ca5b81afc0937b992
[ "Apache-2.0" ]
19
2021-06-29T20:06:09.000Z
2022-02-09T04:33:00.000Z
tests/wallet/test_wallet_store.py
Stor-Network/stor-blockchain
3c3cd1a3b99592e88160107ca5b81afc0937b992
[ "Apache-2.0" ]
8
2021-07-04T03:21:51.000Z
2021-12-27T07:56:09.000Z
tests/wallet/test_wallet_store.py
Stor-Network/stor-blockchain
3c3cd1a3b99592e88160107ca5b81afc0937b992
[ "Apache-2.0" ]
6
2021-10-04T17:15:30.000Z
2022-03-15T08:40:01.000Z
# TODO: write tests for other stores # import asyncio # from pathlib import Path # from secrets import token_bytes # import aiosqlite # import pytest # from stor.util.ints import uint32, uint64, uint128 # from stor.wallet.wallet_coin_record import WalletCoinRecord # from stor.wallet.util.wallet_types import WalletType ...
42.415584
115
0.554807
910575af3ef295d329853394944fed12da2e13d0
868
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_45/rule_36.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_45/rule_36.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_45/rule_36.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation # {"feature": "Occupation", "instances": 23, "metric_value": 0.8281, "depth": 1} if obj[2]<=5: # {"feature": "Coupon", "instances": 12, "metric_value": 0.4138, "depth": 2} if obj[0]>0: return 'True' elif obj[0]<=0: # {"feature":...
31
81
0.587558
65e3f3af76395ed6257d4a10ffa5a758f13fb622
119
py
Python
PIP/Minor Assignment 3/A3Q9.py
ankitrajbiswal/SEM_5
db716e242e77149a4091e0e564356ddc724aeff0
[ "Apache-2.0" ]
10
2021-04-24T11:46:48.000Z
2022-01-17T05:14:37.000Z
PIP/Minor Assignment 3/A3Q9.py
ankitrajbiswal/SEM_5
db716e242e77149a4091e0e564356ddc724aeff0
[ "Apache-2.0" ]
2
2021-06-28T11:51:50.000Z
2021-11-01T08:21:53.000Z
PIP/Minor Assignment 3/A3Q9.py
ankitrajbiswal/SEM_5
db716e242e77149a4091e0e564356ddc724aeff0
[ "Apache-2.0" ]
16
2021-04-24T11:46:58.000Z
2022-03-02T05:08:19.000Z
def printSum(n): s=0 for i in n: s=s+int(i) print (s) n=input("Enter the number") printSum(n)
17
28
0.521008
bca0161f142480bcbc52dd96803edecc387e8c64
8,711
py
Python
neurom/check/tests/test_runner.py
mgeplf/NeuroM
e21c01979de3db643c309b6bf2fe0b5dc9363c3a
[ "BSD-3-Clause" ]
null
null
null
neurom/check/tests/test_runner.py
mgeplf/NeuroM
e21c01979de3db643c309b6bf2fe0b5dc9363c3a
[ "BSD-3-Clause" ]
3
2019-11-15T05:22:14.000Z
2019-12-09T01:56:24.000Z
neurom/check/tests/test_runner.py
NeuroDataDesign/NeuroM
61a7b5de0c3bf3c07d6eb3270c28d21be6ea7865
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
31.561594
86
0.601538
34abaf2123b0874dd559738c633638d6ca60ad3c
4,614
py
Python
tests/test_blueprints_container.py
celery/bootsteps
f2e788edb182d54037c5f2b9fad28dc81f701f8e
[ "BSD-3-Clause" ]
null
null
null
tests/test_blueprints_container.py
celery/bootsteps
f2e788edb182d54037c5f2b9fad28dc81f701f8e
[ "BSD-3-Clause" ]
1
2019-10-24T16:46:50.000Z
2019-10-24T16:46:50.000Z
tests/test_blueprints_container.py
celery/bootsteps
f2e788edb182d54037c5f2b9fad28dc81f701f8e
[ "BSD-3-Clause" ]
1
2019-09-29T03:36:17.000Z
2019-09-29T03:36:17.000Z
from unittest.mock import Mock import pytest from eliot.testing import LoggedAction from bootsteps import BlueprintContainer, Step from tests.assertions import ( assert_log_message_field_equals, assert_logged_action_failed, assert_logged_action_succeeded, ) from tests.mocks import TrioCoroutineMock, creat...
33.926471
102
0.747291
475872cef6090c7295bdf050dcb74b11587a58f1
9,773
py
Python
runtime/python/Lib/unittest/test/test_break.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
Thonny/Lib/unittest/test/test_break.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
30
2019-01-04T10:14:56.000Z
2020-10-12T14:00:31.000Z
Thonny/Lib/unittest/test/test_break.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
53
2019-03-12T16:50:21.000Z
2022-03-15T23:16:18.000Z
import gc import io import os import sys import signal import weakref import unittest @unittest.skipUnless(hasattr(os, 'kill'), "Test requires os.kill") @unittest.skipIf(sys.platform =="win32", "Test cannot run on Windows") class TestBreak(unittest.TestCase): int_handler = None def setUp(self...
34.779359
80
0.597769
e958e64f6b51e6a1aeab18669eaf6df61c48347f
8,273
py
Python
conary/build/derive.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
43
2015-03-31T01:37:10.000Z
2021-11-14T16:26:48.000Z
conary/build/derive.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-06-10T16:39:41.000Z
2020-01-27T16:35:01.000Z
conary/build/derive.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-04-07T08:12:37.000Z
2020-01-26T09:54:18.000Z
# # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
38.658879
80
0.60365
b8a65323c4d835428a8c5ea7deb999b86ba3460c
3,755
py
Python
plugins/quetz_conda_suggest/tests/test_quetz_conda_suggest.py
maresb/quetz
55313ca9c2ae04577d23a1dddb38c045b4a056f4
[ "BSD-3-Clause" ]
108
2020-09-16T16:15:01.000Z
2022-03-29T02:49:31.000Z
plugins/quetz_conda_suggest/tests/test_quetz_conda_suggest.py
maresb/quetz
55313ca9c2ae04577d23a1dddb38c045b4a056f4
[ "BSD-3-Clause" ]
317
2020-09-07T18:37:33.000Z
2022-03-25T13:10:41.000Z
plugins/quetz_conda_suggest/tests/test_quetz_conda_suggest.py
LaudateCorpus1/quetz
339018ee3c35ae6700bea611d16a9924a33a0606
[ "BSD-3-Clause" ]
36
2020-09-07T22:01:27.000Z
2022-03-26T17:06:07.000Z
import io import shutil import tarfile import tempfile from contextlib import contextmanager from unittest import mock import pytest from quetz_conda_suggest import db_models from quetz.condainfo import CondaInfo def test_conda_suggest_endpoint_without_upload(client, channel, subdir): response = client.get( ...
28.884615
72
0.665246
39a45b8b0cbdefb279eec45fe60a0167c18cb7f9
2,148
py
Python
svgwrite/elementfactory.py
bntre/py-harmony
c849b8be863f620b4e7c6661e0e40c1414d6b17c
[ "CC0-1.0" ]
null
null
null
svgwrite/elementfactory.py
bntre/py-harmony
c849b8be863f620b4e7c6661e0e40c1414d6b17c
[ "CC0-1.0" ]
null
null
null
svgwrite/elementfactory.py
bntre/py-harmony
c849b8be863f620b4e7c6661e0e40c1414d6b17c
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Author: mozman --<mozman@gmx.at> # Purpose: element factory # Created: 15.10.2010 # Copyright (C) 2010, Manfred Moitzi # License: MIT License from svgwrite import container from svgwrite import shapes from svgwrite import path from svgwrite import image from svgwrite import text ...
28.64
96
0.675047
bab1144813ba0fec2fb34b151d08023eb6d23705
18,157
py
Python
swagger_client/api/account_api.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
swagger_client/api/account_api.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
swagger_client/api/account_api.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
# coding: utf-8 """ [AHOI cookbook](/ahoi/docs/cookbook/index.html) [Data Privacy](/sandboxmanager/#/privacy) [Terms of Service](/sandboxmanager/#/terms) [Imprint](https://sparkassen-hub.com/impressum/) &copy; 2016&dash;2017 Starfinanz - Ein Unternehmen der Finanz Informatik # noqa: E501 OpenAPI sp...
40.986456
277
0.611445
b0592da7eda0ba99e9752b4f9f904b040939e2a5
12,658
py
Python
pydass_vasp/electronic_structure/dos.py
terencezl/pydass_vasp
77b5e285d6e9755f8f170159b7818a090a364917
[ "MIT" ]
9
2015-11-13T15:30:07.000Z
2020-06-02T12:54:55.000Z
pydass_vasp/electronic_structure/dos.py
dlnguyen/pydass_vasp
77b5e285d6e9755f8f170159b7818a090a364917
[ "MIT" ]
2
2016-02-26T16:49:48.000Z
2018-05-23T02:22:37.000Z
pydass_vasp/electronic_structure/dos.py
dlnguyen/pydass_vasp
77b5e285d6e9755f8f170159b7818a090a364917
[ "MIT" ]
3
2018-10-01T17:45:19.000Z
2021-04-16T21:08:43.000Z
import re import numpy as np import pandas as pd import matplotlib.pyplot as plt from .helpers import determine_tag_value, figs_assert, initiate_figs, plot_helper_settings from ..xml_utils import parse def get_tdos(filepath='DOSCAR', ISPIN=None, Ef=None, plot=False, xlim=None, ylim_upper=None, on_figs=None): """ ...
40.570513
119
0.523937
903331cee03bdc293e9600b4a758b4eed8e7b089
11,451
py
Python
tensorflow/python/saved_model/function_deserialization.py
mickyLing/tensorflow
170d8a86c72a1b4f025d53c3df2992b954effbbd
[ "Apache-2.0" ]
1
2019-02-01T09:52:07.000Z
2019-02-01T09:52:07.000Z
tensorflow/python/saved_model/function_deserialization.py
mickyLing/tensorflow
170d8a86c72a1b4f025d53c3df2992b954effbbd
[ "Apache-2.0" ]
null
null
null
tensorflow/python/saved_model/function_deserialization.py
mickyLing/tensorflow
170d8a86c72a1b4f025d53c3df2992b954effbbd
[ "Apache-2.0" ]
1
2021-08-08T19:12:44.000Z
2021-08-08T19:12:44.000Z
# Copyright 2018 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...
37.792079
91
0.733648
13c685267fbbcc38a887ff06c4f3848259f98ac3
691
py
Python
config/lisa_config.py
agoila/lisa-faster-R-CNN
3b88c9b7da2106a805089f9619ea62cdc1f21d99
[ "MIT" ]
17
2018-09-09T10:56:58.000Z
2022-02-22T07:18:50.000Z
config/lisa_config.py
agoila/lisa-faster-R-CNN
3b88c9b7da2106a805089f9619ea62cdc1f21d99
[ "MIT" ]
null
null
null
config/lisa_config.py
agoila/lisa-faster-R-CNN
3b88c9b7da2106a805089f9619ea62cdc1f21d99
[ "MIT" ]
21
2018-09-19T11:07:10.000Z
2022-02-22T07:18:45.000Z
# import the necessary packages import os # initialize the base path for the LISA dataset BASE_PATH = "lisa" # build the path to the annotations file ANNOT_PATH = os.path.sep.join([BASE_PATH, "allAnnotations.csv"]) # build the path to the output training and testing record files, # along with the class labels file T...
30.043478
65
0.75398
9e34312fcb8aa63e72558ec64b9b4c820f2243d5
19,649
py
Python
process_data_script/rolling_mean_annual.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
null
null
null
process_data_script/rolling_mean_annual.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
1
2022-01-28T13:12:26.000Z
2022-01-28T13:12:26.000Z
process_data_script/rolling_mean_annual.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
null
null
null
import xarray as xr import numpy as np import matplotlib.pyplot as plt ACCESS = xr.open_dataset('/projects/NS9600K/idunnam/Thesis/src/SEB_anomalies_annual/ACCESS_anomaly_annual.nc') HADGEM_cloud = xr.open_dataset('/projects/NS9600K/idunnam/Thesis/src/SEB_anomalies_annual/HADGEM_anomaly_cloud_annual.nc') HADGEM_SMB = ...
61.403125
147
0.608021
0b5eaeb1760454cb4b36ceb35fbb5f1cdaa8f01f
3,115
py
Python
paystackapi/transaction_split.py
eadwinCode/paystack-python
dde449e3c62d843d047ef99eb8eb4c8731cb88de
[ "MIT" ]
89
2016-03-18T17:08:43.000Z
2022-03-27T09:56:27.000Z
paystackapi/transaction_split.py
eadwinCode/paystack-python
dde449e3c62d843d047ef99eb8eb4c8731cb88de
[ "MIT" ]
46
2016-04-01T14:59:47.000Z
2022-03-31T17:18:12.000Z
paystackapi/transaction_split.py
eadwinCode/paystack-python
dde449e3c62d843d047ef99eb8eb4c8731cb88de
[ "MIT" ]
38
2016-03-29T16:22:23.000Z
2022-03-27T09:57:19.000Z
"""Script used to define the paystack Plan class.""" from paystackapi.base import PayStackBase class TransactionSplit(PayStackBase): """docstring for Transaction Split.""" @classmethod def create(cls, **kwargs): """ Create a split payment on your integration Args: na...
30.539216
117
0.6
1bece2e2659068cbf1198b77d77fa472941a1f3d
7,856
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200701/get_ip_allocation.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20200701/get_ip_allocation.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20200701/get_ip_allocation.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 from ... import _utilities, _tables from...
34.761062
228
0.635056
e63ea67ba2cdb5892ddd6714ac230748ce283df7
4,002
py
Python
trackchanges.py
farooqy/feizhonglaravel
93847038b021ccf449427066a755caaa260ac791
[ "MIT" ]
null
null
null
trackchanges.py
farooqy/feizhonglaravel
93847038b021ccf449427066a755caaa260ac791
[ "MIT" ]
5
2020-08-24T16:49:50.000Z
2022-02-26T18:43:43.000Z
trackchanges.py
farooqy/feizhonglaravel
93847038b021ccf449427066a755caaa260ac791
[ "MIT" ]
null
null
null
import os import json import hashlib def deunicodify_hook(pairs): new_pairs = [] for key, value in pairs: if isinstance(value, unicode): value = value.encode('utf-8') if isinstance(key, unicode): key = key.encode('utf-8') new_pairs.append((key, value)) return ...
33.07438
100
0.55922
ba31ad3b491508ba28d7c89b2479c7a02abc77bb
21,044
py
Python
electrum/plugins/keepkey/keepkey.py
fujicoin/electrum-fjc-3.3.9
051fe8988058a64ee61a84aa28baf0f029982d73
[ "MIT" ]
4
2017-07-10T00:10:05.000Z
2020-05-22T12:16:38.000Z
electrum/plugins/keepkey/keepkey.py
fujicoin/electrum-fjc-3.3.9
051fe8988058a64ee61a84aa28baf0f029982d73
[ "MIT" ]
7
2018-02-08T03:52:12.000Z
2021-11-15T17:49:57.000Z
electrum/plugins/keepkey/keepkey.py
fujicoin/electrum-fjc-3.3.9
051fe8988058a64ee61a84aa28baf0f029982d73
[ "MIT" ]
11
2017-07-13T02:53:08.000Z
2022-02-05T13:48:32.000Z
from binascii import hexlify, unhexlify import traceback import sys from electrum.util import bfh, bh2u, UserCancelled, UserFacingException from electrum.bitcoin import TYPE_ADDRESS, TYPE_SCRIPT from electrum.bip32 import BIP32Node from electrum import constants from electrum.i18n import _ from electrum.transaction im...
42.772358
127
0.598318
699dcbbb67022941a57e874522d19f3274e0f9fe
56
py
Python
src/optimizer.py
muzammil360/DL-learn
16e90d099246e75eb7a9cc4a6e0515c0178423e0
[ "MIT" ]
null
null
null
src/optimizer.py
muzammil360/DL-learn
16e90d099246e75eb7a9cc4a6e0515c0178423e0
[ "MIT" ]
null
null
null
src/optimizer.py
muzammil360/DL-learn
16e90d099246e75eb7a9cc4a6e0515c0178423e0
[ "MIT" ]
null
null
null
def getOptimizer(): print("This is getOptimizer") pass
18.666667
30
0.75
3f08e9f432e88955762abf66ae6c2e3b2acdb5b3
1,821
py
Python
tools/importHexo.py
OhYee/OBlog
a9d7e4fda5651cf9c5afd4c128c4df4442794e97
[ "BSD-3-Clause" ]
23
2018-02-23T12:56:43.000Z
2021-12-20T13:21:47.000Z
tools/importHexo.py
OhYee/OBlog
a9d7e4fda5651cf9c5afd4c128c4df4442794e97
[ "BSD-3-Clause" ]
17
2018-02-23T12:52:39.000Z
2018-12-04T05:50:58.000Z
tools/importHexo.py
OhYee/OBlog
a9d7e4fda5651cf9c5afd4c128c4df4442794e97
[ "BSD-3-Clause" ]
2
2018-06-16T20:52:23.000Z
2021-04-08T15:29:44.000Z
import os import re import json Hexo_source_post_dir = r"D:\OneDrive\OneDrive - eclass inc\Workspace\Code\Blog\source\_posts" def listFiles(root, relative=''): res = [] List = os.listdir(root + relative) for file in List: filename = root + relative + '/' + file if os.path.isdi...
28.015385
94
0.462932
858dbaa4da12d06e147f06ed5e02dad82f27473a
1,152
py
Python
migrations/versions/15831a43fb71_add_the_user_login_model_attributes.py
ThiraTheNerd/the_blog
3edd51b2507726b4339f3b59b95133f9e2005700
[ "MIT" ]
null
null
null
migrations/versions/15831a43fb71_add_the_user_login_model_attributes.py
ThiraTheNerd/the_blog
3edd51b2507726b4339f3b59b95133f9e2005700
[ "MIT" ]
null
null
null
migrations/versions/15831a43fb71_add_the_user_login_model_attributes.py
ThiraTheNerd/the_blog
3edd51b2507726b4339f3b59b95133f9e2005700
[ "MIT" ]
null
null
null
"""add the user login model attributes Revision ID: 15831a43fb71 Revises: 7951013acf32 Create Date: 2021-06-23 00:02:56.627253 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '15831a43fb71' down_revision = '7951013acf32' branch_labels = None depends_on = None ...
32.914286
107
0.702257
4d1f1ccdc13883c1c64f142d8434d485fd196847
10,446
py
Python
test/functional/wallet_balance.py
go-keiryo/bitcoin
385bb453040542b4c428ba120c84e438311ff49b
[ "MIT" ]
2
2019-05-15T17:03:40.000Z
2021-04-05T20:40:18.000Z
test/functional/wallet_balance.py
go-keiryo/bitcoin
385bb453040542b4c428ba120c84e438311ff49b
[ "MIT" ]
4
2019-07-23T08:32:01.000Z
2020-07-22T08:05:26.000Z
test/functional/wallet_balance.py
go-keiryo/bitcoin
385bb453040542b4c428ba120c84e438311ff49b
[ "MIT" ]
10
2019-05-23T03:15:07.000Z
2021-12-04T13:32:05.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet balance RPC methods.""" from decimal import Decimal import struct from test_framework....
48.138249
139
0.664465
6c309715469c07a7de64996c388446f36fe89c1c
1,953
py
Python
src/engine/SCons/Tool/f03.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2017-01-28T15:39:07.000Z
2017-01-28T15:39:07.000Z
src/engine/SCons/Tool/f03.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
4
2019-04-11T16:27:45.000Z
2019-04-11T23:56:30.000Z
src/engine/SCons/Tool/f03.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
2
2018-01-16T11:29:16.000Z
2020-05-13T16:48:26.000Z
"""engine.SCons.Tool.f03 Tool-specific initialization for the generic Posix f03 Fortran compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # __COPYRIGHT__ # # Permission is hereby granted, free of c...
30.515625
73
0.757296
7e2d20529b3f2eca13d19d9df5b3fc00906b93ac
914
py
Python
dash_docs/reusable_components/Chapter.py
joelostblom/dash-docs
7be5aed7795f61ac32375ce33a18046b8f2f5254
[ "MIT" ]
379
2017-06-21T14:35:52.000Z
2022-03-20T01:47:14.000Z
dash_docs/reusable_components/Chapter.py
joelostblom/dash-docs
7be5aed7795f61ac32375ce33a18046b8f2f5254
[ "MIT" ]
746
2017-06-21T19:58:17.000Z
2022-03-23T14:51:24.000Z
dash_docs/reusable_components/Chapter.py
joelostblom/dash-docs
7be5aed7795f61ac32375ce33a18046b8f2f5254
[ "MIT" ]
201
2017-06-21T21:53:19.000Z
2022-03-17T13:23:55.000Z
import dash_html_components as html import dash_core_components as dcc from dash_docs.tools import relpath from .Markdown import Markdown def Chapter(name, href=None, caption=None, className='', chapter='', icon=''): linkComponent = html.A if href.startswith('http') else dcc.Link return html.Div(className='toc...
33.851852
80
0.549234
5eeb40c1ede297d25c98ad543d0116e9893c363c
1,118
py
Python
app.py
AyushShaw/todo-flask
0a3335c91c83541e2d098b5633354ac6a743e2de
[ "MIT" ]
null
null
null
app.py
AyushShaw/todo-flask
0a3335c91c83541e2d098b5633354ac6a743e2de
[ "MIT" ]
null
null
null
app.py
AyushShaw/todo-flask
0a3335c91c83541e2d098b5633354ac6a743e2de
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect from flask_sqlalchemy import SQLAlchemy from datetime import datetime app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db' db = SQLAlchemy(app) class Todo(db.Model): id = db.Column(db.Integer,primary_key=True...
27.268293
67
0.620751
dd0df19f02b08c93eee4eb48c9dbacd144d6bd47
414
py
Python
example/subuser/post_trade_market.py
bailzx5522/huobi_Python
d87cb11b44304c32da6e57c8ada8d03ee5fdb0e7
[ "Apache-2.0" ]
611
2019-07-10T08:17:50.000Z
2022-03-21T18:56:39.000Z
example/subuser/post_trade_market.py
bailzx5522/huobi_Python
d87cb11b44304c32da6e57c8ada8d03ee5fdb0e7
[ "Apache-2.0" ]
105
2019-07-12T03:43:41.000Z
2022-03-30T10:33:06.000Z
example/subuser/post_trade_market.py
bailzx5522/huobi_Python
d87cb11b44304c32da6e57c8ada8d03ee5fdb0e7
[ "Apache-2.0" ]
325
2019-07-12T02:46:54.000Z
2022-03-21T18:56:41.000Z
from huobi.client.subuser import SubuserClient from huobi.constant import * from huobi.utils import * subuser_client = SubuserClient(api_key=g_api_key, secret_key=g_secret_key) subUids = '159284259' accountType = SubuserTradePrivilegeType.MARGIN activation = SubUserTradeStatus.DEACTIVATED subUserList = subuser_clien...
31.846154
87
0.850242
360f92f5356106a4aec5e9aa8eca378c90277e03
3,761
py
Python
tests/oauth2/test_id_token.py
yhuang/google-auth-library-python
ccf2e502e0b15633956c007fae92e2404a6418ad
[ "Apache-2.0" ]
1
2020-05-27T15:48:51.000Z
2020-05-27T15:48:51.000Z
tests/oauth2/test_id_token.py
yhuang/google-auth-library-python
ccf2e502e0b15633956c007fae92e2404a6418ad
[ "Apache-2.0" ]
null
null
null
tests/oauth2/test_id_token.py
yhuang/google-auth-library-python
ccf2e502e0b15633956c007fae92e2404a6418ad
[ "Apache-2.0" ]
1
2019-11-11T18:39:46.000Z
2019-11-11T18:39:46.000Z
# Copyright 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
32.422414
78
0.742888
df6f247ff1a917d043c3d95694c6cea1c8add65a
979
py
Python
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_rdbms/postgresql/models/virtual_network_rule_paged.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_rdbms/postgresql/models/virtual_network_rule_paged.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_rdbms/postgresql/models/virtual_network_rule_paged.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
34.964286
142
0.592441
a5be4c8a7562c5766de5d64b5112e734682f2410
22,381
py
Python
azimuth/load_data.py
bowhan/Azimuth
d49ea6ee97efa67af4081631c75c333f724cc18a
[ "BSD-3-Clause" ]
null
null
null
azimuth/load_data.py
bowhan/Azimuth
d49ea6ee97efa67af4081631c75c333f724cc18a
[ "BSD-3-Clause" ]
null
null
null
azimuth/load_data.py
bowhan/Azimuth
d49ea6ee97efa67af4081631c75c333f724cc18a
[ "BSD-3-Clause" ]
1
2021-10-05T14:42:17.000Z
2021-10-05T14:42:17.000Z
import pandas from . import util import matplotlib.pyplot as plt import scipy as sp import scipy.stats import numpy as np import os cur_dir = os.path.dirname(os.path.abspath(__file__)) def from_custom_file(data_file, learn_options): # use semantics of when we load V2 data print("Loading inputs to predict from...
46.43361
209
0.663822
ea33183c689686f9df52f9bbc4b7c6d967dd9d72
839
py
Python
examples/multilayer_neural_network.py
TK-21st/Neuroballad
6d4800e969c35b0f2d64897db24b734a9daaa160
[ "BSD-3-Clause" ]
null
null
null
examples/multilayer_neural_network.py
TK-21st/Neuroballad
6d4800e969c35b0f2d64897db24b734a9daaa160
[ "BSD-3-Clause" ]
null
null
null
examples/multilayer_neural_network.py
TK-21st/Neuroballad
6d4800e969c35b0f2d64897db24b734a9daaa160
[ "BSD-3-Clause" ]
null
null
null
from neuroballad import * #Import Neuroballad # Create a circuit C = Circuit() # Create 784 LeakyIAF neurons and get their ID's in_neurons = C.add_cluster(784, LeakyIAF()) # Create 32 Hodgkin-Huxley neurons and get their ID's middle_neurons = C.add_cluster(32, HodgkinHuxley()) # Join nodes together via alpha synapses C...
39.952381
64
0.77354
4d786ce53bf4f41b8ff352eec66640dd8755af58
2,955
py
Python
datcore-sdk/python/datcore_sdk/models/create_consortium.py
mguidon/aiohttp-dsm
612e4c7f6f73df7d6752269965c428fda0276191
[ "MIT" ]
null
null
null
datcore-sdk/python/datcore_sdk/models/create_consortium.py
mguidon/aiohttp-dsm
612e4c7f6f73df7d6752269965c428fda0276191
[ "MIT" ]
null
null
null
datcore-sdk/python/datcore_sdk/models/create_consortium.py
mguidon/aiohttp-dsm
612e4c7f6f73df7d6752269965c428fda0276191
[ "MIT" ]
null
null
null
# coding: utf-8 """ Blackfynn Swagger Swagger documentation for the Blackfynn api # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class CreateConsortium(object): """NOTE: This class is auto generated ...
25.921053
90
0.548223
8a5f8e4c15f6fe7ae0c84b81a60209edf51c3c8b
11,977
py
Python
rslgym/wrapper/script/base_vec_env.py
mcx/RSLGym
9211c8c23042c7a56802751f8d7cfd4e7248d7a2
[ "MIT" ]
13
2021-04-16T07:14:48.000Z
2022-03-14T04:20:03.000Z
rslgym/wrapper/script/base_vec_env.py
mcx/RSLGym
9211c8c23042c7a56802751f8d7cfd4e7248d7a2
[ "MIT" ]
null
null
null
rslgym/wrapper/script/base_vec_env.py
mcx/RSLGym
9211c8c23042c7a56802751f8d7cfd4e7248d7a2
[ "MIT" ]
2
2021-11-02T06:22:27.000Z
2021-12-21T06:16:17.000Z
# The MIT License # # Copyright (c) 2017 OpenAI (http://openai.com) # Copyright (c) 2018-2019 Stable-Baselines Team # # 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, incl...
37.080495
116
0.659097
93ceb6fd70900f77e9a54919d165033e6d323ebf
353
py
Python
MySQL_Databses.py
windloid/PythonExamples
6a9d1d79cb9e58dd46b2b0e1a708f7cda94ff6a5
[ "MIT" ]
3
2020-05-22T09:16:02.000Z
2022-02-08T20:20:51.000Z
MySQL_Databses.py
windloid/PythonExamples
6a9d1d79cb9e58dd46b2b0e1a708f7cda94ff6a5
[ "MIT" ]
5
2021-03-19T08:04:40.000Z
2022-03-12T00:04:25.000Z
MySQL_Databses.py
windloid/PythonExamples
6a9d1d79cb9e58dd46b2b0e1a708f7cda94ff6a5
[ "MIT" ]
4
2020-05-22T09:16:04.000Z
2021-08-20T13:42:41.000Z
import mysql.connector # MySQl databses details mydb = mysql.connector.connect( host="localhost", user="root", passwd="", database="db_name" ) mycursor = mydb.cursor() # Execute SQL Query =>>>> mycursor.execute("SQL Query") mycursor.execute("SELECT column FROM table") myresult = mycursor.fetchall() ...
17.65
55
0.688385
7c08eb1d39014f6f159ba4755eff24f437084934
4,558
py
Python
DRFdemo/BookTest/serializers.py
Nicholas-violet/Django_Rest_Framework
5f9fef4836980cb3de04cc47fa0f5ed7e065cd89
[ "MIT" ]
null
null
null
DRFdemo/BookTest/serializers.py
Nicholas-violet/Django_Rest_Framework
5f9fef4836980cb3de04cc47fa0f5ed7e065cd89
[ "MIT" ]
null
null
null
DRFdemo/BookTest/serializers.py
Nicholas-violet/Django_Rest_Framework
5f9fef4836980cb3de04cc47fa0f5ed7e065cd89
[ "MIT" ]
null
null
null
# 针对BookInfo模型类数据,定义一个BookInfoSerializer序列化器 # 来对BooKinfo数据进行序列化操作 ''' from rest_framework import serializers # # 我们自己心里清楚,这个序列化器是针对BookInfo的!!! # class BookInfoSerializer(serializers.Serializer): # # 通过指定同名类属性的形式,来定义转化结果字典中的属性 # # btitle = serializers.CharField() # bpub_date = serializers.DateField() # ...
28.4875
99
0.659061
973fb64d8c966361515128612fec065da2e3b0c2
144,236
py
Python
nova/tests/unit/virt/vmwareapi/test_vmops.py
10088/nova
972c06c608f0b00e9066d7f581fd81197065cf49
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/vmwareapi/test_vmops.py
10088/nova
972c06c608f0b00e9066d7f581fd81197065cf49
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/vmwareapi/test_vmops.py
10088/nova
972c06c608f0b00e9066d7f581fd81197065cf49
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
48.352665
79
0.582192
adce03f2f3fc91dd267ac242fdcee4f18ea7a73e
1,924
py
Python
CountFingers_v2.py
VDHARV/hand-tracking
03653f5b0a0a6f0f362047d86c94b0624e8e6a43
[ "MIT" ]
null
null
null
CountFingers_v2.py
VDHARV/hand-tracking
03653f5b0a0a6f0f362047d86c94b0624e8e6a43
[ "MIT" ]
null
null
null
CountFingers_v2.py
VDHARV/hand-tracking
03653f5b0a0a6f0f362047d86c94b0624e8e6a43
[ "MIT" ]
null
null
null
import cv2 from HandDetector import HandDetector def CountFingersV2(detector, vid): detector = HandDetector(detectionCon = 0.75, trackCon = 0.75) vid = cv2.VideoCapture(0) i = 0 while True: success, img = vid.read() img = detector.find_hands(img) landmark_list = detector.find_p...
45.809524
112
0.476611
de21d33245a062cdc438482f3d2e51c3d1e0a7cc
510
py
Python
thirdparty/antlr3-antlr-3.5/runtime/Python/tests/t019lexer.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
3,266
2017-08-06T16:51:46.000Z
2022-03-30T07:34:24.000Z
thirdparty/antlr3-antlr-3.5/runtime/Python/tests/t019lexer.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
thirdparty/antlr3-antlr-3.5/runtime/Python/tests/t019lexer.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
1,449
2017-08-06T17:40:59.000Z
2022-03-31T12:03:24.000Z
import os import antlr3 import testbase import unittest class t019lexer(testbase.ANTLRTest): def setUp(self): self.compileGrammar() def testValid(self): inputPath = os.path.splitext(__file__)[0] + '.input' stream = antlr3.StringStream(open(inputPath).read()) lexer = se...
22.173913
60
0.605882
8f6a26173e6f16cb64da1a758c8a68859a440133
22,250
py
Python
python/backup/_app.py
katie0809/2021AiHub-ODQA
a6377efd336217afab5de6797e0449ebce5837a2
[ "MIT" ]
null
null
null
python/backup/_app.py
katie0809/2021AiHub-ODQA
a6377efd336217afab5de6797e0449ebce5837a2
[ "MIT" ]
null
null
null
python/backup/_app.py
katie0809/2021AiHub-ODQA
a6377efd336217afab5de6797e0449ebce5837a2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf import tensorflow.keras.backend as K import tensorflow_addons as tfa import os import re import numpy as np import pandas as pd import pickle import random import collection...
31.293952
126
0.617843
5112280a8e6c20b8239624c5df00423f183d2cec
11,169
py
Python
cellpy/utils/batch_tools/batch_helpers.py
jepegit/cellpy
b9ddb7afa3f7453bfb5f2f24a3268279bccf24c6
[ "MIT" ]
38
2016-08-16T10:54:56.000Z
2022-03-03T04:43:20.000Z
cellpy/utils/batch_tools/batch_helpers.py
jepegit/cellpy
b9ddb7afa3f7453bfb5f2f24a3268279bccf24c6
[ "MIT" ]
88
2016-08-16T13:10:27.000Z
2022-03-29T10:36:39.000Z
cellpy/utils/batch_tools/batch_helpers.py
jepegit/cellpy
b9ddb7afa3f7453bfb5f2f24a3268279bccf24c6
[ "MIT" ]
13
2019-01-02T03:57:52.000Z
2022-01-19T08:06:49.000Z
import logging import os import warnings import pandas as pd import csv import itertools from cellpy import filefinder, prms from cellpy.exceptions import ExportFailed, NullData, WrongFileVersion import cellpy.parameters.internal_settings # logger = logging.getLogger(__name__) hdr_summary = cellpy.parameters.intern...
34.155963
89
0.669532
70f3c6a650e0bb3477dbf33fa3c09be95644645b
3,383
py
Python
mavlinkAPI/unloadDrone.py
CopterExpress/DronePoint-home
2800c77fd0aaaab8080e157ffc9bee875171db48
[ "Apache-2.0" ]
null
null
null
mavlinkAPI/unloadDrone.py
CopterExpress/DronePoint-home
2800c77fd0aaaab8080e157ffc9bee875171db48
[ "Apache-2.0" ]
null
null
null
mavlinkAPI/unloadDrone.py
CopterExpress/DronePoint-home
2800c77fd0aaaab8080e157ffc9bee875171db48
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time, os, sys from pymavlink import mavutil import threading import json #CUSTOM_MODE CUSTOM_MODE_UNKNOWN=0 CUSTOM_MODE_COVER_INSTALLATION=2 CUSTOM_MODE_COVER_REMOVAL=4 CUSTOM_MODE_LOADING_DRONE = 5 CUSTOM_MODE_UNLOADING_DRONE = 6 CUSTOM_MODE_GETTING_FROM_USER = 7...
27.064
84
0.619568
2dce049f24dfa2c170d50681a93b451eac694eef
20,640
py
Python
auth-api/src/auth_api/services/invitation.py
mengdong19/sbc-auth
66fbd94a79d6de18102d3db29743ffeab89ea161
[ "Apache-2.0" ]
null
null
null
auth-api/src/auth_api/services/invitation.py
mengdong19/sbc-auth
66fbd94a79d6de18102d3db29743ffeab89ea161
[ "Apache-2.0" ]
null
null
null
auth-api/src/auth_api/services/invitation.py
mengdong19/sbc-auth
66fbd94a79d6de18102d3db29743ffeab89ea161
[ "Apache-2.0" ]
1
2019-07-25T18:20:41.000Z
2019-07-25T18:20:41.000Z
# Copyright © 2019 Province of British Columbia # # 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 agr...
50.341463
120
0.680233
9a58237bcdc7bd5843d51e6ffd9a17f45794da09
8,563
py
Python
src/pyth2/fs/StagingFileSystem.py
gnomeberry/pyth2
532d89e4ed22b4f9427069bf187ab836e2c2f538
[ "MIT" ]
null
null
null
src/pyth2/fs/StagingFileSystem.py
gnomeberry/pyth2
532d89e4ed22b4f9427069bf187ab836e2c2f538
[ "MIT" ]
null
null
null
src/pyth2/fs/StagingFileSystem.py
gnomeberry/pyth2
532d89e4ed22b4f9427069bf187ab836e2c2f538
[ "MIT" ]
null
null
null
# encoding: utf-8 ''' Created on 2016/01/24 @author: _ ''' import codecs import json import os import sys FILESYSTEM_CHARACTER_ENCODING = sys.getfilesystemencoding() STAGING_CONTEXT_FILE_PATTERN = "%s_context" def ensureDirectory(path): if not os.path.isdir(path): os.mkdir(path) ...
33.580392
190
0.589046
2c3d4c73931373fdd1d07e3bc986e28ba95b1307
1,564
py
Python
src/gui/MainWindow/MainRadioButton.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
src/gui/MainWindow/MainRadioButton.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
src/gui/MainWindow/MainRadioButton.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from PyQt5 import QtWidgets from PyQt5.QtCore import pyqtSignal import sys, os.path as op path1 = op.join( op.abspath(op.dirname(__file__)), '..', '..') path2 = op.join( op.abspath(op.dirname(__file__)), '..') sys.path.append(path1) sys.path.append(path2) from Structure i...
30.076923
69
0.634271
c0223ac12b2bb0b17c73ec8c84482a7b47cb243f
618
py
Python
eth/tools/rlp.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
eth/tools/rlp.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
eth/tools/rlp.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
2
2018-12-09T15:58:11.000Z
2020-09-29T07:10:21.000Z
from eth_utils import ( replace_exceptions, ValidationError, ) from eth.utils.rlp import ( validate_rlp_equal, ) assert_imported_genesis_header_unchanged = replace_exceptions({ ValidationError: AssertionError, })(validate_rlp_equal(obj_a_name='genesis header', obj_b_name='imported header')) assert_...
25.75
81
0.788026
8f30d2d9e347bcd18899497d2eb129dde3e0de29
42,344
py
Python
plugin.video.xbmcfilm/resources/lib/mrknow_Pageparser.py
mrknow/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
105
2015-11-28T00:03:11.000Z
2021-05-05T20:47:42.000Z
plugin.video.xbmcfilm/resources/lib/mrknow_Pageparser.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
918
2015-11-28T14:12:40.000Z
2022-03-23T20:24:49.000Z
plugin.video.xbmcfilm/resources/lib/mrknow_Pageparser.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
111
2015-12-01T14:06:10.000Z
2020-08-01T10:44:39.000Z
# -*- coding: utf-8 -*- import cookielib, os, string, StringIO import os, time, base64, logging, calendar import urllib, urllib2, re, sys, math import xbmcaddon, xbmc, xbmcgui try: import simplejson as json except ImportError: import json import urlparse, httplib, random, string ptv = xbmcaddon.Addon() scriptI...
56.837584
390
0.617868
175cbea9180c9b976613acc8290cc47149763254
1,134
py
Python
diskcollections/handlers.py
ectomancer/python-disk-collections
eff4e54c56cef3120a0ffda231b962880f279bda
[ "MIT" ]
1
2018-12-10T15:08:33.000Z
2018-12-10T15:08:33.000Z
diskcollections/handlers.py
ectomancer/python-disk-collections
eff4e54c56cef3120a0ffda231b962880f279bda
[ "MIT" ]
null
null
null
diskcollections/handlers.py
ectomancer/python-disk-collections
eff4e54c56cef3120a0ffda231b962880f279bda
[ "MIT" ]
null
null
null
import json import pickle import zlib from diskcollections.interfaces import IHandler class PickleHandler(IHandler): dumps = staticmethod(pickle.dumps) loads = staticmethod(pickle.loads) class PickleZLibHandler(IHandler): @staticmethod def dumps( obj, protocol=pickle.HIGHEST_PROTOC...
22.68
54
0.679894
d8daedf3b853a8a809b6205c0aa04031f2913898
19,093
py
Python
tests/integration/cattletest/core/test_authorization.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
tests/integration/cattletest/core/test_authorization.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
tests/integration/cattletest/core/test_authorization.py
mbrukman/rancher-cattle
ac7caffb97346f601043458411391d2d00fd6129
[ "Apache-2.0" ]
null
null
null
from common_fixtures import * # NOQA def test_client_access(clients): typesLen = { 'admin': 91, 'agent': 8, 'user': 69, 'agentRegister': 4, 'test': 140, 'readAdmin': 91, 'token': 2, 'superadmin': 141, 'service': 91, 'project': 69, ...
25.322281
75
0.500917