hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79421679e34c0f5d9eabc56c13f5e8ab8d890d33
2,869
py
Python
rdr_service/lib_fhir/fhirclient_1_0_6/models/flag_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/lib_fhir/fhirclient_1_0_6/models/flag_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/lib_fhir/fhirclient_1_0_6/models/flag_tests.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 on 2016-06-23. # 2016, SMART Health IT. import io import json import os import unittest from . import flag class FlagTests(unittest.TestCase): def instantiate_from(self, filename): datadir = os.environ.get('FHIR_UNITTEST...
40.985714
151
0.663646
7942168d8c00580f4079567f14d161150bad5402
3,542
py
Python
voipms/api/__init__.py
dtesfai/voipms-python
1369e0b88569c7009551798d79d16767b46107e0
[ "MIT" ]
12
2019-09-08T18:03:52.000Z
2021-01-30T09:52:41.000Z
voipms/api/__init__.py
dtesfai/voipms-python
1369e0b88569c7009551798d79d16767b46107e0
[ "MIT" ]
null
null
null
voipms/api/__init__.py
dtesfai/voipms-python
1369e0b88569c7009551798d79d16767b46107e0
[ "MIT" ]
1
2021-05-09T15:49:02.000Z
2021-05-09T15:49:02.000Z
import os import json import requests from voipms.base.exceptions import VoipException class Client(object): def __init__(self, username=None, password=None): self.username = username or os.environ.get('VOIPMS_ACCOUNT_USER') self.password = password or os.environ.get('VOIPMS_API_TOKEN')...
26.833333
79
0.616601
794216ee6bb51f9ed78b3a4f3a3c931cc797c9e2
1,169
py
Python
paco/defer.py
lmicra/paco
1e5ef4df317e7cbbcefdf67d8dee28ce90538f3d
[ "MIT" ]
208
2016-10-24T13:17:08.000Z
2022-03-12T05:39:21.000Z
paco/defer.py
lmicra/paco
1e5ef4df317e7cbbcefdf67d8dee28ce90538f3d
[ "MIT" ]
39
2016-10-24T10:40:21.000Z
2020-04-22T16:17:51.000Z
paco/defer.py
lmicra/paco
1e5ef4df317e7cbbcefdf67d8dee28ce90538f3d
[ "MIT" ]
14
2016-11-29T11:37:34.000Z
2021-09-30T12:27:00.000Z
# -*- coding: utf-8 -*- import asyncio from .decorator import decorate from .assertions import assert_corofunction @decorate def defer(coro, delay=1): """ Returns a coroutine function wrapper that will defer the given coroutine execution for a certain amount of seconds in a non-blocking way. This fun...
23.857143
76
0.634731
79421838f7eb44fb98b926210c175b7ecbd9564a
261
py
Python
pynames/orc/__init__.py
imposeren/pynames
6928af52d77ed51b57386fea2a6f9ec3e1a3ce80
[ "BSD-2-Clause-FreeBSD" ]
19
2015-03-28T08:57:04.000Z
2016-06-18T07:09:04.000Z
pynames/orc/__init__.py
imposeren/pynames
6928af52d77ed51b57386fea2a6f9ec3e1a3ce80
[ "BSD-2-Clause-FreeBSD" ]
10
2015-02-10T15:38:16.000Z
2016-06-28T04:55:20.000Z
pynames/orc/__init__.py
imposeren/pynames
6928af52d77ed51b57386fea2a6f9ec3e1a3ce80
[ "BSD-2-Clause-FreeBSD" ]
6
2015-02-09T17:41:40.000Z
2016-06-17T07:19:17.000Z
# coding: utf-8 import os from pynames.from_list_generator import FromListGenerator FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'fixtures') class OrcNamesGenerator(FromListGenerator): SOURCE = os.path.join(FIXTURES_DIR, 'orc_names_list.json')
26.1
66
0.793103
7942188b04bdee3b20e42931d4671d600c5f6ae6
2,383
py
Python
uaa_client/authentication.py
18F/acquisitions.18f.gov
7ef7091fd65b4b6797ddeb1c1f56def29522c43b
[ "CC0-1.0" ]
3
2016-11-27T05:02:52.000Z
2017-01-31T17:36:36.000Z
uaa_client/authentication.py
18F/acquisitions.18f.gov
7ef7091fd65b4b6797ddeb1c1f56def29522c43b
[ "CC0-1.0" ]
61
2016-11-05T00:27:34.000Z
2017-09-15T23:37:58.000Z
uaa_client/authentication.py
18F/acquisitions.18f.gov
7ef7091fd65b4b6797ddeb1c1f56def29522c43b
[ "CC0-1.0" ]
2
2017-07-14T06:21:26.000Z
2021-02-14T11:53:05.000Z
import logging import requests import jwt from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.contrib.auth.backends import ModelBackend from django.conf import settings logger = logging.getLogger('uaa_client') def get_auth_url(request): if settings.DEBUG and setti...
30.164557
79
0.678137
794218faef24a145c9ca7d0bddbe722e8a391a90
2,279
py
Python
runtests.py
maccesch/django-moderation
7b2e5675ce9b308904aa58198e2c5d25097b0317
[ "BSD-3-Clause" ]
null
null
null
runtests.py
maccesch/django-moderation
7b2e5675ce9b308904aa58198e2c5d25097b0317
[ "BSD-3-Clause" ]
null
null
null
runtests.py
maccesch/django-moderation
7b2e5675ce9b308904aa58198e2c5d25097b0317
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys import os from os.path import dirname, abspath from optparse import OptionParser from django.conf import settings, global_settings import django # For convenience configure settings if they are not pre-configured or if we # haven't been provided settings to use by environment variable...
31.219178
111
0.638438
79421c2822542da24a924913f86e3ebee7b9547b
39,957
py
Python
fmriprep/workflows/bold/base.py
pcamach2/fmriprep
c2c5d44498cfae0c2cebe223b00b5a9c95e3121e
[ "BSD-3-Clause" ]
null
null
null
fmriprep/workflows/bold/base.py
pcamach2/fmriprep
c2c5d44498cfae0c2cebe223b00b5a9c95e3121e
[ "BSD-3-Clause" ]
null
null
null
fmriprep/workflows/bold/base.py
pcamach2/fmriprep
c2c5d44498cfae0c2cebe223b00b5a9c95e3121e
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Orchestrating the BOLD-preprocessing workflow ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. autofunction:: init_func_preproc_wf .. autofunction:: init_func_derivatives_wf """ import os import nib...
44.545151
99
0.6043
79421c7f6340dc1804ea3ea76d91db2b2eb8c3e8
4,466
py
Python
lib/googlecloudsdk/command_lib/dataproc/batches/batch_message_factory.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/command_lib/dataproc/batches/batch_message_factory.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/dataproc/batches/batch_message_factory.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 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 requir...
32.59854
76
0.745858
79421e18fd3cf6ba18f27d26d86dd495776f7e86
318
py
Python
ExerciciosPYTHON/PythonCeV/018.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
ExerciciosPYTHON/PythonCeV/018.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
2
2022-03-18T16:06:07.000Z
2022-03-18T16:55:29.000Z
ExerciciosPYTHON/PythonCeV/018.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
print('='*8,'Seno, Cosseno e Tangente','='*8) a = float(input('Digite o seu angulo:')) from math import radians, sin, cos, tan s = sin(radians(a)) c = cos(radians(a)) t = tan(radians(a)) print('''Para o angulo analisado {}, temos: Seno igual a {:.2f} Cosseno igual a {:.2f} Tangente igual a {:.2f}'''.format(a,s,c,t))
28.909091
45
0.638365
79421e4821f94d9248c3bb25179f3b423535b8fd
739
py
Python
conversor_moeda.py
eduardobaltazarmarfim/PythonC
8e44b4f191582c73cca6df98120ab142145c4ba1
[ "MIT" ]
null
null
null
conversor_moeda.py
eduardobaltazarmarfim/PythonC
8e44b4f191582c73cca6df98120ab142145c4ba1
[ "MIT" ]
null
null
null
conversor_moeda.py
eduardobaltazarmarfim/PythonC
8e44b4f191582c73cca6df98120ab142145c4ba1
[ "MIT" ]
null
null
null
def retorno(): res=input('Deseja executar o programa novamente?[s/n] ') if(res=='s' or res=='S'): verificar() else: print('Processo finalizado!') pass def cabecalho(texto): print('-'*30) print(' '*10+texto+' '*15) print('-'*30) pass def ver...
14.490196
79
0.507442
79421e9b1649e5c4727926e8fbef214b530c5ecb
452
py
Python
bblfsh_sonar_checks/checks/java/RSPEC-2235.py
juanjux/sonar-checks
65e45ca93bcc59bd20a28f169b00ac4de9b7e98f
[ "Apache-2.0" ]
3
2018-10-02T12:02:37.000Z
2019-04-04T09:18:37.000Z
bblfsh_sonar_checks/checks/java/RSPEC-2235.py
juanjux/sonar-checks
65e45ca93bcc59bd20a28f169b00ac4de9b7e98f
[ "Apache-2.0" ]
6
2018-08-17T14:43:57.000Z
2019-01-08T12:20:03.000Z
bblfsh_sonar_checks/checks/java/RSPEC-2235.py
juanjux/sonar-checks
65e45ca93bcc59bd20a28f169b00ac4de9b7e98f
[ "Apache-2.0" ]
3
2018-08-23T22:35:41.000Z
2020-04-18T11:29:45.000Z
import bblfsh_sonar_checks.utils as utils import bblfsh def check(uast): findings = [] catchs = bblfsh.filter(uast, "//CatchClause//SimpleType//Identifier[@Name='IllegalMonitorStateException']") for c in catchs: findings.append({"msg": "Don't catch IllegalMonitorStateException", ...
26.588235
111
0.688053
79421eef89e378213ffa8f58df01131a81f05f58
769
py
Python
python/tests/test_client.py
yndu13/darabonba-time
a5687a49920b2901252d6d9d2449dfe738888e98
[ "Apache-2.0" ]
1
2020-12-08T06:45:25.000Z
2020-12-08T06:45:25.000Z
python/tests/test_client.py
yndu13/darabonba-time
a5687a49920b2901252d6d9d2449dfe738888e98
[ "Apache-2.0" ]
2
2021-01-05T07:14:18.000Z
2022-02-07T09:32:12.000Z
python/tests/test_client.py
yndu13/darabonba-time
a5687a49920b2901252d6d9d2449dfe738888e98
[ "Apache-2.0" ]
3
2021-01-27T08:38:06.000Z
2021-11-23T03:01:53.000Z
import unittest import time from alibabacloud_darabonba_time.client import Client class TestClient(unittest.TestCase): def test_unix(self): self.assertEqual(10, len(Client.unix())) def test_utc(self): self.assertEqual(len('2020-11-24 09:44:45.426237'), le...
29.576923
94
0.581274
79421f9106f459b0560cfe78dd2cae2402547fc5
8,984
py
Python
upd/vcf_tools.py
bjhall/upd
180a25bcb22fa54c200c05dbc214d1f84be995a3
[ "MIT" ]
5
2019-06-20T17:02:41.000Z
2022-02-08T08:35:01.000Z
upd/vcf_tools.py
bjhall/upd
180a25bcb22fa54c200c05dbc214d1f84be995a3
[ "MIT" ]
6
2019-06-20T17:36:52.000Z
2021-02-04T19:07:06.000Z
upd/vcf_tools.py
bjhall/upd
180a25bcb22fa54c200c05dbc214d1f84be995a3
[ "MIT" ]
1
2021-12-24T07:16:05.000Z
2021-12-24T07:16:05.000Z
import logging import gzip import re from codecs import (open, getreader) from pprint import pprint as pp LOG = logging.getLogger(__name__) def open_file(filename): """Open a file and return a iterable with lines""" if filename.endswith('.gz'): LOG.info(f"{filename} is zipped") handle = getr...
29.650165
96
0.551647
79421f9252f11f73f1bc94d309eb57b41fdae8b0
311
py
Python
data/multilingual/Tibt.DZO/Sun-ExtA_12/pdf_to_json_test_Tibt.DZO_Sun-ExtA_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Tibt.DZO/Sun-ExtA_12/pdf_to_json_test_Tibt.DZO_Sun-ExtA_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Tibt.DZO/Sun-ExtA_12/pdf_to_json_test_Tibt.DZO_Sun-ExtA_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Tibt.DZO/Sun-ExtA_12/udhr_Tibt.DZO_Sun-ExtA_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
31.1
81
0.810289
79422042847793b99e8df17f8fa43fb4cb523d69
625
py
Python
python_modules/dagster/dagster_tests/core_tests/test_log_capture.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
1
2021-04-27T19:49:59.000Z
2021-04-27T19:49:59.000Z
python_modules/dagster/dagster_tests/core_tests/test_log_capture.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
7
2022-03-16T06:55:04.000Z
2022-03-18T07:03:25.000Z
python_modules/dagster/dagster_tests/core_tests/test_log_capture.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys import pytest from dagster.core.execution.compute_logs import ( mirror_stream_to_file, should_disable_io_stream_redirect, ) from dagster.utils.test import get_temp_file_name @pytest.mark.skipif( should_disable_io_stream_redirect(), reason="compute logs d...
26.041667
88
0.7456
7942211f9f06c445427327ae6e15eb95b7ae4584
1,604
py
Python
server/api/services/tasks.py
JBris/dolphin_segmentation
b1d22293720c15038d9c521aed8e7b258d8409aa
[ "MIT" ]
1
2021-05-09T05:40:53.000Z
2021-05-09T05:40:53.000Z
server/api/services/tasks.py
JBris/dolphin_segmentation
b1d22293720c15038d9c521aed8e7b258d8409aa
[ "MIT" ]
null
null
null
server/api/services/tasks.py
JBris/dolphin_segmentation
b1d22293720c15038d9c521aed8e7b258d8409aa
[ "MIT" ]
null
null
null
import os import json from pathlib import Path from decouple import config class Tasks: task_dir = config('TASK_DIR', default = '/home/app/system/tasks') def create_file(self, task_id, url, data): task_dict = { "id": task_id, "url": url, "status": "created" } for key in data: task_dict[key] =...
34.12766
121
0.571696
794221ab76148f1fa88826d381702cb079686bbf
14,319
py
Python
model-optimizer/mo/middle/passes/infer_test.py
shinh/dldt
693ab4e79a428e0801f17f4511b129a3fa8f4a62
[ "Apache-2.0" ]
1
2021-02-20T21:48:36.000Z
2021-02-20T21:48:36.000Z
model-optimizer/mo/middle/passes/infer_test.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/middle/passes/infer_test.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
1
2021-02-19T01:06:12.000Z
2021-02-19T01:06:12.000Z
""" Copyright (c) 2018-2019 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
48.704082
118
0.502898
794221af10a6b547bc96b4b0d0757e70beadaf5b
5,418
py
Python
Demo/scripts/eqfix.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Demo/scripts/eqfix.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
Demo/scripts/eqfix.py
AtjonTV/Python-1.4
2a80562c5a163490f444181cb75ca1b3089759ec
[ "Unlicense", "TCL", "DOC", "AAL", "X11" ]
null
null
null
#! /usr/local/bin/python # Fix Python source files to use the new equality test operator, i.e., # if x = y: ... # is changed to # if x == y: ... # The script correctly tokenizes the Python program to reliably # distinguish between assignments and equality tests. # # Command line arguments are files or directories to b...
27.09
70
0.638612
794221c1f04a453aebf4e5c8139d0e642e66248f
1,545
py
Python
conftest.py
eric-bonfadini/dask
c2278fece0d4fb4af1e63b6ca26e6a90f63b0fc3
[ "BSD-3-Clause" ]
null
null
null
conftest.py
eric-bonfadini/dask
c2278fece0d4fb4af1e63b6ca26e6a90f63b0fc3
[ "BSD-3-Clause" ]
null
null
null
conftest.py
eric-bonfadini/dask
c2278fece0d4fb4af1e63b6ca26e6a90f63b0fc3
[ "BSD-3-Clause" ]
null
null
null
import pytest # The doctests in these files fail due to either: # - Non-required dependencies not being installed # - Imported doctests due to pulling the docstrings from other packages # (e.g. `numpy`). No need to run these doctests. collect_ignore = [ "dask/bytes/hdfs3.py", "dask/bytes/pyarrow.py", "da...
24.919355
77
0.702265
794221c8987fd441f8e5e4242a3f1e09c2a96911
17,469
py
Python
coremltools/converters/mil/mil/ops/defs/elementwise_binary.py
tonybove-apple/coremltools
22a8877beec7bad136ba5612d5aacd8e323ecdfc
[ "BSD-3-Clause" ]
2,740
2017-10-03T23:19:01.000Z
2022-03-30T15:16:39.000Z
coremltools/converters/mil/mil/ops/defs/elementwise_binary.py
tonybove-apple/coremltools
22a8877beec7bad136ba5612d5aacd8e323ecdfc
[ "BSD-3-Clause" ]
1,057
2017-10-05T22:47:01.000Z
2022-03-31T23:51:15.000Z
coremltools/converters/mil/mil/ops/defs/elementwise_binary.py
tonybove-apple/coremltools
22a8877beec7bad136ba5612d5aacd8e323ecdfc
[ "BSD-3-Clause" ]
510
2017-10-04T19:22:28.000Z
2022-03-31T12:16:52.000Z
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import numpy as np import operator from ._op_reqs import * from ._utils import promoted_primitive_typ...
25.61437
85
0.584063
794221f0a13e475705f428fb5e577ff5049dc297
11,779
py
Python
deriva/config/annotation_config.py
emirdad/deriva-py
3d5302af0ff15be53df3b71a671c529a2ce10050
[ "Apache-2.0" ]
3
2018-11-18T19:33:53.000Z
2019-10-03T18:27:49.000Z
deriva/config/annotation_config.py
emirdad/deriva-py
3d5302af0ff15be53df3b71a671c529a2ce10050
[ "Apache-2.0" ]
81
2017-06-13T18:46:47.000Z
2022-01-13T01:16:33.000Z
Lib/site-packages/deriva/config/annotation_config.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
4
2018-06-25T18:23:33.000Z
2021-01-15T19:38:52.000Z
import sys import json import re from deriva.core import ErmrestCatalog, AttrDict, ermrest_model, get_credential from deriva.config.base_config import BaseSpec, BaseSpecList, ConfigUtil, ConfigBaseCLI if sys.version_info > (3,): unicode = str MY_VERSION = 0.99 class NoForeignKeyError(ValueError): pass cla...
46.011719
183
0.635623
7942220f52a92bf1eb3d618be1b46cd5111663c6
15,198
py
Python
main.py
sarah-antillia/EfficientDet-VegeFruits
32fdf5598064f88d2d6599273fb913d891a435f3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
main.py
sarah-antillia/EfficientDet-VegeFruits
32fdf5598064f88d2d6599273fb913d891a435f3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
main.py
sarah-antillia/EfficientDet-VegeFruits
32fdf5598064f88d2d6599273fb913d891a435f3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2020 Google Research. 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...
40.745308
80
0.702527
7942235e19c568723d60f85d2e64156e249b90d2
1,605
py
Python
ppline/cli/__main__.py
5x12/ppline
a4f7bd9aae0752a8abe7c4580c808792bb044ff6
[ "MIT" ]
9
2021-08-11T13:38:22.000Z
2022-01-14T15:32:45.000Z
ppline/cli/__main__.py
5x12/ppline
a4f7bd9aae0752a8abe7c4580c808792bb044ff6
[ "MIT" ]
null
null
null
ppline/cli/__main__.py
5x12/ppline
a4f7bd9aae0752a8abe7c4580c808792bb044ff6
[ "MIT" ]
null
null
null
import argparse import os import pathlib from typing import Optional from ppline.easy.command import Run def _arg_project_dir(arg): expanded = os.path.expanduser(arg) if os.path.isdir(expanded): return os.path.abspath(os.path.normpath(expanded)) else: raise Exception(f'Argument {arg} must b...
45.857143
177
0.738941
794223f06b5eaf3832eeeeaac9acc8c4c2a6e067
178,083
py
Python
ckan/tests/logic/action/test_get.py
devansh-srivastav/ckan-1
44a29cf85bcf14b24ff97f147b8a1e6cf6c51a93
[ "BSD-3-Clause" ]
null
null
null
ckan/tests/logic/action/test_get.py
devansh-srivastav/ckan-1
44a29cf85bcf14b24ff97f147b8a1e6cf6c51a93
[ "BSD-3-Clause" ]
null
null
null
ckan/tests/logic/action/test_get.py
devansh-srivastav/ckan-1
44a29cf85bcf14b24ff97f147b8a1e6cf6c51a93
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import re import copy import pytest from ckan import model import ckan.logic as logic import ckan.logic.schema as schema import ckan.tests.factories as factories import ckan.tests.helpers as helpers from ckan import __version__ from ckan.lib.search.common import SearchError ...
35.369017
132
0.595441
7942244ee6750fcfaa6511d8ffb37d49cd85d18d
12,905
py
Python
pyramid_webassets/__init__.py
Deimos/pyramid_webassets
6ef5febbdda4b8fd9f9055e973cf6daf07f32268
[ "MIT" ]
18
2015-08-15T09:23:00.000Z
2021-01-23T15:23:56.000Z
pyramid_webassets/__init__.py
Deimos/pyramid_webassets
6ef5febbdda4b8fd9f9055e973cf6daf07f32268
[ "MIT" ]
9
2015-01-14T19:18:01.000Z
2018-11-03T20:40:50.000Z
pyramid_webassets/__init__.py
Deimos/pyramid_webassets
6ef5febbdda4b8fd9f9055e973cf6daf07f32268
[ "MIT" ]
10
2015-02-13T19:58:12.000Z
2021-05-10T13:26:50.000Z
from contextlib import closing from os import path, makedirs import fileinput import json import six from pyramid.path import AssetResolver from pyramid.settings import asbool, truthy from pyramid.threadlocal import get_current_request from webassets import Bundle from webassets import __version__ as webassets_version...
32.343358
87
0.624952
794225d18205bb037c15a253b0ea1b1f600abcba
5,754
py
Python
rl_sandbox/examples/pybullet/hopper/sac_fr_lstm_experiment.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
14
2020-11-09T22:05:37.000Z
2022-02-11T12:41:33.000Z
rl_sandbox/examples/pybullet/hopper/sac_fr_lstm_experiment.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
null
null
null
rl_sandbox/examples/pybullet/hopper/sac_fr_lstm_experiment.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
null
null
null
import argparse import numpy as np import torch import rl_sandbox.constants as c import rl_sandbox.transforms.general_transforms as gt from rl_sandbox.agents.random_agents import UniformContinuousAgent from rl_sandbox.buffers.wrappers.torch_buffer import TorchBuffer from rl_sandbox.envs.wrappers.action_repeat import ...
27.5311
114
0.567431
794226326f7f791bb6770c1660668b5743e09659
383
py
Python
tests/xoto3/utils/cm_test.py
xoeye/xoto3
ef91cde3cce81e1ded311389358271d5c8eba02b
[ "MIT" ]
16
2020-05-23T15:23:38.000Z
2022-03-18T19:28:37.000Z
tests/xoto3/utils/cm_test.py
xoeye/xoto3
ef91cde3cce81e1ded311389358271d5c8eba02b
[ "MIT" ]
9
2020-08-19T23:08:36.000Z
2021-10-06T17:16:35.000Z
tests/xoto3/utils/cm_test.py
xoeye/xoto3
ef91cde3cce81e1ded311389358271d5c8eba02b
[ "MIT" ]
2
2020-12-12T08:23:53.000Z
2021-09-03T20:25:54.000Z
from contextlib import contextmanager from xoto3.utils.cm import xf_cm @contextmanager def yield_3(): print("generating a 3") yield 3 print("cleaning that 3 right on up") def test_transform_context_manager(): def add_one(x: int): return x + 1 yield_4 = xf_cm(add_one)(yield_3()) wi...
18.238095
40
0.684073
7942264ef3dda42be1549e119ad750faf49fe9a5
2,756
py
Python
src/pykeen/datasets/nations/__init__.py
nhutnamhcmus/pykeen
62d4f075fbd39135d6a5c8677d95e1ac46f8318f
[ "MIT" ]
88
2018-10-14T16:28:38.000Z
2020-06-22T08:03:15.000Z
src/pykeen/datasets/nations/__init__.py
nhutnamhcmus/pykeen
62d4f075fbd39135d6a5c8677d95e1ac46f8318f
[ "MIT" ]
42
2018-10-10T18:05:56.000Z
2020-06-09T09:19:27.000Z
src/pykeen/datasets/nations/__init__.py
nhutnamhcmus/pykeen
62d4f075fbd39135d6a5c8677d95e1ac46f8318f
[ "MIT" ]
19
2019-02-15T17:36:46.000Z
2020-03-28T11:03:41.000Z
# -*- coding: utf-8 -*- """Get triples from the Nations dataset.""" import pathlib from docdata import parse_docdata from ..base import PathDataset from ..literal_base import NumericPathDataset from ...triples import TriplesNumericLiteralsFactory __all__ = [ "NATIONS_TRAIN_PATH", "NATIONS_TEST_PATH", "...
26.247619
93
0.658926
794226eba8905b6ad571a59ff22592140a4e3305
1,170
py
Python
gen_data2.py
tsnik/RandomGraphModelsComparison
f5ecfcfb0f267f3988edae08522de18ec036b6f7
[ "MIT" ]
null
null
null
gen_data2.py
tsnik/RandomGraphModelsComparison
f5ecfcfb0f267f3988edae08522de18ec036b6f7
[ "MIT" ]
null
null
null
gen_data2.py
tsnik/RandomGraphModelsComparison
f5ecfcfb0f267f3988edae08522de18ec036b6f7
[ "MIT" ]
null
null
null
import pickle from generators.GaiKapadiaGenerator import GaiKapadiaGeneratorHetero2, GaiKapadiaGenerator from simulation import monte_carlo_orig from utills import gen_banks # Homogeneous for num in range(1, 7): banks = gen_banks(100) data = {"banks": banks} simulations = {} x = [0.01...
29.25
90
0.579487
794226f315b3ca7f7f401d85507eaff657454055
15,001
py
Python
brats_example.py
mcogswellsri/dare_brain_demo
9f4c4298dabbc1511c1bba37903f742ad1b0a7b1
[ "Apache-2.0" ]
null
null
null
brats_example.py
mcogswellsri/dare_brain_demo
9f4c4298dabbc1511c1bba37903f742ad1b0a7b1
[ "Apache-2.0" ]
null
null
null
brats_example.py
mcogswellsri/dare_brain_demo
9f4c4298dabbc1511c1bba37903f742ad1b0a7b1
[ "Apache-2.0" ]
null
null
null
import tempfile import argparse import os import os.path as pth import uuid import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import nibabel as nib import skimage.transform import skimage.io import matplotlib import matplotlib.pyplot as plt from matplotlib.colors import ListedColo...
32.399568
110
0.562496
794227215472f302fed33acd7bb2817b778bbb19
4,458
py
Python
model/AAConv2d.py
BenQLange/AttentionAugmentedConvLSTM
d8419b7a628b02ac49e8450deb3d60450c7b2d6b
[ "MIT" ]
30
2020-10-06T04:28:16.000Z
2022-03-26T16:36:31.000Z
model/AAConv2d.py
BenQLange/AttentionAugmentedConvLSTM
d8419b7a628b02ac49e8450deb3d60450c7b2d6b
[ "MIT" ]
null
null
null
model/AAConv2d.py
BenQLange/AttentionAugmentedConvLSTM
d8419b7a628b02ac49e8450deb3d60450c7b2d6b
[ "MIT" ]
11
2020-10-16T08:33:21.000Z
2021-11-14T14:21:46.000Z
""" Pytorch implementation of Attention Augmented Convolution. Developed by: Myeongjun Kim (not us) Source code: https://github.com/leaderj1001/Attention-Augmented-Conv2d """ import torch import torch.nn as nn import torch.nn.functional as F use_cuda = torch.cuda.is_available() device = torch.device("cuda" if use_cud...
38.431034
109
0.598026
79422756098ce2971200da36efd707c502167e63
22,407
py
Python
django/forms/forms.py
Miserlou/django
35ddeee45573de57ae3c791bf36496b4a7028ddf
[ "BSD-3-Clause" ]
1
2016-03-07T15:37:48.000Z
2016-03-07T15:37:48.000Z
django/forms/forms.py
erdem/django
76d5daa60f90d3692b3ff3b7f5054e4bc7c1f374
[ "BSD-3-Clause" ]
null
null
null
django/forms/forms.py
erdem/django
76d5daa60f90d3692b3ff3b7f5054e4bc7c1f374
[ "BSD-3-Clause" ]
null
null
null
""" Form classes """ from __future__ import absolute_import, unicode_literals import copy from django.core.exceptions import ValidationError from django.forms.fields import Field, FileField from django.forms.util import flatatt, ErrorDict, ErrorList from django.forms.widgets import Media, media_property, TextInput, ...
40.228007
130
0.604945
794228278bf05eab939e7a221c05b24af49ad009
2,457
py
Python
cinder/api/views/qos_specs.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-08-25T13:11:18.000Z
2020-10-15T11:29:20.000Z
cinder/api/views/qos_specs.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
5
2018-01-25T11:31:56.000Z
2019-05-06T23:13:35.000Z
cinder/api/views/qos_specs.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-02-20T18:48:24.000Z
2021-01-30T20:26:18.000Z
# Copyright (C) 2013 eBay 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...
36.671642
79
0.612536
7942285e7af8c95021d52f3ee8e6210da7da4976
6,380
py
Python
onmt/inference/search.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
75
2019-05-02T10:37:39.000Z
2022-02-13T17:53:24.000Z
onmt/inference/search.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
11
2018-11-08T16:52:51.000Z
2021-09-23T15:01:14.000Z
onmt/inference/search.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
34
2018-06-04T14:20:01.000Z
2022-01-26T08:10:05.000Z
# 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. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import torch import onmt class S...
38.666667
112
0.614734
79422c05fdd619a3ad6566c6b19510aa2d729af3
6,700
py
Python
tensorflow_probability/python/distributions/exponential.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/distributions/exponential.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/distributions/exponential.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2018 The TensorFlow Probability 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 o...
37.853107
81
0.691343
79422c2db485f52d5c53a57e57ce272f710c5518
8,317
py
Python
spikeforest/spikeforestwidgets/unitwaveformswidget.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
1
2021-09-23T01:07:19.000Z
2021-09-23T01:07:19.000Z
spikeforest/spikeforestwidgets/unitwaveformswidget.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
null
null
null
spikeforest/spikeforestwidgets/unitwaveformswidget.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
1
2021-09-23T01:07:21.000Z
2021-09-23T01:07:21.000Z
import numpy as np from matplotlib import pyplot as plt import vdomr as vd import time from spikeforest import spikewidgets as sw class UnitWaveformsWidget(vd.Component): def __init__(self, *, recording, sorting, max_num_spikes_per_unit=20, snippet_len=100): vd.Component.__init__(self) self._widge...
38.151376
179
0.621137
79422c2ea05a3e109616ee3fb82e1ee907b49d7e
5,542
py
Python
web.py
legoktm/mass-rename
3f9b923c53b7ff66ffbd2a2052528f6f3a623386
[ "MIT" ]
1
2021-07-28T11:41:06.000Z
2021-07-28T11:41:06.000Z
web.py
legoktm/mass-rename
3f9b923c53b7ff66ffbd2a2052528f6f3a623386
[ "MIT" ]
null
null
null
web.py
legoktm/mass-rename
3f9b923c53b7ff66ffbd2a2052528f6f3a623386
[ "MIT" ]
null
null
null
#!/data/project/legobot/python/bin/python """ Copyright (C) 2013 Legoktm 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, ...
35.075949
168
0.64742
79422cca9687d15a9ddafc5d3c7c022091906451
2,607
py
Python
allhub/repos/pages.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-07T15:46:33.000Z
2019-11-26T04:30:39.000Z
allhub/repos/pages.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
1
2020-03-09T14:44:04.000Z
2020-03-09T14:44:04.000Z
allhub/repos/pages.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-08T05:22:37.000Z
2019-10-08T06:20:47.000Z
from allhub.response import Response class PagesSiteMixin: def pages_site_info(self, owner, repo): url = "/repos/{owner}/{repo}/pages".format(owner=owner, repo=repo) self.response = Response(self.get(url), "PagesInfo") return self.response.transform() def enable_pages_site(self, owner...
38.910448
88
0.593402
79422cfeb94a6a0b53c7ab6d45eeb59103a47e94
1,755
py
Python
demo.py
Minyus/MegaDepth
89baf59897951b45361def8fecdc156a79d98ee2
[ "MIT" ]
null
null
null
demo.py
Minyus/MegaDepth
89baf59897951b45361def8fecdc156a79d98ee2
[ "MIT" ]
null
null
null
demo.py
Minyus/MegaDepth
89baf59897951b45361def8fecdc156a79d98ee2
[ "MIT" ]
null
null
null
import torch import sys from torch.autograd import Variable import numpy as np # from options.train_options import TrainOptions # opt = TrainOptions().parse() # set CUDA_VISIBLE_DEVICES before import torch from options.test_options import TestOptions opt = TestOptions().parse() # set CUDA_VISIBLE_DEVICES before impor...
31.909091
135
0.720798
79422d2f969e76edaea0c5a1dbe2a3cfcbb95d6a
7,492
py
Python
anytask/courses/migrations/0009_auto__add_field_course_max_tasks_withoout_score_per_student.py
AnnaSvalova/anytask
f814b43c496f67a2efe2a150873a1ae32ad97449
[ "MIT" ]
1
2018-12-03T05:48:43.000Z
2018-12-03T05:48:43.000Z
anytask/courses/migrations/0009_auto__add_field_course_max_tasks_withoout_score_per_student.py
AnnaSvalova/anytask
f814b43c496f67a2efe2a150873a1ae32ad97449
[ "MIT" ]
null
null
null
anytask/courses/migrations/0009_auto__add_field_course_max_tasks_withoout_score_per_student.py
AnnaSvalova/anytask
f814b43c496f67a2efe2a150873a1ae32ad97449
[ "MIT" ]
1
2021-09-18T22:38:20.000Z
2021-09-18T22:38:20.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Course.max_tasks_withoout_score_per_student' db.add_column('courses_course', 'max_tasks_wi...
79.702128
206
0.579952
79422d5130b37f3b9dc077649969bccddeae1566
6,139
py
Python
wordpress/models.py
observermedia/django-wordpress-rest
f0d96891d8ac5a69c8ba90e044876e756fad1bfe
[ "MIT" ]
9
2015-08-10T23:12:27.000Z
2020-02-15T08:35:09.000Z
wordpress/models.py
observermedia/django-wordpress-rest
f0d96891d8ac5a69c8ba90e044876e756fad1bfe
[ "MIT" ]
1
2016-01-06T19:16:08.000Z
2016-01-06T19:16:08.000Z
wordpress/models.py
observermedia/django-wordpress-rest
f0d96891d8ac5a69c8ba90e044876e756fad1bfe
[ "MIT" ]
5
2016-02-29T09:29:58.000Z
2020-06-23T16:10:58.000Z
from __future__ import unicode_literals import collections from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse from jsonfield import JSONField class DateTracking(models.Model): """ An abstract model that adds tracking fields for c...
46.157895
114
0.702395
79422f7dc973f48283af23bf792f0aad18d1fa05
1,155
py
Python
django_dashboard/routers.py
keepexploring/smartbiogas
ca663435b05666113e3c0cb55e6f087c61497208
[ "MIT" ]
null
null
null
django_dashboard/routers.py
keepexploring/smartbiogas
ca663435b05666113e3c0cb55e6f087c61497208
[ "MIT" ]
10
2017-11-24T12:15:40.000Z
2022-02-10T06:41:32.000Z
django_dashboard/routers.py
keepexploring/smartbiogas
ca663435b05666113e3c0cb55e6f087c61497208
[ "MIT" ]
null
null
null
class Dashboard_Router(object): """ A router to control all database operations on models in the dashboard application """ def db_for_read(self, model, **hints): """ Point all operations on myapp2 models to 'my_db_2' """ if model._meta.app_label == 'django_dashboard': ...
31.216216
69
0.575758
79422ff0f4c8118b2719b183fc11414047c664ee
256
py
Python
utils/scraper/translation.py
Nuzair46/Galactic-Empire-Bot
2f2d2681d0a130a87dc9cff6ad5feba0af8b6d66
[ "MIT" ]
null
null
null
utils/scraper/translation.py
Nuzair46/Galactic-Empire-Bot
2f2d2681d0a130a87dc9cff6ad5feba0af8b6d66
[ "MIT" ]
null
null
null
utils/scraper/translation.py
Nuzair46/Galactic-Empire-Bot
2f2d2681d0a130a87dc9cff6ad5feba0af8b6d66
[ "MIT" ]
null
null
null
import googletrans from googletrans import Translator class language(): def translateto(text, lang): translator = Translator() final = translator.translate(text, dest = lang) language = googletrans.LANGUAGES return final.text,language[final.src]
25.6
49
0.773438
794230752a697bf28da367ab9bb3af8bd728e8ab
1,594
py
Python
Python/paint-house.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/paint-house.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/paint-house.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(n) # Space: O(1) # 256 # There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. # The cost of painting each house with a certain color is different. You have to paint all the houses # such that no two adjacent houses have the same color. # # The cost of pain...
33.208333
106
0.550188
794231b561427ba75a1adc54c4758a74b68fbb0d
4,716
py
Python
api/metricsdata_test.py
liamnewmarch/chromium-dashboard
0e10b98554a85bd8edb7c61f8fa0494821fe005f
[ "Apache-2.0" ]
450
2015-01-31T03:16:15.000Z
2022-03-25T14:03:26.000Z
api/metricsdata_test.py
nirajbhutada/chromium-dashboard
6fcec787cad34350b50806f7ffde4238942d7ec3
[ "Apache-2.0" ]
1,336
2015-01-16T21:41:33.000Z
2022-03-30T16:28:24.000Z
api/metricsdata_test.py
Fmichi50/chromium-dashboard
e77396a8cc5a5f10f46ff9b9456f6aa0b2dc94d8
[ "Apache-2.0" ]
314
2015-01-28T00:17:45.000Z
2022-03-28T05:09:46.000Z
# Copyright 2020 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
33.211268
78
0.744275
7942329c36169eed3489b27254df102ad7c629c8
7,259
py
Python
sdk/python/pulumi_google_native/jobs/v4/tenant.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/jobs/v4/tenant.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/jobs/v4/tenant.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
43.467066
260
0.642375
79423389242ae0c8a41f0df6bb6087f409852cf2
14,095
py
Python
python/ray/remote_function.py
yorickvanzweeden/ray
79a9d6d5171071190f531121be310fb4d203cf11
[ "Apache-2.0" ]
null
null
null
python/ray/remote_function.py
yorickvanzweeden/ray
79a9d6d5171071190f531121be310fb4d203cf11
[ "Apache-2.0" ]
27
2021-08-07T07:07:24.000Z
2022-03-26T07:05:43.000Z
python/ray/remote_function.py
yorickvanzweeden/ray
79a9d6d5171071190f531121be310fb4d203cf11
[ "Apache-2.0" ]
null
null
null
import logging import inspect from functools import wraps from ray import cloudpickle as pickle from ray._raylet import PythonFunctionDescriptor from ray import cross_language, Language from ray._private.client_mode_hook import client_mode_convert_function from ray._private.client_mode_hook import client_mode_should_c...
43.236196
79
0.614899
794234085b4fc411d6780bb2e8768a95f03ea14f
10,610
py
Python
pygsp/learning.py
dataronio/pygsp
0f35fbf2623d32060fe2f709715a88a818528e26
[ "BSD-3-Clause" ]
341
2015-09-07T16:59:41.000Z
2022-03-23T20:27:55.000Z
pygsp/learning.py
dataronio/pygsp
0f35fbf2623d32060fe2f709715a88a818528e26
[ "BSD-3-Clause" ]
96
2017-04-16T04:38:57.000Z
2021-11-02T18:36:41.000Z
pygsp/learning.py
dataronio/pygsp
0f35fbf2623d32060fe2f709715a88a818528e26
[ "BSD-3-Clause" ]
95
2016-03-25T14:35:28.000Z
2022-02-08T18:54:29.000Z
# -*- coding: utf-8 -*- r""" The :mod:`pygsp.learning` module provides functions to solve learning problems. Semi-supervized learning ======================== Those functions help to solve a semi-supervized learning problem, i.e., a problem where only some values of a graph signal are known and the others shall be i...
28.598383
79
0.55344
79423433cdcc39041c7fd83b1754e656cc596c82
3,178
py
Python
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
backend/api/models.py
AndyPaPaLeu/Disfactory
4afc370ae6b0d526891fce2b1fe0b9c687309ed1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import uuid from django.conf import settings from django.contrib.gis.db import models from django.contrib.gis.geos import Point from django.contrib.postgres.fields import JSONField class Factory(models.Model): """Factories that are potential to be illegal.""" # List of fact_type & st...
30.854369
89
0.636249
794234572a920a864b13e67d733c2043997abdbd
28,376
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/src/get_gl_extensions.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/src/get_gl_extensions.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/src/get_gl_extensions.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
#! /usr/bin/env python """Script to download OpenGL extensions header and produce wrappers This script is the mechanism that allows for automatically wrapping new extensions with basic ctypes-level functionality. It doesn't do everything, but it approximates the same level of access as GLEW or pyglet will give you. T...
39.301939
125
0.551593
794235c04f65aa169640bcbddcf291f837503be7
1,080
py
Python
adventofcode/2016/03.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
10
2015-01-31T09:04:45.000Z
2022-01-08T04:09:48.000Z
adventofcode/2016/03.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
3
2016-05-16T07:37:01.000Z
2016-05-18T14:14:16.000Z
adventofcode/2016/03.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
6
2015-02-06T06:00:00.000Z
2020-02-13T16:13:48.000Z
from utils import ( InputConfig, ingest, transpose, ) INPUT_FILE = '03.in' EXPECTED_ANSWERS = (983, 1836, ) def main(): solution = Solution() answers = (solution.solve1(), solution.solve2(), ) print(answers) assert(answers == EXPECTED_ANSWERS) class Solution: def __init__(self): ...
19.636364
81
0.539815
79423650e93c04dd2815f8685ef1ba379328ae87
10,530
py
Python
tests/core/ssl/test_ssl.py
vito-jwt/chia-blockchain
cd0a1c28e3c41ac2650ab7b3ef6a041e0c7f87b2
[ "Apache-2.0" ]
6
2021-05-21T10:29:32.000Z
2021-07-10T12:51:34.000Z
tests/core/ssl/test_ssl.py
Mateus-dang/chia-blockchain
2d2693496591b0b786461d16929b99a980d2528f
[ "Apache-2.0" ]
28
2021-07-13T21:07:14.000Z
2022-03-29T21:10:38.000Z
tests/core/ssl/test_ssl.py
Mateus-dang/chia-blockchain
2d2693496591b0b786461d16929b99a980d2528f
[ "Apache-2.0" ]
2
2021-04-20T16:37:10.000Z
2021-04-24T04:59:36.000Z
import asyncio import aiohttp import pytest from chia.protocols.shared_protocol import protocol_version from chia.server.outbound_message import NodeType from chia.server.server import ChiaServer, ssl_context_for_client from chia.server.ws_connection import WSChiaConnection from chia.ssl.create_ssl import generate_ca...
40.344828
118
0.688034
794236ef9da41238d051fa544bb382526350f649
43,898
py
Python
files_sdk/models/user.py
Files-com/files-sdk-python
84cedc9be099cd9e4db6249ef7a9d60595487090
[ "MIT" ]
14
2020-08-05T15:48:06.000Z
2021-08-18T13:13:39.000Z
files_sdk/models/user.py
Files-com/files-sdk-python
84cedc9be099cd9e4db6249ef7a9d60595487090
[ "MIT" ]
4
2020-10-30T14:49:25.000Z
2021-09-29T17:11:53.000Z
files_sdk/models/user.py
Files-com/files-sdk-python
84cedc9be099cd9e4db6249ef7a9d60595487090
[ "MIT" ]
null
null
null
import builtins import datetime from files_sdk.api import Api from files_sdk.list_obj import ListObj from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError class User: default_attributes = { 'id': None, # int64 - User ID 'username': None, # string...
72.438944
359
0.70477
79423789704070c6a4de993938326a49817b4d08
3,173
py
Python
cron_read_data_from_aggregate.py
HadiOfBBG/pegasusrises
0a2df78eac955d3966030bdca1731bf0aa63510c
[ "Apache-2.0" ]
null
null
null
cron_read_data_from_aggregate.py
HadiOfBBG/pegasusrises
0a2df78eac955d3966030bdca1731bf0aa63510c
[ "Apache-2.0" ]
null
null
null
cron_read_data_from_aggregate.py
HadiOfBBG/pegasusrises
0a2df78eac955d3966030bdca1731bf0aa63510c
[ "Apache-2.0" ]
null
null
null
import csv from collections import defaultdict import StringIO from google.appengine.ext import blobstore from google.appengine.ext.webapp import blobstore_handlers from jinja_template import JinjaTemplating from google.appengine.ext import db from google.appengine.api import memcache from questions_details_from_google...
37.329412
137
0.716987
794237b6ddd85963136bd45e3b6cf1b288f9a8d7
2,212
py
Python
vspk/v6/fetchers/nucosremarkingpolicytables_fetcher.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
19
2016-03-07T12:34:22.000Z
2020-06-11T11:09:02.000Z
vspk/v6/fetchers/nucosremarkingpolicytables_fetcher.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
40
2016-06-13T15:36:54.000Z
2020-11-10T18:14:43.000Z
vspk/v6/fetchers/nucosremarkingpolicytables_fetcher.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
15
2016-06-10T22:06:01.000Z
2020-12-15T18:37:42.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # 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 copyrigh...
41.735849
86
0.738246
794238faa1c31f6b769a87f3377822b2f8827ddc
55,195
py
Python
tests/test_modeling_tf_common.py
wilcoln/transformers
6331d4fe59e85840bb5693837e791f4caedcd53b
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_tf_common.py
wilcoln/transformers
6331d4fe59e85840bb5693837e791f4caedcd53b
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_tf_common.py
wilcoln/transformers
6331d4fe59e85840bb5693837e791f4caedcd53b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 HuggingFace 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 ag...
46.460438
137
0.615726
79423937c6050f53dbd09a0b249ad9f0ca672f6d
2,463
py
Python
pygenetic/Statistics.py
QuailAutomation/pygenetic
93b0240a1942b882df30b53d856a87becca1d7ec
[ "MIT" ]
2
2020-05-30T05:13:37.000Z
2021-03-15T19:54:28.000Z
pygenetic/Statistics.py
QuailAutomation/pygenetic
93b0240a1942b882df30b53d856a87becca1d7ec
[ "MIT" ]
1
2021-06-19T20:30:25.000Z
2021-06-19T20:30:25.000Z
pygenetic/Statistics.py
QuailAutomation/pygenetic
93b0240a1942b882df30b53d856a87becca1d7ec
[ "MIT" ]
2
2020-08-02T20:52:50.000Z
2021-02-07T15:52:15.000Z
import matplotlib import os if 'TRAVIS' in os.environ: print('Warning: no DISPLAY environment variable found. Using matplotlib non-interactive Agg backend') matplotlib.use('Agg') import matplotlib.pyplot as plt class Statistics: """ Class to generate Statistics on operation of Genetic Algorithm Instance Me...
29.321429
113
0.725132
79423995f1a3d63eb992419866556d65dfa1230a
13,981
py
Python
tests/test_binder_file_field.py
MLewiDev/django-binder
3f55f18169ed5536305f7c0c2e257962346d30f4
[ "MIT" ]
null
null
null
tests/test_binder_file_field.py
MLewiDev/django-binder
3f55f18169ed5536305f7c0c2e257962346d30f4
[ "MIT" ]
null
null
null
tests/test_binder_file_field.py
MLewiDev/django-binder
3f55f18169ed5536305f7c0c2e257962346d30f4
[ "MIT" ]
null
null
null
from os.path import basename from io import BytesIO from PIL import Image from tempfile import NamedTemporaryFile from django.test import TestCase, Client from django.core.files.base import ContentFile from django.core.files.uploadedfile import SimpleUploadedFile from django.contrib.auth.models import User from django...
41.859281
1,876
0.733066
794239d23f13b3f3024830568a3d632d3b5fed1f
3,883
py
Python
docker/pythonpath_dev/superset_config.py
7vikpeculiar/superset
800ced5e257d5d83d6dbe4ced0e7318ac40d026f
[ "Apache-2.0" ]
2
2021-12-21T15:57:16.000Z
2022-01-31T02:22:02.000Z
docker/pythonpath_dev/superset_config.py
7vikpeculiar/superset
800ced5e257d5d83d6dbe4ced0e7318ac40d026f
[ "Apache-2.0" ]
10
2022-01-05T01:31:07.000Z
2022-03-16T01:09:46.000Z
docker/pythonpath_dev/superset_config.py
7vikpeculiar/superset
800ced5e257d5d83d6dbe4ced0e7318ac40d026f
[ "Apache-2.0" ]
2
2021-12-21T13:41:18.000Z
2021-12-26T22:16:43.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...
33.765217
86
0.731136
79423affaf4f467800c3768d6919e02a95c6b675
1,471
py
Python
concrete_settings/contrib/sources/yaml_source.py
coordt/concrete-settings
b444c3f1f8cdbe30135c1978876215e04ebc7622
[ "MIT" ]
5
2020-04-25T12:18:33.000Z
2021-03-26T18:51:33.000Z
concrete_settings/contrib/sources/yaml_source.py
coordt/concrete-settings
b444c3f1f8cdbe30135c1978876215e04ebc7622
[ "MIT" ]
13
2019-03-20T10:42:39.000Z
2021-07-07T08:01:05.000Z
concrete_settings/contrib/sources/yaml_source.py
coordt/concrete-settings
b444c3f1f8cdbe30135c1978876215e04ebc7622
[ "MIT" ]
3
2020-04-25T08:53:29.000Z
2021-07-06T19:15:52.000Z
from typing import Any, Tuple, Union, Type from concrete_settings.exceptions import ConcreteSettingsError from concrete_settings.sources import FileSource, register_source, NotFound @register_source class YamlSource(FileSource): extensions = ['.yml', '.yaml'] def __init__(self, path): try: ...
31.297872
89
0.598912
79423b25723d7790a6454c86821d0f4225d6f44f
4,928
py
Python
dialite/_base.py
flexxui/dialite
9a62d34c0b8eb7b61b527bcf82e7ba0e4808d866
[ "BSD-2-Clause" ]
13
2018-02-26T14:28:57.000Z
2022-03-22T16:22:31.000Z
dialite/_base.py
flexxui/dialite
9a62d34c0b8eb7b61b527bcf82e7ba0e4808d866
[ "BSD-2-Clause" ]
4
2018-10-29T19:44:44.000Z
2020-09-07T12:11:14.000Z
dialite/_base.py
flexxui/dialite
9a62d34c0b8eb7b61b527bcf82e7ba0e4808d866
[ "BSD-2-Clause" ]
4
2018-08-09T09:56:05.000Z
2020-06-08T06:10:20.000Z
from __future__ import absolute_import, division, print_function import os import subprocess import sys import time import webbrowser from . import logger if sys.version_info < (3,): # pragma: no cover input = raw_input # noqa class BaseApp(object): """The base app class. Acts as a placeholder to define ...
27.377778
78
0.600649
79423b6b092fd9a8cdcc056dbc6bd72767799c75
881
py
Python
tests/generators/ios/test_conversion.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
3
2016-02-04T22:58:03.000Z
2017-12-15T13:37:47.000Z
tests/generators/ios/test_conversion.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
37
2015-08-28T20:17:23.000Z
2021-12-13T19:48:49.000Z
tests/generators/ios/test_conversion.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
6
2016-01-12T18:51:27.000Z
2016-10-19T10:32:45.000Z
import unittest from signals.generators.ios.conversion import python_to_objc_variable, sanitize_field_name, get_proper_name class ConversionTestCase(unittest.TestCase): def test_python_to_objc_variable(self): self.assertEqual(python_to_objc_variable("verbose_description"), "verboseDescription") se...
48.944444
117
0.777526
79423b73098cb09753e7797851719ad8248837d8
9,369
py
Python
hrf/trfx_semi.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
2
2021-09-18T14:21:24.000Z
2021-12-20T03:39:13.000Z
hrf/trfx_semi.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
null
null
null
hrf/trfx_semi.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
1
2021-09-12T07:02:23.000Z
2021-09-12T07:02:23.000Z
import numpy as np import time from collections import OrderedDict from base import seq, log from . import trfx from .trfx import DefaultOps class Config(trfx.Config): def __init__(self, data): super().__init__(data) self.train_batch_size = 1000 self.full_batch_size = 100 self.in...
41.64
122
0.572847
79423baecf69f422facb64d13574e8c5929ae599
649
py
Python
focalloss.py
shiqiuwang/Hardness_aware_Sample_Distillation
b70823e9e180ed61a02e1eb73bbe9a3c2897050f
[ "Apache-2.0", "MIT" ]
null
null
null
focalloss.py
shiqiuwang/Hardness_aware_Sample_Distillation
b70823e9e180ed61a02e1eb73bbe9a3c2897050f
[ "Apache-2.0", "MIT" ]
null
null
null
focalloss.py
shiqiuwang/Hardness_aware_Sample_Distillation
b70823e9e180ed61a02e1eb73bbe9a3c2897050f
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' @Time : 2021/7/22 15:14 @Author : Qiushi Wang @FileName: focalloss.py @Software: PyCharm ''' import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np class FocalLoss(nn.Module): def __init__(self, gamma=0.0, alpha=1...
23.178571
79
0.659476
79423ca1c81c8146bb8277bb6988e95d942949ad
2,475
py
Python
Geometry/HGCalCommonData/test/python/testHGCalParametersDD4Hep_cfg.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
2
2017-09-29T13:32:51.000Z
2019-01-31T00:40:58.000Z
Geometry/HGCalCommonData/test/python/testHGCalParametersDD4Hep_cfg.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
8
2020-03-20T23:18:36.000Z
2020-05-27T11:00:06.000Z
Geometry/HGCalCommonData/test/python/testHGCalParametersDD4Hep_cfg.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
3
2017-06-07T15:22:28.000Z
2019-02-28T20:48:30.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("HGCalParametersTest") process.load("SimGeneral.HepPDTESSource.pdt_cfi") process.load("Geometry.HGCalCommonData.hgcalParametersInitialization_cfi") process.load('FWCore.MessageService.MessageLogger_cfi') if hasattr(process,'MessageLogger'): process.Me...
38.076923
149
0.671111
79423d510370578dd70fc8b4700deedf2dbede26
3,995
py
Python
Tests/test_PopGen_GenePop_EasyController.py
adamnovak/biopython
92772dd6add33e0b87ab593841f924f0f6f16090
[ "PostgreSQL" ]
5
2016-03-09T03:41:23.000Z
2022-01-24T12:34:44.000Z
Tests/test_PopGen_GenePop_EasyController.py
adamnovak/biopython
92772dd6add33e0b87ab593841f924f0f6f16090
[ "PostgreSQL" ]
null
null
null
Tests/test_PopGen_GenePop_EasyController.py
adamnovak/biopython
92772dd6add33e0b87ab593841f924f0f6f16090
[ "PostgreSQL" ]
6
2016-10-24T11:27:13.000Z
2020-02-26T16:35:01.000Z
# Copyright 2009 by Tiago Antao <tiagoantao@gmail.com>. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import os import unittest from Bio import MissingExternalDependencyError...
31.456693
79
0.64005
79423f0f0cc8795100f645d43b43906c99f3a99e
2,410
py
Python
pptremoteagent.py
gigibu5/python-ppt-remote
e19b2711a8c76e19d5175f622904eab8b11387b5
[ "MIT" ]
null
null
null
pptremoteagent.py
gigibu5/python-ppt-remote
e19b2711a8c76e19d5175f622904eab8b11387b5
[ "MIT" ]
null
null
null
pptremoteagent.py
gigibu5/python-ppt-remote
e19b2711a8c76e19d5175f622904eab8b11387b5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # This is a script to remote control PowerPoint presentations on Windows from your smartphone. # Usage: # * Run pptremoteserver.py on a server accessible from the internet # * Run pptremoteagent.py on the computer where you have PowerPoint running # * Open the pptremoteserver's IP address ...
31.710526
119
0.582988
79423f4557e53addb8df59cd788e9718c14cb853
3,903
py
Python
spec/API_specification/signatures/utility_functions.py
cnpryer/array-api
02fa9237eab3258120778baec12cd38cfd309ee3
[ "MIT" ]
null
null
null
spec/API_specification/signatures/utility_functions.py
cnpryer/array-api
02fa9237eab3258120778baec12cd38cfd309ee3
[ "MIT" ]
null
null
null
spec/API_specification/signatures/utility_functions.py
cnpryer/array-api
02fa9237eab3258120778baec12cd38cfd309ee3
[ "MIT" ]
null
null
null
from ._types import Optional, Tuple, Union, array def all(x: array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, keepdims: bool = False) -> array: """ Tests whether all input array elements evaluate to ``True`` along a specified axis. .. note:: Positive infinity, negative infinity, and...
72.277778
655
0.694081
79423f52837badbf12ad9812152743d647d1c9c4
25
py
Python
keras2cpp/__init__.py
AlessandroFasse/keras2cpp
b30ec20f49ab1d4211e56e94ff83c3da27519d56
[ "MIT" ]
null
null
null
keras2cpp/__init__.py
AlessandroFasse/keras2cpp
b30ec20f49ab1d4211e56e94ff83c3da27519d56
[ "MIT" ]
null
null
null
keras2cpp/__init__.py
AlessandroFasse/keras2cpp
b30ec20f49ab1d4211e56e94ff83c3da27519d56
[ "MIT" ]
null
null
null
from ._keras2cpp import *
25
25
0.8
79423fb83c5b9ea7f0048619f44f226757d9238f
1,012
py
Python
conf/settings.py
gustavohenrique/django-splinter-example
19f2b66649dd48cdc4e7784baa792abbc9393987
[ "MIT" ]
2
2019-07-11T18:05:09.000Z
2021-11-15T09:52:49.000Z
conf/settings.py
gustavohenrique/django-splinter-example
19f2b66649dd48cdc4e7784baa792abbc9393987
[ "MIT" ]
null
null
null
conf/settings.py
gustavohenrique/django-splinter-example
19f2b66649dd48cdc4e7784baa792abbc9393987
[ "MIT" ]
null
null
null
# coding: utf-8 import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = 'a4fc$s%ytp6$)=u+%r!^%pecjuqit&ar$ue8#y5n6z4q0axl3c' DEBUG = True TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['*'] INSTALLED_APPS = ( 'django.contrib.contenttypes', 'django.contrib.staticfiles', 'poll' ) MIDDLEW...
20.653061
65
0.710474
79423fe80095752239b0f5ce51f3fafc5efaa381
507
py
Python
ABC_C/ABC167_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_C/ABC167_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_C/ABC167_C.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
N, M, X = map(int, input().split()) CA = [] for _ in range(N): tmp = list(map(int, input().split())) CA.append(tmp) ans = -1 for i in range(2**N): tmp_cost = 0 tmp_X = [0]*(M+1) for j in range(N): if ((i >> j) & 1): for k in range(M+1): tmp_X[k] += CA[j][k] f...
21.125
41
0.424063
79424208c0dc911f46ec133ae22b5ce56e4ac7c9
9,335
py
Python
tensorflow_probability/python/distributions/normal.py
TheCaffeineDev/probability
7aa13647c57fe621eadc2b7ad3020817aa8b9ba5
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/normal.py
TheCaffeineDev/probability
7aa13647c57fe621eadc2b7ad3020817aa8b9ba5
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/normal.py
TheCaffeineDev/probability
7aa13647c57fe621eadc2b7ad3020817aa8b9ba5
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
33.102837
81
0.683985
794242c24b3a0025891c247d822546c028a62428
74,621
py
Python
certbot/cli.py
daramousk/certbot
082040afb4c6542445ee8437a3dea61171706a80
[ "Apache-2.0" ]
null
null
null
certbot/cli.py
daramousk/certbot
082040afb4c6542445ee8437a3dea61171706a80
[ "Apache-2.0" ]
null
null
null
certbot/cli.py
daramousk/certbot
082040afb4c6542445ee8437a3dea61171706a80
[ "Apache-2.0" ]
null
null
null
"""Certbot command line argument & config processing.""" # pylint: disable=too-many-lines from __future__ import print_function import argparse import copy import glob import logging.handlers import sys import configargparse import six import zope.component import zope.interface from zope.interface import interfaces ...
45.639755
134
0.639887
7942442203076f3ef9bf083b8ec144db80f0c5f7
119
py
Python
azure_monitor/src/azure_monitor/version.py
hectorhdzg/opentelemetry-azure-monitor-python
f57679d80f259181486a1124f0d6b71012d4826b
[ "MIT" ]
null
null
null
azure_monitor/src/azure_monitor/version.py
hectorhdzg/opentelemetry-azure-monitor-python
f57679d80f259181486a1124f0d6b71012d4826b
[ "MIT" ]
null
null
null
azure_monitor/src/azure_monitor/version.py
hectorhdzg/opentelemetry-azure-monitor-python
f57679d80f259181486a1124f0d6b71012d4826b
[ "MIT" ]
1
2020-07-30T13:31:44.000Z
2020-07-30T13:31:44.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. __version__ = "0.4.dev0"
29.75
59
0.756303
794244479cde3a398065451c51f81014624c3a16
1,481
py
Python
third_party/mosquitto/test/broker/03-publish-dollar-v5.py
HowJMay/simple-tangle-accelerator
d79bfda23a0fcf67d5a7f9e66f02efa3e73ba381
[ "MIT" ]
null
null
null
third_party/mosquitto/test/broker/03-publish-dollar-v5.py
HowJMay/simple-tangle-accelerator
d79bfda23a0fcf67d5a7f9e66f02efa3e73ba381
[ "MIT" ]
null
null
null
third_party/mosquitto/test/broker/03-publish-dollar-v5.py
HowJMay/simple-tangle-accelerator
d79bfda23a0fcf67d5a7f9e66f02efa3e73ba381
[ "MIT" ]
1
2021-05-04T16:09:27.000Z
2021-05-04T16:09:27.000Z
#!/usr/bin/env python3 # Test whether a PUBLISH to $ topics QoS 1 results in the expected PUBACK packet. from mosq_test_helper import * mid = 1 def helper(topic, reason_code): global mid publish_packet = mosq_test.gen_publish(topic, qos=1, mid=mid, payload="message", proto_ver=5) if reason_code == 0: ...
31.510638
97
0.735989
7942448d45ee3fb70d1bdf5b147ccbb936c57314
140
py
Python
tcsstamp/__version__.py
rhuygen/tcsstamp
61fbf80210dc49b05028dad5edc3b816ed4f0973
[ "MIT" ]
null
null
null
tcsstamp/__version__.py
rhuygen/tcsstamp
61fbf80210dc49b05028dad5edc3b816ed4f0973
[ "MIT" ]
null
null
null
tcsstamp/__version__.py
rhuygen/tcsstamp
61fbf80210dc49b05028dad5edc3b816ed4f0973
[ "MIT" ]
null
null
null
""" The one and only place for the version number. This file is used by """ VERSION = (0, 3, 7) __version__ = '.'.join(map(str, VERSION))
15.555556
46
0.65
794244d0fb94f4613871c46cc34e89661efa0174
25,223
py
Python
keystone/tests/unit/core.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/core.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/core.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.031944
79
0.630377
79424548d33de4aa405f63c3a67ad80562f4d292
158
py
Python
pistis/__init__.py
mbhall88/metis
8c5e5834f053f276ae937cde4e28b82fe8e1611e
[ "MIT" ]
6
2018-08-27T15:18:54.000Z
2021-07-17T04:17:20.000Z
pistis/__init__.py
mbhall88/metis
8c5e5834f053f276ae937cde4e28b82fe8e1611e
[ "MIT" ]
1
2018-04-17T21:33:34.000Z
2018-04-19T12:50:19.000Z
pistis/__init__.py
mbhall88/pistis
8c5e5834f053f276ae937cde4e28b82fe8e1611e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for pistis.""" __author__ = """Michael Benjamin Hall""" __email__ = 'mbhall88@gmail.com' __version__ = '0.1.0'
19.75
40
0.64557
7942462ea10d087e3bf1663780b2f3165ea22b10
922
py
Python
sorts/radix_sort.py
jenia90/Python
696fb4a681ad9e4d84e0d2b894daf449a3e30b24
[ "MIT" ]
14
2020-10-03T05:43:48.000Z
2021-11-01T21:02:26.000Z
sorts/radix_sort.py
jenia90/Python
696fb4a681ad9e4d84e0d2b894daf449a3e30b24
[ "MIT" ]
2
2020-10-19T17:42:36.000Z
2020-10-19T18:05:18.000Z
sorts/radix_sort.py
jenia90/Python
696fb4a681ad9e4d84e0d2b894daf449a3e30b24
[ "MIT" ]
12
2020-10-03T05:44:19.000Z
2022-01-16T05:37:54.000Z
from __future__ import annotations def radix_sort(list_of_ints: list[int]) -> list[int]: """ radix_sort(range(15)) == sorted(range(15)) True radix_sort(reversed(range(15))) == sorted(range(15)) True radix_sort([1,100,10,1000]) == sorted([1,100,10,1000]) True """ RADIX = 10 plac...
28.8125
58
0.571584
7942463ec6a5c0d6b1032f58303bed69ffbb5d35
2,089
py
Python
testing/testing-analysis-regress_field.py
jenfly/atmos
c0a733b78749098d8cc2caaaacee245e6aeeac07
[ "MIT" ]
16
2015-10-08T06:14:35.000Z
2020-02-12T02:47:33.000Z
testing/testing-analysis-regress_field.py
jenfly/atmos
c0a733b78749098d8cc2caaaacee245e6aeeac07
[ "MIT" ]
null
null
null
testing/testing-analysis-regress_field.py
jenfly/atmos
c0a733b78749098d8cc2caaaacee245e6aeeac07
[ "MIT" ]
3
2018-10-16T07:58:14.000Z
2021-09-17T06:39:00.000Z
import sys sys.path.append('/home/jwalker/dynamics/python/atmos-tools') sys.path.append('/home/jwalker/dynamics/python/atmos-read') import xray import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import collections import pandas as pd import atmos as atm import utils # monsoon-onset mpl.rcPar...
29.013889
72
0.598372
79424770b1f8337bb2cf586e89d8c1a8121df1ba
5,860
py
Python
terrascript/openstack/r.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
terrascript/openstack/r.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
terrascript/openstack/r.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
# terrascript/openstack/r.py import terrascript class openstack_blockstorage_quotaset_v2(terrascript.Resource): pass class openstack_blockstorage_quotaset_v3(terrascript.Resource): pass class openstack_blockstorage_volume_v1(terrascript.Resource): pass class openstack_blockstorage_volume_v2(terrascri...
23.629032
79
0.832253
79424802a8f944657e12fc180a6c7395ea8b623c
5,994
py
Python
Transformer/SLT_transformer/test.py
Seunghoon-Yi/Paper_review-PyTorch
44728cc9c3eee6c0146b0cff8a46099e789dfabc
[ "MIT" ]
2
2021-08-12T13:05:37.000Z
2021-12-30T08:25:18.000Z
Transformer/SLT_transformer/test.py
Seunghoon-Yi/Paper_review-PyTorch
44728cc9c3eee6c0146b0cff8a46099e789dfabc
[ "MIT" ]
null
null
null
Transformer/SLT_transformer/test.py
Seunghoon-Yi/Paper_review-PyTorch
44728cc9c3eee6c0146b0cff8a46099e789dfabc
[ "MIT" ]
null
null
null
from model import SLT_Transformer from dataloader import Vocab_tokenizer, get_loader from sklearn.utils import shuffle import pandas as pd import os import numpy as np import torch import torch.nn as nn device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') def eval(Model, iterator, metr...
42.814286
116
0.621455
7942484b439e4cca8ca6a11c5ce73641d21bf282
596
py
Python
pixel_test.py
ChrisProgramming2018/ReinforcementLearning
d5895d989249978a0b24fa0488433950daeb31bd
[ "MIT" ]
null
null
null
pixel_test.py
ChrisProgramming2018/ReinforcementLearning
d5895d989249978a0b24fa0488433950daeb31bd
[ "MIT" ]
null
null
null
pixel_test.py
ChrisProgramming2018/ReinforcementLearning
d5895d989249978a0b24fa0488433950daeb31bd
[ "MIT" ]
null
null
null
import numpy as np import robosuite as suite from model_cnn import CNNStemNetwork env_name = 'SawyerPickPlace' env = suite.make(env_name, has_renderer=False, ignore_done=True, use_camera_obs=True, has_offscreen_renderer=True, camera_height=84, camera_width=84, ...
18.060606
36
0.666107
79424b80c3637649defad3c6cc964dd7b919e9c3
233
py
Python
configs/dcn/cascade_mask_rcnn_x101_32x4d_fpn_dconv_c3-c5_1x_coco.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
configs/dcn/cascade_mask_rcnn_x101_32x4d_fpn_dconv_c3-c5_1x_coco.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
configs/dcn/cascade_mask_rcnn_x101_32x4d_fpn_dconv_c3-c5_1x_coco.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
_base_ = '../cascade_rcnn/cascade_mask_rcnn_x101_32x4d_fpn_1x_coco.py' model = dict( backbone=dict( dcn=dict(type='DCN', deform_groups=1, fallback_on_stride=False), stage_with_dcn=(False, True, True, True)))
38.833333
73
0.699571
79424cbcc2b860ef06e391f7ca542b48fd6590ce
4,527
py
Python
tensorflow/tools/docs/tf_doctest.py
yolman230/tensorflow
8180678e1b71f9e4326b9d84987d78232000bac2
[ "Apache-2.0" ]
2
2019-12-10T11:03:50.000Z
2020-07-22T22:04:14.000Z
tensorflow/tools/docs/tf_doctest.py
yolman230/tensorflow
8180678e1b71f9e4326b9d84987d78232000bac2
[ "Apache-2.0" ]
2
2021-08-25T15:53:30.000Z
2022-02-10T01:40:41.000Z
tensorflow/tools/docs/tf_doctest.py
yolman230/tensorflow
8180678e1b71f9e4326b9d84987d78232000bac2
[ "Apache-2.0" ]
1
2019-12-10T05:27:13.000Z
2019-12-10T05:27:13.000Z
# Lint as: python3 # Copyright 2019 The TensorFlow 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 ...
28.118012
80
0.674398
79424d2fb1ce244159d7a3b0c533ef36236d4262
7,650
py
Python
sdk/python/pulumi_azure_native/network/v20200401/get_local_network_gateway.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200401/get_local_network_gateway.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200401/get_local_network_gateway.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
36.428571
229
0.652418
79424eb4899625bb1d3174966210aac2fb2111ec
541
py
Python
bigbrain/bigbrain/oauth2/tags/customfilters.py
slhill/bigbrain
69dcf775c450c867c8c65c1b05e06cb6d3a7e5d4
[ "Apache-2.0" ]
null
null
null
bigbrain/bigbrain/oauth2/tags/customfilters.py
slhill/bigbrain
69dcf775c450c867c8c65c1b05e06cb6d3a7e5d4
[ "Apache-2.0" ]
null
null
null
bigbrain/bigbrain/oauth2/tags/customfilters.py
slhill/bigbrain
69dcf775c450c867c8c65c1b05e06cb6d3a7e5d4
[ "Apache-2.0" ]
null
null
null
from google.appengine.ext import webapp import json register = webapp.template.create_template_register() def gql_json_parser(query_obj): result = [] for entry in query_obj: result.append(dict([(p, unicode(getattr(entry, p))) for p in entry.properties()])) return result @register.filter(name='mak...
24.590909
90
0.731978
79424f1e8410408076d00010566f2bd8e4c9c1d6
748
py
Python
steps/oci-compute-step-instances-start/step.py
Bryxxit/relay-integrations-relay-oci-compute
d5d7f00317b9a58fecef9969660d50291ec4eb6b
[ "Apache-2.0" ]
null
null
null
steps/oci-compute-step-instances-start/step.py
Bryxxit/relay-integrations-relay-oci-compute
d5d7f00317b9a58fecef9969660d50291ec4eb6b
[ "Apache-2.0" ]
null
null
null
steps/oci-compute-step-instances-start/step.py
Bryxxit/relay-integrations-relay-oci-compute
d5d7f00317b9a58fecef9969660d50291ec4eb6b
[ "Apache-2.0" ]
2
2021-01-12T17:09:00.000Z
2021-01-13T12:57:32.000Z
#!/usr/bin/env python import oci from relay_sdk import Interface, Dynamic as D relay = Interface() config = { "user": relay.get(D.oci.connection.userOCID), "key_content": relay.get(D.oci.connection.keyContent), "fingerprint": relay.get(D.oci.connection.fingerprint), "tenancy": relay.get(D.oci.connecti...
24.933333
59
0.744652
79425005707466e3d2dcaef4913ae1b768d5d323
2,818
py
Python
samples.py
smartsheet-samples/python-snippets
04951c2ca8ae1a97386bdd3fa6e010f2845e1421
[ "MIT" ]
3
2018-05-14T14:08:33.000Z
2021-07-05T16:01:00.000Z
samples.py
smartsheet-samples/python-snippets
04951c2ca8ae1a97386bdd3fa6e010f2845e1421
[ "MIT" ]
null
null
null
samples.py
smartsheet-samples/python-snippets
04951c2ca8ae1a97386bdd3fa6e010f2845e1421
[ "MIT" ]
2
2019-04-12T16:59:19.000Z
2021-09-03T12:13:23.000Z
# Install the smartsheet sdk with the command: pip install smartsheet-python-sdk import smartsheet import logging # TODO: Set your API access token here, or leave as None and set as environment variable "SMARTSHEET_ACCESS_TOKEN" access_token = None # Download an image in a cell def download_cell_image(client, sheet_i...
29.978723
124
0.742725
79425119b157d84c715d6604792d8a4658441608
1,048
py
Python
UE4Parse/Assets/Objects/Decompress.py
MinshuG/pyUE4Parse
96cda8132ff423bd36be20828025c2c1c0a7e406
[ "MIT" ]
13
2021-06-09T09:21:00.000Z
2022-03-30T22:13:24.000Z
UE4Parse/Assets/Objects/Decompress.py
MinshuG/pyUE4Parse
96cda8132ff423bd36be20828025c2c1c0a7e406
[ "MIT" ]
3
2021-09-04T22:23:02.000Z
2022-03-04T09:45:45.000Z
UE4Parse/Assets/Objects/Decompress.py
MinshuG/pyUE4Parse
96cda8132ff423bd36be20828025c2c1c0a7e406
[ "MIT" ]
6
2021-09-02T10:28:21.000Z
2022-03-30T22:13:37.000Z
def Decompress(buffer: bytes, method, decompressSize = 0) -> bytes: if method == "Oodle": from UE4Parse.Oodle import Decompress as OoDecompress result = OoDecompress(buffer=buffer, decompressLength=decompressSize) assert len(result) == decompressSize return result elif method =...
38.814815
78
0.674618
7942514027cd4e07d0a0d41f220087ae70649244
53,763
py
Python
plugins/modules/oci_database_autonomous_database.py
rishimahajan/oci-ansible-collection
3a0cfd55347466fcd8ab257d3d7c41d58f5469ab
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_database_autonomous_database.py
rishimahajan/oci-ansible-collection
3a0cfd55347466fcd8ab257d3d7c41d58f5469ab
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_database_autonomous_database.py
rishimahajan/oci-ansible-collection
3a0cfd55347466fcd8ab257d3d7c41d58f5469ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
47.917112
160
0.626156
794252279fa1684065e1622fa47ab7b08a979b08
96,851
py
Python
gaugette/fonts/verdana_24.py
wsiffer/Google-Bartender
37018d3efe33a84074a6dccbce9e82f20ef3c923
[ "MIT" ]
6
2020-07-30T00:21:29.000Z
2022-03-16T23:31:09.000Z
gaugette/fonts/verdana_24.py
antndeb/Google-Bartender
37018d3efe33a84074a6dccbce9e82f20ef3c923
[ "MIT" ]
null
null
null
gaugette/fonts/verdana_24.py
antndeb/Google-Bartender
37018d3efe33a84074a6dccbce9e82f20ef3c923
[ "MIT" ]
1
2022-03-16T23:39:29.000Z
2022-03-16T23:39:29.000Z
# coding=utf-8 # Module verdana_24 # generated from Verdana 18pt name = "Verdana 24" start_char = '!' end_char = chr(127) char_height = 24 space_width = 12 gap_width = 3 bitmaps = ( # @0 '!' (2 pixels wide) 0x00, # 0xC0, # OO 0xC0, # OO 0xC0, # OO 0xC0, # OO 0xC0, # OO ...
36.111484
292
0.417497
79425453dcbb4c0d5645db8be440c0f6d4e0ef17
168,302
py
Python
Lib/test/test_buffer.py
tai271828/RustPython
9fb70707c4803f9f6d79dd4c8077bd16f0a9be45
[ "CC-BY-4.0", "MIT" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
Lib/test/test_buffer.py
tai271828/RustPython
9fb70707c4803f9f6d79dd4c8077bd16f0a9be45
[ "CC-BY-4.0", "MIT" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
Lib/test/test_buffer.py
tai271828/RustPython
9fb70707c4803f9f6d79dd4c8077bd16f0a9be45
[ "CC-BY-4.0", "MIT" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
# # The ndarray object from _testbuffer.c is a complete implementation of # a PEP-3118 buffer provider. It is independent from NumPy's ndarray # and the tests don't require NumPy. # # If NumPy is present, some tests check both ndarray implementations # against each other. # # Most ndarray tests also check that ...
38.042948
88
0.512109
794254654f00f6fd4b817c6016e9d9c1874f374e
224
py
Python
espaloma/mm/__init__.py
jstaker7/espaloma
d80d280acd608dc04c93966afe15cc3cb74f65a8
[ "MIT" ]
null
null
null
espaloma/mm/__init__.py
jstaker7/espaloma
d80d280acd608dc04c93966afe15cc3cb74f65a8
[ "MIT" ]
null
null
null
espaloma/mm/__init__.py
jstaker7/espaloma
d80d280acd608dc04c93966afe15cc3cb74f65a8
[ "MIT" ]
null
null
null
import espaloma import espaloma.mm import espaloma.mm.angle import espaloma.mm.bond import espaloma.mm.energy import espaloma.mm.functional import espaloma.mm.geometry import espaloma.mm.nonbonded import espaloma.mm.torsion
22.4
29
0.852679
794254acb1899534fd14c75d1c2a9d6d0668358b
2,189
py
Python
runtime/image_classification/models/vgg16/gpus=4_straight/stage2.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
runtime/image_classification/models/vgg16/gpus=4_straight/stage2.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
runtime/image_classification/models/vgg16/gpus=4_straight/stage2.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch class Stage2(torch.nn.Module): def __init__(self): super(Stage2, self).__init__() self.layer1 = torch.nn.Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1)) self.layer2 = torch....
43.78
106
0.582458
794254cc0c48cf27ffad58761d0ddc2b0742ac55
7,227
py
Python
refnx/analysis/test/NISTModels.py
brotwasme/refnx2019
8b62f7668d196c0ec443b47ea669573417a682e6
[ "BSD-3-Clause" ]
null
null
null
refnx/analysis/test/NISTModels.py
brotwasme/refnx2019
8b62f7668d196c0ec443b47ea669573417a682e6
[ "BSD-3-Clause" ]
null
null
null
refnx/analysis/test/NISTModels.py
brotwasme/refnx2019
8b62f7668d196c0ec443b47ea669573417a682e6
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np from numpy import exp, sin, cos, arctan, array, pi from numpy.testing import assert_allclose, assert_ from refnx.analysis import (CurveFitter, Objective, Parameter, Parameters, Model) thisdir, thisfile = os.path.split(__file__) NIST_DIR = os.path.join(thisdir,...
26.569853
76
0.479314
794254e8d9a6a8b9392368c0aaec5786677332d9
1,031
py
Python
Python/yolo-cards-detection-augmenter/main.py
ablaszkiewicz/university
dd477b78a6adddbadc404a2082daa9c92c846a86
[ "MIT" ]
null
null
null
Python/yolo-cards-detection-augmenter/main.py
ablaszkiewicz/university
dd477b78a6adddbadc404a2082daa9c92c846a86
[ "MIT" ]
null
null
null
Python/yolo-cards-detection-augmenter/main.py
ablaszkiewicz/university
dd477b78a6adddbadc404a2082daa9c92c846a86
[ "MIT" ]
1
2021-04-08T14:54:10.000Z
2021-04-08T14:54:10.000Z
from image_operations import * import glob import os iterations = 70 # objects_files = glob.glob('dataset_original/*') objects_files = ["9_H", "10_H", "J_H", "Q_H", "K_H", "A_H", "9_S", "10_S", "J_S", "Q_S", "K_S", "A_S", "9_C", "10_C", "J_C", "Q_C", "K_C", "A_C", "9...
30.323529
89
0.592629
7942552ed4d335b34094039e4fb7443652d0a7b4
337
py
Python
common/SoupUtils.py
loveflycforever/TypeY
a002dc46be1d6f458abfbc27c3e5763ae739487f
[ "MIT" ]
null
null
null
common/SoupUtils.py
loveflycforever/TypeY
a002dc46be1d6f458abfbc27c3e5763ae739487f
[ "MIT" ]
null
null
null
common/SoupUtils.py
loveflycforever/TypeY
a002dc46be1d6f458abfbc27c3e5763ae739487f
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup def strippedTagString(tag): return tag.get_text().replace('\n', '').replace(' ', '') def selectStrippedStrings(soup, selector, index=0): return soup.select(selector)[index].stripped_strings def selectFindAll(soup, selector, tag, index=0): return soup.select(selector)[inde...
24.071429
60
0.727003
794256a008fbdd15ed6a60be1202abd34c7713c2
700
py
Python
Trees/DFS_PostExample.py
yabur/LeetCode_Practice
d002dedf8f6694b9d313c8facf0d39e688decb15
[ "MIT" ]
null
null
null
Trees/DFS_PostExample.py
yabur/LeetCode_Practice
d002dedf8f6694b9d313c8facf0d39e688decb15
[ "MIT" ]
null
null
null
Trees/DFS_PostExample.py
yabur/LeetCode_Practice
d002dedf8f6694b9d313c8facf0d39e688decb15
[ "MIT" ]
null
null
null
class TreeNode: def __init__(self): """ Constructor Args: name (string) space (int) """ self.name = name self.space = space List = [] # child # PostOrder Example # Amount of disk usage node uses # ...
21.212121
50
0.464286
794258c92765b9f28ae980a50eb26f2acf6bd136
258
py
Python
main/service/crypto_stats_service.py
gbdevw/python-fastapi-and-r
06992857575519e1d1e7ffe72090758fb201b698
[ "Apache-2.0" ]
1
2021-12-03T05:27:23.000Z
2021-12-03T05:27:23.000Z
main/service/crypto_stats_service.py
gbdevw/python-fastapi-and-r
06992857575519e1d1e7ffe72090758fb201b698
[ "Apache-2.0" ]
null
null
null
main/service/crypto_stats_service.py
gbdevw/python-fastapi-and-r
06992857575519e1d1e7ffe72090758fb201b698
[ "Apache-2.0" ]
1
2021-12-11T06:55:32.000Z
2021-12-11T06:55:32.000Z
from main.entities.crypto_stats import CryptoStats class CryptoStatsService: """Interface for the CryptoStatsService : Service which provides crypto stats""" async def get_crypto_stats (self, product_id: str = 'btc-usd') -> CryptoStats: pass
43
84
0.751938