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
4a21a1b2dcffe0921b70e2fae855c0ed4ad70746
1,273
py
Python
aws_xray_sdk/core/patcher.py
lukaasp/libs
2865fcfa6a13bae5ce16d2df4a119d96e7b4d514
[ "Unlicense" ]
null
null
null
aws_xray_sdk/core/patcher.py
lukaasp/libs
2865fcfa6a13bae5ce16d2df4a119d96e7b4d514
[ "Unlicense" ]
null
null
null
aws_xray_sdk/core/patcher.py
lukaasp/libs
2865fcfa6a13bae5ce16d2df4a119d96e7b4d514
[ "Unlicense" ]
null
null
null
import logging import importlib log = logging.getLogger(__name__) SUPPORTED_MODULES = ( 'botocore', 'requests', 'sqlite3', 'mysql', ) _PATCHED_MODULES = set() def patch_all(): patch(SUPPORTED_MODULES, raise_errors=False) def patch(modules_to_patch, raise_errors=True): for m in modules_to_...
23.574074
75
0.695208
4a21a1e24c87f131d7bb29493c5a32a430704c1d
625
py
Python
client/migrations/0001_initial.py
akshay98322/MinionLabs-
613b31877e9bde498aa76680936c193256c14956
[ "MIT" ]
null
null
null
client/migrations/0001_initial.py
akshay98322/MinionLabs-
613b31877e9bde498aa76680936c193256c14956
[ "MIT" ]
null
null
null
client/migrations/0001_initial.py
akshay98322/MinionLabs-
613b31877e9bde498aa76680936c193256c14956
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-28 05:02 from django.db import migrations, models import phone_field.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Client', fields=[ ...
25
84
0.5808
4a21a2c1c58b9022e74a606291655d8c5a3840ea
882
py
Python
app/models/__init__.py
sarahmk125/flask-model
4347b2d7fd065c10c150acc7376f21d2cbce6dbc
[ "Apache-2.0" ]
null
null
null
app/models/__init__.py
sarahmk125/flask-model
4347b2d7fd065c10c150acc7376f21d2cbce6dbc
[ "Apache-2.0" ]
null
null
null
app/models/__init__.py
sarahmk125/flask-model
4347b2d7fd065c10c150acc7376f21d2cbce6dbc
[ "Apache-2.0" ]
null
null
null
import os import app.utils.constants as constants import app.utils.secrets as secrets from app.models.models import FinancialModel, ModelParameter from app.models.users import User def init_app(app, db, environment): basedir = os.path.abspath(os.path.dirname(__file__)) # Init based on environment. Prod: use...
38.347826
188
0.739229
4a21a631380b21da57e6f6f331e95caac105f2b2
369
py
Python
pyproc/views/base.py
cmin764/pyproc
be69b5a35fbe3818accea472735effec0825f17c
[ "MIT" ]
null
null
null
pyproc/views/base.py
cmin764/pyproc
be69b5a35fbe3818accea472735effec0825f17c
[ "MIT" ]
null
null
null
pyproc/views/base.py
cmin764/pyproc
be69b5a35fbe3818accea472735effec0825f17c
[ "MIT" ]
null
null
null
"""Base views, routes and utilities exposed by the pyproc web app.""" import functools from flask import ( jsonify ) def responsify(func): """Decorator used to automatically serialize dict like responses.""" @functools.wraps(func) def wrapper(*args, **kwargs): resp = func(*args, **kwargs) ...
18.45
72
0.663957
4a21a63e05609dacdeb5d1203ec2a7f17f6ea927
1,547
py
Python
03_BinarySearch/matrix_median.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
61
2018-02-18T08:16:31.000Z
2022-02-17T17:18:57.000Z
03_BinarySearch/matrix_median.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
1
2018-02-23T20:06:18.000Z
2019-12-29T18:52:20.000Z
03_BinarySearch/matrix_median.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
30
2018-03-28T19:02:23.000Z
2021-07-06T20:00:14.000Z
# Matrix Median # https://www.interviewbit.com/problems/matrix-median/ # # Given a N cross M matrix in which each row is sorted, find the overall median of the matrix. Assume N*M is odd. # # For example, # # Matrix= # [1, 3, 5] # [2, 6, 9] # [3, 6, 9] # # A = [1, 2, 3, 3, 5, 6, 6, 9, 9] # # Median is 5. So, we return 5...
23.089552
113
0.418875
4a21a6d2b45faa642cfd82e5c028125a2cd3bf68
2,661
py
Python
openmc/capi/nuclide.py
hturner08/openmc
5e36cb2f5daf7ab9162734e927dd652c1118a5bd
[ "MIT" ]
1
2019-04-10T12:41:16.000Z
2019-04-10T12:41:16.000Z
openmc/capi/nuclide.py
hturner08/openmc
5e36cb2f5daf7ab9162734e927dd652c1118a5bd
[ "MIT" ]
5
2015-03-11T02:28:25.000Z
2018-11-07T14:10:28.000Z
openmc/capi/nuclide.py
dryuri92/openmc
e28e42e8c250cd1ad586d1d9fd1d20847ad92edd
[ "MIT" ]
null
null
null
from collections.abc import Mapping from ctypes import c_int, c_char_p, POINTER, c_size_t from weakref import WeakValueDictionary import numpy as np from numpy.ctypeslib import as_array from openmc.exceptions import DataError, AllocationError from . import _dll from .core import _FortranObject from .error import _err...
26.878788
72
0.685832
4a21a8538cff03184356d8421a3f0c8d31ab8021
368
py
Python
tests/test_dataset.py
iris-hep/func_adl_uproot
ac39e6dfa516559c2578040bb856fd9dbe647bdc
[ "MIT" ]
null
null
null
tests/test_dataset.py
iris-hep/func_adl_uproot
ac39e6dfa516559c2578040bb856fd9dbe647bdc
[ "MIT" ]
36
2020-09-03T16:43:16.000Z
2022-03-16T15:15:39.000Z
tests/test_dataset.py
iris-hep/func_adl_uproot
ac39e6dfa516559c2578040bb856fd9dbe647bdc
[ "MIT" ]
null
null
null
from func_adl_uproot import UprootDataset def test_uproot_dataset(): ds = UprootDataset('tests/scalars_tree_file.root') assert ds.value().fields == ['int_branch', 'long_branch', 'float_branch', 'double_branch', ...
33.454545
54
0.480978
4a21a9085304a1bb43d5d5fe51cb8e64179bacab
400
py
Python
system/link.py
thinkstack-co/ConnectPyse
ded8b426250aee352598f33ad08b7bcc3c6a3017
[ "MIT" ]
23
2017-01-24T05:44:05.000Z
2021-11-26T17:08:01.000Z
system/link.py
thinkstack-co/ConnectPyse
ded8b426250aee352598f33ad08b7bcc3c6a3017
[ "MIT" ]
10
2017-01-14T21:11:10.000Z
2019-06-16T21:10:29.000Z
system/link.py
thinkstack-co/ConnectPyse
ded8b426250aee352598f33ad08b7bcc3c6a3017
[ "MIT" ]
16
2017-01-24T02:28:19.000Z
2021-07-13T17:23:22.000Z
from ..cw_model import CWModel class Link(CWModel): def __init__(self, json_dict=None): self.id = None # (Integer) self.name = None # *(String(50)) self.tableReferenceId = None # *(Integer) self.url = None # (String(1000)) self._info = None # (Metadata) ...
26.666667
51
0.5725
4a21a9a1778c3ef7283c44c8196271a7edbf6c4b
1,197
py
Python
exercises/exercise_11_3_16.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
exercises/exercise_11_3_16.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
exercises/exercise_11_3_16.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
def secondhighest_thirdlowest(txt_file): # opens file and saves as a set with open(txt_file, 'r') as file: data_set = set(file.read().splitlines()) # removes first highest and first/second lowest data_set.remove(max(data_set)) data_set.remove(min(data_set)) data_set.remove(min(data_set))...
38.612903
79
0.6934
4a21a9ed9cbaf7c486a09937525096ea46392f92
893
py
Python
fatherClass.py
smithgoo/python3Learn
d0c066c10887db3942ca285b86ce464463998aad
[ "MIT" ]
1
2019-05-30T08:08:34.000Z
2019-05-30T08:08:34.000Z
fatherClass.py
smithgoo/python3Learn
d0c066c10887db3942ca285b86ce464463998aad
[ "MIT" ]
null
null
null
fatherClass.py
smithgoo/python3Learn
d0c066c10887db3942ca285b86ce464463998aad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class Animal(object): def run(self): print 'Animal is running....' pass class Dog (Animal): def run(self): print 'Dog is Running ....' pass pass class cat (Animal): pass dog = Dog(); dog.run() flg = isinstance(dog,Dog) ...
11.597403
37
0.582307
4a21a9f432e3e1bd83b55f60e9eb8f12cb8bf556
5,620
py
Python
arxiv_html/settings.py
arXiv/arxiv-readability
20dac4540aaf689b2ab8fdababf51e89e645f077
[ "Apache-2.0", "MIT" ]
19
2019-01-02T16:39:10.000Z
2022-02-11T12:50:27.000Z
arxiv_html/settings.py
cul-it/arxiv-readability
20dac4540aaf689b2ab8fdababf51e89e645f077
[ "Apache-2.0", "MIT" ]
2
2018-11-12T17:09:14.000Z
2018-11-12T17:10:07.000Z
arxiv_html/settings.py
cul-it/arxiv-readability
20dac4540aaf689b2ab8fdababf51e89e645f077
[ "Apache-2.0", "MIT" ]
7
2019-01-10T22:02:01.000Z
2020-12-06T16:28:22.000Z
""" For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os import environ env = environ.Env() # Build paths inside the project like this: os.path.join(BASE_D...
28.969072
96
0.704448
4a21aaa9bcf7f814d085fc8bb7e0a9514be1fc75
1,658
py
Python
tables.py
philkjacobs/superlatives
dbf0da8f9491c27694873ab7119d5cf782b64eb1
[ "MIT" ]
null
null
null
tables.py
philkjacobs/superlatives
dbf0da8f9491c27694873ab7119d5cf782b64eb1
[ "MIT" ]
18
2017-09-07T03:11:46.000Z
2018-02-17T18:50:34.000Z
tables.py
philkjacobs/superlatives
dbf0da8f9491c27694873ab7119d5cf782b64eb1
[ "MIT" ]
1
2017-10-15T10:34:32.000Z
2017-10-15T10:34:32.000Z
import os from asyncio import ensure_future from aiopg.sa import create_engine from sqlalchemy import ( Column, Integer, MetaData, String, Table, ) from urllib import parse # postgres is not a standard urllib.parse URL parse.uses_netloc.append("postgres") metadata = MetaData() player_stats = Table...
27.180328
117
0.683353
4a21ad754bfcacfcac9876c1293c359869191fb9
38,085
py
Python
pybind/slxos/v16r_1_00b/qos/map_/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/qos/map_/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/qos/map_/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
125.279605
1,291
0.740029
4a21ae49f139eb307c2d6c91811d2a4990f89546
55,946
py
Python
idaes/power_generation/unit_models/boiler_heat_exchanger.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
112
2019-02-11T23:16:36.000Z
2022-03-23T20:59:57.000Z
idaes/power_generation/unit_models/boiler_heat_exchanger.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
621
2019-03-01T14:44:12.000Z
2022-03-31T19:49:25.000Z
idaes/power_generation/unit_models/boiler_heat_exchanger.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
154
2019-02-01T23:46:33.000Z
2022-03-23T15:07:10.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
44.972669
87
0.563615
4a21aeab199536dfc7861a7a9169544117ed5c17
1,383
py
Python
great_expectations/datasource/data_connector/sorter/numeric_sorter.py
vanderGoes/great_expectations
9790cd992a8a4de672c640e89ddd7278a0ca0889
[ "Apache-2.0" ]
2
2020-01-28T13:51:53.000Z
2020-01-28T23:13:06.000Z
great_expectations/datasource/data_connector/sorter/numeric_sorter.py
vanderGoes/great_expectations
9790cd992a8a4de672c640e89ddd7278a0ca0889
[ "Apache-2.0" ]
null
null
null
great_expectations/datasource/data_connector/sorter/numeric_sorter.py
vanderGoes/great_expectations
9790cd992a8a4de672c640e89ddd7278a0ca0889
[ "Apache-2.0" ]
1
2022-01-26T03:25:34.000Z
2022-01-26T03:25:34.000Z
import logging from typing import Any import great_expectations.exceptions as ge_exceptions from great_expectations.core.batch import BatchDefinition from great_expectations.datasource.data_connector.sorter import Sorter from great_expectations.util import is_int, is_numeric logger = logging.getLogger(__name__) cla...
39.514286
115
0.709328
4a21aed46c4e0f9b6ae1291a09340821cbef57e4
2,981
py
Python
migrations/versions/a59cf08dedf3_.py
jparker/therminator_server
578d205d539edda0416a0636b57f327e1be97572
[ "MIT" ]
null
null
null
migrations/versions/a59cf08dedf3_.py
jparker/therminator_server
578d205d539edda0416a0636b57f327e1be97572
[ "MIT" ]
null
null
null
migrations/versions/a59cf08dedf3_.py
jparker/therminator_server
578d205d539edda0416a0636b57f327e1be97572
[ "MIT" ]
null
null
null
"""empty message Revision ID: a59cf08dedf3 Revises: Create Date: 2017-06-01 16:33:25.483741 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'a59cf08dedf3' down_revision = None branch_labels = None depends_on = None d...
40.283784
127
0.681315
4a21af1fb6a112b3ef677af1594b707004223479
17,934
py
Python
pkg/workloads/cortex/lib/client/python.py
lapaniku/cortex
746be852caeff2ad80fcf45dcbaaf1899163ad2e
[ "Apache-2.0" ]
null
null
null
pkg/workloads/cortex/lib/client/python.py
lapaniku/cortex
746be852caeff2ad80fcf45dcbaaf1899163ad2e
[ "Apache-2.0" ]
null
null
null
pkg/workloads/cortex/lib/client/python.py
lapaniku/cortex
746be852caeff2ad80fcf45dcbaaf1899163ad2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Cortex Labs, 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 wri...
43.318841
144
0.54472
4a21afabcc1de7d8e7be62d3467ee30bd85699fb
16,175
py
Python
open_spiel/python/algorithms/alpha_zero/alpha_zero.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
null
null
null
open_spiel/python/algorithms/alpha_zero/alpha_zero.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
null
null
null
open_spiel/python/algorithms/alpha_zero/alpha_zero.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
1
2020-12-25T03:02:31.000Z
2020-12-25T03:02:31.000Z
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
37.880562
80
0.697805
4a21afd95eb1f8c4c7aa2f62a7b89b80a78d8c23
838
py
Python
config.py
EricConnect/site-hr-server-python
fdbd44f43d5020d67614f3687dbfdc3f1d165d7d
[ "Apache-2.0" ]
null
null
null
config.py
EricConnect/site-hr-server-python
fdbd44f43d5020d67614f3687dbfdc3f1d165d7d
[ "Apache-2.0" ]
null
null
null
config.py
EricConnect/site-hr-server-python
fdbd44f43d5020d67614f3687dbfdc3f1d165d7d
[ "Apache-2.0" ]
null
null
null
# Define the application directory import os BASE_DIR = os.path.abspath(os.path.dirname(__file__)) # Statement for enabling the development environment DEBUG = True # Define the database - we are working with # SQLite for this example SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(BASE_DIR, 'app.db') DATABASE_...
27.032258
73
0.778043
4a21b0c7227a71cc5dae21a67816762a4b82ae49
4,841
py
Python
custom_components/tahoma/climate_devices/atlantic_electrical_towel_dryer.py
rguillard77/ha-tahoma
88bff1c15ec2c48160c0e1da85c4c6155b8a5c26
[ "MIT" ]
null
null
null
custom_components/tahoma/climate_devices/atlantic_electrical_towel_dryer.py
rguillard77/ha-tahoma
88bff1c15ec2c48160c0e1da85c4c6155b8a5c26
[ "MIT" ]
null
null
null
custom_components/tahoma/climate_devices/atlantic_electrical_towel_dryer.py
rguillard77/ha-tahoma
88bff1c15ec2c48160c0e1da85c4c6155b8a5c26
[ "MIT" ]
null
null
null
"""Support for Atlantic Electrical Towel Dryer.""" from typing import Optional from pyoverkiz.enums import OverkizState from homeassistant.components.climate import ( SUPPORT_PRESET_MODE, SUPPORT_TARGET_TEMPERATURE, ClimateEntity, ) from homeassistant.components.climate.const import ( HVAC_MODE_AUTO, ...
35.595588
87
0.735385
4a21b3089993d32b8bb99eb8bb1ba7a5148202a2
7,029
py
Python
development/generator/scraper.py
Jecosine/banAna
5d59573f54a4e24e91276427843d0fc5dff0d540
[ "Apache-2.0" ]
2
2020-07-24T16:40:27.000Z
2020-08-05T16:18:37.000Z
development/generator/scraper.py
Jecosine/banAna
5d59573f54a4e24e91276427843d0fc5dff0d540
[ "Apache-2.0" ]
2
2020-07-25T06:50:39.000Z
2022-02-09T22:28:06.000Z
development/generator/scraper.py
Jecosine/banAna
5d59573f54a4e24e91276427843d0fc5dff0d540
[ "Apache-2.0" ]
null
null
null
''' Date: 2020-09-01 08:25:56 LastEditors: Jecosine LastEditTime: 2020-09-02 02:39:43 ''' import requests, json from bs4 import BeautifulSoup as bs from dbconnect import * from entities import * import uuid from entities import * import time, random import os header = { "authority": "s.taobao.com", "Connection"...
37.790323
1,334
0.563523
4a21b3478fa70d8aba045ece5940285a4825cbd0
937
py
Python
src/ping.py
Brunopaes/friday
b805e44313ec3b454ff8da7b07caaa30f01c26af
[ "RSA-MD" ]
5
2020-12-14T01:31:02.000Z
2021-02-19T23:41:15.000Z
src/ping.py
Brunopaes/friday
b805e44313ec3b454ff8da7b07caaa30f01c26af
[ "RSA-MD" ]
16
2020-09-16T16:12:51.000Z
2022-02-22T02:20:02.000Z
src/ping.py
Brunopaes/friday
b805e44313ec3b454ff8da7b07caaa30f01c26af
[ "RSA-MD" ]
1
2020-12-10T19:40:30.000Z
2020-12-10T19:40:30.000Z
# -*- coding: utf-8 -*- from speedtest import Speedtest class InternetSpeedRate: def __init__(self): self.speedtest = Speedtest() def get_internet_info(self): """ Internet rate information. Parameters ---------- Returns ------- """ try: ...
18.019231
48
0.512273
4a21b37f75faf2dff302e33698fec949b6737a1b
23,109
py
Python
util/afutil.py
henrypinkard/DeepAutofocus
09bb02aa082238991aa187ffaf0104c93ebc386c
[ "BSD-3-Clause" ]
15
2020-05-15T06:15:58.000Z
2021-06-20T09:08:04.000Z
util/afutil.py
henrypinkard/DeepAutofocus
09bb02aa082238991aa187ffaf0104c93ebc386c
[ "BSD-3-Clause" ]
1
2019-07-04T09:37:34.000Z
2019-07-12T05:27:06.000Z
util/afutil.py
henrypinkard/DeepAF
09bb02aa082238991aa187ffaf0104c93ebc386c
[ "BSD-3-Clause" ]
2
2020-02-12T19:47:20.000Z
2020-03-06T06:34:18.000Z
import matplotlib.patches as mpatches import matplotlib.pyplot as plt import numpy as np from scipy import interpolate from joblib import Parallel, delayed import dask.array as da from util.defocusnetwork import DefocusNetwork from util.imageprocessing import radialaverage from util.pygellan import MagellanDataset imp...
44.185468
139
0.674715
4a21b41126efccf8555c701432b94f9a829a4a91
2,733
py
Python
examples/Graph_Adversarial_Learning/Untargeted/Poisoning/TensorFlow/Metattack.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
examples/Graph_Adversarial_Learning/Untargeted/Poisoning/TensorFlow/Metattack.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
examples/Graph_Adversarial_Learning/Untargeted/Poisoning/TensorFlow/Metattack.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
import numpy as np import graphgallery as gg from graphgallery import functional as gf from graphgallery.datasets import NPZDataset data = NPZDataset('cora', root="~/GraphData/datasets/", verbose=False, transform="standardize") graph = data.graph splits...
43.380952
152
0.525064
4a21b5c313592e5df82bbc546cb6a85e73add8a2
1,487
py
Python
mobo/algorithms.py
yunshengtian/DGEMO
6e656cf1a5912638369b09698a3d9cadc2055874
[ "MIT" ]
41
2020-10-21T01:17:45.000Z
2022-02-07T01:42:44.000Z
mobo/algorithms.py
yunshengtian/DGEMO
6e656cf1a5912638369b09698a3d9cadc2055874
[ "MIT" ]
2
2020-11-06T19:28:22.000Z
2021-03-11T15:19:45.000Z
mobo/algorithms.py
yunshengtian/DGEMO
6e656cf1a5912638369b09698a3d9cadc2055874
[ "MIT" ]
9
2020-11-16T05:24:49.000Z
2022-01-21T08:19:17.000Z
from .mobo import MOBO ''' High-level algorithm specifications by providing config ''' class DGEMO(MOBO): ''' DGEMO ''' config = { 'surrogate': 'gp', 'acquisition': 'identity', 'solver': 'discovery', 'selection': 'dgemo', } class TSEMO(MOBO): ''' TSEMO ...
16.340659
60
0.488231
4a21b700e7fdfebc20aa12e07ad32f65708cac97
6,936
py
Python
speedrunpy/game.py
null2264/speedrun.py
3396a0b38e757348bb42f484ce3929b791db1a9e
[ "MIT" ]
1
2021-04-05T11:03:43.000Z
2021-04-05T11:03:43.000Z
speedrunpy/game.py
null2264/speedrun.py
3396a0b38e757348bb42f484ce3929b791db1a9e
[ "MIT" ]
null
null
null
speedrunpy/game.py
null2264/speedrun.py
3396a0b38e757348bb42f484ce3929b791db1a9e
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021-Present null2264 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, merge, publi...
34.167488
87
0.62327
4a21b7475afe46c7897bf7497912bc89b15d395d
844
py
Python
doc/tutorials/shader_toy/shadertoy_demo_3.py
janscas/arcade
d83dda946563429c8ee7d1a036bc0407758c638f
[ "MIT" ]
null
null
null
doc/tutorials/shader_toy/shadertoy_demo_3.py
janscas/arcade
d83dda946563429c8ee7d1a036bc0407758c638f
[ "MIT" ]
null
null
null
doc/tutorials/shader_toy/shadertoy_demo_3.py
janscas/arcade
d83dda946563429c8ee7d1a036bc0407758c638f
[ "MIT" ]
null
null
null
import arcade from arcade.experimental import Shadertoy # Derive an application window from Arcade's parent Window class class MyGame(arcade.Window): def __init__(self): # Call the parent constructor super().__init__(width=1920, height=1080) # Load a file and create a shader from it ...
32.461538
95
0.645735
4a21b7647217b31a210a39d652652b65529e9a0d
436
py
Python
openbadge-server/openbadge/migrations/0002_datafile_project.py
daniellandau/openbadge-server
af2d1f900efa9099ca72ddba300be1535c782f29
[ "MIT" ]
4
2018-11-24T05:09:04.000Z
2020-12-09T18:41:14.000Z
openbadge-server/openbadge/migrations/0002_datafile_project.py
daniellandau/openbadge-server
af2d1f900efa9099ca72ddba300be1535c782f29
[ "MIT" ]
19
2016-10-13T22:01:21.000Z
2019-05-13T22:14:45.000Z
openbadge-server/openbadge/migrations/0002_datafile_project.py
daniellandau/openbadge-server
af2d1f900efa9099ca72ddba300be1535c782f29
[ "MIT" ]
9
2017-08-11T04:10:56.000Z
2021-03-08T17:29:23.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('openbadge', '0001_initial'), ] operations = [ migrations.AddField( model_name='datafile', name='proj...
21.8
92
0.610092
4a21b786539254357cc6c9e9cd454ab58a8d53e4
8,729
py
Python
dragonchain/transaction_processor/level_3_actions.py
cheeseandcereal/dragonchain
34d34e344b887c2a0eeb591ede2015cc2506a323
[ "Apache-2.0" ]
null
null
null
dragonchain/transaction_processor/level_3_actions.py
cheeseandcereal/dragonchain
34d34e344b887c2a0eeb591ede2015cc2506a323
[ "Apache-2.0" ]
null
null
null
dragonchain/transaction_processor/level_3_actions.py
cheeseandcereal/dragonchain
34d34e344b887c2a0eeb591ede2015cc2506a323
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Dragonchain, Inc. # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # 6. Tr...
38.96875
152
0.680032
4a21b7e4eab913e8f57cb579261415eb822a5338
13,000
py
Python
nsls2ptycho/core/widgets/mplcanvastool.py
dmgav/ptycho_gui
a0c60146d81b99425f6ed39c6c722874ffff63bf
[ "MIT" ]
2
2019-08-05T20:12:45.000Z
2021-06-12T13:10:03.000Z
nsls2ptycho/core/widgets/mplcanvastool.py
Yongme/ptycho_gui
4474008f85b0aad4519fb2236be8b81c8c6e818f
[ "MIT" ]
47
2019-01-15T21:08:55.000Z
2019-08-05T18:41:57.000Z
nsls2ptycho/core/widgets/mplcanvastool.py
Yongme/ptycho_gui
4474008f85b0aad4519fb2236be8b81c8c6e818f
[ "MIT" ]
3
2019-08-05T19:04:00.000Z
2021-08-04T13:45:05.000Z
import os from PyQt5 import QtWidgets from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib.pyplot import Axes import numpy as np from nsls2ptycho.core.widgets.imgTools import estimate_roi from nsls2ptycho.core.widgets.eventhandler import ...
33.505155
111
0.586923
4a21b7f1c321169c08536f883d32964e577e1614
1,956
py
Python
metallicity.py
kadglass/SHELS_metallicity
a58f1f561ecd292b3f3281121f57e4564b7461b6
[ "BSD-3-Clause" ]
1
2020-01-27T18:50:08.000Z
2020-01-27T18:50:08.000Z
metallicity.py
kadglass/SHELS_metallicity
a58f1f561ecd292b3f3281121f57e4564b7461b6
[ "BSD-3-Clause" ]
null
null
null
metallicity.py
kadglass/SHELS_metallicity
a58f1f561ecd292b3f3281121f57e4564b7461b6
[ "BSD-3-Clause" ]
null
null
null
from astropy.table import Table from numpy import log10 bin_size = [0.1, 0.2, 0.3, 0.4, 0.5] environment = ["void", "wall"] for i in bin_size: for j in environment: file = "/Users/leilani/Desktop/SHELS/LGamboa/{0}Bin_{1}.txt".format(i, j, "a+") data =Table.read(file, format = "ascii.commented_h...
27.166667
135
0.482618
4a21b8135bf64f5f8e4cf350d28a3b62761024fc
972
py
Python
sympy/polys/polyerrors.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/polyerrors.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/polyerrors.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
"""Definitions of common exceptions for `polys` module. """ class OperationNotSupported(Exception): def __init__(self, poly, func): self.poly = poly self.func = func def __str__(self): # pragma: no cover return "`%s` operation not supported by %s representation" % (self.func, self.pol...
18
114
0.72428
4a21b996e5977e2965e5b7f91a838adc6023d86c
2,044
py
Python
rl/util.py
sheecegardezi/keras-rl
4b673771bff47cc84d5e4a4088c6575ecce963af
[ "MIT" ]
null
null
null
rl/util.py
sheecegardezi/keras-rl
4b673771bff47cc84d5e4a4088c6575ecce963af
[ "MIT" ]
null
null
null
rl/util.py
sheecegardezi/keras-rl
4b673771bff47cc84d5e4a4088c6575ecce963af
[ "MIT" ]
null
null
null
from keras.models import model_from_config, Sequential, Model, model_from_config import keras.optimizers as optimizers from keras.optimizers import optimizer_from_config def clone_model(model, custom_objects={}): # Requires Keras 1.0.7 since get_config has breaking changes. config = { 'class_name': mo...
32.967742
105
0.701076
4a21ba40a43a7a209f76e35ac34383bf6c7708bc
43,597
gyp
Python
ash/ash.gyp
SlimKatLegacy/android_external_chromium_org
ee480ef5039d7c561fc66ccf52169ead186f1bea
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-04T02:36:53.000Z
2016-06-25T11:22:17.000Z
ash/ash.gyp
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ash/ash.gyp
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2015-02-09T08:49:30.000Z
2017-08-26T02:03:34.000Z
# Copyright (c) 2012 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. { 'variables': { 'chromium_code': 1, 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', }, 'includes': [ 'ash_resources.gypi', ], ...
42.995069
94
0.653187
4a21bb1cab0cb48a487d56870f636ff0a505978c
4,952
py
Python
models/unet/run_unet.py
divelab/mri
e181b446acfc6f9ac3f42657f710dd583e77d1aa
[ "MIT" ]
1
2019-04-01T05:16:37.000Z
2019-04-01T05:16:37.000Z
models/unet/run_unet.py
jtamir/fastMRI
e9b97be6949ec656d01d5d89f0ceea1d25ac4ba8
[ "MIT" ]
null
null
null
models/unet/run_unet.py
jtamir/fastMRI
e9b97be6949ec656d01d5d89f0ceea1d25ac4ba8
[ "MIT" ]
1
2018-12-13T17:17:23.000Z
2018-12-13T17:17:23.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import pathlib import sys from collections import defaultdict import numpy as np import torch from torch.utils.data import DataLoader from ...
35.884058
92
0.65206
4a21bd33954b88f5b64d265b7886632a8194efb2
1,706
py
Python
openfmbsim/devices/conducting_equipment.py
garretfick/openfmb-device-simulator
d9065387d037723c1054d0fb3e12698f0435bb63
[ "Apache-2.0" ]
2
2019-09-24T20:21:19.000Z
2021-04-17T09:17:13.000Z
openfmbsim/devices/conducting_equipment.py
garretfick/openfmb-device-simulator
d9065387d037723c1054d0fb3e12698f0435bb63
[ "Apache-2.0" ]
3
2019-08-12T15:57:15.000Z
2021-05-28T03:10:58.000Z
openfmbsim/devices/conducting_equipment.py
garretfick/openfmb-device-simulator
d9065387d037723c1054d0fb3e12698f0435bb63
[ "Apache-2.0" ]
6
2019-07-29T13:39:16.000Z
2021-05-02T00:56:26.000Z
# Copyright 2019 Smarter Grid Solutions # # 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 agr...
36.297872
75
0.665885
4a21bde0e00d58bbda13c730e4191f2fa5fc06f9
15,992
py
Python
flexget/plugins/input/plex.py
blastcodem/Flexget
bcd2552e9c77187e2fd82a42e79a30ff05c065ec
[ "MIT" ]
null
null
null
flexget/plugins/input/plex.py
blastcodem/Flexget
bcd2552e9c77187e2fd82a42e79a30ff05c065ec
[ "MIT" ]
null
null
null
flexget/plugins/input/plex.py
blastcodem/Flexget
bcd2552e9c77187e2fd82a42e79a30ff05c065ec
[ "MIT" ]
null
null
null
"""Plugin for plex media server (www.plexapp.com).""" from xml.dom.minidom import parseString import re import logging import os from os.path import basename from socket import gethostbyname from string import find from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexget....
49.206154
183
0.53977
4a21bdeaced06c899cb3fc12343cbdf823a3ff9d
318
py
Python
Dataset/Leetcode/train/1/57.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/1/57.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/1/57.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution(object): def XXX(self, nums, target): index_List = [] for i in range(len(nums)): for j in range(i+1, len(nums)): if nums[i] + nums[j] == target: index_List.append(i) index_List.append(j) return index_List
28.909091
47
0.487421
4a21bedd0eb364d7963a82a8cd00df31d26e87d4
4,312
py
Python
tests/test_linops/test_kronecker.py
feimeng93/probnum
4e46273c0157d26b9be2a7a415ccf69a3691ec22
[ "MIT" ]
1
2021-04-14T14:17:12.000Z
2021-04-14T14:17:12.000Z
tests/test_linops/test_kronecker.py
jzenn/probnum
cb9e5ec07384913049a312ac62cfec88970f1c8d
[ "MIT" ]
16
2021-03-08T07:25:31.000Z
2022-03-28T21:05:53.000Z
tests/test_linops/test_kronecker.py
jzenn/probnum
cb9e5ec07384913049a312ac62cfec88970f1c8d
[ "MIT" ]
2
2022-01-23T14:24:08.000Z
2022-01-29T01:26:47.000Z
"""Tests for Kronecker-type linear operators.""" import unittest import numpy as np from probnum import linops from tests.testing import NumpyAssertions class LinearOperatorKroneckerTestCase(unittest.TestCase, NumpyAssertions): """Test Kronecker-type operators.""" def setUp(self): self.kronecker_m...
36.542373
87
0.523655
4a21bf664982fcd9fa213cb00de0e03c1f6d7682
13,183
py
Python
zs/tests/test_reader.py
njsmith/zs
42ca7679c2b986243abcff048bc42d49c204048c
[ "BSD-2-Clause" ]
35
2015-06-19T02:36:14.000Z
2021-09-22T21:19:59.000Z
zs/tests/test_reader.py
njsmith/zs
42ca7679c2b986243abcff048bc42d49c204048c
[ "BSD-2-Clause" ]
2
2016-03-07T00:52:41.000Z
2021-11-14T16:48:33.000Z
zs/tests/test_reader.py
njsmith/zs
42ca7679c2b986243abcff048bc42d49c204048c
[ "BSD-2-Clause" ]
4
2015-01-30T09:23:18.000Z
2019-02-05T18:03:08.000Z
# This file is part of ZS # Copyright (C) 2013-2014 Nathaniel Smith <njs@pobox.com> # See file LICENSE.txt for license information. import os import os.path import sys import hashlib from six import int2byte, byte2int, BytesIO, integer_types from nose.tools import assert_raises from .util import test_data_path from ...
39.352239
84
0.579079
4a21bf77b28e779fb9c125e86a7508e8ee8de0c5
1,562
py
Python
var/spack/repos/builtin/packages/piranha/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/piranha/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/piranha/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2022-01-18T23:39:24.000Z
2022-01-18T23:39:24.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Piranha(CMakePackage): """Piranha is a computer-algebra library for the symbolic manipulat...
36.325581
93
0.668374
4a21c05dc648cedbf0b4c2947f2de897b1c6cba9
3,502
py
Python
src/qa-lstm.py
Asteur/qa
cc9ec2af44d3e261cc865988d9828de165ec47e4
[ "Apache-2.0" ]
261
2016-10-08T09:53:30.000Z
2021-03-29T09:10:05.000Z
src/qa-lstm.py
Asteur/qa
cc9ec2af44d3e261cc865988d9828de165ec47e4
[ "Apache-2.0" ]
5
2017-04-06T13:15:53.000Z
2018-06-12T11:58:49.000Z
src/qa-lstm.py
Asteur/qa
cc9ec2af44d3e261cc865988d9828de165ec47e4
[ "Apache-2.0" ]
75
2016-10-10T08:13:36.000Z
2019-11-08T02:24:03.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function from gensim.models import Word2Vec from keras.callbacks import ModelCheckpoint from keras.layers import Dense, Merge, Dropout from keras.layers.embeddings import Embedding from keras.layers.recurrent import LSTM from keras.models import Sequential ...
35.734694
78
0.739863
4a21c1496e1714e98680704d42db8ed15a975153
147
py
Python
simeng/util/statistics.py
wstlabs/similarity-engine
fde4dd31b0f1738573513159f950823cb2d4a7ce
[ "Apache-2.0" ]
null
null
null
simeng/util/statistics.py
wstlabs/similarity-engine
fde4dd31b0f1738573513159f950823cb2d4a7ce
[ "Apache-2.0" ]
null
null
null
simeng/util/statistics.py
wstlabs/similarity-engine
fde4dd31b0f1738573513159f950823cb2d4a7ce
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict def valhist(pairs): h = defaultdict(int) for item,value in pairs: h[value] += 1 return h
16.333333
35
0.646259
4a21c1c45070dd9d5012e87b835e5d373e4f99bf
4,148
py
Python
fdk_client/platform/OAuthClient.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/OAuthClient.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/OAuthClient.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""OAuth Client.""" from threading import Timer from typing import Dict from urllib import parse import base64 import asyncio from ..common.exceptions import FDKOAuthCodeError from ..common.aiohttp_helper import AiohttpHelper from ..common.utils import get_headers_with_signature class OAuthClient: def __init__(...
41.069307
126
0.598843
4a21c1df470fda18bd0a93cd3a7f2717cc7b2fec
2,817
py
Python
src/utils/utils.py
Armagaan/cf-gnnexplainer
22b415e114c52d8d60ca45a40c3cb33c1947400c
[ "MIT" ]
15
2021-06-23T12:59:29.000Z
2022-03-22T21:01:49.000Z
src/utils/utils.py
Armagaan/cf-gnnexplainer
22b415e114c52d8d60ca45a40c3cb33c1947400c
[ "MIT" ]
3
2021-07-12T06:31:56.000Z
2021-09-08T09:21:12.000Z
src/utils/utils.py
Armagaan/cf-gnnexplainer
22b415e114c52d8d60ca45a40c3cb33c1947400c
[ "MIT" ]
6
2021-09-23T17:47:31.000Z
2022-03-21T11:09:32.000Z
import os import errno import torch import numpy as np import pandas as pd from torch_geometric.utils import k_hop_subgraph, dense_to_sparse, to_dense_adj, subgraph def mkdir_p(path): try: os.makedirs(path) except OSError as exc: # Python >2.5 if exc.errno == errno.EEXIST and os.path.isdir(path): pass els...
31.3
121
0.734824
4a21c3078e4d89765288ad05c11efa3641519e47
4,085
py
Python
official/vision/beta/modeling/decoders/aspp.py
faizoctar/models
126ce652d0efdc3fa82d46d7f1fbd508262a56f8
[ "Apache-2.0" ]
1
2019-10-05T17:06:09.000Z
2019-10-05T17:06:09.000Z
official/vision/beta/modeling/decoders/aspp.py
faizoctar/models
126ce652d0efdc3fa82d46d7f1fbd508262a56f8
[ "Apache-2.0" ]
null
null
null
official/vision/beta/modeling/decoders/aspp.py
faizoctar/models
126ce652d0efdc3fa82d46d7f1fbd508262a56f8
[ "Apache-2.0" ]
1
2020-10-19T05:01:53.000Z
2020-10-19T05:01:53.000Z
# Copyright 2020 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 required by applica...
37.477064
80
0.667319
4a21c322da0a997e5387c492effd9bd85b23a8a4
1,061
py
Python
arrow/commands/annotations/add_transcript.py
GMOD/python-apollo3
c1c47e985d95c8995374f6daa5c2e52b6d94ee0d
[ "MIT" ]
5
2017-06-27T19:41:57.000Z
2021-06-05T13:36:11.000Z
arrow/commands/annotations/add_transcript.py
galaxy-genome-annotation/python-apollo
1257e050ee3fc0a7f7ab8a8c780aefee5c8143f8
[ "MIT" ]
28
2017-07-24T15:10:37.000Z
2021-09-03T11:56:35.000Z
arrow/commands/annotations/add_transcript.py
MoffMade/python-apollo
3cc61458cf5c20bd44fde656b8364417b915cfb8
[ "MIT" ]
10
2017-05-10T19:13:44.000Z
2021-08-09T04:52:33.000Z
import click from arrow.cli import pass_context, json_loads from arrow.decorators import custom_exception, dict_output @click.command('add_transcript') @click.option( "--transcript", help="Transcript data", type=str ) @click.option( "--suppress_history", help="Suppress the history of this operatio...
24.674419
173
0.717248
4a21c45d97af86d7881fb4dc197458aba50bd0cf
2,145
py
Python
test/D/HSTeoh/Common/libCompileOptions.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2017-01-28T15:39:07.000Z
2017-01-28T15:39:07.000Z
test/D/HSTeoh/Common/libCompileOptions.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
4
2019-04-11T16:27:45.000Z
2019-04-11T23:56:30.000Z
test/D/HSTeoh/Common/libCompileOptions.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
2
2018-01-16T11:29:16.000Z
2020-05-13T16:48:26.000Z
""" These tests check a problem with the lib/ar setting. """ # # __COPYRIGHT__ # # 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 right...
33.515625
120
0.74359
4a21c47f2a596ef58a03ae6c7e439ed0be0d973b
403
py
Python
leetcode/0141.环形链表/0141-环形链表.py
ruisunyc/-
ef2fd0d58aa683311896bb9442510fedcd013313
[ "Apache-2.0" ]
2
2021-01-08T01:16:32.000Z
2021-01-08T09:36:32.000Z
leetcode/0141.环形链表/0141-环形链表.py
ruisunyc/-
ef2fd0d58aa683311896bb9442510fedcd013313
[ "Apache-2.0" ]
null
null
null
leetcode/0141.环形链表/0141-环形链表.py
ruisunyc/-
ef2fd0d58aa683311896bb9442510fedcd013313
[ "Apache-2.0" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def hasCycle(self, head: ListNode) -> bool: low = fast = head while fast and fast.next: fast = fast.next.next low...
28.785714
47
0.51861
4a21c4fe70c5a65dbdf57cd40e952c732f73c026
3,281
py
Python
nevergrad/common/test_tools.py
xavierzw/nevergrad
97fd5ce56e6c86692e206073516cbd41dd0ce629
[ "MIT" ]
null
null
null
nevergrad/common/test_tools.py
xavierzw/nevergrad
97fd5ce56e6c86692e206073516cbd41dd0ce629
[ "MIT" ]
null
null
null
nevergrad/common/test_tools.py
xavierzw/nevergrad
97fd5ce56e6c86692e206073516cbd41dd0ce629
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools from typing import Iterable, List, Any, Tuple import numpy as np from . import tools from . import testi...
37.712644
102
0.63883
4a21c6019679632d8223825bf0d1ee1d4afcf1eb
9
py
Python
dephell/repositories/_git/__init__.py
OliverHofkens/dephell
6303f416018910668f1635b70cd828a2fd2b2d9e
[ "MIT" ]
1,880
2019-03-21T10:08:25.000Z
2022-03-31T12:41:55.000Z
dephell/repositories/_git/__init__.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
356
2019-03-21T19:08:56.000Z
2021-01-08T17:45:43.000Z
dephell/repositories/_git/__init__.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
157
2019-04-23T01:13:37.000Z
2022-03-24T22:41:18.000Z
# WIP!!!
4.5
8
0.333333
4a21c63b65e4397cb38e995fa01b69400852109f
2,234
py
Python
tests/validation/test_executable_definitions.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
590
2015-10-06T18:22:49.000Z
2022-03-22T16:32:17.000Z
tests/validation/test_executable_definitions.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
300
2015-10-06T18:58:11.000Z
2022-03-22T14:01:44.000Z
tests/validation/test_executable_definitions.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
270
2015-10-08T19:47:38.000Z
2022-03-10T04:17:51.000Z
from functools import partial from graphql.validation import ExecutableDefinitionsRule from .harness import assert_validation_errors assert_errors = partial(assert_validation_errors, ExecutableDefinitionsRule) assert_valid = partial(assert_errors, errors=[]) def describe_validate_executable_definitions(): def...
23.030928
76
0.378693
4a21c666abea5688cae282487c437a2d7e6a2ec9
6,353
py
Python
heat/engine/resources/openstack/scaling_policy.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/openstack/scaling_policy.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/openstack/scaling_policy.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
36.936047
78
0.593578
4a21c86f99560254758e13220d15cb43352d413e
8,522
py
Python
networkapi/plugins/BGP/NXAPI/Generic.py
vinicius-marinho/GloboNetworkAPI
94651d3b4dd180769bc40ec966814f3427ccfb5b
[ "Apache-2.0" ]
73
2015-04-13T17:56:11.000Z
2022-03-24T06:13:07.000Z
networkapi/plugins/BGP/NXAPI/Generic.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
99
2015-04-03T01:04:46.000Z
2021-10-03T23:24:48.000Z
networkapi/plugins/BGP/NXAPI/Generic.py
shildenbrand/GloboNetworkAPI
515d5e961456cee657c08c275faa1b69b7452719
[ "Apache-2.0" ]
64
2015-08-05T21:26:29.000Z
2022-03-22T01:06:28.000Z
# -*- coding: utf-8 -*- import json import logging import requests from requests.auth import HTTPBasicAuth from requests.exceptions import HTTPError from networkapi.equipamento.models import EquipamentoAcesso from networkapi.plugins import exceptions from networkapi.plugins.BGP.base import BaseBgpPlugin log = loggin...
30.219858
79
0.538019
4a21c96c261b0a488f73bc5deaf1d6a95c0f2d1b
1,490
py
Python
PLADD/Markov.py
tgieseking/Power-Grid-PLADD-Model
a4262bc2bef45362b31f976cdfb72b54ba05764d
[ "MIT" ]
null
null
null
PLADD/Markov.py
tgieseking/Power-Grid-PLADD-Model
a4262bc2bef45362b31f976cdfb72b54ba05764d
[ "MIT" ]
null
null
null
PLADD/Markov.py
tgieseking/Power-Grid-PLADD-Model
a4262bc2bef45362b31f976cdfb72b54ba05764d
[ "MIT" ]
null
null
null
import random import numpy as np class MarkovComponent: # a Markov Chain. def __init__(self, transient_matrix, absorbing_matrix, outputs, start_index = 0): self.transient_matrix = transient_matrix # The transition matrix between transient nodes self.absorbing_matrix = absorbing_matrix ...
40.27027
137
0.724832
4a21cabc764334b166ca3eeecea8cd433ada54ff
999
py
Python
tests/torchutils/logger/test_logger.py
lzcn/torchutils
8dc78ddcde72f27758e9774f3d1f5f6172e1a5e9
[ "MIT" ]
2
2021-01-15T03:13:46.000Z
2021-04-20T16:20:52.000Z
tests/torchutils/logger/test_logger.py
lzcn/torchutils
8dc78ddcde72f27758e9774f3d1f5f6172e1a5e9
[ "MIT" ]
null
null
null
tests/torchutils/logger/test_logger.py
lzcn/torchutils
8dc78ddcde72f27758e9774f3d1f5f6172e1a5e9
[ "MIT" ]
null
null
null
import logging import pytest import torchutils LEVELS = ["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG"] LOGGER = logging.getLogger("main") def test_stream_logger(capsys): torchutils.logger.config() LOGGER.critical("") captured = capsys.readouterr() assert "main" in captured.err def test_file_lo...
23.232558
58
0.654655
4a21cae50d38dbe0f047d97e69ba8c562017e720
59,861
py
Python
psutil/tests/test_process.py
leokhoa/psutil
978296429c3eac20f25e6dff7c2e2ab59327221e
[ "BSD-3-Clause" ]
1
2020-07-27T09:45:55.000Z
2020-07-27T09:45:55.000Z
psutil/tests/test_process.py
leokhoa/psutil
978296429c3eac20f25e6dff7c2e2ab59327221e
[ "BSD-3-Clause" ]
null
null
null
psutil/tests/test_process.py
leokhoa/psutil
978296429c3eac20f25e6dff7c2e2ab59327221e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tests for psutil.Process class.""" import collections import errno import getpass import itertools import os import signal impo...
38.62
79
0.571741
4a21cbd881bc43b8d026847144377769705edb80
105,894
py
Python
astropy/table/table.py
rirze/astropy
29d5afb71b66eba45f147666443a847246176944
[ "BSD-3-Clause" ]
null
null
null
astropy/table/table.py
rirze/astropy
29d5afb71b66eba45f147666443a847246176944
[ "BSD-3-Clause" ]
1
2020-01-06T19:22:26.000Z
2020-01-06T19:22:26.000Z
astropy/table/table.py
rirze/astropy
29d5afb71b66eba45f147666443a847246176944
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from .index import TableIndices, TableLoc, TableILoc, TableLocIndices import re import sys from collections import OrderedDict, Mapping import warnings from copy import deepcopy import numpy as np from numpy import ma from .. import log from ..io import...
36.705026
109
0.547821
4a21cce6a8775ff208f2fbc94ff5c4e4fc25720e
781
py
Python
2) Detecting Edges and Applying Image Filters/#1 Blurring/other_blurs.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
2) Detecting Edges and Applying Image Filters/#1 Blurring/other_blurs.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
2) Detecting Edges and Applying Image Filters/#1 Blurring/other_blurs.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
import cv2 as cv if __name__ == "__main__": img = cv.imread('../../assets/test1.jpg') cv.imshow('Original Image', img) size = 9 # all kernels will be 9x9 # median blur filter blur_img = cv.medianBlur(img, size) cv.imshow("Median Blur Output", blur_img) # guassian blur filter blur_...
28.925926
82
0.650448
4a21cd50f04c8284783e55666d4ed43eb5b82e52
7,045
py
Python
3ddfa/inference.py
bruinxiong/Rotate-and-Render
135d2b7b02ca4b3bdf7961b260466ff8b64bdb59
[ "CC-BY-4.0" ]
397
2020-03-18T06:45:04.000Z
2022-03-28T12:43:25.000Z
3ddfa/inference.py
bruinxiong/Rotate-and-Render
135d2b7b02ca4b3bdf7961b260466ff8b64bdb59
[ "CC-BY-4.0" ]
39
2020-03-18T17:11:45.000Z
2022-03-29T08:55:55.000Z
3ddfa/inference.py
bruinxiong/Rotate-and-Render
135d2b7b02ca4b3bdf7961b260466ff8b64bdb59
[ "CC-BY-4.0" ]
104
2020-03-18T11:54:26.000Z
2022-03-18T10:22:54.000Z
#!/usr/bin/env python3 # coding: utf-8 __author__ = 'cleardusk' """ The pipeline of 3DDFA prediction: given one image, predict the 3d face vertices, 68 landmarks and visualization. [todo] 1. CPU optimization: https://pmchojnacki.wordpress.com/2018/10/07/slow-pytorch-cpu-performance """ import torch import torchvisi...
41.441176
133
0.654791
4a21cd963dd1b26557ec46b2c45ceb9605938c86
274
py
Python
web/helpers.py
gak/remrun
6bfdd5b2935ae6f6ccfe5baea07b357b2bcf2589
[ "Apache-2.0" ]
null
null
null
web/helpers.py
gak/remrun
6bfdd5b2935ae6f6ccfe5baea07b357b2bcf2589
[ "Apache-2.0" ]
1
2015-11-21T02:25:37.000Z
2015-11-21T02:25:37.000Z
web/helpers.py
gak/remrun
6bfdd5b2935ae6f6ccfe5baea07b357b2bcf2589
[ "Apache-2.0" ]
null
null
null
# noinspection PyUnresolvedReferences from web.version import version # figlet aafont BANNER = '''\033[1;37m ,_ _ ,_ _ _ _ | (_) | | | (/_ | | | \033[0;34mv\033[1;34m{version} \033[0m '''.format(**locals()).strip() def banner(): return BANNER
17.125
60
0.580292
4a21ce2496318515427a4a7015130fcee028954e
3,692
py
Python
vendor/google/cloud/Dataproc/synth.py
codewithkyle/dnd-website
9d30d58732b2e56d0bbd777d701759ff12dba265
[ "MIT" ]
null
null
null
vendor/google/cloud/Dataproc/synth.py
codewithkyle/dnd-website
9d30d58732b2e56d0bbd777d701759ff12dba265
[ "MIT" ]
null
null
null
vendor/google/cloud/Dataproc/synth.py
codewithkyle/dnd-website
9d30d58732b2e56d0bbd777d701759ff12dba265
[ "MIT" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.4
94
0.64572
4a21cf2b28c1f0c1bd68cf9b43d90e9226d987dd
198
py
Python
fortunate/fortunate/urls.py
kryptn/Fortunate
a308a2c181d66aeeb9a4f7769eac8bf8e41fe3b4
[ "MIT" ]
null
null
null
fortunate/fortunate/urls.py
kryptn/Fortunate
a308a2c181d66aeeb9a4f7769eac8bf8e41fe3b4
[ "MIT" ]
null
null
null
fortunate/fortunate/urls.py
kryptn/Fortunate
a308a2c181d66aeeb9a4f7769eac8bf8e41fe3b4
[ "MIT" ]
null
null
null
from fortunate.views import TokenAPI, FortuneAPI routes = [{'rule': '/token/', 'view_func': TokenAPI.as_view('token')}, {'rule': '/fortune/', 'view_func': FortuneAPI.as_view('fortune')}]
39.6
76
0.656566
4a21cf9e9fcefbb4f7dc1c5956ef3736e384f438
1,839
py
Python
facebook_business/adobjects/reachfrequencyadformat.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
576
2018-05-01T19:09:32.000Z
2022-03-31T11:45:11.000Z
facebook_business/adobjects/reachfrequencyadformat.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
217
2018-05-03T07:31:59.000Z
2022-03-29T14:19:52.000Z
facebook_business/adobjects/reachfrequencyadformat.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
323
2018-05-01T20:32:26.000Z
2022-03-29T07:05:12.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
34.055556
79
0.736813
4a21d08f9dd83f5a1859de09d2ec5648d315fd65
5,485
py
Python
verify.py
michael-yxchen/sgx-evoting
55f9958e02c1397641a579dad22483b1bcd18a37
[ "BSD-3-Clause" ]
1
2021-06-17T14:11:34.000Z
2021-06-17T14:11:34.000Z
verify.py
michael-yxchen/sgx-evoting
55f9958e02c1397641a579dad22483b1bcd18a37
[ "BSD-3-Clause" ]
11
2021-05-10T06:17:17.000Z
2021-09-29T23:35:31.000Z
verify.py
michael-yxchen/sgx-evoting
55f9958e02c1397641a579dad22483b1bcd18a37
[ "BSD-3-Clause" ]
3
2021-07-30T12:59:53.000Z
2021-07-31T23:05:16.000Z
import base64 import json import os import pathlib import sys import time import auditee import requests from blessings import Terminal from colorama import init as init_colorama # , Fore, Back, Style from cryptography.hazmat.primitives.asymmetric import ec from cryptography.hazmat.primitives import hashes, serializ...
36.812081
108
0.540018
4a21d0c1c3b9b78dc28ccc59d8254ad7358252a8
2,839
py
Python
06-Curriculum-Resources/utils/jupyter_linters/lintnb/lintnb.py
anirudhmungre/sneaky-lessons
8e48015c50865059db96f8cd369bcc15365d66c7
[ "ADSL" ]
null
null
null
06-Curriculum-Resources/utils/jupyter_linters/lintnb/lintnb.py
anirudhmungre/sneaky-lessons
8e48015c50865059db96f8cd369bcc15365d66c7
[ "ADSL" ]
null
null
null
06-Curriculum-Resources/utils/jupyter_linters/lintnb/lintnb.py
anirudhmungre/sneaky-lessons
8e48015c50865059db96f8cd369bcc15365d66c7
[ "ADSL" ]
null
null
null
# -*- coding: utf-8 -*- """Jupyter Notebook Linter. This module parses all notebooks and runs linters on the code and markdown cells. A temporary file called `deleteme` is generated from the notebook's code and markdown cells. This needs to be added to the gitignore as a backup, but the file should be removed at the e...
29.268041
80
0.630856
4a21d1acc63dd92a6160ad557ab1de932b2889c6
70,596
py
Python
tensorflow/python/kernel_tests/cwise_ops_test.py
285219011/hello-world
dfb71ea206eb9f61e5d97c9727caa1a6449e39cb
[ "Apache-2.0" ]
6
2017-04-25T01:30:41.000Z
2019-12-11T15:08:46.000Z
tensorflow/python/kernel_tests/cwise_ops_test.py
PaulTR/tensorflow
84bcff1e814ee5697b5980535583737f8e81d82f
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/cwise_ops_test.py
PaulTR/tensorflow
84bcff1e814ee5697b5980535583737f8e81d82f
[ "Apache-2.0" ]
4
2017-04-14T07:31:18.000Z
2021-08-30T11:06:24.000Z
# Copyright 2015 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 required by applica...
37.995694
95
0.594963
4a21d30893f50c629bfe1126f39a262fa063511c
13,985
py
Python
thumbor/transformer.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
thumbor/transformer.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
thumbor/transformer.py
enterstudio/thumbor
2f1529604a0f5b2d6d87132b5616841842313215
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com import math import sys from thumbor.point import FocalPoint from th...
38.42033
126
0.613085
4a21d39b734c4938934a4544d5bad6aefd3165ff
9,506
py
Python
datalabs/operations/aggregate/text_matching.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
54
2022-01-26T06:58:58.000Z
2022-03-31T05:11:35.000Z
datalabs/operations/aggregate/text_matching.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
81
2022-01-26T06:46:41.000Z
2022-03-24T05:05:31.000Z
datalabs/operations/aggregate/text_matching.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
7
2022-02-06T09:28:31.000Z
2022-03-16T01:06:37.000Z
from typing import Any, Callable, Iterator, List, Mapping, Optional import numpy as np import sacrebleu from tqdm import tqdm from datalabs.operations.aggregate.aggregating import Aggregating, aggregating from datalabs.operations.featurize import get_gender_bias from datalabs.operations.operation import dataset_opera...
33.237762
87
0.577951
4a21d3ddfe098e06439edc0703696a88eebaf349
399
py
Python
BookMeeting/BookMeeting/wsgi.py
yutanguyen25/BookMeeting
e4c3115e09b4bbbe6ec7d739a7c3febf37b8a63d
[ "MIT" ]
null
null
null
BookMeeting/BookMeeting/wsgi.py
yutanguyen25/BookMeeting
e4c3115e09b4bbbe6ec7d739a7c3febf37b8a63d
[ "MIT" ]
null
null
null
BookMeeting/BookMeeting/wsgi.py
yutanguyen25/BookMeeting
e4c3115e09b4bbbe6ec7d739a7c3febf37b8a63d
[ "MIT" ]
null
null
null
""" WSGI config for BookMeeting project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
4a21d40cb6e103c77caf2cd2ba4decbacbaa01d9
1,156
py
Python
setup.py
popeliao/alpaca-trade-api-python
ebc913af7c67f6dc90c3b6eecb7ff35740cadba0
[ "Apache-2.0" ]
null
null
null
setup.py
popeliao/alpaca-trade-api-python
ebc913af7c67f6dc90c3b6eecb7ff35740cadba0
[ "Apache-2.0" ]
null
null
null
setup.py
popeliao/alpaca-trade-api-python
ebc913af7c67f6dc90c3b6eecb7ff35740cadba0
[ "Apache-2.0" ]
1
2019-07-27T03:04:17.000Z
2019-07-27T03:04:17.000Z
#!/usr/bin/env python import ast import re from setuptools import setup _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('alpaca_trade_api/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) with open('README.md') as readme_file:...
25.688889
62
0.624567
4a21d40d13a2e3a03b8076fdc21c9fe4265d0cfb
5,241
py
Python
src/clients/python/simple_client.py
wilwang-nv/tensorrt-inference-server
a99ab7b1320f06a2ebce6088f2ecc31faf10e13e
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/simple_client.py
wilwang-nv/tensorrt-inference-server
a99ab7b1320f06a2ebce6088f2ecc31faf10e13e
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/simple_client.py
wilwang-nv/tensorrt-inference-server
a99ab7b1320f06a2ebce6088f2ecc31faf10e13e
[ "BSD-3-Clause" ]
1
2020-08-15T09:56:00.000Z
2020-08-15T09:56:00.000Z
#!/usr/bin/python # Copyright (c) 2018, NVIDIA CORPORATION. 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 l...
48.981308
95
0.666667
4a21d4117e03ba5e579655ccb4a6a0eee892fa9e
661
py
Python
odps/df/backends/sqlalchemy/tests/__init__.py
wjsi/aliyun-odps-python-sdk
8b064340e4376def201b8d8fdc0c2fa021aae9be
[ "Apache-2.0" ]
412
2015-11-01T09:27:52.000Z
2022-03-26T05:04:03.000Z
odps/df/backends/sqlalchemy/tests/__init__.py
wjsi/aliyun-odps-python-sdk
8b064340e4376def201b8d8fdc0c2fa021aae9be
[ "Apache-2.0" ]
168
2015-11-16T09:46:39.000Z
2022-03-17T06:35:26.000Z
odps/df/backends/sqlalchemy/tests/__init__.py
wjsi/aliyun-odps-python-sdk
8b064340e4376def201b8d8fdc0c2fa021aae9be
[ "Apache-2.0" ]
103
2015-12-01T08:10:09.000Z
2022-02-21T12:46:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding 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-...
36.722222
74
0.747352
4a21d587a16f5b0b7d797a75ae3d2b23ac80be1c
1,114
py
Python
tests/test_orth.py
Novermars/chaospy
800f26203c21ee69c61bdba6a53f6cbede653167
[ "MIT" ]
1
2020-04-29T20:53:25.000Z
2020-04-29T20:53:25.000Z
tests/test_orth.py
TribleCircle/chaospy
f22aa31e2a338a32a6d09b810c5b629c10a87236
[ "BSD-3-Clause" ]
null
null
null
tests/test_orth.py
TribleCircle/chaospy
f22aa31e2a338a32a6d09b810c5b629c10a87236
[ "BSD-3-Clause" ]
1
2019-11-24T17:16:30.000Z
2019-11-24T17:16:30.000Z
"""Testing polynomial related to distributions """ import chaospy as cp import numpy as np def test_basic_mom(): dist = cp.Normal(0, 1) res = np.array([1, 0, 1, 0, 3]) assert np.allclose(dist.mom(np.arange(5)), res) def test_operator_E(): dist = cp.Normal(0, 1) res = np.array([1, 0, 1, 0, 3]) ...
24.217391
57
0.614004
4a21d6a57744865eec9c0102d6a11b59d3a1c6bd
2,219
py
Python
sbol3/custom.py
brsynth/pySBOL3
5ae15b4f171991b3cd216b7548ffde7902f41c12
[ "MIT" ]
14
2020-09-14T20:28:08.000Z
2022-01-23T13:04:31.000Z
sbol3/custom.py
brsynth/pySBOL3
5ae15b4f171991b3cd216b7548ffde7902f41c12
[ "MIT" ]
203
2020-05-13T16:15:21.000Z
2022-03-24T17:40:09.000Z
sbol3/custom.py
brsynth/pySBOL3
5ae15b4f171991b3cd216b7548ffde7902f41c12
[ "MIT" ]
8
2020-07-29T16:37:19.000Z
2022-03-23T12:22:55.000Z
from typing import List import rdflib from . import * class CustomIdentified(Identified): def __init__(self, type_uri: str = None, *, name: str = None, description: str = None, derived_from: List[str] = None, generated_by: List[str] = None, me...
41.092593
82
0.584498
4a21d79581cf13a7dd729c96eadd13629644c0ed
15,134
py
Python
sgnlp/models/lsr/modeling.py
benedictleedm/sgnlp
03f0fda8c517d9ca4baf737ce4c46b2495bbd3ba
[ "MIT" ]
null
null
null
sgnlp/models/lsr/modeling.py
benedictleedm/sgnlp
03f0fda8c517d9ca4baf737ce4c46b2495bbd3ba
[ "MIT" ]
null
null
null
sgnlp/models/lsr/modeling.py
benedictleedm/sgnlp
03f0fda8c517d9ca4baf737ce4c46b2495bbd3ba
[ "MIT" ]
null
null
null
from typing import Optional import torch import torch.nn as nn import numpy as np from dataclasses import dataclass from torch.nn.utils.rnn import pad_sequence from transformers import PreTrainedModel, BertModel from .config import LsrConfig from .modules.encoder import Encoder from .modules.attention import SelfAtt...
50.112583
121
0.644773
4a21d8300a7e1e10567ca5fed9ba82401411bf14
2,207
py
Python
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/add_publication_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/add_publication_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/add_publication_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class AddPublicationResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (di...
26.914634
74
0.537834
4a21d84a1ac131c23a773790f253b9dd8d58a5a7
18,726
py
Python
tensorflow_federated/python/learning/framework/evaluation_test.py
truthiswill/federated
d25eeac036dfc2a485120a195fd904223cfc823a
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/framework/evaluation_test.py
truthiswill/federated
d25eeac036dfc2a485120a195fd904223cfc823a
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/framework/evaluation_test.py
truthiswill/federated
d25eeac036dfc2a485120a195fd904223cfc823a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, The TensorFlow Federated 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...
39.423158
80
0.699562
4a21d86055108782edb7aedb43e417bd4374e05c
7,091
py
Python
pyspeckit/spectrum/models/n2dp.py
mwcraig/pyspeckit
6d6c09aac29549a8c094d97fb385c9283422bb82
[ "MIT" ]
null
null
null
pyspeckit/spectrum/models/n2dp.py
mwcraig/pyspeckit
6d6c09aac29549a8c094d97fb385c9283422bb82
[ "MIT" ]
null
null
null
pyspeckit/spectrum/models/n2dp.py
mwcraig/pyspeckit
6d6c09aac29549a8c094d97fb385c9283422bb82
[ "MIT" ]
1
2018-10-02T15:11:17.000Z
2018-10-02T15:11:17.000Z
""" =========== N2D+ fitter =========== Reference for line params: Dore (priv. comm.) line frequencies in CDMS, line strength can also be obtained from Splatalogue L. Dore, P. Caselli, S. Beninati, T. Bourke, P. C. Myers and G. Cazzoli A&A 413, 1177-1181 (2004) http://adsabs.harvard.edu/abs/2004A%26A...413.1177D L. ...
27.807843
136
0.561839
4a21d8e2044bff2d72bd5141d2705e2a36a8b3dc
252
py
Python
archive/management/commands/testis.py
pastpages/savemy.news
39ff49ffd2f63308a847243dccc95b82b69cb06c
[ "MIT" ]
19
2017-11-06T17:06:44.000Z
2020-10-15T16:59:12.000Z
archive/management/commands/testis.py
pastpages/savemy.news
39ff49ffd2f63308a847243dccc95b82b69cb06c
[ "MIT" ]
25
2017-11-06T17:45:02.000Z
2021-09-22T17:54:35.000Z
archive/management/commands/testis.py
palewire/savemy.news
39ff49ffd2f63308a847243dccc95b82b69cb06c
[ "MIT" ]
1
2019-03-16T17:43:59.000Z
2019-03-16T17:43:59.000Z
from django.core.management.base import BaseCommand from archive import tasks from archive.models import Clip class Command(BaseCommand): def handle(self, *args, **options): clip = Clip.objects.all()[0] tasks.is_memento(clip.id)
22.909091
51
0.718254
4a21dc265b277815b5e181a73df37dc687255a85
1,149
py
Python
src/RIOT/tests/pkg_utensor/generate_digit.py
ARte-team/ARte
19f17f57522e1b18ba390718fc94be246451837b
[ "MIT" ]
2
2020-04-30T08:17:45.000Z
2020-05-23T08:46:54.000Z
src/RIOT/tests/pkg_utensor/generate_digit.py
ARte-team/ARte
19f17f57522e1b18ba390718fc94be246451837b
[ "MIT" ]
null
null
null
src/RIOT/tests/pkg_utensor/generate_digit.py
ARte-team/ARte
19f17f57522e1b18ba390718fc94be246451837b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Generate a binary file from a sample image of the MNIST dataset. Pixel of the sample are stored as float32, images have size 28x28. """ import os import argparse import numpy as np import matplotlib.pyplot as plt import tensorflow as tf SCRIPT_DIR = os.path.dirname(os.path.realpath(__fil...
28.02439
72
0.655352
4a21dc925b9129d7417e4390116145c14f911549
2,086
py
Python
scripts/support__ignore_these_files/multi_output.py
adelyame/TradingNeuralNetwork
1b62b47bd1e82a94c58d6cdec6f6d1a5421f2a6a
[ "BSD-3-Clause" ]
7
2021-02-09T20:05:52.000Z
2022-01-06T04:07:16.000Z
scripts/support__ignore_these_files/multi_output.py
adelyame/TradingNeuralNetwork
1b62b47bd1e82a94c58d6cdec6f6d1a5421f2a6a
[ "BSD-3-Clause" ]
1
2021-02-09T17:00:16.000Z
2021-02-09T17:00:16.000Z
scripts/support__ignore_these_files/multi_output.py
adelyame/TradingNeuralNetwork
1b62b47bd1e82a94c58d6cdec6f6d1a5421f2a6a
[ "BSD-3-Clause" ]
5
2021-02-17T19:26:05.000Z
2022-02-13T01:19:02.000Z
import tensorflow as tf from tensorflow.keras.layers import Dense from tensorflow.keras import Model from sklearn.datasets import load_iris from tensorflow.keras.utils import to_categorical import tensorflow.keras.backend as K tf.keras.backend.set_floatx('float64') import numpy as np iris, target = load_iris(return_X_...
30.676471
101
0.683605
4a21dceabf164071fd372cf3f759e41065c8684a
925
bzl
Python
third_party/llvm/workspace.bzl
functionxu123/tensorflow
9ddf6a26ba7b97ba33fbfb3b1e44f04f1498fac7
[ "Apache-2.0" ]
1
2022-02-15T11:09:26.000Z
2022-02-15T11:09:26.000Z
third_party/llvm/workspace.bzl
functionxu123/tensorflow
9ddf6a26ba7b97ba33fbfb3b1e44f04f1498fac7
[ "Apache-2.0" ]
null
null
null
third_party/llvm/workspace.bzl
functionxu123/tensorflow
9ddf6a26ba7b97ba33fbfb3b1e44f04f1498fac7
[ "Apache-2.0" ]
null
null
null
"""Provides the repository macro to import LLVM.""" load("//third_party:repo.bzl", "tf_http_archive") def repo(name): """Imports LLVM.""" LLVM_COMMIT = "18bf42c0a68828b5e7247bcee87ec56f3e6f234b" LLVM_SHA256 = "d8c13b005ddd8d25db6c20caf01584a28b04f768b11c66fc6b8a711f9dcf2416" tf_http_archive( ...
42.045455
149
0.674595
4a21dd6e430840c9a91af033cae31a905fb716b0
24,073
py
Python
tvcharts/src/plugin.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
tvcharts/src/plugin.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
tvcharts/src/plugin.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
##################################################### # TVCharts Plugin for Enigma2 Dreamboxes # Coded by Homey (c) 2011 # # Version: 1.5 # Support: www.i-have-a-dreambox.com ##################################################### from Components.About import about from Components.ActionMap import ActionMap from Componen...
40.121667
613
0.714992
4a21ddc71170b072e0e97b22dbd0638ec787a5d1
22,257
py
Python
TopicModel/embedded_topic_model/models/etm.py
xding2/Pipline-for-TVNews
a8473cbc65f11c8e964d44132aa0e586d05669f4
[ "MIT" ]
16
2021-04-07T09:21:32.000Z
2022-03-21T17:05:29.000Z
TopicModel/embedded_topic_model/models/etm.py
xding2/Pipline-for-TVNews
a8473cbc65f11c8e964d44132aa0e586d05669f4
[ "MIT" ]
4
2021-02-01T04:33:04.000Z
2021-08-08T16:50:52.000Z
TopicModel/embedded_topic_model/models/etm.py
xding2/Pipline-for-TVNews
a8473cbc65f11c8e964d44132aa0e586d05669f4
[ "MIT" ]
3
2021-09-29T09:18:46.000Z
2022-03-06T00:30:55.000Z
from __future__ import print_function import torch import numpy as np import os import math from typing import List from torch import optim from gensim.models import KeyedVectors from embedded_topic_model.models.model import Model from embedded_topic_model.utils import data from embedded_topic_model.utils import embe...
36.249186
148
0.57856
4a21de942f81d6e5e434fc68dd817e7d47749ae0
500
py
Python
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/tickfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/tickfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/tickfont/_size.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="size", parent_name="layout.xaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=pare...
31.25
79
0.618
4a21deddfeed45b923b6877ae4e1faf3ec0969ff
1,478
py
Python
Code Bundle/Chapter06/test_simple2.py
ghanigreen/pytest_code
dbdcc322b3469c62ad328043060518edf2b2d83f
[ "MIT" ]
46
2018-06-28T04:40:08.000Z
2022-02-14T05:36:48.000Z
Code Bundle/Chapter06/test_simple2.py
ghanigreen/pytest_code
dbdcc322b3469c62ad328043060518edf2b2d83f
[ "MIT" ]
null
null
null
Code Bundle/Chapter06/test_simple2.py
ghanigreen/pytest_code
dbdcc322b3469c62ad328043060518edf2b2d83f
[ "MIT" ]
22
2018-06-10T23:20:29.000Z
2022-02-24T06:47:18.000Z
import csv import shutil import tempfile import unittest from collections import namedtuple from pathlib import Path import pytest DATA = """ Main Grid,48,44 2nd Grid,24,21 3rd Grid,24,48 """ GridData = namedtuple("GridData", "name total_cells active_cells") def convert_size(s): return int(s) def parse_grid_...
23.09375
66
0.665765
4a21df1ab3dd04f64521fd0c90c008745340f7ea
614
py
Python
verification/domain/models/comment.py
DhivakharVenkatachalam/snet-marketplace-service
6aee606bc9b00d418caeae26c64deae03792e0ce
[ "MIT" ]
14
2019-02-12T09:14:52.000Z
2021-03-11T18:42:22.000Z
verification/domain/models/comment.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
1,079
2019-01-10T04:31:24.000Z
2022-03-29T06:16:42.000Z
verification/domain/models/comment.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
20
2018-12-18T13:06:41.000Z
2021-09-17T11:13:01.000Z
class Comment: def __init__(self, comment, created_by, created_at): self.__comment = comment self.__created_by = created_by self.__created_at = created_at def to_dict(self): comment_dict = { "comment": self.__comment, "created_by": self.__created_by, ...
23.615385
56
0.614007
4a21e02fc2e287db1b05c4ac5b7be847ad0743f2
8,115
py
Python
kdeepmodel/train_npy_model.py
ktdiedrich/kdeepmodel
c59e3ff0a6d4a30b19213bfcb587d2013a6b7549
[ "Apache-2.0" ]
null
null
null
kdeepmodel/train_npy_model.py
ktdiedrich/kdeepmodel
c59e3ff0a6d4a30b19213bfcb587d2013a6b7549
[ "Apache-2.0" ]
null
null
null
kdeepmodel/train_npy_model.py
ktdiedrich/kdeepmodel
c59e3ff0a6d4a30b19213bfcb587d2013a6b7549
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Train model to classify images * Default hyper-parameters set in parameter dictionary * Override default hyper-parameters with command line or web page arguments see: Python flask https://palletsprojects.com/p/flask/ see: Javascript React https://reactjs.org/ * Dictionary of current t...
45.847458
132
0.674677
4a21e0b39143c49dddb5bc9b2f0b828192db28ac
5,107
py
Python
neuralmonkey/runners/beamsearch_runner.py
rahulrawat11/neuralmonkey
e2924dceb54a46500326f61c71bf2b312825c838
[ "BSD-3-Clause" ]
15
2018-04-11T09:18:09.000Z
2021-03-12T03:04:20.000Z
neuralmonkey/runners/beamsearch_runner.py
bastings/neuralmonkey
8d194701448a7d318396ecf6a82eb2dc6dec9dec
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/runners/beamsearch_runner.py
bastings/neuralmonkey
8d194701448a7d318396ecf6a82eb2dc6dec9dec
[ "BSD-3-Clause" ]
6
2017-07-25T15:30:28.000Z
2019-10-31T16:14:48.000Z
from typing import Callable, List, Dict, Optional import numpy as np from typeguard import check_argument_types from neuralmonkey.model.model_part import ModelPart from neuralmonkey.decoders.beam_search_decoder import (BeamSearchDecoder, SearchStepOutput) from ne...
35.964789
79
0.602311
4a21e1348e9ddf56d06d2f0eda047085cf111c3f
8,990
py
Python
nova/network/security_group/security_group_base.py
iawells/gluon-variant-nova
8b1bc6a042b30710b8828e011f79206acc3cca46
[ "Apache-2.0" ]
null
null
null
nova/network/security_group/security_group_base.py
iawells/gluon-variant-nova
8b1bc6a042b30710b8828e011f79206acc3cca46
[ "Apache-2.0" ]
null
null
null
nova/network/security_group/security_group_base.py
iawells/gluon-variant-nova
8b1bc6a042b30710b8828e011f79206acc3cca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # Copyright 2012 Red Hat, Inc. # Copyright 2013 Nicira, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (th...
35.674603
78
0.607341
4a21e199b71efeda2220c9c6f1c04aa8765d46d5
10,458
py
Python
zerver/tests/webhooks/test_github_webhook.py
erinis-eligro/Zulip-outcast
51153a6ce219370aee79bfe462f6e4fb956993d9
[ "Apache-2.0" ]
null
null
null
zerver/tests/webhooks/test_github_webhook.py
erinis-eligro/Zulip-outcast
51153a6ce219370aee79bfe462f6e4fb956993d9
[ "Apache-2.0" ]
1
2019-11-02T09:06:05.000Z
2019-11-02T09:06:05.000Z
zerver/tests/webhooks/test_github_webhook.py
erinis-eligro/zulip-outcasts
51153a6ce219370aee79bfe462f6e4fb956993d9
[ "Apache-2.0" ]
null
null
null
import ujson from typing import Dict, Optional, Text from zerver.models import Message from zerver.lib.webhooks.git import COMMITS_LIMIT from zerver.lib.test_classes import WebhookTestCase class GithubWebhookTest(WebhookTestCase): STREAM_NAME = 'github' URL_TEMPLATE = "/api/v1/external/github?stream={stream}&...
68.802632
337
0.75502
4a21e1ed89ee633a9f6a4c01fd654a424e04c704
640
py
Python
var/spack/repos/builtin/packages/py-wget/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/py-wget/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/py-wget/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyWget(PythonPackage): """pure python download utility Download the file for your pla...
30.47619
93
0.74375
4a21e3f40c287cb834cabaf5ef63f80cf762968f
12,752
py
Python
fs/tests/test_remote.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
314
2015-04-11T10:52:26.000Z
2022-01-26T07:00:30.000Z
fs/tests/test_remote.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
94
2015-04-11T10:43:16.000Z
2021-10-06T11:21:26.000Z
fs/tests/test_remote.py
jwilk-forks/pyfilesystem
44573f70e72b2cf378ee20d1c8bc2084ba975e16
[ "BSD-3-Clause" ]
95
2015-04-21T02:13:20.000Z
2021-11-26T05:07:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ fs.tests.test_remote: testcases for FS remote support utilities """ from fs.tests import FSTestCases, ThreadingTestCases import unittest import threading import random import time import sys from fs.remote import * from fs import SEEK_END from fs.wrapfs import ...
33.557895
111
0.619432
4a21e52f360b63232739789a9c4ed0bf10f75e8a
1,981
py
Python
runner.py
eranns/simple_learn
763855954613db2ca17dd918f1767449cbd808a1
[ "MIT" ]
null
null
null
runner.py
eranns/simple_learn
763855954613db2ca17dd918f1767449cbd808a1
[ "MIT" ]
null
null
null
runner.py
eranns/simple_learn
763855954613db2ca17dd918f1767449cbd808a1
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Sharvil Kekre skekre98 # # 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, merge, publi...
33.016667
80
0.720848
4a21e54964c01a34fbcd902b01b7568c83f49800
1,030
py
Python
agogosml/agogosml/reader/input_reader_factory.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-12-07T21:02:20.000Z
2019-02-22T14:36:31.000Z
agogosml/agogosml/reader/input_reader_factory.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
43
2018-11-30T11:31:43.000Z
2019-04-03T16:09:06.000Z
agogosml/agogosml/reader/input_reader_factory.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-11-29T00:31:29.000Z
2019-02-22T18:50:28.000Z
"""Factory for InputReader.""" from typing import Optional from agogosml.common.abstract_streaming_client import AbstractStreamingClient from agogosml.common.abstract_streaming_client import create_streaming_client_from_config from agogosml.common.http_message_sender import HttpMessageSender from agogosml.reader.input...
36.785714
94
0.748544
4a21e63bbe5abdfee319502dabb79a930d4ae1fe
691
py
Python
Python/Algorithms/21.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
2
2021-01-15T17:22:54.000Z
2021-05-16T19:58:02.000Z
Python/Algorithms/21.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
null
null
null
Python/Algorithms/21.py
DimitrisJim/leetcode_solutions
765ea578748f8c9b21243dec9dc8a16163e85c0c
[ "Unlicense" ]
null
null
null
class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def mergeTwoLists(self, l1, l2): if not l1 and not l2: return None new = ListNode() ref = new while l1 and l2: if l1.val <= l2.val: ...
24.678571
45
0.457308
4a21e736d2a10580c5952bea195f724d2338ae23
5,175
py
Python
api/assessment/migrations/0001_initial.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
api/assessment/migrations/0001_initial.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
api/assessment/migrations/0001_initial.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-08-07 10:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import simple_history.models class Migration(migrations.Migration): initial = True dependencies = [ ('barriers', '0032_auto_20190722_0905'), ...
66.346154
190
0.632271
4a21e73eb34167b5389dcef6f1c27e0f0c519e50
12,448
py
Python
fastai/train.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
59
2020-08-18T03:41:35.000Z
2022-03-23T03:51:55.000Z
fastai/train.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
17
2020-08-25T14:15:32.000Z
2022-03-27T02:12:19.000Z
fastai/train.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
89
2020-08-17T23:45:42.000Z
2022-03-27T20:53:43.000Z
"Provides advanced training extensions to `fastai.basic_train`. Includes half-precision, learning rate finder, mixup, and one-cycle" from .torch_core import * from .callback import * from .callbacks import * from .basic_data import * from .basic_train import * __all__ = ['BnFreeze', 'GradientClipping', 'ShowGraph', 'I...
51.651452
147
0.683323
4a21e90c9a1dbeba7d3614c270fc96365dbf0870
1,643
py
Python
tests/chainer_tests/functions_tests/test_relu.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/test_relu.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/test_relu.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.testing import condition class TestReLU(unittest.TestCase): def setUp(self): # Avoid unstabilit...
28.327586
77
0.669507