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
386436341792000b5b9e87d515d858711f91f334
49,017
py
Python
pypeit/core/procimg.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/core/procimg.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/core/procimg.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Module for image processing core methods .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ from IPython import embed import numpy as np from scipy import signal, ndimage from scipy.optimize import curve_fit from pypeit import msgs from pypeit import util...
41.716596
129
0.617378
38644a08e74bf947e20bc2ebd11b5e4c424aae27
533
py
Python
flexcabling.py
takkaneko/netengtools
888face2fb73e75679032f93dff8c87cc5c90eac
[ "MIT" ]
null
null
null
flexcabling.py
takkaneko/netengtools
888face2fb73e75679032f93dff8c87cc5c90eac
[ "MIT" ]
null
null
null
flexcabling.py
takkaneko/netengtools
888face2fb73e75679032f93dff8c87cc5c90eac
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # flexcabling.py import flexcablingiad import flexcablingsjc def main(): while True: try: site = input('Please select a site (iad/sjc): ').strip().lower() if not site in ['iad','sjc']: print('ERROR: INVALID DATA\n') else: ...
23.173913
76
0.538462
3864741ecba34b3a5c60e4a0a7d0a0c421dd92b4
1,596
py
Python
tests/serialize_test.py
m4ta1l/reverse-engineering-neural-networks
a2bcf18cb12f6026eb1f07be93a5b4a3dca1c042
[ "Apache-2.0" ]
102
2020-07-23T18:15:18.000Z
2022-03-10T10:49:12.000Z
tests/serialize_test.py
m4ta1l/reverse-engineering-neural-networks
a2bcf18cb12f6026eb1f07be93a5b4a3dca1c042
[ "Apache-2.0" ]
26
2020-07-24T21:47:58.000Z
2021-05-18T02:16:00.000Z
tests/serialize_test.py
Smirenost/reverse-engineering-neural-networks
a2bcf18cb12f6026eb1f07be93a5b4a3dca1c042
[ "Apache-2.0" ]
24
2020-08-02T00:19:09.000Z
2022-01-17T10:43:42.000Z
# Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
25.741935
75
0.653509
38647ec0812b6661597369efaacd2115671041b6
4,087
py
Python
src/FastQ2BAM.py
visze/MPRAflow
f2289b9399c0a816bd572ff2dae0a496fc6cc85e
[ "Apache-2.0" ]
16
2020-01-13T17:42:00.000Z
2022-03-08T18:33:12.000Z
src/FastQ2BAM.py
visze/MPRAflow
f2289b9399c0a816bd572ff2dae0a496fc6cc85e
[ "Apache-2.0" ]
25
2020-01-09T13:42:22.000Z
2022-02-24T11:55:29.000Z
src/FastQ2BAM.py
visze/MPRAflow
f2289b9399c0a816bd572ff2dae0a496fc6cc85e
[ "Apache-2.0" ]
6
2020-01-03T14:05:30.000Z
2021-04-30T19:37:44.000Z
#!/usr/bin/env python # -*- coding: ASCII -*- """ Convert fast(a|q) reads into BAM :Author: Martin Kircher :Contact: Martin.Kircher@eva.mpg.de :Date: *19.09.2011 :Type: tool :Input: fasta, fastq :Output: BAM """ import sys import os sys.path.append("/home/sbsuser/lib/python") sys.path.append("/mnt/solexa/bin/") im...
33.227642
144
0.671642
3864930399a4cd0ce70d42d8a0b95c1261e38d4d
1,074
py
Python
create_docs.py
gaming32/pygravity
7ed17756fb360bf7465605a53811f50efe4b1cf4
[ "MIT" ]
null
null
null
create_docs.py
gaming32/pygravity
7ed17756fb360bf7465605a53811f50efe4b1cf4
[ "MIT" ]
1
2021-11-05T01:32:26.000Z
2021-11-05T20:09:42.000Z
create_docs.py
gaming32/pygravity
7ed17756fb360bf7465605a53811f50efe4b1cf4
[ "MIT" ]
null
null
null
import os import pydoc import sys from pkgutil import iter_modules from setuptools import find_packages # Copied from https://stackoverflow.com/questions/48879353/how-do-you-recursively-get-all-submodules-in-a-python-package # and modified to be a generator def find_modules(path): for pkg in find_packages(path):...
28.263158
120
0.610801
3864d436ed2d8489edc0354edfad1c92deb9ff2d
3,312
py
Python
app/app/settings.py
neomodular/recipe-app-api
43ffa6258f08e3685f3921d1314fdd90a946bb40
[ "MIT" ]
null
null
null
app/app/settings.py
neomodular/recipe-app-api
43ffa6258f08e3685f3921d1314fdd90a946bb40
[ "MIT" ]
null
null
null
app/app/settings.py
neomodular/recipe-app-api
43ffa6258f08e3685f3921d1314fdd90a946bb40
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
25.476923
91
0.685085
3864d48073624ab1cf7374ffbd7cbac671dc282e
1,429
py
Python
bark_ml/behaviors/discrete_behavior.py
GAIL-4-BARK/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
3
2020-04-25T12:38:55.000Z
2020-04-29T11:55:45.000Z
bark_ml/behaviors/discrete_behavior.py
SebastianGra/bark-ml_MCTS_RL
8334f141d02bdc012a0bc6ac00d679018e0f46f3
[ "MIT" ]
24
2020-05-05T13:53:17.000Z
2020-08-13T15:58:51.000Z
bark_ml/behaviors/discrete_behavior.py
SebastianGra/bark-ml_MCTS_RL
8334f141d02bdc012a0bc6ac00d679018e0f46f3
[ "MIT" ]
1
2022-01-27T13:08:46.000Z
2022-01-27T13:08:46.000Z
# Copyright (c) 2020 fortiss GmbH # # Authors: Patrick Hart, Julian Bernhard, Klemens Esterle, and # Tobias Kessler # # This software is released under the MIT License. # https://opensource.org/licenses/MIT import numpy as np from bark.core.models.behavior import BehaviorModel, BehaviorMPContinuousActions from bark.c...
34.02381
80
0.708188
3864d9774a74aab61e135611a5d25d280787c9cd
7,786
py
Python
sdk/python/pulumiverse_concourse/_utilities.py
pulumiverse/pulumi-concourse
2a805ebf225818d2477809bf3ec38a4f62120eb1
[ "ECL-2.0", "Apache-2.0" ]
1
2022-03-30T19:39:34.000Z
2022-03-30T19:39:34.000Z
sdk/python/pulumiverse_concourse/_utilities.py
pulumiverse/pulumi-concourse
2a805ebf225818d2477809bf3ec38a4f62120eb1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumiverse_concourse/_utilities.py
pulumiverse/pulumi-concourse
2a805ebf225818d2477809bf3ec38a4f62120eb1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib.util import inspect import json import os import pkg_resources import sys import typing import pulumi import pulumi....
32.441667
120
0.67159
3864e6cb87fb88342696b8190e4f88fd819541c5
5,637
py
Python
asposewordscloud/models/requests/delete_macros_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/delete_macros_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/delete_macros_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="delete_macros_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy #...
46.204918
255
0.656732
3864fa384dd12d3abb5990d9ea12bbcde68141c6
24,987
py
Python
salt/modules/xapi.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
salt/modules/xapi.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/xapi.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' This module (mostly) uses the XenAPI to manage Xen virtual machines. Big fat warning: the XenAPI used in this file is the one bundled with Xen Source, NOT XenServer nor Xen Cloud Platform. As a matter of fact it *will* fail under those platforms. From what I've read, little work is needed t...
26.667022
107
0.545083
38653f90f7b82b0685a2176bb70c9d07ea28ca2c
1,999
py
Python
components/collector/tests/source_collectors/jmeter_json/test_tests.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/collector/tests/source_collectors/jmeter_json/test_tests.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/collector/tests/source_collectors/jmeter_json/test_tests.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""Unit tests for the JMeter JSON tests collector.""" from .base import JMeterJSONTestCase class JMeterJSONTestsTest(JMeterJSONTestCase): """Unit tests for the JMeter JSON tests collector.""" METRIC_TYPE = "tests" async def test_no_transactions(self): """Test that the number of tests is 0 if th...
45.431818
90
0.713857
386540d278a1e9552719f10ca91f92d488a0fca7
16,624
py
Python
io/eolearn/io/local_io.py
atedstone/eo-learn
a05d132757ac9dcfd9e9504c74f1e565b8e0f20c
[ "MIT" ]
null
null
null
io/eolearn/io/local_io.py
atedstone/eo-learn
a05d132757ac9dcfd9e9504c74f1e565b8e0f20c
[ "MIT" ]
null
null
null
io/eolearn/io/local_io.py
atedstone/eo-learn
a05d132757ac9dcfd9e9504c74f1e565b8e0f20c
[ "MIT" ]
null
null
null
""" Module containing tasks used for reading and writing to disk Credits: Copyright (c) 2017-2019 Matej Aleksandrov, Matej Batič, Andrej Burja, Eva Erzin (Sinergise) Copyright (c) 2017-2019 Grega Milčinski, Matic Lubej, Devis Peresutti, Jernej Puc, Tomislav Slijepčević (Sinergise) Copyright (c) 2017-2019 Blaž Sovdat, ...
43.862797
120
0.637933
386542141b6d570fd0d0914cdd54f9870a8723e4
1,713
py
Python
hubconf.py
BruceWen120/medical-abbreviation-pretraining
333e49461f7463e97515f949f441c7ac8af7d980
[ "Apache-2.0", "MIT" ]
125
2020-11-10T00:14:57.000Z
2022-03-08T16:37:00.000Z
hubconf.py
jyotidabass/medical_dataset_curation
22d9090cc394b2b8f5b9e7f1f17379a81ec068a7
[ "Apache-2.0", "MIT" ]
7
2021-01-22T17:24:38.000Z
2022-03-07T18:21:25.000Z
hubconf.py
jyotidabass/medical_dataset_curation
22d9090cc394b2b8f5b9e7f1f17379a81ec068a7
[ "Apache-2.0", "MIT" ]
21
2020-11-10T00:17:35.000Z
2022-03-02T15:24:39.000Z
import torch def __build_model(model_class, ckpt, pretrained=True, device='cpu', progress=True, check_hash=True): net = model_class(device=device) if pretrained: state_dict = torch.hub.load_state_dict_from_url( ckpt, map_location=torch.device(device), progress=pro...
32.942308
100
0.638646
386542af33cfdfd88c802fbb181d5af69f6f00db
275,422
py
Python
src/sage/combinat/partition.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/partition.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/partition.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Integer partitions A partition `p` of a nonnegative integer `n` is a non-increasing list of positive integers (the *parts* of the partition) with total sum `n`. A partition can be depicted by a diagram made of rows of cells, where the number of cells in the `i^{th}` row starting from the ...
32.364512
355
0.509375
386557e2430d7c62534ec8322034bd8662dc6b34
1,558
py
Python
config/wsgi.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
config/wsgi.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
config/wsgi.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
""" WSGI config for Comparte Ride project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICAT...
42.108108
79
0.793967
386566e7c15de3276a953deca5fd6bc3ec732610
16,568
py
Python
examples/text_generation/tutorial_generate_text.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
examples/text_generation/tutorial_generate_text.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
examples/text_generation/tutorial_generate_text.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- # Copyright 2019 TensorLayer. 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....
41.52381
117
0.578344
3865683db9e2af11cabafd34a1321850a04eff22
2,656
py
Python
src/training_script/report.py
orcasound/orcaal-research
7b9bf14c01b73696fcb604a5318148e6c4f795cd
[ "MIT" ]
7
2020-11-13T17:36:46.000Z
2022-01-27T00:55:40.000Z
src/training_script/report.py
rahulraikwar00/orcaal-research
1227e61a4535b237cae0f68d7eb25ef2617b06cd
[ "MIT" ]
null
null
null
src/training_script/report.py
rahulraikwar00/orcaal-research
1227e61a4535b237cae0f68d7eb25ef2617b06cd
[ "MIT" ]
6
2020-08-31T19:12:40.000Z
2021-12-10T01:34:46.000Z
#!/usr/bin/env python3 # coding=utf-8 import logging import argparse import numpy as np from keras.models import load_model from keras.preprocessing.image import ImageDataGenerator from sklearn import metrics from sklearn.metrics import confusion_matrix logging.basicConfig(level=logging.INFO) logger = logging.getLogg...
27.381443
72
0.681852
3865693d32ce6aa285ed89fb4bdd1282c27562b8
1,686
py
Python
heartFEM/lcleeHeart/vtk_py/Set4ChamberDirection.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
3
2021-04-13T07:05:20.000Z
2021-10-02T13:41:09.000Z
heartFEM/lcleeHeart/vtk_py/Set4ChamberDirection.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
null
null
null
heartFEM/lcleeHeart/vtk_py/Set4ChamberDirection.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
2
2021-09-06T13:13:41.000Z
2022-03-11T18:59:02.000Z
######################################################################## import argparse import numpy as np from dolfin import * import math ######################################################################## def Set4ChamberDirection(mesh, outfilename, apexC, apexR, basalC, basalN, outdirectory="./"): ...
26.761905
103
0.597272
386574e79d725549e0e93ceaf957afa07ed4a4c7
983
py
Python
config.py
sshnaidm/sopel-lumberjack
3fc7272d57b56f6c3e5cee1c52659dedc8a88ed2
[ "MIT" ]
null
null
null
config.py
sshnaidm/sopel-lumberjack
3fc7272d57b56f6c3e5cee1c52659dedc8a88ed2
[ "MIT" ]
null
null
null
config.py
sshnaidm/sopel-lumberjack
3fc7272d57b56f6c3e5cee1c52659dedc8a88ed2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ Config for Willie-Lumberjack web server. """ PROJECT = 'Willie-Lumberjack' APPNAME = PROJECT #. bottle BIND_HOST = '127.0.1.1' BIND_PORT = 8080 LOGFILE = '/tmp/web.log' PIDFILE = '/tmp/web.pid' #. redis REDIS_HOST = 'irc.lab' REDIS_PORT = 6379 REDIS_DBID = 0 #. log LOG_P...
21.369565
50
0.649034
3865952fccae2752f17938f931cd57b78a98fc44
6,098
py
Python
sitator/network/MergeSitesByBarrier.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
8
2018-10-05T18:02:24.000Z
2021-02-22T20:24:58.000Z
sitator/network/MergeSitesByBarrier.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
6
2019-02-21T04:33:01.000Z
2021-01-06T20:05:25.000Z
sitator/network/MergeSitesByBarrier.py
lekah/sitator
0f9c84989758eb7b76be8104a94a8d6decd27b55
[ "MIT" ]
6
2018-08-11T21:43:59.000Z
2021-12-21T06:32:12.000Z
import numpy as np import itertools import math from scipy.sparse.csgraph import connected_components from ase.calculators.calculator import all_changes from sitator.util import PBCCalculator from sitator.util.progress import tqdm from sitator.network.merging import MergeSites import logging logger = logging.getLo...
43.557143
125
0.659888
3865b1d25e374b8397b77ccb11614699905f2305
725
py
Python
python/ray/serve/__init__.py
krfricke/ray
ed0e2e4fd7377f2c99e32881aa425ff0947bf759
[ "Apache-2.0" ]
1
2021-09-20T15:49:58.000Z
2021-09-20T15:49:58.000Z
python/ray/serve/__init__.py
sven1977/ray
89fbfc00f8a7a537e5b179aae1aee5fe53748882
[ "Apache-2.0" ]
99
2021-01-23T08:03:01.000Z
2022-03-26T07:08:24.000Z
python/ray/serve/__init__.py
krfricke/ray
ed0e2e4fd7377f2c99e32881aa425ff0947bf759
[ "Apache-2.0" ]
1
2022-02-07T03:08:10.000Z
2022-02-07T03:08:10.000Z
try: from ray.serve.api import (start, get_replica_context, shutdown, ingress, deployment, get_deployment, list_deployments) from ray.serve.batching import batch from ray.serve.config import HTTPOptions except ModuleNotFoundError as e: e.msg += ( ". You can run `pi...
34.52381
77
0.695172
386639f8b827284ddc1ad81f0cc8a44d61703de0
8,063
py
Python
models/classifiers/inception.py
daili0015/ModelFeast
0689ced4d0f37be438d3a91908e5e4cc5b7d54b8
[ "MIT" ]
247
2019-03-05T07:12:29.000Z
2022-03-29T01:51:17.000Z
models/classifiers/inception.py
jungerschwarz/ModelFeast
03afca0b129532135910ee2ac72a3b85be795289
[ "MIT" ]
8
2019-05-21T03:05:27.000Z
2021-12-09T03:22:51.000Z
models/classifiers/inception.py
jungerschwarz/ModelFeast
03afca0b129532135910ee2ac72a3b85be795289
[ "MIT" ]
47
2019-03-05T07:14:13.000Z
2021-11-11T01:04:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: zcy # @Date: 2019-01-14 17:31:03 # @Last Modified by: zcy # @Last Modified time: 2019-02-11 13:01:44 import logging # 引入logging模块 import torch, os import torch.nn as nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo ...
36.817352
114
0.593452
386646bf4cefcd6b99d041a2f47b99d4895acad6
1,231
py
Python
doc/conf.py
dizmo85/normalize
7c503c1b6d7702db1262a6564d324f0c3b408453
[ "MIT" ]
11
2015-01-14T00:59:01.000Z
2021-11-28T21:28:03.000Z
doc/conf.py
dizmo85/normalize
7c503c1b6d7702db1262a6564d324f0c3b408453
[ "MIT" ]
25
2015-01-03T06:29:20.000Z
2020-03-06T22:18:14.000Z
doc/conf.py
dizmo85/normalize
7c503c1b6d7702db1262a6564d324f0c3b408453
[ "MIT" ]
26
2015-03-30T22:52:36.000Z
2020-03-06T20:34:06.000Z
import sys, os sys.path[:0] = [ os.path.realpath( os.path.join(os.path.dirname(__file__), os.path.pardir) ) ] extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', ] templates_path ...
21.596491
64
0.68156
38664ad2d0707da7d7ab2f49a0c39d00aebdde69
2,898
py
Python
scripts/lib/zulip_tools.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
scripts/lib/zulip_tools.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2019-11-02T09:06:05.000Z
2019-11-02T09:06:05.000Z
scripts/lib/zulip_tools.py
erinis-eligro/zulip-outcasts
51153a6ce219370aee79bfe462f6e4fb956993d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import datetime import errno import os import pwd import shutil import subprocess import sys import time if False: from typing import Sequence, Any DEPLOYMENTS_DIR = "/home/zulip/deployments" LOCK_DIR = os.path.join(DEPLOYMENTS_DIR, "lock") TIMESTAMP_FOR...
28.135922
87
0.598689
38665d47ef31500bba2f1becfd529bc84061a31e
1,968
py
Python
python/doichecklist/parse_doi_xml.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/doichecklist/parse_doi_xml.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/doichecklist/parse_doi_xml.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
""" Ripped code to load specific data from an online doi.xml file. Might be useful at some point in the future. """ import argparse import sys import requests from lxml import etree DATACITE_NAMESPACE = "{http://datacite.org/schema/kernel-4}" GNODE_DOI_URL = "https://doi.gin.g-node.org/10.12751/" def parse_doi_xm...
27.333333
90
0.648882
38666fafa75668c352c08b1839322c920e1df82b
5,119
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22/operations/_resource_provider_common_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22/operations/_resource_provider_common_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22/operations/_resource_provider_common_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.952
133
0.704044
3866839a543b70d4b997c36ab9fb3f85b60ec9c7
157
py
Python
src/gcalendar/__init__.py
villoro/airflow_tasks
81bd892744a9bbbf6e01903649b6c3786a955a5a
[ "MIT" ]
null
null
null
src/gcalendar/__init__.py
villoro/airflow_tasks
81bd892744a9bbbf6e01903649b6c3786a955a5a
[ "MIT" ]
null
null
null
src/gcalendar/__init__.py
villoro/airflow_tasks
81bd892744a9bbbf6e01903649b6c3786a955a5a
[ "MIT" ]
null
null
null
from .detect_issues import extract_gcal_confusions from .gcal import export_calendar_events from .process import gcal_report from .summary import do_summary
31.4
50
0.872611
3866b2fe81c87b3b8f1e17651313339a1bb09b21
3,499
py
Python
convert_gps_measurements/inputs.py
deraffe/convert_gps_measurements
e47a4881ff6e2eff59fc683d930de547cfcf4c2c
[ "MIT" ]
null
null
null
convert_gps_measurements/inputs.py
deraffe/convert_gps_measurements
e47a4881ff6e2eff59fc683d930de547cfcf4c2c
[ "MIT" ]
null
null
null
convert_gps_measurements/inputs.py
deraffe/convert_gps_measurements
e47a4881ff6e2eff59fc683d930de547cfcf4c2c
[ "MIT" ]
null
null
null
"""Input format parsers.""" import argparse import csv import logging import pathlib from typing import Iterator, Type from .geometries import Line, MeasurementPoint, Point, Polygon, Shape log = logging.getLogger(__name__) SHAPE_CODES: dict[str, Type[Shape]] = { "@": Polygon, "&": Line, ".": Point, } i...
32.398148
87
0.540726
3866b61aceac995c7e7114ec2918b820b34698af
819
py
Python
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec04_stemplot.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
26
2016-08-25T01:33:36.000Z
2022-03-20T11:33:31.000Z
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec04_stemplot.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
null
null
null
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec04_stemplot.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
31
2016-08-16T15:32:46.000Z
2021-01-26T19:16:48.000Z
import matplotlib.pyplot as plt import numpy as np # time domain in which we sample x = np.linspace(0, 20, 50) # random function to simulate sampled signal y = np.sin(x + 1) + np.cos(x ** 2) # here we can setup baseline position bottom = -0.1 # True -- hold current axes for further plotting # False -- opposite. ...
23.4
66
0.665446
3866be9452798339f5238cab907b671b2f838f27
3,508
py
Python
mosqito/generic/oct3level.py
dnbaumann/MoSQITo
d84a91008b6225cd940f0a2a44c3a987297f4c56
[ "Apache-2.0" ]
null
null
null
mosqito/generic/oct3level.py
dnbaumann/MoSQITo
d84a91008b6225cd940f0a2a44c3a987297f4c56
[ "Apache-2.0" ]
null
null
null
mosqito/generic/oct3level.py
dnbaumann/MoSQITo
d84a91008b6225cd940f0a2a44c3a987297f4c56
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @date Created on Fri Mar 13 2020 @author martin_g for Eomys """ # Standard library imports import math # Third party imports import numpy as np from scipy import signal # Local application imports from mosqito.generic.oct3dsgn import oct3dsgn def oct3level(sig, fs, fc, sig_type='station...
33.730769
88
0.627708
3866c44e5ca3257a27a10e3331d0ab3c7f48e5ec
1,846
py
Python
basic/modules.py
DingKe/pytorch_workplace
4bc60a2c3640de522d0b72262667ba70391ba16e
[ "MIT" ]
184
2017-05-23T12:06:08.000Z
2021-12-21T09:09:51.000Z
basic/modules.py
Ewenwan/pytorch_workplace
0ef2e905596a0b0db11b4929564175e6f7ab7423
[ "MIT" ]
8
2017-08-14T11:40:20.000Z
2019-01-16T13:14:32.000Z
basic/modules.py
Ewenwan/pytorch_workplace
0ef2e905596a0b0db11b4929564175e6f7ab7423
[ "MIT" ]
61
2017-04-29T09:53:47.000Z
2021-02-19T02:13:14.000Z
import math import torch import torch.nn as nn from functions import * class ReLU(nn.Module): def forward(self, input): return relu(input) class Linear(nn.Module): r"""Applies a linear transformation to the incoming data: :math:`y = Ax + b` Args: in_features: size of each input sample...
28.84375
89
0.605634
3866d4f8d30dc34df783521c69d4a5d6dfebf8ac
9,262
py
Python
demo/extrusion_mp_ro.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
demo/extrusion_mp_ro.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
demo/extrusion_mp_ro.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
# This file is part of PyOP2 # # PyOP2 is Copyright (c) 2012, Imperial College London and # others. Please see the AUTHORS file in the main source directory for # a full list of copyright holders. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
32.727915
80
0.643813
3866dd611e44057bbbb2dc2038398ea566d73213
3,720
py
Python
em/deep_segmentation/SegmentationAgent.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
em/deep_segmentation/SegmentationAgent.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
em/src/deep_segmentation/SegmentationAgent.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
import numpy as np from torch.optim import Adam from torch.utils.data import DataLoader from SegmentationDataset import SegmentationDataset from SegmentationUNet import SegmentationUNet from CrossEntropyLoss import CrossEntropyLoss from em.molecule import Molecule from scipy.ndimage import zoom import pandas as pd ...
41.333333
166
0.67957
3866df527bf91bc9a609eb694e08365ef37ac2c6
1,597
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/sku_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/sku_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/sku_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
33.270833
76
0.59737
3866f7df68696743440eb9ea7c7185b5ebbb224d
15,966
py
Python
sdk/python/pulumi_azure/databricks/outputs.py
pulumi/pulumi-azure
c62b6c1828de1facfd0d92425b72e22e229b0afc
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/databricks/outputs.py
pulumi/pulumi-azure
c62b6c1828de1facfd0d92425b72e22e229b0afc
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/databricks/outputs.py
pulumi/pulumi-azure
c62b6c1828de1facfd0d92425b72e22e229b0afc
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
48.825688
307
0.686709
3866fbba778cf9f1c5a10a6fd5e771489c94fb2a
1,220
py
Python
easydata/constant.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
1
2018-03-16T09:56:23.000Z
2018-03-16T09:56:23.000Z
easydata/constant.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
easydata/constant.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ CONTENT_TYPE = { 'pdf': 'application/pdf', 'image': ['image/png','image/jpeg','image/pjpeg','image/gif','image/bmp'], 'file': ['application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multi...
24.4
78
0.531967
38677eeea65fa7a482d1415796e93e440495e306
118
py
Python
src/rolca/core/api/parsers.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
null
null
null
src/rolca/core/api/parsers.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
12
2016-11-27T18:38:23.000Z
2017-09-09T16:18:17.000Z
src/rolca/core/api/parsers.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
null
null
null
from rest_framework import parsers class ImageUploadParser(parsers.FileUploadParser): media_type = 'image/jpeg'
19.666667
50
0.805085
3867811c9f061105c060058ef3380f2d90a35449
2,340
py
Python
examples/GridWorld/script_figure.py
Li-Ming-Fan/zhiqiang
f3454c0132e407848039b83ebb66a25e39f10ec7
[ "Apache-2.0" ]
3
2020-04-16T06:32:57.000Z
2022-03-08T09:46:03.000Z
examples/GridWorld/script_figure.py
Li-Ming-Fan/zhiqiang
f3454c0132e407848039b83ebb66a25e39f10ec7
[ "Apache-2.0" ]
null
null
null
examples/GridWorld/script_figure.py
Li-Ming-Fan/zhiqiang
f3454c0132e407848039b83ebb66a25e39f10ec7
[ "Apache-2.0" ]
null
null
null
from zhiqiang.utils.log_parser import parse_log_for_eval_rewards from collections import OrderedDict # logs log_files = OrderedDict() log_files["VanilaDQN"] = "./data_root/zzz_reserved/log_GridWorld_VanilaDQN_2020_04_10_20_23_25.txt" log_files["DoubleDQN"] = "./data_root/zzz_reserved/log_GridWorld_DoubleDQN_2020_04_...
30
109
0.763675
38678a110920ed2b1281be79bdf20a56fde2fac6
5,426
py
Python
jobcorner/settings.py
WillieIlus/jobscorner
ed3734468ea0e88a306a1d29bc876562e940f4fb
[ "bzip2-1.0.6" ]
2
2020-04-12T13:18:35.000Z
2021-04-02T04:18:17.000Z
jobcorner/settings.py
WillieIlus/jobscorner
ed3734468ea0e88a306a1d29bc876562e940f4fb
[ "bzip2-1.0.6" ]
3
2020-02-11T23:58:53.000Z
2020-09-06T18:46:17.000Z
jobcorner/settings.py
WillieIlus/jobscorner
ed3734468ea0e88a306a1d29bc876562e940f4fb
[ "bzip2-1.0.6" ]
1
2020-08-17T08:29:41.000Z
2020-08-17T08:29:41.000Z
""" Django settings for jobcorner project. Generated by 'django-admin startproject' using Django 2.1.7. 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 os ...
25.961722
91
0.673977
38678ae2001f798016bb2ed17d04db9c85f031d1
17,722
py
Python
datastruct/ds.py
hgrecco/datastruct
a567b6293b56952756d1432a54fd799dff20c74e
[ "BSD-3-Clause" ]
null
null
null
datastruct/ds.py
hgrecco/datastruct
a567b6293b56952756d1432a54fd799dff20c74e
[ "BSD-3-Clause" ]
null
null
null
datastruct/ds.py
hgrecco/datastruct
a567b6293b56952756d1432a54fd799dff20c74e
[ "BSD-3-Clause" ]
2
2020-05-05T22:52:40.000Z
2020-08-17T22:38:06.000Z
""" datastruct.ds ~~~~~~~~~~~~~ Definition of the DataStruct class. :copyright: 2020 by datastruct Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import inspect import typing from typing import Iterable, List, Tuple, get_type_hints import serialize from ...
31.421986
96
0.594177
3867a81dca904912d590dda1e1c04f391a5f3369
40,791
py
Python
tests/integration/modules/state.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
tests/integration/modules/state.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/state.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import python libs from __future__ import absolute_import import os import shutil import textwrap # Import Salt Testing libs from salttesting import skipIf from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration import salt.utils f...
38.92271
298
0.555147
3867c602f33a424fbe680f4edef23833e186ff10
1,460
py
Python
OutageManagement/models.py
prathee/ftoutageadmin
edf1bb00bc58282d3f4f396d1517e7813480b388
[ "CC0-1.0" ]
null
null
null
OutageManagement/models.py
prathee/ftoutageadmin
edf1bb00bc58282d3f4f396d1517e7813480b388
[ "CC0-1.0" ]
null
null
null
OutageManagement/models.py
prathee/ftoutageadmin
edf1bb00bc58282d3f4f396d1517e7813480b388
[ "CC0-1.0" ]
null
null
null
from django.db import models # Create your models here. from django.urls import reverse # Used to generate urls by reversing the URL patterns from django.contrib.auth.models import User class Outage_Service( models.Model ): Service = models.CharField( max_length=60, blank=True ) Outage_ID = models.CharFie...
32.444444
124
0.689041
3868008747691dc3ef1908d3795ca6086ef74def
608
py
Python
src/python/pants/version.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/version.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/version.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import pkgutil from packaging.version import Version # Set this env var to override the version pants reports. Useful for testing. _PANTS_VERSION_OVERRIDE = '_PANTS_VERSION_OV...
27.636364
94
0.768092
386814d5b46eb09db6129ba5eb36f4b43ea02d3d
8,720
py
Python
fedml_api/distributed/fedavg_cross_silo/FedAvgAPI.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
1
2022-03-23T06:35:31.000Z
2022-03-23T06:35:31.000Z
fedml_api/distributed/fedavg_cross_silo/FedAvgAPI.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
fedml_api/distributed/fedavg_cross_silo/FedAvgAPI.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
from fedml_api.distributed.fedavg_cross_silo.DistWorker import DistWorker import logging from .FedAvgServerManager import FedAVGServerManager from .ClientMasterManager import ClientMasterManager from .ClientSlaveManager import ClientSlaveManager from .DistAggregator import DistAggregator from fedml_api.distributed.ut...
34.466403
124
0.484977
38684aaffeeacebcbba7d90ea401a6e0136435b2
19,440
py
Python
openstackclient/tests/identity/v2_0/test_project.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/identity/v2_0/test_project.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/identity/v2_0/test_project.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Nebula 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...
30.662461
79
0.583539
38684af4ae10f9509f5417934df338a91d800d41
40,853
py
Python
test/functional/wallet_importmulti.py
Garlicwallet/garlicoin2
97c0f4a38d2f98a0489dbbf4f0185d7dbd9c6dc1
[ "MIT" ]
null
null
null
test/functional/wallet_importmulti.py
Garlicwallet/garlicoin2
97c0f4a38d2f98a0489dbbf4f0185d7dbd9c6dc1
[ "MIT" ]
null
null
null
test/functional/wallet_importmulti.py
Garlicwallet/garlicoin2
97c0f4a38d2f98a0489dbbf4f0185d7dbd9c6dc1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the importmulti RPC. Test importmulti by generating keys on node0, importing the scriptPubKeys an...
49.820732
316
0.551636
38686f1edbb595ca832d5dbdb291314f061d66df
7,243
py
Python
app/backend/carbonmodel.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
app/backend/carbonmodel.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
app/backend/carbonmodel.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
""" Copyright (c) Open Carbon, 2020 This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. backend/carbonmodel.py Functions used to calculate emissions predictions based on existing data """ import numpy as np import json import datetime from django.c...
42.857988
165
0.710617
3868794fedce6f90d8d8dfeb47f4e5249c21f316
7,060
py
Python
django/contrib/auth/admin.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:27.000Z
2019-06-13T16:18:27.000Z
django/contrib/auth/admin.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
django/contrib/auth/admin.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2020-07-15T05:01:00.000Z
2020-07-15T05:01:00.000Z
from django.db import transaction from django.conf import settings from django.contrib import admin from django.contrib.auth.forms import UserCreationForm, UserChangeForm, AdminPasswordChangeForm from django.contrib.auth.models import User, Group from django.contrib import messages from django.core.exceptions import Pe...
43.312883
208
0.6483
3868882a9101985c6e29ae6b6abc8ce7468c6152
1,517
py
Python
migrations/versions/24daba43c6f1_atualizacao_da_tabela_noticia.py
leticiarosemberg/EcoOng
15c2ec1eabeeb12f3c7491eb22c2663fd10229ed
[ "MIT" ]
1
2022-01-11T20:20:48.000Z
2022-01-11T20:20:48.000Z
migrations/versions/24daba43c6f1_atualizacao_da_tabela_noticia.py
leticiarosemberg/EcoOng
15c2ec1eabeeb12f3c7491eb22c2663fd10229ed
[ "MIT" ]
1
2021-12-16T03:51:01.000Z
2021-12-16T03:51:01.000Z
migrations/versions/24daba43c6f1_atualizacao_da_tabela_noticia.py
leticiarosemberg/EcoOng
15c2ec1eabeeb12f3c7491eb22c2663fd10229ed
[ "MIT" ]
1
2022-02-19T19:11:11.000Z
2022-02-19T19:11:11.000Z
"""atualizacao da tabela noticia Revision ID: 24daba43c6f1 Revises: b2bfb0b97f34 Create Date: 2021-12-15 02:29:51.171458 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '24daba43c6f1' down_revision = 'b2bfb0b97f34' branch_labels = None depends_on = None def u...
38.897436
138
0.723797
3868a33e7c78ad1571071b6d19987f19da94f1ff
5,292
py
Python
tests/instagram/pro_apis/test_media.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
tests/instagram/pro_apis/test_media.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
null
null
null
tests/instagram/pro_apis/test_media.py
Socian-Ltd/python-facebook-1
e9a4f626b37541103c9534a29342ef6033c09c06
[ "Apache-2.0" ]
1
2021-08-25T05:34:14.000Z
2021-08-25T05:34:14.000Z
import json import unittest import responses from six import iteritems import pyfacebook class ApiMediaTest(unittest.TestCase): BASE_PATH = "testdata/instagram/apidata/medias/" BASE_URL = "https://graph.facebook.com/{}/".format(pyfacebook.Api.VALID_API_VERSIONS[-1]) with open(BASE_PATH + "media_default...
42
110
0.602797
3868befa9d0e22e0ed25d0e045924f87ca569b2a
5,954
py
Python
alipay/aop/api/domain/SearchApplyPageQueryRequest.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/SearchApplyPageQueryRequest.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/SearchApplyPageQueryRequest.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 SearchApplyPageQueryRequest(object): def __init__(self): self._apply_type = None self._audit_status_list = None self._category_code = None self._name = None ...
32.358696
85
0.591703
3868c0282155c6d6c5c8c9038dd9c914e22046ba
451
py
Python
tests/components/drivers/init_dataManager.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
9
2019-05-06T17:30:35.000Z
2021-12-10T16:05:00.000Z
tests/components/drivers/init_dataManager.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
80
2018-04-13T20:25:04.000Z
2022-03-10T21:59:58.000Z
tests/components/drivers/init_dataManager.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
4
2020-08-07T17:58:13.000Z
2021-11-12T17:17:42.000Z
from ipsframework import Component class init_dataManager(Component): def step(self, timestamp=0.0): state_file_list = self.services.get_config_param('STATE_FILES').split(' ') for state_file in state_file_list: with open(state_file, 'w') as f: if "100" in state_file: ...
28.1875
82
0.569845
386900ad82b8a285b14729d2167d5d0c06d5e715
3,277
py
Python
pysces/examples/testratechar.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
21
2015-02-11T22:59:18.000Z
2022-03-01T15:36:41.000Z
pysces/examples/testratechar.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
63
2015-03-26T11:58:58.000Z
2022-02-25T18:44:15.000Z
pysces/examples/testratechar.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
9
2015-05-01T09:28:56.000Z
2020-02-25T14:38:14.000Z
import pysces try: input = raw_input # Py2 compatibility except NameError: pass # Creates a ratechar object for the lin5_hill model rc = pysces.RateChar('lin5_hill') # This function does parameter scans for each species in the patway rc.doAllRateChar() # getRateCharData returns the ratechar data for a certa...
26.860656
80
0.745804
386905882e451cfa4d5f36f9ac3e1e734dcbf13c
535
py
Python
forest_modell.py
FelixNoessler/python-vtk-treeanimation
f2f852ab122d623c4c5845a1214297f8dad0dd5b
[ "MIT" ]
null
null
null
forest_modell.py
FelixNoessler/python-vtk-treeanimation
f2f852ab122d623c4c5845a1214297f8dad0dd5b
[ "MIT" ]
null
null
null
forest_modell.py
FelixNoessler/python-vtk-treeanimation
f2f852ab122d623c4c5845a1214297f8dad0dd5b
[ "MIT" ]
null
null
null
import numpy as np import tree_animation settings = { 'number_of_trees': 20, 'gridsize_x': 20, 'gridsize_y': 20, 'min_trunk_len': 2, 'max_trunk_len': 4, 'min_trunk_rad': 0.1, 'max_trunk_rad': 0.2, 'min_crown_len': 1, 'max_crown_len': 1.3, 'min_crow...
21.4
49
0.598131
386905bfb228258416863f14a1076fc65e92257e
5,195
py
Python
appengine/monorail/features/test/activities_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/features/test/activities_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/features/test/activities_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Unittests for monorail.feature.activities.""" from __future__ import print_function from __f...
35.101351
80
0.715881
386930bc2f14c33dcc06897e1af536bb7a82dd02
1,661
py
Python
alipay/aop/api/response/AlipayMarketingCampaignOrderVoucherConsultResponse.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/AlipayMarketingCampaignOrderVoucherConsultResponse.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/AlipayMarketingCampaignOrderVoucherConsultResponse.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.VoucherConsultInfo import VoucherConsultInfo class AlipayMarketingCampaignOrderVoucherConsultResponse(AlipayResponse): def __init__(self): super(AlipayMa...
38.627907
123
0.728477
38695ec6f9423dd22f757de8bfa90b21dfff0f69
4,888
py
Python
test/test_py_vm.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
test/test_py_vm.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
test/test_py_vm.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
from unittest import TestCase from io import StringIO from unittest.mock import patch from pysh.py_vm.types import Primatives, UserType, UserValue from pysh.py_vm.session import PyVm class TestUserValues(TestCase): def setUp(self): self.s = UserType(Primatives.String) self.i = UserType(Primativ...
45.682243
89
0.674714
38696d316cafdcf90579158b14dbff850ef56b2c
1,776
py
Python
tests/components/august/test_gateway.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
2
2020-03-02T19:17:52.000Z
2020-03-02T19:17:53.000Z
tests/components/august/test_gateway.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
6
2021-02-08T21:05:36.000Z
2022-03-12T00:54:00.000Z
tests/components/august/test_gateway.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2020-03-07T10:43:50.000Z
2020-03-07T10:43:50.000Z
"""The gateway tests for the august platform.""" from unittest.mock import MagicMock from asynctest import mock from homeassistant.components.august.const import DOMAIN from homeassistant.components.august.gateway import AugustGateway from tests.components.august.mocks import _mock_august_authentication, _mock_get_c...
35.52
87
0.80518
38698538ff99d86f771c4d2dd64ba1bea25915c7
633
py
Python
06-Projects/01-IPC-DataInsights/LogPackage/LogPackage_imgLib_expStart.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
1
2021-01-10T12:06:26.000Z
2021-01-10T12:06:26.000Z
06-Projects/01-IPC-DataInsights/LogPackage/LogPackage_imgLib_expStart.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
06-Projects/01-IPC-DataInsights/LogPackage/LogPackage_imgLib_expStart.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Edward J. C. Ashenbert' __credits__ = ["Edward J. C. Ashenbert"] __maintainer__ = "Edward J. C. Ashenbert" __email__ = "nguyenquangbinh803@gmail.com" __copyright__ ="Copyright 2021" __status__ = "Working on deploy Analyzer Design pattern" __version__ = "2021....
27.521739
56
0.699842
38698e7d694f3cc2e81327c36f7a0b2a72d98c84
8,116
py
Python
docs/conf.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
docs/conf.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
docs/conf.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
import os import sys import sphinx # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) # ...
27.418919
111
0.658452
38699c87b1fdfb84b8a0c019e4405494c8c290fb
3,965
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/api/events_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/api/events_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/api/events_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401...
32.5
124
0.621438
3869afd9fc6a66216fbe20a4392ef2b95ae601c4
716
py
Python
reporting_scripts/base_edx.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
reporting_scripts/base_edx.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
reporting_scripts/base_edx.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
''' This module takes a list of collections to retrieve from the mongodb DATABASE_ADDRESS Usage: connection = EdXConnection('atoc185x', 'tracking', 'course_structure') collection = connection.get_access_to_collection() # collection now is a list of two elements, each element referring to the corresponding collection ''...
31.130435
98
0.751397
3869d3146dbecf91a8eaeefe475469b743b3908f
5,929
py
Python
conda_tracker/library.py
LaudateCorpus1/conda-tracker
b663238e7bf6b7cacf5569654d42ab05751fbd8c
[ "BSD-3-Clause" ]
1
2019-10-02T05:35:39.000Z
2019-10-02T05:35:39.000Z
conda_tracker/library.py
conda/conda-tracker
b663238e7bf6b7cacf5569654d42ab05751fbd8c
[ "BSD-3-Clause" ]
4
2017-06-08T20:11:22.000Z
2017-08-14T17:45:52.000Z
conda_tracker/library.py
LaudateCorpus1/conda-tracker
b663238e7bf6b7cacf5569654d42ab05751fbd8c
[ "BSD-3-Clause" ]
7
2017-06-08T19:49:54.000Z
2021-08-23T05:42:12.000Z
import os import re import git from github import Github from conda_tracker.utils import remove_submodule def create_aggregate_repository(repository_name, path='.'): """Create a new repository that will house all submodules. The repository will be created in the current working directory or at the give...
30.720207
102
0.664193
3869d8ad08e0c0c9268e9143e72fb5591a9f838b
27,088
py
Python
openpype/modules/default_modules/ftrack/event_handlers_user/action_create_cust_attrs.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/modules/default_modules/ftrack/event_handlers_user/action_create_cust_attrs.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/modules/default_modules/ftrack/event_handlers_user/action_create_cust_attrs.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
import collections import json import arrow import ftrack_api from openpype_modules.ftrack.lib import ( BaseAction, statics_icon, CUST_ATTR_ID_KEY, CUST_ATTR_GROUP, CUST_ATTR_TOOLS, CUST_ATTR_APPLICATIONS, default_custom_attributes_definition, app_definitions_from_app_manager, tool...
33.483313
79
0.55364
3869f3ce1a56e6e65d24d1ed6cec2c810c934e34
7,031
py
Python
logger.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
logger.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
logger.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
from torch.utils.tensorboard import SummaryWriter from collections import defaultdict import json import os import csv import shutil import torch import numpy as np from termcolor import colored COMMON_TRAIN_FORMAT = [ ('episode', 'E', 'int'), ('step', 'S', 'int'), ('episode_reward', 'R', 'float'), ('d...
34.297561
77
0.56706
386a154450915bfa5785a22e2712ecb9055c1695
746
py
Python
app/core/migrations/0003_ingredient.py
johnDenbrough/recipe-app-api
617dbaa56cd0b19e0131a21e31bcec617a1911eb
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
johnDenbrough/recipe-app-api
617dbaa56cd0b19e0131a21e31bcec617a1911eb
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
johnDenbrough/recipe-app-api
617dbaa56cd0b19e0131a21e31bcec617a1911eb
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-28 13:45 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( n...
28.692308
95
0.567024
386a18df0490fb8fafdf4266ea307f88dde428e9
8,122
py
Python
docs/conf.py
jrhawley/higlass-python
774050a8fa818861b08b2247be3ec871640c1a8b
[ "MIT" ]
24
2018-11-16T15:58:22.000Z
2022-02-17T19:34:27.000Z
docs/conf.py
jrhawley/higlass-python
774050a8fa818861b08b2247be3ec871640c1a8b
[ "MIT" ]
45
2018-11-19T01:47:26.000Z
2022-03-04T22:02:47.000Z
docs/conf.py
jrhawley/higlass-python
774050a8fa818861b08b2247be3ec871640c1a8b
[ "MIT" ]
11
2018-11-28T21:10:51.000Z
2022-03-04T19:46:25.000Z
#!/usr/bin/env python3 from __future__ import absolute_import from docutils import nodes from docutils.parsers.rst import Directive, directives # -*- coding: utf-8 -*- # # higlass documentation build configuration file, created by # sphinx-quickstart on Mon Jul 3 16:40:45 2017. # # This file is execfile()d with the ...
31.603113
86
0.662275
386a21c62f7a5ee88b9bed0e04f091d10e51ca00
20,770
py
Python
discord/gateway.py
OthmanEmpire/project_othbot
3e4e72174c1cd20b9284d95fba99993f58a820a2
[ "MIT" ]
null
null
null
discord/gateway.py
OthmanEmpire/project_othbot
3e4e72174c1cd20b9284d95fba99993f58a820a2
[ "MIT" ]
null
null
null
discord/gateway.py
OthmanEmpire/project_othbot
3e4e72174c1cd20b9284d95fba99993f58a820a2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2016 Rapptz 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 u...
32.052469
106
0.585508
386a35dbe0b2faf39d092be414507a8c9071518b
9,760
py
Python
kusanagi/sdk/lib/asynchronous.py
kusanagi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2022-02-24T19:02:28.000Z
2022-02-24T19:02:28.000Z
kusanagi/sdk/lib/asynchronous.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
null
null
null
kusanagi/sdk/lib/asynchronous.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2021-05-16T17:40:21.000Z
2021-05-16T17:40:21.000Z
# Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) # Copyright (c) 2016-2021 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. from __future__ import ann...
31.182109
117
0.599898
386a46c1f77f08ef2cb8ecac411c1f5799e6327a
6,032
py
Python
tests/test_google_trans.py
ECE444-2021Fall/deep-translator
ffa7560252eede65fea696186b293316ee28e5da
[ "MIT" ]
null
null
null
tests/test_google_trans.py
ECE444-2021Fall/deep-translator
ffa7560252eede65fea696186b293316ee28e5da
[ "MIT" ]
null
null
null
tests/test_google_trans.py
ECE444-2021Fall/deep-translator
ffa7560252eede65fea696186b293316ee28e5da
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tests for `deep_translator` package.""" import pytest from deep_translator import exceptions, GoogleTranslator from deep_translator.constants import GOOGLE_CODES_TO_LANGUAGES #from test_data import test_text_standard, TRANSLATED_RESULTS import random test_text_standard = 'Hello world.' TRAN...
32.782609
102
0.621684
386a996421efbc54b4212eabb4cfead7506181a7
670
py
Python
pyronear/nn/functional.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
pyronear/nn/functional.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
pyronear/nn/functional.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
#!usr/bin/python # -*- coding: utf-8 -*- # Based on https://github.com/fastai/fastai/blob/master/fastai/layers.py import torch import torch.nn.functional as F def adaptive_concat_pool2d(x, output_size): """Concatenates a 2D adaptive max pooling and a 2D adaptive average pooling over an input signal composed...
31.904762
79
0.697015
386aa162ce3e31bd029f3e9a1dd9e474460ab3d2
30
py
Python
Server/src/utils/__init__.py
SamuelSlavka/dp
af5329afcfc99595f1e5e50ad0af7995c219b597
[ "MIT" ]
null
null
null
Server/src/utils/__init__.py
SamuelSlavka/dp
af5329afcfc99595f1e5e50ad0af7995c219b597
[ "MIT" ]
10
2022-03-21T11:09:53.000Z
2022-03-30T07:08:14.000Z
Server/src/utils/__init__.py
SamuelSlavka/dp
af5329afcfc99595f1e5e50ad0af7995c219b597
[ "MIT" ]
null
null
null
from src.utils.utils import *
15
29
0.766667
386aa7b5e69996b74464c5f5e6ff9fe4061efbda
7,086
py
Python
vyperlogix/decorators/StateDefn.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/decorators/StateDefn.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/decorators/StateDefn.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
# # Support for State Machines. ref - Design Patterns by GoF # Many of the methods in these classes get called behind the scenes. # # Notable exceptions are methods of the StateVar class. # # See example programs for how this module is intended to be used. # import exceptions class StateMachineError( exceptions....
36.525773
125
0.624612
386aaddf52cf282103b332182b469bd40180a4bd
13,424
py
Python
src/panoptes/utils/images/__init__.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
3
2019-03-26T03:35:46.000Z
2021-08-16T16:59:12.000Z
src/panoptes/utils/images/__init__.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
254
2019-03-29T05:42:54.000Z
2022-02-18T05:03:09.000Z
src/panoptes/utils/images/__init__.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
9
2019-03-25T09:55:35.000Z
2021-05-18T02:45:17.000Z
import os import re import shutil import subprocess from contextlib import suppress from warnings import warn import numpy as np from astropy import units as u from astropy.nddata import Cutout2D from astropy.visualization import ImageNormalize from astropy.visualization import LogStretch from astropy.visualization im...
36.577657
99
0.618817
386aae1197828a3717013c025ffd97be5158c52c
31,771
py
Python
tests/unit/modules/zypper_test.py
gravyboat/salt
4c2d4159fd8705d1b3bb8f90500635f8ccec4f22
[ "Apache-2.0" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
tests/unit/modules/zypper_test.py
eyj/salt
5232d7f60cb78591d8bad25d796b0a945fc6350c
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/zypper_test.py
eyj/salt
5232d7f60cb78591d8bad25d796b0a945fc6350c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Bo Maryniuk <bo@suse.de>` ''' # Import Python Libs from __future__ import absolute_import import os # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.helpers import ensure_in_syspath from salttesting.mock import ( Mock, Ma...
42.933784
156
0.572157
386ab0ba69c3097dba56752f92165fe7f52b2c5f
194
py
Python
openhumans_seeq/__init__.py
OpenHumans/openhumans-seeq
1c9959bc2a31a16d27f3c7a7c903c8b1f8a3a7c7
[ "MIT" ]
12
2017-03-21T19:51:16.000Z
2022-03-15T22:29:49.000Z
openhumans_seeq/__init__.py
OpenHumans/openhumans-seeq
1c9959bc2a31a16d27f3c7a7c903c8b1f8a3a7c7
[ "MIT" ]
15
2017-03-09T19:04:37.000Z
2021-06-10T18:01:49.000Z
openhumans_seeq/__init__.py
OpenHumans/openhumans-seeq
1c9959bc2a31a16d27f3c7a7c903c8b1f8a3a7c7
[ "MIT" ]
2
2016-12-08T20:19:58.000Z
2019-06-07T15:29:08.000Z
from __future__ import absolute_import # This will make sure the celery app is always imported when # Django starts so that shared_task will use this app. from .celery import app as celery_app
32.333333
60
0.809278
386abe387b508526165828d2caa93fd1a45c9820
2,554
py
Python
CS/CSC148/labs/lab3/testqueue.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
CS/CSC148/labs/lab3/testqueue.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
CS/CSC148/labs/lab3/testqueue.py
jerrysun103/uoft
6264583d27c7db94596d29c73804e6d9155de191
[ "MIT" ]
null
null
null
""" Test module Queue. Authors: Francois Pitt, January 2013, Danny Heap, September 2013, 2014 """ import unittest from csc148_queue import Queue class EmptyTestCase(unittest.TestCase): """Test behaviour of an empty Queue. """ def setUp(self): """Set up an empty queue. """ ...
22.208696
71
0.529366
386acbb3834e9167365d931f1b8121ee5d26b340
2,794
py
Python
algorithms/tests/test_range_query_tree.py
tommyod/PythonAlgorithms
f0a0f67be069fc9e9fa3027ed83942d6401223fe
[ "MIT" ]
1
2021-08-23T17:15:06.000Z
2021-08-23T17:15:06.000Z
algorithms/tests/test_range_query_tree.py
tommyod/PythonAlgorithms
f0a0f67be069fc9e9fa3027ed83942d6401223fe
[ "MIT" ]
1
2018-05-02T17:29:42.000Z
2018-05-02T17:31:18.000Z
algorithms/tests/test_range_query_tree.py
tommyod/PythonAlgorithms
f0a0f67be069fc9e9fa3027ed83942d6401223fe
[ "MIT" ]
1
2018-05-02T12:31:52.000Z
2018-05-02T12:31:52.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Test sequence algorithms. """ import pytest try: from ..range_query_tree import RQT except ValueError: pass class TestRQT(object): def test_range_sums(self): """ Test some range sum examples. """ rqt = RQT([1...
23.677966
68
0.464925
386af08f44d6e78e7566ef10817f6534842a0a8a
1,687
py
Python
test/test_cascading.py
tbhartman/doorbell
a185ad15dd87b38fa21f992eb696136daa043f40
[ "MIT" ]
null
null
null
test/test_cascading.py
tbhartman/doorbell
a185ad15dd87b38fa21f992eb696136daa043f40
[ "MIT" ]
4
2018-11-09T20:46:22.000Z
2018-11-17T03:02:24.000Z
test/test_cascading.py
tbhartman/doorbell
a185ad15dd87b38fa21f992eb696136daa043f40
[ "MIT" ]
null
null
null
import doorbell import functools import operator @doorbell.Visitee.create class Value(object): def __init__(self, value=0): self.value = value self.children = [] @doorbell.Visitee.create class Add(Value): pass @doorbell.Visitee.create('Multiply') class Mult(Add): pass class ManyArgs(...
22.197368
68
0.594547
386b397ab7202b73466c7545878cad98cc91f92e
16,641
py
Python
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext_512crop/pred_ur_mm.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext_512crop/pred_ur_mm.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext_512crop/pred_ur_mm.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import numpy as np import pandas as pd from tqdm import tqdm from sklearn.utils import shuffle from classification_models.resnet.models import ResNet18 import albumentations as A import cv2 eps = 0.004 desired = { ...
34.886792
112
0.635779
386b71b1635fb19b67674f9187c608c04d8051b4
1,304
py
Python
test/test_app_install_state_enum.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_app_install_state_enum.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_app_install_state_enum.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Esper APIs OpenAPI spec version: 1.0.0 Contact: developer@esper.io --------------------------------------------------------- Copyright 2019 Shoonya Enterprises Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Yo...
24.603774
79
0.724693
386b7648ce23d9b505bcb5c53142c59448983cfa
24,702
py
Python
influxdb_client/service/dbr_ps_service.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/service/dbr_ps_service.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/service/dbr_ps_service.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F40...
42.297945
124
0.627399
386b863f70db1bc76122bb826a71f8f7bfb752ba
2,664
py
Python
csgm/src/metrics_utils.py
zbaoye/progressive_growing_of_gans_tensorflow
7eefe325e40c7af4462d53836d0cf11511c58c41
[ "MIT" ]
213
2017-03-22T03:39:08.000Z
2022-03-07T17:59:52.000Z
src/metrics_utils.py
wenxiang2333/csgm
0f77d9c749dd31ce03b104dc2d355267e3ced038
[ "MIT" ]
13
2017-03-24T07:27:10.000Z
2020-10-11T14:25:02.000Z
src/metrics_utils.py
wenxiang2333/csgm
0f77d9c749dd31ce03b104dc2d355267e3ced038
[ "MIT" ]
80
2017-03-23T15:34:14.000Z
2022-03-04T13:13:33.000Z
"""Some utils for plotting metrics""" # pylint: disable = C0111 import glob import numpy as np import utils import matplotlib.pyplot as plt # import seaborn as sns def int_or_float(val): try: return int(val) except ValueError: return float(val) def get_figsize(is_save): if is_save: ...
28.042105
84
0.637387
386bac5a675f9bd0c22e3456be0a9a50133d711a
8,816
py
Python
simalign/simalign.py
nexxt-intelligence/simalign
f29f8fc2c71a66b5b316b99ed35addfc02ba054f
[ "MIT" ]
null
null
null
simalign/simalign.py
nexxt-intelligence/simalign
f29f8fc2c71a66b5b316b99ed35addfc02ba054f
[ "MIT" ]
null
null
null
simalign/simalign.py
nexxt-intelligence/simalign
f29f8fc2c71a66b5b316b99ed35addfc02ba054f
[ "MIT" ]
1
2021-07-11T14:40:27.000Z
2021-07-11T14:40:27.000Z
# coding=utf-8 import os import logging from typing import Dict, List, Tuple, Union import numpy as np from scipy.stats import entropy from scipy.sparse import csr_matrix from sklearn.preprocessing import normalize from sklearn.metrics.pairwise import cosine_similarity try: import networkx as nx from n...
36.733333
182
0.675136
386badf3e8aab789b064671facd9214b82c6e56b
23,855
py
Python
python/tvm/tir/expr.py
shoubhik/incubator-tvm
2bbfbb10ba53c649d110828b4978df12b4f3b3e2
[ "Apache-2.0" ]
null
null
null
python/tvm/tir/expr.py
shoubhik/incubator-tvm
2bbfbb10ba53c649d110828b4978df12b4f3b3e2
[ "Apache-2.0" ]
null
null
null
python/tvm/tir/expr.py
shoubhik/incubator-tvm
2bbfbb10ba53c649d110828b4978df12b4f3b3e2
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
23.295898
97
0.613792
386bbe796fc4800d6babeb574d108aa3ee289ebe
289
py
Python
postprocess/run_all.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
postprocess/run_all.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
postprocess/run_all.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
from predict_boxes import run_predict from ensemble_boxes import run_ensemble_box from predict_masks import run_predict_mask_only from ensemble_masks import ensemble_masks if __name__ == '__main__': run_predict() run_ensemble_box() run_predict_mask_only() ensemble_masks()
28.9
47
0.816609
386bc4e9c0402292e9974d233040063bd1fe9d52
244
py
Python
server/db/item_label.py
heptaliane/RankingAnnotator
2d8e7f1f64f29a17416d71eafff9f787a0b9cad2
[ "MIT" ]
1
2022-02-07T20:31:15.000Z
2022-02-07T20:31:15.000Z
server/db/item_label.py
heptaliane/RankingAnnotator
2d8e7f1f64f29a17416d71eafff9f787a0b9cad2
[ "MIT" ]
null
null
null
server/db/item_label.py
heptaliane/RankingAnnotator
2d8e7f1f64f29a17416d71eafff9f787a0b9cad2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sqlalchemy import Column, Integer, String from .base import Base class ItemLabel(Base): __tablename__ = 'item_label' id = Column(Integer, autoincrement=True, primary_key=True) label = Column(String)
20.333333
62
0.704918
386bed9f5543d16baad5beb3a289406e268123ae
3,702
py
Python
src/olympia/devhub/tests/test_permissions.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-07-27T11:22:17.000Z
2020-07-27T11:22:17.000Z
src/olympia/devhub/tests/test_permissions.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/devhub/tests/test_permissions.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-06-04T10:18:59.000Z
2020-06-04T10:18:59.000Z
from django.test import RequestFactory from olympia.amo.tests import TestCase, user_factory from olympia.devhub.permissions import IsSubmissionAllowedFor from olympia.users.models import ( DisposableEmailDomainRestriction, EmailUserRestriction, IPNetworkUserRestriction) class TestIsSubmissionAllowedFor(TestC...
48.710526
79
0.706645
386bfc8e2faa3c26737d33f2821a800388468f85
3,119
py
Python
logo/create.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
61
2015-01-07T18:03:21.000Z
2020-11-23T03:31:54.000Z
logo/create.py
phillipaug/Data-Analysis-General-repository
99d4adad494b60a42af6b8bfba94dd0c41ba0786
[ "MIT" ]
9
2015-02-25T15:56:28.000Z
2019-03-13T15:16:20.000Z
logo/create.py
phillipaug/Data-Analysis-General-repository
99d4adad494b60a42af6b8bfba94dd0c41ba0786
[ "MIT" ]
15
2015-01-07T10:53:59.000Z
2020-02-28T05:02:00.000Z
"""Creates an SVG of the Databench logo. Optionally also a png.""" import os import random import svgwrite DATA = [ [0, 1, 1, 1, 1, 0, 1, 1], [1, 1, 0, 1, 1, 1, 1, 0], [1, 1, 1, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 1, 1, 1], [0, 1, 1, 1, 1, 0, 1, 1], [1, 1, 0, 1, 0, 1, 1, 0], [0, 1, 1, 1, 1, 0,...
31.19
76
0.446618
386c13ec96bba7059223f0aa5ec51f1fa8164565
3,160
py
Python
webscrap/get_course_list.py
leizhipeng/analyze_mooc_course_data
a10fb1c3e1b8ac8758be36cbf695a71df72789e0
[ "MIT" ]
null
null
null
webscrap/get_course_list.py
leizhipeng/analyze_mooc_course_data
a10fb1c3e1b8ac8758be36cbf695a71df72789e0
[ "MIT" ]
null
null
null
webscrap/get_course_list.py
leizhipeng/analyze_mooc_course_data
a10fb1c3e1b8ac8758be36cbf695a71df72789e0
[ "MIT" ]
1
2021-12-03T01:36:01.000Z
2021-12-03T01:36:01.000Z
from selenium import webdriver import re import time def get_rank(webpage, outputfile): """ Purpose: obtain COURSE list from the input web page. :param webpage: the webpage that has products. :param outputfile: output file that has the product information. """ count = 1 page = 1 f = ope...
36.321839
117
0.541139
386c26182c3159be340ea050e95a1d4d23645d77
4,145
py
Python
utils/cache_utils.py
prithv1/allenact
ee736e6a3aeed29b3661ee18fa0dc0a68a40201e
[ "MIT" ]
1
2020-09-10T13:09:14.000Z
2020-09-10T13:09:14.000Z
utils/cache_utils.py
andrlima/allenact
f29dd6f0ec62425b02ca07fee815b1a82627a28e
[ "MIT" ]
null
null
null
utils/cache_utils.py
andrlima/allenact
f29dd6f0ec62425b02ca07fee815b1a82627a28e
[ "MIT" ]
null
null
null
import math from typing import Dict, Any, Union def _pos_to_str(pos: Dict[str, float]) -> str: return "_".join([str(pos["x"]), str(pos["y"]), str(pos["z"])]) def _str_to_pos(s: str) -> Dict[str, float]: split = s.split("_") return {"x": float(split[0]), "y": float(split[1]), "z": float(split[2])} def ...
32.131783
87
0.540169
386c2a7e95cf6798efef9ac19bb4931c37411dc9
1,937
py
Python
ros/src/twist_controller/twist_controller.py
pascalnagel/CarND-Capstone
4dfe8998a0d85e6e8277410660e0777af08d9031
[ "MIT" ]
null
null
null
ros/src/twist_controller/twist_controller.py
pascalnagel/CarND-Capstone
4dfe8998a0d85e6e8277410660e0777af08d9031
[ "MIT" ]
7
2020-09-26T01:03:33.000Z
2022-02-10T01:30:14.000Z
ros/src/twist_controller/twist_controller.py
pascalnagel/CarND-Capstone
4dfe8998a0d85e6e8277410660e0777af08d9031
[ "MIT" ]
null
null
null
from yaw_controller import YawController from pid import PID from lowpass import LowPassFilter import rospy GAS_DENSITY = 2.858 ONE_MPH = 0.44704 class Controller(object): def __init__(self, wheel_base, steer_ratio, min_speed, max_lat_accel, max_steer_angle, wheel_radius, vehicle_mass, decel_lim...
31.754098
111
0.65049
386c50886de50be40dae76bdc812f05be17926ec
279
py
Python
site_scons/ackward/trace.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
site_scons/ackward/trace.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
site_scons/ackward/trace.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
import decorator, logging log = logging.getLogger('trace') @decorator.decorator def trace(f, *args, **kw): '''A simple tracing decorator, mostly to help with debugging. ''' log.debug("calling %s with args %s, %s" % (f.__name__, args, kw)) return f(*args, **kw)
25.363636
69
0.648746
386c82a4b8e9339b04467e5c59fa6b092da83208
1,782
py
Python
trax/data/__init__.py
amtagrwl/trax
f7200793a0ce8922622d073a6ec90346efe8b679
[ "Apache-2.0" ]
null
null
null
trax/data/__init__.py
amtagrwl/trax
f7200793a0ce8922622d073a6ec90346efe8b679
[ "Apache-2.0" ]
null
null
null
trax/data/__init__.py
amtagrwl/trax
f7200793a0ce8922622d073a6ec90346efe8b679
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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 a...
34.941176
74
0.803591
386c97982430d20500640985c9217e0ad9de0d0a
13,243
py
Python
automol/rsmiles/base/_core.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
null
null
null
automol/rsmiles/base/_core.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
null
null
null
automol/rsmiles/base/_core.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
7
2019-12-18T20:11:06.000Z
2020-10-14T08:54:16.000Z
""" Level 2 RSMILES functions (depend on L1) The parsing functions apply equally well to SMILES or RSMILES strings, so the documentation simply refers to SMILES strings. """ import pyparsing as pp import numpy from phydat import ptab from automol import util # Not currently dealing with aromatics # organic atoms ORG...
35.220745
79
0.576607
386ca1df0b5e310d682ff6c4843e720eac972ce6
3,280
py
Python
searcher.py
scofirat/treesearch-resnet-tsp
c3b0747725ddd7479ef74e7af399b8c3a85e4d4c
[ "Apache-2.0" ]
null
null
null
searcher.py
scofirat/treesearch-resnet-tsp
c3b0747725ddd7479ef74e7af399b8c3a85e4d4c
[ "Apache-2.0" ]
null
null
null
searcher.py
scofirat/treesearch-resnet-tsp
c3b0747725ddd7479ef74e7af399b8c3a85e4d4c
[ "Apache-2.0" ]
null
null
null
from cityexplorer import CityExplorer import time import matplotlib.pyplot as plt import csv import copy import featurizer class treesearcher: """ This class is for searching the game tree """ def __init__(self,nnet): self.curGame=CityExplorer() self.nnet=nnet def search(self,co...
36.853933
143
0.602134
386cb114d4724040f37a36188edbc33e91faf86d
3,762
py
Python
nyoka/Base64.py
nimeshgit/nyoka
43bf049825922213eeb3e6a8f39864f9b75d01d5
[ "Apache-2.0" ]
2
2021-02-22T18:36:21.000Z
2021-06-12T20:28:43.000Z
nyoka/Base64.py
Chiragasourabh/nyoka
44003b5dc500b18d3a2b2c6ed6fc4db217e2d2c0
[ "Apache-2.0" ]
12
2019-12-09T13:38:30.000Z
2022-02-10T00:31:27.000Z
nyoka/Base64.py
Chiragasourabh/nyoka
44003b5dc500b18d3a2b2c6ed6fc4db217e2d2c0
[ "Apache-2.0" ]
null
null
null
import struct import base64 import sys from array import array #https://stackoverflow.com/questions/40914544/python-base64-float #https://stackoverflow.com/questions/682504/what-is-a-clean-pythonic-way-to-have-multiple-constructors-in-python # >>> sys.float_info # sys.float_info(max=1.7976931348623157e+308, max_exp=1...
31.881356
207
0.672515
386cff5c07cc1b11beefb63bc47fcd44ab4f52a4
1,556
py
Python
example/app2.py
axlan/dash-multipage
7aa2aa71de3366054b64c7bd0fd0d5a191e5beae
[ "MIT" ]
6
2019-04-02T08:52:41.000Z
2021-06-11T09:30:05.000Z
example/app2.py
axlan/dash-multipage
7aa2aa71de3366054b64c7bd0fd0d5a191e5beae
[ "MIT" ]
null
null
null
example/app2.py
axlan/dash-multipage
7aa2aa71de3366054b64c7bd0fd0d5a191e5beae
[ "MIT" ]
2
2019-12-17T12:12:05.000Z
2020-09-24T17:58:17.000Z
# -*- coding: utf-8 -*- """ Logic for App2 """ from typing import Dict import dash_core_components as dcc import dash_html_components as html from dash_multipage import URLArgs from dash_multipage import ControllerBase from dash_multipage import LinkInfo from dash_multipage import Input, Output class App2(Control...
28.814815
76
0.631748
386d115516210345562afe0426774c6921c1f84e
1,816
py
Python
src/routes_calc.py
vzubriichuk/Routes_calculation
fc67823a4b72ff981f2703930884f107b45e4f8f
[ "MIT" ]
null
null
null
src/routes_calc.py
vzubriichuk/Routes_calculation
fc67823a4b72ff981f2703930884f107b45e4f8f
[ "MIT" ]
null
null
null
src/routes_calc.py
vzubriichuk/Routes_calculation
fc67823a4b72ff981f2703930884f107b45e4f8f
[ "MIT" ]
1
2020-01-23T14:22:08.000Z
2020-01-23T14:22:08.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jan 11 14:36:08 2019 @author: v.shkaberda """ from collections import defaultdict from geoYN import geoYN import argparse import os.path, sys def main(): parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter) parser.add_argument('-v', '--v...
28.375
89
0.585352
386d32a7026879b0662aa1d95a00e24a11a5749a
1,452
py
Python
setup.py
wa-pis/api-cloudvps-py
e58bf294fe5605b10b9e0bb61eff3c80e01e4b2c
[ "MIT" ]
null
null
null
setup.py
wa-pis/api-cloudvps-py
e58bf294fe5605b10b9e0bb61eff3c80e01e4b2c
[ "MIT" ]
null
null
null
setup.py
wa-pis/api-cloudvps-py
e58bf294fe5605b10b9e0bb61eff3c80e01e4b2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.version_info < (2, 7): raise NotImplementedError( "Sorry, you need at least Python 2.7 or \ Python 3.x to use api-cloudvps-py." ) with open("README.rst") as...
28.470588
63
0.612948