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
9e41b29282b3c92d8cf6c7738d2ac1410ddedece
3,662
py
Python
placers/python_placer.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
placers/python_placer.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
placers/python_placer.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
import numpy as np from copy import deepcopy from collections import defaultdict import subprocess from ..util import box from ..util import overPrint from ..cy.lib import minDist,minDistCheck class python_placer(object): def placeMolecules(self, placement={},postFitBox=True,wrap=True,overlapCheck=True): pstr = ...
32.990991
96
0.640634
9e41b297ae0c94effa913226ee0f1d1e60e08df9
92,869
py
Python
salt/utils/parsers.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/utils/parsers.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/utils/parsers.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` salt.utils.parsers ~~~~~~~~~~~~~~~~~~ This is where all the black magic happens on all of salt's CLI tools. ''' from __future__ import absolute_import # Import python libs from __future__ import print_function impo...
37.207131
102
0.548859
9e41b2fec93318b69f644724b351b6205713d472
1,399
py
Python
balutils/CatalogFeature/Detection.py
mattkwiecien/balutils
9dcd5419a796e23df671fc4dc22c78cf7e2c61fc
[ "MIT" ]
null
null
null
balutils/CatalogFeature/Detection.py
mattkwiecien/balutils
9dcd5419a796e23df671fc4dc22c78cf7e2c61fc
[ "MIT" ]
null
null
null
balutils/CatalogFeature/Detection.py
mattkwiecien/balutils
9dcd5419a796e23df671fc4dc22c78cf7e2c61fc
[ "MIT" ]
null
null
null
from balutils.CatalogFeature import SimpleCatalog import numpy as np class Detection(SimpleCatalog): """ Adds detection catalog functionality to the catalog. """ def applyTo(self, catalog: Catalog) -> None: self.parent.applyTo(catalog) ''' Balrog stack versions 1.4 and...
30.413043
92
0.567548
9e41e5c810d03bbcef36d54ea7e19b1fd0487255
15,617
py
Python
helpers/ml.py
franloza/ETS-Challenge
eafec51ae6e4b4ca5ef12d58c8215dcbc0b28549
[ "MIT" ]
null
null
null
helpers/ml.py
franloza/ETS-Challenge
eafec51ae6e4b4ca5ef12d58c8215dcbc0b28549
[ "MIT" ]
null
null
null
helpers/ml.py
franloza/ETS-Challenge
eafec51ae6e4b4ca5ef12d58c8215dcbc0b28549
[ "MIT" ]
null
null
null
"""ml.py This is the file that does the heavy lifting. It contains the ML algorithms themselves: - AUCRegressor: a custom class that optimizes AUC directly - MLR: a linear regression with non-negativity constraints - StackedClassifier: a custom class that combines several models And some related functions...
39.436869
83
0.599411
9e420c23fa33aa398137b1426b1da39433b32475
704
py
Python
src/command_modules/azure-cli-consumption/azure/cli/command_modules/consumption/__init__.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-consumption/azure/cli/command_modules/consumption/__init__.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-consumption/azure/cli/command_modules/consumption/__init__.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
46.933333
114
0.580966
9e420f6170c3a003f9dd6994c096cd4dc21eb342
5,522
py
Python
pygcvs/parser.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
pygcvs/parser.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
pygcvs/parser.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
import csv import logging logger = logging.getLogger(__name__) CONSTELLATIONS = { '01': 'AND', '02': 'ANT', '03': 'APS', '04': 'AQR', '05': 'AQL', '06': 'ARA', '07': 'ARI', '08': 'AUR', '09': 'BOO', '10': 'CAE', '11': 'CAM', '12': 'CNC', '13': 'CVN', '14': 'CMA'...
25.447005
83
0.493118
9e423d4b05ae397e1cfc4a58d5f32589e3e233d2
1,117
py
Python
text.py
TemplarJQ/pycoindAnnotationVersion
d33b4c455c4654e0fde35500d230437210d5325e
[ "MIT" ]
null
null
null
text.py
TemplarJQ/pycoindAnnotationVersion
d33b4c455c4654e0fde35500d230437210d5325e
[ "MIT" ]
null
null
null
text.py
TemplarJQ/pycoindAnnotationVersion
d33b4c455c4654e0fde35500d230437210d5325e
[ "MIT" ]
null
null
null
import hashlib from base58 import b58encode_check from pycoind.script import script from pycoind.script import scriptBuild import ecdsa def test_Tokenizer(my_addr): pk_script = scriptBuild.get_pk_script(my_addr) return pk_script def test_de_Tokenizer(pk_script): return script.Tokenizer(pk_script) d...
25.976744
85
0.766338
9e4249765cb96a5bf32bbed8a2687af45bc7bf16
19,719
py
Python
sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase_aad.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "MIT" ]
null
null
null
sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase_aad.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "MIT" ]
1
2021-05-31T08:56:01.000Z
2021-05-31T08:56:01.000Z
sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase_aad.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "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. # ----------------------------------------------------------------------...
44.512415
137
0.60211
9e42ef0c0b08d09353aa5cfd13318ca90fd41719
175
py
Python
src/__init__.py
orcasound/orcaal-research
7b9bf14c01b73696fcb604a5318148e6c4f795cd
[ "MIT" ]
7
2020-11-13T17:36:46.000Z
2022-01-27T00:55:40.000Z
src/__init__.py
rahulraikwar00/orcaal-research
1227e61a4535b237cae0f68d7eb25ef2617b06cd
[ "MIT" ]
null
null
null
src/__init__.py
rahulraikwar00/orcaal-research
1227e61a4535b237cae0f68d7eb25ef2617b06cd
[ "MIT" ]
6
2020-08-31T19:12:40.000Z
2021-12-10T01:34:46.000Z
import src.preprocessing_script import src.active_learning_script import src.training_script __all__ = ["preprocessing_script", "active_learning_script", "training_script"]
25
79
0.845714
9e42ff098e68c6a3b0c2f1106e9852d16417689e
1,514
py
Python
multimodal_affinities/bokeh_server/config/combined_embeddings_config.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
6
2021-07-06T12:48:18.000Z
2021-12-06T01:52:24.000Z
multimodal_affinities/bokeh_server/config/combined_embeddings_config.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
null
null
null
multimodal_affinities/bokeh_server/config/combined_embeddings_config.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
5
2021-07-10T08:09:17.000Z
2022-03-24T16:27:15.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: CC-BY-4.0 from bokeh.models.widgets import Select, Slider combined_embeddings_config = { 'concat': { }, 'kernel_pca': { 'combine_kernelpca_n_components': { 'type': Slider, 'title...
24.819672
85
0.414135
9e43324b1a0e9f9a39d4bfba6e2ded1e13d6670d
84,452
py
Python
PyQuante/Basis/ccpvtz.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
8
2016-08-26T14:57:01.000Z
2019-12-23T07:39:37.000Z
PyQuante/Basis/ccpvtz.py
nicodgomez/pyquante
483571110b83cab406d3d4d8f2eba5cae0a2da58
[ "DOC" ]
1
2021-06-11T18:51:34.000Z
2021-06-11T18:56:26.000Z
PyQuante/Basis/ccpvtz.py
globulion/pyq-mod
ee32b6685e9c1e915c5c515ef7ab83adc200fa9b
[ "DOC" ]
8
2016-02-23T19:22:11.000Z
2021-08-28T12:12:59.000Z
"""\ basis_ccpvtz.dat basis set for use with PyQuante This program is part of the PyQuante quantum chemistry program suite. Copyright (c) 2004, Richard P. Muller. All Rights Reserved. PyQuante version 1.2 and later is covered by the modified BSD license. Please see the file LICENSE that is part of this distri...
43.939646
70
0.623976
9e4342adc70a45c2dce6637a92d568440e9f4613
2,468
py
Python
examples/extract_features_of_hpatches.py
EnricoBeltramo/geodesc
61a5e501273c2a4fda7438541c1c96c13103afc5
[ "MIT" ]
null
null
null
examples/extract_features_of_hpatches.py
EnricoBeltramo/geodesc
61a5e501273c2a4fda7438541c1c96c13103afc5
[ "MIT" ]
null
null
null
examples/extract_features_of_hpatches.py
EnricoBeltramo/geodesc
61a5e501273c2a4fda7438541c1c96c13103afc5
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copyright 2018, Zixin Luo, HKUST. Feature extraction of HPatches dataset. """ from __future__ import print_function import os import sys import cv2 import numpy as np import tensorflow as tf CURDIR = os.path.dirname(__file__) sys.path.append(os.path.abspath(os.path.join(CURDIR, '..'))) fr...
34.760563
94
0.635332
9e43846df452699b1e6a4a685e639499f33b15b5
1,342
py
Python
test/scenarios/test_tar.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
7
2020-07-28T06:53:02.000Z
2022-03-18T05:23:03.000Z
test/scenarios/test_tar.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-11-25T16:13:26.000Z
2020-11-25T16:13:26.000Z
test/scenarios/test_tar.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-07-28T13:47:09.000Z
2020-07-28T13:47:09.000Z
# -*- coding: utf-8 -*- from test.docker_utils import Strategies, Tools import pytest @pytest.mark.tar class TestFullDump(object): def test_full_dump_default(self, container): container = container() assert Strategies.run_full_dump_default(container) assert Tools.check_trigger_success(co...
31.209302
72
0.721311
9e43a0a7550a7dfc07152de85520c60f11ea6c0a
946
py
Python
ngsutils/fastq/t/test_truncate.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/fastq/t/test_truncate.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/fastq/t/test_truncate.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
#!/usr/bin/env python ''' Tests for fastqutils truncate ''' import unittest import StringIO import ngsutils.fastq.truncate from ngsutils.fastq import FASTQ class TruncateTest(unittest.TestCase): def testTruncate(self): fq = StringIO.StringIO('''\ @foo ACGTACGT + ;;;;;;;; @bar comment ACGTACGT + ;;;;;;;;...
14.78125
89
0.620507
9e43ae50545d99918755616efdcf2d43a3c3bde1
6,863
py
Python
test/integration/ggrc_basic_permissions/test_audit_snapshot_rbac.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc_basic_permissions/test_audit_snapshot_rbac.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
test/integration/ggrc_basic_permissions/test_audit_snapshot_rbac.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Test audit RBAC""" import itertools from os.path import abspath from os.path import dirname from os.path import join from collections import defaultdict from integration.ggrc import TestCase from integr...
32.372642
78
0.665161
9e43cd45c5eb7138a424e5887b3838d01645a949
9,635
py
Python
birdsonganalysis/songfeatures.py
gnouveau/birdsonganalysis
58032538c63e9506d386e5fff5c2e8321c1d2983
[ "MIT" ]
null
null
null
birdsonganalysis/songfeatures.py
gnouveau/birdsonganalysis
58032538c63e9506d386e5fff5c2e8321c1d2983
[ "MIT" ]
null
null
null
birdsonganalysis/songfeatures.py
gnouveau/birdsonganalysis
58032538c63e9506d386e5fff5c2e8321c1d2983
[ "MIT" ]
null
null
null
""" Analyses the features of bird song. Analysis of the song are taken from SAT: http://soundanalysispro.com/matlab-sat """ import os from collections import defaultdict import numpy as np from aubio import pitch as aubio_pitch import libtfr from .utils import get_windows, cepstrum from .constants import FREQ_RANG...
32.883959
88
0.649611
9e43e51566a4518d9c1c8a29c7551ead618dae1d
718
py
Python
setup.py
jadecastro/stlcg
a4e9a33eff6299c1dfc9051fed1d16e5220ff632
[ "MIT" ]
1
2021-02-11T12:01:41.000Z
2021-02-11T12:01:41.000Z
setup.py
jadecastro/stlcg
a4e9a33eff6299c1dfc9051fed1d16e5220ff632
[ "MIT" ]
null
null
null
setup.py
jadecastro/stlcg
a4e9a33eff6299c1dfc9051fed1d16e5220ff632
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="stlcg", version="0.0.1", author="Karen Leung and Nikos Arechiga", author_email="karenl7@stanford.edu and nikos.arechiga@tri.global", description="A toolbox to compute the robustness of STL...
32.636364
107
0.688022
9e43edebf83164519d1fedcd08b9488bdccd8efb
7,973
py
Python
audioread/ffdec.py
jcsaaddupuy/audioread
00aa4a41553e5df5f568f38558c3e2d76d34d906
[ "MIT" ]
null
null
null
audioread/ffdec.py
jcsaaddupuy/audioread
00aa4a41553e5df5f568f38558c3e2d76d34d906
[ "MIT" ]
null
null
null
audioread/ffdec.py
jcsaaddupuy/audioread
00aa4a41553e5df5f568f38558c3e2d76d34d906
[ "MIT" ]
null
null
null
# This file is part of audioread. # Copyright 2014, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, co...
32.542857
76
0.563401
9e4405eab0614b5a9983a1fc1bbb45d51185d37c
3,846
py
Python
src/text.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
40
2020-07-22T04:49:43.000Z
2021-12-19T15:11:30.000Z
src/text.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
1
2021-12-13T02:39:29.000Z
2021-12-13T02:39:29.000Z
src/text.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
4
2020-08-16T08:43:40.000Z
2021-02-19T09:53:26.000Z
"""Modified from tensorflow_datasets.features.text.* Reference: https://www.tensorflow.org/datasets/api_docs/python/tfds/features/text_lib """ import abc import numpy as np import pandas as pd from os.path import basename SEP = '\t' class _BaseTextEncoder(abc.ABC): @abc.abstractmethod def encode(self): ...
29.136364
96
0.621425
9e4431c38a2a26c436dd064670967617d3520a5d
1,476
py
Python
handcam/scratch/alpha_matting_overlay.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
1
2022-02-10T13:19:20.000Z
2022-02-10T13:19:20.000Z
handcam/scratch/alpha_matting_overlay.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
null
null
null
handcam/scratch/alpha_matting_overlay.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
null
null
null
import numpy as np import cv2 import scipy.misc from scipy.ndimage.interpolation import shift # Read the images # foreground = cv2.imread("/local/home/luke/datasets/handcam/greenscreens/88-right2-image.png") # background = cv2.imread("beach-drink.jpg") # alpha = cv2.imread("/local/home/luke/datasets/handcam/greenscree...
28.384615
112
0.73916
9e44601b42272210c13d57a460e96e3ef5f9cf43
3,039
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/reportlowlevel/aio/_auto_rest_report_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 ...
42.208333
100
0.684436
9e4464f78a30c6be93280a7f225f5fae5fb4830f
29,357
py
Python
tofu/tests/tests04_spectro/test_01_fit12d.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
6
2016-09-15T17:01:19.000Z
2017-03-06T22:53:10.000Z
tofu/tests/tests04_spectro/test_01_fit12d.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
9
2016-09-14T17:23:52.000Z
2017-04-13T07:30:07.000Z
tofu/tests/tests04_spectro/test_01_fit12d.py
Didou09/tofu
4a4e1f058bab8e7556ed9d518f90807cec605476
[ "MIT" ]
null
null
null
""" This module contains tests for tofu.geom in its structured version """ # Built-in import os import sys import warnings import itertools as itt # Standard import numpy as np import scipy.constants as scpct import matplotlib.pyplot as plt # tofu-specific from tofu import __version__ import tofu as tf import tofu....
29.895112
79
0.480703
9e446fbb7b5c6e9517e0440dbd89b3809904ed5f
1,011
py
Python
recipeProject/recipeProject/urls.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
recipeProject/recipeProject/urls.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
recipeProject/recipeProject/urls.py
Mazziitoozz/Django_REST_recipe_api
b248342aed1bda5d4d39a17509dcd11962fecf10
[ "MIT" ]
null
null
null
"""recipeProject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
38.884615
77
0.723046
9e448144e6a20f05160242ace1daef5f68d37405
1,212
py
Python
examples/bimanualPNP_test.py
jc-bao/panda-gym
1860bf7459d50fc1a3677d937c984034fd936a7e
[ "MIT" ]
1
2021-12-24T01:43:14.000Z
2021-12-24T01:43:14.000Z
examples/bimanualPNP_test.py
jc-bao/panda-gym
1860bf7459d50fc1a3677d937c984034fd936a7e
[ "MIT" ]
null
null
null
examples/bimanualPNP_test.py
jc-bao/panda-gym
1860bf7459d50fc1a3677d937c984034fd936a7e
[ "MIT" ]
null
null
null
import gym import panda_gym import numpy as np def policy(obs, timestep): timestep = timestep%50 goal_1 = obs['desired_goal'][:3] goal_2 = obs['desired_goal'][3:] obs = obs['observation'] robot1_obs = obs[:7] robot2_obs = obs[7:14] task_obs = obs[14:] obj_pos_1 = task_obs[:3] obj_po...
25.787234
66
0.618812
9e449573d52bcf47fec32b6669966568fd84e3a2
23,465
py
Python
Sklearn_scipy_numpy/source/sklearn/datasets/base.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Sklearn_scipy_numpy/source/sklearn/datasets/base.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Sklearn_scipy_numpy/source/sklearn/datasets/base.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
""" Base IO code for all datasets """ # Copyright (c) 2007 David Cournapeau <cournape@gmail.com> # 2010 Fabian Pedregosa <fabian.pedregosa@inria.fr> # 2010 Olivier Grisel <olivier.grisel@ensta.org> # License: BSD 3 clause import os import csv import sys import shutil from os import environ...
34.86627
79
0.601151
9e4496dc3db905173eccc731b31bf725a248546e
1,950
py
Python
autobias/modules/attention_layers.py
chrisc36/autobias
df1120d46adccf024c8dc59f86dd95f2c710fb52
[ "Apache-2.0" ]
3
2020-12-27T11:42:14.000Z
2021-04-12T14:19:39.000Z
autobias/modules/attention_layers.py
chrisc36/autobias
df1120d46adccf024c8dc59f86dd95f2c710fb52
[ "Apache-2.0" ]
1
2020-12-28T01:36:46.000Z
2020-12-28T01:36:46.000Z
autobias/modules/attention_layers.py
chrisc36/autobias
df1120d46adccf024c8dc59f86dd95f2c710fb52
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F from autobias.modules.layers import Layer from autobias.utils import ops class DotAttention(Layer): def __init__(self, dim, transposed_priors=True): super().__init__() self.dim = dim self.transposed_priors = transposed_priors se...
28.676471
89
0.673846
9e449f6f69fc54acf72f42a9c1d1b893d63054ce
2,366
py
Python
scripts/make.py
msikma/Complete-Fire-Red-Upgrade
6a15ece5c180b9d98e1f8cc78e7e8f62f5e48708
[ "WTFPL" ]
null
null
null
scripts/make.py
msikma/Complete-Fire-Red-Upgrade
6a15ece5c180b9d98e1f8cc78e7e8f62f5e48708
[ "WTFPL" ]
null
null
null
scripts/make.py
msikma/Complete-Fire-Red-Upgrade
6a15ece5c180b9d98e1f8cc78e7e8f62f5e48708
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import shutil import sys import os ############ #Options go here. ############ ROM_NAME = "BPRE0.gba" #the name of your rom OFFSET_TO_PUT = 0x900000 SEARCH_FREE_SPACE = False #Set to True if you want the script to search for free space;Set to False if you don't want to search for free space a...
24.905263
179
0.664835
9e44fd68f8fd8c1bab6b85704bc0f507a539d8c8
5,148
py
Python
community_profiles/datasets/violations.py
nickhand/community-profiles
8b05e8be5448fd6e75c1c7757592d319ccc6ce13
[ "MIT" ]
null
null
null
community_profiles/datasets/violations.py
nickhand/community-profiles
8b05e8be5448fd6e75c1c7757592d319ccc6ce13
[ "MIT" ]
3
2019-09-25T18:34:29.000Z
2019-12-30T19:01:53.000Z
community_profiles/datasets/violations.py
nickhand/community-profiles
8b05e8be5448fd6e75c1c7757592d319ccc6ce13
[ "MIT" ]
2
2019-09-23T14:13:22.000Z
2019-09-23T19:27:10.000Z
import carto2gpd import pandas as pd from . import EPSG, DEFAULT_YEAR from .core import * from .regions import * __all__ = ["ParkingViolations", "StreetCodeViolations", "LIViolations", "LIRequests"] class ParkingViolations(DatasetWithYear): """ Parking Violations Notes ----- Available: 2012-2017...
28.285714
85
0.595377
9e450ee741bae3253f65d91717758fde9d463856
11,186
py
Python
src/calculation_helper.py
lxzmxl/GEMSEC
1b68ebc25542cabb914d3cb65555fe29c640aeb0
[ "MIT" ]
null
null
null
src/calculation_helper.py
lxzmxl/GEMSEC
1b68ebc25542cabb914d3cb65555fe29c640aeb0
[ "MIT" ]
null
null
null
src/calculation_helper.py
lxzmxl/GEMSEC
1b68ebc25542cabb914d3cb65555fe29c640aeb0
[ "MIT" ]
1
2021-03-18T07:38:12.000Z
2021-03-18T07:38:12.000Z
import networkx as nx import numpy as np import random import math import community from collections import Counter from tqdm import tqdm from sklearn.cluster import KMeans def normalized_overlap(g, node_1, node_2): """ Function to calculate the normalized neighborhood overlap. :param g: NX graph. :par...
33.192878
123
0.605578
9e4512a9a0dfe7ed6a48d464aece5f29d426eff0
4,985
py
Python
sample_inference.py
TUI-NICR/multi-task-person-perception
81666eb42be9522fd726448e82e8bbf04138ffa3
[ "BSD-3-Clause" ]
4
2021-07-28T06:26:07.000Z
2022-01-24T09:31:34.000Z
sample_inference.py
TUI-NICR/multi-task-person-perception
81666eb42be9522fd726448e82e8bbf04138ffa3
[ "BSD-3-Clause" ]
null
null
null
sample_inference.py
TUI-NICR/multi-task-person-perception
81666eb42be9522fd726448e82e8bbf04138ffa3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ .. codeauthor:: Dominik Höchemer <dominik.hoechemer@tu-ilmenau.de> .. codeauthor:: Daniel Seichter <daniel.seichter@tu-ilmenau.de> """ import argparse as ap import json import os import matplotlib.pyplot as plt import numpy as np import torch from src.data.postproces...
34.143836
80
0.601204
9e45159300eb9a171b26ed3972453105d2fecda6
38
py
Python
pyronear/datasets/wildfire/__init__.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
pyronear/datasets/wildfire/__init__.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
pyronear/datasets/wildfire/__init__.py
JoaoFdC/PyroNear
ca56316d5ad986789feace9dd913115596f6c2ca
[ "MIT" ]
null
null
null
from .fire_labeler import FireLabeler
19
37
0.868421
9e4535749379a7fdea8b9ee62c67bd430aa2c4bb
845
py
Python
ML/urls.py
hbc123ht/Django-Speech-Accent-Recognition-demo
6f0d15f10e15436fcf952f6ceb91f6fd75c09592
[ "MIT" ]
null
null
null
ML/urls.py
hbc123ht/Django-Speech-Accent-Recognition-demo
6f0d15f10e15436fcf952f6ceb91f6fd75c09592
[ "MIT" ]
null
null
null
ML/urls.py
hbc123ht/Django-Speech-Accent-Recognition-demo
6f0d15f10e15436fcf952f6ceb91f6fd75c09592
[ "MIT" ]
null
null
null
"""web URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
35.208333
77
0.705325
9e453e57986026d96fb63fc4a2e3855b98e8b108
877
py
Python
setup.py
praekeltfoundation/vumi-unidecode-middleware
05f406801794246292b97f449a7e5ab1e10f6001
[ "BSD-3-Clause" ]
null
null
null
setup.py
praekeltfoundation/vumi-unidecode-middleware
05f406801794246292b97f449a7e5ab1e10f6001
[ "BSD-3-Clause" ]
3
2018-02-05T14:48:27.000Z
2018-02-07T09:10:11.000Z
setup.py
praekeltfoundation/vumi-unidecode-middleware
05f406801794246292b97f449a7e5ab1e10f6001
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='vumi_unidecode_middleware', version='0.0.2', url='https://github.com/praekeltfoundation/vumi-unidecode-middleware', license='BSD', description='Vumi middleware that runs message content through unidecode', long_desc...
30.241379
78
0.63626
9e455b94150cde90ada8654a3bda8b212b963bc1
9,791
py
Python
theano_models/dA/test_dA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
theano_models/dA/test_dA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
theano_models/dA/test_dA.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
# Experiment script to compare ReLU dAs versus Gaussian-Bernoulli dAs # Train each with varying amounts of noise, import numpy import theano import theano.tensor as T from theano.tensor.shared_randomstreams import RandomStreams from AutoEncoder import AutoEncoder from AutoEncoder import ReluAutoEncoder from AutoEnco...
37.51341
135
0.616893
9e45804e8934eac92ff33b4367658e55baf54ada
1,331
py
Python
mmdet/datasets/compute_mean_var.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/compute_mean_var.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/compute_mean_var.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
#-*-coding:utf-8-*- import os from PIL import Image import matplotlib.pyplot as plt import numpy as np # from scipy.misc import imread from imageio import imread filepath = r'/home/stella/zx/mmdetection-master/data/coco/train2017' # 数据集目录 pathDir = os.listdir(filepath) R_channel = 0 G_channel = 0 B_channel = 0 for i...
32.463415
77
0.658152
9e4595f90f28f06080aef337b1a778fbcdc504f5
6,534
py
Python
shaker/ebs.py
benjaminws/shaker
d9195422b8bef64bc751fffee8706f1abbd656a3
[ "BSD-2-Clause" ]
1
2015-11-05T10:28:03.000Z
2015-11-05T10:28:03.000Z
shaker/ebs.py
benjaminws/shaker
d9195422b8bef64bc751fffee8706f1abbd656a3
[ "BSD-2-Clause" ]
null
null
null
shaker/ebs.py
benjaminws/shaker
d9195422b8bef64bc751fffee8706f1abbd656a3
[ "BSD-2-Clause" ]
null
null
null
import os import time import email.mime import boto import boto.ec2 from boto.ec2.blockdevicemapping import EBSBlockDeviceType, BlockDeviceMapping import shaker.log import shaker.ami LOG = shaker.log.getLogger(__name__) RUN_INSTANCE_TIMEOUT = 180 # seconds INSTANCE_TYPES = [ 't1.micro', 'm1.small', 'm2....
37.988372
78
0.569483
9e45b73d08315aaa5770ad5f620934e0e80ebd70
1,675
py
Python
src/models/head.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
src/models/head.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
src/models/head.py
takedarts/DenseResNet
d5f9c143ed3c484436a2a5bac366c3795e5d47ec
[ "MIT" ]
null
null
null
import torch.nn as nn import collections class BasicHead(nn.Sequential): def __init__(self, in_channels, out_channels, **kwargs): super().__init__() class PreActHead(nn.Sequential): def __init__(self, in_channels, out_channels, normalization, activation, **kwargs): super().__i...
36.413043
93
0.605373
9e45bdf985128f0a55a8dc4c6fa05b107db62193
3,484
py
Python
pytorch_toolkit/formula_recognition/im2latex/models/im2latex_model.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
3
2020-12-29T02:47:32.000Z
2021-11-12T08:12:51.000Z
pytorch_toolkit/formula_recognition/im2latex/models/im2latex_model.py
maxpark/openvino_training_extensions
98450ed8aeab8a003e1d19b49b6fb0da60388605
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/formula_recognition/im2latex/models/im2latex_model.py
maxpark/openvino_training_extensions
98450ed8aeab8a003e1d19b49b6fb0da60388605
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
39.146067
119
0.687428
9e45ceb36d0204c92f4a2126ab1cdba07e02b612
195,186
py
Python
swift/common/utils.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
swift/common/utils.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
swift/common/utils.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
34.786313
79
0.61591
9e45d2622b35d5900c10269efc90fdf8ec980551
18,028
py
Python
demo_multi_thread.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
null
null
null
demo_multi_thread.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
null
null
null
demo_multi_thread.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
1
2019-07-31T01:41:11.000Z
2019-07-31T01:41:11.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # --------------------------------------------------------...
38.357447
123
0.582039
9e46000c18f50e99f9850f157766226b8df7b0ae
13,750
py
Python
stage_1_disentangle/src_unis/model.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
2
2019-08-09T00:49:25.000Z
2019-09-30T06:37:07.000Z
stage_1_disentangle/src_unis/model.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
null
null
null
stage_1_disentangle/src_unis/model.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np # from tensorflow.contrib.rnn.python.ops import core_rnn # from tensorflow.contrib.rnn.python.ops import core_rnn_cell import tensorflow.contrib.rnn as core_rnn from tensorflow.contrib.legacy_seq2seq.python.ops import seq2seq from tensorflow.python.framework import dtypes imp...
55.443548
117
0.636945
9e469bbab0cc5240fbc32dc43b192896a5173f0b
75,412
py
Python
build/lib/MIDASpy/midas_base.py
MIDASverse/pyMIDAS
81a2537056908adcaf49fbad9fea1ea8e51ea50d
[ "Apache-2.0" ]
48
2020-10-09T04:28:43.000Z
2022-03-29T21:27:12.000Z
build/lib/MIDASpy/midas_base.py
MIDASverse/pyMIDAS
81a2537056908adcaf49fbad9fea1ea8e51ea50d
[ "Apache-2.0" ]
18
2020-09-29T10:58:31.000Z
2022-03-26T13:47:50.000Z
build/lib/MIDASpy/midas_base.py
MIDASverse/pyMIDAS
81a2537056908adcaf49fbad9fea1ea8e51ea50d
[ "Apache-2.0" ]
13
2020-10-09T04:21:26.000Z
2022-03-01T22:07:09.000Z
# ============================================================================== # # 888b d888 8888888 8888888b. d8888 .d8888b. # 8888b d8888 888 888 "Y88b d88888 d88P Y88b # 88888b.d88888 888 888 888 d88P888 Y88b. # 888Y88888P888 888 888 888 d88P 888 "Y88...
42.461712
113
0.604824
9e46b2779a559d118572897908ea36e991b7ca33
6,037
py
Python
assignment1/cs231n/classifiers/linear_classifier.py
zhongnanf/cs231n_2016_hws
d7943535e1d3c96ea6fd38badc28701852b9b056
[ "MIT" ]
null
null
null
assignment1/cs231n/classifiers/linear_classifier.py
zhongnanf/cs231n_2016_hws
d7943535e1d3c96ea6fd38badc28701852b9b056
[ "MIT" ]
null
null
null
assignment1/cs231n/classifiers/linear_classifier.py
zhongnanf/cs231n_2016_hws
d7943535e1d3c96ea6fd38badc28701852b9b056
[ "MIT" ]
null
null
null
import numpy as np from cs231n.classifiers.linear_svm import * from cs231n.classifiers.softmax import * class LinearClassifier(object): def __init__(self): self.W = None def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100, batch_size=200, verbose=False): """ ...
45.052239
97
0.451549
9e46bff598800b62ff0be54316730e8243507cab
321
py
Python
catbridge_tools/logs.py
victoriamorris/CatBridge
a91164f85ffcb93eb17c786d4a178a559242f7c9
[ "MIT" ]
null
null
null
catbridge_tools/logs.py
victoriamorris/CatBridge
a91164f85ffcb93eb17c786d4a178a559242f7c9
[ "MIT" ]
null
null
null
catbridge_tools/logs.py
victoriamorris/CatBridge
a91164f85ffcb93eb17c786d4a178a559242f7c9
[ "MIT" ]
null
null
null
import logging logging.basicConfig(level=logging.INFO, format='[%(asctime)s]\t{%(pathname)s:%(lineno)d}\t%(levelname)s\t%(message)s', datefmt='%Y-%m-%d %H:%M:%S', filename='catbridge.log', filemode='w') logger = logging.getLogger() ...
35.666667
99
0.504673
9e46dd266c2d591aec86481ae2c8cbd1924fbb10
4,224
py
Python
src/emotion/evaluation/convert_to_span.py
Thanatoz-1/EmotionStimuli
f7774cf77ec2a66949949905ed70d62117179666
[ "BSD-3-Clause" ]
null
null
null
src/emotion/evaluation/convert_to_span.py
Thanatoz-1/EmotionStimuli
f7774cf77ec2a66949949905ed70d62117179666
[ "BSD-3-Clause" ]
2
2021-07-28T10:38:03.000Z
2021-07-31T10:37:09.000Z
src/emotion/evaluation/convert_to_span.py
Thanatoz-1/EmotionStimuli
f7774cf77ec2a66949949905ed70d62117179666
[ "BSD-3-Clause" ]
null
null
null
__author__ = "Maximilian Wegge" from typing import List from .align_spans import gen_poss_align, align_spans def conv2span(annot_brown: list) -> List[dict]: """Extract the spans (i.e. consecutive sequences of either 'O'- or 'B'/'I'-tags) from a sentences's annotation. Args: annot_brown (list): l...
30.832117
100
0.540246
9e46f1ca6185395ec35b4de61f9dbdf6caecffd8
912
py
Python
pymmbot/coinpit/crypto.py
coinpit/pymmbot
88efc8b06b2e5f7d871e22e505998e8e44c73de6
[ "MIT" ]
7
2018-02-25T08:49:02.000Z
2019-11-18T00:43:04.000Z
pymmbot/coinpit/crypto.py
coinpit/pymmbot
88efc8b06b2e5f7d871e22e505998e8e44c73de6
[ "MIT" ]
2
2017-08-15T18:05:38.000Z
2017-08-17T00:26:36.000Z
pymmbot/coinpit/crypto.py
coinpit/pymmbot
88efc8b06b2e5f7d871e22e505998e8e44c73de6
[ "MIT" ]
3
2017-11-15T23:34:01.000Z
2020-11-26T16:47:20.000Z
import logging import json from nacl.bindings import crypto_sign, crypto_sign_BYTES from nacl.encoding import Base64Encoder logger = logging.getLogger('root') def get_auth(user_id, name, secret, nonce, method, uri, body=None): if body is not None: if not isinstance(body, str): try: ...
43.428571
88
0.628289
9e46feee00382a48f209583bd67af06da047e07e
900
py
Python
forest/visitor/context.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
7
2020-06-24T12:14:40.000Z
2022-01-19T17:01:02.000Z
forest/visitor/context.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
forest/visitor/context.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional from ..dsl import Node class Context: _observed: List[Node] _evaluated: List[Node] _stack: List[Node] def __init__(self): self._observed = list() self._evaluated = list() self._stack = list() def observe(self, node: Node) -> None: ...
20.930233
42
0.594444
9e4702bfc0cca7a58e2df416616fbc1d2e1a010b
1,599
py
Python
tests/common/test_run/ascend/softsign_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/softsign_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/softsign_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
38.071429
74
0.73671
9e4705f1c6d7d82e092e49b6008e1a11ff67eb19
2,308
py
Python
cogs/Testing.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
cogs/Testing.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
cogs/Testing.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
import discord from discord.ext import commands # For testing commands class Testing(commands.Cog, name="Testing Commands"): """Testing Commands""" def __init__(self, bot): self.bot = bot @commands.is_owner() @commands.command() async def testing(self, ctx): """ info = ""...
33.449275
115
0.561525
9e470a899b97498720db0436f928e43af9c1dbc8
6,921
py
Python
toontown/suit/SuitDNA.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/suit/SuitDNA.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/suit/SuitDNA.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import random from pandac.PandaModules import * from direct.directnotify.DirectNotifyGlobal import * from toontown.toonbase import TTLocalizer import random from direct.distributed.PyDatagram import PyDatagram from direct.distributed.PyDatagramIterator import PyDatagramIterator from otp.avatar import AvatarDNA notify =...
29.961039
123
0.569282
9e471a6c4e9b89d0ce24bd84efcc94f1d2ff2026
5,224
py
Python
meter/perfMeter.py
DemisseG/Approximately_Covariant_CNN-
19c4b2363083ba25a2af17a2672da330ae9ed7fc
[ "MIT" ]
null
null
null
meter/perfMeter.py
DemisseG/Approximately_Covariant_CNN-
19c4b2363083ba25a2af17a2672da330ae9ed7fc
[ "MIT" ]
null
null
null
meter/perfMeter.py
DemisseG/Approximately_Covariant_CNN-
19c4b2363083ba25a2af17a2672da330ae9ed7fc
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division import sys, os from typing import Dict import torch import numpy import matplotlib from matplotlib.ticker import ScalarFormatter, AutoMinorLocator import matplotlib.pyplot as plt font = {'family': 'monospace', 'size' : 10, 'weight': 'bold'} plt.rc...
38.131387
114
0.57657
9e4736e19ecbe49e26089575e2347b58929fbb7c
4,292
py
Python
test/integration/ggrc_basic_permissions/test_issue_mapping.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc_basic_permissions/test_issue_mapping.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc_basic_permissions/test_issue_mapping.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Test Mapping Issue mapping""" from ddt import data, ddt, unpack from ggrc.app import app # NOQA pylint: disable=unused-import from ggrc.models import all_models from integration.ggrc import TestCase fro...
29.39726
78
0.638164
9e474a2c0cf2a7a80b89619e7cb500053e1fb383
19,247
py
Python
modules/dbnd/src/dbnd/api/tracking_api.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/api/tracking_api.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/api/tracking_api.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import typing from datetime import datetime from typing import List, Optional, Tuple from uuid import UUID import attr from dbnd._core.constants import ( DbndDatasetOperationType, DbndTargetOperationStatus, DbndTargetOperationType, RunState, TaskRunState, UpdateSource, ) from dbnd._core.track...
33.357019
87
0.721983
9e476a4f87b10aad2e181fce997b1adb991164e9
6,667
py
Python
chainer/functions/pooling/max_pooling_2d.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
chainer/functions/pooling/max_pooling_2d.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
chainer/functions/pooling/max_pooling_2d.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
import numpy from chainer import cuda from chainer.functions.pooling import pooling_2d from chainer.utils import conv if cuda.cudnn_enabled: cudnn = cuda.cudnn libcudnn = cudnn.cudnn class MaxPooling2D(pooling_2d.Pooling2D): """Max pooling over a set of 2d planes.""" def forward_cpu(self, x): ...
39.449704
78
0.505025
9e47725d5966f0a337a64310e502d6e96709b9f5
3,419
py
Python
chapps/logging.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
1
2022-03-23T13:36:43.000Z
2022-03-23T13:36:43.000Z
chapps/logging.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
2
2022-02-25T18:12:15.000Z
2022-03-07T22:32:13.000Z
chapps/logging.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
null
null
null
""" Logging ------- This module's purpose is to ensure that CHAPPS modules end up instantiating loggers which all share a common formatter and handler. It has been reworked a little bit since its inception, and it may approach the issue from two directions, still. It does attempt to be the first thing to get a handle...
34.887755
79
0.725066
9e4772ff13eae78a50d64361d78679666eb3b67a
5,063
py
Python
data/lexical_analysis/reader.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
13
2020-05-09T07:19:15.000Z
2021-11-22T08:30:23.000Z
data/lexical_analysis/reader.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
null
null
null
data/lexical_analysis/reader.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
5
2020-07-13T12:19:22.000Z
2021-01-27T08:32:29.000Z
# Copyright (c) 2019 PaddlePaddle 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 app...
32.455128
75
0.578116
9e4781e485734c3b8c04a5c0ce4ea443a96ea998
5,661
py
Python
graphite_plugin_agent/plugins/apache_httpd.py
jondkelley/graphite-plugin-agent
924193262cbd7f6eaa498c33951883473e435c90
[ "BSD-3-Clause" ]
1
2018-06-20T04:41:15.000Z
2018-06-20T04:41:15.000Z
graphite_plugin_agent/plugins/apache_httpd.py
jondkelley/graphite-plugin-agent
924193262cbd7f6eaa498c33951883473e435c90
[ "BSD-3-Clause" ]
null
null
null
graphite_plugin_agent/plugins/apache_httpd.py
jondkelley/graphite-plugin-agent
924193262cbd7f6eaa498c33951883473e435c90
[ "BSD-3-Clause" ]
null
null
null
""" ApacheHTTPD Support """ import logging import re from graphite_plugin_agent.plugins import base LOGGER = logging.getLogger(__name__) PATTERN = re.compile(r'^([\w\s{1}]+):\s([\d\.{1}]+)', re.M) class ApacheHTTPD(base.HTTPStatsPlugin): DEFAULT_QUERY = 'auto' GUID = 'com.meetme.newrelic_apache_httpd_age...
45.653226
111
0.462639
9e47b14863b1bb899151eaeebf74a8066347946f
28,657
py
Python
nni/compression/pytorch/utils/shape_dependency.py
Microsoft/nni
b99e26833287c901f6d808d07ea6882014b05f58
[ "MIT" ]
2,305
2018-09-07T12:42:26.000Z
2019-05-06T20:14:24.000Z
nni/compression/pytorch/utils/shape_dependency.py
Eurus-Holmes/nni
45af1d6b79b355d3e013f1eae2f4c193bbd84074
[ "MIT" ]
379
2018-09-10T10:19:50.000Z
2019-05-06T18:04:46.000Z
nni/compression/pytorch/utils/shape_dependency.py
Eurus-Holmes/nni
45af1d6b79b355d3e013f1eae2f4c193bbd84074
[ "MIT" ]
314
2018-09-08T05:36:08.000Z
2019-05-06T08:48:51.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import csv import logging import torch import numpy as np from nni.compression.pytorch.compressor import PrunerModuleWrapper from nni.algorithms.compression.v2.pytorch.base import PrunerModuleWrapper as PrunerModuleWrapper_v2 from .utils import g...
38.673414
122
0.602157
9e47f24207082fd341fdbed1890273acba0afc4e
1,203
py
Python
tic-tac-to_sim.py
olifantix/python_tools
5432e2af4df20e8f1352ccaa664e94707c559841
[ "MIT" ]
null
null
null
tic-tac-to_sim.py
olifantix/python_tools
5432e2af4df20e8f1352ccaa664e94707c559841
[ "MIT" ]
null
null
null
tic-tac-to_sim.py
olifantix/python_tools
5432e2af4df20e8f1352ccaa664e94707c559841
[ "MIT" ]
null
null
null
def check_win(d): """Input is a dictionary with keys 1-9 according to a numerical keypad: 789 456 123 function checks win condition for tic tac toe and returns the dicts value""" w = ( (7, 8, 9), (4, 5, 6), (1, 2, 3,), (1, 4, 7), (2, 5, 8), (3, 6, 7), ...
28.642857
80
0.527016
9e47ffecaede8667f4f943457b62b479822cc329
10,647
py
Python
cbrain/legacy/run_experiment.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
66
2018-05-25T18:36:27.000Z
2022-03-20T15:39:54.000Z
cbrain/legacy/run_experiment.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
17
2019-01-08T12:41:47.000Z
2021-09-05T01:22:04.000Z
cbrain/legacy/run_experiment.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
48
2018-04-04T22:42:12.000Z
2021-03-06T06:21:39.000Z
"""Script to run an experiment. Author: Stephan Rasp """ from cbrain.imports import * from cbrain.data_generator import DataGenerator from cbrain.models import * # Loss dictionary. TODO: Solve this more cleverly (not Tom...) loss_dict = { 'mae': 'mae', 'mse': 'mse', 'log_loss': log_loss, } def main(inar...
34.568182
88
0.517235
9e4837e189bd7f9caa8449cd5ce1f831dfa544ae
237
py
Python
lathermail/default_settings.py
reclosedev/lathermail
b017c7152761a824fedeef3e56840b2125478913
[ "MIT" ]
13
2015-11-02T11:27:11.000Z
2022-02-04T02:49:34.000Z
lathermail/default_settings.py
reclosedev/lathermail
b017c7152761a824fedeef3e56840b2125478913
[ "MIT" ]
9
2015-10-30T16:27:41.000Z
2018-02-25T05:42:21.000Z
lathermail/default_settings.py
reclosedev/lathermail
b017c7152761a824fedeef3e56840b2125478913
[ "MIT" ]
4
2015-10-30T14:19:08.000Z
2021-06-03T15:07:49.000Z
import os DB_URI = "sqlite:///" + os.path.expanduser("~/.lathermail.db") DEBUG_MODE = False SMTP_HOST = "127.0.0.1" SMTP_PORT = 2525 API_HOST = "127.0.0.1" API_PORT = 5000 SQLITE_FAST_SAVE = True SQLALCHEMY_TRACK_MODIFICATIONS = False
19.75
62
0.725738
9e483b171acdac869edf8d96afb10195bbbd7ba4
2,210
py
Python
bso/server/main/apc/apc_detect.py
LaetitiaBracco/bso-publications
6c5883ff98aa1d4d747ec563c795ebe8f67a6a1b
[ "MIT" ]
null
null
null
bso/server/main/apc/apc_detect.py
LaetitiaBracco/bso-publications
6c5883ff98aa1d4d747ec563c795ebe8f67a6a1b
[ "MIT" ]
12
2021-05-25T07:00:53.000Z
2021-12-22T13:54:17.000Z
bso/server/main/apc/apc_detect.py
LaetitiaBracco/bso-publications
6c5883ff98aa1d4d747ec563c795ebe8f67a6a1b
[ "MIT" ]
1
2021-12-02T17:00:17.000Z
2021-12-02T17:00:17.000Z
from bso.server.main.apc.doaj_detect import detect_doaj from bso.server.main.apc.openapc_detect import detect_openapc # estimation des apc par publication def detect_apc(doi: str, journal_issns: str, publisher: str, published_date: str, dois_info: dict) -> dict: issns = [] if journal_issns and isinstance(jour...
40.925926
125
0.664706
9e486cb56dd9cbe2a19e389bf19ede9613f7670b
1,519
py
Python
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/__init__.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/__init__.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/__init__.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...
36.166667
75
0.77551
9e4873251910a6caeec7c37a6767f49062f0b9cf
92
py
Python
Code/tools/admin.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
2
2021-12-15T21:58:43.000Z
2021-12-15T22:17:26.000Z
Code/tools/admin.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
null
null
null
Code/tools/admin.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
1
2021-12-19T17:02:02.000Z
2021-12-19T17:02:02.000Z
from django.contrib import admin from tools.models import Tool admin.site.register(Tool)
13.142857
32
0.804348
9e487598c8460935f9d1eafe4f3bb56a8416c174
2,984
py
Python
katdal/chunkstore_dict.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
katdal/chunkstore_dict.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
katdal/chunkstore_dict.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # Copyright (c) 2017-2019, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the...
46.625
80
0.650804
9e48a60d174215082ec2735faab7d2e16b623bb2
10,011
py
Python
src/onevision/cv/core/add.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/cv/core/add.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/cv/core/add.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import annotations import cv2 import numpy as np import torch import torch.nn as nn import torchvision from multipledispatch import dispatch from torch import Tensor from onevision.cv.core.channels import is_channel_first from onevision.cv.core.c...
31.284375
85
0.58186
9e48c47ae28637acabdac82999765a3ce6608b22
3,524
py
Python
pytests/test_inputs.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
109
2022-02-05T02:38:35.000Z
2022-03-31T16:42:52.000Z
pytests/test_inputs.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
9
2022-02-08T22:13:56.000Z
2022-03-31T18:16:12.000Z
pytests/test_inputs.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
3
2022-02-14T23:45:03.000Z
2022-03-22T06:58:47.000Z
import datetime from unittest.mock import ANY from bytewax import AdvanceTo from bytewax.inputs import ( distribute, fully_ordered, single_batch, sorted_window, tumbling_epoch, yield_epochs, ) def test_distribute(): inp = ["a", "b", "c"] out1 = distribute(inp, 0, 2) assert list(...
27.968254
82
0.516175
9e48d6e75f751671af6478d040691e1f6ec8d133
2,202
py
Python
lore/callbacks.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
null
null
null
lore/callbacks.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
null
null
null
lore/callbacks.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
1
2018-03-13T05:57:49.000Z
2018-03-13T05:57:49.000Z
import logging from datetime import datetime import keras.callbacks from lore.util import timer logger = logging.getLogger(__name__) class ReloadBest(keras.callbacks.ModelCheckpoint): def __init__( self, filepath, monitor='val_loss', mode='auto', ): super(ReloadBest...
32.865672
80
0.537239
9e48dadf14da9ffd2b0706a1a70757b122715e25
1,664
py
Python
report/example.py
2010019970909/design_of_experiments
72030c2916f938637c86302b311eab25dd52cbe3
[ "MIT" ]
null
null
null
report/example.py
2010019970909/design_of_experiments
72030c2916f938637c86302b311eab25dd52cbe3
[ "MIT" ]
null
null
null
report/example.py
2010019970909/design_of_experiments
72030c2916f938637c86302b311eab25dd52cbe3
[ "MIT" ]
null
null
null
""" This is an example that shows how I program. The aim of this program is to wrap the print function in a class. """ class Print: def __init__(self, functor=print): """ Initialise the Print object Args: functor: function used to write or to print a string, by default the print function is used. Retu...
20.54321
100
0.626202
9e48f4757fb6335c29d17b6e43369756974c3fc5
6,366
py
Python
examples/example6-memory.py
konman2/PyRTL
dd7d219c59fb1ca0f79092eb9f69c84c45751e91
[ "BSD-3-Clause" ]
null
null
null
examples/example6-memory.py
konman2/PyRTL
dd7d219c59fb1ca0f79092eb9f69c84c45751e91
[ "BSD-3-Clause" ]
null
null
null
examples/example6-memory.py
konman2/PyRTL
dd7d219c59fb1ca0f79092eb9f69c84c45751e91
[ "BSD-3-Clause" ]
null
null
null
""" Example 6: Memories in PyRTL One important part of many circuits is the ability to have data in locations that are persistent over clock cycles. In previous examples, we have shown the register wirevector, which is great for storing a small amount of data for a single clock cycle. However, PyRTL al...
36.586207
82
0.716148
9e48f50d9100e93b9da440886b82e7e819fbe666
7,847
py
Python
alipay/aop/api/domain/AlipayAccountCashpoolRulegroupCreateModel.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/AlipayAccountCashpoolRulegroupCreateModel.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/AlipayAccountCashpoolRulegroupCreateModel.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 * from alipay.aop.api.domain.InstAllocationQuotaVO import InstAllocationQuotaVO class AlipayAccountCashpoolRulegroupCreateModel(object): def __init__(self): self._cash_pool_id = None self...
35.995413
109
0.626864
9e491ac31491040fbc01015d8b5c1a03d71d8961
377
py
Python
src/edeposit/amqp/rest/structures/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
1
2015-12-10T13:30:22.000Z
2015-12-10T13:30:22.000Z
src/edeposit/amqp/rest/structures/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
33
2015-10-06T16:02:13.000Z
2015-12-10T15:00:04.000Z
src/edeposit/amqp/rest/structures/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== from incomming import CacheTick from incomming import SaveLogin from incomming import RemoveLogin from incomming import StatusUpdate from outgoing import ...
26.928571
79
0.649867
9e49551f2d2a4916a9331df7bcdedc99cf8f2a27
1,866
py
Python
b2sdk/v1/session.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
b2sdk/v1/session.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
b2sdk/v1/session.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
###################################################################### # # File: b2sdk/v1/session.py # # Copyright 2021 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from b2sdk import _v2 as v2 from ...
37.32
107
0.631297
9e497efbeef3b8abaf74faea0967436c1b386050
120
py
Python
oscar/lib/python2.7/site-packages/_pytest/_version.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/_pytest/_version.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/_pytest/_version.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # file generated by setuptools_scm # don't change, don't track in version control version = '3.2.1'
24
47
0.7
9e499b73208065442a596f91c968ac186e5cb43d
4,215
py
Python
native/examples/spend-p2wpkh.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
native/examples/spend-p2wpkh.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
native/examples/spend-p2wpkh.py
pcsubirachs/ptpybtc
eb1571547c449fb5d7454a684140f67b871b7c04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2020 The python-bitcoinlib developers # # This file is part of python-bitcoinlib. # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of python-bitcoinlib, including this file, may be copied, modified, # ...
39.764151
142
0.776038
9e49a5e3ed4ccefd005cc37871249816ba7500bd
9,104
py
Python
src/rcmodel/tools.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
5
2021-07-05T13:48:59.000Z
2021-12-08T11:40:51.000Z
src/rcmodel/tools.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
null
null
null
src/rcmodel/tools.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
null
null
null
from .building import Building import torch from torch.utils.data import Dataset import pandas as pd import matplotlib.pyplot as plt class InputScaling(Building): """ Class to group methods for scaling input parameters. Model scaling - scales physical parameters to between 0-1 using min max. Physical ...
33.226277
159
0.626867
9e49a8336bd9b62df4b598e4daec0d58e3572dcb
559
py
Python
apscheduler/executors/debug.py
cychenyin/windmill
cc90126f8ba57531b28b1bc722927e8b66dc31b1
[ "MIT" ]
null
null
null
apscheduler/executors/debug.py
cychenyin/windmill
cc90126f8ba57531b28b1bc722927e8b66dc31b1
[ "MIT" ]
null
null
null
apscheduler/executors/debug.py
cychenyin/windmill
cc90126f8ba57531b28b1bc722927e8b66dc31b1
[ "MIT" ]
null
null
null
# coding: utf-8 import sys from apscheduler.executors.base import BaseExecutor, run_job class DebugExecutor(BaseExecutor): """ A special executor that executes the target callable directly instead of deferring it to a thread or process. Plugin alias: ``debug`` """ def _do_submit_job(self, job,...
25.409091
113
0.658318
9e49ac7cec5bc4a6b15c804ba7e8b04d766e92b2
556
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_MM.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_MM.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_MM.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. MM metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_MM = PhoneMetadata(id='MM', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2}', possible_length=(3,)), ...
61.777778
107
0.771583
9e4a037958fcf9657970c2ae3c0596a4042628f6
3,219
py
Python
aws_xray_sdk/core/models/dummy_entities.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
294
2017-10-10T19:01:04.000Z
2022-03-18T15:52:19.000Z
aws_xray_sdk/core/models/dummy_entities.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
285
2017-10-20T09:27:21.000Z
2022-03-29T15:33:45.000Z
aws_xray_sdk/core/models/dummy_entities.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
134
2017-10-11T13:55:17.000Z
2022-03-23T07:21:17.000Z
import os from .noop_traceid import NoOpTraceId from .traceid import TraceId from .segment import Segment from .subsegment import Subsegment class DummySegment(Segment): """ A dummy segment is created when ``xray_recorder`` decide to not sample the segment based on sampling rules. Adding data to a dum...
22.2
117
0.543336
9e4a18f4448a092fc9d199387eed38a52f9d76fb
437
py
Python
get-btc.py
griswaldbrooks/gdax-tools
d24743b0edc3f47ae79dc2b92cdbffc85b7e38c4
[ "MIT" ]
null
null
null
get-btc.py
griswaldbrooks/gdax-tools
d24743b0edc3f47ae79dc2b92cdbffc85b7e38c4
[ "MIT" ]
null
null
null
get-btc.py
griswaldbrooks/gdax-tools
d24743b0edc3f47ae79dc2b92cdbffc85b7e38c4
[ "MIT" ]
null
null
null
import gdax import os API_KEY = os.environ['GDAX_API_KEY'] API_SECRET = os.environ['GDAX_API_SECRET'] API_PASS = os.environ['GDAX_API_PASS'] def main(): ''' Gets the current bitcoin price in usd and prints to the screen. ''' client = gdax.AuthenticatedClient(API_KEY, API_SECRET, API_PASS) ticker ...
21.85
68
0.700229
9e4a7c334c6726ed4beae22a1cf63a1ed0346d15
2,994
py
Python
backend/tests/baserow/core/test_core_models.py
ericderace/baserow
7b35e81f75166d914d07ef4ad0c30c625b6bb396
[ "MIT" ]
null
null
null
backend/tests/baserow/core/test_core_models.py
ericderace/baserow
7b35e81f75166d914d07ef4ad0c30c625b6bb396
[ "MIT" ]
6
2021-04-08T22:03:06.000Z
2022-01-13T03:38:17.000Z
backend/tests/baserow/core/test_core_models.py
ericderace/baserow
7b35e81f75166d914d07ef4ad0c30c625b6bb396
[ "MIT" ]
null
null
null
import pytest from pytz import timezone from freezegun import freeze_time from datetime import datetime from baserow.core.models import GroupUser, Group from baserow.core.exceptions import ( UserNotInGroupError, UserInvalidGroupPermissionsError ) from baserow.contrib.database.models import Database @pytest.mark....
34.813953
83
0.737809
9e4a7f612e2319c5b10a8c73d221d8181a85b136
7,626
py
Python
scripts/06-analyzesynergy.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
scripts/06-analyzesynergy.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
scripts/06-analyzesynergy.py
OlafHaag/NeuroPsyResearchAnalysis
83d750310ee2467979d503d2fb4b6011ead9e9fc
[ "MIT" ]
null
null
null
# notebook source: 0-oh-analyze_synergy.ipynb # %% [markdown] # # Analysis of Synergy Indices # ## A frequentist approach. # # %% # Basic imports and setup. import sys import logging from pathlib import Path import matplotlib.pyplot as plt import numpy as np import pandas as pd import pingouin as pg import plotly....
36.663462
122
0.607265
9e4a91fab46f4d19c926d67e42decd1d00dee28f
388
py
Python
examples/protocols/hello_logo/app/components.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
examples/protocols/hello_logo/app/components.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
examples/protocols/hello_logo/app/components.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
from dataclasses import dataclass from viewdom import html from viewdom_wired import component @component() @dataclass class Logo: src: str alt: str = 'Logo' def __call__(self): return html('<img src={self.src} />') @component() @dataclass class Navbar: logo_src: str def __call__(self...
16.166667
64
0.654639
9e4b3cf6029f81e34c2c9617b21e07078da0f214
17,504
py
Python
trac/util/tests/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/util/tests/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/util/tests/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
38.47033
79
0.610832
9e4b5f8469d958361afd007d0f2324d799567856
619
py
Python
RaspberryPi/read_do.fast2.py
linsalrob/AtlasSensors
381b4c9aae91e0097b64d265eb3bdf6db6a6b189
[ "MIT" ]
null
null
null
RaspberryPi/read_do.fast2.py
linsalrob/AtlasSensors
381b4c9aae91e0097b64d265eb3bdf6db6a6b189
[ "MIT" ]
null
null
null
RaspberryPi/read_do.fast2.py
linsalrob/AtlasSensors
381b4c9aae91e0097b64d265eb3bdf6db6a6b189
[ "MIT" ]
null
null
null
import serial import sys import RPi.GPIO as GPIO import time import atlas import os GPIO.setmode(GPIO.BCM) conn = atlas.atlas() ser = conn.connect() ser.write("L1\r") # turn on LED i=0 while os.path.exists("read%i.tsv" %i): i+=1 while True: line = conn.read() ser.write("R\r") # take one reading ...
18.205882
98
0.578352
9e4b7dc6fff9d18db4920b3648be3322f8b05e02
862
py
Python
datawinners/main/management/commands/syncviews.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/main/management/commands/syncviews.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/main/management/commands/syncviews.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
import logging from django.core.management.base import BaseCommand import sys from datawinners.main.database import get_db_manager from datawinners.main.management.sync_changed_views import SyncOnlyChangedViews from datawinners.main.management.commands.utils import document_stores_to_process import traceback logger =...
35.916667
81
0.704176
9e4b91a632d3a1aa1f09c51852e3dccfa0bde4f9
5,419
py
Python
docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/operations/_operation_group_one_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.985612
133
0.682045
9e4bc08556925b6c75d2a2e1999b95a3721328c2
1,193
py
Python
tests/test_fixture.py
valq7711/orgapyzer
8f6d8c91e33bea41fc40ce2c1dced864e309506b
[ "MIT" ]
null
null
null
tests/test_fixture.py
valq7711/orgapyzer
8f6d8c91e33bea41fc40ce2c1dced864e309506b
[ "MIT" ]
null
null
null
tests/test_fixture.py
valq7711/orgapyzer
8f6d8c91e33bea41fc40ce2c1dced864e309506b
[ "MIT" ]
null
null
null
import pytest import types from omfitt import BaseFixture class Foo(BaseFixture): def __init__(self): pass def take_on(self, ctx): self._safe_local = types.SimpleNamespace(a='a') class Bar(BaseFixture): def __init__(self, foo): self.foo = foo class Baz(BaseFixture): def __...
20.929825
59
0.654652
9e4c386341449e8a2b42726fc1db8a947166f026
3,000
py
Python
2019/common/arcade.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/common/arcade.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/common/arcade.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict, List import intcode import robotics class Game(robotics.Painter): """Representation of a simple arcade game. Due to its similarities with the `robotics.Painter` class, we inherit from that instead of the base `intcode.Interpreter`. Attribu...
32.608696
71
0.557667
9e4c4444952c5aa83cfcff11f41c6611db82a482
2,435
py
Python
saf/ffm/nonlinear/solution.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/ffm/nonlinear/solution.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/ffm/nonlinear/solution.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
import numpy as np class Solution(object): """ Convenient wrapper around unknowns. Using this wrapper you can either address all unknowns at once using data field `data` or you can work with three different types of variables (velocity `u`, progress variable `lamda`, and detonation velocity `psi`)...
29.695122
78
0.586037
9e4c569eeb11e664a9c5bec1e55289d6255280c4
1,318
py
Python
python/sparkts/onsMethods/Melt.py
SteveBall/SML
ceab962a3e14c57fa08de6141ef3f4df7cc7ad79
[ "Apache-2.0" ]
3
2018-07-20T16:43:43.000Z
2019-08-16T02:01:49.000Z
python/sparkts/onsMethods/Melt.py
SteveBall/SML
ceab962a3e14c57fa08de6141ef3f4df7cc7ad79
[ "Apache-2.0" ]
1
2018-01-23T10:44:17.000Z
2018-01-23T10:44:17.000Z
python/sparkts/onsMethods/Melt.py
SteveBall/SML
ceab962a3e14c57fa08de6141ef3f4df7cc7ad79
[ "Apache-2.0" ]
2
2018-03-08T12:00:42.000Z
2018-03-14T14:29:05.000Z
from pyspark.sql import DataFrame class Melt: """ This class contains methods which perform a melt (the reverse of a pivot) on a DataFrame. """ def __init__(self, df = None): """ Initialise function to instantiate the Melt class. :param df: a DataFrame """ if ...
31.380952
106
0.619879
9e4c5de67440029e7e1534329719ef4cc15e1953
2,590
py
Python
kmclient/common/parser_builder.py
huaweicloudsdk/osc_kms
706db158df29c06c22c1158c379bb5ecb5f69f5d
[ "Apache-2.0" ]
3
2017-10-18T06:58:50.000Z
2021-06-09T11:08:12.000Z
kmclient/common/parser_builder.py
huaweicloudsdk/osc_kms
706db158df29c06c22c1158c379bb5ecb5f69f5d
[ "Apache-2.0" ]
11
2017-02-25T07:49:03.000Z
2017-07-14T09:04:50.000Z
kmclient/common/parser_builder.py
Huawei/OpenStackClient_KMS
706db158df29c06c22c1158c379bb5ecb5f69f5d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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...
35.972222
77
0.599228
9e4c65f71ba87e34343da1bff3e3ade36573bdb7
4,537
py
Python
demo2/grpc-services/grpc_interceptors/__init__.py
dinara92/python-grpc-demo
9a8776c39a938591cd0ee56173450b65c19bebba
[ "MIT" ]
1
2021-09-24T11:58:52.000Z
2021-09-24T11:58:52.000Z
demo2/grpc-services/grpc_interceptors/__init__.py
belajarqywok/python-grpc-demo
1e64fa6438c7f997edf9f82de8e855772d86fba8
[ "MIT" ]
null
null
null
demo2/grpc-services/grpc_interceptors/__init__.py
belajarqywok/python-grpc-demo
1e64fa6438c7f997edf9f82de8e855772d86fba8
[ "MIT" ]
null
null
null
import six import abc ############## Service-Side Interceptor Interfaces & Classes ################# class UnaryUnaryServerInterceptor(six.with_metaclass(abc.ABCMeta)): """Affords intercepting unary-unary RPCs on the service-side. This is an EXPERIMENTAL API and is subject to change without notice.""" @a...
34.371212
80
0.691646
9e4c6f5d969935394bbd598f81b43e83e3922b3f
1,438
py
Python
homeassistant/components/nextcloud/binary_sensor.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/nextcloud/binary_sensor.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
homeassistant/components/nextcloud/binary_sensor.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Summary binary data from Nextcoud.""" import logging from homeassistant.components.binary_sensor import BinarySensorDevice from . import BINARY_SENSORS, DOMAIN _LOGGER = logging.getLogger(__name__) def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the Nextcloud sensors.""" i...
27.132075
69
0.653686
9e4c7a82697d28bdab6b88c00b62cfa904ac96e3
1,312
py
Python
linked-list/reverseLinkedList.py
gusgonz/dsa-prep
c1e20c6eb31c3b7a70572a583de8bd04f635c772
[ "MIT" ]
null
null
null
linked-list/reverseLinkedList.py
gusgonz/dsa-prep
c1e20c6eb31c3b7a70572a583de8bd04f635c772
[ "MIT" ]
null
null
null
linked-list/reverseLinkedList.py
gusgonz/dsa-prep
c1e20c6eb31c3b7a70572a583de8bd04f635c772
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, value, next=None): self.value = value self.next = next def __str__(self): stringOutput = '' curr = self while curr: stringOutput += str(curr.value) curr = curr.next return stringOutput # Reverse a si...
19.014493
113
0.577744
9e4c99cbab2bbf25f7c4f85520f831d8bb7b633a
1,175
py
Python
arjuna-samples/arjex/test/pkg/config/check_config_02_proj_conf.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna-samples/arjex/test/pkg/config/check_config_02_proj_conf.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna-samples/arjex/test/pkg/config/check_config_02_proj_conf.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2020 Rahul Verma # Website: www.RahulVerma.net # 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...
34.558824
96
0.731915
9e4c9a1d1e2f48f552cf73f0656e9eb715ab462e
9,941
py
Python
readthedocs/organizations/views/private.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
2,092
2019-06-29T07:47:30.000Z
2022-03-31T14:54:59.000Z
readthedocs/organizations/views/private.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
2,389
2019-06-29T04:22:55.000Z
2022-03-31T22:57:49.000Z
readthedocs/organizations/views/private.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
1,185
2019-06-29T21:49:31.000Z
2022-03-30T09:57:15.000Z
"""Views that require login.""" # pylint: disable=too-many-ancestors from django.conf import settings from django.contrib import messages from django.urls import reverse_lazy from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from vanilla import CreateView, DeleteView, ListView, ...
34.637631
100
0.681722
9e4ccf2de73cbeef53c6d49d2af545060934c2dd
1,968
py
Python
docs/source/conf.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
null
null
null
docs/source/conf.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
6
2020-04-16T11:58:14.000Z
2022-03-30T11:46:23.000Z
docs/source/conf.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
35.781818
79
0.675305
9e4d14df4f5469f35a6efce0be4486578549f8cf
9,821
py
Python
oscar/lib/python2.7/site-packages/debug_toolbar/panels/templates/panel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/debug_toolbar/panels/templates/panel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/debug_toolbar/panels/templates/panel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, unicode_literals from collections import OrderedDict from contextlib import contextmanager from os.path import normpath from pprint import pformat from django import http from django.conf.urls import url from django.db.models.query import QuerySet, RawQuerySet from dj...
44.640909
101
0.588026
9e4d20f9772a1596a1b1cad9e9e3bd95126b9df2
806
py
Python
test_chime.py
paw-lu/chime
a160a528c4bf4e7e21b0619ff80f98cc0e5e7bf9
[ "MIT" ]
null
null
null
test_chime.py
paw-lu/chime
a160a528c4bf4e7e21b0619ff80f98cc0e5e7bf9
[ "MIT" ]
null
null
null
test_chime.py
paw-lu/chime
a160a528c4bf4e7e21b0619ff80f98cc0e5e7bf9
[ "MIT" ]
null
null
null
import subprocess import time import typing import pytest import chime def test_speed(): tic = time.time() chime.success() toc = time.time() assert toc - tic < .1 def test_no_warning(): with pytest.warns(None) as record: chime.success(sync=True) assert len(record) == 0 def test_n...
21.210526
89
0.638958