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
1cafec3fbda8fbf09c1be07e0fbdcd9d6d198d70
661
py
Python
oscar/lib/python2.7/site-packages/faker/providers/company/de_DE/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/company/de_DE/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/company/de_DE/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as CompanyProvider class Provider(CompanyProvider): formats = ( '{{last_name}} {{company_suffix}}', '{{last_name}} {{last_name}} {{company_suffix}}', '{{last_name}}', ) company_suffixes = ...
31.47619
80
0.496218
1caffbde22b8d510e1dd732d62b4bd60e78bacef
900
py
Python
fcos_core/utils/logger.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
10
2021-08-31T01:39:40.000Z
2022-03-27T13:13:14.000Z
fcos_core/utils/logger.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
1
2021-10-10T05:36:35.000Z
2021-12-11T05:56:26.000Z
fcos_core/utils/logger.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
3
2021-09-05T09:14:35.000Z
2021-10-21T03:15:59.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import logging import os import sys def setup_logger(name, save_dir, distributed_rank, filename="log.txt"): logger = logging.getLogger(name) logger.setLevel(logging.DEBUG) # don't log results for the non-master process if distribu...
32.142857
84
0.69
1cb028678056792b8668ce452df28cf7a4f0c90d
329
py
Python
Leet Code/35_search_insert_position.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Leet Code/35_search_insert_position.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Leet Code/35_search_insert_position.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def searchInsert(self, nums: List[int], target: int) -> int: left,right = 0,len(nums) while left < right: mid = left + (right-left)//2; if target <= nums[mid]: right = mid else: left = mid + 1 retu...
27.416667
64
0.449848
1cb02c95c65bf252c152fa6bd672bedb538cec55
455
py
Python
setup.py
khensolomon/leyts
e54ccca71d66da198c7af769d68d36135e9c155d
[ "MIT" ]
2
2020-11-30T08:43:26.000Z
2021-02-06T07:56:45.000Z
setup.py
khensolomon/leyts
e54ccca71d66da198c7af769d68d36135e9c155d
[ "MIT" ]
1
2018-11-05T19:17:51.000Z
2018-11-06T18:58:05.000Z
setup.py
khensolomon/leyts
e54ccca71d66da198c7af769d68d36135e9c155d
[ "MIT" ]
3
2020-01-09T06:41:49.000Z
2022-03-16T14:00:17.000Z
from setuptools import setup # python setup.py install # python setup.py develop setup( name='leyts', version='3.7', description='the do that done', url='https://github.com/khensolomon/leyts', author='Khen Solomon Lethil', author_email='khensolomon@gmail.com', license='MIT', packages=[ ...
22.75
48
0.637363
1cb0305873beb80be64bac1176ee2b915b24d134
3,504
py
Python
tests/compute/test_shared_mem.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
2
2020-07-24T19:26:51.000Z
2021-08-21T21:04:11.000Z
tests/compute/test_shared_mem.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
null
null
null
tests/compute/test_shared_mem.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
1
2021-03-09T12:42:46.000Z
2021-03-09T12:42:46.000Z
import networkx as nx import scipy.sparse as ssp import dgl import dgl.contrib as contrib from dgl.frame import Frame, FrameRef, Column from dgl.graph_index import create_graph_index from dgl.utils import toindex import backend as F import dgl.function as fn import pickle import io import unittest from utils import par...
37.677419
96
0.710902
1cb034c698eb8d4e492890357d9dec37a0abd315
7,864
py
Python
nd.py
vinjn/net-doctor
02c6271c13593a21becba760db23b1c0ca34158c
[ "MIT" ]
null
null
null
nd.py
vinjn/net-doctor
02c6271c13593a21becba760db23b1c0ca34158c
[ "MIT" ]
null
null
null
nd.py
vinjn/net-doctor
02c6271c13593a21becba760db23b1c0ca34158c
[ "MIT" ]
null
null
null
import sys import datetime import json from pathlib import Path import os import subprocess import dpkt from dpkt.utils import mac_to_str, inet_to_str event_duration = 1000000 WRITES_CSV = False csv_file = None json_file = None cwd = Path(__file__).parent def open_chrome_tracing(): import we...
35.58371
147
0.494405
1cb05aa4935bb4d9de16ee9941bc9d6fc2908b83
444
py
Python
trainer/callbacks/save_multi_model.py
jason-zl190/sisr
2415d28333c94602c52be9c314a8044165d992cf
[ "Apache-2.0" ]
2
2019-12-15T17:12:46.000Z
2019-12-15T21:09:31.000Z
trainer/callbacks/save_multi_model.py
jason-zl190/sisr_ct
570d638a2e5a3301176af671d6b233deb507564f
[ "Apache-2.0" ]
null
null
null
trainer/callbacks/save_multi_model.py
jason-zl190/sisr_ct
570d638a2e5a3301176af671d6b233deb507564f
[ "Apache-2.0" ]
1
2020-04-13T06:56:19.000Z
2020-04-13T06:56:19.000Z
import tensorflow as tf class SaveMultiModel(tf.keras.callbacks.Callback): def __init__(self, models, model_dir): self.multi_models = models self.model_dir = model_dir super() def save_models(self, epoch): for name, model in self.multi_models: model.save('{}/{}_...
29.6
75
0.641892
1cb05f1f44d918ff17876ba36be32c3016db34ec
4,469
py
Python
examples/gail.py
GAIL-4-BARK/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
null
null
null
examples/gail.py
GAIL-4-BARK/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
24
2020-05-05T13:53:17.000Z
2020-08-13T15:58:51.000Z
examples/gail.py
Brucknem/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path from absl import app from absl import flags # BARK imports from bark.runtime.commons.parameters import ParameterServer from bark.runtime.viewer.matplotlib_viewer import MPViewer from bark.runtime.viewer.video_renderer import VideoRenderer # BARK-ML imports from bark_ml.e...
44.247525
130
0.714925
1cb07d9f70d5ca43aa5e6e051f8f2d07520e969a
360
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ina260_simpletest.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/examples/ina260_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
8
2019-03-09T22:29:46.000Z
2021-09-27T16:45:25.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ina260_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import adafruit_ina260 i2c = board.I2C() ina260 = adafruit_ina260.INA260(i2c) while True: print( "Current: %.2f mA Voltage: %.2f V Power:%.2f mW" % (ina260.current, ina260.voltage...
22.5
62
0.697222
1cb0a994e3fdf6a53575cff0b20d825144a366dc
3,029
py
Python
dtLib/crossval/example.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
6
2021-07-14T08:43:20.000Z
2022-02-02T19:40:26.000Z
dtLib/crossval/example.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
null
null
null
dtLib/crossval/example.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
2
2021-07-05T08:08:43.000Z
2022-03-28T09:46:02.000Z
''' This function compares the experimental data of each structure with the simulation results of their respective numerical model. ''' import numpy as np import plotly import plotly.graph_objs as go from plotly.subplots import make_subplots import matplotlib.pyplot as plt import pandas as pd import json dataSwExp = p...
58.25
145
0.740839
1cb0ce93fcae705ccc8e86e0624f7e000e5d48ab
23,691
py
Python
rsnapsim/IntensityAnalyses.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2022-01-28T18:17:37.000Z
2022-01-28T18:17:37.000Z
rsnapsim/IntensityAnalyses.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
null
null
null
rsnapsim/IntensityAnalyses.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2020-12-02T06:36:17.000Z
2020-12-02T06:36:17.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 17 11:50:56 2020 @author: William Raymond """ import numpy as np class Error(Exception): """Base class for exceptions in this module.""" pass class UnrecognizedNormalizationError(Error): """Exception raised for errors in the input. Attributes: m...
33.941261
185
0.531172
1cb0d63ba32d04af263e622cc77ace904d5d317a
9,182
py
Python
tests/core/validation/test_validation.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
tests/core/validation/test_validation.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
tests/core/validation/test_validation.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
2
2018-12-09T15:58:11.000Z
2020-09-29T07:10:21.000Z
from __future__ import unicode_literals import pytest from eth_utils import ( ValidationError, ) from eth.constants import ( SECPK1_N, ) from eth.validation import ( validate_block_number, validate_canonical_address, validate_gt, validate_gte, validate_is_boolean, validate_is_bytes, ...
22.286408
63
0.553147
1cb0e0439710bed8673bfa582b6c402b4f3d34d9
23,084
py
Python
src/toil/lib/ec2.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
348
2018-07-08T03:38:28.000Z
2022-03-11T18:57:44.000Z
src/toil/lib/ec2.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
1,700
2018-07-05T18:28:49.000Z
2022-03-31T14:09:04.000Z
src/toil/lib/ec2.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
126
2018-07-11T18:59:29.000Z
2022-01-24T03:14:02.000Z
import boto3 import os import urllib.request import json import logging import re import time from operator import attrgetter from typing import Any, Dict, Iterable, List, Union, Optional from base64 import b64encode from boto.ec2.instance import Instance as Boto2Instance from boto.ec2.spotinstancerequest import SpotI...
42.278388
171
0.626105
1cb0f0b991f501b86082e4b5cb447a6f939b245f
8,714
py
Python
detectron/roi_data/body_uv_rcnn.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
60
2021-08-07T09:16:52.000Z
2022-03-14T09:09:00.000Z
detectron/roi_data/body_uv_rcnn.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
4
2021-10-14T02:44:49.000Z
2022-03-14T08:18:20.000Z
detectron/roi_data/body_uv_rcnn.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
11
2021-11-01T00:30:37.000Z
2021-12-08T10:01:52.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future_...
40.910798
183
0.587101
1cb1238f763185cbf529fc95fcf53973b5fd2645
519
py
Python
Server/src/ethereum/utils.py
SamuelSlavka/dp
af5329afcfc99595f1e5e50ad0af7995c219b597
[ "MIT" ]
null
null
null
Server/src/ethereum/utils.py
SamuelSlavka/dp
af5329afcfc99595f1e5e50ad0af7995c219b597
[ "MIT" ]
10
2022-03-21T11:09:53.000Z
2022-03-30T07:08:14.000Z
Server/src/ethereum/utils.py
SamuelSlavka/dp
af5329afcfc99595f1e5e50ad0af7995c219b597
[ "MIT" ]
null
null
null
import json, os, logging from hexbytes import HexBytes class HexJsonEncoder(json.JSONEncoder): """ Hex encoder class """ def default(self, obj): if isinstance(obj, HexBytes): return obj.hex() return super().default(obj) def get_contract_info(): # this leads to container (withno...
30.529412
80
0.651252
1cb13e14474fa304418baecbc68c8a78bfc9debf
32,202
py
Python
otp/chat/TalkAssistant.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
otp/chat/TalkAssistant.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
otp/chat/TalkAssistant.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import sys import time from direct.directnotify import DirectNotifyGlobal from direct.showbase import DirectObject from pandac.PandaModules import * from otp.chat.ChatGlobals import * from otp.chat.TalkGlobals import * from otp.chat.TalkHandle import TalkHandle from otp.chat.TalkMessage import TalkMessage from otp.otpb...
43.634146
225
0.643066
1cb15cbb34e849e5872b4b62061d291f99c4d302
50
py
Python
Cappellari/voronoi/__init__.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
Cappellari/voronoi/__init__.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
Cappellari/voronoi/__init__.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
from Cappellari.voronoi import voronoi_2d_binning
25
49
0.9
1cb180b3a7a648f5d41187ee94a39774ca0e3687
1,517
py
Python
setup.py
sckevmit/torus
b815f259db856c5c73c87009fe93bbf6ad08f1ff
[ "BSD-3-Clause" ]
13
2015-02-23T22:45:24.000Z
2021-05-23T06:17:35.000Z
setup.py
sckevmit/torus
b815f259db856c5c73c87009fe93bbf6ad08f1ff
[ "BSD-3-Clause" ]
null
null
null
setup.py
sckevmit/torus
b815f259db856c5c73c87009fe93bbf6ad08f1ff
[ "BSD-3-Clause" ]
1
2017-02-25T10:14:16.000Z
2017-02-25T10:14:16.000Z
import sys try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [req.strip() for req in open('requirements.pip')] #if sys.version_info[:2] <= (2, 6): #requirements = [req.strip() for req in open('requirements_py26.pip')] exec([v for v in open('torus/__init...
37.925
170
0.645353
1cb1895424b3e5396f2b206bece7ff38f7a7bbae
892
py
Python
alipay/aop/api/domain/AntMerchantExpandItemSecurityDeleteModel.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/AntMerchantExpandItemSecurityDeleteModel.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/AntMerchantExpandItemSecurityDeleteModel.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 AntMerchantExpandItemSecurityDeleteModel(object): def __init__(self): self._item_id = None @property def item_id(self): return self._item_id @item_id.setter def ...
21.756098
65
0.59417
1cb1d27f9f58d3fd7ee7e06609512e1e60005253
3,861
py
Python
tests/st/ops/cpu/test_bias_add.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
1
2021-03-10T09:05:13.000Z
2021-03-10T09:05:13.000Z
tests/st/ops/cpu/test_bias_add.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
null
null
null
tests/st/ops/cpu/test_bias_add.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.75
113
0.67625
1cb1da367c20e7abf6d3075cf98a22596de55942
3,132
py
Python
gui/qt/utxo_list.py
schancel/electrum
ee125e0723a9345757b741aed93be906af80d327
[ "MIT" ]
1
2020-05-24T08:50:13.000Z
2020-05-24T08:50:13.000Z
gui/qt/utxo_list.py
Santobak/electrum
ee125e0723a9345757b741aed93be906af80d327
[ "MIT" ]
null
null
null
gui/qt/utxo_list.py
Santobak/electrum
ee125e0723a9345757b741aed93be906af80d327
[ "MIT" ]
1
2021-04-01T18:00:31.000Z
2021-04-01T18:00:31.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
42.324324
138
0.672095
1cb1ede093fd68e1d026cdf3586a17a7a6aacdec
2,261
py
Python
Code/palindromes.py
alexbarksdale/CS-1.3-Core-Data-Structures
43e9d71d90dce5d3fa06fd00c3e174bfcfdbe5af
[ "MIT" ]
null
null
null
Code/palindromes.py
alexbarksdale/CS-1.3-Core-Data-Structures
43e9d71d90dce5d3fa06fd00c3e174bfcfdbe5af
[ "MIT" ]
6
2020-02-15T17:40:00.000Z
2020-03-09T22:32:05.000Z
Code/palindromes.py
alexbarksdale/CS-1.3-Core-Data-Structures
43e9d71d90dce5d3fa06fd00c3e174bfcfdbe5af
[ "MIT" ]
null
null
null
#!pythonk import string # Hint: Use these string constants to ignore capitalization and/or punctuation # string.ascii_lowercase is 'abcdefghijklmnopqrstuvwxyz' # string.ascii_uppercase is 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' # string.ascii_letters is ascii_lowercase + ascii_uppercase def is_palindrome(text=str): """A str...
30.972603
79
0.626272
1cb1f834eab1a6f0f7c290783cbc930658a77972
5,243
py
Python
tests/test_filter.py
maysu1914/django-rest-framework-datatables
874ffae07fb2c733fae238ab1336fae066377b18
[ "MIT" ]
null
null
null
tests/test_filter.py
maysu1914/django-rest-framework-datatables
874ffae07fb2c733fae238ab1336fae066377b18
[ "MIT" ]
null
null
null
tests/test_filter.py
maysu1914/django-rest-framework-datatables
874ffae07fb2c733fae238ab1336fae066377b18
[ "MIT" ]
null
null
null
from albums.models import Album from albums.serializers import AlbumSerializer from django.conf.urls import url from django.test.utils import override_settings, modify_settings from django.test import TestCase from rest_framework.generics import ListAPIView from rest_framework.test import ( APIClient, ) from rest...
51.401961
656
0.727255
1cb1ff7ae2bbe9a7cf402626bcadbf6664c57b04
4,192
py
Python
test/test_dump.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
1
2021-04-07T18:13:56.000Z
2021-04-07T18:13:56.000Z
test/test_dump.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
null
null
null
test/test_dump.py
rivethealth/slice-db
2f94ae7e6c8970bd4ff42b10b0d612c4df179ab8
[ "MIT" ]
null
null
null
import json import os import subprocess from file import temp_file from pg import connection, transaction from process import run_process _SCHEMA_SQL = """ CREATE TABLE parent ( id int PRIMARY KEY ); CREATE TABLE child ( id int PRIMARY KEY, parent_id int REFERENCES parent (id) ...
25.101796
82
0.412691
1cb207b0825f89ab8680f7363a107868fa5f55bb
12,902
py
Python
app/utils/hack_index.py
AurimasGr/com_exoselfie
8bf2336c2578aa658c933df49a85a7f2b3f1e567
[ "MIT" ]
null
null
null
app/utils/hack_index.py
AurimasGr/com_exoselfie
8bf2336c2578aa658c933df49a85a7f2b3f1e567
[ "MIT" ]
8
2020-09-25T19:58:06.000Z
2022-01-13T01:44:59.000Z
app/utils/hack_index.py
AurimasGr/com_exoselfie
8bf2336c2578aa658c933df49a85a7f2b3f1e567
[ "MIT" ]
1
2019-10-20T07:51:18.000Z
2019-10-20T07:51:18.000Z
import pandas as pd import numpy as np import openpyxl import pandas as pd from scipy.optimize import curve_fit import cv2 import codecs import os, shutil # from transforms import RGBTransform def exp(dT, a, b, c): return a * np.exp(-b * dT) + c ## Calculate physical parameters def getT(T_star, R, a, A): ...
28.863535
86
0.49907
1cb240b7fb7921247e712c1bd782b2df7749b310
2,271
py
Python
scripts/utils/combine_datasets.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
3
2020-11-03T14:54:22.000Z
2021-04-12T12:23:10.000Z
scripts/utils/combine_datasets.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
null
null
null
scripts/utils/combine_datasets.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
2
2020-12-03T06:21:59.000Z
2021-01-16T04:47:12.000Z
from pathlib import Path from typing import Tuple import click import netCDF4 import numpy as np from ertk.dataset import write_features from ertk.utils import PathlibPath @click.command() @click.argument("input", type=PathlibPath(exists=True, dir_okay=False), nargs=-1) @click.argument("output", type=Path) def main...
31.985915
81
0.654778
1cb259e0114c1f5acf9856e265f24c2a3b8ab7bf
1,819
py
Python
dstk/montk.py
alexlewzey/dstk
7137ebd4a215d7ebe4a342663097ee8ba7e58752
[ "BSD-3-Clause" ]
null
null
null
dstk/montk.py
alexlewzey/dstk
7137ebd4a215d7ebe4a342663097ee8ba7e58752
[ "BSD-3-Clause" ]
null
null
null
dstk/montk.py
alexlewzey/dstk
7137ebd4a215d7ebe4a342663097ee8ba7e58752
[ "BSD-3-Clause" ]
null
null
null
""" monitoring tool-kit example ------- import os try: def app(): something app() except Exception as e: error_log = montk.make_error_log() montk.send_error_log_email(to=os.environ['EMAIL_ADDRESS']) """ import smtplib import os from email.message import EmailMessage import sys import trace...
29.819672
115
0.66685
1cb261a069932c9baace584bfb05128d28817747
263
py
Python
adapters/pox/ext/debugger/elt/message_server/messages.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
1
2016-07-14T14:45:56.000Z
2016-07-14T14:45:56.000Z
server/ext/debugger/elt/message_server/messages.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
server/ext/debugger/elt/message_server/messages.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
class Message(object): """ Base class for server interaction messages. """ def __init__(self): self._name = str(self.__class__).rsplit('.', 1)[1][:-2] def __setstate__(self, d): pass class ClosingMessage(Message): pass
17.533333
63
0.60076
1cb2667d82f70a12251b5e8522bfb2c349ac619a
1,931
py
Python
visualization_code.py
Femi-Tofade/Visualization_Package
9056e1c0d44962a3b519f4d260ba38d85c58b413
[ "MIT" ]
null
null
null
visualization_code.py
Femi-Tofade/Visualization_Package
9056e1c0d44962a3b519f4d260ba38d85c58b413
[ "MIT" ]
null
null
null
visualization_code.py
Femi-Tofade/Visualization_Package
9056e1c0d44962a3b519f4d260ba38d85c58b413
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import math class VisualizationCode: def __init__(self): """ Class to create different well labelled visualizations such as line plots, and bar charts based off matplotlib """ x = [] y = [] def data(data_1, data_...
29.257576
118
0.549974
1cb26c5b55fc48a0d14a5bfce6f6fed577bac905
2,067
py
Python
leetcode_python/Math/fraction-to-recurring-decimal.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Math/fraction-to-recurring-decimal.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Math/fraction-to-recurring-decimal.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V1 # V2 # https://blog.csdn.net/qian2729/article/details/50638161 class Solution(object): def fractionToDecimal(self, numerator, denominator): """ :type numerator: int :type denominator: int :rtype: str """ negativeSign = numerator * denominator < 0 nu...
27.197368
131
0.49492
1cb273e8a729fbfb3c03cb7216bf88966584780c
8,350
py
Python
escape/escape/util/com_logger.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
escape/escape/util/com_logger.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
escape/escape/util/com_logger.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
# Copyright 2017 Janos Czentye # # 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, s...
31.390977
81
0.658323
1cb2c7fa499f85dd839c1703edcaa2b0ec8350ab
1,977
py
Python
userbot/plugins/ytmusic.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/ytmusic.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/ytmusic.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
import asyncio import os import wget from youtubesearchpython import SearchVideos from userbot.Config import Var from userbot.utils import lightning_cmd, edit_or_reply, sudo_cmd @borg.on(lightning_cmd(pattern="ytmusic ?(.*)")) @borg.on(sudo_cmd(pattern="ytmusic ?(.*)", allow_sudo=True)) async def _(event): if e...
33.508475
125
0.627213
1cb2e769b52ee052ce26c17b1cfc9c59d624718e
1,033
py
Python
tests/test_provider_NetApp_netapp_elementsw.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_NetApp_netapp_elementsw.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_NetApp_netapp_elementsw.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_NetApp_netapp-elementsw.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:22:13 UTC) def test_provider_import(): import terrascript.provider.NetApp.netapp_elementsw def test_resource_import(): from terrascript.resource.NetApp.netapp_elementsw import elementsw_account ...
31.30303
82
0.774443
1cb32adb618048e567ea81599145191e8aaea177
777
py
Python
dcoder/TextMethods.py
NightZan999/dcoder
be4d22c63ddd5abd98f9eb355dd8bd61714cd84f
[ "MIT" ]
null
null
null
dcoder/TextMethods.py
NightZan999/dcoder
be4d22c63ddd5abd98f9eb355dd8bd61714cd84f
[ "MIT" ]
null
null
null
dcoder/TextMethods.py
NightZan999/dcoder
be4d22c63ddd5abd98f9eb355dd8bd61714cd84f
[ "MIT" ]
null
null
null
import string # TextMethods container class class TextMethods: def __init__(self, text = "No constructor provided"): self.text = text def text2bin(self,text = None): if text is None: text = self.text bin_string = " ".join(format(ord(x), 'b') for x in text) return bin_string def text2oct...
25.9
59
0.640927
1cb32d0870c8309e756b63a21622aa4fd3a8e6f0
22,245
py
Python
keystone/cli.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/cli.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/cli.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # 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...
37.960751
79
0.612317
1cb32e97902e2947e77716cb999968f61dfecd84
3,626
py
Python
PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_camera_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_camera_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_camera_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Capstone Team Project. Code to run on the EV3 robot (NOT on a laptop). This code defines the CameraSensor. Authors: Your professors (for the framework) and PUT_YOUR_NAMES_HERE. Winter term, 2019-2020. """ # TODO: Put the name of EACH team member who contributes # to this module in the above. import roseb...
41.678161
83
0.511031
1cb34b3808aa0cf4903693dbc1acdb700fbd7e1b
2,250
py
Python
fsdet/utils/events.py
JunhoPark0314/few-shot-object-detection
bb7b09eafa6a35a74d641485c0831494fc00e700
[ "Apache-2.0" ]
null
null
null
fsdet/utils/events.py
JunhoPark0314/few-shot-object-detection
bb7b09eafa6a35a74d641485c0831494fc00e700
[ "Apache-2.0" ]
null
null
null
fsdet/utils/events.py
JunhoPark0314/few-shot-object-detection
bb7b09eafa6a35a74d641485c0831494fc00e700
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import datetime import json import logging import os import time from collections import defaultdict from contextlib import contextmanager from typing import Optional import torch from fvcore.common.history_buffer import HistoryBuffer from detectron2.utils.events impor...
35.714286
95
0.623556
1cb355b75265e50bca3a463454f443f205448aed
296
py
Python
tests/units/conftest.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
77
2020-10-01T15:34:27.000Z
2022-03-04T18:38:41.000Z
tests/units/conftest.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
8
2020-10-02T12:14:50.000Z
2020-12-27T08:51:41.000Z
tests/units/conftest.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
12
2020-10-01T18:45:40.000Z
2022-03-15T05:56:58.000Z
import pytest @pytest.fixture def environment(monkeypatch): monkeypatch.setenv("PROXY_USERNAME", "cat") monkeypatch.setenv("PROXY_PASSWORD", "tac") monkeypatch.setenv("NLP_HOST", "localhost") monkeypatch.setenv("NLP_PORT", "9200") monkeypatch.setenv("NLP_USE_SSL", "false")
26.909091
47
0.722973
1cb37abe98cc065be08712cbb938e4db90285dea
27,665
py
Python
letsencrypt/main.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
letsencrypt/main.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
letsencrypt/main.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
"""Let's Encrypt main entry point.""" from __future__ import print_function import atexit import functools import logging.handlers import os import sys import time import traceback import zope.component from acme import jose import letsencrypt from letsencrypt import account from letsencrypt import client from lets...
39.521429
97
0.675294
1cb3a55050c9d77fba6c1cdfa6cbdd66b428b920
18,221
py
Python
src/models/predictor.py
idiap/sentence-planner
bafdef50043b97e28ae550e44e595dff3f4eb6ad
[ "MIT" ]
3
2021-09-30T15:11:50.000Z
2022-02-15T09:25:57.000Z
src/models/predictor.py
idiap/sentence-planner
bafdef50043b97e28ae550e44e595dff3f4eb6ad
[ "MIT" ]
null
null
null
src/models/predictor.py
idiap/sentence-planner
bafdef50043b97e28ae550e44e595dff3f4eb6ad
[ "MIT" ]
2
2022-02-23T14:34:11.000Z
2022-03-11T08:21:34.000Z
# # Original version by Yang Liu. # Modifications by Andreas Marfurt <andreas.marfurt@idiap.ch> # #!/usr/bin/env python """ Translator Class and builder """ from __future__ import print_function import codecs import os import math import torch from tensorboardX import SummaryWriter from others.utils import rouge_re...
40.046154
214
0.549037
1cb3c3834b632c30193d5044453289361308ee3a
3,566
py
Python
src/_repobee/formatters.py
ShreyaDhananjay/repobee
da501606c351bdbeda3428b245072f1a2d6372b9
[ "MIT" ]
null
null
null
src/_repobee/formatters.py
ShreyaDhananjay/repobee
da501606c351bdbeda3428b245072f1a2d6372b9
[ "MIT" ]
null
null
null
src/_repobee/formatters.py
ShreyaDhananjay/repobee
da501606c351bdbeda3428b245072f1a2d6372b9
[ "MIT" ]
null
null
null
"""Output formatting functions for top-level commands. This module contains functions for pretty formatting of command line output. .. module:: command :synopsis: Functions for pretty formatting of command line output. .. moduleauthor:: Simon Larsén """ import os from typing import Mapping, List from colored im...
27.643411
112
0.594784
1cb3e50a44399630ef983a29c251128147a37537
7,251
py
Python
raiden/tests/utils/protocol.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
raiden/tests/utils/protocol.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
12
2019-08-09T19:12:17.000Z
2019-12-05T15:49:29.000Z
raiden/tests/utils/protocol.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
from collections import defaultdict from unittest.mock import patch import structlog from eth_utils import to_checksum_address from gevent.event import AsyncResult from raiden.message_handler import MessageHandler from raiden.messages.abstract import Message from raiden.raiden_event_handler import EventHandler from r...
40.060773
98
0.685699
1cb3e99078da6c52c6aaab0eb88bae3b544ddd7d
91,398
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/parcoords/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/parcoords/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/parcoords/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0...
36.91357
88
0.560165
1cb3fa33634fe81f6d74fbe67100d78c4a8f83fd
3,779
py
Python
vnpy/app/csv_loader/engine.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
323
2015-11-21T14:45:29.000Z
2022-03-16T08:54:37.000Z
vnpy/app/csv_loader/engine.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
9
2017-03-21T08:26:21.000Z
2021-08-23T06:41:17.000Z
vnpy/app/csv_loader/engine.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
148
2016-09-26T03:25:39.000Z
2022-02-06T14:43:48.000Z
""" Author: Zehua Wei (nanoric) Load data from a csv file. Differences to 1.9.2: * combine Date column and Time column into one Datetime column Sample csv file: ```csv "Datetime","Open","High","Low","Close","Volume" 2010-04-16 09:16:00,3450.0,3488.0,3450.0,3468.0,489 2010-04-16 09:17:00,3468.0,3473.8,3467.0,346...
26.992857
76
0.560201
1cb44f1899927579663996eedfb009569d3ab7d4
4,025
py
Python
playground/fsdet/coco/retentive_rcnn/10shot/seed4/modeling/rpn.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
23
2021-06-25T05:34:31.000Z
2022-02-08T03:32:00.000Z
playground/fsdet/coco/retentive_rcnn/5shot/seed3/modeling/rpn.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
6
2021-06-30T13:10:21.000Z
2021-11-04T13:26:39.000Z
playground/fsdet/coco/retentive_rcnn/5shot/seed7/modeling/rpn.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
1
2021-10-12T11:58:14.000Z
2021-10-12T11:58:14.000Z
import torch import torch.nn as nn import torch.nn.functional as F from cvpods.modeling.anchor_generator import DefaultAnchorGenerator from cvpods.modeling.box_regression import Box2BoxTransform from cvpods.modeling.matcher import Matcher from cvpods.modeling.proposal_generator.rpn import RPN, StandardRPNHead class ...
40.656566
78
0.650435
1cb44f95289a75026c4560e41f8c2663cc878ec3
229
py
Python
mesos_slave/datadog_checks/mesos_slave/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
mesos_slave/datadog_checks/mesos_slave/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
mesos_slave/datadog_checks/mesos_slave/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from .__about__ import __version__ from .mesos_slave import MesosSlave __all__ = [ '__version__', 'MesosSlave' ]
20.818182
59
0.729258
1cb49506f3ea18a2a12a89c557d78820a67f7606
9,385
py
Python
tests/test_storage.py
bfontaine/ctrie
a195441d9df4c3a4f257ef0b4d5a1f9f2913adef
[ "MIT" ]
3
2015-04-09T14:00:08.000Z
2020-12-13T03:26:32.000Z
tests/test_storage.py
bfontaine/ctrie
a195441d9df4c3a4f257ef0b4d5a1f9f2913adef
[ "MIT" ]
3
2021-03-30T06:44:31.000Z
2021-08-24T08:51:42.000Z
tests/test_storage.py
bfontaine/ctrie
a195441d9df4c3a4f257ef0b4d5a1f9f2913adef
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import platform if platform.python_version() < '2.7': import unittest2 as unittest else: import unittest from ctrie import CTrie class TestStorage(unittest.TestCase): def setUp(self): self.ct = CTrie() # empty def test_empty(self): self.assertTrue(self....
29.605678
79
0.581886
1cb4b8b43d9ed181ef6b60e00e712c11e63489df
3,903
py
Python
python/cuML/test/test_pca_random.py
just4jc/cuml
bd7824bff0a60634b11c1f036dd41cc7f8c05bc1
[ "Apache-2.0" ]
1
2019-02-14T05:32:35.000Z
2019-02-14T05:32:35.000Z
python/cuML/test/test_pca_random.py
just4jc/cuml
bd7824bff0a60634b11c1f036dd41cc7f8c05bc1
[ "Apache-2.0" ]
1
2020-02-20T06:08:23.000Z
2020-02-20T06:08:23.000Z
python/cuML/test/test_pca_random.py
just4jc/cuml
bd7824bff0a60634b11c1f036dd41cc7f8c05bc1
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. # # 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...
38.264706
122
0.703818
1cb4e0cfa064c30985dffec46e0ade57aa03fa07
32,877
py
Python
tests/unit/test_model.py
gHerzmann/falcano
2f669b3ff8920bfc4d2532b95ccaec4b61699f97
[ "MIT" ]
49
2020-08-03T21:49:40.000Z
2022-03-09T13:33:59.000Z
tests/unit/test_model.py
gHerzmann/falcano
2f669b3ff8920bfc4d2532b95ccaec4b61699f97
[ "MIT" ]
12
2020-08-04T20:31:42.000Z
2021-12-13T15:21:30.000Z
tests/unit/test_model.py
gHerzmann/falcano
2f669b3ff8920bfc4d2532b95ccaec4b61699f97
[ "MIT" ]
12
2020-08-27T16:42:58.000Z
2021-11-16T18:10:36.000Z
import os import pytest from unittest import mock import datetime import decimal from falcano.model import Model, _ModelFuture from falcano.indexes import GlobalSecondaryIndex, AllProjection from falcano.attributes import UnicodeAttribute, NumberAttribute, UTCDateTimeAttribute, ListAttribute, MapAttribute from falcano....
33.858908
462
0.569
1cb51c9e39a4a7022934b8cbc6d3dac8f3331625
9,046
py
Python
CadVlan/Filter/views.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
17
2015-05-19T20:03:45.000Z
2022-03-24T06:19:47.000Z
CadVlan/Filter/views.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
41
2015-01-27T18:36:07.000Z
2021-06-10T20:34:03.000Z
CadVlan/Filter/views.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
19
2016-09-12T07:35:42.000Z
2022-01-28T23:46:11.000Z
# -*- coding:utf-8 -*- # 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 "Lic...
33.753731
114
0.610214
1cb540ea2b4fb3a8254c37c60bc8ddafb1a614d7
43,554
py
Python
infoarbre/resources.py
MarBesse/gestion_arbres
9067ae6768b24a408fd2160e34401f9845c6a22b
[ "MIT" ]
null
null
null
infoarbre/resources.py
MarBesse/gestion_arbres
9067ae6768b24a408fd2160e34401f9845c6a22b
[ "MIT" ]
null
null
null
infoarbre/resources.py
MarBesse/gestion_arbres
9067ae6768b24a408fd2160e34401f9845c6a22b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.11.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x26\xf8\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ ...
63.305233
104
0.715663
1cb542431a1a59ca374bcb9f38fccabdba2882f7
4,630
py
Python
Author_Template/AdassIndex.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
1
2019-09-18T08:10:25.000Z
2019-09-18T08:10:25.000Z
Author_Template/AdassIndex.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
10
2019-09-29T13:55:38.000Z
2021-12-27T16:23:49.000Z
Author_Template/AdassIndex.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
3
2020-10-05T19:10:22.000Z
2021-12-25T09:51:07.000Z
# # A d a s s I n d e x . p y # # This is the code for a module that contains a number of utility routines # that handle operations connected with subject index entries for ADASS # Proceedings. # # WriteSubjectIndex (IndexEntries,OutputFile) # Writes a list of entries in ssindex format to...
36.746032
80
0.591577
1cb547580b89e0c3ebc932e201e3a1fe7fd6149d
1,952
py
Python
tests/test_gemm.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
tests/test_gemm.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
tests/test_gemm.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
from numpywren.matrix import BigMatrix from numpywren import binops from numpywren.matrix_init import shard_matrix import numpy as np import lithops import unittest import os class GemmTestClass(unittest.TestCase): def test_single_shard_matrix_multiply(self): fexec = lithops.FunctionExecutor(runtime='jsam...
34.245614
109
0.682377
1cb559dc67232712b716cd0147eb491c9f6645b4
8,704
py
Python
testing/test_table.py
rsnyman/widgetastic.patternfly4
3d7c3c5921e278bf103965c7016b836844bd45ef
[ "Apache-2.0" ]
1
2019-05-07T14:48:46.000Z
2019-05-07T14:48:46.000Z
testing/test_table.py
rsnyman/widgetastic.patternfly4
3d7c3c5921e278bf103965c7016b836844bd45ef
[ "Apache-2.0" ]
24
2019-02-01T11:42:20.000Z
2019-05-27T17:37:55.000Z
testing/test_table.py
rsnyman/widgetastic.patternfly4
3d7c3c5921e278bf103965c7016b836844bd45ef
[ "Apache-2.0" ]
7
2018-12-11T10:55:47.000Z
2019-06-12T08:35:48.000Z
import pytest from widgetastic.widget import Checkbox from widgetastic.widget import View from widgetastic_patternfly4 import ColumnNotExpandable from widgetastic_patternfly4 import CompoundExpandableTable from widgetastic_patternfly4 import ExpandableTable from widgetastic_patternfly4 import PatternflyTable from widg...
32.477612
97
0.547105
1cb55f96635d4f236fa0d96357b3450e0c568509
4,931
py
Python
gym3/types.py
christopher-hesse/gym3
2ed9d344ede8bbd96b6280e9fbbbf55861ea33a9
[ "MIT" ]
null
null
null
gym3/types.py
christopher-hesse/gym3
2ed9d344ede8bbd96b6280e9fbbbf55861ea33a9
[ "MIT" ]
null
null
null
gym3/types.py
christopher-hesse/gym3
2ed9d344ede8bbd96b6280e9fbbbf55861ea33a9
[ "MIT" ]
null
null
null
from typing import Any, Callable, Tuple from gym3.internal import misc INTEGER_DTYPE_NAMES = set( ["int8", "int16", "int32", "int64", "uint8", "uint16", "uint32", "uint64"] ) FLOAT_DTYPE_NAMES = set(["float32", "float64"]) DTYPE_NAME_TO_MAX_VALUE = {} DTYPE_NAME_TO_BIT_WIDTH = {} for signed in [True, False]: ...
26.368984
113
0.61306
1cb560ee07b0f8868aff797930263533c2d19f37
134
py
Python
copywriting/context_processors.py
uncommitted-and-forgotten/django-copywriting
4a9fab437d255c71920420f6b478d77b5d5bbbfb
[ "MIT" ]
2
2015-03-10T15:45:08.000Z
2015-10-20T05:00:40.000Z
copywriting/context_processors.py
uncommitted-and-forgotten/django-copywriting
4a9fab437d255c71920420f6b478d77b5d5bbbfb
[ "MIT" ]
4
2015-06-10T08:23:55.000Z
2016-01-25T13:18:19.000Z
copywriting/context_processors.py
arteria/django-copywriting
4a9fab437d255c71920420f6b478d77b5d5bbbfb
[ "MIT" ]
1
2016-01-12T10:59:20.000Z
2016-01-12T10:59:20.000Z
def disqus_shortname(request): from django.conf import settings return {'disqus_shortname' : settings.DISQUS_SHORTNAME}
22.333333
59
0.746269
1cb56466e42365c795bebfa77f10af6260512611
637
py
Python
logger/__init__.py
wwyf/pyml
53ba894187a29823e7461aaae1d4cb35ecfd4386
[ "MIT" ]
null
null
null
logger/__init__.py
wwyf/pyml
53ba894187a29823e7461aaae1d4cb35ecfd4386
[ "MIT" ]
null
null
null
logger/__init__.py
wwyf/pyml
53ba894187a29823e7461aaae1d4cb35ecfd4386
[ "MIT" ]
null
null
null
import logging # create logger logger = logging.getLogger('simple_example') formatter = logging.Formatter('[%(levelname)8s] - [%(module)10s] - [%(lineno)3d] - [%(funcName)10s] \n%(message)s\n') logger.setLevel(logging.WARNING) ch = logging.StreamHandler() # ch.setLevel(logging.DEBUG) ch.setFormatter(formatter) logger...
35.388889
175
0.701727
1cb5b26ae35882a6dfe953199ffa9747e226dd82
5,343
py
Python
DocumentInfo.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
DocumentInfo.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
DocumentInfo.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
"""Simple 'Document Info...' dialog for Grail.""" __version__ = '$Revision: 2.16 $' import re import string import tkinter import tk_tools import urllib from urllib.parse import urlparse FIELD_BREAKER = string.maketrans("&", "\n") MAX_TEXT_FIELD_LINES = 10 class DocumentInfoDialog: def __init__(self, master, c...
38.164286
78
0.577578
1cb5be0dae684ea3169a0ff9a34bb9a9c830fe93
103
py
Python
v_env/lib/python3.7/site-packages/compose/__init__.py
buds-lab/extreme-makeover-psychrometric-chart
e7267f57584d8ba645507189ea4a8e474c67e0de
[ "MIT" ]
72
2018-07-02T07:47:15.000Z
2022-03-29T10:02:14.000Z
v_env/lib/python3.7/site-packages/compose/__init__.py
buds-lab/expanded-psychrometric-chart
e7267f57584d8ba645507189ea4a8e474c67e0de
[ "MIT" ]
51
2019-10-08T01:53:02.000Z
2021-06-04T22:02:21.000Z
v_env/lib/python3.7/site-packages/compose/__init__.py
buds-lab/expanded-psychrometric-chart
e7267f57584d8ba645507189ea4a8e474c67e0de
[ "MIT" ]
29
2018-09-17T06:10:32.000Z
2022-03-19T13:15:30.000Z
from __future__ import absolute_import from __future__ import unicode_literals __version__ = '1.23.2'
20.6
39
0.834951
1cb5e377bb19cfedd219aad46965fb2a2efb499b
2,652
py
Python
tests/integration/internal/test_lock.py
Sage-Bionetworks/spccore
c63a88ef472b83be11594b820a072f6d79080a73
[ "Apache-2.0" ]
1
2019-06-13T20:47:59.000Z
2019-06-13T20:47:59.000Z
tests/integration/internal/test_lock.py
Sage-Bionetworks/spccore
c63a88ef472b83be11594b820a072f6d79080a73
[ "Apache-2.0" ]
12
2019-06-13T23:32:59.000Z
2019-08-27T01:24:57.000Z
tests/integration/internal/test_lock.py
Sage-Bionetworks/spccore
c63a88ef472b83be11594b820a072f6d79080a73
[ "Apache-2.0" ]
3
2019-06-13T20:50:01.000Z
2019-08-29T19:34:31.000Z
from spccore.internal.lock import * def test_private_acquire(): user1_lock = Lock("foo", max_age=datetime.timedelta(seconds=2)) user2_lock = Lock("foo", max_age=datetime.timedelta(seconds=2)) assert user1_lock._has_lock() is False assert user2_lock._has_lock() is False assert user1_lock._acquire_...
30.837209
79
0.698341
1cb5f94706064537c93e4b28afdb6ad3d0d40afc
2,466
py
Python
services/consumer_manager/cli_consumer/cliargsparse.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
services/consumer_manager/cli_consumer/cliargsparse.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
services/consumer_manager/cli_consumer/cliargsparse.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
import argparse from cunsumer.consumer_manager import ConsumerManager from .create_service import CreateService class CliArgsParse: def __init__(self, pro_name): self._pro_name = pro_name self._parser = argparse.ArgumentParser(prog=pro_name) self._consumer_manager = ConsumerManager() ...
54.8
119
0.600973
1cb5fa5f14eb8cbafe1d5ae405c12419ba279c46
16,880
py
Python
analyses/ara_coincidences/missed_events_TD_plotsaver.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
null
null
null
analyses/ara_coincidences/missed_events_TD_plotsaver.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
4
2021-09-02T17:19:25.000Z
2022-03-08T17:28:03.000Z
analyses/ara_coincidences/missed_events_TD_plotsaver.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
null
null
null
""" """ import pyrex import numpy as np import pandas as pd import matplotlib.pyplot as plt energies = ['1e8','1e9','1e10','1e11'] # energies = ['1e8','3e8','1e9','3e9','1e10','3e10','1e11'] folders = ['01'] # folders = ['01','02'] indices = range(1) #indices = range(20) plot_dir = 'missed_events_TD_small/' ...
36.855895
108
0.56173
1cb605d3f9491c83cbff3a8acc88ab0cd3c55e97
3,083
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.819444
133
0.672397
1cb61ce478e105bcc9075d759e5086e46815210a
42
py
Python
maps/bloody_puddles/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/bloody_puddles/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/bloody_puddles/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from .bloody_puddles import BloodyPuddles
21
41
0.880952
1cb6227a8845c17890e78ff81a5650c9a8aed567
9,858
py
Python
multicurrency/ruble.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
multicurrency/ruble.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
multicurrency/ruble.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Ruble currency representation(s).""" from decimal import Decimal from typing import Optional, Union from .currency import Currency class BelarusianRuble...
36.242647
77
0.600325
1cb635888eaaa9a97d43ae44674978ab144b2209
1,287
py
Python
vyperlogix/requests/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/requests/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/requests/__init__.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
__copyright__ = """\ (c). Copyright 2008-2020, Vyper Logix Corp., All Rights Reserved. Published under Creative Commons License (http://creativecommons.org/licenses/by-nc/3.0/) restricted to non-commercial educational use only., http://www.VyperLogix.com for details THE AUTHOR VYPER LOGIX CORP DISCLAIMS ALL WARRA...
40.21875
94
0.726496
1cb6436d7e4c9e1dc217cc19b1922abf167f6be5
661
py
Python
MeltingClock/polls/models.py
DweebsUnited/CodeMonkey
3b27e9c189c897b06002498aea639bb44671848a
[ "BSD-3-Clause" ]
null
null
null
MeltingClock/polls/models.py
DweebsUnited/CodeMonkey
3b27e9c189c897b06002498aea639bb44671848a
[ "BSD-3-Clause" ]
7
2016-06-03T05:41:27.000Z
2018-08-07T07:09:40.000Z
MeltingClock/polls/models.py
DweebsUnited/CodeMonkey
3b27e9c189c897b06002498aea639bb44671848a
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.db import models from django.utils import timezone class Question( models.Model ): question_text = models.CharField( max_length = 200 ) pub_date = models.DateTimeField( 'date published' ) def __str__( self ): return self.question_text def was_published_recently( self ): return se...
28.73913
74
0.733737
1cb64cb2411a7aab4196c0f6469c47c3387dab65
3,070
py
Python
ote_sdk/ote_sdk/configuration/default_model_parameters.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
775
2019-03-01T02:13:33.000Z
2020-09-07T22:49:15.000Z
ote_sdk/ote_sdk/configuration/default_model_parameters.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
229
2019-02-28T21:37:08.000Z
2020-09-07T15:11:49.000Z
ote_sdk/ote_sdk/configuration/default_model_parameters.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
290
2019-02-28T20:32:11.000Z
2020-09-07T05:51:41.000Z
# Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # """ This module contains a default set of configurable parameters for a model """ from attr import attrib, attrs from ote_sdk.configuration.configurable_parameters import ConfigurableParameters from ote_sdk.configuration.elements impo...
36.987952
88
0.674593
1cb6643da125b6948851635656ce8c95373ea330
10,166
py
Python
4_nlp_processing/1_cnn_text_classify/train_mul.py
eubchain/tfdistributedtestcase
a81f99e051537fcd860de28587f0ab2bd9b1b5d4
[ "MIT" ]
6
2018-07-30T08:47:25.000Z
2019-01-13T16:17:31.000Z
4_nlp_processing/1_cnn_text_classify/train_mul.py
eubchain/tfdistributedtestcase
a81f99e051537fcd860de28587f0ab2bd9b1b5d4
[ "MIT" ]
null
null
null
4_nlp_processing/1_cnn_text_classify/train_mul.py
eubchain/tfdistributedtestcase
a81f99e051537fcd860de28587f0ab2bd9b1b5d4
[ "MIT" ]
2
2018-11-28T09:37:26.000Z
2018-11-29T02:51:20.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import numpy as np import os import time import datetime import tempfile import shutil import data_helpers from text_cnn import TextCNN f...
43.818966
121
0.593645
1cb680f42e41abc120be6720fea3214786bd2ff1
30
py
Python
btd6_memory_info/generated/System/Security/Authentication/ExtendedProtection/extended_protection.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Security/Authentication/ExtendedProtection/extended_protection.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Security/Authentication/ExtendedProtection/extended_protection.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class ExtendedProtection: pass
30
30
0.9
1cb69c9079d3a2b78482088da261da68179c77e2
2,489
py
Python
calc/handler_test.py
LucasRoesler/pytest-openfaas-sample
18b0e6ca6e197a26a27373e8213cd61485b0bf51
[ "MIT" ]
null
null
null
calc/handler_test.py
LucasRoesler/pytest-openfaas-sample
18b0e6ca6e197a26a27373e8213cd61485b0bf51
[ "MIT" ]
null
null
null
calc/handler_test.py
LucasRoesler/pytest-openfaas-sample
18b0e6ca6e197a26a27373e8213cd61485b0bf51
[ "MIT" ]
null
null
null
import calc.handler as h class TestParsing: def test_operation_parsing_error_on_empty_obj(self): req = '{}' resp, code = h.handle(req) assert code == 422 # should be a list of error errors = resp.get("message", []) assert len(errors) == 3 assert errors[0].g...
32.75
67
0.516272
1cb69f59ec7102bebf0418abef5429f594405e3a
5,905
py
Python
st2common/st2common/util/loader.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2common/st2common/util/loader.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2common/st2common/util/loader.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "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...
32.445055
94
0.709907
1cb6aea95ba4250a688f0ec894b5a9ed12094dd3
2,973
py
Python
scripts/retract_registrations.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
scripts/retract_registrations.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
scripts/retract_registrations.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
"""Script for retracting pending retractions that are more than 48 hours old.""" import logging from django.db import transaction from django.utils import timezone from modularodm import Q from framework.auth import Auth from framework.celery_tasks import app as celery_app from website.app import init_app from webs...
39.118421
108
0.602422
1cb6d1f635e69fcf004a2aabe148ce7e6688643b
18,167
py
Python
Run.py
01king-ori/password
871753ec3707e63de31231b63d1f43d874ea4310
[ "MIT" ]
null
null
null
Run.py
01king-ori/password
871753ec3707e63de31231b63d1f43d874ea4310
[ "MIT" ]
null
null
null
Run.py
01king-ori/password
871753ec3707e63de31231b63d1f43d874ea4310
[ "MIT" ]
null
null
null
from user import Users from credentials import Credentials def create_user(username, login_password): ''' Function to create new user ''' new_user = Users(username, login_password) return new_user def add_user(user): ''' Function to save user ''' user.add_user() def remove_user(us...
53.589971
213
0.39291
1cb6ebc138e38ce4575907e37648f31d2678a5e6
1,168
py
Python
test/rplugin/python3/remote/test_registry.py
chipsenkbeil/vim-overthere
910e5f91019f5080322180f8608e2961eb471f86
[ "Apache-2.0" ]
null
null
null
test/rplugin/python3/remote/test_registry.py
chipsenkbeil/vim-overthere
910e5f91019f5080322180f8608e2961eb471f86
[ "Apache-2.0" ]
9
2018-04-15T04:43:59.000Z
2018-04-28T16:30:00.000Z
test/rplugin/python3/remote/test_registry.py
chipsenkbeil/remote.nvim
910e5f91019f5080322180f8608e2961eb471f86
[ "Apache-2.0" ]
null
null
null
# ============================================================================= # FILE: test_registry.py # AUTHOR: Chip Senkbeil <chip.senkbeil at gmail.cop> # License: Apache 2.0 License # ============================================================================= from remote.packet import ( Content, Header,...
25.955556
79
0.5
1cb6ee8b865a7cff69129652ebc96c59e3c2c00e
6,319
py
Python
lrtc_lib/data_access/processors/process_csv_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
57
2020-11-18T15:13:06.000Z
2022-03-28T22:33:26.000Z
lrtc_lib/data_access/processors/process_csv_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
5
2021-02-23T22:11:07.000Z
2021-12-13T00:13:48.000Z
lrtc_lib/data_access/processors/process_csv_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
14
2021-02-10T08:55:27.000Z
2022-02-23T22:37:54.000Z
# (c) Copyright IBM Corporation 2020. # LICENSE: Apache License 2.0 (Apache-2.0) # http://www.apache.org/licenses/LICENSE-2.0 import os from collections import defaultdict from typing import List, Mapping, Tuple import pandas as pd from lrtc_lib.data_access.core.data_structs import Document, TextElement, Label, nes...
45.135714
120
0.66308
1cb6efb7f87c24759386cffeec1dc06ebd57c557
1,623
py
Python
checkov/cloudformation/checks/resource/aws/ECRPolicy.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
checkov/cloudformation/checks/resource/aws/ECRPolicy.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
3
2020-02-07T19:51:40.000Z
2022-03-21T05:06:29.000Z
checkov/cloudformation/checks/resource/aws/ECRPolicy.py
graybrandonpfg/checkov
3081a8560f6369465314ee8f4ac8a8ec01649d68
[ "Apache-2.0" ]
null
null
null
import json from checkov.cloudformation.parser.node import str_node from checkov.common.models.enums import CheckResult, CheckCategories from checkov.cloudformation.checks.resource.base_resource_check import BaseResourceCheck class ECRPolicy(BaseResourceCheck): def __init__(self): name = "Ensure ECR poli...
42.710526
107
0.62785
1cb71855752c561e910b21c4f531505002510089
831
py
Python
examples/valentines.py
SeattleCentral/ITC110
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
12
2017-01-05T03:43:10.000Z
2019-01-18T03:39:09.000Z
examples/valentines.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
null
null
null
examples/valentines.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
2
2019-02-28T05:13:40.000Z
2019-11-09T05:06:35.000Z
from graphics import GraphWin, Point, Circle, Polygon, Text win = GraphWin("Valentine", 600, 600) left_circle = Circle(Point(200, 200), 100) left_circle.setFill("red") left_circle.setOutline("red") left_circle.draw(win) right_circle = left_circle.clone() right_circle.move(200, 0) right_circle.draw(win) p1 = Point...
19.325581
59
0.716005
1cb72a80f0f592cf723ffbc99f75b89cfa7d8aab
1,878
py
Python
toontown/suit/DistributedStageSuit.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/suit/DistributedStageSuit.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/suit/DistributedStageSuit.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.suit import DistributedFactorySuit from toontown.suit.Suit import * from direct.directnotify import DirectNotifyGlobal from direct.actor import Actor from otp.avatar import Avatar from toontown.suit import SuitDNA from toontown.toonbase import ToontownGlobals from panda3d.core import * from panda3d.direct...
37.56
99
0.668797
1cb7602379f469ad7339b2feed4d29cabb3efe2f
433
py
Python
bits.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
bits.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
bits.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. def int_to_bin_str(value, max_bits=8192): mask = value bits = 1 while 1 << bits < value or bits < 16 and bits < max_bits: bits *= 2 rep = '' while bits: ...
24.055556
73
0.577367
1cb77d8508874d22d2c54da94b56af2c4cd8d13e
5,638
py
Python
test/integration/gen_libs/display_data.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
test/integration/gen_libs/display_data.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
test/integration/gen_libs/display_data.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: display_data.py Description: Unit testing of display_data in gen_libs.py. Usage: test/integration/gen_libs/display_data.py Arguments: """ # Libraries and Global Variables # Standard import sys import os import filecmp if sys.version_info <...
23.394191
79
0.553742
1cb784f631c8b5ad9c2e709bb103943659049ca5
2,358
py
Python
do_like_javac/capture/ant.py
markro49/do-like-javac
2bb345c9368347493b0fcf098f00e54594332a61
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
7
2016-03-16T17:21:05.000Z
2020-08-25T11:57:51.000Z
do_like_javac/capture/ant.py
markro49/do-like-javac
2bb345c9368347493b0fcf098f00e54594332a61
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
9
2016-10-06T19:23:39.000Z
2017-12-19T19:58:16.000Z
do_like_javac/capture/ant.py
markro49/do-like-javac
2bb345c9368347493b0fcf098f00e54594332a61
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
15
2016-04-20T20:46:52.000Z
2020-12-16T10:13:39.000Z
# Copyright (c) 2015 - present Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD style license found in the # LICENSE_Facebook file in the root directory of this source tree. An # additional grant of patent rights can be found in the PATENTS_Facebook file # in the same directory. imp...
33.685714
77
0.591179
1cb7a5c45058df348c664563bd35944e56be8714
43
py
Python
__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
3
2021-11-09T09:43:21.000Z
2021-12-16T18:15:43.000Z
__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
null
null
null
__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
2
2022-03-10T11:24:46.000Z
2022-03-25T06:39:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*-
14.333333
24
0.511628
1cb7ea655f5fe37efc5248a93c710c9cdf85b311
27,338
py
Python
tf/uii/osmutils.py
gsalinaslopez/MagRSS
615a6649572b044973f753d704d706d66ae12026
[ "MIT" ]
3
2021-01-12T14:06:54.000Z
2021-01-27T10:44:33.000Z
tf/uii/osmutils.py
gsalinaslopez/MagRSS
615a6649572b044973f753d704d706d66ae12026
[ "MIT" ]
null
null
null
tf/uii/osmutils.py
gsalinaslopez/MagRSS
615a6649572b044973f753d704d706d66ae12026
[ "MIT" ]
null
null
null
import math import itertools import json import subprocess import pandas as pd import shapely import geopandas _EARTH_RADIUS = 6371007.2 def steps_to_meter(steps): return steps * 0.8128 def getDistanceBetweenPoints(lat1, lon1, lat2, lon2): deltaLat = math.radians(lat2 - lat1) deltaLon = math.radians(l...
41.737405
112
0.487563
1cb7eb5fb9aa35bbd35706bb6d95e275e6e43668
15,913
py
Python
tests/test_deobfuscate_filenames.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
1,354
2015-01-02T11:53:23.000Z
2022-03-30T01:32:46.000Z
tests/test_deobfuscate_filenames.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
1,742
2015-01-01T20:17:35.000Z
2022-03-30T21:05:00.000Z
tests/test_deobfuscate_filenames.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
410
2015-01-24T05:32:46.000Z
2022-03-20T12:56:49.000Z
#!/usr/bin/python3 -OO # Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any late...
44.825352
119
0.687425
1cb7f4dde47b16348d89631d88995352a983f1d0
24,065
py
Python
numba/targets/npyimpl.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
6
2021-10-30T09:00:55.000Z
2022-03-07T16:33:25.000Z
numba/targets/npyimpl.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
numba/targets/npyimpl.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
1
2022-03-16T11:33:50.000Z
2022-03-16T11:33:50.000Z
""" Implementation of functions in the Numpy package. """ from __future__ import print_function, division, absolute_import import math import sys import itertools from collections import namedtuple from llvmlite.llvmpy import core as lc import numpy as np import operator from . import builtins, callconv, ufunc_db,...
40.309883
92
0.643383
1cb7f4f988ff392e5aa25a0cd483db0703c96a46
125
py
Python
gym_flexlab/__init__.py
LBNL-ETA/FlexDRL
630a6f5e050deefc2d0635a211b6888adcfae37c
[ "BSD-3-Clause-LBNL" ]
4
2021-03-12T17:43:52.000Z
2022-02-14T17:04:29.000Z
gym_flexlab/__init__.py
LBNL-ETA/FlexDRL
630a6f5e050deefc2d0635a211b6888adcfae37c
[ "BSD-3-Clause-LBNL" ]
null
null
null
gym_flexlab/__init__.py
LBNL-ETA/FlexDRL
630a6f5e050deefc2d0635a211b6888adcfae37c
[ "BSD-3-Clause-LBNL" ]
1
2022-03-20T17:01:55.000Z
2022-03-20T17:01:55.000Z
from gym.envs.registration import register register( id='FlexLab-v0', entry_point='gym_flexlab.envs:FlexLabEnv', )
15.625
46
0.736
1cb8006e8d119eb2d7566881286ee65a96ba1e56
4,158
py
Python
Phase2/Code/Test_unsupervised.py
mjoshi07/AutoPano
1d60ac1c717ccdaae40c129959fed5a27533d225
[ "MIT" ]
null
null
null
Phase2/Code/Test_unsupervised.py
mjoshi07/AutoPano
1d60ac1c717ccdaae40c129959fed5a27533d225
[ "MIT" ]
null
null
null
Phase2/Code/Test_unsupervised.py
mjoshi07/AutoPano
1d60ac1c717ccdaae40c129959fed5a27533d225
[ "MIT" ]
null
null
null
""" CMSC733 Spring 2022: Classical and Deep Learning Approaches for Geometric Computer Vision Project1: MyAutoPano: Phase 2 Author(s): Mayank Joshi Masters student in Robotics, University of Maryland, College Park Adithya Gaurav Singh Masters student in Robotics, University of Maryland, College Park """ from Misc.Mi...
35.538462
145
0.703223
1cb8308db72188f836da79cfed456db3a02cdbed
3,544
py
Python
chainer/utils/conv.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
chainer/utils/conv.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
chainer/utils/conv.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import numpy import six from chainer import cuda def get_conv_outsize(size, k, s, p, cover_all=False): if cover_all: return (size + p * 2 - k + s - 1) // s + 1 else: return (size + p * 2 - k) // s + 1 def im2col_cpu(img, kh, kw, sy, sx, ph, pw, pval=0, cover_all=False): n, c, h, w = img...
33.121495
75
0.464447
1cb838e6702b2a47c231d36d6ecfbbaf6dabe131
5,416
py
Python
geosoft/gxapi/GXGER.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
geosoft/gxapi/GXGER.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
geosoft/gxapi/GXGER.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
### extends 'class_empty.py' ### block ClassImports # NOTICE: Do not edit anything here, it is generated code from . import gxapi_cy from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref ### endblock ClassImports ### block Header # NOTICE: The code generator will not replace the code in this block ### end...
28.505263
139
0.618538
1cb83fe634fd5a5ab65c96dceaad5c5ed80ea3b7
2,557
py
Python
towhee/tests/engine/test_operator_pool.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
towhee/tests/engine/test_operator_pool.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
towhee/tests/engine/test_operator_pool.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Zilliz. 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 agree...
34.554054
74
0.684396
1cb88113b534977b4614630d0369954859cca827
30
py
Python
custom_components/apsystems/__init__.py
bgbraga/homeassistant-apsystems
1b4c32f431def9929dbac0a8b2af11085c59f4be
[ "Apache-2.0" ]
15
2021-05-03T23:14:09.000Z
2022-02-16T20:10:08.000Z
custom_components/apsystems/__init__.py
bgbraga/homeassistant-apsystems
1b4c32f431def9929dbac0a8b2af11085c59f4be
[ "Apache-2.0" ]
10
2021-05-12T00:10:48.000Z
2022-03-28T14:46:27.000Z
custom_components/apsystems/__init__.py
bgbraga/homeassistant-apsystems
1b4c32f431def9929dbac0a8b2af11085c59f4be
[ "Apache-2.0" ]
5
2022-01-04T18:32:42.000Z
2022-02-26T22:42:20.000Z
"""The APsystems Component."""
30
30
0.7
1cb886a1a57e99efdb4ba002755e020ab6b3025d
3,050
py
Python
appengine/monorail/services/service_manager.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/services/service_manager.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/services/service_manager.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 or at # https://developers.google.com/open-source/licenses/bsd """Service manager to initialize all services.""" from __future__ import print_function from __...
35.882353
73
0.76459
1cb899da609f226fe5d5e3a60c6360f1c8a6b344
367
py
Python
mmdet/models/necks/__init__.py
ZJU-lishuang/mmdetection
3d8d52e3d9d1fcb7357caf6d1553e0c55761ae29
[ "Apache-2.0" ]
null
null
null
mmdet/models/necks/__init__.py
ZJU-lishuang/mmdetection
3d8d52e3d9d1fcb7357caf6d1553e0c55761ae29
[ "Apache-2.0" ]
null
null
null
mmdet/models/necks/__init__.py
ZJU-lishuang/mmdetection
3d8d52e3d9d1fcb7357caf6d1553e0c55761ae29
[ "Apache-2.0" ]
null
null
null
from .bfp import BFP from .fpn import FPN from .fpn_carafe import FPN_CARAFE from .hrfpn import HRFPN from .nas_fpn import NASFPN from .nasfcos_fpn import NASFCOS_FPN from .pafpn import PAFPN from .panet_spp import PANETSPPNeck from .yolov5neck import Yolov5Neck __all__ = [ 'FPN', 'BFP', 'HRFPN', 'NASFPN', 'FPN_CA...
26.214286
88
0.762943
1cb8b260b962573cd2b06bdcdfdc8490f24443cb
827
py
Python
setup.py
samuk/ros_network_viz
77f5359ba75883a0f8b822eadb75f089b7f8fba2
[ "Apache-2.0" ]
8
2021-11-01T21:04:43.000Z
2022-03-31T09:15:19.000Z
setup.py
samuk/ros_network_viz
77f5359ba75883a0f8b822eadb75f089b7f8fba2
[ "Apache-2.0" ]
21
2021-09-22T20:52:50.000Z
2021-10-21T21:19:42.000Z
setup.py
samuk/ros_network_viz
77f5359ba75883a0f8b822eadb75f089b7f8fba2
[ "Apache-2.0" ]
null
null
null
import glob import os from setuptools import setup package_name = 'ros_network_viz' setup( name=package_name, version='0.1.0', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['pac...
25.84375
69
0.631197
1cb8b8e1eb0233aacda39bbdfbf99dabe4c54b21
305
py
Python
httpcore/_types.py
bwelling/httpcore
9d9def295408146c42036b29ead8665ee5e2df8f
[ "BSD-3-Clause" ]
null
null
null
httpcore/_types.py
bwelling/httpcore
9d9def295408146c42036b29ead8665ee5e2df8f
[ "BSD-3-Clause" ]
null
null
null
httpcore/_types.py
bwelling/httpcore
9d9def295408146c42036b29ead8665ee5e2df8f
[ "BSD-3-Clause" ]
null
null
null
""" Type definitions for type checking purposes. """ from typing import List, Mapping, Optional, Tuple, Union StrOrBytes = Union[str, bytes] Origin = Tuple[bytes, bytes, int] URL = Tuple[bytes, bytes, Optional[int], bytes] Headers = List[Tuple[bytes, bytes]] TimeoutDict = Mapping[str, Optional[float]]
25.416667
56
0.734426
1cb8c2a019fff67000ca868f7e5158fa4c4cdd4a
29
py
Python
math_and_algorithm/001.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
math_and_algorithm/001.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
math_and_algorithm/001.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) print(N + 5)
14.5
16
0.551724
1cb8cab20dbff8a8d1ec5004884fa158f5ecf159
39,072
py
Python
python/ray/tune/trainable.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
1
2019-06-19T02:23:43.000Z
2019-06-19T02:23:43.000Z
python/ray/tune/trainable.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
python/ray/tune/trainable.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
import subprocess from contextlib import redirect_stdout, redirect_stderr import copy from datetime import datetime import logging import os import platform import shutil import sys import tempfile import time from typing import Any, Dict, Optional, Union, Callable, List import uuid import ray import ray.cloudpickle a...
36.79096
88
0.631245
1cb8cc239d6aeab400e9dae117db28e7a19236b9
228
py
Python
func_tests/tests/projects/overview/project_overview_data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
func_tests/tests/projects/overview/project_overview_data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
func_tests/tests/projects/overview/project_overview_data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 PROJECT_NAME = u"clinic test project1" PREVIEW_TITLE = "SMS Questionnaire" MC_QUESTION_CONTENT = 'What is your blood group?\na.O+\nb.O-\nc.AB\nd.B+\nChoose 1 answer from the list.'
28.5
105
0.72807
1cb8d743036c0997042a1774118477b923d913a2
7,361
py
Python
satori/utils.py
ryandub/satori
dca1d8d28a3a29cc2ae2d36ff96814c7bb0f1329
[ "Apache-2.0" ]
null
null
null
satori/utils.py
ryandub/satori
dca1d8d28a3a29cc2ae2d36ff96814c7bb0f1329
[ "Apache-2.0" ]
null
null
null
satori/utils.py
ryandub/satori
dca1d8d28a3a29cc2ae2d36ff96814c7bb0f1329
[ "Apache-2.0" ]
null
null
null
# 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, software # distrib...
33.157658
79
0.648553