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
382d7230e02dc83a83ae72127e3c0e9e54161e30
15,977
py
Python
Lib/glyphsLib/casting.py
anthrotype/glyphsLib
ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93
[ "Apache-2.0" ]
null
null
null
Lib/glyphsLib/casting.py
anthrotype/glyphsLib
ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93
[ "Apache-2.0" ]
null
null
null
Lib/glyphsLib/casting.py
anthrotype/glyphsLib
ab98c4ae3981aec72ae70a053c3efb0ca2dd6b93
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
29.641929
83
0.624711
382d7df3af5a195383e47b4753210f0da4b5a143
28,433
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/util/ssh.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/util/ssh.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/util/ssh.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
34.97294
80
0.683959
382dbd056e5a018785bdbbc735dc83a5ba34b780
6,566
py
Python
PyFunceble/auto_save.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
PyFunceble/auto_save.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
PyFunceble/auto_save.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ███...
36.276243
88
0.514621
382dfc5ea4c6f7d1b1139557c6ae0afd0c3f831b
1,179
py
Python
docs/conf.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
docs/conf.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
docs/conf.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
import os import sys project = "PyVirtualDisplay" author = "ponty" copyright = "2011, ponty" __version__ = None exec(open(os.path.join("..", project.lower(), "about.py")).read()) release = __version__ sys.path.insert(0, os.path.abspath("..")) # Extension extensions = [ # -*-Extensions: -*- "sphinx.ext.auto...
22.245283
83
0.694656
382e1424c9cad7e5fee0a38426416c5c22b6b116
8,266
py
Python
qcdb/basislist.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
1
2019-02-20T20:18:02.000Z
2019-02-20T20:18:02.000Z
qcdb/basislist.py
vivacebelles/qcdb
5bbdcb5c833277647a36bb0a5982abb56bf29b20
[ "BSD-3-Clause" ]
null
null
null
qcdb/basislist.py
vivacebelles/qcdb
5bbdcb5c833277647a36bb0a5982abb56bf29b20
[ "BSD-3-Clause" ]
null
null
null
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
35.025424
117
0.629809
382e15f6fae4e0b784537b04874825f35dabadee
3,461
py
Python
tests/active_learning/test_ObjectDetectionOutput.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
1
2021-06-23T07:31:26.000Z
2021-06-23T07:31:26.000Z
tests/active_learning/test_ObjectDetectionOutput.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
null
null
null
tests/active_learning/test_ObjectDetectionOutput.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
null
null
null
import unittest from lightly.active_learning.utils.bounding_box import BoundingBox from lightly.active_learning.utils.object_detection_output import ObjectDetectionOutput class TestObjectDetectionOutput(unittest.TestCase): def setUp(self): self.dummy_data = [ { 'boxes': [ ...
29.084034
108
0.419532
382e34810defead15d205866b6b9a42a84819603
47
py
Python
summerizer/__init__.py
nathan-gilbert/mlnd-capstone-project
dc0deb5156dbbe5f06c3deedfc829cc444535b89
[ "MIT" ]
null
null
null
summerizer/__init__.py
nathan-gilbert/mlnd-capstone-project
dc0deb5156dbbe5f06c3deedfc829cc444535b89
[ "MIT" ]
2
2020-03-24T17:25:40.000Z
2020-03-31T05:30:32.000Z
summerizer/__init__.py
nathan-gilbert/mlnd-capstone-project
dc0deb5156dbbe5f06c3deedfc829cc444535b89
[ "MIT" ]
null
null
null
__title__ = 'summerizer' __version__ = '0.1.0'
15.666667
24
0.702128
382e7448e8262d2a613520e4354d61593cb7c0cb
130
py
Python
cisco_aci/datadog_checks/cisco_aci/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
cisco_aci/datadog_checks/cisco_aci/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
10
2018-02-27T19:06:07.000Z
2021-08-30T03:23:26.000Z
cisco_aci/datadog_checks/cisco_aci/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
6
2018-01-09T21:37:20.000Z
2020-05-26T09:28:09.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = "1.2.0"
21.666667
59
0.707692
382e9b8a8e1e89e5273c583757fb7efe372b2a52
7,431
py
Python
aiida_siesta/workflows/interstitial_barrier.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
aiida_siesta/workflows/interstitial_barrier.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
aiida_siesta/workflows/interstitial_barrier.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
from aiida import orm from aiida.engine import WorkChain, ToContext from aiida_siesta.workflows.neb_base import SiestaBaseNEBWorkChain from aiida_siesta.workflows.base import SiestaBaseWorkChain from aiida_siesta.utils.structures import clone_aiida_structure from aiida_siesta.utils.interpol import interpolate_two_struc...
36.072816
132
0.622124
382ed272ed31910d509f02622eafc4bdd4c2c2f1
1,463
py
Python
migrations/versions/bf112ab3474d_.py
wardrobe-auth/wardrobe
fd2f95e50c1d035a2a60e0fdc68685ce45b6e653
[ "MIT" ]
null
null
null
migrations/versions/bf112ab3474d_.py
wardrobe-auth/wardrobe
fd2f95e50c1d035a2a60e0fdc68685ce45b6e653
[ "MIT" ]
null
null
null
migrations/versions/bf112ab3474d_.py
wardrobe-auth/wardrobe
fd2f95e50c1d035a2a60e0fdc68685ce45b6e653
[ "MIT" ]
null
null
null
"""empty message Revision ID: bf112ab3474d Revises: ea2efc4a8908 Create Date: 2021-02-04 19:22:34.541441 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'bf112ab3474d' down_revision = 'ea2efc4a8908' branch_labels = None depends_on = None def upgrade(): # ...
33.25
72
0.686945
382f1473aa227daba248ded92e4d060049bb3dde
8,154
py
Python
habitat_baselines/config/default.py
Ram81/habitat-imitation-baselines
c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505
[ "MIT" ]
null
null
null
habitat_baselines/config/default.py
Ram81/habitat-imitation-baselines
c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505
[ "MIT" ]
null
null
null
habitat_baselines/config/default.py
Ram81/habitat-imitation-baselines
c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import List, Optional, Union import numpy as np from habitat import get_config as get_task_config from hab...
39.77561
79
0.617366
382f15eb5c06d6f769b027e5a90a605dc400de2a
268
py
Python
onadata/apps/restservice/app.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
87
2015-02-10T23:36:28.000Z
2022-01-31T00:51:10.000Z
onadata/apps/restservice/app.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
443
2015-04-28T18:50:25.000Z
2022-03-31T03:29:43.000Z
onadata/apps/restservice/app.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
122
2015-01-13T16:27:44.000Z
2022-01-24T09:35:56.000Z
# coding: utf-8 from django.apps import AppConfig class RestServiceConfig(AppConfig): name = "onadata.apps.restservice" verbose_name = "restservice" def ready(self): # Register RestService signals import onadata.apps.restservice.signals
22.333333
47
0.716418
382f5e77d9290e899087de9540f8275728cc5c8a
210,837
py
Python
modules/s3cfg.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/s3cfg.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/s3cfg.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Deployment Settings Copyright: 2009-2022 (c) Sahana Software Foundation 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 limitati...
35.046044
215
0.552332
382f932bb0de6cd960b0e99f694e1f236e453fad
2,077
py
Python
scripts/python/ep_dump_meso_rc.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/ep_dump_meso_rc.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/ep_dump_meso_rc.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python # *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* # ** Copyright UCAR (c) 1992 - 2015 # ** University Corporation for Atmospheric Research(UCAR) # ** National Center for Atmospheric Research(NCAR) # ** Research Applications Laboratory(RAL) # ** P.O.Box 3000, Boulder,...
37.089286
134
0.651902
382fb1f7b0b4758999bb1b71c96dd0dfb0364e1b
566
py
Python
test_least_factorial.py
lingnvnv/takehomeassignment
ef9b9885b1c59a0664b82955cc133096192c0428
[ "MIT" ]
null
null
null
test_least_factorial.py
lingnvnv/takehomeassignment
ef9b9885b1c59a0664b82955cc133096192c0428
[ "MIT" ]
null
null
null
test_least_factorial.py
lingnvnv/takehomeassignment
ef9b9885b1c59a0664b82955cc133096192c0428
[ "MIT" ]
null
null
null
import pytest from least_factorial import least_factorial class TestAssert(): @pytest.mark.parametrize("n, expected", [ (17, 24), (5, 6), (106, 120) ]) def test_least_factorial(self, n, expected): result = least_factorial(n) assert result == expected def test_e...
26.952381
72
0.623675
382fb3e0f752dca3fd18909e0d2895218ca922a8
1,733
py
Python
geoq/workflow/forms.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
471
2015-01-05T15:16:26.000Z
2022-03-28T05:06:11.000Z
geoq/workflow/forms.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
109
2015-01-06T20:00:58.000Z
2022-03-11T23:17:53.000Z
geoq/workflow/forms.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
100
2015-01-05T15:16:39.000Z
2021-12-01T12:13:13.000Z
# -*- coding: UTF-8 -*- """ Forms for Workflows. Copyright (c) 2009 Nicholas H.Tollervey (http://ntoll.org/contact) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code mu...
38.511111
80
0.804385
382fb7bb151771a63a584462f116a0d27f316e2c
25,639
py
Python
topo/tests/test_script.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/tests/test_script.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/tests/test_script.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
""" Contains tests to check a particular script's results or speed have not changed. Check README and buildbot to see how all these tests are run. """ import pickle, copy, __main__, timeit, os, os.path, socket, cPickle, inspect, traceback, tempfile, shutil from numpy.testing import assert_array_equal, assert_array_...
34.60054
215
0.631499
382fca86738c49e6896011895ed3af546ed60324
137,472
py
Python
Skimage_numpy/source/scipy/special/add_newdocs.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
5
2017-03-21T13:04:12.000Z
2021-07-28T12:38:02.000Z
PokerBots_2017/Johnny/scipy/special/add_newdocs.py
surgebiswas/poker
019112147a3e6c208c3846ef699fb6ec24a45c30
[ "MIT" ]
null
null
null
PokerBots_2017/Johnny/scipy/special/add_newdocs.py
surgebiswas/poker
019112147a3e6c208c3846ef699fb6ec24a45c30
[ "MIT" ]
null
null
null
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # generate_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
24.439467
194
0.594223
382fe402c5662bb875442dbe29bbee03329c680f
18,780
py
Python
kloppy/helpers.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
kloppy/helpers.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
kloppy/helpers.py
ThomasSeidl/kloppy
ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded
[ "BSD-3-Clause" ]
null
null
null
from typing import Callable, Dict, List, Optional, TypeVar, Union, Any from . import ( MetricaEPTSSerializer, DatafactorySerializer, MetricaEventsJsonSerializer, MetricaCsvTrackingSerializer, OptaSerializer, SportecEventSerializer, SkillCornerTrackingSerializer, SecondSpectrumSerializer...
31.938776
159
0.646006
3830021727dd6ddca70148a4daf2b9e724c27a40
8,870
py
Python
sxs/waveforms/transformations.py
dongzesun/sxs
74ac9576032ddc232ff48510ba20f0a9e7116861
[ "MIT" ]
8
2019-12-08T20:56:59.000Z
2021-11-01T09:01:39.000Z
sxs/waveforms/transformations.py
duetosymmetry/sxs
1617bf9d1eb06b1aa063db2b310d4e7c3d02e5e5
[ "MIT" ]
33
2019-12-06T17:40:00.000Z
2022-03-28T16:53:02.000Z
sxs/waveforms/transformations.py
duetosymmetry/sxs
1617bf9d1eb06b1aa063db2b310d4e7c3d02e5e5
[ "MIT" ]
10
2019-12-04T17:37:55.000Z
2022-03-14T07:22:43.000Z
"""Functions to enable BMS transformations of waveforms BMS transformations include the usual Poincaré group — time and space translations, rotations, and boosts — as well as "supertranslations", which are a more general form of translations. Essentially, a supertranslation is a direction-dependent time translation. ...
39.598214
117
0.647576
38304b9a214c371b89ded2bd712f257c354da6b7
5,589
py
Python
test/utest-offline/testlinkargs_test.py
elapfra/TestLink-API-Python-client
c52d2df12c55a16444c26121944711d8274b5a32
[ "Apache-2.0" ]
92
2015-05-25T12:21:50.000Z
2022-01-11T09:33:43.000Z
test/utest-offline/testlinkargs_test.py
ciracheta99/TestLink-API-Python-client
3d4f7ac211576decc7f027d97250ef66b88b7a2b
[ "Apache-2.0" ]
115
2015-01-04T17:10:57.000Z
2022-01-15T18:19:53.000Z
test/utest-offline/testlinkargs_test.py
ciracheta99/TestLink-API-Python-client
3d4f7ac211576decc7f027d97250ef66b88b7a2b
[ "Apache-2.0" ]
71
2015-06-25T06:12:49.000Z
2022-03-30T02:26:09.000Z
#! /usr/bin/python # -*- coding: UTF-8 -*- # Copyright 2013-2019 Luiko Czub, TestLink-API-Python-client developers # # 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.ap...
45.811475
80
0.636608
38304dd26a67a0ac9a4a81f649cfd7221f7d2f7c
9,913
py
Python
appengine/monorail/tracker/componentdetail.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/tracker/componentdetail.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/tracker/componentdetail.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 """A servlet for project and component owners to view and edit components.""" from __future__ i...
40.133603
80
0.721275
383058fde15149775e48d19478cccac94cda31d5
402
py
Python
violas_client/extypes/transaction/script.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/extypes/transaction/script.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/extypes/transaction/script.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from violas_client.lbrtypes.transaction.script import Script as LibraScript from violas_client.extypes.bytecode import get_code class Script(LibraScript): @staticmethod def gen_script(code_type, *args, ty_args=None, module_address=None): code = get_code(code_type, module_address) if ty_args is...
30.923077
75
0.721393
383065119dd781aa15584da24d1efcce6278073c
1,228
py
Python
appengine/chromium_rietveld/appengine_config.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/chromium_rietveld/appengine_config.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/chromium_rietveld/appengine_config.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
"""Configuration.""" import logging import os import re import sys # from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): # If reenabling appstats, do not forget to reeanble it in...
26.12766
75
0.697883
38307192e98a364638ef43aaad9f0de70714afbb
15,124
py
Python
keras/online_models/inception_v3.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
1
2018-03-11T18:53:00.000Z
2018-03-11T18:53:00.000Z
keras/online_models/inception_v3.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
null
null
null
keras/online_models/inception_v3.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Inception V3 model for Keras. Note that the input image format for this model is different than for the VGG16 and ResNet models (299x299 instead of 224x224), and that the input preprocessing function is also different (same as Xception). On ImageNet-2012, this model gets to a top-1 validati...
36.619855
152
0.627083
383083bc9cda9fd659e7a83e0c1a4f8322b9acba
1,262
py
Python
tests/transformer_dependent/test_tensor_size.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
tests/transformer_dependent/test_tensor_size.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
tests/transformer_dependent/test_tensor_size.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 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.apa...
30.047619
80
0.62599
38308b7ff99133c59c0bc4329aacd5b7b57af97d
137
py
Python
oscar/apps/wishlists/models.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/wishlists/models.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/wishlists/models.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .abstract_models import * class WishList(AbstractWishList): pass class Line(AbstractLine): pass
12.454545
33
0.678832
38308c75cb6dfd10798cfdfe8e08393a44d1ae84
4,229
py
Python
nylas/client/restful_model_collection.py
enterstudio/nylas-python
a722b0122b81c8a221a969ad23b9651fe5cc7c8b
[ "MIT" ]
null
null
null
nylas/client/restful_model_collection.py
enterstudio/nylas-python
a722b0122b81c8a221a969ad23b9651fe5cc7c8b
[ "MIT" ]
null
null
null
nylas/client/restful_model_collection.py
enterstudio/nylas-python
a722b0122b81c8a221a969ad23b9651fe5cc7c8b
[ "MIT" ]
null
null
null
from copy import copy CHUNK_SIZE = 50 class RestfulModelCollection(object): def __init__(self, cls, api, filter={}, offset=0, **filters): filters.update(filter) from nylas.client import APIClient if not isinstance(api, APIClient): raise Exception("Provided api ...
34.104839
86
0.567983
383091eb0e89f3e5be5d2b84763dced09816ea0c
2,246
py
Python
tests/dataverk/context/test_replacer.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
3
2019-09-29T20:48:46.000Z
2021-03-31T10:16:07.000Z
tests/dataverk/context/test_replacer.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
148
2019-02-08T12:30:58.000Z
2021-03-11T15:31:55.000Z
tests/dataverk/context/test_replacer.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
1
2020-11-18T14:10:05.000Z
2020-11-18T14:10:05.000Z
# -*- coding: utf-8 -*- # Import statements # ================= import unittest import json from dataverk.context.replacer import Replacer from tests.windows_safe_tempdir import WindowsSafeTempDirectory from dataverk.context.values_importer import get_secrets_importer from pathlib import Path # Common input parameters ...
31.633803
107
0.696794
38309f699757bd27e89c9d8c088de6cb6473c99c
4,659
py
Python
dragons/plugins/fake.py
TeamDragons/Dragons-Userbot
e40584f4dc898b785523adea4519ffb412dc92c4
[ "MIT" ]
3
2021-08-11T08:33:39.000Z
2022-01-17T00:09:11.000Z
dragons/plugins/fake.py
sophiashirashaki/Dragons-Userbot
2255c18428e488a267eaec1ec8c081fabcde167a
[ "MIT" ]
null
null
null
dragons/plugins/fake.py
sophiashirashaki/Dragons-Userbot
2255c18428e488a267eaec1ec8c081fabcde167a
[ "MIT" ]
6
2021-08-14T08:20:41.000Z
2022-03-20T02:31:45.000Z
import asyncio from random import choice, randint from telethon.errors import BadRequestError from telethon.tl.functions.channels import EditAdminRequest from telethon.tl.types import ChatAdminRights from dragons import drgub from ..core.managers import edit_delete, edit_or_reply from ..helpers.utils import get_user...
30.45098
131
0.559347
3830d4a72703755d4cad0d4931d40d5443a9cf7a
44,060
py
Python
qcodes/instrument_drivers/stanford_research/SR86x.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
qcodes/instrument_drivers/stanford_research/SR86x.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
230
2020-08-17T06:08:33.000Z
2022-03-29T12:06:58.000Z
qcodes/instrument_drivers/stanford_research/SR86x.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
import numpy as np import logging from typing import Sequence, Dict, Callable, Tuple, Optional, List, Any from qcodes import VisaInstrument from qcodes.instrument.channel import InstrumentChannel, ChannelList from qcodes.utils.validators import Numbers, Ints, Enum from qcodes.instrument.parameter import ArrayParameter...
40.274223
80
0.519632
3830f7291c2e4d1cceeea83bf43b7dfd81151aad
3,103
py
Python
src/apps/mesas/views.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/mesas/views.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/mesas/views.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# coding: utf-8 # app: mesa de atención # module: vistas # date: jueves, 14 de junio de 2018 - 09:06 # description: Vistas para la app de mesas de atención # pylint: disable=W0613,R0201,R0903 from django.contrib import messages from django.views.generic import TemplateView from django.views.generic...
31.343434
120
0.646793
38310a9952183d7b35258e1c4670fc3b531d0a52
10,086
py
Python
chapter13-op-overloading/vector_v8.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:02.000Z
2019-11-23T05:57:02.000Z
chapter13-op-overloading/vector_v8.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
null
null
null
chapter13-op-overloading/vector_v8.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:43.000Z
2019-11-23T05:57:43.000Z
""" A multi-dimensional ``Vector`` class, take 8: operator ``==`` A ``Vector`` is built from an iterable of numbers:: >>> Vector([3.1, 4.2]) Vector([3.1, 4.2]) >>> Vector((3, 4, 5)) Vector([3.0, 4.0, 5.0]) >>> Vector(range(10)) Vector([0.0, 1.0, 2.0, 3.0, 4.0, ...]) Tests with 2-dimensions (...
23.787736
80
0.52092
383142b056e96c1e68deafd3951b3db77f0d60b6
3,078
py
Python
test/unit/test_linguist.py
Justintime50/linguist
91faf0ab8dde6298c2a02a57b166ec920955a5ec
[ "MIT" ]
1
2021-02-26T21:44:22.000Z
2021-02-26T21:44:22.000Z
test/unit/test_linguist.py
Justintime50/linguist-breakdown
91faf0ab8dde6298c2a02a57b166ec920955a5ec
[ "MIT" ]
1
2020-01-29T23:03:18.000Z
2020-02-01T05:12:10.000Z
test/unit/test_linguist.py
Justintime50/linguist
91faf0ab8dde6298c2a02a57b166ec920955a5ec
[ "MIT" ]
null
null
null
import mock import pytest from linguist_breakdown import breakdown @mock.patch('linguist_breakdown.breakdown.GITHUB_TOKEN', None) def test_run_no_github_token(): message = 'GITHUB_TOKEN must be present to run linguist-breakdown.' with pytest.raises(ValueError) as error: breakdown.Linguist.run(None, No...
38
94
0.781676
3831b325c72cde2ae509b908b5d72ef1723afe38
28,769
py
Python
gluon/widget.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
1
2017-08-11T20:37:21.000Z
2017-08-11T20:37:21.000Z
gluon/widget.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
null
null
null
gluon/widget.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) The widget is called from web2py. """ import sys import cStringIO import time import thread import re impo...
32.324719
142
0.50982
3831c0d7cd3bc2f16b7046368c20d76e2adb95be
13,355
py
Python
amplify/backend/function/savesearch/src/index.py
theEpsilon/slr-tool
941d01dc108d6d2ceadced0a92ac63fa518ebab2
[ "Apache-2.0" ]
null
null
null
amplify/backend/function/savesearch/src/index.py
theEpsilon/slr-tool
941d01dc108d6d2ceadced0a92ac63fa518ebab2
[ "Apache-2.0" ]
null
null
null
amplify/backend/function/savesearch/src/index.py
theEpsilon/slr-tool
941d01dc108d6d2ceadced0a92ac63fa518ebab2
[ "Apache-2.0" ]
null
null
null
import json from datetime import date from pymongo import MongoClient from bson import ObjectId import springer_api import elsevier_api import ieee_api import os def handler(event, context): springer, elsevier, ieee = False, False, False for api in event["event"]["databases"]: if api['name'] == 'spri...
29.677778
536
0.538076
3831d8d9dc9542b564f956a51632486199dd1236
449
py
Python
Projects/5.Milestone_2_lists/utils/database.py
jkuatdsc/Python101
b724606c920fb0e563a6a6df34c97ec30b77aa98
[ "MIT" ]
2
2020-02-11T10:19:23.000Z
2020-02-18T08:25:51.000Z
Projects/5.Milestone_2_lists/utils/database.py
jkuatdsc/Python101
b724606c920fb0e563a6a6df34c97ec30b77aa98
[ "MIT" ]
null
null
null
Projects/5.Milestone_2_lists/utils/database.py
jkuatdsc/Python101
b724606c920fb0e563a6a6df34c97ec30b77aa98
[ "MIT" ]
1
2020-02-08T19:08:04.000Z
2020-02-08T19:08:04.000Z
""" Store and retrieve data from a list """ from typing import List, Any books: List[Any] = [] def add_book(name, author): books.append({'name': name, 'author': author, 'read': False}) def get_all_books(): return books def mark_as_read(name): for book in books: if book['name'] == name: ...
18.708333
65
0.616927
38320d6428006664d60dfd43435fccd47baaa3b7
2,822
py
Python
office365/graph/onedrive/site.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/graph/onedrive/site.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/graph/onedrive/site.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
from office365.graph.base_item import BaseItem from office365.graph.onedrive.columnDefinitionCollection import ColumnDefinitionCollection from office365.graph.onedrive.contentTypeCollection import ContentTypeCollection from office365.graph.onedrive.drive import Drive from office365.graph.onedrive.driveCollection import...
39.746479
92
0.660524
38326074dbec3d4591a6f34563ebb6c58b63d088
1,945
py
Python
zkSNARK/hashblock_zksnark/setup.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
5
2018-04-05T07:02:04.000Z
2018-07-10T09:39:03.000Z
zkSNARK/hashblock_zksnark/setup.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
89
2018-03-11T14:46:07.000Z
2018-09-07T14:50:42.000Z
zkSNARK/hashblock_zksnark/setup.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ------------------------------------------------------------------------------ # Copyright 2018 Frank V. Castellucci and Arthur Greef # # 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 o...
35.363636
80
0.645758
383262b905eac10d9ca5e21c7b1ea977ebe6dcd2
495
py
Python
backend/salary_calculator/tests/test_signals.py
szypkiwonsz/Work-Hours
e125569b7f0ca0d154000fb76aa358486e3d6f4d
[ "MIT" ]
null
null
null
backend/salary_calculator/tests/test_signals.py
szypkiwonsz/Work-Hours
e125569b7f0ca0d154000fb76aa358486e3d6f4d
[ "MIT" ]
null
null
null
backend/salary_calculator/tests/test_signals.py
szypkiwonsz/Work-Hours
e125569b7f0ca0d154000fb76aa358486e3d6f4d
[ "MIT" ]
null
null
null
import pytest from salary_calculator.models import Payout @pytest.mark.salary_calculator_signals class TestSignals: def test_update_payout_monthly_earnings(self, day): day.bonus = 140 day.save() payout = Payout.objects.get(month=day.month) assert payout.monthly_earnings == 140 ...
26.052632
55
0.707071
38328533b76cef46fd97bea38e42a6ea0ccf0587
492
py
Python
pre_request/filters/simple/default_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
86
2017-08-17T12:41:52.000Z
2022-02-24T12:17:47.000Z
pre_request/filters/simple/default_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
10
2020-03-30T03:24:46.000Z
2022-02-23T01:34:53.000Z
pre_request/filters/simple/default_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
7
2017-08-18T03:40:35.000Z
2020-05-19T04:09:10.000Z
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2020 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-04-10 13:44' from pre_request.filters.base import BaseFilter class DefaultFilter(BaseFilter): """ 填充默认值的过滤器 """ def __call__(self, *args, **kwargs): ...
23.428571
57
0.640244
3832af2c9f846dfd4681a61731b8ea319c7daef3
2,172
py
Python
metaci/db/management/commands/purge_old_results.py
Digital-Innovations-Group/MetaCI
1e643462eb822b57648b391dc07ab4e8977726c8
[ "BSD-3-Clause" ]
null
null
null
metaci/db/management/commands/purge_old_results.py
Digital-Innovations-Group/MetaCI
1e643462eb822b57648b391dc07ab4e8977726c8
[ "BSD-3-Clause" ]
504
2020-08-30T05:09:11.000Z
2021-03-24T05:40:01.000Z
metaci/db/management/commands/purge_old_results.py
Digital-Innovations-Group/MetaCI
1e643462eb822b57648b391dc07ab4e8977726c8
[ "BSD-3-Clause" ]
null
null
null
from datetime import timedelta from typing import Iterable from django.core.management.base import BaseCommand from django.db import transaction from django.utils import timezone from metaci.build.models import BuildFlow from metaci.testresults.models import TestResult, TestResultAsset class Command(BaseCommand): ...
36.813559
98
0.639503
3832b37f401700bab1c19d00c56052ca0176c4da
1,082
py
Python
1b.py
lkbm/advent2018
63c130b56ce37eb6e150df6004a79e94fde0f34e
[ "Unlicense" ]
null
null
null
1b.py
lkbm/advent2018
63c130b56ce37eb6e150df6004a79e94fde0f34e
[ "Unlicense" ]
null
null
null
1b.py
lkbm/advent2018
63c130b56ce37eb6e150df6004a79e94fde0f34e
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """ Advent of Code 2018 Puzzle #1 - 2018-12-01: Calibration of Time Turner - Part 2 # https://adventofcode.com/2018/day/1 Our time turner takes us back in 500-year intervals, but it needs calibration. It will tell us as it drifts from true. Input (via stdin): A series of intergers with leading...
21.215686
118
0.607209
3832bae5397dc7d9adf4194f26f268b5f30b6f7b
52,449
py
Python
gslib/tests/test_metrics.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
649
2015-01-08T01:50:15.000Z
2022-03-31T08:33:38.000Z
gslib/tests/test_metrics.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
798
2015-01-02T07:46:09.000Z
2022-03-31T20:37:19.000Z
gslib/tests/test_metrics.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
315
2015-01-02T10:26:53.000Z
2022-03-27T02:18:58.000Z
# -*- coding: utf-8 -*- # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
45.020601
87
0.669222
3832cfbd92a9fb5b14d019559575ed1b468de7ca
16,417
py
Python
package/tests/test_ansible_result.py
IngaAl/Ansible-Shell
73113c6317c96b1d5e4109e44b3029dccc828919
[ "Apache-2.0" ]
1
2016-12-29T14:14:39.000Z
2016-12-29T14:14:39.000Z
package/tests/test_ansible_result.py
IngaAl/Ansible-Shell
73113c6317c96b1d5e4109e44b3029dccc828919
[ "Apache-2.0" ]
85
2016-12-21T12:58:14.000Z
2022-03-29T21:53:30.000Z
package/tests/test_ansible_result.py
IngaAl/Ansible-Shell
73113c6317c96b1d5e4109e44b3029dccc828919
[ "Apache-2.0" ]
4
2016-12-09T22:41:13.000Z
2022-02-02T12:09:16.000Z
import json import os from unittest import TestCase from cloudshell.cm.ansible.domain.output.ansible_result import AnsibleResult from tests.mocks.file_system_service_mock import FileSystemServiceMock def get_error_for(result, ip): return next((h.error for h in result.host_results if h.ip == ip)) class TestAnsibl...
101.339506
5,206
0.589389
383313863b8266a9e7b3c9568c8b91e1b3243e9a
28,537
py
Python
volttrontesting/fixtures/volttron_platform_fixtures.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
volttrontesting/fixtures/volttron_platform_fixtures.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
4
2021-05-28T19:12:54.000Z
2022-02-18T03:07:40.000Z
volttrontesting/fixtures/volttron_platform_fixtures.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
3
2021-06-12T19:49:56.000Z
2022-02-12T20:14:38.000Z
import contextlib import os from pathlib import Path import shutil from typing import Optional from urllib.parse import urlparse import psutil import pytest from volttron.platform import is_rabbitmq_available, is_web_available from volttron.platform import update_platform_config from volttron.utils import get_random_...
40.942611
117
0.63451
383341bb6b2b24cf545dd633c868da1008a15ff4
21,808
py
Python
test/test_ask.py
andrewvaughan/ansible-message
73b45fd9a09ff69a4221c898b575b1b17701b936
[ "MIT" ]
8
2018-02-27T11:33:33.000Z
2020-07-11T23:59:33.000Z
test/test_ask.py
andrewvaughan/ansible-prompt
73b45fd9a09ff69a4221c898b575b1b17701b936
[ "MIT" ]
65
2017-11-01T20:38:30.000Z
2017-12-02T00:19:28.000Z
test/test_ask.py
andrewvaughan/ansible-message
73b45fd9a09ff69a4221c898b575b1b17701b936
[ "MIT" ]
1
2017-11-30T22:02:17.000Z
2017-11-30T22:02:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Andrew Vaughan <hello@andrewvaughan.io> # # 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 ...
31.560058
118
0.575248
383370e74de3004112db6754a73cf1a3c0e0bdfb
29,573
py
Python
api_app/api/routes/workspaces.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
api_app/api/routes/workspaces.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
api_app/api/routes/workspaces.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
import logging from fastapi import APIRouter, Depends, HTTPException, Header, status, Request, Response from jsonschema.exceptions import ValidationError from api.dependencies.database import get_repository from api.dependencies.workspaces import get_operation_by_id_from_path, get_workspace_by_id_from_path, get_depl...
75.441327
527
0.839685
383371baaabea8cc438b219c603e479863345b80
2,072
py
Python
meg_runtime/ui/mainpanel.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
null
null
null
meg_runtime/ui/mainpanel.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
5
2020-03-24T19:59:38.000Z
2020-04-22T03:44:43.000Z
meg_runtime/ui/mainpanel.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
2
2020-03-13T18:35:46.000Z
2020-04-11T20:19:20.000Z
import os.path from PyQt5 import QtWidgets from meg_runtime.app import App from meg_runtime.config import Config from meg_runtime.logger import Logger from meg_runtime.ui.basepanel import BasePanel from meg_runtime.ui.repopanel import RepoPanel from meg_runtime.git.manager import GitManager class MainPanel(BasePanel...
34.533333
119
0.623552
38339785dd50c017436fe81f8572e0bbdb1f9728
615
py
Python
tests/integration/test_gates.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
tests/integration/test_gates.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
tests/integration/test_gates.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 8 10:36:57 2020 @author: zevunderwood """ from shor.gates import CNOT, Hadamard,Ry from shor.layers import Qubits from shor.operations import Measure from shor.quantum import Circuit from shor.backends import QuantumSimulator, QSession import numpy...
24.6
52
0.707317
38340ac43f396d756020d4bc2c762abb2aa97077
3,962
py
Python
appengine/monorail/sitewide/userupdates.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/sitewide/userupdates.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/sitewide/userupdates.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 """Classes for user updates pages. AbstractUserUpdatesPage: Base class for all user updates ...
33.294118
78
0.748864
3834203ef60f08acf8ac2280e9c36d10ee7b1b16
8,754
py
Python
typhon/arts/xml/__init__.py
gerritholl/typhon
dbde147be12922ec730bd072dc4797c9da9a6d6b
[ "MIT" ]
null
null
null
typhon/arts/xml/__init__.py
gerritholl/typhon
dbde147be12922ec730bd072dc4797c9da9a6d6b
[ "MIT" ]
null
null
null
typhon/arts/xml/__init__.py
gerritholl/typhon
dbde147be12922ec730bd072dc4797c9da9a6d6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module provides functionality for reading and writing ARTS XML files. """ from __future__ import absolute_import import gzip import glob import itertools import os from os.path import isfile, join, basename, splitext, dirname from . import read from . import write __all__ = [ 'l...
31.602888
87
0.621887
38345968e4be506004068e282d2084f1c81c92e8
1,469
py
Python
Lib/site-packages/wx-3.0-msw/wx/lib/ticker_xrc.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
Lib/site-packages/wx-3.0-msw/wx/lib/ticker_xrc.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/lib/ticker_xrc.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
#---------------------------------------------------------------------- # Name: wx.lib.ticker_xrc # Purpose: A XRC handler for wx.lib.ticker # # Author: Chris Mellon # # Created: 17-May-2005 # RCS-ID: $Id$ # Copyright: (c) 2005 by Chris Mellon # Licence: wxWindows license #---------------...
29.38
71
0.498298
383476204a8f0b8242602e25ee955ad72bf7e7d2
8,496
py
Python
gtsrb-cnn-attack/utils/dataproc.py
MarinaKeyrouz/RP2-Attack
d1ed18c62fe0f05c2a380b8d3a7fac07bee5fe53
[ "MIT" ]
1
2021-02-08T13:13:38.000Z
2021-02-08T13:13:38.000Z
gtsrb-cnn-attack/utils/dataproc.py
MarinaKeyrouz/RP2-Attack
d1ed18c62fe0f05c2a380b8d3a7fac07bee5fe53
[ "MIT" ]
null
null
null
gtsrb-cnn-attack/utils/dataproc.py
MarinaKeyrouz/RP2-Attack
d1ed18c62fe0f05c2a380b8d3a7fac07bee5fe53
[ "MIT" ]
null
null
null
''' Module to process any image data. Includes functions to process the original training set data and others to load up data for training and evaluation. ''' import os import csv import random import numpy as np import cv2 from tensorflow.python.platform import flags FLAGS = flags.FLAGS def preprocess_yadav(image): ...
35.4
148
0.630885
383491bb59ecc6039eb2df684afca83fe9eb56d3
2,994
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_configuration.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 ...
46.061538
125
0.687375
383497f939c83c34cb8dc87fb528af6ac6ce81b9
718
py
Python
core/zero-rpc-server.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
1
2021-06-21T10:44:51.000Z
2021-06-21T10:44:51.000Z
core/zero-rpc-server.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
null
null
null
core/zero-rpc-server.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
1
2021-06-07T23:09:30.000Z
2021-06-07T23:09:30.000Z
import zerorpc import requests class StreamingRPC(object): # @zerorpc.stream def get_bot_response(self, bot_id, message): url = "http://127.0.0.1:8000/api/ask-question/" payload = "id={}&question={}".format(bot_id, message) print("payload ==> ", payload) headers = { ...
28.72
79
0.616992
3834a0df786e7d0379e0e1e467757a586136e630
1,802
py
Python
riak/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2020-08-08T02:01:01.000Z
2020-08-08T02:01:01.000Z
riak/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
riak/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from setuptools import setup from codecs import open from os import path HERE = path.abspath(path.dirname(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, "datadog_checks", "riak", "__about__....
26.895522
74
0.67758
3834b043f66cee285921f107f5fbf2d71e28c5a6
3,372
py
Python
rbac/common/role/propose_owner.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/common/role/propose_owner.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/common/role/propose_owner.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
1
2018-12-07T10:55:08.000Z
2018-12-07T10:55:08.000Z
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
36.258065
85
0.659253
3834b4defa03078aa6049b5aaf27872e19187597
15,645
py
Python
aglcheck/stringcomparison.py
gjlbeckers-uu/aglcheck
f8d5260b4d1cb8878115bd55c1ed5c970c7bc4d5
[ "BSD-3-Clause" ]
3
2017-05-22T13:02:58.000Z
2021-07-23T10:02:10.000Z
aglcheck/stringcomparison.py
gjlbeckers-uu/aglcheck
f8d5260b4d1cb8878115bd55c1ed5c970c7bc4d5
[ "BSD-3-Clause" ]
null
null
null
aglcheck/stringcomparison.py
gjlbeckers-uu/aglcheck
f8d5260b4d1cb8878115bd55c1ed5c970c7bc4d5
[ "BSD-3-Clause" ]
1
2018-02-23T19:06:35.000Z
2018-02-23T19:06:35.000Z
import numpy as np __all__ = ['commonstart', 'commonstartlength', 'commonstartduration', 'crosscorrelate', 'crosscorrelationmax', 'sharedlengthnsubstrings', 'longestsharedsubstrings', 'longestsharedsubstringduration', 'novellengthnsubstrings', 'samestart', 'samestart', 'shar...
37.42823
81
0.62691
3834b9ef94aec915d8e2f526bb58404fa10b7c83
15,222
py
Python
leo/commands/checkerCommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/commands/checkerCommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/commands/checkerCommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #@+leo-ver=5-thin #@+node:ekr.20161021090740.1: * @file ../commands/checkerCommands.py #@@first '''Commands that invoke external checkers''' #@+<< imports >> #@+node:ekr.20161021092038.1: ** << imports >> checkerCommands.py import leo.core.leoGlobals as g try: import flake8 except Exception:...
36.591346
93
0.547694
3834e27dba1bcb38021932db40e8b68aa5ea2baa
40,670
py
Python
appengine/findit/infra_api_clients/codereview/test/gerrit_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/infra_api_clients/codereview/test/gerrit_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/infra_api_clients/codereview/test/gerrit_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import datetime import json import logging import mock import textwrap from testing_utils import testing from infra_api_clients.codereview.gerrit import Ge...
35.303819
80
0.480379
38350dc31a957a18d1b2755c27323aee235e6bef
594
py
Python
setup.py
jkbjh/sacreddata
0ca2585a3a5d1160d734d371c608b4fbc28fc18b
[ "MIT" ]
null
null
null
setup.py
jkbjh/sacreddata
0ca2585a3a5d1160d734d371c608b4fbc28fc18b
[ "MIT" ]
null
null
null
setup.py
jkbjh/sacreddata
0ca2585a3a5d1160d734d371c608b4fbc28fc18b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup file for sacreddata. Use setup.cfg to configure your project. This file was generated with PyScaffold 3.1. PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: https://pyscaffold.org/ """ import sys from p...
23.76
75
0.703704
38351016177825802ff6d01a30f1ae784fe10b28
1,983
py
Python
lib/locators.py
dimes18/SeleniumTesting
6a46fe43b42240bd7a174e83d688c2edab698d15
[ "MIT" ]
null
null
null
lib/locators.py
dimes18/SeleniumTesting
6a46fe43b42240bd7a174e83d688c2edab698d15
[ "MIT" ]
null
null
null
lib/locators.py
dimes18/SeleniumTesting
6a46fe43b42240bd7a174e83d688c2edab698d15
[ "MIT" ]
null
null
null
""" locators.py: Implements class for page element locators __author__ = "Don Ariston Urbano" __credits__ = ["https://selenium-python.readthedocs.io/index.html"] """ from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys class MainPageLocators(object): """ Main page elements ...
39.66
85
0.571357
38352328931e0bf01c847bae696c62f7d0e28797
11,106
py
Python
tethysapp/earth_engine/gee/methods.py
kasitif/tethysapp-earth_engine
8d029d12cfd37f8ed45594c85dd49de041c9f180
[ "BSD-3-Clause" ]
null
null
null
tethysapp/earth_engine/gee/methods.py
kasitif/tethysapp-earth_engine
8d029d12cfd37f8ed45594c85dd49de041c9f180
[ "BSD-3-Clause" ]
null
null
null
tethysapp/earth_engine/gee/methods.py
kasitif/tethysapp-earth_engine
8d029d12cfd37f8ed45594c85dd49de041c9f180
[ "BSD-3-Clause" ]
null
null
null
import os import math import logging import ee from ee.ee_exception import EEException import geojson import pandas as pd from . import params as gee_account from . import cloud_mask as cm from .products import EE_PRODUCTS log = logging.getLogger(f'tethys.apps.{__name__}') if gee_account.service_account: try: ...
33.451807
265
0.65136
383579714bb29bac7a6287dd67b78aac7f2b587d
8,272
py
Python
onadata/apps/main/tests/test_form_exports.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
87
2015-02-10T23:36:28.000Z
2022-01-31T00:51:10.000Z
onadata/apps/main/tests/test_form_exports.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
443
2015-04-28T18:50:25.000Z
2022-03-31T03:29:43.000Z
onadata/apps/main/tests/test_form_exports.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
122
2015-01-13T16:27:44.000Z
2022-01-24T09:35:56.000Z
# coding: utf-8 import os import time import csv import tempfile from django.urls import reverse from django.core.files.storage import get_storage_class, FileSystemStorage from django.utils import timezone from xlrd import open_workbook from onadata.apps.viewer.models.export import Export from onadata.apps.viewer.vie...
40.950495
85
0.634188
383590f8c32c21f7e2e03a2fd40c60a0085fb9dd
1,790
py
Python
toontown/rpc/ToontownRPCDispatcher.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/rpc/ToontownRPCDispatcher.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/rpc/ToontownRPCDispatcher.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify.DirectNotifyGlobal import directNotify from toontown.toonbase import ToonPythonUtil as PythonUtil class ToontownRPCDispatcher: notify = directNotify.newCategory('ToontownRPCDispatcher') def __init__(self, handler): self.handler = handler def dispatch(self, request): ...
34.423077
75
0.594972
3835e7e6f5ed0525bc4145597a621e7349087e32
26,595
py
Python
stone/frontend/parser.py
mghatak/stone
bade48e44c88481a2386a6b00e7b49f6908d06e2
[ "MIT" ]
null
null
null
stone/frontend/parser.py
mghatak/stone
bade48e44c88481a2386a6b00e7b49f6908d06e2
[ "MIT" ]
null
null
null
stone/frontend/parser.py
mghatak/stone
bade48e44c88481a2386a6b00e7b49f6908d06e2
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals from collections import OrderedDict import logging import ply.yacc as yacc from .lexer import ( Lexer, NullToken, ) from .ast import ( AstAlias, AstAnnotationDef, AstAnnotationRef, AstAttrField, AstExample...
31.362028
94
0.499304
3835f8e2188416ca28e064b77c08d0dbe2b9b702
5,595
py
Python
tests/test_dht_crypto.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
11
2021-06-21T19:56:01.000Z
2021-12-22T09:06:09.000Z
tests/test_dht_crypto.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
tests/test_dht_crypto.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
import dataclasses import pickle import multiprocessing as mp import pytest import hivemind from hivemind.dht import get_dht_time from hivemind.dht.crypto import RSASignatureValidator from hivemind.dht.node import LOCALHOST from hivemind.dht.validation import DHTRecord from hivemind.utils.crypto import RSAPrivateKey ...
41.753731
99
0.725648
3836054a78a576ebfb9a36c10cf8e6cab2ecc400
1,229
py
Python
alipay/aop/api/response/AlipayBossFncAntbudgetReturnResponse.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/AlipayBossFncAntbudgetReturnResponse.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/AlipayBossFncAntbudgetReturnResponse.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.BizActionLogDTO import BizActionLogDTO class AlipayBossFncAntbudgetReturnResponse(AlipayResponse): def __init__(self): super(AlipayBossFncAntbudgetReturn...
30.725
109
0.70057
383606717bb24c042baf2eb2873e0b0d86c1537b
652
py
Python
aoc-2021/day-17/day_17.py
bsamseth/advent-of-code-2018
bdd3969e61fac3f1543c20983260aa9fda912e99
[ "MIT" ]
null
null
null
aoc-2021/day-17/day_17.py
bsamseth/advent-of-code-2018
bdd3969e61fac3f1543c20983260aa9fda912e99
[ "MIT" ]
null
null
null
aoc-2021/day-17/day_17.py
bsamseth/advent-of-code-2018
bdd3969e61fac3f1543c20983260aa9fda912e99
[ "MIT" ]
null
null
null
import re import numpy as np from aocd import data, submit x0, x1, y0, y1 = map(int, re.findall(r"-?\d+", data)) def simulate(u, v): x, y = 0, 0 while y > y0 and x <= x1: x += u y += v u -= np.sign(u) v -= 1 if x < x0 and u < 1: break if x0 <= x <...
18.111111
88
0.484663
383625c39d5b04a53adf03976f270f78240db95d
979
py
Python
Test28_DeblurGAN/deblur-gan/deblur_image.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test28_DeblurGAN/deblur-gan/deblur_image.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test28_DeblurGAN/deblur-gan/deblur_image.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
import numpy as np from PIL import Image import click from model import generator_model from utils import load_image, deprocess_image, preprocess_image def deblur(image_path): data = { 'A_paths': [image_path], 'A': np.array([preprocess_image(load_image(image_path))]) } x_test = data['A'] ...
26.459459
76
0.664964
3836368a08dca0761704e766402801647ce77b50
3,957
py
Python
predictionserver/servermixins/bankruptcydaemon.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
1
2020-12-04T17:59:19.000Z
2020-12-04T17:59:19.000Z
predictionserver/servermixins/bankruptcydaemon.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
null
null
null
predictionserver/servermixins/bankruptcydaemon.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
1
2021-03-05T05:03:36.000Z
2021-03-05T05:03:36.000Z
from predictionserver.servermixins.leaderboardserver import ( LeaderboardServer, LeaderboardGranularity ) from predictionserver.servermixins.scenarioserver import ScenarioServer from predictionserver.futureconventions.memoconventions import ( Memo, Activity, ActivityContext ) from predictionserver.servermixins....
41.652632
90
0.596411
383657bcb9445d34b03d5c4659a85b92817d186f
2,611
py
Python
tests/diseases/test_covid19.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
3
2020-05-10T23:52:41.000Z
2021-08-31T14:38:24.000Z
tests/diseases/test_covid19.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-09-27T03:26:51.000Z
2022-03-30T12:18:08.000Z
tests/diseases/test_covid19.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-10-01T04:07:39.000Z
2020-10-01T04:07:39.000Z
import pandas as pd import pytest from pandas.testing import assert_frame_equal from pytest import approx from pydemic.api.covid19 import epidemic_curve from pydemic.diseases import covid19 class TestCovid19: def test_covid19_reference_tables(self): for source in [None, "verity"]: assert isin...
31.083333
82
0.58445
383661ffd937ed6253655658d0d23515e4d7fa35
1,004
py
Python
zerver/management/commands/print_email_delivery_backlog.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2021-02-13T20:43:29.000Z
2021-02-13T20:43:29.000Z
zerver/management/commands/print_email_delivery_backlog.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:39.000Z
2022-02-11T03:40:19.000Z
zerver/management/commands/print_email_delivery_backlog.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2018-08-05T07:00:16.000Z
2018-08-05T07:00:16.000Z
#!/usr/bin/env python """ Shows backlog count of ScheduledJobs of type Email """ from __future__ import absolute_import from __future__ import print_function from typing import Any from django.conf import settings from django.core.management.base import BaseCommand from zerver.models import ScheduledJob from datet...
31.375
116
0.733068
383662fd97c1cb8436cac7e503d52d53ccbde2b0
20,463
py
Python
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_data_masking_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_data_masking_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_data_masking_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
46.191874
290
0.683966
383668fc80e90443183ba932314cf5c02ca885c2
4,942
py
Python
pysindy/feature_library/fourier_library.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
1
2020-10-28T13:12:53.000Z
2020-10-28T13:12:53.000Z
pysindy/feature_library/fourier_library.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
null
null
null
pysindy/feature_library/fourier_library.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
null
null
null
import numpy as np from sklearn.utils import check_array from sklearn.utils.validation import check_is_fitted from .feature_library import BaseFeatureLibrary class FourierLibrary(BaseFeatureLibrary): """ Generate a library with trigonometric functions. Parameters ---------- n_frequencies : int, ...
35.049645
85
0.585391
38367ddce714644c01b35726171a8bea1b846e31
2,059
py
Python
my_configs/atss_r50_fpn_1x_coco.py
Daniel-xsy/MMDet_VisDrone2021
668d10b61a4b99dda0163b67b093cad2e699ee3b
[ "Apache-2.0" ]
null
null
null
my_configs/atss_r50_fpn_1x_coco.py
Daniel-xsy/MMDet_VisDrone2021
668d10b61a4b99dda0163b67b093cad2e699ee3b
[ "Apache-2.0" ]
null
null
null
my_configs/atss_r50_fpn_1x_coco.py
Daniel-xsy/MMDet_VisDrone2021
668d10b61a4b99dda0163b67b093cad2e699ee3b
[ "Apache-2.0" ]
null
null
null
#_base_ = [ # '../_base_/datasets/coco_detection.py', # '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' #] _base_ = [ '../my_configs/_base_/datasets/det_visdrone.py', '../my_configs/_base_/schedules/schedule_1x.py', '../my_configs/_base_/default_runtime.py' ] model = dict( ...
29.414286
73
0.565323
3836833b2b750d1c1966cb39240674871353f8dd
6,423
py
Python
synapse/tools/dumprows.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tools/dumprows.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tools/dumprows.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ synapse - dumprows.py Created on 7/24/17. Dump all of the rows from a cortex storage instance. """ # Stdlib import os import sys import gzip import json import time import logging import argparse # Third Party Code # Custom Code import synapse import synapse.common as...
36.494318
109
0.620271
3836965ab4678852815d21c5b3b9cd4445d5d7b6
2,632
py
Python
env/Lib/site-packages/azure/servicemanagement/_http/__init__.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
env/Lib/site-packages/azure/servicemanagement/_http/__init__.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
env/Lib/site-packages/azure/servicemanagement/_http/__init__.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft. 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://w...
32.9
78
0.594225
3836db0456c0b2cbea930534a9dc09e9b57f23c0
1,423
py
Python
src/graph_transpiler/webdnn/backend/webgl/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webgl/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgl/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import List from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webgl.generator import WebGLDescriptorGenerator from webdnn.backend.webgl.kernel import Kernel from webdnn.backend.webgl.kernels.util import FragmentShaderPreamble, texture_shape, tex...
26.351852
104
0.693605
3836e5c728ee03f1fec817b7bc4b4b530d5be61b
43,270
py
Python
appengine/monorail/api/converters.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/api/converters.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/api/converters.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 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 """Functions that convert protorpc business objects into protoc objects. Monorail uses protorp...
37.691638
80
0.744997
38370251ee48e1304f09b3023bc610fb0198634a
5,611
py
Python
raven/contrib/django/client.py
danriti/raven-python
f9060ccf67d8b19a7d06946895b1039f65e67b53
[ "BSD-3-Clause" ]
null
null
null
raven/contrib/django/client.py
danriti/raven-python
f9060ccf67d8b19a7d06946895b1039f65e67b53
[ "BSD-3-Clause" ]
null
null
null
raven/contrib/django/client.py
danriti/raven-python
f9060ccf67d8b19a7d06946895b1039f65e67b53
[ "BSD-3-Clause" ]
null
null
null
""" raven.contrib.django.client ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import logging from django.conf import settings from django.core.exceptions import Suspicio...
34.006061
123
0.583853
3837085b62c7f97064ee5da5da1d880ade118927
1,056
py
Python
alipay/aop/api/response/AlipayCommerceIndustryServiceSubmitResponse.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/AlipayCommerceIndustryServiceSubmitResponse.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/AlipayCommerceIndustryServiceSubmitResponse.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 class AlipayCommerceIndustryServiceSubmitResponse(AlipayResponse): def __init__(self): super(AlipayCommerceIndustryServiceSubmitResponse, self).__init__() self._request_id ...
29.333333
116
0.705492
38370e9fec5e828117bd5c945a2fb51e9f17bb3b
910
py
Python
oscar/apps/partner/receivers.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
1
2015-11-07T12:37:50.000Z
2015-11-07T12:37:50.000Z
oscar/apps/partner/receivers.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/partner/receivers.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
from django.dispatch import receiver from django.db.models.signals import post_save from oscar.core.loading import get_classes StockRecord, StockAlert = get_classes('partner.models', ('StockRecord', 'StockAlert')) @receiver(post_save, sender=StockRecord) def update_stock_alerts(sender, instance, created, **kwargs): ...
33.703704
86
0.679121
38373238eb6ba0f2b884f512b8abdfbfcf3f8afa
16,169
py
Python
insomniac/action_runners/interact/action_handle_place.py
edukessen/Insomniac
44334aa5991c506282f5a5e6432d602774569eae
[ "MIT" ]
null
null
null
insomniac/action_runners/interact/action_handle_place.py
edukessen/Insomniac
44334aa5991c506282f5a5e6432d602774569eae
[ "MIT" ]
null
null
null
insomniac/action_runners/interact/action_handle_place.py
edukessen/Insomniac
44334aa5991c506282f5a5e6432d602774569eae
[ "MIT" ]
null
null
null
from functools import partial from insomniac.action_runners.actions_runners_manager import ActionState from insomniac.actions_impl import interact_with_user, ScrollEndDetector, open_likers, iterate_over_likers, \ is_private_account, InteractionStrategy, do_have_story, interact_with_feed from insomniac.actions_type...
48.701807
149
0.647412
38375d67e892a67b4ec10d32dd86334fa1e64008
10,293
py
Python
data/level/level248.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level248.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level248.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 248, 'move_count': 20, 'board_info': { (0, 0): { 'prev': (0, -1), 'next': (0, 1), 'base': (66, 1), 'fall_point': (0, -1) }, (0, 1): { 'prev': (0, -1), 'next': (0, 1), 'base': (...
22.975446
46
0.192655
383766aac63c1bb783c2d8b676098834ad554aff
2,968
py
Python
cloudmesh/experiment/group_usage.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh/experiment/group_usage.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh/experiment/group_usage.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
''' supporting functions about database side group management ''' from cloudmesh.cm_mongo import cm_mongo from cloudmesh.experiment.group import GroupManagement from cloudmesh.cm_mongo import cm_mongo def add_vm_to_group_while_creating(username, groupname, vmname): ''' add a vm to a group while the vm is bein...
35.333333
94
0.645216
383766f0e4056db949a0918612eaa79fe73f13e4
709
py
Python
custom_components/securitas_direct/securitas_direct_new_api/domains.py
Noltari/securitas-direct-new-api
4be4ac7c095f79706db8ba9a9460e2686417bca0
[ "Apache-2.0" ]
null
null
null
custom_components/securitas_direct/securitas_direct_new_api/domains.py
Noltari/securitas-direct-new-api
4be4ac7c095f79706db8ba9a9460e2686417bca0
[ "Apache-2.0" ]
null
null
null
custom_components/securitas_direct/securitas_direct_new_api/domains.py
Noltari/securitas-direct-new-api
4be4ac7c095f79706db8ba9a9460e2686417bca0
[ "Apache-2.0" ]
null
null
null
"""ApiDomain dictionary.""" class ApiDomains: """Define the domain list for each language.""" def __init__(self): """Define default constructor.""" self.domains = { "default": "https://customers.securitasdirect.{language}/owa-api/graphql", "it": "https://customers.veri...
33.761905
86
0.609309
383774e81c5b36e9f020e2d79242f0f0dd3fc295
35
py
Python
ibis/backends/omniscidb/tests/__init__.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
2
2020-11-16T22:42:25.000Z
2021-08-02T19:04:07.000Z
ibis/backends/omniscidb/tests/__init__.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
43
2020-12-21T15:35:50.000Z
2022-01-18T21:40:15.000Z
ibis/backends/omniscidb/tests/__init__.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
6
2020-11-27T22:12:14.000Z
2022-01-17T23:15:33.000Z
"""OmniSciDB unit tests module."""
17.5
34
0.685714
383777ab745a6b16784611309a37780070416a27
2,607
py
Python
moto/kinesisvideo/responses.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
moto/kinesisvideo/responses.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
moto/kinesisvideo/responses.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from moto.core.responses import BaseResponse from .models import kinesisvideo_backends import json class KinesisVideoResponse(BaseResponse): SERVICE_NAME = "kinesisvideo" @property def kinesisvideo_backend(self): return kinesisvideo_backends[self.region] ...
37.242857
86
0.681243
3837bbd22a9078e5a6948d50cf672c7962f37ab2
2,203
py
Python
01 Basics/003 - Some operation/003 - Some operation.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
01 Basics/003 - Some operation/003 - Some operation.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
01 Basics/003 - Some operation/003 - Some operation.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- # # Copyright 2018 Mattia Benedetti # All rights reserved. # # Author: Mattia Benedetti """ 9.9. operator — Standard operators as functions https://docs.python.org/2/library/operator.html + somma - sottrzione * moltiplicazione / divisione // double division , Parte in...
24.477778
73
0.639582
3837bcd3b5895985019a6e468086d05b56554342
50,697
py
Python
cinder/volume/drivers/dell_emc/xtremio.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell_emc/xtremio.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell_emc/xtremio.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 - 2014 EMC Corporation. # 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 # # Unle...
41.520885
79
0.576977
3837c9c37a02ca0ef6e995d20de3354fa8bb9af9
2,543
py
Python
savu/plugins/reconstructions/scikitimage_filter_back_projection_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/reconstructions/scikitimage_filter_back_projection_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/reconstructions/scikitimage_filter_back_projection_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
from savu.plugins.plugin_tools import PluginTools class ScikitimageFilterBackProjectionTools(PluginTools): """A Plugin to reconstruct an image by filter back projection using the inverse radon transform from scikit-image. """ def define_parameters(self): """ output_size: visibi...
33.025974
75
0.541486
3837e4f874bdabe515d9a5e80ec3a2abb434843f
50,110
py
Python
hypixel/pit.py
HypixelBot/bot
672e17c5bbd37b0e7e54581b679051b7e59575d2
[ "MIT" ]
10
2020-06-06T13:57:46.000Z
2021-11-08T09:27:42.000Z
hypixel/pit.py
HypixelBot/Bot
672e17c5bbd37b0e7e54581b679051b7e59575d2
[ "MIT" ]
7
2020-06-06T14:04:05.000Z
2020-07-05T04:05:37.000Z
hypixel/pit.py
HypixelBot/bot
672e17c5bbd37b0e7e54581b679051b7e59575d2
[ "MIT" ]
14
2020-06-09T17:12:52.000Z
2021-07-21T23:24:30.000Z
import gzip import math import random import datetime import re import zlib from ast import literal_eval from collections import Counter from uuid import UUID import cogs.utils.hypixelcommands as Hypixel from cogs.utils import jnbt from cogs.utils.checks import * from cogs.utils.dataIO import dataIO from hypixel.util...
68.176871
247
0.565396
3837e7d5ea882fccd2e2b87446a2a8f5d168a4c2
324
py
Python
pyslip/examples/appstaticbox.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
pyslip/examples/appstaticbox.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
pyslip/examples/appstaticbox.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
""" Overide the wxpython StaticBox to provide our own style. """ import wx class AppStaticBox(wx.StaticBox): def __init__(self, parent, label, *args, **kwargs): if 'style' not in kwargs: kwargs['style'] = wx.NO_BORDER wx.StaticBox.__init__(self, parent, wx.ID_ANY, label, *args, **kwar...
24.923077
78
0.651235
3837fc59bfb9127925ac6534a820c607d27a4322
443
py
Python
unittest_practice/sqrt.py
AndrewSLowe/DS-Unit-3-Sprint-1-Software-Engineering
f62ae245c30cf8e054c1e54e9189eed81f775721
[ "MIT" ]
null
null
null
unittest_practice/sqrt.py
AndrewSLowe/DS-Unit-3-Sprint-1-Software-Engineering
f62ae245c30cf8e054c1e54e9189eed81f775721
[ "MIT" ]
null
null
null
unittest_practice/sqrt.py
AndrewSLowe/DS-Unit-3-Sprint-1-Software-Engineering
f62ae245c30cf8e054c1e54e9189eed81f775721
[ "MIT" ]
null
null
null
"""Bunch of sqrt functions""" def lazy_sqrt(x): """simplest way to find square root""" return x**0.5 def builtin_sqrt(x): """Square root with math library""" from math import sqrt return sqrt(x) def newton_sqrt(x): """Square root the way your calculator finds it""" val = x while True:...
21.095238
54
0.568849
3837feb8ac7fb038354ca73ec47d96df0b496756
2,487
py
Python
tape_mounts/robot_mount_logs/src/StateMachine.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
tape_mounts/robot_mount_logs/src/StateMachine.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
tape_mounts/robot_mount_logs/src/StateMachine.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
__author__ = 'maesker' import sys class FiniteStateMachine: def __init__(self): self.transitions={} self.state = None self.defaultErrorState = 0 self.last_event_ts = 0 self.subsequent_events = [] def add_transition(self, event, src, dest, callback, rules={}): if...
36.573529
116
0.517893
38380c93a693b7c254763f8c48ff913b6b53b8de
13,957
py
Python
handlers/reports/return_request_menu.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/reports/return_request_menu.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/reports/return_request_menu.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from aiogram.dispatcher import FSMContext from aiogram.types import Message from aiogram.types import CallbackQuery from data import sticker from data import all_emoji from keyboards import create_kb_coustom_main_menu from keyboards import create_kb_change_sum_finished_req from keyboards import cb_change_finished_req ...
29.569915
134
0.664398
383845c681a292feb68a473ec8531da6703fa859
14,006
py
Python
ooni/deck.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
ooni/deck.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
ooni/deck.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from ooni.backend_client import CollectorClient, BouncerClient from ooni.backend_client import WebConnectivityClient from ooni.nettest import NetTestLoader from ooni.settings import config from ooni.utils import log, onion from ooni import errors as e from twisted.python.filepath import FilePa...
38.059783
103
0.579466
38384626a37ff4dd78973ce1e3d0fdbf3b5757f6
4,811
py
Python
python-client/swagger_client/models/record.py
gabisurita/kinto-codegen-tutorial
b5921ec603df031f9ff25683b7a3fbed5af79094
[ "MIT" ]
2
2017-03-02T13:12:24.000Z
2017-10-22T10:31:09.000Z
python-client/swagger_client/models/record.py
gabisurita/kinto-codegen-tutorial
b5921ec603df031f9ff25683b7a3fbed5af79094
[ "MIT" ]
null
null
null
python-client/swagger_client/models/record.py
gabisurita/kinto-codegen-tutorial
b5921ec603df031f9ff25683b7a3fbed5af79094
[ "MIT" ]
null
null
null
# coding: utf-8 """ kinto Kinto is a minimalist JSON storage service with synchronisation and sharing abilities. It is meant to be easy to use and easy to self-host. **Limitations of this OpenAPI specification:** 1. Validation on OR clauses is not supported (e.g. provide `data` or `permissions` in patch ...
31.444444
938
0.594055