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
7471e4d74ae786ca9b246a7219b811105b847f22
2,270
py
Python
gwlfe/MultiUse_Fxns/Runoff/CNum_inner.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
gwlfe/MultiUse_Fxns/Runoff/CNum_inner.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
gwlfe/MultiUse_Fxns/Runoff/CNum_inner.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
from numba.pycc import CC from numpy import zeros cc = CC('CNum_inner_compiled') @cc.export('CNum_inner', '(int64, int64[:,::1],float64[:,:,::1],float64[::1],int64,float64[:,:,::1],float64[:,::1],float64[:,:,::1],boolean[::1],float64[:,:,::1])') def CNum_inner(NYrs, DaysMonth, Temp, CN, NRur, melt_pest, n...
55.365854
150
0.328634
7471fb7be9958aec3b23d0206bc330abce208e52
4,857
py
Python
ssdaq/utils/daemon.py
sflis/SSDAQold
4f9a84c34b580548a53719e000dc623f6e1b8a40
[ "BSD-3-Clause" ]
1
2018-10-23T11:12:44.000Z
2018-10-23T11:12:44.000Z
ssdaq/utils/daemon.py
sflis/SSDAQold
4f9a84c34b580548a53719e000dc623f6e1b8a40
[ "BSD-3-Clause" ]
28
2019-02-07T12:50:10.000Z
2019-11-18T20:36:31.000Z
ssdaq/utils/daemon.py
sflis/SSDAQold
4f9a84c34b580548a53719e000dc623f6e1b8a40
[ "BSD-3-Clause" ]
2
2019-02-07T12:46:03.000Z
2019-05-27T13:44:41.000Z
import sys, os, time, atexit from signal import SIGTERM import errno def pid_exists(pid): """Check whether pid exists in the current process table. UNIX only. """ if pid < 0: return False if pid == 0: # According to "man 2 kill" PID 0 refers to every process # in the proces...
28.075145
110
0.513074
74721194dc367960dbc5720d188f5d702e6510a0
1,440
py
Python
ignite/metrics/__init__.py
VinhLoiIT/ignite
3b2b9655ea9f80ce49b8a9f1c2d72f80e2a95f56
[ "BSD-3-Clause" ]
1
2020-06-13T15:22:08.000Z
2020-06-13T15:22:08.000Z
ignite/metrics/__init__.py
hefv57/ignite
a22a0f5e909ac70d2a1f76a60b6e84b2134f196c
[ "BSD-3-Clause" ]
null
null
null
ignite/metrics/__init__.py
hefv57/ignite
a22a0f5e909ac70d2a1f76a60b6e84b2134f196c
[ "BSD-3-Clause" ]
1
2020-06-13T15:30:46.000Z
2020-06-13T15:30:46.000Z
from ignite.metrics.metric import Metric from ignite.metrics.accuracy import Accuracy from ignite.metrics.loss import Loss from ignite.metrics.mean_absolute_error import MeanAbsoluteError from ignite.metrics.mean_pairwise_distance import MeanPairwiseDistance from ignite.metrics.mean_squared_error import MeanSquaredErro...
33.488372
87
0.794444
747242b80b87be6e58047dc885af1aef516bd3c2
1,505
py
Python
tests/test_assign_overload_error.py
fossilfree/Numerous
121cd00456f263cab9def10cb99a21655f5832c9
[ "BSD-3-Clause" ]
null
null
null
tests/test_assign_overload_error.py
fossilfree/Numerous
121cd00456f263cab9def10cb99a21655f5832c9
[ "BSD-3-Clause" ]
null
null
null
tests/test_assign_overload_error.py
fossilfree/Numerous
121cd00456f263cab9def10cb99a21655f5832c9
[ "BSD-3-Clause" ]
null
null
null
from numerous.engine.system import Item, Subsystem, ItemPath from numerous.multiphysics import EquationBase, Equation import pytest class Item1(Item, EquationBase): def __init__(self, tag='item1'): super(Item1, self).__init__(tag) self.t1 = self.create_namespace('t1') self.add_parameter('T...
32.717391
134
0.683056
747277dcda2e58b273b76195d0e83861c4776cee
4,336
py
Python
salt/modules/dpkg.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
salt/modules/dpkg.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/dpkg.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Support for DEB packages ''' # Import python libs import logging # Import salt libs import salt.utils log = logging.getLogger(__name__) # Define the module's virtual name __virtualname__ = 'lowpkg' def __virtual__(): ''' Confirm this module is on a Debian based system ''' ...
26.278788
78
0.569188
74728550e18ad9da66372f01867d842c2bee256c
1,834
py
Python
jina/types/mixin.py
winstonww/jina
326d7e6d76d0b9cef5b7042356605c4f0a567860
[ "Apache-2.0" ]
null
null
null
jina/types/mixin.py
winstonww/jina
326d7e6d76d0b9cef5b7042356605c4f0a567860
[ "Apache-2.0" ]
null
null
null
jina/types/mixin.py
winstonww/jina
326d7e6d76d0b9cef5b7042356605c4f0a567860
[ "Apache-2.0" ]
null
null
null
import pprint from typing import Dict from google.protobuf.json_format import MessageToJson, MessageToDict from ..helper import typename from ..proto import jina_pb2 class ProtoTypeMixin: """Mixin class of `ProtoType`.""" def json(self) -> str: """Return the object in JSON string :return: ...
27.787879
85
0.633043
7472b8dc9ca45ee9db950f0fca696e0f96035f85
379
py
Python
management/pycom_functions/communicate_with_server/keep_connection/MQTT_raw.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
management/pycom_functions/communicate_with_server/keep_connection/MQTT_raw.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
management/pycom_functions/communicate_with_server/keep_connection/MQTT_raw.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
"""This function takes care that correct messages are sent to server""" def communicate_with_server(data_with_ts, client, header_ts): #constructing data string data_string = format_data(header_ts, data_with_ts) try: client.publish(topic=TOPIC, msg=data_string) except: print("Data couldn'...
37.9
71
0.717678
7472c75559c0236b7a3764d87576b4f7c2311f75
1,218
py
Python
au2018forgecatalog/Memo.py
KarmaPoliceT2/au2018forgecatalog
668062f23f74fc166017efe471b4d9e13cc8ec93
[ "MIT" ]
null
null
null
au2018forgecatalog/Memo.py
KarmaPoliceT2/au2018forgecatalog
668062f23f74fc166017efe471b4d9e13cc8ec93
[ "MIT" ]
null
null
null
au2018forgecatalog/Memo.py
KarmaPoliceT2/au2018forgecatalog
668062f23f74fc166017efe471b4d9e13cc8ec93
[ "MIT" ]
null
null
null
import time # //////////////////////////////////////////////////////////////////// # Memoize With Timeout # # //////////////////////////////////////////////////////////////////// class Memo(object): _caches = {} _timeouts = {} def __init__(self, timeout=2): self.timeout = timeout def collect...
27.681818
85
0.44335
7472d69df0c490fc90f1ebc21353bb65c32bc6ac
7,070
py
Python
examples/task_attribute_value_extract_crf.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
1
2021-04-26T08:01:25.000Z
2021-04-26T08:01:25.000Z
examples/task_attribute_value_extract_crf.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
null
null
null
examples/task_attribute_value_extract_crf.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
null
null
null
import os import json import torch from torchblocks.metrics import NERScore from torchblocks.trainer import SequenceLabelingTrainer from torchblocks.callback import TrainLogger from torchblocks.processor import SequenceLabelingProcessor, InputExample from torchblocks.utils import seed_everything, dict_to_text, b...
46.20915
113
0.619095
7472df790febf3cb6d4deeae13fd636b0457adee
4,444
py
Python
combat-turtles/combat-turtles-master/ai/wanderer.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
combat-turtles/combat-turtles-master/ai/wanderer.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
combat-turtles/combat-turtles-master/ai/wanderer.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
# Built-In Example AI # Title: WandererTurtle # Author: Adam Rumpf # Version: 1.0.2 # Date: 11/14/2020 import random import game.tcturtle class CombatTurtle(game.tcturtle.TurtleParent): """Wanderer combat turtle. Wanders around randomly until it gets close enough to the opponent, after which it directly...
32.437956
78
0.526103
74730db36ba6c34bb19dae82cfed12811fedbb2d
1,865
py
Python
jupyter-lab-serverless/__init__.py
u2takey/jupyter-lab-serverless
e43b3e64afb5643fb72d901b395d72add3a7be2f
[ "Apache-2.0" ]
6
2020-03-13T23:58:31.000Z
2021-08-29T07:33:29.000Z
jupyter-lab-serverless/__init__.py
u2takey/jupyter-lab-serverless
e43b3e64afb5643fb72d901b395d72add3a7be2f
[ "Apache-2.0" ]
3
2021-08-05T03:07:04.000Z
2022-03-25T21:34:03.000Z
jupyter-lab-serverless/__init__.py
u2takey/jupyter-lab-serverless
e43b3e64afb5643fb72d901b395d72add3a7be2f
[ "Apache-2.0" ]
1
2020-04-06T16:30:28.000Z
2020-04-06T16:30:28.000Z
from .serverless import FunctionHandler from notebook.utils import url_path_join from .schedule import default_scheduler from .db import FunctionDB from .schedule import add_job def _jupyter_server_extension_paths(): return [{ 'module': 'jupyter-lab-serverless' }] def load_jupyter_server_extension(nb...
30.57377
113
0.624129
747311c349bdeb472998e7428b31177a3138c4d2
20,216
py
Python
oscar/lib/python2.7/site-packages/faker/providers/person/bg_BG/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/person/bg_BG/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/person/bg_BG/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as PersonProvider class Provider(PersonProvider): first_names_female = ( 'Авгия', 'Авигея', 'Авторка', 'Аглая', 'Аглоида', 'Агнешка', 'Адамина', 'Адра', 'Адрианиа', 'Аела', 'Айрен', 'Аксентия', 'Алания', 'Албина...
94.910798
154
0.560596
747313ad129b224b527b387e6a6de85fd8ad2b60
18,386
py
Python
seq2seq/lf_util/process_sql.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
seq2seq/lf_util/process_sql.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
seq2seq/lf_util/process_sql.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
################################ # Assumptions: # 1. sql is correct # 2. only table name has alias # 3. only one intersect/union/except # # val: number(float)/string(str)/sql(dict) # col_unit: (agg_id, col_id, isDistinct(bool)) # val_unit: (unit_op, col_unit1, col_unit2) # table_unit: (table_type, col_unit/sql) #...
30.091653
123
0.587132
74731779ace5031bed01186db49d5a1388175cb3
3,259
py
Python
tools/make_model_non_reversed.py
SSGAalto/minionn
49bc403a7d91ba4c466843952d53a815cf10d78a
[ "Apache-2.0" ]
55
2018-05-15T08:14:05.000Z
2022-03-24T12:52:33.000Z
tools/make_model_non_reversed.py
WeiBenqiang/minionn
49bc403a7d91ba4c466843952d53a815cf10d78a
[ "Apache-2.0" ]
9
2018-08-01T09:48:21.000Z
2022-03-14T02:32:51.000Z
tools/make_model_non_reversed.py
WeiBenqiang/minionn
49bc403a7d91ba4c466843952d53a815cf10d78a
[ "Apache-2.0" ]
9
2018-08-09T02:12:31.000Z
2021-12-01T04:24:59.000Z
""" Author: Fritz Alder Copyright: Secure Systems Group, Aalto University https://ssg.aalto.fi/ This code is released under Apache 2.0 license http://www.apache.org/licenses/LICENSE-2.0 """ import onnx import struct import random import numpy as np """ Lets define the shape of our input Also define the operators...
25.069231
98
0.6278
74731c19e259d99b3e8dcf7bcdf9201b21c63e82
4,227
py
Python
pymatgen/io/xyz.py
VictorBarone5066/pymatgen
9e1d50ea30dedd709864a13005e87583d66f759e
[ "MIT" ]
2
2021-04-28T13:28:52.000Z
2021-04-28T13:29:06.000Z
pymatgen/io/xyz.py
VictorBarone5066/pymatgen
9e1d50ea30dedd709864a13005e87583d66f759e
[ "MIT" ]
null
null
null
pymatgen/io/xyz.py
VictorBarone5066/pymatgen
9e1d50ea30dedd709864a13005e87583d66f759e
[ "MIT" ]
3
2018-10-17T19:08:09.000Z
2021-12-02T20:26:58.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Module implementing an XYZ file object class. """ import re from pymatgen.core.structure import Molecule from monty.io import zopen class XYZ: """ Basic class for importing and exporting Molecul...
30.854015
79
0.546014
74734fd79a7a5de9404b5fec2c13bcaf8d7bcb2b
5,492
py
Python
alphastarmini/core/sl/feature.py
liuruoze/mini-AlphaStar
cf9de2507d526a5fb8ef67676aab2ffb92738640
[ "Apache-2.0" ]
108
2021-02-10T13:24:56.000Z
2022-03-21T09:58:28.000Z
alphastarmini/core/sl/feature.py
liuruoze/mini-AlphaStar
cf9de2507d526a5fb8ef67676aab2ffb92738640
[ "Apache-2.0" ]
21
2021-04-09T18:46:05.000Z
2022-03-29T02:44:15.000Z
alphastarmini/core/sl/feature.py
liuruoze/mini-AlphaStar
cf9de2507d526a5fb8ef67676aab2ffb92738640
[ "Apache-2.0" ]
19
2021-08-03T01:49:02.000Z
2022-03-30T10:21:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- " Feature object, transfer the state to one-dimension feature" import torch from alphastarmini.core.rl.state import MsState from alphastarmini.lib.hyper_parameters import Arch_Hyper_Parameters as AHP from alphastarmini.lib.hyper_parameters import StarCraft_Hyp...
38.405594
120
0.634195
747355386326daefe50d73ac22da78aeb46ebaeb
1,153
py
Python
HierCost/predict.py
seanliu96/PCHC
62acc96a271b56243deabb9418eb39ae3e3710aa
[ "MIT" ]
null
null
null
HierCost/predict.py
seanliu96/PCHC
62acc96a271b56243deabb9418eb39ae3e3710aa
[ "MIT" ]
null
null
null
HierCost/predict.py
seanliu96/PCHC
62acc96a271b56243deabb9418eb39ae3e3710aa
[ "MIT" ]
null
null
null
import argparse import sl_pred import ml_pred def parse_pred_args(): '''Parse input options Returns: ArgumentParser: object containing parsed arguments. ''' parser = argparse.ArgumentParser() parser.add_argument("-d", "--dataset", required=True, help="Test dataset path") parser.add_...
31.162162
109
0.663487
747359249a570694192e8408dc557516a8227cf9
7,122
py
Python
flexget/plugins/input/backlog.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/input/backlog.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/input/backlog.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 logging import pickle from datetime import datetime from sqlalchemy import Column, Integer, String, Unicode, DateTime, Index, select from flexget import db_schema, plug...
37.484211
111
0.650098
7473baef885cb164724c4d766f8152f4578a5ea7
2,323
py
Python
Basic/heap.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
4
2017-06-19T06:33:38.000Z
2019-01-31T12:07:12.000Z
Basic/heap.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
null
null
null
Basic/heap.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
1
2017-12-06T08:41:06.000Z
2017-12-06T08:41:06.000Z
from copy import copy class Heap(object): def __init__(self, lst=None): if lst: if isinstance(lst, list): self._heap = lst self.heapify() else: raise TypeError('wrong input type') else: self._heap = [] def __r...
24.197917
87
0.499785
7473fa73c2d44723610aaa696e1daaeac4c670f3
8,261
py
Python
acoustic/MAXM.py
sailist/ASRFrame
2fd022c3c00af1d5178dee4b367b2269241bc73c
[ "Apache-2.0" ]
223
2019-07-13T06:31:18.000Z
2022-03-11T08:23:01.000Z
acoustic/MAXM.py
mayite/ASRFrame
484cf1ee5beec4c39439de683c5b4c1f1ea3a94a
[ "Apache-2.0" ]
7
2019-12-27T08:48:42.000Z
2021-09-01T09:45:13.000Z
acoustic/MAXM.py
mayite/ASRFrame
484cf1ee5beec4c39439de683c5b4c1f1ea3a94a
[ "Apache-2.0" ]
71
2019-07-14T13:14:13.000Z
2022-03-18T06:58:54.000Z
from core.base_model import AcousticModel from keras.layers import Dense,Activation,Dropout,Input,Add from core.ctc_function import CTC_Batch_Cost from keras import Model import os from util.mapmap import PinyinMapper from util.reader import VoiceDatasetList,VoiceLoader from feature.mel_feature import MelFeature5 clas...
42.364103
123
0.622806
74741b921f34ffc92475a801817711f844173337
772
py
Python
deprecated/graphics_matplotlib.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
deprecated/graphics_matplotlib.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
deprecated/graphics_matplotlib.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
import configs as cfg def matplotlib_animate(plot_update): """ Generate simulation """ import matplotlib.pyplot as plt import matplotlib.animation as animation # noinspection PyUnresolvedReferences from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() anim = animation.FuncAnimation(...
33.565217
94
0.696891
747440a27ed4e2a0de6c7612a566eaa04f66b9df
8,592
py
Python
backbone/block/residual.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
backbone/block/residual.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
backbone/block/residual.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
from layers import * class ResNet_Block(nn.Module): """ __version__ = 1.0 __date__ = Mar 7, 2022 paper : https://arxiv.org/abs/1512.03385 The structure is decribed in <Figure 5.(Left)> of the paper. """ reduction = 1 def __init__(self, in_channels: int, ...
28.170492
110
0.563547
7474575d4ec481c28efc322de3e282db8a513aa9
1,426
py
Python
sequence_classification/results_writer.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
1
2021-03-14T17:22:41.000Z
2021-03-14T17:22:41.000Z
sequence_classification/results_writer.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
23
2018-11-17T21:05:31.000Z
2019-01-15T09:58:33.000Z
sequence_classification/results_writer.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
1
2020-07-31T06:09:31.000Z
2020-07-31T06:09:31.000Z
import json import os from collections import defaultdict class ResultsWriter: def __init__(self, base_dir='results', file_prefix=''): self.file_prefix = file_prefix self.saved = defaultdict(set) self.base_dir = base_dir if not os.path.isdir(self.base_dir): os.mkdir(sel...
40.742857
104
0.680224
74745eb834c3c30b2cdb062eebf48b500a32cfcc
862
py
Python
image_primary_analysis.py
Akhp888/person_cars_detection
12c160b91e50c7cffcfa5e87905133e30fa7769b
[ "Unlicense" ]
null
null
null
image_primary_analysis.py
Akhp888/person_cars_detection
12c160b91e50c7cffcfa5e87905133e30fa7769b
[ "Unlicense" ]
null
null
null
image_primary_analysis.py
Akhp888/person_cars_detection
12c160b91e50c7cffcfa5e87905133e30fa7769b
[ "Unlicense" ]
null
null
null
# import modules import imagesize import glob import matplotlib.pyplot as plt #plt histogram def plt_hist(par_list,plt_name): plt.hist(par_list, bins=30) plt.ylabel('count') plt.xlabel('width') plt.title(plt_name) plt.show() #load all images images_list = glob.glob('D:/projects/misc/...
28.733333
115
0.708817
747470010f535c75cd9b624fe30eda4db675d793
4,407
py
Python
libcloudforensics/logging_utils.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
241
2020-02-08T20:05:54.000Z
2022-03-31T23:51:30.000Z
libcloudforensics/logging_utils.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
376
2020-02-05T10:22:54.000Z
2022-03-30T00:09:18.000Z
libcloudforensics/logging_utils.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
72
2020-02-06T07:34:30.000Z
2022-03-05T18:02:13.000Z
# -*- coding: utf-8 -*- # Copyright 2020 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 ...
31.035211
80
0.68187
7474a6b36f427a8ad85f7a4ed6a5ed41c17a1e70
1,300
py
Python
test/mitmproxy/contentviews/test_css.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
test/mitmproxy/contentviews/test_css.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
test/mitmproxy/contentviews/test_css.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
import pytest from mitmproxy.contentviews import css from . import full_eval @pytest.mark.parametrize( "filename", [ "animation-keyframe.css", "blank-lines-and-spaces.css", "block-comment.css", "empty-rule.css", "import-directive.css", "indentation.css", ...
26.530612
78
0.566923
7474bc9c2ec5adb9b68993c8cedfa1b181995ddc
32,913
py
Python
tests/test_sparkpost_backend.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
1,324
2016-03-10T04:57:52.000Z
2022-03-31T15:14:58.000Z
tests/test_sparkpost_backend.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
208
2016-03-10T03:40:59.000Z
2022-03-22T23:16:08.000Z
tests/test_sparkpost_backend.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
129
2016-03-10T09:24:52.000Z
2022-02-07T05:37:24.000Z
import json from datetime import date, datetime from decimal import Decimal from email.mime.base import MIMEBase from email.mime.image import MIMEImage from email.mime.text import MIMEText from django.core import mail from django.test import override_settings, tag from django.utils.timezone import get_fixed_timezone, ...
47.562139
103
0.633184
7474e0185600131ff5dc3ac3141b56355ed6a7f6
823
py
Python
test/integrated/storage_Z/cli/dev/feature_C/feature_F/service.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
87
2022-02-01T12:47:48.000Z
2022-03-31T10:46:34.000Z
test/integrated/storage_Z/cli/dev/feature_C/feature_F/service.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
28
2022-02-01T10:16:42.000Z
2022-03-24T10:53:01.000Z
test/integrated/storage_Z/cli/dev/feature_C/feature_F/service.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
4
2022-02-09T14:10:32.000Z
2022-03-28T16:45:19.000Z
""" This is an example of module - which is imported in __init__.py """ def new(name: str) -> None: """ Creates a new service - example of directly importing module in __init__.py Args: name (str): Name of project (function as command) Return: None """ print(f"This is a callable as ...
17.510638
79
0.591738
7474e68b7d2038be90c1d01402093af8ff39a292
2,489
py
Python
tools/hostbase.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
tools/hostbase.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
tools/hostbase.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
#!/usr/bin/python import os from getopt import getopt, GetoptError from re import split import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'Hostbase.settings' from Hostbase.hostbase.models import Host attribs = ['administrator', 'comments', 'csi', 'dhcp', 'expiration_date', ...
31.1125
72
0.568501
7474f6441a7485bb38efb3cb5f87c8af54cdc1b7
19,713
py
Python
rlkit/launchers/experiments/ashvin/quinoa_rl.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/launchers/experiments/ashvin/quinoa_rl.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/launchers/experiments/ashvin/quinoa_rl.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import gym from rlkit.data_management.awr_env_replay_buffer import AWREnvReplayBuffer from rlkit.data_management.env_replay_buffer import EnvReplayBuffer from rlkit.data_management.split_buffer import SplitReplayBuffer from rlkit.envs.wrappers import NormalizedBoxEnv, StackObservationEnv, RewardWrapperEnv import rlkit....
36.777985
133
0.650535
7475062746ca9f4d35232f3cb01e0f26307a0455
3,996
py
Python
models/coteaching_model.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
19
2020-10-29T14:22:58.000Z
2022-03-31T13:45:56.000Z
models/coteaching_model.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
null
null
null
models/coteaching_model.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
7
2021-09-15T05:16:32.000Z
2022-02-02T01:31:07.000Z
from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F class MLPNet(nn.Module): def __init__(self): super(MLPNet, self).__init__() self.fc1 = nn.Linear(28*28, 256) self.fc2 = nn.Linear(256, 10) def forward(self, x): x = x.view(-...
36.327273
103
0.594845
74750bec9ecd01f4c079d24804bf242a59f68931
3,716
py
Python
tests/integration/crud/test_crud.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
tests/integration/crud/test_crud.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
tests/integration/crud/test_crud.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
import numpy as np import os import pytest import requests from jina import Flow, Document from tests import random_docs # noinspection PyUnresolvedReferences from tests.integration.crud import CrudIndexer PARAMS = {'top_k': 10} def rest_post(f, endpoint, documents): data = [d.dict() for d in documents] if...
31.491525
88
0.586114
74751b4049e37a0070f9b9ba364b39aa104cc4e3
45,547
py
Python
fireframe/PDESystem.py
msc-acse/acse-9-independent-research-project-kmei92
fb13d3f68cc8c45654e2435a95cdc9a2e27bd0d9
[ "MIT" ]
null
null
null
fireframe/PDESystem.py
msc-acse/acse-9-independent-research-project-kmei92
fb13d3f68cc8c45654e2435a95cdc9a2e27bd0d9
[ "MIT" ]
null
null
null
fireframe/PDESystem.py
msc-acse/acse-9-independent-research-project-kmei92
fb13d3f68cc8c45654e2435a95cdc9a2e27bd0d9
[ "MIT" ]
3
2019-08-30T12:23:32.000Z
2021-05-23T19:08:00.000Z
""" author : Keer Mei email: keer.mei18@imperial.ac.uk github username: kmei92 """ from collections import defaultdict import copy import firedrake as fd import numpy as np import matplotlib.pyplot as plt import sympy as sy """ The default_solver_parameters is a dictionary adapted from Mikael Mortensen on July, 2019....
45.275348
258
0.700375
74752c67d2bda97d6a5bea80d61d89a29e98bfbb
10,318
py
Python
alipay/aop/api/domain/CarRentalInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/CarRentalInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/CarRentalInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class CarRentalInfo(object): def __init__(self): self._billing_start_time = None self._driving_duration = None self._driving_mileage = None self._duration_unit_price = N...
38.789474
101
0.662531
74753c0deaa5a801e326fa544131efe3ab5f651b
4,854
py
Python
src/hub/dataload/sources/chembl/chembl_dump.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
src/hub/dataload/sources/chembl/chembl_dump.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
src/hub/dataload/sources/chembl/chembl_dump.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
import glob import json import os import os.path import biothings import config from config import DATA_ARCHIVE_ROOT biothings.config_for_app(config) from biothings.hub.dataload.dumper import HTTPDumper from biothings.utils.common import iter_n class ChemblDumper(HTTPDumper): SRC_NAME = "chembl" SRC_ROOT_F...
51.094737
107
0.637824
747559887c5c86b4f7f370ad2f70b35470b878a9
225
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/datasets/cifar10/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/datasets/cifar10/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/datasets/cifar10/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
"""Imports for Python API. This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script. """ from tensorflow.python.keras._impl.keras.datasets.cifar10 import load_data
37.5
74
0.808889
74757107e0b1821d74bb96815fea2e8e57c37dde
1,080
py
Python
migrations/versions/383913b3726a_.py
ernestomedinam/e-boilerplate-flask
e7fc1366f263610c58035025babe1eb27426dfff
[ "MIT" ]
null
null
null
migrations/versions/383913b3726a_.py
ernestomedinam/e-boilerplate-flask
e7fc1366f263610c58035025babe1eb27426dfff
[ "MIT" ]
2
2021-05-21T03:49:06.000Z
2021-05-21T03:49:08.000Z
migrations/versions/383913b3726a_.py
ernestomedinam/e-boilerplate-flask
e7fc1366f263610c58035025babe1eb27426dfff
[ "MIT" ]
null
null
null
"""empty message Revision ID: 383913b3726a Revises: Create Date: 2021-05-21 05:54:23.399761 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '383913b3726a' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
27
72
0.67963
74759cf0d790abe1ad5abea580ed29f716afb336
1,218
py
Python
kwrankingclient/tests/__init__.py
frossigneux/python-kwrankingclient
eac2705de47c5ca76126112d02ce3f2f27e53cc6
[ "Apache-2.0" ]
1
2015-01-16T18:15:56.000Z
2015-01-16T18:15:56.000Z
kwrankingclient/tests/__init__.py
frossigneux/python-kwrankingclient
eac2705de47c5ca76126112d02ce3f2f27e53cc6
[ "Apache-2.0" ]
null
null
null
kwrankingclient/tests/__init__.py
frossigneux/python-kwrankingclient
eac2705de47c5ca76126112d02ce3f2f27e53cc6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Mirantis. # # 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...
34.8
73
0.734811
7475d0b4bf85fe4df2893c5f82c292ae1bcfb663
9,940
py
Python
onadata/settings/kc_environ.py
GrupoCATO/kobocat
10cee40a39886c04227de38e592fef37e14e8faa
[ "BSD-2-Clause" ]
null
null
null
onadata/settings/kc_environ.py
GrupoCATO/kobocat
10cee40a39886c04227de38e592fef37e14e8faa
[ "BSD-2-Clause" ]
null
null
null
onadata/settings/kc_environ.py
GrupoCATO/kobocat
10cee40a39886c04227de38e592fef37e14e8faa
[ "BSD-2-Clause" ]
null
null
null
import os from datetime import timedelta from onadata.settings.common import * LOCALE_PATHS= [os.path.join(PROJECT_ROOT,'locale'),] DEBUG = os.environ.get('DJANGO_DEBUG', 'True') == 'True' TEMPLATE_DEBUG = os.environ.get('TEMPLATE_DEBUG', 'True') == 'True' TEMPLATE_STRING_IF_INVALID = '' import dj_database_url DAT...
37.651515
115
0.659859
7475d265b9b69350c1b87cb3121531665a5c4d59
1,379
py
Python
codes_src/fairseq/criterions/fairseq_criterion.py
ZhenYangIACAS/WeTS
bba33ad64e10efd7d3d95b5a0b6ad125216542cf
[ "Unlicense" ]
50
2021-11-15T02:34:43.000Z
2021-11-18T07:24:46.000Z
codes_src/fairseq/criterions/fairseq_criterion.py
yujun531/WeTS
bba33ad64e10efd7d3d95b5a0b6ad125216542cf
[ "Unlicense" ]
null
null
null
codes_src/fairseq/criterions/fairseq_criterion.py
yujun531/WeTS
bba33ad64e10efd7d3d95b5a0b6ad125216542cf
[ "Unlicense" ]
26
2021-11-15T02:35:14.000Z
2021-11-15T08:25:42.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from torch.nn.modules.loss import _Loss class FairseqCriterion(_Loss): def __init__(self, args, task): super().__init__() ...
30.644444
103
0.675127
7475da58419420e2a8bda19b01a6d864fa0cf6f0
3,004
py
Python
setup.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
setup.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
setup.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Ibis setup module.""" import pathlib import sys from setuptools import find_packages, setup import versioneer LONG_DESCRIPTION = """ Ibis is a productivity-centric Python big data framework. See http://ibis-project.org """ VERSION = sys.version_info.major, sys.version_info.minor impala_re...
27.309091
72
0.678429
7475fc188a1ca449b4c76a609d6fc8c785b2c53c
3,957
py
Python
common/http.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
11
2020-01-15T14:25:48.000Z
2021-11-25T04:21:18.000Z
common/http.py
Pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
8
2021-02-04T16:41:57.000Z
2022-03-29T21:57:15.000Z
common/http.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
null
null
null
from pal import socket import json import logger import hal import pal import env import gc def post(url, data, dest=None): use_ssl = env.settings['ssl'] if 'ssl' in env.settings else True try: token = env.token except AttributeError: token=None if env.payload_encrypter and token: data = json....
31.91129
121
0.5163
747602f2b0219fe6a01e14470cc2c12f7d217cac
7,725
py
Python
train_baseline_ubuntu.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
1
2021-06-05T11:14:13.000Z
2021-06-05T11:14:13.000Z
train_baseline_ubuntu.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
null
null
null
train_baseline_ubuntu.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
null
null
null
import argparse import os import shutil import torch import torch.nn as nn from torch.autograd import Variable from torch.utils.data.dataloader import DataLoader from dpp_nets.utils.ubuntu_io import compute_ap, create_ubuntu from dpp_nets.layers.layers import DeepSetBaseline import numpy as np parser = argparse.Arg...
35.599078
132
0.631068
7476078d3296de2cb82ef19ef410e5cfc23b61cf
2,995
py
Python
examples/flask-echo/app.py
kalipsal/line-bot-sdk-python
c935bdb35c9abc4a4ae41fea25f173791a877f39
[ "Apache-2.0" ]
null
null
null
examples/flask-echo/app.py
kalipsal/line-bot-sdk-python
c935bdb35c9abc4a4ae41fea25f173791a877f39
[ "Apache-2.0" ]
null
null
null
examples/flask-echo/app.py
kalipsal/line-bot-sdk-python
c935bdb35c9abc4a4ae41fea25f173791a877f39
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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,...
29.653465
80
0.698164
74761d482819130b8ddfc4f313d8325c1c22424b
20,877
py
Python
MetaheuristicOptimization/Assignment2/Bhattacharjee_Rajbir_R00195734_MH2_code/TSP_CODE_AND_DATA/tsp2opt.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
MetaheuristicOptimization/Assignment2/Bhattacharjee_Rajbir_R00195734_MH2_code/TSP_CODE_AND_DATA/tsp2opt.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
MetaheuristicOptimization/Assignment2/Bhattacharjee_Rajbir_R00195734_MH2_code/TSP_CODE_AND_DATA/tsp2opt.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import math import argparse from functools import lru_cache import matplotlib.pyplot as plt from lab_tsp_insertion import * class TSPSolution(object): def __init__(self, instance:list, tour:list, distance:int, use_cache:bool=True): self.tour = tour self.n_cities =...
45.48366
139
0.609331
74763106fd0f540be5574ad570fbff9ab3acce9d
6,489
py
Python
appengine/predator/app/frontend/handlers/test/result_feedback_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/predator/app/frontend/handlers/test/result_feedback_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/predator/app/frontend/handlers/test/result_feedback_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import calendar from datetime import datetime import mock from google.appengine.api import users import webapp2 from analysis.stacktrace import CallStack f...
39.809816
80
0.686238
7476322306cf96f3d328988fcd3cc61d547679f5
6,612
py
Python
salt/states/artifactory.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/states/artifactory.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/states/artifactory.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
1
2017-01-27T21:33:36.000Z
2017-01-27T21:33:36.000Z
# -*- coding: utf-8 -*- ''' This state downloads artifacts from artifactory. ''' # Import python libs from __future__ import absolute_import import logging log = logging.getLogger(__name__) def downloaded(name, artifact, target_dir='/tmp', target_file=None): ''' Ensures that the artifact from artifactory e...
51.255814
139
0.489716
747652c894978eea7ca204e91c5f00933c708bd9
4,639
py
Python
geosoft/gxpy/tests/test_spatialdata.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
geosoft/gxpy/tests/test_spatialdata.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
geosoft/gxpy/tests/test_spatialdata.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
import unittest import os import geosoft.gxpy.spatialdata as gxspd import geosoft.gxpy.coordinate_system as gxcs from base import GXPYTest class Test(GXPYTest): @classmethod def setUpClass(cls): cls.setUpGXPYTest() @classmethod def tearDownClass(cls): cls.tearDownGXPYTest() de...
37.41129
113
0.593878
747667af2dd777bac70c459cad8045fe38cec39d
522
py
Python
python/ray/serve/tests/test_nonblocking.py
jody3t/ray-jo
94dc11b6fb2b077ca0a2d4d0d376adfb2002c795
[ "Apache-2.0" ]
null
null
null
python/ray/serve/tests/test_nonblocking.py
jody3t/ray-jo
94dc11b6fb2b077ca0a2d4d0d376adfb2002c795
[ "Apache-2.0" ]
null
null
null
python/ray/serve/tests/test_nonblocking.py
jody3t/ray-jo
94dc11b6fb2b077ca0a2d4d0d376adfb2002c795
[ "Apache-2.0" ]
null
null
null
import requests import sys from ray import serve def test_nonblocking(): serve.init() def function(flask_request): return {"method": flask_request.method} serve.create_backend("nonblocking:v1", function) serve.create_endpoint( "nonblocking", backend="nonblocking:v1", route="/nonbloc...
21.75
77
0.670498
74768f27000d495eaf17a1968ee27f90d11644b0
191
py
Python
O3/__init__.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O3/__init__.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O3/__init__.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
from ._08_logistic_regression.logistic_regression import LogisticRegressionGD from .utils import prepare_data, xor_dataset __all__ = ('prepare_data', 'LogisticRegressionGD', 'xor_dataset')
31.833333
77
0.837696
7476caad0daa8391dc55fb836cc2f9a4868be6e1
73,278
py
Python
Lib/site-packages/wx-3.0-msw/wx/lib/agw/xlsgrid.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
Lib/site-packages/wx-3.0-msw/wx/lib/agw/xlsgrid.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/lib/agw/xlsgrid.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
# --------------------------------------------------------------------------------- # # XLSGRID wxPython IMPLEMENTATION # # Andrea Gavana @ 08 Aug 2011 # Latest Revision: 20 Mar 2012, 21.00 GMT # # # TODO List # # Current todo list: # # 1. There is currently no support for rich text, i.e. strings containing partial # ...
34.646809
128
0.604124
747714bb61c48654979298bcc956d00e39255fd1
2,020
py
Python
references/obj_detection/latency_pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
628
2021-02-13T21:49:37.000Z
2022-03-31T19:48:57.000Z
references/obj_detection/latency_pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
694
2021-02-08T15:23:38.000Z
2022-03-31T07:24:59.000Z
references/obj_detection/latency_pytorch.py
Mindee/doctr
b9d8feb1b4a2206e4944ef2dea109acc19585074
[ "Apache-2.0" ]
90
2021-04-28T05:39:02.000Z
2022-03-31T06:48:36.000Z
# Copyright (C) 2021, Mindee. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. """ Object detection latency benchmark """ import argparse import os import time import numpy as np import torch os.environ...
30.606061
114
0.664356
7477212f7403e6757466b87666ccfd633d80f407
1,694
py
Python
tests/test_defer.py
saymedia/python-coal
5aefaaaf56727a61cee7e37fae1e7f25ef97c952
[ "MIT" ]
1
2017-02-05T01:43:48.000Z
2017-02-05T01:43:48.000Z
tests/test_defer.py
saymedia/python-coal
5aefaaaf56727a61cee7e37fae1e7f25ef97c952
[ "MIT" ]
null
null
null
tests/test_defer.py
saymedia/python-coal
5aefaaaf56727a61cee7e37fae1e7f25ef97c952
[ "MIT" ]
null
null
null
import unittest import mock from coal import Defer, Promise, when, DuplicateResolutionError class TestDefer(unittest.TestCase): def test_simple(self): defer = Defer() promise = defer.promise callback_1 = mock.MagicMock() callback_2 = mock.MagicMock() promise.then(callback...
22.289474
63
0.603896
74772a83746f6b291e2efe859215411e416d59af
8,583
py
Python
tests/test_layers/test_2d/test_operation.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
1
2021-11-02T14:00:27.000Z
2021-11-02T14:00:27.000Z
tests/test_layers/test_2d/test_operation.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
tests/test_layers/test_2d/test_operation.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- import torch from colossalai.context.parallel_mode import ParallelMode from colossalai.core import global_context as gpc from colossalai.nn.layer.parallel_2d import Matmul_AB_2D, Matmul_ABT_2D, Matmul_ATB_2D from colossalai.utils import get_current_device from colossala...
35.614108
114
0.692415
74772ce2975d407701cb1bb5d0f7cbb85821c10b
280
py
Python
dsp/config.py
CUAHSI/qa-automation-engine
9e7cb5ce02dfe74bbce874c01fda6f5656424111
[ "BSD-2-Clause" ]
null
null
null
dsp/config.py
CUAHSI/qa-automation-engine
9e7cb5ce02dfe74bbce874c01fda6f5656424111
[ "BSD-2-Clause" ]
null
null
null
dsp/config.py
CUAHSI/qa-automation-engine
9e7cb5ce02dfe74bbce874c01fda6f5656424111
[ "BSD-2-Clause" ]
null
null
null
# Target for tests can also be passed via "--base" command line arg at runtime BASE_URL = "https://dsp-beta.criticalzone.org/" USERNAME = "jmcuahsi@gmail.com" PASSWORD = "62meister" HS_USERNAME = "jim" HS_PASSWORD = "62meister" GITHUB_ORG = "cznethub" GITHUB_REPO = "dspfront"
23.333333
78
0.735714
7477363590a7f7d2bb84f8e5069d24aa4895563d
17,695
py
Python
scripts/StockMenu.py
dhanin/friendly-bassoon
fafcfd3921805baddc1889dc0ee2fa367ad882f8
[ "BSD-3-Clause" ]
2
2021-11-17T10:59:38.000Z
2021-11-17T10:59:45.000Z
scripts/StockMenu.py
dhanin/nws
87a3f24a7887d84b9884635064b48d456b4184e2
[ "BSD-3-Clause" ]
null
null
null
scripts/StockMenu.py
dhanin/nws
87a3f24a7887d84b9884635064b48d456b4184e2
[ "BSD-3-Clause" ]
null
null
null
#from Landing import * #from UnitCommands import * #from GroupCommands import * #from MissionEditCommands import * #from HotKey import * #from FlightPort import * from SecondaryHook import * #from DevMode import * #from GameMenuCommands import * #from GroupMenu import * #from StockEditMenu import * #from Amram_Menu imp...
37.489407
150
0.632269
74776da1353b8b091508ec28ea990a272e3c8107
1,159
py
Python
physics_functions/test_remove_dla.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
2
2017-03-21T14:18:35.000Z
2020-03-30T20:51:33.000Z
physics_functions/test_remove_dla.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
physics_functions/test_remove_dla.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
from unittest import TestCase import matplotlib.pyplot as plt import numpy as np from astropy import units as u from astropy.units.quantity import Quantity from physics_functions.remove_dla import get_lorentz_width, get_dla_transmittance, lyb class TestGetLorentzWidth(TestCase): def test_get_lorentz_width(self)...
39.965517
102
0.700604
74777e4591d497443e48c6153e9ca48fbae4c10b
4,457
py
Python
metalsmith_ansible/ansible_plugins/modules/metalsmith_deployment_defaults.py
openstack/metalsmith
880d9e47d3fe3f8d6cb83311b0fde3173f92beb4
[ "Apache-2.0" ]
8
2018-06-27T11:19:31.000Z
2020-06-17T08:05:11.000Z
metalsmith_ansible/ansible_plugins/modules/metalsmith_deployment_defaults.py
openstack/metalsmith
880d9e47d3fe3f8d6cb83311b0fde3173f92beb4
[ "Apache-2.0" ]
null
null
null
metalsmith_ansible/ansible_plugins/modules/metalsmith_deployment_defaults.py
openstack/metalsmith
880d9e47d3fe3f8d6cb83311b0fde3173f92beb4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Red Hat, 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 ...
32.064748
78
0.626655
74778a6d2a84e69c6b87b536c6f34972b19e322e
7,864
py
Python
src/graph_distance.py
satyakisikdar/infinity-mirror
d8b44aa75f1052318dc1c40a770a7ad07e38abb7
[ "MIT" ]
5
2020-03-13T02:54:03.000Z
2022-03-18T02:33:12.000Z
src/graph_distance.py
satyakisikdar/infinity-mirror
d8b44aa75f1052318dc1c40a770a7ad07e38abb7
[ "MIT" ]
2
2021-11-10T19:47:00.000Z
2022-02-10T01:24:59.000Z
src/graph_distance.py
satyakisikdar/infinity-mirror
d8b44aa75f1052318dc1c40a770a7ad07e38abb7
[ "MIT" ]
1
2021-05-24T21:54:44.000Z
2021-05-24T21:54:44.000Z
""" Reads graph stats from JSONs and calculates the distances one CSV for each dataset, model pair flights_lamba_dist.csv dataset model trial iteration lambda_dist flights CNRG 1 0 0 ... flights BTER 1 0 0 """ from os.path import join fro...
37.270142
120
0.614318
7477d0447133e9d048180ebfc107246843955491
15,514
py
Python
anlg/run_generation.py
rlebras/abductive-commonsense-reasoning
1632561ea87da2129fc2275498f52e175b75b8ec
[ "Apache-2.0" ]
41
2020-02-27T22:46:13.000Z
2022-03-22T02:53:32.000Z
anlg/run_generation.py
higuseonhye/abductive-commonsense-reasoning
3407ad999ccc351fc78dd0598d584d1e9f5bd2fc
[ "Apache-2.0" ]
3
2020-04-05T20:20:06.000Z
2020-09-01T10:19:05.000Z
anlg/run_generation.py
higuseonhye/abductive-commonsense-reasoning
3407ad999ccc351fc78dd0598d584d1e9f5bd2fc
[ "Apache-2.0" ]
16
2020-04-29T22:56:27.000Z
2022-03-20T15:22:00.000Z
#!/usr/bin/env python3 # coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in c...
49.094937
139
0.657148
7477e7f4592ba134a67d1ada91c141d1950ef1b9
1,846
py
Python
rl_with_videos/models/feedforward.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
25
2020-12-02T23:13:29.000Z
2022-02-25T07:57:30.000Z
rl_with_videos/models/feedforward.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
8
2020-12-12T14:11:58.000Z
2021-12-10T20:06:04.000Z
rl_with_videos/models/feedforward.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
8
2020-12-25T19:43:15.000Z
2021-10-13T02:53:58.000Z
import tensorflow as tf from rl_with_videos.utils.keras import PicklableKerasModel from rl_with_videos.utils.gradient_reversal import gradient_reversal def feedforward_model(input_shapes, output_size, hidden_layer_sizes, activation='relu', ...
32.385965
91
0.614843
74780ab4a1695d0526dc4dc04d3a6f7edb7b539a
4,652
py
Python
exercises/house_price_prediction.py
yuvalarbel/IML.HUJI
8ef0aa9403c97adc5b79d1ebd6780065cf0af1e7
[ "MIT" ]
null
null
null
exercises/house_price_prediction.py
yuvalarbel/IML.HUJI
8ef0aa9403c97adc5b79d1ebd6780065cf0af1e7
[ "MIT" ]
null
null
null
exercises/house_price_prediction.py
yuvalarbel/IML.HUJI
8ef0aa9403c97adc5b79d1ebd6780065cf0af1e7
[ "MIT" ]
null
null
null
from IMLearn.utils import split_train_test from IMLearn.learners.regressors import LinearRegression from typing import NoReturn import numpy as np import pandas as pd import matplotlib.pyplot as plt DATE_FORMAT = "%Y%m%dT000000" ONE_DAY = np.timedelta64(1, 'D') BEGINNING_DATE = pd.Timestamp('2014-01-01') def load_...
38.131148
108
0.677988
7478a510bb87bc1e55c33259b30118f9ec600a00
19,892
py
Python
cogs/mod.py
PaperZeppelin/PaperZeppelin
03db3319056ff4da767fc849d67b2b1f7c8ecd9a
[ "Apache-2.0" ]
null
null
null
cogs/mod.py
PaperZeppelin/PaperZeppelin
03db3319056ff4da767fc849d67b2b1f7c8ecd9a
[ "Apache-2.0" ]
null
null
null
cogs/mod.py
PaperZeppelin/PaperZeppelin
03db3319056ff4da767fc849d67b2b1f7c8ecd9a
[ "Apache-2.0" ]
null
null
null
import datetime import functools import json import typing from io import StringIO from discord.errors import Forbidden from discord.ext import commands, tasks from discord.ext.commands.bot import Bot import discord from PaperZeppelin import Client from cogs.core import MissingArgument from convertors.convertors impo...
38.625243
457
0.501558
7478b08951e4c3d582741270dc8bee412eaed385
2,026
py
Python
calc_all_vecs.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
calc_all_vecs.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
calc_all_vecs.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
import numpy as np import argparse import yaml import os import process_many_files import tensorflow as tf from linearlizer import Linearlizer def run_spec_list(spec_list,config,model_path): vecs = tf.placeholder(tf.float32, [None, config['NUM_MEL_BINS']]) linearlizer = Linearlizer(config['NUM_MEL_BINS'], con...
39.72549
135
0.727542
7478b7f7b124a878f63617c35cf3033fbc1c8685
1,225
py
Python
examples/train_mobilenet.py
LorePep/deepyeast
4f35276b8d3a9ae03a14105c84b0746431fbf409
[ "MIT" ]
10
2018-07-18T01:44:21.000Z
2021-09-29T13:04:19.000Z
examples/train_mobilenet.py
LorePep/deepyeast
4f35276b8d3a9ae03a14105c84b0746431fbf409
[ "MIT" ]
null
null
null
examples/train_mobilenet.py
LorePep/deepyeast
4f35276b8d3a9ae03a14105c84b0746431fbf409
[ "MIT" ]
8
2018-10-04T09:53:35.000Z
2022-01-22T14:55:29.000Z
import keras from mobilenet import * from dataset import * x_train, y_train = load_data("train") x_val, y_val = load_data("val") # convert class vectors to binary class matrices num_classes = 12 y_train = keras.utils.to_categorical(y_train, num_classes) y_val = keras.utils.to_categorical(y_val, num_classes) # prepr...
32.236842
117
0.728163
7478befd2a9f25b40ad803ef0e94eaa93dca3539
2,562
py
Python
alipay/aop/api/response/AlipayDataDataserviceAdPrincipalQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayDataDataserviceAdPrincipalQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayDataDataserviceAdPrincipalQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.OuterAttachment import OuterAttachment class AlipayDataDataserviceAdPrincipalQueryResponse(AlipayResponse): def __init__(self): super(AlipayDataDataservi...
30.86747
118
0.656909
7478d6e39e6c9dc6b0ef1ac02b471bf48fdcf355
351
py
Python
coffea/nanoevents/util.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
77
2019-06-09T14:23:33.000Z
2022-03-22T21:34:01.000Z
coffea/nanoevents/util.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
353
2019-06-05T23:54:39.000Z
2022-03-31T21:21:47.000Z
coffea/nanoevents/util.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
71
2019-06-07T02:04:11.000Z
2022-03-05T21:03:45.000Z
import urllib.parse def quote(x): return urllib.parse.quote(x, safe="") def unquote(x): return urllib.parse.unquote(x) def concat(*keys): return quote(",".join(unquote(k) for k in keys)) def tuple_to_key(tup): return "/".join(quote(x) for x in tup) def key_to_tuple(key): return tuple(unquo...
15.954545
52
0.652422
7478e4e709ae758bc28d112a2d95ab79dbf2bafe
2,783
py
Python
dags/oss_know/oss_know_dags/dags_github/dag_github_init_pull_requests.py
ynang/airflow-jobs-1
857e9dfbc2444dc1d23dd2b0463fe89108f01b89
[ "Apache-2.0" ]
4
2022-01-24T11:27:39.000Z
2022-02-25T11:44:10.000Z
dags/oss_know/oss_know_dags/dags_github/dag_github_init_pull_requests.py
linruoma/airflow-jobs-1
25d3996c6d11ee2d8f93ff2b73abcf83da986804
[ "Apache-2.0" ]
13
2021-12-17T12:14:11.000Z
2022-02-24T07:01:08.000Z
dags/oss_know/oss_know_dags/dags_github/dag_github_init_pull_requests.py
linruoma/airflow-jobs-1
25d3996c6d11ee2d8f93ff2b73abcf83da986804
[ "Apache-2.0" ]
13
2022-01-19T09:30:03.000Z
2022-03-02T10:45:07.000Z
from datetime import datetime from airflow import DAG from airflow.operators.python import PythonOperator from oss_know.libs.base_dict.variable_key import GITHUB_TOKENS, OPENSEARCH_CONN_DATA, \ NEED_INIT_GITHUB_PULL_REQUESTS_REPOS, PROXY_CONFS from oss_know.libs.util.proxy import KuaiProxyService, ProxyManager, G...
37.608108
119
0.735537
7478f0ca4453696f57214c826b49e5bb98530d55
2,651
py
Python
sql30/tests/test_scale_square.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
4
2021-04-19T22:26:16.000Z
2022-01-10T01:31:29.000Z
sql30/tests/test_scale_square.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
23
2020-09-16T10:57:39.000Z
2022-01-08T20:53:48.000Z
sql30/tests/test_scale_square.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
3
2022-01-10T20:12:09.000Z
2022-02-09T23:45:04.000Z
# scale.py import os import threading import unittest from sql30 import db DB_NAME = './square.db' class Config(db.Model): TABLE = 'square' PKEY = 'num' DB_SCHEMA = { 'db_name': DB_NAME, 'tables': [ { 'name': TABLE, 'col_order': ['num', 'square...
27.05102
71
0.52433
74790022e071ef8ca39bafab220193102c518834
1,151
py
Python
eland/tests/dataframe/test_init_pytest.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
null
null
null
eland/tests/dataframe/test_init_pytest.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
1
2020-05-06T01:34:25.000Z
2020-05-06T01:34:25.000Z
eland/tests/dataframe/test_init_pytest.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
1
2020-05-06T01:31:18.000Z
2020-05-06T01:31:18.000Z
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information # File called _pytest for PyCharm compatability import pytest import eland as ed from eland.query_compiler import Q...
32.885714
83
0.734144
747908649675d15d04ae67a6b9b8a55b0c00957b
16,824
py
Python
python/semiSupervisedDnn.py
statisticalbiotechnology/researcher-mapping
d716f40ab99a2f90b863508e0477ca21a52b946f
[ "Apache-2.0" ]
null
null
null
python/semiSupervisedDnn.py
statisticalbiotechnology/researcher-mapping
d716f40ab99a2f90b863508e0477ca21a52b946f
[ "Apache-2.0" ]
8
2020-09-07T02:42:46.000Z
2022-02-26T17:12:23.000Z
python/semiSupervisedDnn.py
statisticalbiotechnology/researcher-mapping
d716f40ab99a2f90b863508e0477ca21a52b946f
[ "Apache-2.0" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'} import numpy as np from sklearn.naive_bayes import GaussianNB from sklearn.linear_model import LogisticRegression, SGDClassifier from sklearn.metrics import accuracy_score, f1_score """ from keras.models import Sequential from keras.layers i...
32.416185
132
0.527936
747911b093eca7b1a77615b84ed8a47ddc95fba4
7,366
py
Python
tempest/api/identity/admin/v3/test_roles.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/identity/admin/v3/test_roles.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/identity/admin/v3/test_roles.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "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...
41.615819
79
0.631686
74793e791eea0c7812a8c72af0207caf3c824612
83
py
Python
models/forms/__init__.py
crestonbunch/poem-bot
27abe0d750dfa23e6f3ea9ae051750a3ad9a6de6
[ "MIT" ]
2
2019-05-17T17:20:27.000Z
2021-03-28T00:13:00.000Z
models/forms/__init__.py
crestonbunch/poem-bot
27abe0d750dfa23e6f3ea9ae051750a3ad9a6de6
[ "MIT" ]
null
null
null
models/forms/__init__.py
crestonbunch/poem-bot
27abe0d750dfa23e6f3ea9ae051750a3ad9a6de6
[ "MIT" ]
1
2020-12-30T16:38:02.000Z
2020-12-30T16:38:02.000Z
from models.forms.freeverse import FreeVerseModel models = [ FreeVerseModel ]
13.833333
49
0.771084
74795f59378f12808281d89ef9bb55d804a8ea5d
12,485
py
Python
pixelsnail.py
jmnyman/vq-vae-2-pytorch
48502ebf9120677f3b493d33261177951eebce99
[ "MIT" ]
2
2020-05-07T08:48:38.000Z
2020-10-18T08:08:42.000Z
pixelsnail.py
jmnyman/vq-vae-2-pytorch
48502ebf9120677f3b493d33261177951eebce99
[ "MIT" ]
null
null
null
pixelsnail.py
jmnyman/vq-vae-2-pytorch
48502ebf9120677f3b493d33261177951eebce99
[ "MIT" ]
1
2021-11-17T02:52:51.000Z
2021-11-17T02:52:51.000Z
# Copyright (c) Xi Chen # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Borrowed from https://github.com/neocxi/pixelsnail-public and ported it to PyTorch from math import sqrt from functools import partial, lru_cache import nu...
28.900463
88
0.536163
74797bea3537cd46131ea663ae055f9578c0301f
1,710
py
Python
tests/unit/test_resources.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
2
2015-02-06T11:03:12.000Z
2015-03-02T10:39:44.000Z
tests/unit/test_resources.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
tests/unit/test_resources.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
2
2016-03-16T03:52:13.000Z
2020-10-02T07:58:50.000Z
# Copyright 2014: Mirantis 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 b...
38.863636
78
0.636842
7479916cd6d7151a20720392d6fb0012916762e8
17,369
py
Python
tests/integration/shell/call.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/integration/shell/call.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/integration/shell/call.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` tests.integration.shell.call ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # Import python libs from __future__ import absolute_import import getpass import os import sys import re import shutil import yaml from datetime import datet...
35.374745
110
0.541943
7479ace0558f34b17af16201ccd6bbe264d7b1e6
834
py
Python
tests/test_duplicates.py
Quantify-world/Apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
5
2016-10-29T14:23:22.000Z
2017-07-15T08:39:58.000Z
tests/test_duplicates.py
Quantify-world/Apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
32
2016-10-23T19:18:26.000Z
2017-02-27T18:33:36.000Z
tests/test_duplicates.py
Quantify-world/apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
null
null
null
from django.test import TestCase, override_settings from django.conf.urls import url, include from apification.resources import Resource from apification.exceptions import ApiStructureError # Correct tree for overriding urlconf class FirstItem(Resource): pass class Root(Resource): FirstItem = FirstItem...
25.272727
52
0.654676
7479c65c3bdc95fe280e7f709172eeffb071b837
761
py
Python
plugins/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
null
null
null
plugins/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
4
2021-12-10T06:18:12.000Z
2022-03-24T14:43:57.000Z
plugins/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
null
null
null
from .fun import Fun, setup as fun_setup from .invitecounting import InviteCounting, setup as invitecounting_setup from .mathsolving import MathSolving, setup as mathsolving_setup from .messagecounting import MessageCounting, setup as messagecounting_setup from .utility import Utility, setup as utility_setup from .time...
36.238095
76
0.802891
7479e1af0e8174b7ac70bf91f7695729058e184d
1,792
py
Python
certau/transform/__init__.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
12
2016-07-11T07:53:05.000Z
2021-07-19T12:20:21.000Z
certau/transform/__init__.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
null
null
null
certau/transform/__init__.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
4
2016-11-13T22:38:10.000Z
2022-01-15T08:21:15.000Z
"""Classes for transforming STIX packages to various formats. The base class :py:class:`StixTransform` provides helper functions for processing :py:class:`STIXPackage<stix.core.stix_package.STIXPackage>` elements. There are two broad types of transform currently supported: #. Transforms to a text format (these trans...
33.811321
76
0.743862
747a0abdfa403fff9c7e3901ea5578a340d1503b
2,151
py
Python
st3/sublime_lib/region_manager.py
evandroforks/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
49
2018-04-11T01:18:02.000Z
2021-09-17T14:34:56.000Z
st3/sublime_lib/region_manager.py
evandrocoan/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
115
2018-04-03T18:53:17.000Z
2021-12-07T09:36:33.000Z
st3/sublime_lib/region_manager.py
evandrocoan/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
5
2018-11-26T12:07:47.000Z
2020-03-27T12:31:55.000Z
import sublime from ._compat.typing import Optional, List, TypeVar, Collection from .flags import RegionOption __all__ = ['RegionManager'] T = TypeVar('T') def _coalesce(*values: Optional[T]) -> T: return next(value for value in values if value is not None) class RegionManager: """A manager for regions...
25.607143
85
0.58159
747a1f39f5459fdf957d655ced2501ea2274d550
1,604
py
Python
examples/maps/submaps_and_cropping.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
examples/maps/submaps_and_cropping.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
examples/maps/submaps_and_cropping.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ ========================================= Submaps and Cropping ========================================= In this example we demonstrate how to get a submap of a map. """ ############################################################################## # Start by importing the necessary module...
34.12766
89
0.541771
747a3b577ebef871ab526625352c912b8751431e
1,301
py
Python
scielomanager/editorialmanager/admin.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/editorialmanager/admin.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/editorialmanager/admin.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
# -*- coding: utf-8 -*- from django.contrib import admin from . import models class EditorialMemberInline(admin.StackedInline): model = models.EditorialMember fieldsets = ( (None, {'fields':('role', 'first_name', 'last_name', 'order')} ), ('Optional fields', { ...
27.680851
115
0.653344
747a5873d2a38f5fa2d8ce81f253caae000c8095
5,258
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_05_01_preview/_monitor_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_05_01_preview/_monitor_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_05_01_preview/_monitor_management_client.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 ...
48.685185
180
0.726512
747a78b8076f8b678249e759a7d719829680e5b3
1,628
py
Python
wmtexe/commands/install.py
csdms/wmt-exe
d1e21537135a2d2c442ae6244427b076803d1254
[ "MIT" ]
null
null
null
wmtexe/commands/install.py
csdms/wmt-exe
d1e21537135a2d2c442ae6244427b076803d1254
[ "MIT" ]
10
2016-02-04T17:55:34.000Z
2019-03-19T21:10:39.000Z
wmtexe/commands/install.py
csdms/wmt-exe
d1e21537135a2d2c442ae6244427b076803d1254
[ "MIT" ]
1
2015-07-29T22:22:46.000Z
2015-07-29T22:22:46.000Z
"""Installs wmt-exe with setuptools.""" from __future__ import print_function from setuptools.command.install import install import os from .. import formatting _HELP_MESSAGE = """ Missing configuration file wmt.cfg. Run 'setup.py configure' first. For help on creating a WMT configuration file, setup.py confi...
23.257143
79
0.687346
747a87edeeaa34dfa8531b29eb030e48e9a90c4b
1,277
py
Python
arjuna-samples/arjex/test/pkg/hook/check_hook_04_skip.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna-samples/arjex/test/pkg/hook/check_hook_04_skip.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna-samples/arjex/test/pkg/hook/check_hook_04_skip.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2020 Rahul Verma # Website: www.RahulVerma.net # 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...
28.377778
74
0.732185
747aab436ee16873ea9ee9ee6d6cd07fea124b66
2,747
py
Python
rfml/nn/F/evm.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
61
2019-11-19T03:53:54.000Z
2022-03-26T15:57:47.000Z
rfml/nn/F/evm.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
2
2020-12-08T10:07:21.000Z
2021-02-24T00:29:15.000Z
rfml/nn/F/evm.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
30
2019-12-03T13:43:22.000Z
2022-03-26T15:57:59.000Z
"""PyTorch implementation of Error Vector Magnitude """ __author__ = "Bryse Flowers <brysef@vt.edu>" # External Includes import torch def evm(x: torch.Tensor, y: torch.Tensor) -> torch.Tensor: r"""Compute the Error Vector Magnitude (EVM) between two signals. .. math:: \operatorname{EVM}(s_{rx}, s_{...
38.690141
113
0.570076
747ab2ae6900c09be50d0747b703faf1b02a957b
607
py
Python
getrun.py
sgriffith3/2021-08-30-PYNA
af9bfc595ef0dc2385d7a4751515050b9c6eb56f
[ "MIT" ]
null
null
null
getrun.py
sgriffith3/2021-08-30-PYNA
af9bfc595ef0dc2385d7a4751515050b9c6eb56f
[ "MIT" ]
null
null
null
getrun.py
sgriffith3/2021-08-30-PYNA
af9bfc595ef0dc2385d7a4751515050b9c6eb56f
[ "MIT" ]
null
null
null
import sys from napalm import get_network_driver # import code from NAPALM if len(sys.argv) != 2: print("You supplied ", len(sys.argv)-1, " arguments but 1 is needed") print("getrun.py requires: hostname") print("example: python3 getrun.py sw-1") sys.exit() hn = sys.argv[1] driver = get_network_driver('eos') #...
35.705882
71
0.736409
747ac06fc02a2270cfec7e201ae16077c6bad09f
19,423
py
Python
agent/diayn_gher.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
agent/diayn_gher.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
agent/diayn_gher.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
import os import numpy as np import torch import torch.optim as optim from torch import nn as nn from logger import Logger import numpy as np import torch.nn.functional as F import math # from agent import Agent import utils import hydra import abc from collections import OrderedDict from typing import Iterable ...
36.440901
188
0.614066
747b375623479070d5cc00c737c37bf78f47ec27
2,114
py
Python
JumpScale9AYS/clients/sync_client/TemplateConfig.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
JumpScale9AYS/clients/sync_client/TemplateConfig.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
JumpScale9AYS/clients/sync_client/TemplateConfig.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
""" Auto-generated class for TemplateConfig """ from .TemplateLink import TemplateLink from .TemplateRecurringAction import TemplateRecurringAction from . import client_support class TemplateConfig(object): """ auto-generated. don't touch. """ @staticmethod def create(links, recurring): ...
31.088235
107
0.628666
747b4042690421a2c928b96f30baa80a632a88a0
14,518
py
Python
src/linakdeskapp/gui/device_settings_widget.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
121
2018-09-19T20:10:21.000Z
2022-03-31T08:07:33.000Z
src/linakdeskapp/gui/device_settings_widget.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
13
2020-02-19T15:58:37.000Z
2022-03-05T03:20:42.000Z
src/linakdeskapp/gui/device_settings_widget.py
nilp0inter/LinakDeskApp
0cf287ee96002f5c270c087ba73b72c548baa8c5
[ "MIT" ]
12
2020-02-13T23:55:30.000Z
2022-01-30T15:11:31.000Z
# MIT License # # Copyright (c) 2017 Arkadiusz Netczuk <dev.arnet@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # t...
35.496333
122
0.652983
747b7ada2321305bb7bff8d5f62ace40a1fbe616
8,670
py
Python
tests/test_ipea.py
phelipetls/seriesbr
b67ea73f987591fae5d3c4f87b479d6b71449ea3
[ "MIT" ]
6
2019-11-28T11:58:45.000Z
2020-10-14T19:11:03.000Z
tests/test_ipea.py
phelipetls/seriesbr
b67ea73f987591fae5d3c4f87b479d6b71449ea3
[ "MIT" ]
7
2022-01-08T18:28:39.000Z
2022-01-16T23:35:53.000Z
tests/test_ipea.py
phelipetls/seriesbr
b67ea73f987591fae5d3c4f87b479d6b71449ea3
[ "MIT" ]
2
2020-04-17T18:44:46.000Z
2021-08-29T00:42:18.000Z
import responses import pandas as pd import pytest from freezegun import freeze_time from responses import matchers from seriesbr import ipea BASE_URL = "http://ipeadata2-homologa.ipea.gov.br/api/v1/ValoresSerie(SERCODIGO='BM12_TJOVER12')" @freeze_time("2021-12-31") @responses.activate @pytest.mark.parametrize( ...
25.880597
111
0.388005
747b80dc2fca9ceb0212f0a2e29bb47baa7014af
6,116
py
Python
Source_Code/Python/labinstrument/remote.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
null
null
null
Source_Code/Python/labinstrument/remote.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
3
2018-09-21T00:57:21.000Z
2018-09-21T01:49:40.000Z
Source_Code/Python/labinstrument/remote.py
fenglwh/instruments
7886158d1ed97fe6bfe372a55f4fca107e834311
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding:utf-8 import datetime import threading __Author__ = 'Adair.l' import pyvisa.errors import socket import pyvisa as visa import pyvisa.constants as constants class CommunicationUnit(): def __init__(self,connect_string,target_type='GPIB',previous_type=None): self.target_type = type...
24.761134
126
0.583224
747b8561dfa87a82f3ef1e2ced875f2160647ca5
3,413
py
Python
tests/unit/io/PNMTest.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
tests/unit/io/PNMTest.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
tests/unit/io/PNMTest.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
import py import os import shutil import pytest from pathlib import Path import numpy as np import openpnm as op ws = op.Workspace() class PNMTest: def setup_class(self): ws.settings['local_data'] = True def teardown_class(self): ws = op.Workspace() ws.clear() def test_save_and_...
34.13
70
0.598594
747b943e4c3b20162f11df5818484bf9fc27e0c6
23,901
py
Python
twilio/rest/preview/hosted_numbers/hosted_number_order.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/rest/preview/hosted_numbers/hosted_number_order.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/rest/preview/hosted_numbers/hosted_number_order.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base....
36.545872
102
0.642735
747bb1d27f4ffc35bc737e3ce753c880f1aa162a
10,899
py
Python
MoshiboardDevice.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
MoshiboardDevice.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
MoshiboardDevice.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
from Kernel import * from LaserCommandConstants import * from zinglplotter import ZinglPlotter from CH341DriverBase import * """ MoshiboardDevice is the backend for Moshiboard devices. The device is primary composed of three main modules. * A generic spooler to take in lasercode. * An interpreter to conve...
33.535385
114
0.553262
747bc22219750283b1fe2fab21fba39e7b1ee664
1,458
py
Python
src/gui/stock_panel.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/gui/stock_panel.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/gui/stock_panel.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import wx import reservoirGrid class StockPanel(wx.SplitterWindow): """Display class for the stock reagent tab""" def __init__(self, parent, data): wx.SplitterWindow.__init__(self, parent, -1) self.data = data self.data.AddEventListener("reagents",self) ...
33.906977
87
0.570645
747bda1ed6ab1935cef8a1e026a82f29e72f5dc8
4,801
py
Python
tests/unit/benchmark/scenarios/compute/test_unixbench.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
tests/unit/benchmark/scenarios/compute/test_unixbench.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
tests/unit/benchmark/scenarios/compute/test_unixbench.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## # Copyright (c) 2015 Huawei Technologies Co.,Ltd and other. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompani...
27.912791
78
0.557592
747be42761db09333c5d3ec780acf8f3936f4cf6
60,627
py
Python
salt/states/archive.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
null
null
null
salt/states/archive.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
salt/states/archive.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2020-09-30T16:09:48.000Z
2020-09-30T16:09:48.000Z
# -*- coding: utf-8 -*- ''' Extract an archive .. versionadded:: 2014.1.0 ''' # Import Python libs from __future__ import absolute_import import errno import logging import os import re import shlex import stat import tarfile from contextlib import closing # Import 3rd-party libs import salt.ext.six as six from salt...
41.985457
111
0.52023
747c009deded2e7e62c0e95797cc85a0189b33f4
69
py
Python
aughie/nndb/__init__.py
abiro/aughie-py
055a03cf7fb015b5add38466449ce3f387438f37
[ "MIT" ]
null
null
null
aughie/nndb/__init__.py
abiro/aughie-py
055a03cf7fb015b5add38466449ce3f387438f37
[ "MIT" ]
null
null
null
aughie/nndb/__init__.py
abiro/aughie-py
055a03cf7fb015b5add38466449ce3f387438f37
[ "MIT" ]
null
null
null
from .client import ApiClient, ApiError, NetworksResult # noqa F401
34.5
68
0.797101
747c0fb6022af10bbef7dee833a89cf44c666405
327
py
Python
tests/test_transform.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
25
2018-09-21T13:21:25.000Z
2021-12-30T06:00:57.000Z
tests/test_transform.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
48
2019-01-26T10:10:43.000Z
2021-07-27T02:23:19.000Z
tests/test_transform.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
12
2018-09-27T09:19:58.000Z
2021-02-12T17:17:07.000Z
import astroid from pylint_protobuf import transform def test_issue51(): mod_node = astroid.parse(""" from . import fake_pb2 as fake__pb2 DESCRIPTOR = '...' # etc. """) # assert not raises KeyError mod = transform.transform_module(mod_node) assert isinstance(mod, astroid.Mo...
21.8
46
0.657492