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
3882604e53e6064936b2cdae0370ecfe7ea5fcbe
21,333
py
Python
util/data/gen/GameAssembly.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/GameAssembly.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/GameAssembly.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
symbols = [] exports = [{'type': 'function', 'name': 'CloseZStream', 'address': '0x7ffaa6a3f0f0'}, {'type': 'function', 'name': 'CreateZStream', 'address': '0x7ffaa6a3f1a0'}, {'type': 'function', 'name': 'DllCanUnloadNow', 'address': '0x7ffaa6a1f2d0'}, {'type': 'function', 'name': 'DllGetActivationFactory', 'address': ...
10,666.5
21,320
0.707074
3882641c1d5b3bac7fe390a060881ab3bd145c6f
2,123
py
Python
envoy/tests/test_envoy.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
2
2019-04-03T17:21:38.000Z
2020-02-04T16:28:05.000Z
envoy/tests/test_envoy.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
10
2018-02-27T19:06:07.000Z
2021-08-30T03:23:26.000Z
envoy/tests/test_envoy.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
6
2018-01-09T21:37:20.000Z
2020-05-26T09:28:09.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os try: from functools import lru_cache except ImportError: from backports.functools_lru_cache import lru_cache import mock import pytest from datadog_checks.stubs import aggregator as _aggregator ...
27.934211
84
0.656618
38827bff84114a5cc294c53a1d64bcf4963c707a
5,082
py
Python
staticmaps/pillow_renderer.py
lowtower/py-staticmaps
a5445cb9b3526039ceeca941164ba7cd1310caa3
[ "MIT" ]
null
null
null
staticmaps/pillow_renderer.py
lowtower/py-staticmaps
a5445cb9b3526039ceeca941164ba7cd1310caa3
[ "MIT" ]
null
null
null
staticmaps/pillow_renderer.py
lowtower/py-staticmaps
a5445cb9b3526039ceeca941164ba7cd1310caa3
[ "MIT" ]
null
null
null
# py-staticmaps # Copyright (c) 2021 Florian Pigorsch; see /LICENSE for licensing information import io import math import typing from PIL import Image as PIL_Image # type: ignore from PIL import ImageDraw as PIL_ImageDraw # type: ignore from .color import Color from .renderer import Renderer from .transformer imp...
36.3
103
0.596419
38828db7a73a29fe8a81a45cff86db6d1bd13778
8,534
py
Python
athena/models/masked_pc.py
JianweiSun007/athena
e967889d879404c6da340f20235359766742c322
[ "Apache-2.0" ]
4
2021-04-15T10:24:07.000Z
2021-05-20T02:49:54.000Z
athena/models/masked_pc.py
shuaijiang/athena-2
5d4d6d13075b8ee9fd824ce6258cb8f55dd157eb
[ "Apache-2.0" ]
3
2020-11-13T17:44:41.000Z
2022-02-09T23:38:40.000Z
athena/models/masked_pc.py
shuaijiang/athena-2
5d4d6d13075b8ee9fd824ce6258cb8f55dd157eb
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 ATHENA AUTHORS; Xiangang Li; Dongwei Jiang; Wubo Li # # 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...
39.693023
104
0.621631
38829a69b4e129cfe1e48fc66092adde500eab3e
3,249
py
Python
tests/pytest/test_generate.py
bcdady/cloudtruth-cli
9b556b728919c49195cdf89a64301a2ae6a0afe4
[ "Apache-2.0" ]
null
null
null
tests/pytest/test_generate.py
bcdady/cloudtruth-cli
9b556b728919c49195cdf89a64301a2ae6a0afe4
[ "Apache-2.0" ]
null
null
null
tests/pytest/test_generate.py
bcdady/cloudtruth-cli
9b556b728919c49195cdf89a64301a2ae6a0afe4
[ "Apache-2.0" ]
null
null
null
import dataclasses from copy import deepcopy from typing import Optional from testcase import TestCase from testcase import CT_REST_DEBUG DEFAULT_LEN = 15 LOWEST_LEN = 8 MAXIMUM_LEN = 4095 @dataclasses.dataclass class PasswordFlagTest: flag: str query: Optional[str] = None # TODO: add positive regex her...
37.344828
108
0.634349
38829bce1cdba436ac9a6233c58da844633ab9b4
2,876
py
Python
deprecated/dot_dictionary.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
deprecated/dot_dictionary.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
1
2020-10-21T18:15:46.000Z
2020-10-21T18:15:46.000Z
deprecated/dot_dictionary.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
class DotDictionary(dict): """ A subclass of `dict` that allows dot paths into nested dictionary. Based on: https://stackoverflow.com/a/2390997/120783 Usage: dot = DotDictionary({'meta': {'status': 'OK', 'status_code': 200}}) sc = dot.get('meta.status_code') sc2 = dot['meta.sta...
32.681818
111
0.543811
3882fca940543fddf1f62ec2457ff6e766643a44
66,073
py
Python
renpy/display/behavior.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
renpy/display/behavior.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
renpy/display/behavior.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2004-2021 Tom Rothamel <pytom@bishoujo.us> # # 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 to use, copy, modify, m...
29.339698
147
0.569416
38830b81909a870b2c5d8b41804fe305c2372aa0
3,743
py
Python
app/settings.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/settings.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/settings.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
import os from structlog import get_logger logger = get_logger() def ensure_min(value, minimum): if value < minimum: logger.warning("value below minimum", value=value, minimum=minimum) return minimum return value def parse_mode(string): return string.upper() != "FALSE" def read_file(...
34.027273
88
0.776115
3883391f7746bf67000413b842d16c1994d86f1c
3,932
py
Python
formatml/utils/helpers.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
2
2019-06-07T16:30:51.000Z
2019-10-09T10:10:17.000Z
mloncode/utils/helpers.py
m09/mloncode
0c28e6007d5e3cf0e4e0963428f15ec488cb49eb
[ "Apache-2.0" ]
2
2019-11-07T14:52:30.000Z
2019-11-08T14:40:06.000Z
mloncode/utils/helpers.py
m09/mloncode
0c28e6007d5e3cf0e4e0963428f15ec488cb49eb
[ "Apache-2.0" ]
3
2019-05-29T13:09:18.000Z
2021-01-28T11:35:01.000Z
from datetime import datetime from itertools import chain from logging import Filter, getLogger, Logger, LogRecord from pathlib import Path from sys import exit, stderr from typing import Any, Iterable, List, Optional, Tuple, Type, TypeVar, Union from coloredlogs import install as coloredlogs_install from dulwich.erro...
34.191304
88
0.619278
388363094199f30adae9720efc976e8e9c815e91
1,931
py
Python
plot/plot_optimal_entropy_scale_128x128.py
ZGCTroy/guided-diffusion
af987bb2b65db2875148a5466df79736ea5ae6a1
[ "MIT" ]
null
null
null
plot/plot_optimal_entropy_scale_128x128.py
ZGCTroy/guided-diffusion
af987bb2b65db2875148a5466df79736ea5ae6a1
[ "MIT" ]
null
null
null
plot/plot_optimal_entropy_scale_128x128.py
ZGCTroy/guided-diffusion
af987bb2b65db2875148a5466df79736ea5ae6a1
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import yaml import os log_root = "/workspace/mnt/storage/guangcongzheng/zju_zgc/guided-diffusion/log/imagenet1000_classifier128x128_channel128_baseline/predict/find_optimal_entropy_scale" num_samples = 5000 iteration = 300000 fig = plt.figure(figsize=(40, 20)) ax = plt.subplot(2,1,1) ...
33.293103
165
0.710513
388378b1642f53ebcd3048b2d541835ea81e31a6
6,012
py
Python
python/awaazde/base.py
awaazde/awaazde-api-client-demo
fd74f5b4e036f95b765ef09f130ed086f5e283cc
[ "Apache-2.0" ]
null
null
null
python/awaazde/base.py
awaazde/awaazde-api-client-demo
fd74f5b4e036f95b765ef09f130ed086f5e283cc
[ "Apache-2.0" ]
null
null
null
python/awaazde/base.py
awaazde/awaazde-api-client-demo
fd74f5b4e036f95b765ef09f130ed086f5e283cc
[ "Apache-2.0" ]
2
2021-11-30T12:02:08.000Z
2022-02-21T10:47:07.000Z
import logging import urllib.parse import os from .api_client import ApiClient from .constants import APIConstants from .exceptions import APIException from .utils import CommonUtils, CSVUtils class BaseAPI(object): """ BaseApi class, all the other api class extends it """ resource_url = None resou...
36.436364
137
0.598802
3883847c763ac5f71abb13ef35c06810f6c7a835
869
py
Python
plugins/nuke/publish/collect_write_order.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/nuke/publish/collect_write_order.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/nuke/publish/collect_write_order.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import pyblish.api from reveries import plugins class CollectWriteOrder(pyblish.api.InstancePlugin): label = "Write Order" order = pyblish.api.CollectorOrder hosts = ["nuke"] families = [ "reveries.write" ] @plugins.context_process def process(self, context): writes = l...
24.138889
70
0.586881
3883b2ff2f0910397cb22bf63fcf00642c594fb9
5,937
py
Python
contributed/compare_test_images.py
taureanamir/facenet-krasserm
2dfb396cdcfc6626292252bb8af86018e2216086
[ "MIT" ]
null
null
null
contributed/compare_test_images.py
taureanamir/facenet-krasserm
2dfb396cdcfc6626292252bb8af86018e2216086
[ "MIT" ]
4
2020-01-28T22:13:31.000Z
2021-08-25T14:47:24.000Z
contributed/compare_test_images.py
taureanamir/facenet-krasserm
2dfb396cdcfc6626292252bb8af86018e2216086
[ "MIT" ]
1
2021-04-19T14:00:33.000Z
2021-04-19T14:00:33.000Z
""" Author: taureanamir Created : Jun 20, 2019 This script needs to be run after the numpy array files of face embeddings and labels are generated. Use script export_embeddings.py to generate the numpy array files. """ from __future__ import absolute_import from __future__ import division from __future__ import print...
43.335766
142
0.629106
3883c34eab5f9ca715542f0724d7d42855b3cef4
11,063
py
Python
packages/infra_libs/infra_libs/ts_mon/common/test/metric_store_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
packages/infra_libs/infra_libs/ts_mon/common/test/metric_store_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
packages/infra_libs/infra_libs/ts_mon/common/test/metric_store_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import functools import operator import random import threading import time import unittest import mock from infra_libs.ts_mon.common import distribution f...
34.789308
78
0.674501
3883c5fd02a62527128ffdff3799b780e239c6f5
3,563
py
Python
tests/test_training/test_stopping.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
750
2020-06-23T08:36:34.000Z
2022-03-30T22:53:18.000Z
tests/test_training/test_stopping.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
691
2020-06-22T11:56:28.000Z
2022-03-31T16:07:32.000Z
tests/test_training/test_stopping.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
122
2020-06-26T14:37:56.000Z
2022-03-23T08:25:22.000Z
# -*- coding: utf-8 -*- """Test that training loops work correctly.""" import unittest from typing import List, Optional import torch from torch import optim from pykeen.datasets import Nations from pykeen.models import Model from pykeen.stoppers.early_stopping import EarlyStopper from pykeen.training import SLCWAT...
32.990741
98
0.653943
3884072066071093dc8087798ba404bf14582bcf
1,877
py
Python
sktime/utils/_show_versions.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-10-05T12:17:41.000Z
2020-10-19T08:57:50.000Z
sktime/utils/_show_versions.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/utils/_show_versions.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2020-12-28T15:24:15.000Z
2020-12-28T15:24:15.000Z
#!/usr/bin/env python3 -u # coding: utf-8 # License: BSD 3 clause """ Utility methods to print system info for debugging adapted from :func:`sklearn.show_versions` """ __author__ = ["Markus Löning"] __all__ = ["show_versions"] import platform import sys import importlib def _get_sys_info(): """System informati...
20.626374
61
0.565264
3884584b48ee0eb0087b5d5cc0393299491ab036
114,886
py
Python
oscar/lib/python2.7/site-packages/redis/client.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/redis/client.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/redis/client.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement from itertools import chain import datetime import sys import warnings import time import threading import time as mod_time import hashlib from redis._compat import (b, basestring, bytes, imap, iteritems, iterkeys, itervalues, izip, long, native...
38.93121
80
0.584902
38845a3334d0ffedc8da3c4e1f11752b002a77b1
12,726
py
Python
clip/gffCLIP.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
null
null
null
clip/gffCLIP.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
6
2020-04-16T11:58:14.000Z
2022-03-30T11:46:23.000Z
clip/gffCLIP.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
null
null
null
# -------------------------------------------------- # gffCLIP class # Authors: Thomas Schwarzl, schwarzl@embl.de # Nadia Ashraf, nadia.ashraf@embl.de # Marko Fritz, marko.fritz@embl.de # Modified by: Sudeep Sahadevan, sudeep.sahadevan@embl.de # EMBL Heidelberg # -------------------------------------...
35.647059
136
0.557992
38846686d41ec3c707d7765cb4736b9a5ecf8081
8,617
py
Python
tests/TestUnits.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
463
2015-01-05T11:10:50.000Z
2022-03-20T03:48:29.000Z
tests/TestUnits.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
196
2015-01-04T15:31:06.000Z
2022-03-24T16:57:53.000Z
tests/TestUnits.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
96
2015-01-19T14:38:49.000Z
2021-12-17T14:20:21.000Z
# -*- coding: utf-8 -*- """ Test parsing of units """ import sys import time import datetime import unittest import parsedatetime as pdt from parsedatetime.context import pdtContext from . import utils class test(unittest.TestCase): @utils.assertEqualWithComparator def assertExpectedResult(self, result, chec...
35.607438
79
0.589764
38846d5321d5aaeb5bd71872d82cf834e26b096c
2,235
py
Python
AlgorithmsPractice/python/204_easy_Count Primes.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/python/204_easy_Count Primes.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/python/204_easy_Count Primes.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
''' Count the number of prime numbers less than a non-negative number, n. Example: Input: 10 Output: 4 Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7. ''' # 2018-10-2 # 204. Count Primes # https://leetcode.com/problems/count-primes/description/ # TLE 17/20 class Solution1(object): def ...
22.806122
73
0.380761
38847896c2b4ef09eb10b7946046e50c098af68a
3,039
py
Python
appengine/components/components/prpc/discovery/test/test_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/prpc/discovery/test/test_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/prpc/discovery/test/test_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Generated by the pRPC protocol buffer compiler plugin. DO NOT EDIT! # source: test.proto import base64 from google.protobuf import descriptor_pb2 # Includes description of the test.proto and all of its transitive # dependencies. Includes source code info. FILE_DESCRIPTOR_SET = descriptor_pb2.FileDescriptorSet() F...
55.254545
80
0.87101
3884843877d317e81220ad52b6eea72a6f4c9c1d
847
py
Python
docs/conf.py
palewire/noaa-wildfires
9da7d50f93b021967d72d059f08767c85e7a1a38
[ "MIT" ]
null
null
null
docs/conf.py
palewire/noaa-wildfires
9da7d50f93b021967d72d059f08767c85e7a1a38
[ "MIT" ]
8
2021-12-01T15:40:09.000Z
2021-12-04T20:03:13.000Z
docs/conf.py
palewire/noaa-wildfires
9da7d50f93b021967d72d059f08767c85e7a1a38
[ "MIT" ]
1
2021-11-06T01:02:17.000Z
2021-11-06T01:02:17.000Z
"""Configure Sphinx configuration.""" import os import sys from datetime import datetime # Insert the parent directory into the path sys.path.insert(0, os.path.abspath("..")) extensions = [ "myst_parser", ] templates_path = ["_templates"] source_suffix = ".rst" master_doc = "index" project = "noaa-wildfires" yea...
19.25
58
0.649351
38849062acaf653a8f4bddfec96df5023ca0f50c
2,408
py
Python
tests/fixtures.py
WWU-AMM/pytimings
0a1b2a84e2820e5d9b447099f76b1a735663820b
[ "BSD-3-Clause" ]
null
null
null
tests/fixtures.py
WWU-AMM/pytimings
0a1b2a84e2820e5d9b447099f76b1a735663820b
[ "BSD-3-Clause" ]
14
2021-02-16T08:07:59.000Z
2021-11-30T11:51:58.000Z
tests/fixtures.py
WWU-AMM/pytimings
0a1b2a84e2820e5d9b447099f76b1a735663820b
[ "BSD-3-Clause" ]
null
null
null
import pickle import re import pytest import sys from pytest_regressions.data_regression import DataRegressionFixture from pytest_regressions.num_regression import NumericRegressionFixture from pytest_regressions.file_regression import FileRegressionFixture from pytimings import mpi USE_MPI = [False] if mpi.HAVE_MP...
29.728395
104
0.707641
388493102edd25db18402c416cc775829a08deac
202
py
Python
tql/utils/time/__init__.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/utils/time/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/utils/time/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = '__init__.py' __author__ = 'JieYuan' __mtime__ = '19-3-12' """ from .timer import timer from .time_ import timestamp2str, exponential_decay
20.2
51
0.693069
3884c35273a7c9c80fc04c32c26dd8d1ea26e59a
4,040
py
Python
tests/test_featureset/test_atoms.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_featureset/test_atoms.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_featureset/test_atoms.py
upura/vivid
6139697d60656d4774aceae880f5a07d929124a8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import numpy as np import pandas as pd import pytest from tests.utils import is_close_to_zero from vivid.featureset.atoms import StringContainsAtom, AbstractAtom, NotMatchLength, AbstractMergeAtom from vivid.featureset.utils import create_data_loader def test_string_contains_atom(): class TitleContainsAtom(Strin...
28.055556
102
0.605446
38852a6c4d9ecafc553c9a80f5d4fa6da2d3e151
1,519
py
Python
swaglyrics/__init__.py
martinmake/SwagLyrics-For-Spotify
34d2b6ea8db6d57be6548886c3c8c986682a1de5
[ "MIT" ]
1
2021-02-09T15:39:06.000Z
2021-02-09T15:39:06.000Z
swaglyrics/__init__.py
martinmake/SwagLyrics-For-Spotify
34d2b6ea8db6d57be6548886c3c8c986682a1de5
[ "MIT" ]
null
null
null
swaglyrics/__init__.py
martinmake/SwagLyrics-For-Spotify
34d2b6ea8db6d57be6548886c3c8c986682a1de5
[ "MIT" ]
null
null
null
import sys from os import getenv from pathlib import Path # create unsupported.txt in os specific user directory # doc: https://github.com/ActiveState/appdirs/blob/master/appdirs.py#L44 derivative def user_data_dir(file_name): r""" Get OS specific data directory path for SwagLyrics. Typical user data dir...
30.38
83
0.709677
38852d574edec682a9ec06972bfdbd26b8d1480f
52,434
py
Python
neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright (c) 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...
46.484043
79
0.55588
38855090aa504c772230e163e040cc4b4b0a303e
1,358
py
Python
Lindel_prediction.py
dzx0010/Lindel
7bf4be41fb3196a60286333ae52dd8d47b0ff469
[ "MIT" ]
null
null
null
Lindel_prediction.py
dzx0010/Lindel
7bf4be41fb3196a60286333ae52dd8d47b0ff469
[ "MIT" ]
null
null
null
Lindel_prediction.py
dzx0010/Lindel
7bf4be41fb3196a60286333ae52dd8d47b0ff469
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Author: Will Chen ''' 1. All functions are tested under python3.5 and python 3.6 2. Add Lindel folder to your python path. 3. y_hat is the prediction of all ~450 classes of indels <30bp. 4. fs is the frameshift ratio for this sequence. 5. Input should be 65bp (30 bp upstream and 35 bp downstr...
42.4375
116
0.723122
38857ab16f074a4bfae44ac71ebc63aa176d4005
3,088
py
Python
demisto_sdk/commands/common/hook_validations/conf_json.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/hook_validations/conf_json.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/hook_validations/conf_json.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
import json from demisto_sdk.commands.common.constants import CONF_PATH from demisto_sdk.commands.common.errors import Errors from demisto_sdk.commands.common.hook_validations.base_validator import \ BaseValidator class ConfJsonValidator(BaseValidator): """ConfJsonValidator has been designed to make sure we ...
40.103896
119
0.697539
3885843dafac132348cd8dadca09628b068d31a8
51,359
py
Python
ngraph/transformers/gpu/kernels/convolution.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/transformers/gpu/kernels/convolution.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/transformers/gpu/kernels/convolution.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2014-2018 Intel 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.apa...
34.307949
115
0.518059
3885bbed5ed227227ae6e3cec567ac51fd3361d2
8,506
py
Python
aprspy/components.py
pduran2008/aprs2
d0a11c824c7ec3d2487e2ee92d8b968f71cb2ccf
[ "MIT" ]
11
2019-11-05T08:55:52.000Z
2021-05-14T13:16:49.000Z
aprspy/components.py
pduran2008/aprs2
d0a11c824c7ec3d2487e2ee92d8b968f71cb2ccf
[ "MIT" ]
12
2019-10-26T04:11:53.000Z
2020-11-14T09:23:07.000Z
aprspy/components.py
pduran2008/aprs2
d0a11c824c7ec3d2487e2ee92d8b968f71cb2ccf
[ "MIT" ]
1
2019-10-25T03:35:02.000Z
2019-10-25T03:35:02.000Z
#!/usr/bin/env python import logging import re from typing import List, Optional, Union from enum import Enum from .exceptions import ParseError # Set up logging logger = logging.getLogger(__name__) class QConstruct(Enum): """ Enum for specifying q constructs. """ qAC = "qAC" qAX = "qAX" q...
29.637631
100
0.530096
3885fc1a7053d4d8204484fe15321785577a8602
2,160
py
Python
tests/test_cli.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
12
2021-12-27T14:40:17.000Z
2022-03-22T20:14:42.000Z
tests/test_cli.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
tests/test_cli.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
import sys from unittest.mock import patch, call import pytest sys.argv = ['dev', 'blah'] from dev.cli import main # noqa from dev.version import __version__ # noqa @patch('dev.console.console.print') def test_version(console_print_mock): with pytest.raises(SystemExit): main(args=docopt_args({'--vers...
27
89
0.699537
38862c79ecb84c1ec50887bfde8a2c3005c3175e
2,727
py
Python
apps/logs/management/commands/import_counter5.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/logs/management/commands/import_counter5.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/logs/management/commands/import_counter5.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
import json import logging from time import time from django.core.management.base import BaseCommand from django.db.transaction import atomic from core.logic.debug import log_memory from logs.models import ImportBatch from publications.models import Platform from ...logic.data_import import import_counter_records fro...
42.609375
98
0.644298
38864ea3b59174e6b2c09b609e09d3549441a94e
12,657
py
Python
run/datasets/cityscapes_labels.py
hideyuki-takahashi-s13/AI_edge_contest
6f83b466fd868fbafd0022db0027bd279e02bfbc
[ "BSD-3-Clause" ]
null
null
null
run/datasets/cityscapes_labels.py
hideyuki-takahashi-s13/AI_edge_contest
6f83b466fd868fbafd0022db0027bd279e02bfbc
[ "BSD-3-Clause" ]
null
null
null
run/datasets/cityscapes_labels.py
hideyuki-takahashi-s13/AI_edge_contest
6f83b466fd868fbafd0022db0027bd279e02bfbc
[ "BSD-3-Clause" ]
null
null
null
""" # File taken from https://github.com/mcordts/cityscapesScripts/ # License File Available at: # https://github.com/mcordts/cityscapesScripts/blob/master/license.txt # ---------------------- # The Cityscapes Dataset # ---------------------- # # # License agreement # ----------------- # # This dataset is made freely ...
59.985782
355
0.480288
388667b77ea8fbf318e3b97014d42313b56800b4
2,949
py
Python
src/python/pants/backend/python/goals/lockfile_test.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/goals/lockfile_test.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/goals/lockfile_test.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from textwrap import dedent from pants.backend.python.goals.lockfile import ( GeneratePythonLockfile, RequestedPythonUserResolveNames, setu...
35.963415
91
0.604273
38868bb00abd7e7d71462bb0c0d7a9eab30130d1
882
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/__init__.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 ...
44.1
114
0.664399
3886a3815cd1e0088676a083d707bafeffd3e5db
1,895
py
Python
tests/common/test_op/ascend/elemwise_chain.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/elemwise_chain.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/elemwise_chain.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 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 agre...
38.673469
93
0.711873
3886b9a1ce6e72c1cc9c9b755058b43408694f9d
1,700
py
Python
setup.py
accorvin/jupyterhub-singleuser-profiles
aba5250c2e7c0153e79c0019935924937d687a15
[ "MIT" ]
null
null
null
setup.py
accorvin/jupyterhub-singleuser-profiles
aba5250c2e7c0153e79c0019935924937d687a15
[ "MIT" ]
null
null
null
setup.py
accorvin/jupyterhub-singleuser-profiles
aba5250c2e7c0153e79c0019935924937d687a15
[ "MIT" ]
1
2021-03-11T10:55:41.000Z
2021-03-11T10:55:41.000Z
import os import sys from setuptools import setup from setuptools.command.test import test as TestCommand def get_install_requires(): with open('requirements.txt', 'r') as requirements_file: # TODO: respect hashes in requirements.txt file res = requirements_file.readlines() return [req.spl...
29.824561
102
0.668824
3886c66e7dd82cdf3cbebe8659f5d3b4ad38e7d3
1,069
py
Python
python/array/0220_contains_duplicate_iii.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/array/0220_contains_duplicate_iii.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/array/0220_contains_duplicate_iii.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def containsNearbyAlmostDuplicate(self, nums, k, t): """ :type nums: List[int] :type k: int :type t: int :rtype: bool """ if t < 0: return False d = {} w = t + 1 for i in range(len(nums)): ...
30.542857
77
0.491113
3886dd5fbd8517301cf7eddfe843c89d75353031
6,932
py
Python
acme/tf/utils.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
2,650
2020-06-01T16:31:25.000Z
2022-03-31T07:32:41.000Z
acme/tf/utils.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
199
2020-06-02T01:09:09.000Z
2022-03-31T17:11:20.000Z
acme/tf/utils.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
344
2020-06-01T16:45:21.000Z
2022-03-30T11:15:09.000Z
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
37.268817
80
0.739325
3886ecbafc20a2d935c2d997b9bc6e2031fabd44
2,120
py
Python
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_epiphany_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_epiphany_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_epiphany_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2016 Igalia S.L. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
50.47619
111
0.750943
38871872e732bf3580bc0c82ac917232ac842a70
1,526
py
Python
hummingbot/connector/connector_status.py
subchap/hummingbot
de1ed87977c45a72425bb9708e707230fe117b99
[ "Apache-2.0" ]
2
2021-06-17T13:09:25.000Z
2021-06-17T13:09:29.000Z
hummingbot/connector/connector_status.py
petioptrv/hummingbot
09ed7628acdb358c0bb281d7e5e8a98f7e6d0026
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/connector_status.py
petioptrv/hummingbot
09ed7628acdb358c0bb281d7e5e8a98f7e6d0026
[ "Apache-2.0" ]
1
2021-06-02T09:34:13.000Z
2021-06-02T09:34:13.000Z
#!/usr/bin/env python connector_status = { 'ascend_ex': 'green', 'balancer': 'green', 'beaxy': 'green', 'binance': 'green', 'binance_perpetual': 'yellow', 'binance_perpetual_testnet': 'yellow', 'binance_us': 'yellow', 'bitfinex': 'yellow', 'bittrex': 'yellow', 'blocktane': 'yell...
27.25
111
0.6173
3887303c4465ade1efb54b9e413fa55519eaf2d6
4,376
py
Python
.leetcode/649.dota-2-senate.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/649.dota-2-senate.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/649.dota-2-senate.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=649 lang=python3 # # [649] Dota2 Senate # # https://leetcode.com/problems/dota2-senate/description/ # # algorithms # Medium (39.73%) # Likes: 370 # Dislikes: 279 # Total Accepted: 16.9K # Total Submissions: 42.4K # Testcase Example: '"RD"' # # In the world of Dota2, there are two parties: t...
26.682927
79
0.593236
3887303fba97d9f70eb76f5540134d67cca46f1d
1,028
py
Python
setup.py
openstack/etcd3gw
ed899b34e464862525f76fff2377a2cceeb65af7
[ "Apache-2.0" ]
12
2017-03-25T20:47:01.000Z
2020-07-23T13:37:03.000Z
setup.py
openstack/etcd3gw
ed899b34e464862525f76fff2377a2cceeb65af7
[ "Apache-2.0" ]
35
2017-08-23T19:26:16.000Z
2020-08-21T07:25:23.000Z
setup.py
openstack/etcd3gw
ed899b34e464862525f76fff2377a2cceeb65af7
[ "Apache-2.0" ]
20
2017-08-27T13:32:21.000Z
2021-11-08T17:19:09.000Z
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.266667
69
0.749027
388748fc131068a42b23a168989fa3d8360a3636
7,667
py
Python
equinox/experimental/stateful.py
marcelroed/equinox
3804a8d60217bde685bee0a893a7bd55b1e63c26
[ "Apache-2.0" ]
null
null
null
equinox/experimental/stateful.py
marcelroed/equinox
3804a8d60217bde685bee0a893a7bd55b1e63c26
[ "Apache-2.0" ]
null
null
null
equinox/experimental/stateful.py
marcelroed/equinox
3804a8d60217bde685bee0a893a7bd55b1e63c26
[ "Apache-2.0" ]
null
null
null
import weakref from typing import Tuple import jax import jax.experimental.host_callback as hcb import jax.interpreters.batching as batching import jax.lax as lax from ..custom_types import Array, PyTree from ..filters import is_array from ..module import Module, static_field # So the use of a weak dictionary is a ...
34.692308
93
0.67184
38879b1d095a89b84f1c0f0b10843b1fc1213cb4
2,570
py
Python
nova/tests/unit/virt/libvirt/volume/test_hgst.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/virt/libvirt/volume/test_hgst.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/tests/unit/virt/libvirt/volume/test_hgst.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2015 HGST # 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...
40.15625
77
0.682101
3887af86d887e7d2087e2c29202a5817ae0ba321
2,846
py
Python
agent/resnet.py
jkulhanek/deep-reactive-agent-pytorch
449255e7f3351e7c7271c0f3b5a334ae6f3c12b4
[ "MIT" ]
41
2018-11-22T07:11:21.000Z
2021-06-24T09:29:33.000Z
agent/resnet.py
jkulhanek/deep-reactive-agent-pytorch
449255e7f3351e7c7271c0f3b5a334ae6f3c12b4
[ "MIT" ]
9
2020-01-05T14:21:38.000Z
2021-09-09T06:20:02.000Z
agent/resnet.py
jkulhanek/deep-reactive-agent-pytorch
449255e7f3351e7c7271c0f3b5a334ae6f3c12b4
[ "MIT" ]
18
2018-12-17T08:10:43.000Z
2021-08-20T08:13:52.000Z
''' This code was taken from torchvision https://raw.githubusercontent.com/pytorch/vision/master/torchvision/models/resnet.py ''' import torch.nn as nn from torchvision.models.resnet import model_urls, Bottleneck, BasicBlock import torch.utils.model_zoo as model_zoo class ResNet(nn.Module): def __init__(self, bl...
36.025316
87
0.606817
3887c97cd31bec43b8f4733096d28a473358e3b6
1,519
py
Python
json2ber2json/timeservermetadata.py
uptane/asn1
dd6996217a952ec4172398065f5ab085c63981df
[ "MIT" ]
2
2016-09-22T23:27:56.000Z
2018-12-21T12:08:06.000Z
json2ber2json/timeservermetadata.py
uptane/asn1
dd6996217a952ec4172398065f5ab085c63981df
[ "MIT" ]
8
2016-09-22T22:01:43.000Z
2016-12-26T21:43:49.000Z
json2ber2json/timeservermetadata.py
uptane/asn1
dd6996217a952ec4172398065f5ab085c63981df
[ "MIT" ]
1
2018-04-16T21:58:37.000Z
2018-04-16T21:58:37.000Z
#!/usr/bin/env python """ <Author> Trishank Karthik Kuppusamy """ from pyasn1.type import univ, char, namedtype, namedval, tag, constraint, useful from timeservermodule import * import metadata def get_asn_signed(json_signed): signed = TokensAndTimestamp()\ .subtype(implicitTag=tag.Tag(tag.tagClass...
28.660377
80
0.684661
3887d0f404608f91393d844009124ffdd0dcf141
2,851
py
Python
datasets/MOT/viewer/qt5_viewer.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
datasets/MOT/viewer/qt5_viewer.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
datasets/MOT/viewer/qt5_viewer.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from datasets.MOT.dataset import MultipleObjectTrackingDataset_MemoryMapped, \ MultipleObjectTrackingDatasetSequence_MemoryMapped, MultipleObjectTrackingDatasetFrame_MemoryMapped from miscellanies.viewer.qt5_viewer import Qt5Viewer from datasets.base.common.viewer.qt5_viewer import draw_object from PyQt5.QtGui impo...
36.551282
128
0.692389
3887f195b563e3c8022f97f2958a7088ebb17fae
13,344
py
Python
services/traction/acapy_client/model/route_record.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/model/route_record.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/model/route_record.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
42.227848
125
0.547887
388801655ee985c9444fa94c55ad1a49673b5263
3,858
py
Python
014 3Sum.py
qicst23/LeetCode-pythonSolu
35064d52f9344494330261cd59da2e8d33f8bfdb
[ "MIT" ]
1
2016-01-31T23:49:58.000Z
2016-01-31T23:49:58.000Z
014 3Sum.py
qicst23/LeetCode-pythonSolu
35064d52f9344494330261cd59da2e8d33f8bfdb
[ "MIT" ]
null
null
null
014 3Sum.py
qicst23/LeetCode-pythonSolu
35064d52f9344494330261cd59da2e8d33f8bfdb
[ "MIT" ]
null
null
null
""" Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a triplet (a,b,c) must be in non-descending order. (ie, a <= b <= c) The solution set must not contain duplicate triplets. For exa...
29.227273
121
0.440124
38880b62ee4a69be6d4291f1192e806fba35f0aa
1,322
py
Python
Leetcode/medium/kth-smallest-element-in-bst.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/kth-smallest-element-in-bst.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/kth-smallest-element-in-bst.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" #Kth SMALLEST ELEMENT IN BST Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Example 1: Input: root = [3,1,4,null,2], k = 1 3 - - 1 4 - 2 Output: 1 Example 2: Input: root = [5,3,6,2,4,null,null,1], k = 3 5 - - 3 6 - - 2 ...
20.984127
158
0.527231
38880f5e5b14f806f8db4af1ea073e036192976c
2,565
py
Python
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error.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...
31.666667
103
0.610526
3888368bcd76c27edc2104aa94d8c75368632f10
1,808
py
Python
tests/tests_with_server_and_cached_results/benchmark/test_query_benchmarks.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
5
2019-01-21T11:12:05.000Z
2020-03-05T20:52:14.000Z
tests/tests_with_server_and_cached_results/benchmark/test_query_benchmarks.py
aquariumbio/pydent
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
28
2020-11-18T02:07:09.000Z
2021-06-08T15:49:41.000Z
tests/tests_with_server_and_cached_results/benchmark/test_query_benchmarks.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
2
2021-02-27T19:23:45.000Z
2021-09-14T10:29:07.000Z
import pytest # skip tests pytestmark = pytest.mark.skip( "These tests utilize a live session with alot of requests." "In the future, we may want to utilize something like pyvrc to avoid" "sending live requests to Aquarium." ) @pytest.mark.benchmark class TestBenchmarkQuery: def method1_single_query(...
29.639344
80
0.579093
388836f38982462e5790e17a4d2d0b2d25dca0ae
1,524
py
Python
linux/rest/usefules/purge.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
linux/rest/usefules/purge.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
linux/rest/usefules/purge.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import urllib.request, urllib.parse import pprint import json import sys import time from pathlib import Path #for ignoring invalid certs #https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error import ssl gcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1) # Only for ...
24.580645
92
0.704724
388855287dcf451cf8620d864dcbcfb05ed4f736
18,452
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
47.191816
234
0.687405
388865d1ca103283b10352948f721ae1bc77913d
1,981
py
Python
src/python/pants/backend/codegen/thrift/apache/python/subsystem.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/thrift/apache/python/subsystem.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
6
2022-01-25T15:49:26.000Z
2022-02-09T11:21:13.000Z
src/python/pants/backend/codegen/thrift/apache/python/subsystem.py
thejcannon/pants
7c24f42cb78cc462b63698cef736eda7a85c40e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from typing import cast from pants.engine.addresses import UnparsedAddressInputs from pants.engine.rules import collect_rules from pants.option.custom_t...
36.018182
95
0.64109
388877c1ef74b46e35cf4a03816d15222ebd9c65
978
py
Python
plugins/houdini/publish/validate_cache_root.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/houdini/publish/validate_cache_root.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/houdini/publish/validate_cache_root.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import os import pyblish.api class ValidateCacheRoot(pyblish.api.InstancePlugin): """Ensure cache storage root path collected """ order = pyblish.api.ValidatorOrder - 0.1 label = "Validate Cache Root" hosts = ["houdini"] families = [ "reveries.vdbcache", "reveries.pointcache",...
27.942857
70
0.572597
3888ab9fe6f0c46e9b6e2c60738a70484c1e9cb9
5,309
py
Python
alipay/aop/api/domain/ZhimaMerchantContractPageQueryModel.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/ZhimaMerchantContractPageQueryModel.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/ZhimaMerchantContractPageQueryModel.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 ZhimaMerchantContractPageQueryModel(object): def __init__(self): self._begin_time = None self._contract_status_list = None self._current_page = None self._end_time...
32.975155
91
0.618384
3888b351653fab572a0f459e537a5bf379e0afc8
348
py
Python
terrascript/data/avi.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/avi.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/avi.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/avi.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:12:08 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.data.avi # # instead of # # >>> import terrascript.data.vmware.avi # # This is only available for 'official' and 'partner' providers. from terrascri...
23.2
73
0.721264
3888b6b2f046a87e8af5ff33f2bda5d76024cbb2
9,056
py
Python
networks/projected/layers.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
networks/projected/layers.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
networks/projected/layers.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
import functools import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils import spectral_norm ### single layers def conv2d(*args, **kwargs): return spectral_norm(nn.Conv2d(*args, **kwargs)) def convTranspose2d(*args, **kwargs): return spectral_norm(nn.ConvTranspose2d(*args, ...
27.779141
117
0.594081
3888fe2d4ca63f1db0f311bf6bdb97cd320605f9
8,810
py
Python
asposeimagingcloud/models/requests/create_modified_wmf_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
1
2022-01-14T10:06:26.000Z
2022-01-14T10:06:26.000Z
asposeimagingcloud/models/requests/create_modified_wmf_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
3
2019-07-17T15:01:31.000Z
2020-12-29T09:16:10.000Z
asposeimagingcloud/models/requests/create_modified_wmf_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="create_modified_wmf_request.py"> # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any ...
54.382716
252
0.671283
388925a909db7a0ea46d1cb3ea38c6719ab4d76d
11,456
py
Python
simplipy/websocket.py
FindingJohnny/simplisafe-python
e660938c8280dd47d5a90c49a39f77bba27e8a30
[ "MIT" ]
null
null
null
simplipy/websocket.py
FindingJohnny/simplisafe-python
e660938c8280dd47d5a90c49a39f77bba27e8a30
[ "MIT" ]
null
null
null
simplipy/websocket.py
FindingJohnny/simplisafe-python
e660938c8280dd47d5a90c49a39f77bba27e8a30
[ "MIT" ]
null
null
null
"""Define a connection to the SimpliSafe websocket.""" import asyncio from dataclasses import InitVar, dataclass, field from datetime import datetime from typing import Awaitable, Callable, Optional from urllib.parse import urlencode from socketio import AsyncClient from socketio.exceptions import ConnectionError as C...
34.610272
88
0.670216
3889367b0b9b9bdc1dfc7d7cc9056c028642a079
4,739
py
Python
instances/medium/inst_m.py
raffaelfoidl/yw-prototypes
cf49c298d633946a3defd1b3f3b9b76a7ff2d34c
[ "Apache-2.0" ]
null
null
null
instances/medium/inst_m.py
raffaelfoidl/yw-prototypes
cf49c298d633946a3defd1b3f3b9b76a7ff2d34c
[ "Apache-2.0" ]
null
null
null
instances/medium/inst_m.py
raffaelfoidl/yw-prototypes
cf49c298d633946a3defd1b3f3b9b76a7ff2d34c
[ "Apache-2.0" ]
null
null
null
import os import numpy import matplotlib.pyplot import scipy.ndimage import argparse root, filename = os.path.split(__file__) in_path = os.path.join(root, "in.jpg") def parse_args(): parser = argparse.ArgumentParser(description="Reads an image and applies an Gaussian blur filter to it. Afterwards," ...
29.993671
120
0.63621
388939e4efade68e9b20eea8b8cab0b2f54aca7f
529
py
Python
sdk/resourceconnector/azure-mgmt-resourceconnector/azure/mgmt/resourceconnector/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/resourceconnector/azure-mgmt-resourceconnector/azure/mgmt/resourceconnector/aio/__init__.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/resourceconnector/azure-mgmt-resourceconnector/azure/mgmt/resourceconnector/aio/__init__.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
48.090909
94
0.555766
388949b17d763f6cbe895b964ef855fbca3334f3
39,939
py
Python
mGui/core/controls.py
theodox/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
105
2015-01-13T10:52:55.000Z
2022-03-23T12:49:01.000Z
mGui/core/controls.py
techartorg/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
84
2015-01-15T14:56:08.000Z
2019-04-15T17:03:51.000Z
mGui/core/controls.py
techartorg/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
22
2015-01-11T11:25:37.000Z
2021-12-24T06:34:46.000Z
""" mGui wrapper classes Originally auto generated using helpers.tools """ import maya.cmds as cmds from mGui.events import Event from mGui.core import Control, MAYA_VERSION import weakref class Labeled(Control): """ This is an abstract class which is inherited by all XXXGrp controls to allow easier sty...
46.494761
126
0.659831
3889743549de8ee168f58d38f0c1aa1c02b39ea3
3,961
py
Python
alipay/aop/api/request/AlipayFundTransEntrustCloseRequest.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/request/AlipayFundTransEntrustCloseRequest.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/request/AlipayFundTransEntrustCloseRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayFundTransEntrustCloseModel import AlipayFundTransEntrustCloseModel class AlipayFundTransEntrustCloseRequest(object): def ...
27.317241
148
0.643777
38898d5aacd99354a933f9b34bf3cbb23c194a72
35
py
Python
boxbox/run.py
Visgean/boxbox
1c022dd76638f963ce044c5ee46896decfa5dfb9
[ "Apache-2.0" ]
null
null
null
boxbox/run.py
Visgean/boxbox
1c022dd76638f963ce044c5ee46896decfa5dfb9
[ "Apache-2.0" ]
null
null
null
boxbox/run.py
Visgean/boxbox
1c022dd76638f963ce044c5ee46896decfa5dfb9
[ "Apache-2.0" ]
1
2019-08-24T02:09:43.000Z
2019-08-24T02:09:43.000Z
from debates import app app.run()
8.75
23
0.742857
3889d021f67040e74864895983ae869678448a79
13,594
py
Python
superset/tasks/schedules.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
11
2018-01-16T16:52:12.000Z
2020-06-12T12:17:03.000Z
superset/tasks/schedules.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
67
2017-11-06T21:31:14.000Z
2020-11-19T03:52:18.000Z
superset/tasks/schedules.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
4
2018-01-31T00:11:50.000Z
2019-12-26T04:11:52.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...
31.322581
87
0.67596
3889d63f737e5a9641f2a191ff30f8b6d1bfa0fd
1,541
py
Python
master/tutorials/linkedin-placements/linkedin-practice-graph-theory-bfs/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
master/tutorials/linkedin-placements/linkedin-practice-graph-theory-bfs/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
master/tutorials/linkedin-placements/linkedin-practice-graph-theory-bfs/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
infinity = 1000000 weight = 6 class Node(object): __slots__= ('number','dist','nodes','visited','queued') def __init__(self, number): self.number = number self.dist = infinity self.nodes = [] self.visited = False self.queued = False def connect(self, n...
29.075472
66
0.550292
3889e310cf66cec3a3f41547d71947b8b563aa32
1,456
py
Python
experiments/breakout.py
Hwhitetooth/jax_muzero
b8ab36251d22e0246d61514841ba17a22f4b2a36
[ "MIT" ]
17
2022-02-27T13:40:25.000Z
2022-03-24T21:06:02.000Z
experiments/breakout.py
Hwhitetooth/jax_muzero
b8ab36251d22e0246d61514841ba17a22f4b2a36
[ "MIT" ]
1
2022-03-08T19:47:52.000Z
2022-03-24T21:05:30.000Z
experiments/breakout.py
Hwhitetooth/jax_muzero
b8ab36251d22e0246d61514841ba17a22f4b2a36
[ "MIT" ]
1
2022-03-08T14:58:12.000Z
2022-03-08T14:58:12.000Z
import os from ray import tune from algorithms.muzero import Experiment if __name__ == '__main__': config = { 'env_id': 'Breakout', 'env_kwargs': {}, 'seed': 42, 'num_envs': 1, 'unroll_steps': 5, 'td_steps': 5, 'max_search_depth': None, 'num_bin...
23.111111
59
0.524725
3889eac247d523d7f1db1a07302cfb3e257b0d4e
130
py
Python
terrascript/data/Trois_Six/sendgrid.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/Trois_Six/sendgrid.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/Trois_Six/sendgrid.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/Trois-Six/sendgrid.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:26:45 UTC) __all__ = []
21.666667
73
0.746154
388a866e21420daa0ec3af354f2af812fd9fd2a2
3,933
py
Python
tests/common/schemas/test_cclib.py
jmmshn/atomate2
b4ccbb17996c81109f93f48e1668a59bf870fe08
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/common/schemas/test_cclib.py
jmmshn/atomate2
b4ccbb17996c81109f93f48e1668a59bf870fe08
[ "BSD-3-Clause-LBNL" ]
1
2022-01-28T23:04:24.000Z
2022-01-28T23:04:24.000Z
tests/common/schemas/test_cclib.py
jmmshn/atomate2
b4ccbb17996c81109f93f48e1668a59bf870fe08
[ "BSD-3-Clause-LBNL" ]
1
2022-01-28T22:54:00.000Z
2022-01-28T22:54:00.000Z
import gzip import os import shutil import pytest try: import cclib except ImportError: cclib = None @pytest.mark.skipif(cclib is None, reason="requires cclib to be installed") def test_cclib_taskdoc(test_dir): from monty.json import MontyDecoder, jsanitize from atomate2.common.schemas.cclib import...
39.33
88
0.664378
388ab1b443e49e6582cd64bb3ac92695a0654a9d
16,980
py
Python
data_steward/cdr_cleaner/cleaning_rules/domain_alignment.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/domain_alignment.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/domain_alignment.py
amcgrenera-vumc/curation
f30aa8cb3b8de4e5dfdc3c95a0d98ca21de7df08
[ "MIT" ]
null
null
null
""" EHR_RDR_SNAPSHOT should be set to create a new snapshot dataset while running this cleaning rule. """ import logging import bq_utils import constants.bq_utils as bq_consts import constants.cdr_cleaner.clean_cdr as cdr_consts import domain_mapping import field_mapping import resources from domain_mapping import EMP...
42.663317
116
0.626737
388abb90cb70d47accd580fc81811aac63e864ff
981
py
Python
wizard_builder/migrations/0038_checkbox_radiobutton.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
16
2016-06-21T04:05:24.000Z
2017-09-26T15:40:24.000Z
wizard_builder/migrations/0038_checkbox_radiobutton.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
141
2016-06-21T20:46:46.000Z
2017-09-28T00:20:49.000Z
wizard_builder/migrations/0038_checkbox_radiobutton.py
project-callisto/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
7
2017-10-04T22:52:18.000Z
2018-05-31T17:14:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-28 06:08 from __future__ import unicode_literals import wizard_builder.model_helpers from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wizard_builder', '0037_auto_20171028_0142'), ] operati...
24.525
59
0.512742
388abf9fe8cf539850ea58fdbf6996e5f8932503
3,674
py
Python
mitmproxy/proxy/commands.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/proxy/commands.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/proxy/commands.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
""" Commands make it possible for layers to communicate with the "outer world", e.g. to perform IO or to ask the master. A command is issued by a proxy layer and is then passed upwards to the proxy server, and from there possibly to the master and addons. The counterpart to commands are events. """ from typing import ...
25.337931
110
0.659227
388ae37eac557ed55e8fd46d0e29e512782fd0ce
3,910
py
Python
tests/algorithms/test_ocr_numbers.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/algorithms/test_ocr_numbers.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/algorithms/test_ocr_numbers.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
"""Tests for the ocr-numbers exercise Implementation note: Both ocr.grid and ocr.number should validate their input and raise ValueErrors with meaningful error messages if necessary. """ import unittest from algorithms.ocr_numbers import grid, number class OcrTest(unittest.TestCase): def test_0(self): ...
36.203704
76
0.28133
388ae58321a97529714564499535eefb431644e5
39,715
py
Python
python/sbp/linux.py
zk20/libsbp
041c5055f5db422258ebb3ce3f8e9f6e5d3e5fa9
[ "MIT" ]
null
null
null
python/sbp/linux.py
zk20/libsbp
041c5055f5db422258ebb3ce3f8e9f6e5d3e5fa9
[ "MIT" ]
null
null
null
python/sbp/linux.py
zk20/libsbp
041c5055f5db422258ebb3ce3f8e9f6e5d3e5fa9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2015-2018 Swift Navigation Inc. # Contact: https://support.swiftnav.com # # This source is subject to the license found in the file 'LICENSE' which must # be be distributed together with this source. All other rights reserved. # # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHO...
30.620663
83
0.653229
388ae8cd049f71fa0c521670e2a734ed45a6f707
1,654
py
Python
iced/models.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
1
2020-01-13T13:49:53.000Z
2020-01-13T13:49:53.000Z
iced/models.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
8
2020-06-05T21:53:54.000Z
2022-03-11T23:53:42.000Z
iced/models.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
1
2022-03-13T18:08:48.000Z
2022-03-13T18:08:48.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from tinymce.models import HTMLField from django.core.validators import MaxValueValidator from django.db import models # Create your models here. class Profile(models.Model): p...
31.207547
87
0.704958
388af9ac453092e3aa18d2b6dca464cc32f69589
92,917
py
Python
homeassistant/components/ais_cloud/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/ais_cloud/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/ais_cloud/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
"""Component to manage the AIS Cloud.""" import json import logging import os import async_timeout import requests import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.components.ais_dom import ais_global from homeassistant.components.http.view import HomeAssistantView from h...
38.268946
120
0.527761
388b382cc686f22ab4849398aebb197a4ae345ce
6,461
py
Python
nova/tests/unit/virt/hyperv/test_livemigrationops.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/hyperv/test_livemigrationops.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/hyperv/test_livemigrationops.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2014 Cloudbase Solutions Srl # 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 r...
47.507353
78
0.661508
388b7a3381fbf4c7f2b25990cf58a36d612c004b
9,609
py
Python
bot/cogs/verification.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
1
2020-05-12T08:26:06.000Z
2020-05-12T08:26:06.000Z
bot/cogs/verification.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
null
null
null
bot/cogs/verification.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
null
null
null
import logging from contextlib import suppress from datetime import datetime from discord import Colour, Forbidden, Message, NotFound, Object from discord.ext import tasks from discord.ext.commands import Cog, Context, command from bot import constants from bot.bot import Bot from bot.cogs.moderation import ModLog fr...
41.064103
118
0.648871
388b89a00b8f352e4940b4b9426fa4a9dd746e97
1,238
py
Python
music/urls.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
music/urls.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
music/urls.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from . import views from . import api urlpatterns = patterns('music.views', url(r'^$', views.TrackListView.as_view(), name='index'), url(r'^play/(?P<pk>\d+)/$', views.PlayView.as_view(), name='play'), url(r'^upload/$', views.UploadView.as_view(), name='u...
42.689655
97
0.634087
388b9e3ea4fc82662636ff9c86f6027848e7fdc0
5,181
py
Python
python_version/tutor.py
bojanbg/orbital-academy
e9c262dfb1681cd877855723a94dae58a57e34c5
[ "MIT" ]
1
2019-09-14T13:29:54.000Z
2019-09-14T13:29:54.000Z
python_version/tutor.py
bojanbg/orbital-academy
e9c262dfb1681cd877855723a94dae58a57e34c5
[ "MIT" ]
null
null
null
python_version/tutor.py
bojanbg/orbital-academy
e9c262dfb1681cd877855723a94dae58a57e34c5
[ "MIT" ]
null
null
null
import wx import wx.html import lessons class TutorHTMLWindow(wx.html.HtmlWindow): # We need to subclass to be able to intercept OnLinkClicked event def __init__(self, parent): wx.html.HtmlWindow.__init__(self, parent) self.parent = parent if "gtk2" in wx.PlatformInfo: self...
34.771812
118
0.620537
388ba4f862e29453e83b3e0ef20bbf7888f309d2
779
py
Python
examples/functional/asynchronous_udp_client.py
swamper123/pymodbus
7dfac6f19c60d3aa50a168ff82db88204dfb3a30
[ "BSD-3-Clause" ]
null
null
null
examples/functional/asynchronous_udp_client.py
swamper123/pymodbus
7dfac6f19c60d3aa50a168ff82db88204dfb3a30
[ "BSD-3-Clause" ]
1
2020-10-29T12:01:38.000Z
2022-03-21T02:39:59.000Z
examples/functional/asynchronous_udp_client.py
swamper123/pymodbus
7dfac6f19c60d3aa50a168ff82db88204dfb3a30
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import unittest from pymodbus.client.sync import ModbusUdpClient as ModbusClient from base_runner import Runner class AsynchronousUdpClient(Runner, unittest.TestCase): """ These are the integration tests for the asynchronous udp client. """ def setUp(self): """ Initi...
28.851852
79
0.528883
388bfef64f1e5c4743c81543cfb5184421d6c14f
20,063
py
Python
appengine/monorail/api/test/monorail_servicer_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/api/test/monorail_servicer_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/api/test/monorail_servicer_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 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 """Tests for MonorailServicer.""" from __future__ import print_function from __future__ import ...
41.797917
79
0.746548
388bff8ef5ee646485b3e155b6c5be3e9a9911cc
7,701
py
Python
unit/ons/conceptual/client/test_conceptual_search_engine.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
3
2018-05-10T16:49:27.000Z
2022-03-29T15:23:04.000Z
unit/ons/conceptual/client/test_conceptual_search_engine.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
2
2018-09-20T06:37:27.000Z
2018-11-12T12:05:08.000Z
unit/ons/conceptual/client/test_conceptual_search_engine.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
3
2018-06-25T10:48:43.000Z
2021-04-11T08:01:27.000Z
""" Tests the ONS conceptual search engine functionality """ from typing import List from numpy.random import rand from unittest import TestCase from unit.utils.async_test import AsyncTestCase from unit.elasticsearch.elasticsearch_test_utils import mock_search_client from dp_conceptual_search.search.search_type impo...
34.533632
119
0.593429
388c000f1a09e46f42655a7e657178d2070274b7
8,298
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_ceph_fs_volume_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_ceph_fs_volume_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_ceph_fs_volume_source.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 V1Cep...
32.669291
214
0.614244
388c0950b43e1bb86ab812801c72f5ca7f4b692f
191
py
Python
src/data_source/prefect/tasks.py
ravwojdyla/public-data-source
54a693e18419b57cb50c3c3e8a78930ac472ac47
[ "Apache-2.0" ]
null
null
null
src/data_source/prefect/tasks.py
ravwojdyla/public-data-source
54a693e18419b57cb50c3c3e8a78930ac472ac47
[ "Apache-2.0" ]
null
null
null
src/data_source/prefect/tasks.py
ravwojdyla/public-data-source
54a693e18419b57cb50c3c3e8a78930ac472ac47
[ "Apache-2.0" ]
null
null
null
from prefect import task @task def identity(x): return x def constant(x, name="value", value=True): name = f"{name}={x}" if value else name return identity.copy(name=name)(x)
15.916667
43
0.659686
388c14ffb23028856b25b34b2dc68f92dc63b26f
10,325
py
Python
deepMOT/utils/loss.py
xieyujia/RWOC
ad1085b212aac85298317b681379997c14e340b3
[ "MIT" ]
1
2021-09-13T15:32:19.000Z
2021-09-13T15:32:19.000Z
deepMOT/utils/loss.py
xieyujia/RWOC
ad1085b212aac85298317b681379997c14e340b3
[ "MIT" ]
1
2021-06-30T13:11:12.000Z
2021-07-06T01:33:19.000Z
deepMOT/utils/loss.py
xieyujia/RWOC
ad1085b212aac85298317b681379997c14e340b3
[ "MIT" ]
null
null
null
# ========================================================================== # # This file is a part of implementation for paper: # DeepMOT: A Differentiable Framework for Training Multiple Object Trackers. # This contribution is headed by Perception research team, INRIA. # # Contributor(s) : Yihong Xu # INRIA contact ...
37.545455
115
0.617337
388c375cc597bc86332b64043dc4543e74494abf
4,582
py
Python
senteval/tools/relatedness.py
zashuna/SentEval
ae6864fe6000ec7666a066d61ada7bbebd1f7c4b
[ "BSD-3-Clause" ]
null
null
null
senteval/tools/relatedness.py
zashuna/SentEval
ae6864fe6000ec7666a066d61ada7bbebd1f7c4b
[ "BSD-3-Clause" ]
null
null
null
senteval/tools/relatedness.py
zashuna/SentEval
ae6864fe6000ec7666a066d61ada7bbebd1f7c4b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # """ Semantic Relatedness (supervised) with Pytorch """ from __future__ import absolute_import, division, unicode_literals impo...
33.691176
88
0.566347
388c3ef1beb5f87178b577ab33d7d2c93051f39d
2,163
py
Python
tools/debugging/plot/line.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
1
2020-10-19T15:00:42.000Z
2020-10-19T15:00:42.000Z
tools/debugging/plot/line.py
gmarko/raiden
5d181843b44b7766904120e19077cc6949f17e0c
[ "MIT" ]
null
null
null
tools/debugging/plot/line.py
gmarko/raiden
5d181843b44b7766904120e19077cc6949f17e0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import csv import datetime import sys from matplotlib import dates, pyplot parser = argparse.ArgumentParser() parser.add_argument("--width", default=1000, help="Configures width of the output in pixels.") parser.add_argument("--height", default=800, help="Configures height of the...
28.090909
96
0.711974
388c45ad538c7e5e7f290c5644b546edd49c241e
4,272
py
Python
runTHORWorker.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
null
null
null
runTHORWorker.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
null
null
null
runTHORWorker.py
KatKiker/thor
ffc8ab3fbaa8af046f531e8111907a891998d14b
[ "BSD-3-Clause" ]
null
null
null
import argparse import os import pika from google.cloud.storage.client import Client as GCSClient from google.cloud.pubsub_v1 import PublisherClient as PubsubClient from google.cloud.secretmanager_v1 import SecretManagerServiceClient def parse_args(): parser = argparse.ArgumentParser( description="Worker...
33.904762
89
0.678137
388c4ef07b04a8907de70abf99c0e94639ca1663
9,616
py
Python
sparse/utils.py
nils-werner/sparse
bc81375eb36e845b33b2d1b5cfd6252a1805c75d
[ "BSD-3-Clause" ]
1
2022-01-07T15:56:29.000Z
2022-01-07T15:56:29.000Z
sparse/utils.py
nils-werner/sparse
bc81375eb36e845b33b2d1b5cfd6252a1805c75d
[ "BSD-3-Clause" ]
null
null
null
sparse/utils.py
nils-werner/sparse
bc81375eb36e845b33b2d1b5cfd6252a1805c75d
[ "BSD-3-Clause" ]
8
2018-03-07T03:28:03.000Z
2021-09-07T15:22:26.000Z
import functools from collections import Iterable from numbers import Integral import numpy as np def assert_eq(x, y, check_nnz=True, compare_dtype=True, **kwargs): from .coo import COO assert x.shape == y.shape if compare_dtype: assert x.dtype == y.dtype check_equal = np.array_equal \ ...
28.534125
110
0.602953
388c5ced41fdf225ed30c0e5035764c8f7a3052a
18,165
py
Python
AFLW/predict_final.py
kli-nlpr/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
159
2016-08-23T22:13:26.000Z
2021-10-24T01:31:35.000Z
AFLW/predict_final.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
10
2016-08-23T05:59:07.000Z
2018-05-24T02:31:41.000Z
AFLW/predict_final.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
import numpy as np from PIL import Image import cv2 import mxnet as mx import fddb_symbol_vgg16 import fddb_symbol_gen import fddb_symbol_finetune from fddb_init_vgg16 import init_from_vgg16 import logging from PIL import Image import numpy as np # 0 LeftEyeLeftCorner # 1 RightEyeRightCorner # 2 LeftEar # 3 NoseLeft ...
38.648936
117
0.591247
388c66b7bd202e614b243785192d337e4f71bf9d
99
py
Python
master/teachkids-master/teachkids-master/ch04/Rosette6.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/teachkids-master/teachkids-master/ch04/Rosette6.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/teachkids-master/teachkids-master/ch04/Rosette6.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# Rosette6.py import turtle t = turtle.Pen() for x in range(6): t.circle(100) t.left(60)
11
18
0.616162
388c83715342df738c9440277e51dd9bd5252e5a
418
py
Python
carrot/migrations/0004_set_unique_task_name.py
martinell/django-carrot
11c8790d8e68ccd7757cc9187d852acb2f528a8d
[ "Apache-2.0" ]
63
2017-10-12T19:38:17.000Z
2022-02-21T15:56:17.000Z
carrot/migrations/0004_set_unique_task_name.py
martinell/django-carrot
11c8790d8e68ccd7757cc9187d852acb2f528a8d
[ "Apache-2.0" ]
93
2017-10-13T06:17:14.000Z
2022-03-02T14:25:40.000Z
carrot/migrations/0004_set_unique_task_name.py
martinell/django-carrot
11c8790d8e68ccd7757cc9187d852acb2f528a8d
[ "Apache-2.0" ]
19
2018-03-26T08:33:13.000Z
2022-03-17T04:33:49.000Z
# Generated by Django 2.0.4 on 2018-05-30 12:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('carrot', '0003_populate_task_name'), ] operations = [ migrations.AlterField( model_name='scheduledtask', name='task_...
23.222222
74
0.617225
388cbe6a3b9862a0d3db5e8a779cf34fb3588dce
1,640
py
Python
pines/gpr/scalers.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
2
2017-08-09T02:42:37.000Z
2020-06-16T14:14:16.000Z
pines/gpr/scalers.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
null
null
null
pines/gpr/scalers.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
null
null
null
import numpy, pandas from sklearn.preprocessing import StandardScaler class StandardDataFrameScaler(StandardScaler): def __init__(self, copy=True, with_mean=True, with_std=True): super().__init__(copy=copy, with_mean=with_mean, with_std=with_std) def fit(self, X, y=None): return super().fit(numpy.log1p(X), ...
25.625
69
0.695732
388cfc3dce30e67b34653e1f1583b8271fc0cb50
4,405
py
Python
resources/lib/Constants.py
Maven85/plugin.video.magenta-sport
e05eeea629295d79de7467d495eb0c20b3adb60b
[ "MIT" ]
null
null
null
resources/lib/Constants.py
Maven85/plugin.video.magenta-sport
e05eeea629295d79de7467d495eb0c20b3adb60b
[ "MIT" ]
null
null
null
resources/lib/Constants.py
Maven85/plugin.video.magenta-sport
e05eeea629295d79de7467d495eb0c20b3adb60b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Module: Constants # Author: asciidisco # Created on: 24.07.2017 # License: MIT https://goo.gl/WA1kby """Static links & list of sports""" from __future__ import unicode_literals # KODI addon id ADDON_ID = 'plugin.video.magenta-sport' # urls for login & data retrival PRL = 'https://' BASE_UR...
21.806931
93
0.555959
388d119a7790f3c72515faaafd8c5714bb17c20a
7,452
py
Python
indico/cli/i18n.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/cli/i18n.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/cli/i18n.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import json import os import re import subprocess import sys from distutils.dist import Distribution from ...
33.41704
119
0.626812