hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
74d1bf727abeb851c2f621d71dc344c749bceaaf
1,324
py
Python
funding_analysis/examples/selecting_f33_data.py
KVSRoyal/funding-analysis
9df1162f2256125fc87cb28b6aa27eb54c38e742
[ "Apache-2.0" ]
1
2019-03-29T19:01:31.000Z
2019-03-29T19:01:31.000Z
funding_analysis/examples/selecting_f33_data.py
KVSRoyal/funding-analysis
9df1162f2256125fc87cb28b6aa27eb54c38e742
[ "Apache-2.0" ]
5
2019-03-15T14:06:15.000Z
2019-05-03T05:11:25.000Z
funding_analysis/examples/selecting_f33_data.py
KVSRoyal/funding-analysis
9df1162f2256125fc87cb28b6aa27eb54c38e742
[ "Apache-2.0" ]
null
null
null
# An example of a script that will allow users to sample data in pandas dataframes from the relevant_raw_data file import pathlib import pandas # Open the relevant sheet in the elementary-secondary financial data for 2016 workbook as a dataframe workbooks_directory_path = pathlib.Path(__file__).parents[2] / 'resources...
40.121212
114
0.762085
74d1cd4fbd13a0cdddf94ccb76389ad044b144a1
422
py
Python
tiveU/users/apps.py
rds0751/newtiveu
779ac840f0787ea0e74701b43d4320b44429527e
[ "MIT" ]
null
null
null
tiveU/users/apps.py
rds0751/newtiveu
779ac840f0787ea0e74701b43d4320b44429527e
[ "MIT" ]
null
null
null
tiveU/users/apps.py
rds0751/newtiveu
779ac840f0787ea0e74701b43d4320b44429527e
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class UsersConfig(AppConfig): name = 'tiveU.users' verbose_name = _("Users") def ready(self): """Override this to put in: Users system checks Users signal registration """ ...
22.210526
55
0.604265
74d1cdbbdac8724518937d141a976abf9fec6ce3
7,231
py
Python
tensorflow/contrib/opt/python/training/weight_decay_optimizers_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/opt/python/training/weight_decay_optimizers_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/opt/python/training/weight_decay_optimizers_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2018 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.858639
80
0.667957
74d23f486a9bf700daa0b090c1f01aa436d853b9
8,131
py
Python
flyqma/data/silhouette_read.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
2
2020-02-22T09:53:15.000Z
2020-02-24T19:01:24.000Z
flyqma/data/silhouette_read.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
null
null
null
flyqma/data/silhouette_read.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
null
null
null
from os.path import join, abspath, exists import json import pandas as pd class ReadSilhouette: """ Read-only interface to a FlyEye Silhouette file. Attributes: path (str) - path to Silhouette file feed (dict) - feed file containing layer IDs feud (dict) - feud file containing...
29.248201
411
0.592916
74d2507f681298abe1cd6c036b3c5704162dae92
44,366
py
Python
MedManagementWeb/env/lib/python3.5/site-packages/ruamel/yaml/main.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/env/lib/python3.5/site-packages/ruamel/yaml/main.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/env/lib/python3.5/site-packages/ruamel/yaml/main.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
1
2020-10-22T03:54:55.000Z
2020-10-22T03:54:55.000Z
# coding: utf-8 from __future__ import absolute_import, unicode_literals import sys import os import warnings import glob from importlib import import_module import ruamel.yaml from ruamel.yaml.error import * # NOQA from ruamel.yaml.tokens import * # NOQ...
40.406193
202
0.605712
74d252fd28dec88a5fa8caf5269e5c051db73d05
3,772
py
Python
src/apification/utils/tests/test_writeonce.py
Quantify-world/Apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
5
2016-10-29T14:23:22.000Z
2017-07-15T08:39:58.000Z
src/apification/utils/tests/test_writeonce.py
Quantify-world/Apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
32
2016-10-23T19:18:26.000Z
2017-02-27T18:33:36.000Z
src/apification/utils/tests/test_writeonce.py
Quantify-world/apification
5fc0bd056d0bf430645a2e2c5d7d9435328b9a4a
[ "MIT" ]
null
null
null
from pytest import raises import warnings from apification.utils import writeonce def test_writeonce_constructor(): class A(object): x = writeonce() v = 42 a = A() a.x = v assert a.x == v def test_writeonce_writes_only_once(): class A(object): x = writeonce() a = A() ...
17.792453
88
0.531018
74d25f57bb256e89282a63ff53b54871dab4c7f0
5,783
py
Python
openmc_plasma_source/plotting/plot_tokamak_source.py
fusion-energy/openmc-plasma-source
15c2194c1f386bf60514dde6797545f6615a1605
[ "MIT" ]
9
2021-09-22T13:30:32.000Z
2022-03-31T14:52:50.000Z
openmc_plasma_source/plotting/plot_tokamak_source.py
fusion-energy/openmc-plasma-source
15c2194c1f386bf60514dde6797545f6615a1605
[ "MIT" ]
46
2021-09-22T09:41:40.000Z
2022-03-23T09:48:37.000Z
openmc_plasma_source/plotting/plot_tokamak_source.py
fusion-energy/openmc-plasma-source
15c2194c1f386bf60514dde6797545f6615a1605
[ "MIT" ]
6
2021-09-23T10:32:41.000Z
2022-01-24T10:17:40.000Z
import matplotlib.pyplot as plt from matplotlib import cm import numpy as np def scatter_tokamak_source(source, ax=None, quantity=None, aspect="equal", **kwargs): """Create a 2D scatter plot of the tokamak source. See https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.scatter.html for more argume...
37.551948
100
0.658136
74d26657c1f2c7a6c30ac4c16a1f614c4c9a312d
3,645
py
Python
stests/core/types/chain/deploy.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/core/types/chain/deploy.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/core/types/chain/deploy.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import dataclasses import typing from datetime import datetime from stests.core.types.chain.enums import DeployStatus from stests.core.types.chain.enums import DeployType @dataclasses.dataclass class Deploy: """Encapsulates information pertaining to a deploy dispatched to a test network. """ # Acco...
28.928571
95
0.709739
74d2a60b1f821d6e674b98c1ad7622d86df96521
8,458
py
Python
pybliometrics/scopus/scopus_search.py
ElsevierSoftwareX/SOFTX_2019_55
a4aa225710b017572a0f71dcd318fbe5ce15cdb6
[ "MIT" ]
11
2019-07-03T03:35:48.000Z
2021-07-19T06:04:19.000Z
pybliometrics/scopus/scopus_search.py
ElsevierSoftwareX/SOFTX_2019_55
a4aa225710b017572a0f71dcd318fbe5ce15cdb6
[ "MIT" ]
null
null
null
pybliometrics/scopus/scopus_search.py
ElsevierSoftwareX/SOFTX_2019_55
a4aa225710b017572a0f71dcd318fbe5ce15cdb6
[ "MIT" ]
6
2020-02-10T20:49:54.000Z
2021-03-26T18:00:26.000Z
from collections import namedtuple from pybliometrics.scopus.classes import Search from pybliometrics.scopus.utils import listify class ScopusSearch(Search): @property def results(self): """A list of namedtuples in the form (eid doi pii pubmed_id title subtype creator afid affilname affiliati...
44.052083
82
0.58489
74d2a9c8aecb779cf12ca266a14dadcd4d95e1af
6,418
py
Python
userbot/modules/dogbin.py
JoanLindo/BaianoBot-backup-sexo
b3d0b0f83b6460c3279a243ab753745df1562852
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-11-23T16:43:44.000Z
2021-11-23T16:43:44.000Z
userbot/modules/dogbin.py
JoanLindo/purpled
fd95c674de3e4c0bc9eb909dddb4a65c7623fa02
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/dogbin.py
JoanLindo/purpled
fd95c674de3e4c0bc9eb909dddb4a65c7623fa02
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module containing commands for interacting with dogbin(https://del.dog)""" import os from requests import...
32.09
94
0.593331
74d2b166ede6d2cc95d7a59dfa2ec1e77ce8d4a6
252
py
Python
vp_suite/models/precipitation_nowcasting/__init__.py
AIS-Bonn/vp-suite
479bd48185b9a93a6bc6bff2dfe226e9c65800d8
[ "MIT" ]
3
2022-03-05T15:27:25.000Z
2022-03-25T18:47:35.000Z
vp_suite/models/precipitation_nowcasting/__init__.py
Flunzmas/vp-suite
391570121b5bd9e3fd23aca9a0945a63c4173a24
[ "MIT" ]
16
2022-01-06T08:38:26.000Z
2022-02-23T19:19:28.000Z
vp_suite/models/precipitation_nowcasting/__init__.py
AIS-Bonn/vp-suite
479bd48185b9a93a6bc6bff2dfe226e9c65800d8
[ "MIT" ]
3
2022-02-07T22:34:45.000Z
2022-02-22T11:14:37.000Z
r""" This package contains prediction models and model components related to the "Precipitation-Nowcasting" repository at https://github.com/Hzzone/Precipitation-Nowcasting. """ from .ef_traj_gru import EF_TrajGRU from .ef_conv_lstm import EF_ConvLSTM
36
113
0.825397
74d2f5c0385378292d405a45e0b58094ba43f003
24,608
py
Python
Florence/Tensor/Tensors.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
Florence/Tensor/Tensors.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
Florence/Tensor/Tensors.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
import numpy as np from warnings import warn from .Numeric import tovoigt, tovoigt3 __all__ = ['unique2d','in2d','intersect2d','in2d_unsorted','shuffle_along_axis', 'shuffle_along_axis_bothway','shuffle_along_axis_robust','itemfreq', 'SecondTensor2Vector','Voigt','UnVoigt','remove_duplicates_2D','totuple', 'prime_num...
32.421607
119
0.542994
74d2fb762df9a9b6150a7bae54c194b3fade5edb
1,649
py
Python
ptree/ptree/config.py
lsst-dm/DMTN-104
02f074beb4cb9eb1e08dc5e5f8446f7df2e33a4d
[ "CC-BY-4.0" ]
null
null
null
ptree/ptree/config.py
lsst-dm/DMTN-104
02f074beb4cb9eb1e08dc5e5f8446f7df2e33a4d
[ "CC-BY-4.0" ]
null
null
null
ptree/ptree/config.py
lsst-dm/DMTN-104
02f074beb4cb9eb1e08dc5e5f8446f7df2e33a4d
[ "CC-BY-4.0" ]
null
null
null
# LSST Data Management System # Copyright 2018 AURA/LSST. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundat...
36.644444
91
0.703457
74d30f16bc19197416eb5c7e351e5777e20012a4
5,150
py
Python
treeCl/treedist.py
kgori/treeCl
54bdc53b979d0d60c1c5e3f7053c1e82b48e2590
[ "MIT" ]
22
2015-05-13T12:40:28.000Z
2022-03-25T09:56:14.000Z
treeCl/treedist.py
kgori/treeCl
54bdc53b979d0d60c1c5e3f7053c1e82b48e2590
[ "MIT" ]
26
2015-11-13T09:04:42.000Z
2021-06-03T18:24:27.000Z
treeCl/treedist.py
kgori/treeCl
54bdc53b979d0d60c1c5e3f7053c1e82b48e2590
[ "MIT" ]
8
2015-10-10T19:09:19.000Z
2020-10-20T20:59:29.000Z
# standard library import functools import itertools # third party import scipy.spatial from tree_distance import getEuclideanDistance, getGeodesicDistance, getRobinsonFouldsDistance,\ getWeightedRobinsonFouldsDistance # treeCl from .utils import setup_progressbar __all__ = ["eucdist", "eucdist_matrix", "geodist...
40.234375
120
0.735146
74d33744fb61c9e6be356a0242fa11974e674040
1,295
py
Python
personal/yxg352/FitHub/login/views.py
gentsk77/EECS341-Final
6a050e1d2718996af2cb672af6b9ea41d0da04d4
[ "MIT" ]
1
2019-03-26T22:02:38.000Z
2019-03-26T22:02:38.000Z
personal/yxg352/FitHub/login/views.py
Susanou/FitHub
6a050e1d2718996af2cb672af6b9ea41d0da04d4
[ "MIT" ]
4
2019-04-29T07:35:37.000Z
2019-05-05T12:12:52.000Z
personal/yxg352/FitHub/login/views.py
Susanou/FitHub
6a050e1d2718996af2cb672af6b9ea41d0da04d4
[ "MIT" ]
2
2019-05-06T04:56:13.000Z
2020-02-03T20:00:21.000Z
from django.shortcuts import render, redirect from django.contrib.auth import login from django.views.generic import CreateView from django.shortcuts import render, redirect, render_to_response, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.urls import reverse from d...
35
84
0.769112
74d36227c1361cadf243ccac03ead17c32fe29fd
663
py
Python
deepl/data/utils.py
akanametov/deepl
c24c797bc815aa78e4d337d7e8bbb422dbf6dc20
[ "MIT" ]
null
null
null
deepl/data/utils.py
akanametov/deepl
c24c797bc815aa78e4d337d7e8bbb422dbf6dc20
[ "MIT" ]
null
null
null
deepl/data/utils.py
akanametov/deepl
c24c797bc815aa78e4d337d7e8bbb422dbf6dc20
[ "MIT" ]
null
null
null
from collections.abc import Sequence class Dataset(Sequence): def __init__(self,): super().__init__() def __len__(self,): pass def __getitem__(self,idx): pass class DataLoader(object): def __init__(self, dataset, batch_size): self.dataset=dataset ...
25.5
55
0.598793
74d37d963d5bc521adb1f9dfc3419a566f14fa8b
46
py
Python
ebayoauthclient/__init__.py
hosseinamin/ebay-oauth-python-client
2ab07a58ea9a0f0544a6742d1e6003e8c9348830
[ "Apache-2.0" ]
null
null
null
ebayoauthclient/__init__.py
hosseinamin/ebay-oauth-python-client
2ab07a58ea9a0f0544a6742d1e6003e8c9348830
[ "Apache-2.0" ]
null
null
null
ebayoauthclient/__init__.py
hosseinamin/ebay-oauth-python-client
2ab07a58ea9a0f0544a6742d1e6003e8c9348830
[ "Apache-2.0" ]
null
null
null
from .eBayOAuthClient import eBayOAuthClient
15.333333
44
0.869565
74d38316a690a2ce44594c7ff69518ff05827397
4,186
py
Python
qualys_cs_api/models/aws_base.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
qualys_cs_api/models/aws_base.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
qualys_cs_api/models/aws_base.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
28.47619
265
0.587434
74d39c03bff39c658019e980284c8fe6b3f8af72
1,045
py
Python
venv/Lib/site-packages/pyrogram/raw/core/list.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/core/list.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/core/list.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
38.703704
90
0.735885
74d3a00c6438fe69f2bccd29844137a8ca31f5cc
1,104
py
Python
assets/scripts/update-datasource.py
davmayd/quickstart-tableau-snowflake
5fdb121f515f02bd9faeab53a91beb0241704147
[ "Apache-2.0" ]
12
2019-06-04T17:50:24.000Z
2022-03-11T13:55:51.000Z
assets/scripts/update-datasource.py
davmayd/quickstart-tableau-snowflake
5fdb121f515f02bd9faeab53a91beb0241704147
[ "Apache-2.0" ]
1
2022-03-06T04:31:42.000Z
2022-03-06T04:31:42.000Z
assets/scripts/update-datasource.py
davmayd/quickstart-tableau-snowflake
5fdb121f515f02bd9faeab53a91beb0241704147
[ "Apache-2.0" ]
11
2019-06-09T12:20:42.000Z
2021-12-20T23:03:15.000Z
from tableaudocumentapi import Datasource, Workbook import sys, getopt def main(argv): server = None port = None filename = None username = None opts, args = getopt.getopt(argv,"hs:f:u:d:",["server=","filename=","username=","dbname="]) for opt, arg in opts: if opt == '-h': print('update_...
27.6
93
0.597826
74d3b20697a74e51b28af8bbc2af64969dd3690a
275
py
Python
aristotle/apps/book_search/urls.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2015-09-24T01:12:02.000Z
2015-09-24T01:12:02.000Z
aristotle/apps/book_search/urls.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2021-12-13T19:39:44.000Z
2021-12-13T19:39:44.000Z
aristotle/apps/book_search/urls.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
null
null
null
""" mod:`url` Book Search Application URL routing """ __author__ = 'Gautam Webb' import book_search.views from django.conf.urls.defaults import * urlpatterns = patterns('book_search.views', url(r"^$","default",name='book_search-app-default'), )
22.916667
56
0.661818
74d3d5a92328935dd73aa0eb459a8e54df9aab7e
1,975
py
Python
opentelemetry-sdk/tests/trace/test_implementation.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/tests/trace/test_implementation.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/tests/trace/test_implementation.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.145833
78
0.715443
74d3ddae9ca8b98e4f539a68583c5788de367c8b
262
py
Python
nas_201_api/__init__.py
jmsckv/NAS-Bench-201
4d57d533bdf8de9562cdf2cefa6ee85b5b002366
[ "MIT" ]
1
2020-05-08T08:58:28.000Z
2020-05-08T08:58:28.000Z
nas_201_api/__init__.py
jmsckv/NAS-Bench-201
4d57d533bdf8de9562cdf2cefa6ee85b5b002366
[ "MIT" ]
null
null
null
nas_201_api/__init__.py
jmsckv/NAS-Bench-201
4d57d533bdf8de9562cdf2cefa6ee85b5b002366
[ "MIT" ]
2
2020-05-08T09:14:36.000Z
2020-09-28T06:59:30.000Z
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ################################################## from .api import NASBench201API from .api import ArchResults, ResultsCount NAS_BENCH_201_API_VERSION="v1.1"
32.75
50
0.473282
74d4091561ae9354fd0b099f89fd07fd885304f7
5,312
py
Python
bootcamp/wiki/managers.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/managers.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/managers.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.db.models import Q, Count from django.db.models.query import EmptyQuerySet, QuerySet from mptt.managers import TreeManager class ArticleQuerySet(QuerySet): def can_read(self, user): """Filter objects so only the ones with a...
27.957895
74
0.626318
74d4103a0af5feebe556ef1e81f5d5bf6ba49363
5,142
py
Python
var/spack/repos/builtin/packages/omega-h/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/omega-h/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/omega-h/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 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 OmegaH(CMakePackage): """Omega_h is a C++11 library providing data structures and algorith...
49.442308
101
0.687087
74d430d3ffca23e1fb1e9a90903ae45e70641ce8
28,235
py
Python
src/cloudant/design_document.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
1
2017-01-22T21:42:20.000Z
2017-01-22T21:42:20.000Z
venv/lib/python3.5/site-packages/cloudant/design_document.py
remkohdev/python-flask-d3js-newssentiment
006e1083b6a307fda55b176eadb810aa08bd8b63
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.5/site-packages/cloudant/design_document.py
remkohdev/python-flask-d3js-newssentiment
006e1083b6a307fda55b176eadb810aa08bd8b63
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015 IBM. 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 ...
38.572404
94
0.616434
74d432fc14fcfdd1bb9f53f42bb666aa00d92b23
24,972
py
Python
windse/BoundaryManager.py
jefalon/WindSE
bf7e0dbad85552b32327bda2b5c29a0fac5286bb
[ "Apache-2.0" ]
35
2019-07-14T17:08:10.000Z
2022-03-15T11:09:44.000Z
windse/BoundaryManager.py
jefalon/WindSE
bf7e0dbad85552b32327bda2b5c29a0fac5286bb
[ "Apache-2.0" ]
45
2020-11-16T16:40:12.000Z
2022-03-30T20:04:37.000Z
windse/BoundaryManager.py
jefalon/WindSE
bf7e0dbad85552b32327bda2b5c29a0fac5286bb
[ "Apache-2.0" ]
21
2020-02-11T12:01:36.000Z
2022-03-18T19:07:14.000Z
""" The BoundaryManager submodule contains the classes required for defining the boundary conditions. """ import __main__ import os ### Get the name of program importing this package ### if hasattr(__main__,"__file__"): main_file = os.path.basename(__main__.__file__) else: main_file = "ipython" ### This c...
40.21256
134
0.581331
74d4445a7b22ff844e678bb12359e30d022bce11
1,924
py
Python
fapws2/contrib/cgiapp.py
william-os4y/fapws2
5752af742b763517ce0a52d0f0c00b40b186edf8
[ "MIT" ]
2
2016-05-08T16:02:32.000Z
2018-02-17T15:03:09.000Z
fapws2/contrib/cgiapp.py
william-os4y/fapws2
5752af742b763517ce0a52d0f0c00b40b186edf8
[ "MIT" ]
null
null
null
fapws2/contrib/cgiapp.py
william-os4y/fapws2
5752af742b763517ce0a52d0f0c00b40b186edf8
[ "MIT" ]
null
null
null
import os.path import subprocess class CGIApplication: def __init__(self, script): self.script=script self.dirname=os.path.dirname(script) self.cgi_environ={} def _setup_cgi_environ(self, environ): for key,val in environ.items(): if type(val)==type(""): ...
32.610169
60
0.534823
74d4639f8ca24146db456d1debe380166c810eec
2,693
py
Python
src/api/__init__.py
borhanMorphy/fantasy-name-generator
b148c3702380eef87a3d5a19badf3a2c455301eb
[ "MIT" ]
2
2021-04-02T08:38:55.000Z
2021-04-14T07:43:32.000Z
src/api/__init__.py
borhanMorphy/fantasy-name-generator
b148c3702380eef87a3d5a19badf3a2c455301eb
[ "MIT" ]
null
null
null
src/api/__init__.py
borhanMorphy/fantasy-name-generator
b148c3702380eef87a3d5a19badf3a2c455301eb
[ "MIT" ]
null
null
null
__all__ = [ "NameGenerator", "build_from_yaml", "get_arch_by_name", "list_archs", "get_dataset_by_name", "list_datasets", "get_loss_by_name", "list_losses", "get_optimizer_by_name", "list_optimizers", "get_scheduler_by_name", "list_schedulers" ] from typing import ...
26.663366
116
0.688452
74d4857ac1498876e4fd377a5e978de310672528
138
py
Python
storjkademlia/__init__.py
Storj/storjkademlia
4199e40e789a294e579395e27ff5f588c5fd8263
[ "MIT" ]
null
null
null
storjkademlia/__init__.py
Storj/storjkademlia
4199e40e789a294e579395e27ff5f588c5fd8263
[ "MIT" ]
null
null
null
storjkademlia/__init__.py
Storj/storjkademlia
4199e40e789a294e579395e27ff5f588c5fd8263
[ "MIT" ]
null
null
null
""" Kademlia is a Python implementation of the Kademlia protocol. """ version_info = (0, 7, 5) version = '.'.join(map(str, version_info))
23
61
0.695652
74d489c784a559525d76c4acbb08aac1affe9783
1,654
py
Python
src/morphforgecontrib/simulation/channels/exisitingmodfile/__init__.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgecontrib/simulation/channels/exisitingmodfile/__init__.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgecontrib/simulation/channels/exisitingmodfile/__init__.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
47.257143
72
0.712817
74d49cfc147546194018d0ad5fcd3737a3769d94
36
py
Python
btd6_memory_info/generated/SteamNative/MusicPlayerWantsLooped_t/music_player_wants_looped_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/MusicPlayerWantsLooped_t/music_player_wants_looped_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/MusicPlayerWantsLooped_t/music_player_wants_looped_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class MusicPlayerWantsLooped_t: pass
36
36
0.916667
74d4fc172998dbb873666495c31e3bb4cf16f6c6
1,651
py
Python
tests/unit/io/test_io.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
null
null
null
tests/unit/io/test_io.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
null
null
null
tests/unit/io/test_io.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
1
2018-03-13T05:57:49.000Z
2018-03-13T05:57:49.000Z
# coding=utf-8 from __future__ import unicode_literals import unittest import lore.io import os class TestRemoteFromLocalPaths(unittest.TestCase): def test_works_dir_is_removed(self): local = os.path.join(lore.env.work_dir, 'README.rst') self.assertIsNotNone(lore.env.work_dir) self.asse...
33.02
90
0.705027
74d51537bc6a4882829554da6551e8fa7c2f0a00
692
py
Python
adduser.py
franciol/Servidor_de_desafios
3ce3de561af5ce5182a3d0f5db0a7dfd3b51a8fc
[ "MIT" ]
null
null
null
adduser.py
franciol/Servidor_de_desafios
3ce3de561af5ce5182a3d0f5db0a7dfd3b51a8fc
[ "MIT" ]
null
null
null
adduser.py
franciol/Servidor_de_desafios
3ce3de561af5ce5182a3d0f5db0a7dfd3b51a8fc
[ "MIT" ]
null
null
null
""" Add a new user to the quiz.db for each user in the users.csv file. """ import sqlite3 import hashlib def add_user(user, pwd, tipe): """ Add a new user to the quiz.db, commit the changes and close the connection. """ conn = sqlite3.connect('quiz.db') cursor = conn.cursor() text = 'Insert into USE...
26.615385
87
0.637283
74d51b6757cd31897094501b83fdccc2287fe807
2,840
py
Python
Cogs/UserTime.py
MrAngelDo6pa/MedBotS
89e19d831507e20d0898114502967b2ad8ecf957
[ "MIT" ]
2
2021-09-28T10:40:10.000Z
2021-11-07T14:49:07.000Z
Cogs/UserTime.py
ddoskid/lol12
35c097bbebeca3043a939b902b07474473344a3c
[ "MIT" ]
null
null
null
Cogs/UserTime.py
ddoskid/lol12
35c097bbebeca3043a939b902b07474473344a3c
[ "MIT" ]
null
null
null
import datetime, pytz from Cogs import FuzzySearch def setup(bot): # This module isn't actually a cog return def getClockForTime(time_string): # Assumes a HH:MM PP format try: t = time_string.split(" ") if len(t) == 2: t = t[0].split(":") elif len(t) == 3: t = t[1].split(":") else: return ti...
31.208791
127
0.655986
74d521eb0ff42ec656db973c57c1a5cd422c159e
7,050
py
Python
oscar/lib/python2.7/site-packages/setuptools/command/sdist.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/setuptools/command/sdist.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/setuptools/command/sdist.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from distutils import log import distutils.command.sdist as orig import os import sys import io import contextlib from setuptools.extern import six from .py36compat import sdist_add_defaults import pkg_resources _default_revctrl = list def walk_revctrl(dirname=''): """Find all files under rev...
34.057971
80
0.573191
74d5385f960dd7420b825ae05bfad7a560c7fa18
22,010
py
Python
src/openapi_client/api/group_assignments_api.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
6
2022-01-03T07:07:18.000Z
2022-03-21T08:13:49.000Z
src/openapi_client/api/group_assignments_api.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-02T13:01:05.000Z
2022-02-10T12:01:17.000Z
src/openapi_client/api/group_assignments_api.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-10T11:53:55.000Z
2022-02-10T11:53:55.000Z
""" Nozbe Teams API Nozbe Teams API specification # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@nozbe.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from openapi_client.api_client import ApiClient, Endpoint as _E...
36.022913
190
0.485461
74d53a0d6704130b5cdbd2348d3bf959dd42780b
52
py
Python
conftest.py
denniss17/huisbaasje-client
88cb2f2e76e8134e8a753a42b0a0bc1343010a80
[ "Apache-2.0" ]
null
null
null
conftest.py
denniss17/huisbaasje-client
88cb2f2e76e8134e8a753a42b0a0bc1343010a80
[ "Apache-2.0" ]
4
2021-06-23T16:49:05.000Z
2021-08-15T12:50:57.000Z
conftest.py
denniss17/huisbaasje-client
88cb2f2e76e8134e8a753a42b0a0bc1343010a80
[ "Apache-2.0" ]
1
2021-10-29T22:48:36.000Z
2021-10-29T22:48:36.000Z
"""Somehow, without this file, tests don't work 🤷"""
52
52
0.673077
74d57bd71de5bdf365b59f78fd6a3da3e157e183
1,520
py
Python
pathogen_memo/views/barplotc.py
NajlaBioinfo/pathogen_memo_app
426a0ef545ffc96da8c6fc1bca5eb19caaf1879c
[ "MIT" ]
null
null
null
pathogen_memo/views/barplotc.py
NajlaBioinfo/pathogen_memo_app
426a0ef545ffc96da8c6fc1bca5eb19caaf1879c
[ "MIT" ]
3
2021-09-03T10:33:09.000Z
2022-03-12T00:17:18.000Z
pathogen_memo/views/barplotc.py
NajlaBioinfo/pathogen_memo_app
426a0ef545ffc96da8c6fc1bca5eb19caaf1879c
[ "MIT" ]
null
null
null
from flask import Flask,jsonify, Blueprint, render_template from sys import version import numpy import matplotlib.pyplot as plt from io import BytesIO import base64 from flask_login import login_required import os from pathogen_memo.controllers import countbyquery #Set word_count_site_name barplotcv = Blueprint('b...
33.043478
112
0.7125
74d59e93a3e744b0087871b99a467dfb55f614a7
1,682
py
Python
alipay/aop/api/response/AlipayPcreditHuabeiPcbenefitcoreBfactivitfacadeQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayPcreditHuabeiPcbenefitcoreBfactivitfacadeQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayPcreditHuabeiPcbenefitcoreBfactivitfacadeQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.BFActivityOpenApiResult import BFActivityOpenApiResult class AlipayPcreditHuabeiPcbenefitcoreBfactivitfacadeQueryResponse(AlipayResponse): def __init__(self): ...
31.735849
133
0.682521
74d5af0112a5a3f9e6d613789a9d16ce6a7a1304
531
py
Python
optim/python/optim/validation.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
1
2021-06-15T09:34:24.000Z
2021-06-15T09:34:24.000Z
optim/python/optim/validation.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
null
null
null
optim/python/optim/validation.py
Humhu/percepto
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
[ "AFL-3.0" ]
null
null
null
"""Methods for validating models. """ import numpy as np def leave_one_out(train_func, pred_func, X, y): if len(X) != len(y): raise ValueError('X and y must have same length') errs = [] for i in range(len(X)): sub_x = list(X) sub_y = list(y) x_test = sub_x[i] y_te...
21.24
57
0.555556
74d5f6efe658174df6f81164cc0f9a2fff9cba19
2,472
py
Python
tests/test_token.py
yveso/tyfbaf
f1b6bf33d275f20fad71a2d20b92665f88755361
[ "MIT" ]
null
null
null
tests/test_token.py
yveso/tyfbaf
f1b6bf33d275f20fad71a2d20b92665f88755361
[ "MIT" ]
null
null
null
tests/test_token.py
yveso/tyfbaf
f1b6bf33d275f20fad71a2d20b92665f88755361
[ "MIT" ]
null
null
null
import httpx import pytest import respx from tyfbaf import constants, token def test_request_token_is_returned_when_everything_was_cool(respx_mock): _ = respx.route().mock( return_value=httpx.Response(200, json={"logonToken": "a_token"}) ) requested_token = token.request(username="username", pass...
29.428571
85
0.691343
74d60eaa5906b8beb8e7580bf13c7547889c767b
1,097
py
Python
ThirdParty/Twisted/twisted/conch/test/test_mixin.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
ThirdParty/Twisted/twisted/conch/test/test_mixin.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
ThirdParty/Twisted/twisted/conch/test/test_mixin.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# -*- twisted.conch.test.test_mixin -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. import time from twisted.internet import reactor, protocol from twisted.trial import unittest from twisted.test.proto_helpers import StringTransport from twisted.conch import mixin class TestBufferingPr...
22.854167
55
0.626253
74d61840f85c05e9edd6f156fb71f844632e3d85
2,626
py
Python
tests/test_cli.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
108
2015-08-21T10:39:22.000Z
2022-03-04T22:10:49.000Z
tests/test_cli.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
60
2015-07-21T22:55:52.000Z
2022-03-24T21:20:00.000Z
tests/test_cli.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
40
2015-08-04T00:18:23.000Z
2021-12-30T13:41:54.000Z
import shutil from subprocess import PIPE, Popen import pytest from . import data_stream # import weblogo def _exec(args, outputtext, returncode=0, stdin=None): if not stdin: stdin = data_stream("cap.fa") args = ["weblogo"] + args p = Popen(args, stdin=stdin, stdout=PIPE, stderr=PIPE) (out,...
24.542056
86
0.536177
74d62e58f4646ad540708a1813e7518a4f7d7172
6,249
py
Python
test/implementation/implementation_autograd.py
pitmonticone/backpack
b5bdb7e1171a1c0ace187915b9e54c2087d61d3a
[ "MIT" ]
null
null
null
test/implementation/implementation_autograd.py
pitmonticone/backpack
b5bdb7e1171a1c0ace187915b9e54c2087d61d3a
[ "MIT" ]
null
null
null
test/implementation/implementation_autograd.py
pitmonticone/backpack
b5bdb7e1171a1c0ace187915b9e54c2087d61d3a
[ "MIT" ]
null
null
null
import torch from backpack.hessianfree.ggnvp import ggn_vector_product_from_plist from backpack.hessianfree.hvp import hessian_vector_product from backpack.hessianfree.rop import R_op from backpack.utils.convert_parameters import vector_to_parameter_list from .implementation import Implementation class AutogradImpl...
33.778378
88
0.595455
74d654d286bce86820e651c489963dac1f23b10d
6,387
py
Python
src/tasks/nlvr2.py
eltoto1219/multimodal-pretraining
c5ca38c4f22901b6a94280b973f4a49dce4a828f
[ "MIT" ]
795
2019-08-21T01:01:18.000Z
2022-03-29T12:42:33.000Z
src/tasks/nlvr2.py
eltoto1219/multimodal-pretraining
c5ca38c4f22901b6a94280b973f4a49dce4a828f
[ "MIT" ]
106
2019-08-22T06:52:51.000Z
2021-12-17T03:03:57.000Z
src/tasks/nlvr2.py
eltoto1219/multimodal-pretraining
c5ca38c4f22901b6a94280b973f4a49dce4a828f
[ "MIT" ]
166
2019-08-21T06:51:29.000Z
2022-03-29T03:17:33.000Z
# coding=utf-8 # Copyleft 2019 project LXRT. import os import collections from tqdm import tqdm import torch import torch.nn as nn from torch.utils.data.dataloader import DataLoader from param import args from tasks.nlvr2_model import NLVR2Model from tasks.nlvr2_data import NLVR2Dataset, NLVR2TorchDataset, NLVR2Eval...
34.901639
98
0.573665
74d66613fe48ba7a25ca522a654101be68387495
2,791
py
Python
alipay/aop/api/domain/AlipayDataIotdataImageaestheticBaiQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayDataIotdataImageaestheticBaiQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayDataIotdataImageaestheticBaiQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayDataIotdataImageaestheticBaiQueryModel(object): def __init__(self): self._biz_id = None self._image_base_64 = None self._image_url = None self._trace_id = No...
27.633663
77
0.572196
74d6763f3fc95a48ac5ecfd263cb55d30a0adc73
924
py
Python
supriya/ugens/BiPanB2.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/BiPanB2.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/BiPanB2.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.synthdefs import MultiOutUGen class BiPanB2(MultiOutUGen): """ A 2D ambisonic b-format panner. :: >>> in_a = supriya.ugens.SinOsc.ar() >>> in_b = supriya.ugens.WhiteNoise.ar() >>> bi_pan_b_2 = supriya.ugens.BiPa...
21.488372
79
0.580087
74d6ae2ee0192a592a233bf82db681a70cc3e9af
1,235
py
Python
class4_ex1-2.py
bosatsu/pynet_automation
97319685dd4e99f16c60fb5e2708fd2a469c3d60
[ "Apache-2.0" ]
null
null
null
class4_ex1-2.py
bosatsu/pynet_automation
97319685dd4e99f16c60fb5e2708fd2a469c3d60
[ "Apache-2.0" ]
null
null
null
class4_ex1-2.py
bosatsu/pynet_automation
97319685dd4e99f16c60fb5e2708fd2a469c3d60
[ "Apache-2.0" ]
null
null
null
import argparse import paramiko import time from getpass import getpass parser = argparse.ArgumentParser('''SSH function that takes 2 parameters. The first parameter should be an IP string to indicate which device . The second parameter should be a command string to be passed to the device.''') parser.add_argument(...
22.87037
80
0.756275
74d6b515a5c4fb9e8aaa61eb42d50546233a1f28
2,954
py
Python
amg/__init__.py
ladoramkershner/automated-metadata-generation
38890c77f9224b9d769ad30796fd25afd60fd5bd
[ "CC0-1.0" ]
null
null
null
amg/__init__.py
ladoramkershner/automated-metadata-generation
38890c77f9224b9d769ad30796fd25afd60fd5bd
[ "CC0-1.0" ]
null
null
null
amg/__init__.py
ladoramkershner/automated-metadata-generation
38890c77f9224b9d769ad30796fd25afd60fd5bd
[ "CC0-1.0" ]
null
null
null
import warnings __version__ = '0.2.0' class UnifiedMetadata(): """ This class is the primary means by which this library is intended to be used. Specifically, this class takes a number of other metadata objects from disparate sources and seeks to homogenize the input data into a single container...
39.386667
188
0.634056
74d70bf2f8d014b02439fc1488342794de4b6509
1,715
py
Python
data/scripts/prepare_idd.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
17
2021-07-15T13:22:31.000Z
2022-02-15T05:37:51.000Z
data/scripts/prepare_idd.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
null
null
null
data/scripts/prepare_idd.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
3
2021-07-16T09:25:10.000Z
2022-01-11T12:36:28.000Z
import argparse from glob import glob import os from PIL import Image import numpy as np from tqdm import tqdm def main(args): prepare_idd_for_phase(args.data_root, "train") prepare_idd_for_phase(args.data_root, "val") def prepare_idd_for_phase(data_root, phase): sem_paths = glob(os.path.join(data_root, "...
40.833333
125
0.627405
74d7521ff19166d6b0d47e920e30dac78674478b
1,629
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_06_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_06_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_06_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
32.58
94
0.71639
74d760ae575c2795d011f5690fcf855df923f5d9
5,499
py
Python
configure_nbextensions.py
amueller/IPython-notebook-extensions
5c7dc53f0bf2ca2bd67a57519bfc98c6a8135528
[ "BSD-3-Clause-Clear" ]
1
2020-03-13T20:55:02.000Z
2020-03-13T20:55:02.000Z
configure_nbextensions.py
amueller/IPython-notebook-extensions
5c7dc53f0bf2ca2bd67a57519bfc98c6a8135528
[ "BSD-3-Clause-Clear" ]
null
null
null
configure_nbextensions.py
amueller/IPython-notebook-extensions
5c7dc53f0bf2ca2bd67a57519bfc98c6a8135528
[ "BSD-3-Clause-Clear" ]
7
2016-09-15T08:19:52.000Z
2021-03-22T01:13:41.000Z
# -*- coding: utf-8 -*- # Install notebook extensions from __future__ import print_function from jupyter_core.paths import jupyter_config_dir, jupyter_data_dir from traitlets.config.loader import Config, JSONFileConfigLoader import os import sys import json import psutil marker = '#--- nbextensions configuration ---'...
33.126506
119
0.70922
74d76ac31d42291103210ab2dff604ec9ae13c34
733
py
Python
marqeta/response_models/kyc_answer.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/kyc_answer.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/kyc_answer.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class KycAnswer(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=self.json_serial) ...
23.645161
81
0.683492
74d76f786ad286a2f47d687616e79bdf8ddf88a3
4,918
py
Python
graph/wales.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
graph/wales.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
graph/wales.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
import pandas,requests,pytz, logging from . import n_ireland from .models import DailyCases from .ons_week import wales_codes from .phe_fetch import update_weekly_cases, Check_PHE from uk_covid19 import Cov19API log = logging.getLogger('api.graph.wales') import configs from configs import userconfig URL_DASHBOARD="htt...
34.879433
194
0.648028
74d7936505f6ed4406ae656d0f4cfe7ce4ec2b99
5,855
py
Python
Testing/publications/books/literature/title.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Testing/publications/books/literature/title.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Testing/publications/books/literature/title.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # ----------------------------------------------------------------------------- # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # # P A G E B O T # # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # Supporting Flat, xxyxy...
38.774834
82
0.651921
74d7a3587807285fdceddad420989e29a66960bb
15,100
py
Python
tensorflow_model_optimization/python/core/clustering/keras/cluster_wrapper.py
moneypi/model-optimization
1408a1ae328304f3b5d238c41479382efb015869
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/clustering/keras/cluster_wrapper.py
moneypi/model-optimization
1408a1ae328304f3b5d238c41479382efb015869
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/clustering/keras/cluster_wrapper.py
moneypi/model-optimization
1408a1ae328304f3b5d238c41479382efb015869
[ "Apache-2.0" ]
null
null
null
# 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 required by applica...
39.220779
118
0.709735
74d7c22055a3f26ec025c81ae4bf1c0239a5a52e
9,797
py
Python
cadnano/views/gridview/prexovermanager.py
sherwoodyao/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
cadnano/views/gridview/prexovermanager.py
scholer/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
cadnano/views/gridview/prexovermanager.py
scholer/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
"""Summary """ from PyQt5.QtWidgets import QGraphicsRectItem from . import gridstyles as styles from .gridextras import PreXoverItemGroup, WEDGE_RECT from . import ( GridNucleicAcidPartItemT, GridVirtualHelixItemT ) _RADIUS = styles.GRID_HELIX_RADIUS class PreXoverManager(QGraphicsRectItem): """Summary ...
37.536398
103
0.561498
74d803e4287674a5763402c355ecff02e530f8db
45,139
py
Python
tensor2tensor/data_generators/text_problems.py
Chris19920210/tensor2tensor
03f494b7b1aa9180e75e4a274b0e1df10629f0fa
[ "Apache-2.0" ]
4
2018-11-18T10:07:13.000Z
2019-12-10T11:18:24.000Z
tensor2tensor/data_generators/text_problems.py
Chris19920210/tensor2tensor
03f494b7b1aa9180e75e4a274b0e1df10629f0fa
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/text_problems.py
Chris19920210/tensor2tensor
03f494b7b1aa9180e75e4a274b0e1df10629f0fa
[ "Apache-2.0" ]
1
2018-11-18T10:09:50.000Z
2018-11-18T10:09:50.000Z
# coding=utf-8 # Copyright 2019 The Tensor2Tensor 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...
35.209828
80
0.694411
74d81bc902072d41e826268f44e1a9c9e7c40471
1,446
py
Python
FlatBuf_ZMQ/sub.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
4
2022-01-16T17:36:49.000Z
2022-02-07T16:57:33.000Z
FlatBuf_ZMQ/sub.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
null
null
null
FlatBuf_ZMQ/sub.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
1
2022-01-25T23:51:51.000Z
2022-01-25T23:51:51.000Z
# Author: Aniruddha Gokhale # Created: Fall 2019 # Modified: Spring 2021 # # Purpose: demonstrate subscriber for a topic receiving complex data type # # Here our topic comprises a sequence number, a timestamp, and a data buffer # of several uint32 numbers (whose value is not relevant to us) # import the needed pa...
26.777778
89
0.650069
74d82a3c120f74699e9f5f625d925ada7ac14fc4
2,053
py
Python
wechat_django/pay/notify.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
166
2019-02-23T10:19:33.000Z
2022-02-03T06:50:15.000Z
wechat_django/pay/notify.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
19
2019-05-07T07:28:32.000Z
2021-06-02T06:56:03.000Z
wechat_django/pay/notify.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
54
2019-02-27T07:55:57.000Z
2021-09-02T06:47:51.000Z
# -*- coding: utf-8 -*- """微信通知处理器""" from __future__ import unicode_literals from django.core.exceptions import ObjectDoesNotExist from django.http import response from django.utils.translation import ugettext_lazy as _ from wechatpy.exceptions import InvalidSignatureException from wechat_django.sites.wechat impor...
36.017544
122
0.666342
74d848dc0b16e0724cd94634676c5a3bacbbb365
1,717
py
Python
contrib/performance/benchmarks/unbounded_recurrence.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
contrib/performance/benchmarks/unbounded_recurrence.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
contrib/performance/benchmarks/unbounded_recurrence.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2011-2015 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.019231
84
0.726267
74d860f39e3f1305984ec891a642ca51b9d62ebd
128,305
py
Python
pypeit/core/wavecal/autoid.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/wavecal/autoid.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/wavecal/autoid.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
""" Module for finding patterns in arc line spectra """ from scipy.ndimage.filters import gaussian_filter from scipy.spatial import cKDTree import itertools import scipy from linetools import utils as ltu from astropy import table import copy import numba as nb import numpy as np import pdb from astropy.table import T...
47.643892
150
0.583337
74d86b3b5b81d485bfde4c8fbb84c08ca1055169
516
py
Python
src/clusto/drivers/devices/consoleservers/basicconsoleserver.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
src/clusto/drivers/devices/consoleservers/basicconsoleserver.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
src/clusto/drivers/devices/consoleservers/basicconsoleserver.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
from clusto.drivers import Device from clusto.drivers.devices import PortMixin, IPMixin class BasicConsoleServer(IPMixin, PortMixin, Device): """ Basic console server Driver """ _clusto_type = 'consoleserver' _driver_name = 'basicconsoleserver' _portmeta = { 'pwr-nema-5' : { 'numports':...
24.571429
56
0.587209
74d88efd7c94e70f2d6eb5832ce06043586c2d2f
9,255
py
Python
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macroeditor.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macroeditor.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macroeditor.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
36.011673
109
0.618585
74d892bf3c45c90ecb6afe80e1092e4402866c6a
1,970
py
Python
database/imports.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
database/imports.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
database/imports.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
from datetime import datetime,timedelta #ALL TIMES ARE UTC WITH tzinfo=None, CONVERT LATER; FIXME postgress assumes the times give are from the env timezone >_<, just use func.now #IEEE DOUBLE and numpy float64 have the same format, 1 bit sign, 11 bits exponent, 52 bits mantissa #from sqlalchemy ...
44.772727
179
0.619797
74d894cd8a9da685abb6bd5e668496bad8c7c0e6
3,136
py
Python
var/spack/repos/builtin/packages/py-pyzmq/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-pyzmq/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-pyzmq/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPyzmq(PythonPackage): """PyZMQ: Python bindings for zeromq.""" homepage = "https://g...
42.958904
96
0.655612
74d8a0376250ceef0a14ba6edb852d59cbc966d5
2,229
py
Python
venv/Lib/site-packages/pyrogram/raw/base/document.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/document.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/document.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
37.15
99
0.63616
74d8b60809423d67f3658bc5167165b0e6a90138
4,137
py
Python
appengine/findit/infra_api_clients/codereview/test/cl_info_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/infra_api_clients/codereview/test/cl_info_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/infra_api_clients/codereview/test/cl_info_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import datetime import unittest from infra_api_clients.codereview import cl_info class ClInfoTest(unittest.TestCase): server = 'codereview.chromium.org...
36.289474
80
0.647087
74d8c11c1c6664443ca12187a26a959c4341ec69
4,154
py
Python
setup.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
null
null
null
setup.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
18
2021-03-31T06:48:46.000Z
2022-03-30T13:08:06.000Z
setup.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Setup script to make PUDL directly installable with pip.""" import os from pathlib import Path from setuptools import find_packages, setup install_requires = [ "addfips~=0.3.0", "catalystcoop.dbfread~=3.0", "coloredlogs~=15.0", "contextily~=1.0", "datapackage~=1.11", ...
31.469697
79
0.626384
74d8d2bc3a1236ec858c7cd2c94ea8bf864ce9c0
3,720
py
Python
alexa/windowsOpen/windowsOpenIntent.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
122
2018-08-17T07:07:10.000Z
2022-03-14T03:16:44.000Z
alexa/windowsOpen/windowsOpenIntent.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
4
2018-08-16T06:37:10.000Z
2020-10-04T11:17:23.000Z
alexa/windowsOpen/windowsOpenIntent.py
eifinger/appdaemon-scripts
e4a113a27a8501104c23330c4a7ea6aaf6f35939
[ "MIT" ]
19
2018-09-24T01:07:40.000Z
2022-02-15T21:10:11.000Z
import appdaemon.plugins.hass.hassapi as hass import random import isodate import datetime class WindowsOpenIntent(hass.Hass): def initialize(self): self.listService = self.get_app("listService") return def getIntentResponse(self, slots, devicename): ##################################...
42.758621
87
0.49328
74d8d43a2c55a90f64fbadbbcaab24c1509aca47
4,167
py
Python
pygears_riscv/verif/spike_instr_test.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
3
2019-04-04T01:39:09.000Z
2022-03-19T02:11:40.000Z
pygears_riscv/verif/spike_instr_test.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
null
null
null
pygears_riscv/verif/spike_instr_test.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
null
null
null
import jinja2 import os from pygears_riscv.verif.spike import Spike from pygears_riscv.riscv.riscv import OPCODE_IMM, FUNCT3_ADDI, FUNCT3_SLTI instruction_names = {OPCODE_IMM: {FUNCT3_ADDI: 'addi', FUNCT3_SLTI: 'slti'}} def disassemble(instruction): if instruction['opcode'] == OPCODE_IMM: name = instruct...
29.34507
81
0.641949
74d8d6969cae74bc51fc2ff7b7d3d58c16800b5f
3,569
py
Python
intersight/models/task_ucs_task8_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/task_ucs_task8_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/task_ucs_task8_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class TaskUcsTask8Ref(object): """ NOTE: This class...
23.793333
77
0.536285
74d8e803ab20b340cda4cae041020bfe29ca8664
2,145
py
Python
weatherstation/api/openweather.py
CombatMage/weatherstation_py
ef2989e7fad8b413c2439824c8f9797843dc5791
[ "MIT" ]
null
null
null
weatherstation/api/openweather.py
CombatMage/weatherstation_py
ef2989e7fad8b413c2439824c8f9797843dc5791
[ "MIT" ]
1
2021-08-17T15:49:22.000Z
2021-08-17T15:49:22.000Z
weatherstation/api/openweather.py
EricNeid/weatherstation_py
ef2989e7fad8b413c2439824c8f9797843dc5791
[ "MIT" ]
null
null
null
""" Get wether data from OpenWetherMap http://openweathermap.org/help/city_list.txt """ import requests from weatherstation.api import weatherdata API_ENDPOINT_TEMPERATURE = "http://api.openweathermap.org/data/2.5/weather" API_ENDPOINT_FORECAST = "http://api.openweathermap.org/data/2.5/forecast/daily" API_ENDPOINT_W...
33.515625
86
0.727739
74d9081db6748828ef6956261fd0bcfa629200c5
4,022
py
Python
alipay/aop/api/request/AlipayOpenAppServiceViewcallbackQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenAppServiceViewcallbackQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenAppServiceViewcallbackQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenAppServiceViewcallbackQueryModel import AlipayOpenAppServiceViewcallbackQueryModel class AlipayOpenAppServiceViewcallbackQ...
27.737931
148
0.648931
74d91c7e6d7bf1142971628afde90904a74c11b6
7,678
py
Python
dust_attenuation/averages.py
gbrammer/dust_attenuation
15144c55d594ea06c4790215f7e0e66b03fd8255
[ "BSD-3-Clause" ]
2
2018-10-30T21:40:32.000Z
2019-09-26T09:58:26.000Z
dust_attenuation/averages.py
gbrammer/dust_attenuation
15144c55d594ea06c4790215f7e0e66b03fd8255
[ "BSD-3-Clause" ]
49
2018-05-01T15:16:03.000Z
2021-05-05T20:18:34.000Z
dust_attenuation/averages.py
gbrammer/dust_attenuation
15144c55d594ea06c4790215f7e0e66b03fd8255
[ "BSD-3-Clause" ]
6
2018-02-28T11:05:07.000Z
2020-04-14T10:58:44.000Z
# -*- coding: utf-8 -*- import numpy as np import astropy.units as u from .baseclasses import BaseAttAvModel from .helpers import _test_valid_x_range, _positive_klambda __all__ = ["C00", "L02"] x_range_C00 = [0.12, 2.2] x_range_L02 = [0.097, 0.18] class C00(BaseAttAvModel): r""" Attenuation curve of Calze...
26.294521
87
0.557046
74d92c174d59c2a4335e676bff1ed16f72979e12
3,525
py
Python
backend/Django/logsyllogsite/logsyllogsite/settings.py
emg/syllog
8855575ba97b9fefbc9980e4e1030f201b908470
[ "MIT" ]
null
null
null
backend/Django/logsyllogsite/logsyllogsite/settings.py
emg/syllog
8855575ba97b9fefbc9980e4e1030f201b908470
[ "MIT" ]
null
null
null
backend/Django/logsyllogsite/logsyllogsite/settings.py
emg/syllog
8855575ba97b9fefbc9980e4e1030f201b908470
[ "MIT" ]
null
null
null
""" Django settings for logsyllogsite project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import...
24.823944
91
0.716312
74d9531649c62386f39d32a77946595df3175664
1,619
py
Python
role_equivalence_check.py
gravitational/rbac-linter
57c21b4258831395f5543edb1a3ccfdcf0177d9b
[ "Apache-2.0" ]
24
2021-12-05T17:59:10.000Z
2022-03-22T20:09:31.000Z
role_equivalence_check.py
gravitational/rbac-linter
57c21b4258831395f5543edb1a3ccfdcf0177d9b
[ "Apache-2.0" ]
5
2021-12-09T13:54:53.000Z
2022-02-17T20:43:39.000Z
role_equivalence_check.py
gravitational/rbac-linter
57c21b4258831395f5543edb1a3ccfdcf0177d9b
[ "Apache-2.0" ]
4
2021-12-14T15:26:10.000Z
2022-01-20T10:35:08.000Z
import argparse import logging from role_analyzer import allows, AuthzContext import yaml from z3 import Distinct, Solver, sat, unsat # type: ignore def roles_are_equivalent(r1, r2) -> tuple[bool, str]: authz_context = AuthzContext(True) r1 = allows(authz_context, r1) r2 = allows(authz_context, r2) s...
28.910714
88
0.620136
74d96499fd86e7db49e3a9fafbda84a94abd43e3
42,353
py
Python
leo/plugins/bookmarks.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/bookmarks.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/bookmarks.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:tbrown.20070322113635: * @file bookmarks.py #@+<< docstring >> #@+node:tbrown.20070322113635.1: ** << docstring >> ''' Manage bookmarks in a list, and show bookmarks in a pane. This plugin has two bookmark related functions. It manages nodes that contain bookmarks, and can also display those...
34.405361
107
0.602744
74d9b6731f5969aac8aadb746b18bcdd03e45b5b
4,807
py
Python
esky/tests/eskytester/script2.py
omnivore/esky
39e77deacf3e48d4d5d7a46701d9ef0f5593820d
[ "BSD-3-Clause" ]
1
2019-07-11T14:50:07.000Z
2019-07-11T14:50:07.000Z
esky/tests/eskytester/script2.py
omnivore/esky
39e77deacf3e48d4d5d7a46701d9ef0f5593820d
[ "BSD-3-Clause" ]
null
null
null
esky/tests/eskytester/script2.py
omnivore/esky
39e77deacf3e48d4d5d7a46701d9ef0f5593820d
[ "BSD-3-Clause" ]
null
null
null
# Second entry point for testing an esky install. from __future__ import with_statement import os import sys import stat import subprocess import esky import esky.util import esky.tests ESKY_CONTROL_DIR = esky.util.ESKY_CONTROL_DIR ESKY_APPDATA_DIR = esky.util.ESKY_APPDATA_DIR platform = esky.util.get_platform...
38.456
133
0.68213
74d9ccde0e74c69a02d3ab59e6f0365467a0c35a
5,664
py
Python
atom/nucleus/python/nucleus_api/models/model_holding_vo.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/model_holding_vo.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/model_holding_vo.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from nucleus_api.configuration i...
28.039604
132
0.594103
74d9f33c65e28f58bdf2dab09d95f2326b59481d
3,542
py
Python
tests/common/test_op/ascend/scatter_.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/scatter_.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/scatter_.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
41.670588
118
0.641163
74da1ecec5745dfe4aa6d0791ffc5e340c8ca7f4
8,668
py
Python
lib/daemon.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
1
2017-02-21T17:52:54.000Z
2017-02-21T17:52:54.000Z
lib/daemon.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
null
null
null
lib/daemon.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without...
36.57384
97
0.613752
74da35acffc9c22d78266a142262619f8cfe89cc
10,104
py
Python
amatino/ledger.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
2
2018-07-20T20:00:33.000Z
2020-10-08T15:49:06.000Z
amatino/ledger.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
1
2020-05-21T02:49:29.000Z
2020-05-21T02:49:29.000Z
amatino/ledger.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
3
2018-09-03T09:31:31.000Z
2020-05-21T05:30:00.000Z
""" Amatino API Python Bindings Ledger Module Author: hugh@amatino.io """ from datetime import datetime from amatino.ledger_order import LedgerOrder from amatino.internal.am_time import AmatinoTime from amatino.denomination import Denomination from amatino.custom_unit import CustomUnit from amatino.global_unit import G...
34.135135
80
0.623515
74da600d6d0db29280bd6512017c5401fc9eade6
128
py
Python
midterm1/nickname.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
midterm1/nickname.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
midterm1/nickname.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
def create_nickname(team, word): gen_nickname = lambda string: string[::-1] + word return tuple(map(gen_nickname, team))
42.666667
53
0.710938
74da67b5765ef4116494cbb82c13ef84c664db2a
7,781
py
Python
zombreak_cli.py
devdo-eu/zombreak
05958a7e3980de1933eebda8645dda2db3d0da71
[ "MIT" ]
null
null
null
zombreak_cli.py
devdo-eu/zombreak
05958a7e3980de1933eebda8645dda2db3d0da71
[ "MIT" ]
1
2021-04-01T06:18:33.000Z
2021-04-01T06:18:33.000Z
zombreak_cli.py
devdo-eu/zombreak
05958a7e3980de1933eebda8645dda2db3d0da71
[ "MIT" ]
null
null
null
import requests from time import sleep import os from collections.abc import Callable def crash_on_error(response: requests.Response) -> None: """ Function used to raise exception and end client work. :param response: Response object with answer from rest api game server """ if response.status_cod...
42.519126
118
0.658913
74da70dced0d98de62e73897b6f12448afe637b0
4,201
py
Python
mimo/distributions/matrix.py
MichaelLutter/mimo
8a6a770ee90cbd6fd5cc12141d19442a3477af2c
[ "MIT" ]
null
null
null
mimo/distributions/matrix.py
MichaelLutter/mimo
8a6a770ee90cbd6fd5cc12141d19442a3477af2c
[ "MIT" ]
null
null
null
mimo/distributions/matrix.py
MichaelLutter/mimo
8a6a770ee90cbd6fd5cc12141d19442a3477af2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- codcolg: utf-8 -*- # @Filename: matrix.py # @Date: 2019-06-10-13-56 # @Author: Hany Abdulsamad # @Contact: hany@robot-learning.de import numpy as np import numpy.random as npr from scipy import linalg from numpy.core.umath_tests import inner1d from mimo.abstractions import Distribution ...
28.972414
104
0.572959
74da9d56c4c220e69a8f7baa95fac1f3743ecabc
2,882
py
Python
venv/Lib/site-packages/pyrogram/raw/base/channel_participants_filter.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/base/channel_participants_filter.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/base/channel_participants_filter.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
50.561404
331
0.696044
74dad36b0a889e8847cbc27e0e6395549c07f426
3,366
py
Python
configs/textdet/psenet/psenet_r50_fpnf_600e_pubtabnet.py
JiaquanYe/MASTER-mmocr
eb30cfce1da7676da68e7dd1250e048aad9d4dec
[ "Apache-2.0" ]
75
2021-07-30T09:05:15.000Z
2022-03-23T07:08:22.000Z
configs/textdet/psenet/psenet_r50_fpnf_600e_pubtabnet.py
JiaquanYe/MASTER-mmocr
eb30cfce1da7676da68e7dd1250e048aad9d4dec
[ "Apache-2.0" ]
5
2021-09-14T09:03:18.000Z
2022-02-20T16:59:18.000Z
configs/textdet/psenet/psenet_r50_fpnf_600e_pubtabnet.py
JiaquanYe/MASTER-mmocr
eb30cfce1da7676da68e7dd1250e048aad9d4dec
[ "Apache-2.0" ]
13
2021-07-30T09:08:09.000Z
2022-01-26T03:51:59.000Z
_base_ = ['../../_base_/runtime_10e.py'] # optimizer optimizer = dict(type='Adam', lr=1e-4) optimizer_config = dict(grad_clip=None) # learning policy lr_config = dict(policy='step', step=[200, 400]) total_epochs = 600 model = dict( type='PSENet', pretrained='torchvision://resnet50', backbone=dict( ...
29.787611
77
0.607843
74dae6e5c60fa969d9349e79cef28d53b9085b13
106,621
py
Python
SCRAPE/Lib/site-packages/twisted/internet/test/test_tcp.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/twisted/internet/test/test_tcp.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/twisted/internet/test/test_tcp.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for implementations of L{IReactorTCP} and the TCP parts of L{IReactorSocket}. """ import errno import gc import io import os import socket from functools import wraps from typing import Callable, ClassVar, List, Optional, Sequence, Typ...
33.465474
88
0.645286
74db0fc90c2bab922945a3e04d3ac4af0c248644
428
py
Python
sketch/models/MSGradientStop.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
2
2018-10-22T12:43:51.000Z
2018-12-02T02:41:55.000Z
sketch/models/MSGradientStop.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
null
null
null
sketch/models/MSGradientStop.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
null
null
null
class MSGradientStop(object): """ Represents a gradient stop on a gradient line """ def __init__(self, position, color): """ Creates a new stop at the given position and with the specified color """ pass @property def position(self): """ A float """ ...
20.380952
77
0.551402
74db185a12ee81fbda72a48b512399df371231ae
4,152
py
Python
sitator/visualization/common.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
8
2018-10-05T18:02:24.000Z
2021-02-22T20:24:58.000Z
sitator/visualization/common.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
6
2019-02-21T04:33:01.000Z
2021-01-06T20:05:25.000Z
sitator/visualization/common.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
6
2018-08-11T21:43:59.000Z
2021-12-21T06:32:12.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib from mpl_toolkits.mplot3d import Axes3D from functools import wraps DEFAULT_COLORS = ['tab:blue', 'tab:orange', 'tab:green', 'tab:pink', 'tab:purple', 'tab:brown', 'tab:cyan', 'tab:red', 'tab:gray', 'tab:olive'] ELEMENT_COLORS = { 'H' : 'white...
28.438356
143
0.549855
74db1925bf40212bc6832a4cb5938fd011181978
3,705
py
Python
python/tests/wrapper/test_01_synthetic_collection.py
fs2cousins/bigartm
6cf4d1fa664bbc9fba573e2a033cbae8338bcbda
[ "BSD-3-Clause" ]
1
2018-05-12T05:48:17.000Z
2018-05-12T05:48:17.000Z
python/tests/wrapper/test_01_synthetic_collection.py
fs2cousins/bigartm
6cf4d1fa664bbc9fba573e2a033cbae8338bcbda
[ "BSD-3-Clause" ]
null
null
null
python/tests/wrapper/test_01_synthetic_collection.py
fs2cousins/bigartm
6cf4d1fa664bbc9fba573e2a033cbae8338bcbda
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import uuid import shutil import tempfile import itertools import pytest from six.moves import range, zip import artm.wrapper import artm.wrapper.messages_pb2 as messages import artm.master_component as mc def test_func(): # Set some constants num_tokens = 60 num_it...
35.285714
117
0.634008
74db1c180547a61b27d7c1fa9b2d36128d140e66
5,251
py
Python
regparser/tree/xml_parser/tree_utils.py
cfpb/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
36
2015-01-05T21:17:36.000Z
2020-04-28T21:02:55.000Z
regparser/tree/xml_parser/tree_utils.py
DalavanCloud/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
49
2015-01-28T15:54:25.000Z
2018-08-20T20:20:08.000Z
regparser/tree/xml_parser/tree_utils.py
DalavanCloud/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
23
2015-01-28T15:34:18.000Z
2021-02-20T10:53:34.000Z
# vim: set encoding=utf-8 from copy import deepcopy import HTMLParser from itertools import chain from pyparsing import Literal, Optional, Regex, Suppress from regparser.citations import remove_citation_overlaps from regparser.tree.depth import markers as mtypes from regparser.tree.paragraph import p_levels from regp...
32.018293
77
0.614359
74db246657d05e9336bbc49e064334a668426a1d
3,414
py
Python
rtree_area_plot.py
bendemott/Python-Shapely-Examples
feda19bb4bf32e6d387d717bcc95bfc39057696f
[ "MIT" ]
3
2017-11-21T14:51:16.000Z
2018-12-06T08:07:09.000Z
rtree_area_plot.py
deep0072/Python-Shapely-Examples
feda19bb4bf32e6d387d717bcc95bfc39057696f
[ "MIT" ]
null
null
null
rtree_area_plot.py
deep0072/Python-Shapely-Examples
feda19bb4bf32e6d387d717bcc95bfc39057696f
[ "MIT" ]
4
2016-09-20T06:00:34.000Z
2021-05-18T09:42:53.000Z
''' @author Ben In this example we will compare Shapely AGAINST RTREE for performance NOTE: to get this to work I had to install libspatialindex 1.5 from source and then: export LD_LIBRARY_PATH=/usr/local/lib ''' import random, os, sys, time, numpy from rtree import Rtree # instantiate the Rtree class RtreeIndex =...
26.671875
138
0.683948
74db34a046620d4a621575eb60ccd743f1a11815
784
py
Python
incasem/torch/loss/generalized_dice_loss.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/torch/loss/generalized_dice_loss.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/torch/loss/generalized_dice_loss.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
import logging from pytorch3dunet.unet3d.losses import \ GeneralizedDiceLoss as GeneralizedDiceLossOneHot from pytorch3dunet.unet3d.utils import expand_as_one_hot logger = logging.getLogger(__name__) class GeneralizedDiceLoss(GeneralizedDiceLossOneHot): def __init__(self, num_classes, sigmoid_normalization=T...
31.36
78
0.725765
74db67eb9c007f5e227d9434d77426353401cbb0
3,975
py
Python
2_train_model/CNN_utils.py
wangx404/JAV_actress_face_recognition_demo
f69cf03987796e4f62ceb9dc9f7800700ce70349
[ "MIT" ]
12
2019-07-18T16:54:10.000Z
2022-03-04T01:32:42.000Z
2_train_model/CNN_utils.py
wangx404/JAV_actress_face_recognition_demo
f69cf03987796e4f62ceb9dc9f7800700ce70349
[ "MIT" ]
1
2020-07-30T12:11:32.000Z
2020-07-30T12:12:38.000Z
2_train_model/CNN_utils.py
wangx404/JAV_actress_face_recognition_demo
f69cf03987796e4f62ceb9dc9f7800700ce70349
[ "MIT" ]
2
2019-08-04T07:00:29.000Z
2022-03-04T01:32:43.000Z
# -*- coding: utf-8 -*- import numpy as np import mxnet as mx from mxnet import gluon, image, nd import os def evaluateAccuracy(data_iterator, net, ctx): ''' Evaluate the accuracy of the model on dataset (mainly used on validation set). 评估模型的准确率。 :param data_iterator: :param net: CNN net model ...
37.149533
96
0.62239
74db6d24e30766fac13473d689342ea3e103b426
20,012
py
Python
baldr/api.py
sobolevn/baldr
6413de0b87722957e5a49bd441b18dcb934864f5
[ "BSD-3-Clause" ]
4
2019-08-07T22:29:33.000Z
2021-12-19T14:25:39.000Z
baldr/api.py
sobolevn/baldr
6413de0b87722957e5a49bd441b18dcb934864f5
[ "BSD-3-Clause" ]
2
2016-12-15T15:46:26.000Z
2020-06-06T23:07:56.000Z
baldr/api.py
sobolevn/baldr
6413de0b87722957e5a49bd441b18dcb934864f5
[ "BSD-3-Clause" ]
3
2015-09-27T16:43:40.000Z
2020-06-06T23:04:07.000Z
# coding=utf-8 import logging from django.conf import settings from django.conf.urls import url, include from django.core.exceptions import PermissionDenied from django.http import HttpResponse, Http404 from django.utils.functional import cached_property from django.views.decorators.csrf import csrf_exempt import sys f...
35.672014
119
0.621127
74db762b786a492105417e0db34b09edf3812c2b
2,940
py
Python
extrap/entities/calltree.py
extra-p/extrap
34f9d8b078aa240defd6ac50203efd44d6f60f79
[ "BSD-3-Clause" ]
13
2020-11-12T21:50:09.000Z
2022-03-03T11:01:27.000Z
extrap/entities/calltree.py
extra-p/extrap
34f9d8b078aa240defd6ac50203efd44d6f60f79
[ "BSD-3-Clause" ]
3
2020-12-04T12:49:37.000Z
2021-05-06T11:41:31.000Z
extrap/entities/calltree.py
extra-p/extrap
34f9d8b078aa240defd6ac50203efd44d6f60f79
[ "BSD-3-Clause" ]
6
2021-01-14T16:06:47.000Z
2021-09-01T09:54:37.000Z
# This file is part of the Extra-P software (http://www.scalasca.org/software/extra-p) # # Copyright (c) 2020-2021, Technical University of Darmstadt, Germany # # This software may be modified and distributed under the terms of a BSD-style license. # See the LICENSE file in the base directory for details. from typing ...
28
102
0.581633
74db7b3e269916a734b60e3dd5131359f6d0006e
340
py
Python
lib/python/qmk/tests/test_qmk_path.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/tests/test_qmk_path.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/tests/test_qmk_path.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
import os from pathlib import Path import qmk.path def test_keymap_onekey_pytest(): path = qmk.path.keymap('handwired/onekey/pytest') assert path.samefile('keyboards/handwired/onekey/keymaps') def test_normpath(): path = qmk.path.normpath('lib/python') assert path.samefile(Path(os.environ['ORIG_CWD...
22.666667
69
0.732353