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
08087753dce8cf507a7c9eedf9b12fd9da3c7204
675
py
Python
components/gcp/container/component_sdk/python/kfp_component/core/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/gcp/container/component_sdk/python/kfp_component/core/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/gcp/container/component_sdk/python/kfp_component/core/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
42.1875
74
0.777778
0808ca398986828d98eb8f58bca053ed87b3e5aa
291
py
Python
towers/ninja_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
towers/ninja_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
towers/ninja_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from tower import Tower from config import keybinds class NinjaMonkey(Tower): name = 'ninja_monkey' range = 215 width = 65 height = 57 size = 'small' keybind = keybinds[name] aquatic = False def __init__(self, **kwargs): super().__init__(**kwargs)
18.1875
34
0.632302
080903a8e4fe98d4919b453dd3c1b9ae5e3fef7d
953
py
Python
tests/test_correctness.py
buckbaskin/couchpotato
238305b8d1d8e8ac3accfc2e62c4adda2da655e1
[ "MIT" ]
null
null
null
tests/test_correctness.py
buckbaskin/couchpotato
238305b8d1d8e8ac3accfc2e62c4adda2da655e1
[ "MIT" ]
1
2017-09-21T20:15:35.000Z
2017-09-21T20:15:35.000Z
tests/test_correctness.py
buckbaskin/couchpotato
238305b8d1d8e8ac3accfc2e62c4adda2da655e1
[ "MIT" ]
null
null
null
''' Use property-based testing to verify the correctness of the lazy evaluation ''' import math from couchpotato import lazy from hypothesis import given from hypothesis.strategies import (text, integers, booleans, floats, complex_numbers, tuples, characters, binary, ...
36.653846
79
0.626443
080916bfe2bb97c52d03fa6ccf64e482f0ff7269
22,675
py
Python
statsmodels/base/optimizer.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/base/optimizer.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/base/optimizer.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
""" Functions that are general enough to use for any model fitting. The idea is to untie these from LikelihoodModel so that they may be re-used generally. """ from __future__ import print_function import distutils.version from scipy import __version__ as scipy_version import numpy as np from scipy import optimize def...
41.453382
80
0.574818
08094164536f8e891103d112af9c9f7a5b82d0e5
9,869
py
Python
docs/conf.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
12
2017-03-08T23:17:44.000Z
2021-10-15T15:56:30.000Z
docs/conf.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
23
2017-10-24T00:07:37.000Z
2021-07-15T14:42:31.000Z
docs/conf.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
11
2017-03-22T22:35:30.000Z
2021-01-01T22:30:14.000Z
# -*- coding: utf-8 -*- # # thermostat documentation build configuration file, created by # sphinx-quickstart on Mon May 18 15:25:28 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # ...
31.231013
79
0.713851
0809559a318f9b6866f10a62dacf2c15cf05d735
3,458
py
Python
factrank/legacy/tools/featurePreProcessor.py
lejafar/factrank
716e4885401314fd867d74bcea8f2a422743f595
[ "MIT" ]
12
2018-11-15T10:44:16.000Z
2022-02-19T20:35:17.000Z
factrank/legacy/tools/featurePreProcessor.py
lejafar/factrank
716e4885401314fd867d74bcea8f2a422743f595
[ "MIT" ]
1
2020-04-28T18:19:33.000Z
2020-04-28T21:04:39.000Z
factrank/legacy/tools/featurePreProcessor.py
factrank/FactRank
716e4885401314fd867d74bcea8f2a422743f595
[ "MIT" ]
1
2020-05-21T18:30:49.000Z
2020-05-21T18:30:49.000Z
#!/usr/bin/env python3 """ Preprocess all sentences in DB NOTE: This script was only used in order to speed up the hyperparameter optimization """ # SOME USEFULL COLORS class bc: MAG = '\033[1;35m' YEL = '\033[0;33m' CYA = '\033[0;36m' END = '\033[0m' # PROVIDE FEEDBACK print(bc.YEL + "● LOADIN...
32.622642
87
0.600636
08095af7280a6cd703923dcb4f1d2c6540b496cf
606
py
Python
src/oscar/apps/dashboard/tables.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/tables.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/tables.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.utils.translation import ungettext_lazy from django_tables2 import Table class DashboardTable(Table): caption = ungettext_lazy('%d Row', '%d Rows') def get_caption_display(self): # Allow overriding the caption with an arbitrary string that we cannot # interpolate the numb...
30.3
79
0.643564
080987260e2b088692200988c582d8598a9edf49
730
py
Python
alipay/aop/api/response/AlipayDataDataserviceAdPrincipaldmpSyncResponse.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/AlipayDataDataserviceAdPrincipaldmpSyncResponse.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/AlipayDataDataserviceAdPrincipaldmpSyncResponse.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 class AlipayDataDataserviceAdPrincipaldmpSyncResponse(AlipayResponse): def __init__(self): super(AlipayDataDataserviceAdPrincipaldmpSyncResponse, self).__init__() self._res...
28.076923
120
0.720548
0809a8031ddb5fd8f15fe0275b0b8e40fd5ed26d
14,258
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/url_maps/add_path_matcher.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/compute/url_maps/add_path_matcher.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/url_maps/add_path_matcher.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
39.17033
273
0.667275
0809ae02c8ab0a18f6f350cb068782c0c7372bcf
833
py
Python
smiler/instrumenting/apkil/constants.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
53
2018-10-02T18:54:20.000Z
2022-01-11T03:56:36.000Z
smiler/instrumenting/apkil/constants.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
23
2019-01-07T08:31:39.000Z
2021-12-13T19:50:02.000Z
smiler/instrumenting/apkil/constants.py
samadpaydar/acvtool
84d6977cf9e7db247216735cd8828ae90111cf85
[ "Apache-2.0" ]
22
2018-11-17T03:42:28.000Z
2022-02-12T05:29:52.000Z
INSN_FMT = { "invoke-virtual": "35c", "invoke-super": "35c", "invoke-direct": "35c", "invoke-static": "35c", "invoke-interface": "35c", "invoke-virtual/range": "3rc", "invoke-super/range": "3rc", "invoke-direct/range": "3rc", "invoke-static/range": "3rc", "invoke-interface/range"...
20.825
36
0.47419
0809b3022bd7737fc86444a88326aca8ba827de5
1,278
py
Python
huffmanx.py
Readm/huffmanX
41d3ba39d00ae5150aae1408ba40e734dea7f04e
[ "MIT" ]
null
null
null
huffmanx.py
Readm/huffmanX
41d3ba39d00ae5150aae1408ba40e734dea7f04e
[ "MIT" ]
null
null
null
huffmanx.py
Readm/huffmanX
41d3ba39d00ae5150aae1408ba40e734dea7f04e
[ "MIT" ]
null
null
null
class Node(): def __init__(self, symbol=None, weight=None, left=None, right=None, parent=None): self.symbol = symbol self.weight = weight self.left = left self.right = right self.parent = parent @property def code(self): if self.parent == None: re...
29.72093
85
0.555556
0809df524b921d4298f00b2ca143a0594c608640
31,192
py
Python
ace.py
anonymousneuripssubmission/ACE
82b61c41de9a53a068644727b83bb4a4136da993
[ "MIT" ]
3
2019-09-21T20:06:11.000Z
2019-10-21T06:54:44.000Z
ace.py
anonymousneuripssubmission/ACE
82b61c41de9a53a068644727b83bb4a4136da993
[ "MIT" ]
null
null
null
ace.py
anonymousneuripssubmission/ACE
82b61c41de9a53a068644727b83bb4a4136da993
[ "MIT" ]
1
2019-09-25T19:06:43.000Z
2019-09-25T19:06:43.000Z
"""ACE library. Library for discovering and testing concept activation vectors. It contains ConceptDiscovery class that is able to discover the concepts belonging to one of the possible classification labels of the classification task of a network and calculate each concept's TCAV score.. """ from multiprocessing impo...
40.195876
80
0.646191
0809e6c2a8ebf8787685230b108dc7e0b812e8cd
3,501
py
Python
src_retrieval/tok.py
AI-Swasthyam/fixMyPose
37c668adcd54bca3f259f1bfee07588f77861bc1
[ "MIT" ]
7
2021-12-14T07:12:00.000Z
2022-02-25T00:23:44.000Z
src_retrieval/tok.py
AI-Swasthyam/fixMyPose
37c668adcd54bca3f259f1bfee07588f77861bc1
[ "MIT" ]
2
2021-11-22T15:27:38.000Z
2021-12-01T13:29:29.000Z
src_retrieval/tok.py
hyounghk/FixMyPose
1b31c7f9e25ade6ee929cbbdc56d50162a8c2218
[ "MIT" ]
null
null
null
from collections import defaultdict import re import numpy as np import string MIN_WORD_OCCURRENCE = 3 class Tokenizer: SENTENCE_SPLIT_REGEX = re.compile(r'(\W+)') def __init__(self): self.clear() self.add_speical_words() def clear(self): self._vocab_size = 0 self._idx2wo...
28.933884
111
0.55527
0809e85257a38389f4669a8ad12bf6c5a977e203
5,015
py
Python
tests/test_clustering.py
lff5985/dtaidistance
df553bbd3a204ad9719e9eb6682a82d63ec80ff6
[ "Apache-2.0" ]
null
null
null
tests/test_clustering.py
lff5985/dtaidistance
df553bbd3a204ad9719e9eb6682a82d63ec80ff6
[ "Apache-2.0" ]
null
null
null
tests/test_clustering.py
lff5985/dtaidistance
df553bbd3a204ad9719e9eb6682a82d63ec80ff6
[ "Apache-2.0" ]
1
2018-10-23T08:19:02.000Z
2018-10-23T08:19:02.000Z
import os import sys import math import tempfile import pytest import logging from pathlib import Path import numpy as np from dtaidistance import dtw, clustering logger = logging.getLogger("be.kuleuven.dtai.distance") directory = None def test_clustering(): s = np.array([ [0., 0, 1, 2, 1, 0, 1, 0, 0],...
33.885135
104
0.577069
0809f76c07e8aa7243a84714bf993af8f4f1c619
3,248
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_node_daemon_endpoints.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_node_daemon_endpoints.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_node_daemon_endpoints.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Nod...
28.743363
124
0.595443
080a78c468d50900489e283daee6df3af72b1110
1,968
py
Python
tests/test_plotter.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
tests/test_plotter.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
tests/test_plotter.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
import logging import os import pathlib import unittest import matplotlib.pyplot as plt from exorad import tasks from exorad.log import setLogLevel, disableLogging, enableLogging from exorad.utils.plotter import Plotter path = pathlib.Path(__file__).parent.absolute() data_dir = os.path.join(path.parent.absolute(), '...
34.526316
118
0.710874
080ae13763fa4581e50450d0de27cd387456f2c2
390
py
Python
algorithms/binarysearch/reverse_bisect_right.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
10
2020-09-21T22:23:09.000Z
2022-01-25T16:58:44.000Z
algorithms/binarysearch/reverse_bisect_right.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
algorithms/binarysearch/reverse_bisect_right.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
# This is to apply bisect right in reverse sorted array def reverse_bisect(scores, value): low, high = 0, len(scores) while low < high: mid = (low + high) // 2 if value > scores[mid]: high = mid else: low = mid + 1 return low if __name__ == "__main__": a...
22.941176
55
0.535897
080ae1a3c64568fd532f06955f9c2482c24f847a
714
py
Python
featureextractionsom/functions/data_preparation.py
miahatton/featureextractionsomproject
5d55af2a27c6258aa773ba44feaf9274347fcc1c
[ "CC0-1.0" ]
null
null
null
featureextractionsom/functions/data_preparation.py
miahatton/featureextractionsomproject
5d55af2a27c6258aa773ba44feaf9274347fcc1c
[ "CC0-1.0" ]
null
null
null
featureextractionsom/functions/data_preparation.py
miahatton/featureextractionsomproject
5d55af2a27c6258aa773ba44feaf9274347fcc1c
[ "CC0-1.0" ]
null
null
null
from typing import List import pandas as pd def featurise_categories(data: pd.Series) -> pd.Series: """ Convert categorical data in a pandas Series to numerical form and return the Series """ data_values = data.unique() categories = {} n = 1 for item in data_values: categories[item] = n n += 1...
24.62069
97
0.694678
080aff06fcd47520e26ef499cbe124e97f2af4f5
5,495
py
Python
flake8-leo.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
flake8-leo.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
flake8-leo.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20160517182239.1: * @file ../../flake8-leo.py ''' This file runs flake8 on predefined lists of files. On windows, the following .bat file runs this file:: python flake8-leo.py %* On Ubuntu, the following alias runs this file:: pyflake="python pyflake-leo.py" ''' #@@language pytho...
34.130435
76
0.604004
080b14af63a18b4fdb1a4710ff039463e0d96a24
899
py
Python
alipay/aop/api/domain/AlipayCommerceAntestReportQueryModel.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/AlipayCommerceAntestReportQueryModel.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/AlipayCommerceAntestReportQueryModel.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 AlipayCommerceAntestReportQueryModel(object): def __init__(self): self._batch_id = None @property def batch_id(self): return self._batch_id @batch_id.setter def ...
21.926829
67
0.59733
080b190063b35049b9dc8efe0d69ead35839f5d2
46,048
py
Python
MilightWifiBridge/MilightWifiBridge.py
Grishberg/Milight-Wifi-Bridge-3.0-Python-Library
c1e611b668c19309f8185b94b4ebe0f409c5f6e8
[ "MIT" ]
1
2019-03-25T18:45:35.000Z
2019-03-25T18:45:35.000Z
MilightWifiBridge/MilightWifiBridge.py
Grishberg/Milight-Wifi-Bridge-3.0-Python-Library
c1e611b668c19309f8185b94b4ebe0f409c5f6e8
[ "MIT" ]
null
null
null
MilightWifiBridge/MilightWifiBridge.py
Grishberg/Milight-Wifi-Bridge-3.0-Python-Library
c1e611b668c19309f8185b94b4ebe0f409c5f6e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Milight 3.0 (LimitlessLED Wifi Bridge v6.0) library: Control wireless lights (Milight 3.0) with Wifi Note that this library was tested with Milight Wifi iBox v1 and RGBW lights. It should work with any other lights and bridge using Milight 3.0 / LimitlessLED v6....
37.620915
135
0.61121
080b239cf2d7e362078fc2bc131dd1fa91b970a4
966
py
Python
rflow/_util.py
otaviog/rflow
8594b9c3e9e1da61382f80b66e749cf7b8a33676
[ "MIT" ]
6
2019-08-26T11:36:58.000Z
2020-12-15T21:01:24.000Z
rflow/_util.py
otaviog/rflow
8594b9c3e9e1da61382f80b66e749cf7b8a33676
[ "MIT" ]
null
null
null
rflow/_util.py
otaviog/rflow
8594b9c3e9e1da61382f80b66e749cf7b8a33676
[ "MIT" ]
1
2020-04-13T08:05:27.000Z
2020-04-13T08:05:27.000Z
"""Utilities functions of the module. """ import sys import os import inspect import copy from contextlib import contextmanager @contextmanager def work_directory(path): """Change the current directory while in the scope of this context manager. Args: path (str): Target directory path. """ ...
20.553191
70
0.674948
080b2e623fa643428c35259e54e7fc7361de417c
2,152
py
Python
autotest/osr/osr_getprojectionmethods.py
chambbj/gdal
3d56aecb5b8e9890dae8f560acd099992e707d12
[ "MIT" ]
1
2015-02-16T16:51:38.000Z
2015-02-16T16:51:38.000Z
autotest/osr/osr_getprojectionmethods.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
autotest/osr/osr_getprojectionmethods.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test osr.GetProjectionMethods() # Author: Even Rouault <even dot rouault at mines dash paris dot org> # ##########################################################...
34.15873
81
0.636152
080b384e7cc7100ebbe38cd7af3380b508490dae
48
py
Python
tests2/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
tests2/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
tests2/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
default_app_config = "tests2.apps.Tests2Config"
24
47
0.833333
080b74ceba1cfaa1509d43f55257a6e51c389e97
3,114
py
Python
var/spack/repos/builtin/packages/cbtf/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/cbtf/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/cbtf/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Cbtf(CMakePackage): """CBTF project contains the base code for CBTF that supports creating...
33.483871
75
0.575787
080b9d29cb080d6a4950fa2185912f7e2030b533
1,140
py
Python
news_queries.py
siketh/udacity-logs-analysis-project
9b19f8aeb67adec4beaf75ad5d8f64c2c5938227
[ "MIT" ]
null
null
null
news_queries.py
siketh/udacity-logs-analysis-project
9b19f8aeb67adec4beaf75ad5d8f64c2c5938227
[ "MIT" ]
null
null
null
news_queries.py
siketh/udacity-logs-analysis-project
9b19f8aeb67adec4beaf75ad5d8f64c2c5938227
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """This file contains PostgreSQL query strings for the News table.""" top_three_articles = ''' SELECT articles.title, COUNT(*) AS num_views FROM articles, log WHERE (log.path='/article/' || articles.slug) GROUP BY articles.title ORDER BY num_views DESC LIMIT 3; ''' auth...
18.387097
72
0.681579
080ba83213f0719c237ca6a190d821de772318d1
15,598
py
Python
.eggs/boto-2.48.0-py2.7.egg/boto/cloudsearch/domain.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
.eggs/boto-2.48.0-py2.7.egg/boto/cloudsearch/domain.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
.eggs/boto-2.48.0-py2.7.egg/boto/cloudsearch/domain.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. # All Rights Reserved # # 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...
39.588832
82
0.653545
080bbd62ec580fbda301a7cca0b6ac92b98fdc5a
4,519
py
Python
venv/lib/python3.8/site-packages/dateparser/data/numeral_translation_data/fo.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/numeral_translation_data/fo.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/numeral_translation_data/fo.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "%spellout-cardinal-feminine": { "0": "null;", "1": "ein;", "2": "tvær;", "3": "tríggjar;", "4": "fýre;", "(5, 19)": "=%spellout-cardinal-masculine=;", "(20, 29)": "tjúgo[­>>];", "(30, 39)": "tríati[­>>];", "(40...
42.632075
102
0.469573
080c23904894f850ec195a78c685f3d2015d75a5
9,849
py
Python
simplify_rest_framework/model_factory.py
mahbd/simplify-rest-framework
c270a215260c313134662fb5175a63fe716a9553
[ "MIT" ]
null
null
null
simplify_rest_framework/model_factory.py
mahbd/simplify-rest-framework
c270a215260c313134662fb5175a63fe716a9553
[ "MIT" ]
null
null
null
simplify_rest_framework/model_factory.py
mahbd/simplify-rest-framework
c270a215260c313134662fb5175a63fe716a9553
[ "MIT" ]
null
null
null
from copy import deepcopy from typing import Type from django.db.models import QuerySet, Model, F from django_filters.rest_framework import DjangoFilterBackend from rest_framework.fields import SerializerMethodField from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.serializers import ...
49.492462
118
0.605036
080c34be85c515dafa1563e7d3b58d0e0c127c58
1,774
py
Python
applications/popart/resnext_inference/get_model.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/popart/resnext_inference/get_model.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/popart/resnext_inference/get_model.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. import torch import torch.onnx import urllib.request import pretrainedmodels import os import onnx import argparse """ Downloads the model in Pytorch format and converts to ONNX. Creates copies with different batch size dimensions. """ def get_model(opts): path = "models/" + opts...
29.081967
125
0.693912
080c4a29c02f5b265830fdce0b29a0c48bb69263
559
py
Python
examples/convert/pipe2sparky_3d/compare.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
examples/convert/pipe2sparky_3d/compare.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
examples/convert/pipe2sparky_3d/compare.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
#! /usr/bin/env python import nmrglue as ng # check the Python conversion against the conversion using NMRPipe's var2pipe sdic, sdata = ng.sparky.read("sparky_3d.ucsf") sdic2, sdata2 = ng.sparky.read("nmrpipe_3d/sparky_3d.ucsf") r1, r2 = ng.misc.pair_similar(sdic, sdata, sdic2, sdata2, verb=True) print "=============...
26.619048
77
0.70483
080c84cffacbf662ae68f9e37274abfaebb0729f
7,460
py
Python
MC_MPI_Ising.py
Chengcheng-Xiao/mpiPyMC
8f64ba925919f99b39216423cb73785b5de046a0
[ "MIT" ]
17
2019-04-14T02:40:16.000Z
2022-02-14T02:28:58.000Z
MC_MPI_Ising.py
Chengcheng-Xiao/mpiPyMC
8f64ba925919f99b39216423cb73785b5de046a0
[ "MIT" ]
2
2019-07-29T03:08:53.000Z
2021-12-26T12:48:09.000Z
MC_MPI_Ising.py
Chengcheng-Xiao/mpiPyMC
8f64ba925919f99b39216423cb73785b5de046a0
[ "MIT" ]
6
2020-03-08T04:41:10.000Z
2021-11-19T11:59:45.000Z
from __future__ import print_function from __future__ import division from tqdm.auto import tqdm import numpy as np from numpy.random import rand import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_size() #--------...
35.69378
123
0.49866
080c9f66ebfaa5d0afeb274801c7eb7930787268
55
py
Python
tests/apps/blazewebtestapp/components/nomodel/tasks/init_db.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
null
null
null
tests/apps/blazewebtestapp/components/nomodel/tasks/init_db.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
6
2016-11-01T18:42:34.000Z
2020-11-16T16:52:14.000Z
tests/apps/blazewebtestapp/components/nomodel/tasks/init_db.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
1
2020-01-22T18:20:46.000Z
2020-01-22T18:20:46.000Z
loc = 'blazewebtestapp.modules.nomodel.tasks.init_db'
18.333333
53
0.8
080cab64771f00fa0d64a1c5fa8ce956b617e572
6,331
py
Python
esp32spi/esp32spi_socket.py
nezra/Adafruit_CircuitPython_ESP32SPI
c3f6df9876d71e122aa9e9ce9fb213423694190e
[ "MIT" ]
2
2021-03-24T17:02:52.000Z
2021-03-31T20:08:05.000Z
esp32spi/esp32spi_socket.py
nezra/Adafruit_CircuitPython_ESP32SPI
c3f6df9876d71e122aa9e9ce9fb213423694190e
[ "MIT" ]
null
null
null
esp32spi/esp32spi_socket.py
nezra/Adafruit_CircuitPython_ESP32SPI
c3f6df9876d71e122aa9e9ce9fb213423694190e
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 ladyada for Adafruit Industries # # 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 #...
40.845161
92
0.639867
080caf99eeb9d920d86fc0a29cc59d261647a717
2,710
py
Python
experiments/ashvin/vae/fixed3/sawyer_pusher/train_vae_wider_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed3/sawyer_pusher/train_vae_wider_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed3/sawyer_pusher/train_vae_wider_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.launcher_util import run_experiment from rlkit.misc.ml_util import PiecewiseLinearSchedule from rlkit.torch.vae.conv_vae import ConvVAE, SpatialAutoEncoder from rlkit.torch.vae.vae_trainer import ConvVAETrainer from rlkit.torch.vae.sawyer2d_push_new_easy_data...
32.650602
107
0.638745
080cb6c118693b9b9e2b667bef434ef06356d127
680
py
Python
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/__init__.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/__init__.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/__init__.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.333333
106
0.566176
080cc1bd2097925a2f8a9775942b8b509e5ac9ee
189
py
Python
terrascript/http/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/http/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/http/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/http/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 )
21
79
0.761905
080ce6139ed484860f4e14149c33d1cb94aac561
1,791
py
Python
database_tools/database_info3/database_info3.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
1
2019-10-29T22:50:29.000Z
2019-10-29T22:50:29.000Z
database_tools/database_info3/database_info3.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
null
null
null
database_tools/database_info3/database_info3.py
XSEDE/XSEDE_Information_Warehouse
8b3aab42b7afd70ce69b9bf44551a0ded4491831
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from datetime import datetime import shlex import subprocess last_backup={} cmd = shlex.split("aws s3 ls s3://xci.xsede.org/info.xsede.org/rds.backup/ --profile newbackup") cmd_proc = subprocess.Popen(cmd, bufsize=1, stdout=subprocess.PIPE) for line in iter(cmd_proc.stdout): try: filen...
36.55102
125
0.695701
080ceb5292c64bbf6e6991b2586b0468efc2eb3e
16,460
py
Python
ThirdParty/Twisted/twisted/internet/test/test_tls.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
ThirdParty/Twisted/twisted/internet/test/test_tls.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/internet/test/test_tls.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for implementations of L{ITLSTransport}. """ from __future__ import division, absolute_import __metaclass__ = type import sys, operator from zope.interface import implementer from twisted.python.compat import _PY3 from twisted.inter...
37.494305
91
0.672843
080cf4e462c65b6878e389d8b8327fb20526c10c
3,809
py
Python
contextual_modeling/util/contextual_modeling_util.py
stevezheng23/contextual_modeling_tf
d68c36f69e8dc84286b3165aafc2158f12316139
[ "Apache-2.0" ]
2
2019-03-20T03:25:31.000Z
2019-03-20T05:45:38.000Z
contextual_modeling/util/contextual_modeling_util.py
stevezheng23/contextual_modeling_tf
d68c36f69e8dc84286b3165aafc2158f12316139
[ "Apache-2.0" ]
null
null
null
contextual_modeling/util/contextual_modeling_util.py
stevezheng23/contextual_modeling_tf
d68c36f69e8dc84286b3165aafc2158f12316139
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from util.default_util import * __all__ = ["create_variable_initializer", "create_weight_regularizer", "create_activation_function", "softmax_with_mask", "generate_masked_data"] def create_variable_initializer(initializer_type, ran...
40.094737
109
0.677343
080d23be1fd2e9a36850c97c90c6e8467b206dce
2,040
py
Python
setup.py
energyquantified/eq-python-client
3ca8423ae29c4a3dbd8f6289ab76a64b21dabf1c
[ "Apache-2.0" ]
4
2021-03-02T10:08:37.000Z
2021-11-12T08:18:18.000Z
setup.py
energyquantified/eq-python-client
3ca8423ae29c4a3dbd8f6289ab76a64b21dabf1c
[ "Apache-2.0" ]
23
2020-07-22T13:41:20.000Z
2021-10-12T09:03:27.000Z
setup.py
energyquantified/eq-python-client
3ca8423ae29c4a3dbd8f6289ab76a64b21dabf1c
[ "Apache-2.0" ]
2
2020-10-01T20:18:08.000Z
2021-03-02T10:08:41.000Z
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) # Requirements install_requires = [ "requests==2.25.1", "pytz", "tzlocal", "python-dateutil==2.8.1", ] # tests_require = [ # "pytest", # "requests-mock", # ] # Get package info about = {}...
28.732394
80
0.658824
080d2414fbf5b2e27f81eef620c1cbd80890a1d5
2,107
py
Python
uv_magic_uv/__init__.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
1
2018-06-18T09:46:10.000Z
2018-06-18T09:46:10.000Z
uv_magic_uv/__init__.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
uv_magic_uv/__init__.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
# <pep8-80 compliant> # ##### BEGIN GPL LICENSE BLOCK ##### # # 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 later version. # # ...
29.263889
81
0.682012
080daa1fc2942803e1ed89fedf5f3bbf823260df
2,236
py
Python
venv/Lib/site-packages/pyrogram/methods/decorators/on_chat_member_updated.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/methods/decorators/on_chat_member_updated.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/decorators/on_chat_member_updated.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
36.064516
105
0.644454
080daff6281d4a0cc618c53e6e15e29fbdabacae
5,095
py
Python
leetcode_python/Math/solve-the-equation.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Math/solve-the-equation.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Math/solve-the-equation.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 640. Solve the Equation Medium Solve a given equation and return the value of 'x' in the form of a string "x=#value". The equation contains only '+', '-' operation, the variable 'x' and its coefficient. You should return "No solution" if there is no solution for the equation, or "Infinite solutions" if there are ...
31.645963
319
0.519136
080dbf2d84194bb9aa48ce31ad436b862fe0efbc
1,457
py
Python
rbig_jax/transforms/logit.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
rbig_jax/transforms/logit.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
rbig_jax/transforms/logit.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
import jax.numpy as np import objax from jax.nn import log_softmax, sigmoid, softplus from objax import StateVar, TrainRef, TrainVar from objax.typing import JaxArray from rbig_jax.transforms.base import Transform class Logit(Transform): def __init__(self, temperature=1, eps=1e-6, learn_temperature=False): ...
33.113636
85
0.647907
080dc0daa987d2dbbdb3c4d412ebb193e93e7e2a
2,384
py
Python
watcher/util.py
Dave360-crypto/LogWatcher
b655ab8b23567d0ff2b3fec2b9398122f19ccbfe
[ "MIT" ]
4
2019-01-31T21:34:59.000Z
2019-12-17T06:51:20.000Z
watcher/util.py
Dave360-crypto/LogWatcher
b655ab8b23567d0ff2b3fec2b9398122f19ccbfe
[ "MIT" ]
null
null
null
watcher/util.py
Dave360-crypto/LogWatcher
b655ab8b23567d0ff2b3fec2b9398122f19ccbfe
[ "MIT" ]
2
2019-01-31T21:51:18.000Z
2021-11-11T02:47:58.000Z
#!/usr/bin/env python3 import log_parser import multiprocessing import socket import threading collectorPort = 5140 databasePath = "db.sqlite3" UDSAddr = "UDS" def createNode(value: tuple = (), left: dict = None, right: dict = None): return {"value": value, "left": left, "right": right} # Return node at given...
27.402299
85
0.580537
080dd1bd6f0621e82404db1b45b1cdca24720fbd
15,400
py
Python
pymongo/pool.py
ContextLogic/mongo-python-driver
2435f8609d21c32123d315222b662990e8377f48
[ "Apache-2.0" ]
null
null
null
pymongo/pool.py
ContextLogic/mongo-python-driver
2435f8609d21c32123d315222b662990e8377f48
[ "Apache-2.0" ]
null
null
null
pymongo/pool.py
ContextLogic/mongo-python-driver
2435f8609d21c32123d315222b662990e8377f48
[ "Apache-2.0" ]
1
2020-03-26T08:42:40.000Z
2020-03-26T08:42:40.000Z
# Copyright 2011-2012 10gen, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
34.684685
80
0.586948
080dd5ee5541df1e91b0ad21f82ac7a9c1f94e8f
4,634
py
Python
components/aws/emr/common/_utils.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/aws/emr/common/_utils.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/aws/emr/common/_utils.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# 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 # distributed under the Li...
30.287582
134
0.695943
080e6a4f81476dae539008c098eb47f83df3f2fc
15,585
py
Python
nenupy/beam/beam.py
lucilecoutouly/nenupy
8bfcab9558087f0696080d750293d9b8edc30665
[ "MIT" ]
null
null
null
nenupy/beam/beam.py
lucilecoutouly/nenupy
8bfcab9558087f0696080d750293d9b8edc30665
[ "MIT" ]
null
null
null
nenupy/beam/beam.py
lucilecoutouly/nenupy
8bfcab9558087f0696080d750293d9b8edc30665
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- """ **** Beam **** """ __author__ = 'Alan Loh' __copyright__ = 'Copyright 2020, nenupy' __credits__ = ['Alan Loh'] __maintainer__ = 'Alan' __email__ = 'alan.loh@obspm.fr' __status__ = 'Production' __all__ = [ 'Beam', 'ABeam', 'DBeam' ] import num...
27.68206
83
0.419313
080e8176a5215fcc331be0471091462e6b99dd70
1,240
py
Python
helpers.py
nickjhughes/polyominohs
836d0a5dd063cf7267775bfb82938ca8861fb369
[ "MIT" ]
null
null
null
helpers.py
nickjhughes/polyominohs
836d0a5dd063cf7267775bfb82938ca8861fb369
[ "MIT" ]
null
null
null
helpers.py
nickjhughes/polyominohs
836d0a5dd063cf7267775bfb82938ca8861fb369
[ "MIT" ]
null
null
null
""" helpers.py: A few helper functions and classes which are used by multiple other classes and so don't belong anywhere else. """ def rect_list(width, height, value=None): """ Return a rectangular 2D list of size width * height, filled with value and indexed by [row][column]. rect_list(int, int, ob...
25.833333
78
0.571774
080e9c96495944ef258dbd0c5fd54291d39b35ff
3,289
py
Python
tests/utils/test_serve_logs.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
tests/utils/test_serve_logs.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
tests/utils/test_serve_logs.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
29.106195
78
0.613256
080ebe4b4331dc059f272aeedaac20549d0d410c
479
py
Python
supriya/ugens/LFDClipNoise.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/LFDClipNoise.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/LFDClipNoise.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.synthdefs import UGen class LFDClipNoise(UGen): """ A clipped noise generator. :: >>> supriya.ugens.LFDClipNoise.ar() LFDClipNoise.ar() """ ### CLASS VARIABLES ### __documentation_section__ = "Noise UGens...
19.16
79
0.693111
080ee59906c14bab5326a64a65cf1999ad813a55
18,052
py
Python
nova/tests/unit/virt/xenapi/test_agent.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/xenapi/test_agent.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/xenapi/test_agent.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# 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...
38.989201
78
0.645524
080f18ed97a8d95c0162d3c0c230917b913853c9
1,100
py
Python
maths/abs_min.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/abs_min.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/abs_min.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
25.581395
74
0.677273
080f20d01d6244d3205167b9bb11867acb878aea
3,109
py
Python
alphabet_texter/alphabet_lib/alphabet_utils.py
joseph-x-li/py-alphabet-texter
2f9e9e975f9852f4146d1c7a6c73a0e4fc0234c4
[ "MIT" ]
1
2020-05-21T17:05:11.000Z
2020-05-21T17:05:11.000Z
alphabet_texter/alphabet_lib/alphabet_utils.py
joseph-x-li/py-alphabet-texter
2f9e9e975f9852f4146d1c7a6c73a0e4fc0234c4
[ "MIT" ]
3
2020-05-17T07:33:50.000Z
2020-05-21T20:18:50.000Z
alphabet_texter/alphabet_lib/alphabet_utils.py
joseph-x-li/py-alphabet-texter
2f9e9e975f9852f4146d1c7a6c73a0e4fc0234c4
[ "MIT" ]
null
null
null
import time # NOTE: This module has been deemed complete and should not be changed. class AlphabetUtils: def __init__(self, key): """Initialize an AlphabetUtils object. Args: key (string): Reference string """ self.key = key self.keylen = len(self.key) ...
30.782178
86
0.542618
080f216ee6e7144f7efe5e74d31aa043ebfcd3a2
153,031
py
Python
google-cloud-sdk/platform/gsutil/gslib/tests/test_cp.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/platform/gsutil/gslib/tests/test_cp.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/platform/gsutil/gslib/tests/test_cp.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
47.643524
87
0.667283
080f3b1eb56d5ac580aa295883f84abef5f9dbe3
64,585
py
Python
tests/test_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
tests/test_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
tests/test_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from tests import FlexGetBase def age_series(**kwargs): from flexget.plugins.filter.series import Release from flexget.manager import Session import datetime session = Session() session.query(Release).update({'first_seen': datetime...
35.466776
133
0.568398
080f4bb4cb4b836deb82e62fd5d45975b7d6c765
52
py
Python
packages/vaex-astro/vaex/astro/_version.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
337
2016-02-11T07:36:35.000Z
2018-12-10T07:17:35.000Z
packages/vaex-astro/vaex/astro/_version.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
127
2016-07-06T15:43:14.000Z
2018-12-11T18:46:27.000Z
packages/vaex-astro/vaex/astro/_version.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
29
2016-10-05T14:15:28.000Z
2018-11-29T10:17:00.000Z
__version_tuple__ = (0, 9, 1) __version__ = '0.9.1'
17.333333
29
0.653846
080f57a89b551a8d4bb679ea4723f3de8a2a64f5
8,353
py
Python
projectoxford/emotion.py
zooba/projectoxford
a98fe7d883ff5c88337a7d165b18e5d21222ec7c
[ "MIT" ]
16
2016-02-21T22:26:34.000Z
2021-09-05T20:44:19.000Z
projectoxford/emotion.py
zooba/projectoxford
a98fe7d883ff5c88337a7d165b18e5d21222ec7c
[ "MIT" ]
13
2016-01-28T22:20:14.000Z
2017-03-11T11:41:02.000Z
projectoxford/emotion.py
zooba/projectoxford
a98fe7d883ff5c88337a7d165b18e5d21222ec7c
[ "MIT" ]
7
2016-05-14T07:43:10.000Z
2018-08-16T22:02:47.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation # All rights reserved. # # Distributed under the terms of the MIT License #------------------------------------------------------------------------- '''Project Oxford Emotion Module This module provides acc...
33.955285
135
0.596552
080f5be5063871f74d6ba2faf6c81f8595616878
1,226
py
Python
zeynep/verification/serializers.py
realsuayip/zeynep
76d525fa529b92525f5e45d42219279bdfcd1125
[ "BSD-3-Clause" ]
null
null
null
zeynep/verification/serializers.py
realsuayip/zeynep
76d525fa529b92525f5e45d42219279bdfcd1125
[ "BSD-3-Clause" ]
1
2022-03-24T19:02:23.000Z
2022-03-29T20:40:36.000Z
zeynep/verification/serializers.py
realsuayip/zeynep
76d525fa529b92525f5e45d42219279bdfcd1125
[ "BSD-3-Clause" ]
null
null
null
from django.utils import timezone from django.utils.translation import gettext_lazy as _ from rest_framework import serializers from rest_framework.exceptions import NotFound from zeynep.verification.models.base import code_validator class BaseCheckSerializer(serializers.Serializer): # noqa """ Check the v...
29.190476
75
0.676183
080f5ef3e415c06267aca11d40f8fab1f5720945
8,068
py
Python
utils.py
soskek/captioning_chainer
1c3c950d393598a8aa0bc3c6f65a391c548142e7
[ "MIT" ]
19
2017-10-12T07:16:35.000Z
2020-10-20T23:40:45.000Z
utils.py
soskek/captioning_chainer
1c3c950d393598a8aa0bc3c6f65a391c548142e7
[ "MIT" ]
2
2017-10-14T10:24:24.000Z
2018-06-12T07:08:04.000Z
utils.py
soskek/captioning_chainer
1c3c950d393598a8aa0bc3c6f65a391c548142e7
[ "MIT" ]
5
2017-10-14T15:50:36.000Z
2018-06-12T06:58:38.000Z
import sys sys.path.append('./coco-caption/') sys.path.append('./coco-caption/pycocoevalcap/') from bleu.bleu import Bleu from cider.cider import Cider from meteor.meteor import Meteor from rouge.rouge import Rouge import collections import io import os import numpy as np import chainer from chainer import cuda fro...
34.042194
79
0.581309
080f8513c0a0ad36a4df632b0617c155b9ffd6d8
274
py
Python
abc/239/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/239/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/239/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin def main(): ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() X = ni() print(X // 10) if __name__ == "__main__": main()
16.117647
57
0.583942
080fb3889a3d3044ce0a1c9f60367c7bed05c405
2,467
py
Python
tools/reserve-migrations.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
tools/reserve-migrations.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
tools/reserve-migrations.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.000Z
#!/usr/bin/env python import argparse import glob import os import subprocess BASE = 'nova/db/sqlalchemy/migrate_repo/versions'.split('/') API_BASE = 'nova/db/sqlalchemy/api_migrations/migrate_repo/versions'.split('/') STUB = """ # Licensed under the Apache License, Version 2.0 (the "License"); you may # not u...
32.460526
79
0.638427
080fd5663a3a423ac467528f16cc608dcdc0223f
2,493
py
Python
samples/snippets/test_certificates.py
renovate-bot/python-security-private-ca
e87815a7614bd6d2aabef5fabc050c1161a76fbf
[ "Apache-2.0" ]
null
null
null
samples/snippets/test_certificates.py
renovate-bot/python-security-private-ca
e87815a7614bd6d2aabef5fabc050c1161a76fbf
[ "Apache-2.0" ]
null
null
null
samples/snippets/test_certificates.py
renovate-bot/python-security-private-ca
e87815a7614bd6d2aabef5fabc050c1161a76fbf
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
27.7
75
0.750501
080febc7865b6dd0dea52c25978fcef21941280b
1,411
py
Python
botx/clients/methods/errors/chat_creation_disallowed.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/methods/errors/chat_creation_disallowed.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/methods/errors/chat_creation_disallowed.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Definition for "chat creating disallowed" error.""" from typing import NoReturn from uuid import UUID from pydantic import BaseModel from botx.clients.methods.base import APIErrorResponse, BotXMethod from botx.clients.types.http import HTTPResponse from botx.exceptions import BotXAPIError class ChatCreationDisal...
28.795918
77
0.727853
080ffe3a2d7c771c337e86a4211dded23e913d97
2,529
py
Python
harmonica/tests/test_sample_data.py
nshea3/harmonica
4f2dcbe776c3ebd1f35bdf644da74a4a18a91490
[ "BSD-3-Clause" ]
1
2020-10-28T03:07:03.000Z
2020-10-28T03:07:03.000Z
harmonica/tests/test_sample_data.py
nshea3/harmonica
4f2dcbe776c3ebd1f35bdf644da74a4a18a91490
[ "BSD-3-Clause" ]
null
null
null
harmonica/tests/test_sample_data.py
nshea3/harmonica
4f2dcbe776c3ebd1f35bdf644da74a4a18a91490
[ "BSD-3-Clause" ]
1
2021-05-28T01:38:53.000Z
2021-05-28T01:38:53.000Z
""" Test the sample data loading functions. """ import numpy.testing as npt from ..datasets.sample_data import ( fetch_gravity_earth, fetch_geoid_earth, fetch_topography_earth, fetch_rio_magnetic, fetch_south_africa_gravity, ) def test_geoid_earth(): "Sanity checks for the loaded grid" gr...
36.128571
71
0.720443
081001fd3d041e0acb28fec8f5dd04f4fdd61609
93
py
Python
Code/software/apps.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
2
2021-12-15T21:58:43.000Z
2021-12-15T22:17:26.000Z
Code/software/apps.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
null
null
null
Code/software/apps.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
1
2021-12-19T17:02:02.000Z
2021-12-19T17:02:02.000Z
from django.apps import AppConfig class SoftwareConfig(AppConfig): name = "software"
11.625
33
0.741935
08100a1f0ee1d5f1b3acb1092d2211ed91ae83ea
1,443
py
Python
tests/integration/utils/test_blockdevices/test_blockdevice_mdraid.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
tests/integration/utils/test_blockdevices/test_blockdevice_mdraid.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
tests/integration/utils/test_blockdevices/test_blockdevice_mdraid.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from tests.integration.utils.test_blockdevices.test_blockdevice import TestBlockDevice class TestBlockDeviceMdRaid(TestBlockDevice): _supported_device_types = ["mdr...
32.066667
114
0.641719
081019dd0a6ffa8f1b35e489e4f7bb770e01dd3f
5,374
py
Python
python/vPiP/coordinates.py
brianinnes/pyPlotter
c580c6d33b9c80cb8ec0a3a7a289fa5a2610a8a2
[ "Apache-2.0" ]
11
2016-05-02T11:17:20.000Z
2019-03-11T08:49:30.000Z
python/vPiP/coordinates.py
brianinnes/pyPlotter
c580c6d33b9c80cb8ec0a3a7a289fa5a2610a8a2
[ "Apache-2.0" ]
23
2016-04-14T21:25:11.000Z
2021-08-17T23:01:55.000Z
python/vPiP/coordinates.py
brianinnes/pyPlotter
c580c6d33b9c80cb8ec0a3a7a289fa5a2610a8a2
[ "Apache-2.0" ]
9
2016-11-13T00:59:03.000Z
2021-07-25T10:05:46.000Z
# Copyright 2016 Brian Innes # # 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, ...
28.585106
120
0.592668
08101a6880ced85c15aeb91f021be999087e164e
2,082
py
Python
src/sortseq_for_doc.py
irelandb/mpathic_for_cluster
bacdbf4d9227a8035cd4de2b4d19aeefe82093c6
[ "BSD-3-Clause" ]
null
null
null
src/sortseq_for_doc.py
irelandb/mpathic_for_cluster
bacdbf4d9227a8035cd4de2b4d19aeefe82093c6
[ "BSD-3-Clause" ]
null
null
null
src/sortseq_for_doc.py
irelandb/mpathic_for_cluster
bacdbf4d9227a8035cd4de2b4d19aeefe82093c6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.7 ''' Primary function for mpathic.ools. Currently supports: simulate_library simulate_sublib simulate_mpathic simulate_selection simulate_mpra ''' from __future__ import division import numpy as np import scipy as sp import argparse import sys import csv # Create argparse parser. parser = ...
22.630435
173
0.8439
081020d39f4e2b0d963448c816ec3a0337220537
1,688
py
Python
atx/ext/gt.py
jamjven/ATX
09571aa2745fc9c3583b17c466869db5b86bf5f5
[ "Apache-2.0" ]
1,132
2017-07-21T05:08:56.000Z
2022-03-23T01:29:00.000Z
atx/ext/gt.py
jamjven/ATX
09571aa2745fc9c3583b17c466869db5b86bf5f5
[ "Apache-2.0" ]
74
2017-07-21T06:00:32.000Z
2019-01-25T05:10:20.000Z
atx/ext/gt.py
jamjven/ATX
09571aa2745fc9c3583b17c466869db5b86bf5f5
[ "Apache-2.0" ]
277
2017-07-28T07:23:54.000Z
2022-03-22T08:39:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # extention for http://gt.qq.com/ # reference doc http://gt.qq.com/docs/a/UseGtWithBroadcast.txt # # Experimental, maybe change in the future # Created by <hzsunshx> 2016-06-12 import functools class GT(object): def __init__(self, d): self.d = d sel...
36.695652
128
0.630924
081027ef4acee0d6910e594771f56cb783e95d4a
3,034
py
Python
test/azure/low-level/AcceptanceTests/test_config.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/low-level/AcceptanceTests/test_config.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/low-level/AcceptanceTests/test_config.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
54.178571
149
0.756757
08104e2d3a40e3d64524a0dfc52f60d429cdad2e
79
py
Python
prereise/gather/solardata/__init__.py
terrywqf/PreREISE
f8052dd37091eaa15024725d5c92a3ef0ee311ee
[ "MIT" ]
null
null
null
prereise/gather/solardata/__init__.py
terrywqf/PreREISE
f8052dd37091eaa15024725d5c92a3ef0ee311ee
[ "MIT" ]
null
null
null
prereise/gather/solardata/__init__.py
terrywqf/PreREISE
f8052dd37091eaa15024725d5c92a3ef0ee311ee
[ "MIT" ]
null
null
null
__all__ = ["constants", "helpers", "pv_tracking", "ga_wind", "nsrdb", "tests"]
39.5
78
0.64557
0810747c068a4667abc9f1d005465fe8cc082dd9
4,319
py
Python
pull_fb/pull_fb.py
hamishgibbs/pull_facebook_data_for_good
b98603dc4664c619dcba7dd6dd3af5ad982ffb9b
[ "MIT" ]
15
2020-04-27T07:05:21.000Z
2021-06-13T17:33:26.000Z
pull_fb/pull_fb.py
hamishgibbs/pull_facebook_data_for_good
b98603dc4664c619dcba7dd6dd3af5ad982ffb9b
[ "MIT" ]
35
2020-04-13T08:01:12.000Z
2021-05-07T11:31:49.000Z
pull_fb/pull_fb.py
hamishgibbs/pull_facebook_data_for_good
b98603dc4664c619dcba7dd6dd3af5ad982ffb9b
[ "MIT" ]
10
2020-04-19T16:41:40.000Z
2021-04-16T09:34:53.000Z
import click import os from datetime import datetime import pull_fb.utils as utils import pull_fb.url as url import pull_fb.driver as driver import pull_fb.credentials as credentials @click.command() @click.option("-d", "--dataset_name", help="Dataset name to be downloaded.") @click.option("-a", "--area", help="Area ...
28.414474
130
0.578838
0810b0492a849035ed801fe0f432de5456f37233
4,713
py
Python
models/voice2face_model.py
Gwiths/seeking-the-shape-of-sound
c9a7c68c66459f86e4885ba0b9a0d4a397510c0f
[ "MIT" ]
null
null
null
models/voice2face_model.py
Gwiths/seeking-the-shape-of-sound
c9a7c68c66459f86e4885ba0b9a0d4a397510c0f
[ "MIT" ]
null
null
null
models/voice2face_model.py
Gwiths/seeking-the-shape-of-sound
c9a7c68c66459f86e4885ba0b9a0d4a397510c0f
[ "MIT" ]
null
null
null
import torch from torch import autograd import torch.nn as nn import torch.nn.functional as F import numpy as np from models.base_model import BaseModel from models.nn.module import NormalizeConv, GDropLayer, MultiLayerPerceptron from models.gen_network import generate_net import copy def Euclidean_distance(x, y): ...
34.911111
133
0.547634
0810d7adcf271b53f85585e1134cf54e12a33386
4,799
py
Python
autogalaxy/analysis/maker.py
Jammy2211/PyAutoAstro
4c26455dba047b6187bf1adf193591e050107d03
[ "MIT" ]
4
2019-10-29T13:27:23.000Z
2020-03-24T11:13:35.000Z
autogalaxy/analysis/maker.py
Jammy2211/PyAutoAstro
4c26455dba047b6187bf1adf193591e050107d03
[ "MIT" ]
null
null
null
autogalaxy/analysis/maker.py
Jammy2211/PyAutoAstro
4c26455dba047b6187bf1adf193591e050107d03
[ "MIT" ]
3
2020-02-12T10:29:59.000Z
2020-03-24T11:13:53.000Z
import logging from typing import Callable, Union import autoarray as aa import autofit as af from autoconf import conf from autofit.exc import PriorLimitException from autogalaxy.analysis.preloads import Preloads logger = logging.getLogger(__name__) logger.setLevel(level="INFO") class FitMaker: ...
37.492188
119
0.627839
0810fc46cf2b5a367735ca9e4310f05ade917410
465
py
Python
dashboards/utils.py
nforoza/covid19-dashboards
7b146d6d85d52693d8153442223ba162520ce97e
[ "MIT" ]
null
null
null
dashboards/utils.py
nforoza/covid19-dashboards
7b146d6d85d52693d8153442223ba162520ce97e
[ "MIT" ]
null
null
null
dashboards/utils.py
nforoza/covid19-dashboards
7b146d6d85d52693d8153442223ba162520ce97e
[ "MIT" ]
null
null
null
import urllib import urllib.error as urlerrors def get_dataset(url,destiny,columns): '''Retrieves dataset from url a stores it in destiny folder Parameters: url (string): URL to retrieve csv Returns: Pandas Dataframe:Returning value ''' try: urllib.request.urlretrieve(url,destiny) ...
33.214286
65
0.701075
0811221e6ecc3942120c90231d27945593c14116
17,045
py
Python
scripts/rpc/nvmf.py
tongyingrui/spdk
7dfe90df603d4f947723b4937feef28bdd008167
[ "BSD-3-Clause" ]
1
2022-03-28T08:11:46.000Z
2022-03-28T08:11:46.000Z
scripts/rpc/nvmf.py
tongyingrui/spdk
7dfe90df603d4f947723b4937feef28bdd008167
[ "BSD-3-Clause" ]
null
null
null
scripts/rpc/nvmf.py
tongyingrui/spdk
7dfe90df603d4f947723b4937feef28bdd008167
[ "BSD-3-Clause" ]
null
null
null
from .helpers import deprecated_alias from .cmd_parser import * @deprecated_alias('set_nvmf_target_max_subsystems') def nvmf_set_max_subsystems(client, max_subsystems=None): """Set NVMe-oF target options. Args: max_subsystems: Maximum number of NVMe-oF subsystems (e.g. 102...
28.45576
126
0.626166
081136e234e29cd5a61a7a5fea07964f6d91eec5
7,416
py
Python
app/util/httprunner/context.py
wuqundong520/ApiTestManage
ad6afcbb4876e4f9183ec9027009a8f027b41783
[ "Apache-2.0" ]
318
2018-07-06T08:47:52.000Z
2022-03-29T08:50:29.000Z
app/util/httprunner/context.py
wuqundong520/ApiTestManage
ad6afcbb4876e4f9183ec9027009a8f027b41783
[ "Apache-2.0" ]
6
2019-07-25T02:56:57.000Z
2021-01-25T08:31:30.000Z
app/util/httprunner/context.py
wuqundong520/ApiTestManage
ad6afcbb4876e4f9183ec9027009a8f027b41783
[ "Apache-2.0" ]
145
2018-07-06T14:00:15.000Z
2022-02-23T07:20:18.000Z
from . import exceptions, logger, parser, utils class SessionContext(object): """ HttpRunner session, store runtime variables. Examples: >>> functions={...} >>> variables = {"SECRET_KEY": "DebugTalk"} >>> context = SessionContext(functions, variables) Equivalent to: >...
37.266332
105
0.591694
081182a32b870f8f96532ef666480241e9adf994
596
py
Python
examples/cs106a/2-simplepython/console/liftoff.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
5
2018-12-03T19:18:50.000Z
2021-05-31T07:17:06.000Z
examples/cs106a/2-simplepython/console/liftoff.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2020-02-13T20:56:05.000Z
2020-02-19T18:32:56.000Z
examples/cs106a/2-simplepython/console/liftoff.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-06T07:29:07.000Z
2017-06-06T07:29:07.000Z
#!/usr/bin/env python """CS106A Assignment 2 Example: Lift off! (Warmup) This program prints the calls for a spaceship that is about to launch. It loops through the numbers from 10 down to 1, and the writes "Lift off!". Usage:: $ python liftoff.py 10 9 8 7 6 5 4 3 2 1 ...
17.529412
75
0.652685
081192daf9c5d072ffefe5858704fc03f72f3755
4,459
py
Python
my_scripts/grad/gradcam.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
10
2019-03-11T22:47:56.000Z
2021-01-02T11:52:11.000Z
my_scripts/grad/gradcam.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
1
2019-12-22T17:40:23.000Z
2019-12-25T01:26:52.000Z
my_scripts/grad/gradcam.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
8
2019-03-01T13:10:37.000Z
2022-03-07T07:48:41.000Z
from keras.applications.resnet50 import ResNet50 from keras.applications.resnet50 import preprocess_input, decode_predictions from keras.preprocessing import image import keras.backend as K import numpy as np import cv2 def load_image(path, target_size=(224, 224)): x = image.load_img(path, target_size=target_si...
32.079137
153
0.678852
0811c2b4166615d1eeeb5b2d8919531de6c72c11
5,156
py
Python
txdav/who/test/test_wiki.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
txdav/who/test/test_wiki.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
txdav/who/test/test_wiki.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2014-2015 Apple 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 l...
26.994764
78
0.667766
0811ef87a2138d5e36bb5b74b4030aca6eb25e68
651
py
Python
brim/test/__init__.py
gholt/python-brim
d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1
[ "Apache-2.0" ]
null
null
null
brim/test/__init__.py
gholt/python-brim
d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1
[ "Apache-2.0" ]
null
null
null
brim/test/__init__.py
gholt/python-brim
d21bc19fde9f8b8dfb5fdfb8ad6585494e4821c1
[ "Apache-2.0" ]
null
null
null
"""Contains unit and functional tests for the brim package.""" """Copyright and License. Copyright 2012-2014 Gregory Holt 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/l...
36.166667
72
0.78341
08120f5b503d740e1b5611ae8b780b229665623b
1,986
py
Python
distributeCandies.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
1
2019-08-29T01:12:47.000Z
2019-08-29T01:12:47.000Z
distributeCandies.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
distributeCandies.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @project : LeetCode @File : distributeCandies.py @Contact : 9824373@qq.com @Desc : 排排坐,分糖果。 我们买了一些糖果 candies,打算把它们分给排好队的 n = num_people 个小朋友。 给第一个小朋友 1 颗糖果,第二个小朋友 2 颗,依此类推,直到给最后一个小朋友 n 颗糖果。 然后,我们再回到队伍的起点,给第一个小朋友 n + 1 颗糖果,第二个小朋...
28.371429
113
0.504028
08120f70e9ac01c2076babf12a7f2223b874a2b8
702
py
Python
LintCode/chapter 34/109. Triangle/solution.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LintCode/chapter 34/109. Triangle/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LintCode/chapter 34/109. Triangle/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
# memoization search class Solution: """ @param triangle: a list of lists of integers @return: An integer, minimum path sum """ def minimumTotal(self, triangle): # write your code here return self.devide_conquer(triangle, 0, 0, {}) def devide_conquer(self, triangle, x, y, memor...
29.25
67
0.541311
0812388d4f331d9ce0e1870eb82ea68964671c24
68,964
py
Python
core/domain/exp_services.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
core/domain/exp_services.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
core/domain/exp_services.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
41.745763
116
0.694768
08123ea235a7ea69b15c7ebab5f41939f16383f7
2,675
py
Python
examples/datacamp-blogpost/04-you-always-say-that.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
97
2018-01-15T19:29:31.000Z
2022-03-11T00:27:34.000Z
examples/datacamp-blogpost/04-you-always-say-that.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
10
2018-01-15T22:44:55.000Z
2022-02-18T09:44:10.000Z
examples/datacamp-blogpost/04-you-always-say-that.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
33
2018-01-15T19:34:23.000Z
2022-03-05T22:39:33.000Z
import logging import pandas as pd from tabulate import tabulate from trumania.core import circus, operations from trumania.core.random_generators import SequencialGenerator, FakerGenerator, NumpyRandomGenerator, ConstantDependentGenerator, ConstantGenerator import trumania.core.util_functions as util_functions uti...
33.024691
148
0.721495
08126f2ae1d7aea7d4453c47c2ab6ee22d5ec83f
812
py
Python
pulser-simulation/pulser_simulation/_version.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-simulation/pulser_simulation/_version.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-simulation/pulser_simulation/_version.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pulser Development Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
38.666667
75
0.759852
08128155fec5e946880f3b102725b28d2f6248c6
847
py
Python
terrascript/resource/techBeck03/infoblox.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/techBeck03/infoblox.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/techBeck03/infoblox.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/techBeck03/infoblox.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:19:08 UTC) import terrascript class infoblox_a_record(terrascript.Resource): pass class infoblox_alias_record(terrascript.Resource): pass class infoblox_cname_record(terrascript.Resource): pass...
17.645833
73
0.760331
08129340efac57cbdda1192a1367f3abe0867da8
687
py
Python
client/verta/verta/_swagger/_public/modeldb/model/LineageEntryEnumLineageEntryType.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/modeldb/model/LineageEntryEnumLineageEntryType.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/modeldb/model/LineageEntryEnumLineageEntryType.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class LineageEntryEnumLineageEntryType(BaseType): _valid_values = [ "UNKNOWN", "EXPERIMENT_RUN", "DATASET_VERSION", ] def __init__(self, val): if val not in LineageEntryEnumLineageEntryType._valid_values: ...
27.48
98
0.743814
0812c073a6666a2ed5970657ea6cb51953e228f5
5,638
py
Python
amr_parser/dump_attention.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
amr_parser/dump_attention.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
amr_parser/dump_attention.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
import torch import os from elit.components.amr.amr_parser.data import REL from elit.datasets.parsing.amr import unlinearize, remove_unconnected_components, un_kahn if os.environ.get('USE_TF', None) is None: os.environ["USE_TF"] = 'NO' # saves time loading transformers from amr_parser.data import Vocab, DataLoad...
43.705426
115
0.691912
0812e1cc9de766621745c6a29665523ecb84e755
1,154
py
Python
tests/test_task.py
cxz/klaws
7f072e46a5f7d263b7e059d21591f776c4c7991b
[ "MIT" ]
null
null
null
tests/test_task.py
cxz/klaws
7f072e46a5f7d263b7e059d21591f776c4c7991b
[ "MIT" ]
null
null
null
tests/test_task.py
cxz/klaws
7f072e46a5f7d263b7e059d21591f776c4c7991b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #from .context import sample import unittest from moto import mock_ecs from pprint import pprint import os import klaws.task as task import klaws.cluster as cluster @mock_ecs class TaskTestSuite(unittest.TestCase): """Basic test cases.""" CLUSTER_NAME = 'test-cluster'...
24.553191
76
0.604853
08131ca8d05c143097b1f29a3f5c160d8cf2260c
2,130
py
Python
src/apification/utils/tpath/lexems.py
Quantify-world/Apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
5
2016-10-29T14:23:22.000Z
2017-07-15T08:39:58.000Z
src/apification/utils/tpath/lexems.py
Quantify-world/Apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
32
2016-10-23T19:18:26.000Z
2017-02-27T18:33:36.000Z
src/apification/utils/tpath/lexems.py
Quantify-world/apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
null
null
null
from itertools import chain from apification.utils.tpath.base import TPathParser, BaseLexem, BaseSeparator @TPathParser.separator class SlashSeparator(BaseSeparator): pattern = r'/' def resolve(self, iterator=None): from apification.utils.tpath.proxy import VirtualRoot if iterator is None: ...
24.767442
80
0.614085
0813398475429b62038eef7dc72d04f271dbbe8b
2,334
py
Python
tests/contrib/bottle/tests.py
danriti/raven-python
f9060ccf67d8b19a7d06946895b1039f65e67b53
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/bottle/tests.py
danriti/raven-python
f9060ccf67d8b19a7d06946895b1039f65e67b53
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/bottle/tests.py
danriti/raven-python
f9060ccf67d8b19a7d06946895b1039f65e67b53
[ "BSD-3-Clause" ]
null
null
null
from exam import fixture from webtest import TestApp import bottle from raven.base import Client from raven.contrib.bottle import Sentry from raven.utils.testutils import TestCase class TempStoreClient(Client): def __init__(self, **kwargs): self.events = [] super(TempStoreClient, self).__init__...
25.369565
73
0.634533
08133bd2ea32deeba9bc59b58751608ec4dfdb2c
3,042
py
Python
src/hub/dataload/sources/drugbank/drugbank_upload.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
src/hub/dataload/sources/drugbank/drugbank_upload.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
src/hub/dataload/sources/drugbank/drugbank_upload.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
""" DrugBank Uploader """ # pylint: disable=E0401, E0611 import os import glob import pymongo import biothings.hub.dataload.storage as storage from biothings.utils.common import unzipall from biothings.utils.exclude_ids import ExcludeFieldsById from hub.dataload.uploader import BaseDrugUploader from hub.datatransform.k...
38.506329
86
0.66831
081361aa32ed16e31da57f438ce3346650b7904f
11,124
py
Python
homeassistant/components/sensor/gtfs.py
dagobert/home-assistant
33dcb071dab25dd93ce7bcfae70315ace5af4702
[ "Apache-2.0" ]
1
2019-03-24T13:30:10.000Z
2019-03-24T13:30:10.000Z
homeassistant/components/sensor/gtfs.py
dagobert/home-assistant
33dcb071dab25dd93ce7bcfae70315ace5af4702
[ "Apache-2.0" ]
1
2019-02-09T15:44:11.000Z
2019-02-09T15:44:11.000Z
homeassistant/components/sensor/gtfs.py
pc-coholic/home-assistant
24914aade50f7f4f813380b58292d5e91dc47f41
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
""" Support for GTFS (Google/General Transport Format Schema). For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.gtfs/ """ import os import logging import datetime import threading import voluptuous as vol from homeassistant.components.sensor impor...
37.204013
78
0.642485
08137d51445ffbc8dfd4789b5fa71caabb43bfc3
1,712
py
Python
pbsmrtpipe/testkit/validate_presets.py
PacificBiosciences/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
26
2015-08-06T02:09:51.000Z
2021-02-26T02:25:01.000Z
pbsmrtpipe/testkit/validate_presets.py
mpkocher/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
181
2015-08-07T18:13:02.000Z
2021-04-13T16:24:32.000Z
pbsmrtpipe/testkit/validate_presets.py
PacificBiosciences/pbsmrtpipe
4d532c823d3a46b82c2eb20b9d46e63544c8ba83
[ "BSD-3-Clause" ]
29
2015-08-07T17:29:42.000Z
2021-09-15T18:22:37.000Z
import logging import os.path as op import os import sys from pbcommand.cli.core import get_default_argparser_with_base_opts, \ pacbio_args_runner from pbcommand.utils import setup_log from pbcommand.validators import validate_dir __version__ = "0.1.0" log = logging.getLogger(__name__) def validate_preset_xml...
28.533333
85
0.658879
0813837ad2eb71273a5c032cd8a8be8b2906674d
609
py
Python
game/poisonedduration.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
game/poisonedduration.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
game/poisonedduration.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution(object): def findPoisonedDuration(self, timeSeries, duration): ans = duration * len(timeSeries) for i in range(1,len(timeSeries)): ans -= max(0, duration - (timeSeries[i] - timeSeries[i-1])) return ans class BetterSolution: def findPoisonedDuration(self, timeS...
30.45
76
0.528736
081395e77a4c51389a337e4e57b7d6530d84a827
562
py
Python
dapy/filters/__init__.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
11
2020-07-29T07:46:39.000Z
2022-03-17T01:28:07.000Z
dapy/filters/__init__.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
1
2020-07-14T11:49:17.000Z
2020-07-29T07:43:22.000Z
dapy/filters/__init__.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
10
2020-07-14T11:34:24.000Z
2022-03-07T09:08:12.000Z
"""Filters for sequential inference in state-space models.""" from dapy.filters.ensemble_kalman import ( EnsembleKalmanFilter, EnsembleTransformKalmanFilter, ) from dapy.filters.kalman import MatrixKalmanFilter, FunctionKalmanFilter from dapy.filters.particle import ( BootstrapParticleFilter, EnsembleT...
28.1
72
0.809609
0813bbbd568e006437271e0b76d93d5be41ffc79
27,489
py
Python
tensorflow_compression/python/layers/entropy_models_test.py
Sue128/RNN-based-hyper
ee777b8df0b25618a7f99384d6393876ebbaae60
[ "Apache-2.0" ]
3
2019-12-19T04:00:41.000Z
2021-01-10T17:41:34.000Z
tensorflow_compression/python/layers/entropy_models_test.py
Sue128/RNN-based-hyper
ee777b8df0b25618a7f99384d6393876ebbaae60
[ "Apache-2.0" ]
null
null
null
tensorflow_compression/python/layers/entropy_models_test.py
Sue128/RNN-based-hyper
ee777b8df0b25618a7f99384d6393876ebbaae60
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC. 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 a...
44.2657
80
0.645713