hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
f777335d530a089a2d72e1ef5865036d3090cb3c
178
py
Python
setup.py
astronouth7303/aioevents
6efab13a828bc8d96c07b0aec29239f13d062c6e
[ "MIT" ]
2
2016-09-13T05:41:37.000Z
2017-08-02T10:46:08.000Z
setup.py
astronouth7303/aioevents
6efab13a828bc8d96c07b0aec29239f13d062c6e
[ "MIT" ]
1
2015-04-06T14:08:23.000Z
2015-04-06T14:44:23.000Z
setup.py
astronouth7303/aioevents
6efab13a828bc8d96c07b0aec29239f13d062c6e
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='aioevents', version='0.2', packages=['aioevents',], license='MIT License', # long_description=..., )
17.8
43
0.646067
f777672158012b5f0fa4ba7b8a2d0d57f384f136
25,545
py
Python
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_1/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_1/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_1/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
35.627615
140
0.627442
f7776c172a6328b1c97227c48cc3ff58d220081d
1,372
py
Python
2/led_control.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
2/led_control.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
2/led_control.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time,threading LED = 26 KEY = 20 GPIO.setmode(GPIO.BCM) GPIO.setup(LED,GPIO.OUT) GPIO.setup(KEY, GPIO.IN,GPIO.PUD_UP) # 上拉电阻 freq=1#闪烁频率 state=0#当前状态(亮/暗) pulse_time=time.time()#记录时间轴上最近一次上跳沿的时刻 p = GPIO.PWM(LED,freq) def callback1(ch): global state state=1 if state==0 else...
19.323944
79
0.65379
f77771d834b4db14eccb227b9d44660157f5e2a9
1,112
py
Python
installer/core/providers/aws/boto3/es.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
1
2020-01-14T10:14:27.000Z
2020-01-14T10:14:27.000Z
installer/core/providers/aws/boto3/es.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
19
2021-07-02T18:53:27.000Z
2022-03-02T09:55:29.000Z
installer/core/providers/aws/boto3/es.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
1
2020-01-14T09:10:10.000Z
2020-01-14T09:10:10.000Z
import boto3 def get_es_client(access_key, secret_key, region): """ Returns the client object for AWS Elasticsearch Args: access_key (str): AWS Access Key secret_key (str): AWS Secret Key region (str): AWS Region Returns: obj: AWS Elasticsearch Object """ retu...
25.272727
72
0.642986
f77784ebf218b4864e2d8878c6d020b9f9865955
4,308
py
Python
test/test_fb_credentials.py
portusato/fb_credentials
2698c72c1a68d433061fed496d3c3da53cebcfb2
[ "BSD-3-Clause" ]
null
null
null
test/test_fb_credentials.py
portusato/fb_credentials
2698c72c1a68d433061fed496d3c3da53cebcfb2
[ "BSD-3-Clause" ]
null
null
null
test/test_fb_credentials.py
portusato/fb_credentials
2698c72c1a68d433061fed496d3c3da53cebcfb2
[ "BSD-3-Clause" ]
1
2021-06-28T15:26:00.000Z
2021-06-28T15:26:00.000Z
import unittest import nose.tools from nose_parameterized import parameterized import mock import shutil, tempfile from os import path import fb_credentials @parameterized([ # token, username, password ('a', 'a', ''), # token and username ('a', '', 'a'), # token and password ('', 'a', ''), # username and...
41.423077
102
0.731662
f7779e30f9c1570761678990dd66d3394c1994e1
2,752
py
Python
easygo/keyCap.py
shinkansan/2019-UGRP-DPoom
eedee93b47e068f22bf420140d869a43f7551876
[ "Apache-2.0" ]
33
2020-07-16T06:31:38.000Z
2022-03-23T18:34:58.000Z
easygo/keyCap.py
shinkansan/2019-UGRP-DPoom
eedee93b47e068f22bf420140d869a43f7551876
[ "Apache-2.0" ]
5
2020-08-27T08:06:21.000Z
2022-02-23T12:34:09.000Z
easygo/keyCap.py
shinkansan/2019-UGRP-DPoom
eedee93b47e068f22bf420140d869a43f7551876
[ "Apache-2.0" ]
10
2020-08-05T15:05:58.000Z
2021-11-19T10:20:44.000Z
global isWindows isWindows = False try: from win32api import STD_INPUT_HANDLE from win32console import GetStdHandle, KEY_EVENT, ENABLE_ECHO_INPUT, ENABLE_LINE_INPUT, ENABLE_PROCESSED_INPUT isWindows = True except ImportError as e: import sys import select import termios class Key...
32
115
0.542515
f777b0c621ccc16d543343e70681c0bc2bf44183
189
py
Python
python/cuXfilter/assets/get_open_port.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
2
2019-03-06T02:10:05.000Z
2020-05-06T06:33:02.000Z
python/cuXfilter/assets/get_open_port.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
null
null
null
python/cuXfilter/assets/get_open_port.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
null
null
null
import socket def get_open_port(): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(("",0)) s.listen(1) port = s.getsockname()[1] s.close() return port
18.9
57
0.624339
f777e8324a18d16644e172229f87d4d2ef68036d
6,527
py
Python
aict_tools/scripts/plot_direction_performance.py
seinecke/aict-tools
87601eba47d77385ac35145fd0b85d7aa7d66c71
[ "MIT" ]
null
null
null
aict_tools/scripts/plot_direction_performance.py
seinecke/aict-tools
87601eba47d77385ac35145fd0b85d7aa7d66c71
[ "MIT" ]
null
null
null
aict_tools/scripts/plot_direction_performance.py
seinecke/aict-tools
87601eba47d77385ac35145fd0b85d7aa7d66c71
[ "MIT" ]
null
null
null
import click import logging import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages import numpy as np from sklearn.externals import joblib from ..configuration import AICTConfig import fact.io from ..plotting import ( plot_roc, plot_probabilities, plot_regressor_confusion, ...
40.042945
89
0.649916
f7783f532a7be9558e53765db92f4b23355032ef
5,724
py
Python
custom_components/heatzy/climate.py
moreau-se/hass-heatzy
aa5e490b473c1e63cbd3155e6c54f2f6eda34fb4
[ "MIT" ]
14
2020-12-26T00:52:26.000Z
2022-03-13T14:15:35.000Z
custom_components/heatzy/climate.py
moreau-se/hass-heatzy
aa5e490b473c1e63cbd3155e6c54f2f6eda34fb4
[ "MIT" ]
12
2021-01-16T14:21:52.000Z
2022-03-26T12:20:19.000Z
custom_components/heatzy/climate.py
Cyr-ius/hass-heatzy
aa5e490b473c1e63cbd3155e6c54f2f6eda34fb4
[ "MIT" ]
6
2021-03-14T12:51:45.000Z
2022-03-02T18:06:06.000Z
"""Climate sensors for Heatzy.""" import logging from heatzypy.exception import HeatzyException from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( HVAC_MODE_HEAT, HVAC_MODE_OFF, PRESET_AWAY, PRESET_COMFORT, PRESET_ECO, PRESET_NONE, ...
30.285714
80
0.631202
f778575709f0c895cb408aaa6003a2a4d444173b
1,001
py
Python
app.py
rudzki/moldy-tweets
dc578b62c9b5b9d552f1085a8d55ea03767f93cd
[ "MIT" ]
null
null
null
app.py
rudzki/moldy-tweets
dc578b62c9b5b9d552f1085a8d55ea03767f93cd
[ "MIT" ]
null
null
null
app.py
rudzki/moldy-tweets
dc578b62c9b5b9d552f1085a8d55ea03767f93cd
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta, timezone import twitter from creds import TWITTER_KEY, TWITTER_KEY_SECRET, TWITTER_TOKEN, TWITTER_TOKEN_SECRET from dateutil import tz # twitter api object api = twitter.Api(consumer_key=TWITTER_KEY, consumer_secret=TWITTER_KEY_SECRET, acce...
32.290323
87
0.675325
f778cbf856b1003d5f6ba5dffca796f0308d3d7a
3,293
py
Python
scripts/common/logger.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
6
2018-11-07T12:41:30.000Z
2020-04-12T18:07:03.000Z
scripts/common/logger.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
1
2020-10-20T12:33:18.000Z
2020-10-20T12:33:18.000Z
scripts/common/logger.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
10
2018-11-12T06:15:19.000Z
2021-11-18T05:45:12.000Z
""" Custom logging module for scripts Copyright (c) 2018-2020 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: Redistr...
63.326923
844
0.761919
f778ccfe7ef710d82d16847a1f0142d154bd7654
308
py
Python
activelearning/datareduction/diff_visualizer.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
8
2018-10-30T16:48:44.000Z
2021-03-08T01:44:41.000Z
activelearning/datareduction/diff_visualizer.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
null
null
null
activelearning/datareduction/diff_visualizer.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
5
2018-04-05T15:51:12.000Z
2019-05-23T21:38:31.000Z
import numpy as np import matplotlib.pyplot as plt dfile = '/home/jujuman/Research/SingleNetworkTest/train_05/diffs.dat' f = open(dfile, 'r') for l in f: diffs = np.array(l.split(','),dtype=np.float) plt.scatter(np.arange(diffs.size), diffs, color='black', label='DIFF', linewidth=1) plt.show()
30.8
87
0.698052
f778ce716520e617738a3af98d09014c71ba626d
878
py
Python
bots/randbot.py
jimmahoney/tron-engine
49d2e15a2fde6b838069045a4abd8857ab0507a0
[ "BSD-2-Clause" ]
1
2016-02-13T00:12:41.000Z
2016-02-13T00:12:41.000Z
bots/randbot.py
jimmahoney/tron-engine
49d2e15a2fde6b838069045a4abd8857ab0507a0
[ "BSD-2-Clause" ]
null
null
null
bots/randbot.py
jimmahoney/tron-engine
49d2e15a2fde6b838069045a4abd8857ab0507a0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ randbot.py An example Tron bot which moves in a random direction. There's a lot of tricky stuff going on behind the scenes here which you can probably mostly ignore. On each turn, this program will read an entire board position from stdin (which is supplied by the engine that runs it), and t...
29.266667
72
0.747153
f779093f7262410251d8511567a2986ca10b0d13
3,676
py
Python
src/CornerCreator.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
1
2020-07-21T12:10:58.000Z
2020-07-21T12:10:58.000Z
src/CornerCreator.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
17
2020-03-14T20:27:09.000Z
2022-01-13T02:31:39.000Z
src/CornerCreator.py
1alexandra/collage
671ca1713d8e9f74faae9e824552a03c253adad0
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image, ImageFilter class CornerCreator: """Create corners with a given curvature from ``0`` to ``1``. Corners size is defined by ``corner_width``. Type of corners are defined by ``corner_curvature``: - ``0``: no corners, - from ``0`` to ``0.5``: hyperbolic conv...
28.71875
79
0.518226
f7790dfa240cf5539333eb0bb0bcafebf3333740
271
py
Python
chemicalx/models/caster.py
andrejlamov/chemicalx
02cf0fdffd3bfac15dc8454a4f60ac615f2045b4
[ "Apache-2.0" ]
null
null
null
chemicalx/models/caster.py
andrejlamov/chemicalx
02cf0fdffd3bfac15dc8454a4f60ac615f2045b4
[ "Apache-2.0" ]
null
null
null
chemicalx/models/caster.py
andrejlamov/chemicalx
02cf0fdffd3bfac15dc8454a4f60ac615f2045b4
[ "Apache-2.0" ]
null
null
null
"""An implementation of the CASTER model.""" from .base import UnimplementedModel __all__ = [ "CASTER", ] class CASTER(UnimplementedModel): """An implementation of the CASTER model. .. seealso:: https://github.com/AstraZeneca/chemicalx/issues/15 """
18.066667
67
0.690037
f779238000422971c92e653075cc48db3192b16a
15,442
py
Python
examples/pytorch/graphsage/train_cv_multi_gpu.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
1
2019-03-18T03:33:04.000Z
2019-03-18T03:33:04.000Z
examples/pytorch/graphsage/train_cv_multi_gpu.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
null
null
null
examples/pytorch/graphsage/train_cv_multi_gpu.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
1
2021-03-09T12:42:46.000Z
2021-03-09T12:42:46.000Z
import dgl import numpy as np import torch as th import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.multiprocessing as mp import dgl.function as fn import dgl.nn.pytorch as dglnn import time import argparse import tqdm import traceback from _thread import start_new_thread fro...
38.412935
120
0.605945
f779283f8cef0234dec565f0ddad20ad30629586
8,131
py
Python
st2client/st2client/commands/keyvalue.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2client/st2client/commands/keyvalue.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2client/st2client/commands/keyvalue.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
37.643519
100
0.639036
f7793f46ceca5aa343a751eaef180fcc3fa1875b
4,008
py
Python
rlkit/launchers/conf.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
rlkit/launchers/conf.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
rlkit/launchers/conf.py
naomilwx/rlkit
d4514f89e4cef0a93a936c4f6b34b2099ae3a523
[ "MIT" ]
null
null
null
""" Copy this file to config.py and modify as needed. """ import os from os.path import join import rlkit """ `doodad.mount.MountLocal` by default ignores directories called "data" If you're going to rename this directory and use EC2, then change `doodad.mount.MountLocal.filter_dir` """ # The directory of the project,...
26.025974
87
0.627745
f77946174b0db99dd094828974e819cbb9b3c646
282
py
Python
leetcode_python/src/algorithms/tree/maximum_depth.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
leetcode_python/src/algorithms/tree/maximum_depth.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
leetcode_python/src/algorithms/tree/maximum_depth.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
from leetcode_python.src.algorithms.tree.node import Node class MaximumDepth: def max_depth(self, root: Node): if not root: return 0 left = self.max_depth(root.left) right = self.max_depth(root.right) return max(left, right) + 1
20.142857
57
0.631206
f77961785f5b1f80dfc71324a90abd168bc58a19
842
py
Python
Algos/subsets.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
Algos/subsets.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
Algos/subsets.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
s = [1, 2, 3] class SetOps(object): def __init__(self, s): self.set = s def subsets(self): n = len(self.set) # each set has 0 to 2^(n - 1) subsets (total of 2^n) for i in range(pow(2, n)): subset = [] # this bit masks each of n bits to find which eleme...
22.756757
70
0.495249
f77980e03fa226a68302b3d379b202318f120f64
5,375
py
Python
xfl2svg/color_effect.py
PluieElectrique/xfl2svg
62e983fdbeea7d39d06f01c12b88fab0e97a619d
[ "MIT" ]
null
null
null
xfl2svg/color_effect.py
PluieElectrique/xfl2svg
62e983fdbeea7d39d06f01c12b88fab0e97a619d
[ "MIT" ]
null
null
null
xfl2svg/color_effect.py
PluieElectrique/xfl2svg
62e983fdbeea7d39d06f01c12b88fab0e97a619d
[ "MIT" ]
null
null
null
"""Convert XFL color effects to SVG.""" from dataclasses import dataclass import re import xml.etree.ElementTree as ET import warnings HEX_COLOR = re.compile(r"#[A-Za-z0-9]{6}") @dataclass(frozen=True) class ColorEffect: multiplier: tuple = (1, 1, 1, 1) offset: tuple = (0, 0, 0, 0) @classmethod de...
33.179012
80
0.487442
f779865901c4d7443bfcd40a415eb4b749e7a357
6,905
py
Python
tests/test_simple.py
thorwhalen/oldpy2store
d3ba4e6241b0fb7f6100bd238371a46af5fd288e
[ "Apache-2.0" ]
1
2022-01-19T13:15:03.000Z
2022-01-19T13:15:03.000Z
tests/test_simple.py
thorwhalen/oldpy2store
d3ba4e6241b0fb7f6100bd238371a46af5fd288e
[ "Apache-2.0" ]
null
null
null
tests/test_simple.py
thorwhalen/oldpy2store
d3ba4e6241b0fb7f6100bd238371a46af5fd288e
[ "Apache-2.0" ]
null
null
null
import pytest import os import shutil from tempfile import gettempdir from oldpy2store.errors import OverWritesNotAllowedError, DeletionsNotAllowed from oldpy2store.test.util import get_s3_test_access_info_from_env_vars # from collections.abc import MutableMapping # from oldpy2store.base import AbstractObjStore # imp...
30.152838
106
0.632295
f779b0fe98b315155813a1612af39ba0a5c2ac4a
2,938
py
Python
cirq/linalg/transformations.py
ajesse11x/Cirq
ef7b260b9fcdf27f79ab6f0f15ffd27fab7ccd20
[ "Apache-2.0" ]
null
null
null
cirq/linalg/transformations.py
ajesse11x/Cirq
ef7b260b9fcdf27f79ab6f0f15ffd27fab7ccd20
[ "Apache-2.0" ]
null
null
null
cirq/linalg/transformations.py
ajesse11x/Cirq
ef7b260b9fcdf27f79ab6f0f15ffd27fab7ccd20
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # 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 ...
33.011236
79
0.655548
f779b1802ae45c716ae744ba11c4a0d36cca1541
1,981
py
Python
docs/source/conf.py
Parowicz/Yvain
e6caba0ef0c5bd030250a4ab67381aff4d653ba6
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
Parowicz/Yvain
e6caba0ef0c5bd030250a4ab67381aff4d653ba6
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
Parowicz/Yvain
e6caba0ef0c5bd030250a4ab67381aff4d653ba6
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.754386
79
0.665825
f779f85063064dc8a3658fa7ea858623706eecd9
111
py
Python
Example5_Optimisation.py
benjaminirving/Mesh-Silhouette-Projection
efdc3ac9adb20da3d15f14f0b63bcd359c1ecc14
[ "BSD-3-Clause" ]
7
2018-05-10T14:58:50.000Z
2021-11-14T18:16:24.000Z
Example5_Optimisation.py
benjaminirving/Mesh-Silhouette-Projection
efdc3ac9adb20da3d15f14f0b63bcd359c1ecc14
[ "BSD-3-Clause" ]
null
null
null
Example5_Optimisation.py
benjaminirving/Mesh-Silhouette-Projection
efdc3ac9adb20da3d15f14f0b63bcd359c1ecc14
[ "BSD-3-Clause" ]
4
2016-01-03T05:50:27.000Z
2018-06-27T14:33:11.000Z
#Real data cannot be provided for due to patient privacy. We will post a suitable demo example at some point.
55.5
110
0.783784
f779fb609304e7a5959fcb5d00f55a1cfcc718bd
2,081
py
Python
submarine-sdk/pysubmarine/submarine/ml/tensorflow/input/input.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
544
2019-10-29T02:35:31.000Z
2022-03-31T21:22:44.000Z
submarine-sdk/pysubmarine/submarine/ml/tensorflow/input/input.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
545
2019-10-29T03:21:38.000Z
2022-03-30T05:21:15.000Z
submarine-sdk/pysubmarine/submarine/ml/tensorflow/input/input.py
akizminet/submarine
aa6e865f27167a26050d8daa293e0b4f41a144b6
[ "Apache-2.0" ]
220
2019-10-29T05:14:03.000Z
2022-03-28T07:29:30.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 use t...
35.271186
81
0.69678
f779ff9f461a3725020db1c1559eb01768c6cf30
360
py
Python
sketch/models/MSSliceLayer.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
2
2018-10-22T12:43:51.000Z
2018-12-02T02:41:55.000Z
sketch/models/MSSliceLayer.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
null
null
null
sketch/models/MSSliceLayer.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
null
null
null
from sketch.models import MSLayer class MSSliceLayer(MSLayer): """ Subclass of MSLayer representing a slice in the document. Although it may have a style attribute, this is never used. MSSliceLayer has —like MSLayer— a frame property that is an MSRect which determines its position in the canvas o...
27.692308
78
0.727778
f77a17f703afbb61fecda36324125051b6a705fb
5,556
py
Python
python/example/rolling_jelly_3d.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
4
2022-02-10T02:28:42.000Z
2022-02-10T07:28:35.000Z
python/example/rolling_jelly_3d.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
python/example/rolling_jelly_3d.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
import sys sys.path.append('../') import os from pathlib import Path import time import numpy as np import scipy.optimize import pickle from py_diff_pd.common.common import ndarray, create_folder, rpy_to_rotation, rpy_to_rotation_gradient from py_diff_pd.common.common import print_info, print_ok, print_error, PrettyT...
43.748031
123
0.596112
f77a1cb3cacca7969d0870ed198fab84a5e50bb6
1,219
py
Python
Seeder/harvests/scheduler.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/harvests/scheduler.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/harvests/scheduler.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
from datetime import date, timedelta INITIAL_OFFSET = timedelta(days=5) class IntervalException(Exception): """ Exception to be raises when interval is behaving weirdly - as not an interval """ def get_dates_for_timedelta(interval_delta, start=None, stop=None, skip_weeke...
27.088889
71
0.658737
f77a21a447fe6b3c35623b572c478f1eadb74a6e
5,006
py
Python
pyanoled/ui/ControlApp.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
pyanoled/ui/ControlApp.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
pyanoled/ui/ControlApp.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
from pyanoled.Configuration import Configuration from pyanoled.State import State from pyanoled.ui.displays.Display import Display from pyanoled.ui.menus.MainMenu import MainMenu from logging import Logger from PIL import Image, ImageDraw from typing import Type import importlib import RPi.GPIO as GPIO import time ...
38.21374
92
0.564722
f77a2935aca856f682209112f60e4a50e14e95a4
1,630
py
Python
tests/test_model_function.py
simonzabrocki/GraphModels
b43e44a189d663364ae08de9a1d1305320854d63
[ "MIT" ]
null
null
null
tests/test_model_function.py
simonzabrocki/GraphModels
b43e44a189d663364ae08de9a1d1305320854d63
[ "MIT" ]
null
null
null
tests/test_model_function.py
simonzabrocki/GraphModels
b43e44a189d663364ae08de9a1d1305320854d63
[ "MIT" ]
null
null
null
import pytest from GraphModels.graphmodels.graphmodel import GraphModel nodes_1 = { 'In_1': {'type': 'input', 'unit': '1', 'name': 'Input 1'}, 'Par_1': {'type': 'parameter', 'unit': '1', 'name': 'Parameter 1'}, 'Var_1': {'type': 'variable', ...
27.627119
90
0.477301
f77a3ba483eec720a1e43ab4e2fd704ac658ad38
9,420
py
Python
samurai/likelihood.py
jlustigy/samurai
ed46e45600956581c94ae44d820e06c35c464962
[ "MIT" ]
1
2021-01-05T07:27:40.000Z
2021-01-05T07:27:40.000Z
samurai/likelihood.py
jlustigy/samurai
ed46e45600956581c94ae44d820e06c35c464962
[ "MIT" ]
null
null
null
samurai/likelihood.py
jlustigy/samurai
ed46e45600956581c94ae44d820e06c35c464962
[ "MIT" ]
null
null
null
import numpy as np import prior import reparameterize __all__ = ["lnprob", "lnprob_atmosphere"] ################################################################################ def lnprob(Y_array, *args): """ Log-probability function for mapping Parameters ---------- Returns ------- ""...
33.404255
163
0.630467
f77a465b5b28bad055d3322f4643ef7ff4fc93e6
13,077
py
Python
Tensorflow/source/google/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Tensorflow/source/google/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
2
2021-09-27T21:27:24.000Z
2021-10-15T10:45:29.000Z
Tensorflow/source/google/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2020-10-11T14:51:22.000Z
2020-10-11T14:51:22.000Z
#!/usr/bin/env python # Python bindings to the Google search engine # Copyright (c) 2009-2016, Mario Vilas # 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...
37.362857
145
0.650684
f77a611af61e4a1430bfb855ccb5f49f7b69cc20
6,602
py
Python
arc/settings.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
arc/settings.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
arc/settings.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 """ ARC's settings """ import os import string ################################################################## # If ARC communication with remote servers is desired, complete the following server dictionary. # Instructions for RSA key generation can be found here: # https...
44.013333
158
0.57422
f77a6b63863a8898f813b991a67e271f8b80fe83
7,549
py
Python
kedro/io/hdf_dataset.py
PedroAbreuQB/kedro
a38552a0266d4ad7b823f1640e98aefa6175fd33
[ "Apache-2.0" ]
null
null
null
kedro/io/hdf_dataset.py
PedroAbreuQB/kedro
a38552a0266d4ad7b823f1640e98aefa6175fd33
[ "Apache-2.0" ]
null
null
null
kedro/io/hdf_dataset.py
PedroAbreuQB/kedro
a38552a0266d4ad7b823f1640e98aefa6175fd33
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS"...
38.319797
91
0.637303
f77a8c93026ba3bc74cf5767ccd7b8cb4a9c8b3c
5,786
py
Python
troveclient/users.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
troveclient/users.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
troveclient/users.py
citrix-openstack-build/python-troveclient
4a82591c79b622757dc2e6f1c89a65ca4064f9d3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 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 ...
39.094595
78
0.630833
f77a927eeabf52b5e71fac5b765671b7094184c3
8,948
py
Python
python/tvm/contrib/debugger/debug_runtime.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/tvm/contrib/debugger/debug_runtime.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/tvm/contrib/debugger/debug_runtime.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.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...
34.415385
87
0.635226
f77a931549d002ed6dd5283a004c78cd57a7cd3b
21,124
py
Python
bw_plex/audfprint/audfprint_match.py
Hellowlol/bw_plex
86768d6ee89ee1c08d2f6e6468976e4c51135915
[ "MIT" ]
371
2018-01-01T17:07:06.000Z
2022-03-30T01:52:28.000Z
bw_plex/audfprint/audfprint_match.py
Hellowlol/bw_plex
86768d6ee89ee1c08d2f6e6468976e4c51135915
[ "MIT" ]
144
2018-01-01T22:36:36.000Z
2022-01-31T19:26:55.000Z
bw_plex/audfprint/audfprint_match.py
Hellowlol/bw_plex
86768d6ee89ee1c08d2f6e6468976e4c51135915
[ "MIT" ]
44
2018-01-02T07:58:45.000Z
2021-11-30T10:53:52.000Z
# coding=utf-8 """ audfprint_match.py Fingerprint matching code for audfprint 2014-05-26 Dan Ellis dpwe@ee.columbia.edu """ from __future__ import division, print_function import os import time import psutil import matplotlib.pyplot as plt import librosa import numpy as np import scipy.signal from . import audfprin...
44.008333
106
0.557423
f77a94332935663aa6261bc4df5318112ea559bc
3,727
py
Python
src/kalman.py
rafcy/HarpyTM
e91d0b7cce4a21eada642d12e2d0604ace0c179f
[ "MIT" ]
18
2021-03-26T11:12:02.000Z
2021-11-18T02:55:03.000Z
src/kalman.py
rafcy/HarpyTM
e91d0b7cce4a21eada642d12e2d0604ace0c179f
[ "MIT" ]
null
null
null
src/kalman.py
rafcy/HarpyTM
e91d0b7cce4a21eada642d12e2d0604ace0c179f
[ "MIT" ]
6
2021-03-26T13:25:58.000Z
2021-05-08T01:09:16.000Z
import numpy as np from numpy.linalg import inv # Kalman Filter Class class KalmanFilter: """ Simple Kalman filter """ def __init__(self, XY, B=np.array([0]), M=np.array([0])): stateMatrix = np.zeros((4, 1), np.float32) # [x, y, delta_x, delta_y] if XY != 0: stateMatrix = ...
35.160377
112
0.515696
f77add5f4b9ab5b6fcd77e77b65e71b63da18350
791
py
Python
openapi_client/api/__init__.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api/__init__.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api/__init__.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis into api package from openapi_client.api.alert_api import AlertApi from openapi_client.api.facility_api import FacilityApi from openapi_client.api.line_api import LineApi from openapi_client.api.live_facility_api import LiveFacilityApi from openapi_c...
41.631579
64
0.878635
f77af3844c66dc4417b678a2354cbdef00666fda
3,455
py
Python
accelerators/nio/nio_pe.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
accelerators/nio/nio_pe.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
accelerators/nio/nio_pe.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
''' nio_pe.py: A specialization of the PE class, for use with Nick's Accelerator ''' from core.defines import Operator from core.pe import PE from core.messaging import Message from core.utils import * class NioPE(PE): EXEC = 1 DONE = 3 RESP = 4 WAIT = 5 def __init__(self, system_clock_ref, m...
34.55
117
0.587265
f77afab46b6d0ff197f9231626879edbd4fb4618
4,264
py
Python
mediapipe/calculators/image/bilateral_filter_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/calculators/image/bilateral_filter_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/calculators/image/bilateral_filter_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/image/bilateral_filter_calculator.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from goo...
45.849462
398
0.817542
f77afcedfa888529bcf102591e9d7672cef54b4b
3,448
py
Python
{{cookiecutter.project_dir}}/update_actions.py
neuromation/cookiecutter-neuro-project
b21458d3fd9300237667ac67ba1811dc14012d7a
[ "Apache-2.0" ]
5
2019-09-17T14:00:13.000Z
2020-08-31T08:05:28.000Z
{{cookiecutter.project_dir}}/update_actions.py
neuromation/cookiecutter-neuro-project
b21458d3fd9300237667ac67ba1811dc14012d7a
[ "Apache-2.0" ]
249
2019-09-10T13:41:30.000Z
2020-09-16T10:12:05.000Z
{{cookiecutter.project_dir}}/update_actions.py
neuro-inc/cookiecutter-neuro-project
a1ee9a642dbf13e74e7f5726848fbb41ed893cb5
[ "Apache-2.0" ]
1
2019-09-20T12:29:13.000Z
2019-09-20T12:29:13.000Z
"""Scans directories for files that satisfy a specific mask and updates version tags of all actions. Example: python3 update_actions.py live.yml action.y*ml folder/*.y*ml """ import argparse import re from pathlib import Path from typing import Dict, List, Optional from github import Github ACTION_PATTERN = r"...
35.546392
118
0.581787
f77b08fdeeceebace933d1e6928058a28201892c
3,053
py
Python
google-cloud-sdk/lib/surface/dataflow/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/dataflow/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/dataflow/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google 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 applicable law or ag...
36.345238
80
0.75303
f77b0a9c417ba0b10fdf34fd1c6d7320083e71be
44,178
py
Python
tensor2tensor/models/research/autoencoders.py
2877992943/tensor2tensor
84cab42173724689ebddf853351a5aae704035a5
[ "Apache-2.0" ]
2
2020-01-14T16:56:54.000Z
2020-01-17T23:16:21.000Z
tensor2tensor/models/research/autoencoders.py
2877992943/tensor2tensor
84cab42173724689ebddf853351a5aae704035a5
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/research/autoencoders.py
2877992943/tensor2tensor
84cab42173724689ebddf853351a5aae704035a5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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 # # Unless required by applicable...
38.382276
84
0.681561
f77b0e5568f6ae3c00400c142895bb5aaeda0132
4,822
py
Python
data/level/level10241.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level10241.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level10241.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = {'level_index': 10241, 'move_count': '30', 'board_info': {(0, 8): {'next': (0, -1), 'prev': (1, 0)}, (0, 7): {'next': (0, -1), 'prev': (0, 1)}, (0, 6): {'next': (0, -1), 'prev': (0, 1)}, (0, 5): {'next': (0, -1), 'prev': (0, 1)}, (0, 4): {'next': (0, -1), 'pr...
104.826087
117
0.249067
f77b1382c718408d3f777a2ed91cb262b56ca66c
4,937
py
Python
autoleagueplay/match_exercise.py
RLBot/AutoLeaguePlay
eaff05532eab179d1fa8635541dad17cd0a9b82c
[ "MIT" ]
1
2019-08-17T18:18:54.000Z
2019-08-17T18:18:54.000Z
autoleagueplay/match_exercise.py
RLBot/AutoLeaguePlay
eaff05532eab179d1fa8635541dad17cd0a9b82c
[ "MIT" ]
11
2019-08-22T07:44:12.000Z
2019-10-30T18:16:09.000Z
autoleagueplay/match_exercise.py
RLBot/AutoLeaguePlay
eaff05532eab179d1fa8635541dad17cd0a9b82c
[ "MIT" ]
4
2019-08-17T19:43:12.000Z
2020-12-10T18:53:53.000Z
import time from dataclasses import dataclass, field from typing import Optional from rlbot.setup_manager import SetupManager from rlbot.training.training import Grade, Pass, Fail from rlbot.utils.game_state_util import GameState from rlbot.utils.structures.game_data_struct import GameTickPacket from rlbot.utils.struc...
38.874016
144
0.725339
f77bb6a1231b763b2308e49f46de346ccd47946e
1,386
py
Python
zilencer/management/commands/compare_messages.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zilencer/management/commands/compare_messages.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zilencer/management/commands/compare_messages.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from typing import Any from six.moves import zip import ijson from django.core.management.base import BaseCommand, CommandParser class Command(BaseCommand): help = """ Render messages to a file. Usage: python manage.py render_...
36.473684
88
0.606061
f77bd4caf852a875c9ec0fe156a7c5ae532d6136
1,026
py
Python
pythonutils/sftpNode.py
ucguy4u/Utilities
70686c6ca83a6b2a0f1286e493bc4de6d2611070
[ "Apache-2.0" ]
null
null
null
pythonutils/sftpNode.py
ucguy4u/Utilities
70686c6ca83a6b2a0f1286e493bc4de6d2611070
[ "Apache-2.0" ]
null
null
null
pythonutils/sftpNode.py
ucguy4u/Utilities
70686c6ca83a6b2a0f1286e493bc4de6d2611070
[ "Apache-2.0" ]
null
null
null
import paramiko import os class MySFTPClient(paramiko.SFTPClient): def put_dir(self, source, target): """ Uploads the contents of the source directory to the target path. The target directory needs to exists. All subdirectories in source are created under target. "...
38
85
0.560429
f77be8dc4d71a18ac3b94f4adcce6c844248a322
635
py
Python
docs/source/setup.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
docs/source/setup.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
docs/source/setup.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
from setuptools import setup VERSION = "0.0.1" setup( name="carla", version=VERSION, package_dir={"carla": "carla"}, install_requires=[ "scipy==1.6.2", "lime==0.2.0.1", "mip==1.12.0", "numpy==1.19.4", "pandas==1.1.4", "scikit-learn==0.23.2", "ten...
21.166667
48
0.453543
f77c43734c3eca1466b417f402b117f38a6394eb
9,429
py
Python
oslo/log/openstack/common/rpc/matchmaker.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
oslo/log/openstack/common/rpc/matchmaker.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
oslo/log/openstack/common/rpc/matchmaker.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Cloudscaling Group, 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 applicabl...
29.101852
78
0.636971
f77c9309a3df517aec11d3e2272815562607ca21
115
py
Python
run_api_f.py
phucty/mtab_dev
1334b65f77454b7188e1a80d42c5cbc123799edd
[ "MIT" ]
null
null
null
run_api_f.py
phucty/mtab_dev
1334b65f77454b7188e1a80d42c5cbc123799edd
[ "MIT" ]
null
null
null
run_api_f.py
phucty/mtab_dev
1334b65f77454b7188e1a80d42c5cbc123799edd
[ "MIT" ]
null
null
null
import uvicorn from api_f import app if __name__ == "__main__": uvicorn.run(app, host="localhost", port=8000)
19.166667
49
0.721739
f77ca9bf916d75fba85547944809dd77e4b4fed1
310
py
Python
Problems/0153/solve.py
luanshiyinyang/LCNotes
093b109aefd65c2263f59472f7118059d7eeb256
[ "MIT" ]
3
2021-09-04T05:24:20.000Z
2022-02-19T08:31:28.000Z
Problems/0153/solve.py
luanshiyinyang/LCNotes
093b109aefd65c2263f59472f7118059d7eeb256
[ "MIT" ]
null
null
null
Problems/0153/solve.py
luanshiyinyang/LCNotes
093b109aefd65c2263f59472f7118059d7eeb256
[ "MIT" ]
null
null
null
class Solution: def findMin(self, nums: List[int]) -> int: left, right = 0, len(nums) - 1 while left < right: mid = (left + right) // 2 if nums[mid] < nums[right]: right = mid else: left = mid + 1 return nums[left]
31
46
0.445161
f77cf78f5919688c8a19ba648e4e3f1f35f1f91e
598
py
Python
python/hash_table/0001_two_sum.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/hash_table/0001_two_sum.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/hash_table/0001_two_sum.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution: def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ d = {} for i in range(0, len(nums)): if nums[i] in d: return [d[nums[i]], i] d[target - nums[i]] = i def...
21.357143
42
0.421405
f77d3c198073ee1d13e1205c3d1c6aa27da5a4df
1,094
py
Python
LC/305.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/305.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/305.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def numIslands2(self, m, n, positions): """ :type m: int :type n: int :type positions: List[List[int]] :rtype: List[int] """ ## union-find h = m w = n t = [None for x in range(h * w)] res=[] ...
26.047619
43
0.390311
f77d771bf90f743d0b05960e308c374161eb4928
58,165
py
Python
home_platform/constants.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
1
2021-07-27T09:15:43.000Z
2021-07-27T09:15:43.000Z
home_platform/constants.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
null
null
null
home_platform/constants.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
1
2021-07-27T09:21:12.000Z
2021-07-27T09:21:12.000Z
MODEL_CATEGORY_MAPPING = { "header": 'index,' 'model_id,' 'fine_grained_class,' 'coarse_grained_class,' 'empty_struct_obj,' 'nyuv2_40class,' 'wnsynsetid,' 'wnsynsetkey', "coarse": { 'ATM': 'ATM', 'a...
35.771833
62
0.463853
f77d951c5f6573a2357ba10da14ead2c720abb52
3,749
py
Python
tests/test_naturalkey.py
wq/django-natural-keys
58e9a15c9c5672171fed9497c4a5200518b333a6
[ "MIT" ]
32
2016-03-07T20:40:42.000Z
2022-03-17T07:25:33.000Z
tests/test_naturalkey.py
wq/django-natural-keys
58e9a15c9c5672171fed9497c4a5200518b333a6
[ "MIT" ]
16
2017-05-02T16:18:22.000Z
2021-08-24T16:02:10.000Z
tests/test_naturalkey.py
wq/django-natural-keys
58e9a15c9c5672171fed9497c4a5200518b333a6
[ "MIT" ]
12
2016-05-06T11:34:02.000Z
2020-07-02T18:15:59.000Z
from django.test import TestCase from tests.test_app.models import ( NaturalKeyParent, NaturalKeyChild, ModelWithSingleUniqueField, ModelWithExtraField, ModelWithConstraint ) from django.db.utils import IntegrityError # Tests for natural key models class NaturalKeyTestCase(TestCase): def test_naturalkey_...
30.983471
75
0.591891
f77da6b9f257a3320758cae4c45a60b5638adb12
1,186
py
Python
onadata/apps/restservice/tasks.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/restservice/tasks.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/restservice/tasks.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import import logging from celery import shared_task from django.conf import settings from onadata.apps.restservice.models import RestService @shared_task(bind=True) def service_definition_task(self, rest_service_id, data):...
31.210526
92
0.710793
f77da81dd6d3d794e505918105b0a761b8844b3d
14,014
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
42.466667
206
0.659269
f77dd5f196064c3f439fc16a129f264a2c571a07
24,742
py
Python
scout/adapter/mongo/variant_loader.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/adapter/mongo/variant_loader.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/adapter/mongo/variant_loader.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # stdlib modules import logging import re import pathlib import tempfile from datetime import datetime from pprint import pprint as pp # Third party modules import pymongo from pymongo.errors import DuplicateKeyError, BulkWriteError from cyvcf2 import VCF from intervaltree import IntervalTree...
36.818452
107
0.550117
f77de33832592583ddda71272aacc42c607c9411
27,926
py
Python
train.py
holman57/Lafite
9e5981a666cd2dcd3ff2a7f38229d6b8678ce6bb
[ "MIT" ]
45
2022-03-10T23:49:44.000Z
2022-03-31T21:47:45.000Z
train.py
holman57/Lafite
9e5981a666cd2dcd3ff2a7f38229d6b8678ce6bb
[ "MIT" ]
7
2022-03-13T15:13:18.000Z
2022-03-31T16:57:38.000Z
train.py
holman57/Lafite
9e5981a666cd2dcd3ff2a7f38229d6b8678ce6bb
[ "MIT" ]
8
2022-03-10T23:49:29.000Z
2022-03-31T18:20:17.000Z
import os import click import re import json import tempfile import torch import dnnlib from training import training_loop from metrics import metric_main from torch_utils import training_stats from torch_utils import custom_ops #---------------------------------------------------------------------------- class Use...
43.70266
232
0.634391
f77deae144f924e7da9c000fd3508e1ad567fab4
1,552
py
Python
examples/example5.py
dfornika/drmaa-python
3023bec6533315a8b6d8cbd30b785c8793b41c85
[ "BSD-3-Clause" ]
79
2015-03-01T15:19:58.000Z
2022-01-14T08:58:55.000Z
examples/example5.py
dfornika/drmaa-python
3023bec6533315a8b6d8cbd30b785c8793b41c85
[ "BSD-3-Clause" ]
61
2015-04-08T07:10:34.000Z
2021-10-06T10:24:23.000Z
examples/example5.py
drmaa-python/drmaa-python
ed6b926074d730f6fc37505360f65b8b79e8797f
[ "BSD-3-Clause" ]
33
2015-04-04T10:22:08.000Z
2021-07-22T13:15:51.000Z
#!/usr/bin/env python from __future__ import print_function import drmaa import time import os def main(): """Submit a job, and check its progress. Note, need file called sleeper.sh in home directory. """ s = drmaa.Session() s.initialize() print('Creating job template') jt = s.createJobTe...
31.673469
88
0.652706
f77dfde3c62e0d533505f438d2d8b6fa3a11a3e9
1,913
py
Python
st2client/st2client/utils/color.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2client/st2client/utils/color.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2client/st2client/utils/color.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
26.569444
76
0.679561
f77e11cafe1ccb6071432ea4e5ec1fcac0b574c3
229
py
Python
src/Application/PythonScriptModule/pymodules_old/usr/run_command.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2018-04-02T15:38:10.000Z
2018-04-02T15:38:10.000Z
src/Application/PythonScriptModule/pymodules_old/usr/run_command.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/usr/run_command.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2021-09-04T12:37:34.000Z
2021-09-04T12:37:34.000Z
"""just to overcome the prob that console PyLoad uses import, and the parser there prevents using '(' in args so can't do reload :p probably a good idea to add a proper py console soon-ish.""" import input input = reload(input)
32.714286
69
0.746725
f77e19c0d569f999b48b98e3ab29329c5028deca
57
py
Python
src/morpheus/visuals/__init__.py
eliavw/morpheus
01c6d15416188254cfdcc7fe9461069cbf8dbe63
[ "MIT" ]
null
null
null
src/morpheus/visuals/__init__.py
eliavw/morpheus
01c6d15416188254cfdcc7fe9461069cbf8dbe63
[ "MIT" ]
null
null
null
src/morpheus/visuals/__init__.py
eliavw/morpheus
01c6d15416188254cfdcc7fe9461069cbf8dbe63
[ "MIT" ]
null
null
null
from .diagrams import show_diagram, diagram_to_dotstring
28.5
56
0.877193
f77e2c27199c07a58982182ef79e66a999505685
5,305
py
Python
dipy/reconst/tests/test_peak_finding.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
2
2018-07-25T14:04:20.000Z
2021-02-10T07:10:10.000Z
dipy/reconst/tests/test_peak_finding.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/reconst/tests/test_peak_finding.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
2
2018-07-24T21:20:54.000Z
2018-08-27T04:08:24.000Z
from __future__ import division, print_function, absolute_import import numpy as np import numpy.testing as npt from dipy.reconst.recspeed import (local_maxima, remove_similar_vertices, search_descending) from dipy.data import get_sphere, get_data from dipy.core.sphere import unique_...
36.840278
77
0.655042
f77e530c646c4647bbb45906bfc62ff223990bb5
258
py
Python
code/LIBS/google_image_search/json2urls.py
mikiec84/3dwikipedia
7fbdac68cbf6daef29f2f9985fbb0b9519e63c90
[ "MIT" ]
13
2015-03-07T18:02:56.000Z
2021-10-09T04:06:18.000Z
code/LIBS/google_image_search/json2urls.py
mikiec84/3dwikipedia
7fbdac68cbf6daef29f2f9985fbb0b9519e63c90
[ "MIT" ]
2
2015-12-09T02:43:07.000Z
2016-02-07T02:51:06.000Z
code/LIBS/google_image_search/json2urls.py
mikiec84/3dwikipedia
7fbdac68cbf6daef29f2f9985fbb0b9519e63c90
[ "MIT" ]
2
2016-07-17T16:09:47.000Z
2018-10-27T17:02:36.000Z
import sys import json infile = open(sys.argv[1],'r') if len(sys.argv) > 2: outfile = open(sys.argv[2],'w') else: outfile = sys.stdout js = json.load(infile) for x in js['results']: outfile.write(x['url']+'\n') infile.close() outfile.close()
15.176471
35
0.627907
f77e6a45d05649236fe53232bb3e4665b68f13e1
535
py
Python
flexget/tests/test_whatcd.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/tests/test_whatcd.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_whatcd.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import pytest @pytest.mark.online class TestWhatCDOnline(object): config = """ tasks: badlogin: whatcd: username: invalid ...
26.75
78
0.665421
f77e6e18377adee9365158a6142abe0064691fb3
6,274
py
Python
Logistic_Regression.py
qing42102/deep_learning_examples
d7695673e0c4bfe211f303ea5444765e8d4fe5f4
[ "MIT" ]
null
null
null
Logistic_Regression.py
qing42102/deep_learning_examples
d7695673e0c4bfe211f303ea5444765e8d4fe5f4
[ "MIT" ]
null
null
null
Logistic_Regression.py
qing42102/deep_learning_examples
d7695673e0c4bfe211f303ea5444765e8d4fe5f4
[ "MIT" ]
null
null
null
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% import numpy as np # import tensorflow as tf from PIL import Image import os import matplotlib.pyplot as plt import pickle # %% def load_images(path: str) -> list: ''' Load images from a directory. Normalize the image to...
29.59434
103
0.662576
f77e70bf2569d3f1debab2653c94a02e7f53860a
9,921
py
Python
esengine/fields.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
null
null
null
esengine/fields.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
null
null
null
esengine/fields.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
null
null
null
# coding: utf-8 from esengine.bases.py3 import * # noqa from dateutil import parser from datetime import datetime from six import string_types from esengine.bases.field import BaseField from esengine.exceptions import ValidationError, FieldTypeMismatch from esengine.utils.validation import FieldValidator __all__ = [ ...
31.003125
90
0.569096
f77e9c98d90711025e587bee0d45e9a12d5727e4
7,751
py
Python
webtech/webtech.py
nullghost89/webtech
179a72b76c1aa49bfd1769201868bb9a8780b8b7
[ "BSD-3-Clause" ]
null
null
null
webtech/webtech.py
nullghost89/webtech
179a72b76c1aa49bfd1769201868bb9a8780b8b7
[ "BSD-3-Clause" ]
null
null
null
webtech/webtech.py
nullghost89/webtech
179a72b76c1aa49bfd1769201868bb9a8780b8b7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import json import random try: from urlparse import urlparse except ImportError: # For Python 3 from urllib.parse import urlparse from .__burp__ import BURP from . import database from .utils import Format, FileNotFoundException, ConnectionException fro...
35.392694
162
0.591924
f77e9d43cbab386198b1373c6a4a00fc2221238c
3,381
py
Python
neuroscience/scidb/stream_mask.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
3
2017-08-08T09:07:27.000Z
2018-09-12T14:54:56.000Z
neuroscience/scidb/stream_mask.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
1
2020-10-13T04:13:10.000Z
2020-10-13T04:13:10.000Z
neuroscience/scidb/stream_mask.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
2
2018-02-26T18:03:23.000Z
2018-03-20T08:29:00.000Z
#!/usr/bin/python # #DFZ 11/15/2016: it's hard to control the chunk size read from the # stream() interface, see run_mri_stream.output for a concrete idea. # #the following import block is for testing only import dipy.core.gradients as dpg import os.path as op from dipy.segment.mask import median_otsu import nibabel ...
35.21875
144
0.636794
f77ea87328e92475ab9a4161ac2dfa34cb5227ee
83
py
Python
Tests/Runnable1/r_starargsonly_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
5
2019-05-26T20:48:36.000Z
2021-07-09T01:38:38.000Z
Tests/Runnable1/r_starargsonly_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
null
null
null
Tests/Runnable1/r_starargsonly_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
1
2022-02-10T07:14:58.000Z
2022-02-10T07:14:58.000Z
from r_starargsonly import spam spam() spam(42) spam("one", 2, "buckle my shoe")
11.857143
32
0.698795
f77ec05bbaf548201cd88cbd88481052e424a308
7,990
py
Python
arviz/plots/backends/bokeh/posteriorplot.py
ous8292/arviz
3d788cc7157b764130ee6f84bb2f42021e5ab258
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/bokeh/posteriorplot.py
ous8292/arviz
3d788cc7157b764130ee6f84bb2f42021e5ab258
[ "Apache-2.0" ]
null
null
null
arviz/plots/backends/bokeh/posteriorplot.py
ous8292/arviz
3d788cc7157b764130ee6f84bb2f42021e5ab258
[ "Apache-2.0" ]
null
null
null
"""Bokeh Plot posterior densities.""" from numbers import Number from typing import Optional import numpy as np from bokeh.models.annotations import Title from ....stats import hdi from ....stats.density_utils import get_bins, histogram from ...kdeplot import plot_kde from ...plot_utils import ( _scale_fig_size, ...
28.741007
100
0.542678
f77ed0d6ee211b64542ccba6fe96f9a219bec958
6,121
py
Python
ibis/expr/signature.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2021-06-15T07:28:59.000Z
2021-06-15T07:28:59.000Z
ibis/expr/signature.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-10-02T23:51:48.000Z
2020-10-03T00:54:29.000Z
ibis/expr/signature.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
2
2020-11-27T22:21:50.000Z
2021-04-03T09:36:25.000Z
import inspect from collections import OrderedDict import ibis.expr.rules as rlz import ibis.util as util try: from cytoolz import unique except ImportError: from toolz import unique _undefined = object() # marker for missing argument class Argument: """Argument definition.""" __slots__ = 'valid...
31.389744
79
0.586342
f77eee7be551e41c5361cb6fe057f5147a4692eb
10,261
py
Python
scout/utils/scout_requests.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/utils/scout_requests.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/utils/scout_requests.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
import xml.etree.ElementTree as et import logging import gzip import urllib.request from urllib.error import HTTPError, URLError from socket import timeout from scout.constants import CHROMOSOMES from scout.utils.ensembl_rest_clients import EnsemblBiomartClient LOG = logging.getLogger(__name__) HPO_URL = ( "http...
26.931759
113
0.661144
f77f0bdb289ae987c63d0cb7cd851698e0d39653
2,161
py
Python
Sensors/AltIMU-10/python-AltIMU-10v5/AltIMU-10.py
DerZwergGimli/SysArchitecturProject
942142e10d05da4d9bfaaa37ff9fdd1cb8715135
[ "MIT" ]
1
2019-04-24T13:06:19.000Z
2019-04-24T13:06:19.000Z
Sensors/AltIMU-10/python-AltIMU-10v5/AltIMU-10.py
DerZwergGimli/SysArchitecturProject
942142e10d05da4d9bfaaa37ff9fdd1cb8715135
[ "MIT" ]
5
2020-03-04T23:02:59.000Z
2021-12-09T21:21:15.000Z
Sensors/AltIMU-10/python-AltIMU-10v5/AltIMU-10.py
DerZwergGimli/SysArchitecturProject
942142e10d05da4d9bfaaa37ff9fdd1cb8715135
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Show the main interfaces of the three sensor classes # # from time import sleep import redis from altimu.lsm6ds33 import LSM6DS33 from altimu.lis3mdl import LIS3MDL from altimu.lps25h import LPS25H from datetime import datetime imu = LSM6DS33() # Accelerometer and Gyroscope imu.enable(...
34.854839
74
0.719574
f77f245e47f9d2d8d54ec52af95dc268948f5e39
4,465
py
Python
src/Application/PythonScriptModule/pymodules_old/naali.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/naali.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/naali.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
"""namespace config, 'cause the c++ side doesn't do it too nicely""" from __main__ import _pythonscriptmodule from __main__ import _naali import rexviewer as r #the old module is still used , while porting away from it import sys #for stdout redirecting #from _naali import * # for core types like PythonQt.private.Att...
31.892857
120
0.713774
f77f358b08163ab848950ee51ec97b9aaf854299
2,773
py
Python
models/hyperparameter_scripts/eICU/tpc_stage2.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
29
2020-11-23T16:27:41.000Z
2022-03-25T16:05:24.000Z
models/hyperparameter_scripts/eICU/tpc_stage2.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
2
2020-11-28T04:11:12.000Z
2021-08-23T12:42:08.000Z
models/hyperparameter_scripts/eICU/tpc_stage2.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
9
2021-02-23T07:12:58.000Z
2022-01-13T15:11:59.000Z
from eICU_preprocessing.split_train_test import create_folder from models.run_tpc import TPC import numpy as np import random from models.final_experiment_scripts.best_hyperparameters import best_global from models.initialise_arguments import initialise_tpc_arguments def get_hyperparam_config(dataset): c = initi...
40.779412
161
0.5467
f77f418bc655a783755679b646c9b4f0e9351760
603
py
Python
desafios/Mundo 3/Ex078.py
duartecgustavo/Python---Estudos-
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
6
2021-01-20T20:43:39.000Z
2021-08-13T15:44:10.000Z
desafios/Mundo 3/Ex078.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
null
null
null
desafios/Mundo 3/Ex078.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
1
2020-09-06T03:34:19.000Z
2020-09-06T03:34:19.000Z
# Desafio 78 - Aula 17 : Leia 5 valores adicionando-os em uma lista. # Mostre o MAIOR e o MENOR em suas respectivas posições lista = list(int(input(f'Me diga o valor da posição {pos+1}: '))for pos in range(5)) print('='*40) print(f'O maior valor digitado foi {max(lista)} e aparece nas posições ',end=' ') for posicao...
37.6875
84
0.661692
f77f4535efe958b2491d859465a5730a893ede5b
8,437
py
Python
src/bloombox/schema/identity/ids/UserDoctorRec_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/identity/ids/UserDoctorRec_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/identity/ids/UserDoctorRec_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: identity/ids/UserDoctorRec.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import r...
61.583942
1,051
0.779898
f77f4b1bf53e4a8e949809f17efaed33cf68c8ab
2,317
py
Python
src/CryptoPlus/SelfTest/Cipher/test_CAST.py
koujiandou-mhfg/python-cryptoplus
a5a1f8aecce4ddf476b2d80b586822d9e91eeb7d
[ "MIT" ]
64
2015-01-15T10:41:41.000Z
2022-01-10T23:51:42.000Z
src/CryptoPlus/SelfTest/Cipher/test_CAST.py
koujiandou-mhfg/python-cryptoplus
a5a1f8aecce4ddf476b2d80b586822d9e91eeb7d
[ "MIT" ]
5
2016-01-05T17:48:22.000Z
2018-02-22T04:32:17.000Z
src/CryptoPlus/SelfTest/Cipher/test_CAST.py
koujiandou-mhfg/python-cryptoplus
a5a1f8aecce4ddf476b2d80b586822d9e91eeb7d
[ "MIT" ]
53
2015-04-14T00:17:02.000Z
2022-03-12T05:32:05.000Z
# -*- coding: utf-8 -*- # # SelfTest/Cipher/CAST.py: Self-test for the CAST-128 (CAST5) cipher # # ======================================================================= # Copyright (C) 2008 Dwayne C. Litzenberger <dlitz@dlitz.net> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of...
38.616667
73
0.681916
f77f8a6ac2d890f1ca6213ea38252cceea0134e8
20,281
py
Python
reveries/maya/tools/mayalookassigner/commands.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
reveries/maya/tools/mayalookassigner/commands.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
reveries/maya/tools/mayalookassigner/commands.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import logging import json import os import maya.cmds as cmds from avalon import io, api from avalon.maya.pipeline import AVALON_CONTAINER_ID from ....utils import get_representation_path_ from ....maya import lib, utils from ...pipeline import ( get_container_from_namespace, iter_containers_from_namespace,...
30.360778
79
0.564716
f77fa334f9bca89e1074654aa0acbd58db44f41b
3,666
py
Python
data/global-configuration/packs/linux/collectors/collector_diskusage.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
data/global-configuration/packs/linux/collectors/collector_diskusage.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
data/global-configuration/packs/linux/collectors/collector_diskusage.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import os import re from opsbro.collector import Collector class DiskUsage(Collector): def launch(self): logger = self.logger # logger.debug('getDiskUsage: start') # logger.debug('getDiskUsage: attempting Popen') if os.name == 'nt': self.set_not_eligible('This...
39.847826
117
0.524004
f77ff108973e7e15899ccc62d2cddb38a1a05efa
8,803
py
Python
lamb/lnsetup.py
rawlins/lambda-notebook
5da92a8625b9ad516d5084ca833d71eec14e0da3
[ "BSD-3-Clause" ]
13
2016-01-18T17:33:50.000Z
2022-01-19T02:43:08.000Z
lamb/lnsetup.py
rawlins/lambda-notebook
5da92a8625b9ad516d5084ca833d71eec14e0da3
[ "BSD-3-Clause" ]
11
2016-02-10T20:48:44.000Z
2019-09-06T15:31:53.000Z
lamb/lnsetup.py
rawlins/lambda-notebook
5da92a8625b9ad516d5084ca833d71eec14e0da3
[ "BSD-3-Clause" ]
4
2018-11-27T14:45:49.000Z
2021-06-05T17:08:40.000Z
import os, os.path, shutil, json, sys from tempfile import TemporaryDirectory try: import IPython from IPython.terminal.ipapp import TerminalIPythonApp from traitlets.config import Config except: print("Warning: Failed to load IPython/Jupyter. Some features disabled.") import lamb # note: can't impo...
35.212
95
0.648983
f77ffe0ea7ebcdd1148b98dba85b716ca08a565c
4,497
py
Python
src/lib/reportlab/graphics/charts/areas.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/lib/reportlab/graphics/charts/areas.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/lib/reportlab/graphics/charts/areas.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
#Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/areas.py """This module defines a Area mixin classes """ __version__=''' $Id: areas.py,v 1.1 2006/05/26 19:19:38 thomas Exp $ ''' ...
48.354839
118
0.537914
f78005cead19bae5e40f50ad391145d24bb2c2ee
3,765
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_htu21d.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_htu21d.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_htu21d.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2018 ktown for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_htu21d` ==================================================== This is a breakout for the Adafruit HTU21D-F humidity sensor breakout. * Author(s): ktown Implementation Notes -------------------- **Hardware:** ...
29.414063
78
0.615671
f7805947878c214a3efec9f0fcec03b795283f14
4,349
py
Python
tuna/infrastructure/arguments/tests/test_fetcharguments.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
tuna/infrastructure/arguments/tests/test_fetcharguments.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
tuna/infrastructure/arguments/tests/test_fetcharguments.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
# python standard library import unittest # third-party from mock import MagicMock # the ape from optimization.infrastructure.arguments.fetcharguments import Fetch, FetchStrategy from optimization.infrastructure.arguments.basestrategy import BaseStrategy import optimization.infrastructure.arguments.fetcharguments ...
31.977941
88
0.634859
f7807a4d37cd0e3183f2aebc54b4c36a3f42d293
90,639
py
Python
sfp/plotting.py
billbrod/spatial-frequency-preferences
4a83fe209bbbf8130f297bcc6e17cb79b36006c2
[ "MIT" ]
3
2020-12-17T14:28:17.000Z
2022-03-13T20:17:14.000Z
sfp/plotting.py
billbrod/spatial-frequency-preferences
4a83fe209bbbf8130f297bcc6e17cb79b36006c2
[ "MIT" ]
null
null
null
sfp/plotting.py
billbrod/spatial-frequency-preferences
4a83fe209bbbf8130f297bcc6e17cb79b36006c2
[ "MIT" ]
null
null
null
#!/usr/bin/python """high-level functions to make relevant plots """ import matplotlib as mpl # we do this because sometimes we run this without an X-server, and this backend doesn't need # one. We set warn=False because the notebook uses a different backend and will spout out a big # warning to that effect; that's unn...
47.134165
123
0.639625
f7808b3ce00cc78ed3ee7e19ff27631471ffe167
1,328
py
Python
pyirf/statistics.py
nbiederbeck/pyirf
87abc94fed4f078e185cf930f92198fd40f6f571
[ "MIT" ]
null
null
null
pyirf/statistics.py
nbiederbeck/pyirf
87abc94fed4f078e185cf930f92198fd40f6f571
[ "MIT" ]
null
null
null
pyirf/statistics.py
nbiederbeck/pyirf
87abc94fed4f078e185cf930f92198fd40f6f571
[ "MIT" ]
null
null
null
import numpy as np from .utils import is_scalar def li_ma_significance(n_on, n_off, alpha=0.2): """ Calculate the Li & Ma significance. Formula (17) doi.org/10.1086/161295 This functions returns 0 significance when n_on < alpha * n_off instead of the negative sensitivities that would result fro...
25.056604
72
0.626506
f780a25dd5beb0ad38f8162afa76fc0f96e4c3d3
5,141
py
Python
river/drift/kswin.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/drift/kswin.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/drift/kswin.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
import collections import itertools import random import typing from scipy import stats from river.base import DriftDetector class KSWIN(DriftDetector): r"""Kolmogorov-Smirnov Windowing method for concept drift detection. Parameters ---------- alpha Probability for the test statistic of the...
32.745223
104
0.618946
f781139c2408df6a6fbe732c57d5a1384590cdf3
8,216
py
Python
chroma/uboone/materials.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/uboone/materials.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/uboone/materials.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
import os,sys import numpy as np # This module has functions and defintions to load the optical # properties required by the MicroBooNE detector materialnames = ["LAr", # liquid argon [ may have its own module one day ] "ArGas", # gaseous argon ...
45.392265
138
0.551485
f78114cee7bc04d76be4a523b6b4800af97983e0
453
py
Python
design_pattern/proxy/framework.py
AustinHellerRepo/DesignPatternDemo
2409315eb7494ff738e64e1ca51206fb46083040
[ "MIT" ]
null
null
null
design_pattern/proxy/framework.py
AustinHellerRepo/DesignPatternDemo
2409315eb7494ff738e64e1ca51206fb46083040
[ "MIT" ]
null
null
null
design_pattern/proxy/framework.py
AustinHellerRepo/DesignPatternDemo
2409315eb7494ff738e64e1ca51206fb46083040
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import List from abc import ABC, abstractmethod class RealObject(ABC): """ This class represents a real object in the proxy design pattern. """ @abstractmethod def get_list(self) -> List: raise NotImplementedError() class ProxyObject(ABC): """ This class repr...
18.875
66
0.748344
f781662889d0568e77c2067dec791d8361d26a3f
4,318
py
Python
recursion/paths.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
recursion/paths.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
recursion/paths.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Problem: Count all paths from top left to bottom right, # given that you can only go right or down. # Every move there are two choices, move right or left # - recursively take choice 1/2 till you reach dest(rows, cols) # # Recurrence relation # T(m,n) = T(m-1, n) + T(m, n-1) # T(0,1) = 1 # ...
26.654321
101
0.562529
f7816dbfca2232da2cf96152aedd0fa63c701eb5
3,986
py
Python
intersight/models/workflow_workflow_meta_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/workflow_workflow_meta_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/workflow_workflow_meta_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class WorkflowWorkflowMetaList(object): """ NOTE: T...
25.883117
88
0.564727
f7819a585f6c3f3dd90cb51dbb6ba54456966df1
12,279
py
Python
skcosmo/feature_selection/_base.py
lab-cosmo/scikit-cosmo
8121cb74d3577618936c809b2f1b2cd698362d2f
[ "BSD-3-Clause" ]
null
null
null
skcosmo/feature_selection/_base.py
lab-cosmo/scikit-cosmo
8121cb74d3577618936c809b2f1b2cd698362d2f
[ "BSD-3-Clause" ]
null
null
null
skcosmo/feature_selection/_base.py
lab-cosmo/scikit-cosmo
8121cb74d3577618936c809b2f1b2cd698362d2f
[ "BSD-3-Clause" ]
null
null
null
""" Sequential feature selection """ from .._selection import ( _CUR, _FPS, _PCovCUR, _PCovFPS, ) class FPS(_FPS): """ Transformer that performs Greedy Feature Selection using Farthest Point Sampling. Parameters ---------- initialize: int, list of int, or 'random', default=0 ...
36.436202
95
0.651112
f781b4367a07a877f9ba3e1cf67017afb2011516
12,281
py
Python
src/test/tinc/tincrepo/mpp/gpdb/tests/dispatch/interconnect/udp/test_ic_fc_guc_single.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
src/test/tinc/tincrepo/mpp/gpdb/tests/dispatch/interconnect/udp/test_ic_fc_guc_single.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
src/test/tinc/tincrepo/mpp/gpdb/tests/dispatch/interconnect/udp/test_ic_fc_guc_single.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
""" Copyright (c) 2004-Present Pivotal Software, Inc. This program and the accompanying materials are made available under the terms of the 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....
40.003257
101
0.651494
f781c4b455ec3c7ba777fcfd74eb8b7c2b8e9731
3,931
py
Python
proxmoxmanager/utils/classes/users.py
igorlitvak/proxmoxmanager
3cd31a394350dd555236fa363b37fcb9e86fa20c
[ "MIT" ]
null
null
null
proxmoxmanager/utils/classes/users.py
igorlitvak/proxmoxmanager
3cd31a394350dd555236fa363b37fcb9e86fa20c
[ "MIT" ]
null
null
null
proxmoxmanager/utils/classes/users.py
igorlitvak/proxmoxmanager
3cd31a394350dd555236fa363b37fcb9e86fa20c
[ "MIT" ]
null
null
null
from ..api import APIWrapper from typing import Tuple, Dict, Any class ProxmoxUser: def __init__(self, api: APIWrapper, userid: str): self._api = api self._userid = userid self._fulluserid = userid + "@pve" @property def id(self) -> str: """ :return: Unique ID of u...
31.448
118
0.607479
f781c8471b18a252bfbbd3108e25c71e7a61f38d
40,174
py
Python
scripts/artifacts/powerlogGZ.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
1
2020-10-06T20:28:03.000Z
2020-10-06T20:28:03.000Z
scripts/artifacts/powerlogGZ.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
scripts/artifacts/powerlogGZ.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
import gzip import re import os import shutil import sqlite3 from pathlib import Path import scripts.artifacts.artGlobals from packaging import version from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, logdevinfo, timeline, tsv, is_platform_windows def get_powerlogGZ(file...
36.323689
235
0.72064
f78213c9d6643ae8a1f2e7952de933c86ef66ae8
1,451
py
Python
core/device.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
core/device.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
core/device.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
''' device.py ''' from transitions import Machine from core.clock import ClockReference from core.message_router import MessageRouter class Device: ''' Device: A base class that all accelerator components inherit from. A device requires a clock-reference and a message-router (to communicate) Args: ...
37.205128
94
0.698139