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
930c7d5da6aad82162312fb18df907e2f1e34b2f
7,561
py
Python
entity.py
teploff/3dfractals
2c9881859ffe21638fdca21d43b4e34452da8637
[ "MIT" ]
null
null
null
entity.py
teploff/3dfractals
2c9881859ffe21638fdca21d43b4e34452da8637
[ "MIT" ]
null
null
null
entity.py
teploff/3dfractals
2c9881859ffe21638fdca21d43b4e34452da8637
[ "MIT" ]
null
null
null
import math from typing import Optional, Tuple import uuid class Point: def __init__(self, x, y, z): self.x = x self.y = y self.z = z def __eq__(self, other): if isinstance(other, Point): return self.x == other.x and self.y == other.y and self.z == other.z ...
35.665094
149
0.616188
930c815c06b211b085cadaea8094ce27fc5be3ed
136
py
Python
srfnef/tools/auto_deps_graph/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/tools/auto_deps_graph/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/tools/auto_deps_graph/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: Minghao Guo @contact: mh.guo0111@gmail.com @software: nef @file: __init__.py @date: 4/26/2019 @desc: '''
13.6
30
0.676471
930caece16b9b1af1bd07ed3d124a698a5077177
10,291
py
Python
lib/utils/training_stats.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
2
2019-10-08T11:33:20.000Z
2021-05-21T10:10:27.000Z
lib/utils/training_stats.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
null
null
null
lib/utils/training_stats.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
2
2019-10-08T11:33:22.000Z
2022-02-20T16:07:37.000Z
#!/usr/bin/env python2 # Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
41.495968
152
0.607327
930cafcdf2373bd89ce67e8710be90ff9dda74d7
943
py
Python
var/spack/repos/builtin/packages/r-caracas/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-caracas/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/r-caracas/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RCaracas(RPackage): """Computer algebra via the 'SymPy' library (<https://www.sympy.org/>)...
39.291667
95
0.703075
930cd02a813e9415acfcb000ff9ffd041f0875df
13,460
py
Python
python/amici/parameter_mapping.py
kristianmeyerr/AMICI
15f14c24b781daf5ceb3606d79edbbf57155a043
[ "CC0-1.0" ]
null
null
null
python/amici/parameter_mapping.py
kristianmeyerr/AMICI
15f14c24b781daf5ceb3606d79edbbf57155a043
[ "CC0-1.0" ]
null
null
null
python/amici/parameter_mapping.py
kristianmeyerr/AMICI
15f14c24b781daf5ceb3606d79edbbf57155a043
[ "CC0-1.0" ]
null
null
null
""" Parameter mapping ----------------- When performing parameter inference, often parameters need to be mapped from simulation to estimation parameters, and parameters can differ between conditions. This can be handled using the `ParameterMapping`. Note ~~~~ While the parameter mapping can be used directly with AMI...
34.870466
79
0.66367
930cf19cb27536e057c5e3f95706587546677b1a
17,253
py
Python
pywinauto/xml_helpers.py
nimuston/pywinauto
3f61f7dea13b2e5b1282d65d2ae8247aae00b06f
[ "BSD-3-Clause" ]
1
2021-01-31T08:10:34.000Z
2021-01-31T08:10:34.000Z
pywinauto/xml_helpers.py
nimuston/pywinauto
3f61f7dea13b2e5b1282d65d2ae8247aae00b06f
[ "BSD-3-Clause" ]
null
null
null
pywinauto/xml_helpers.py
nimuston/pywinauto
3f61f7dea13b2e5b1282d65d2ae8247aae00b06f
[ "BSD-3-Clause" ]
null
null
null
# GUI Application automation and testing library # Copyright (C) 2006-2016 Mark Mc Mahon and Contributors # https://github.com/pywinauto/pywinauto/graphs/contributors # http://pywinauto.github.io/docs/credits.html # All rights reserved. # # Redistribution and use in source and binary forms, with or without # mod...
34.57515
92
0.580827
930d089ea7e626d206703a03d0cb26d397006f99
4,389
py
Python
IMLearn/learners/classifiers/gaussian_naive_bayes.py
Eyal708/IML.HUJI
aa51187d3b45a579c4829acd4c998853968de5b2
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/gaussian_naive_bayes.py
Eyal708/IML.HUJI
aa51187d3b45a579c4829acd4c998853968de5b2
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/gaussian_naive_bayes.py
Eyal708/IML.HUJI
aa51187d3b45a579c4829acd4c998853968de5b2
[ "MIT" ]
null
null
null
from typing import NoReturn from ...base import BaseEstimator import numpy as np import math class GaussianNaiveBayes(BaseEstimator): """ Gaussian Naive-Bayes classifier """ def __init__(self): """ Instantiate a Gaussian Naive Bayes classifier Attributes ---------- ...
35.395161
118
0.574618
930d0b2ec916af3207795289dcd1b5ef88413a6c
3,281
py
Python
search/indexer.py
tea2code/recipe_manager
042741c81f6c2b5c28fabebb339f4d9a0680fd53
[ "MIT" ]
6
2015-03-10T22:34:45.000Z
2020-11-21T02:29:27.000Z
search/indexer.py
tea2code/recipe_manager
042741c81f6c2b5c28fabebb339f4d9a0680fd53
[ "MIT" ]
null
null
null
search/indexer.py
tea2code/recipe_manager
042741c81f6c2b5c28fabebb339f4d9a0680fd53
[ "MIT" ]
1
2020-11-21T02:35:37.000Z
2020-11-21T02:35:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from whoosh import fields from whoosh import index import os import shutil class Indexer: """ Class handles creating the search index. Member: index_path -- The index path (string). _index -- The index object (whoosh.index). """ def __init__(self, ...
35.663043
76
0.501067
930d1de20838003fe9e9a1f8a1176afa2bbe55c6
6,716
py
Python
runs/rwip70/Pendulum70.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
runs/rwip70/Pendulum70.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
runs/rwip70/Pendulum70.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
""" Title: pendulum_pygame Author: [jadenhensley](https://github.com/jadenhensley) Last modified: 2021/10/18 Description: Pendulum project, built using pygame and math modules. Title: wheelPole Author: [aimetz](https://github.com/aimetz) Last modified: 2021/04/20 Title: gym/gym/envs/classic_control/pendulum.py Author...
33.748744
131
0.592466
930d25669cf36768cc49bdef4535af4cedd27d08
5,262
py
Python
training/train.py
ylfzr/ADGM
a29907ca75f9536f6632004ace17e959a66c542d
[ "MIT" ]
117
2015-12-16T17:51:32.000Z
2021-11-20T05:10:22.000Z
training/train.py
ylfzr/ADGM
a29907ca75f9536f6632004ace17e959a66c542d
[ "MIT" ]
6
2016-03-14T02:25:18.000Z
2019-11-10T19:14:08.000Z
training/train.py
ylfzr/ADGM
a29907ca75f9536f6632004ace17e959a66c542d
[ "MIT" ]
39
2015-12-17T02:00:37.000Z
2021-07-17T00:01:26.000Z
import numpy as np from utils import env_paths as paths from base import Train import time class TrainModel(Train): def __init__(self, model, output_freq=1, pickle_f_custom_freq=None, f_custom_eval=None): super(TrainModel, self).__init__(model, pickle_f_custom_freq, f_custom_eval) ...
49.17757
111
0.558723
930d374aba81884b58d6b94d9755ead448ae0a1b
60,890
py
Python
wienerschnitzelgemeinschaft/src/Dmytro/src/models.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Dmytro/src/models.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Dmytro/src/models.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
from collections import OrderedDict import torch from torch.utils.data import DataLoader import torch.nn as nn import torch.nn.functional as F import pretrainedmodels import pretrainedmodels.models.senet import config from pytorchcv.model_provider import get_model as ptcv_get_model class ClassificationModel(nn.Modu...
46.024187
125
0.712104
930d4c846d7030649a34b50ff46a8ce3fd912fb0
963
py
Python
ems/types/errors.py
ceramyq/python-ems
dcaf41a55ed326d139ead26fee64a49d08214654
[ "Apache-2.0" ]
null
null
null
ems/types/errors.py
ceramyq/python-ems
dcaf41a55ed326d139ead26fee64a49d08214654
[ "Apache-2.0" ]
null
null
null
ems/types/errors.py
ceramyq/python-ems
dcaf41a55ed326d139ead26fee64a49d08214654
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- # # Copyright 2016 Opsview 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 la...
26.75
74
0.637591
930d504bc3492b3d04de02e2c974b3103d54bd3c
13,838
py
Python
whatsappCli/ui/curses_ui.py
yausername/whatsapp-cli
96346bd4d1c91265035863ae81f62a13c0d271e2
[ "MIT" ]
29
2018-01-10T20:43:07.000Z
2021-04-15T14:42:21.000Z
whatsappCli/ui/curses_ui.py
yausername/whatsapp-cli
96346bd4d1c91265035863ae81f62a13c0d271e2
[ "MIT" ]
11
2018-03-25T19:17:14.000Z
2019-10-03T07:57:03.000Z
whatsappCli/ui/curses_ui.py
yausername/whatsapp-cli
96346bd4d1c91265035863ae81f62a13c0d271e2
[ "MIT" ]
8
2018-09-06T16:11:06.000Z
2022-03-20T08:46:11.000Z
import curses import locale import os import string import sys import time import threading from ui import UI #from whatsappCli import feed from whatsappCli.feed import contacts locale.setlocale(locale.LC_ALL,'') class CursesUI(UI): def __init__(self, feeder): self.feeder = feeder self.windows...
40.344023
157
0.527894
930d69e38778f30a7b87bd6b27fddc6041beca38
1,126
py
Python
packages/director-sdk/python/simcore_director_sdk/models/__init__.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
packages/director-sdk/python/simcore_director_sdk/models/__init__.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
packages/director-sdk/python/simcore_director_sdk/models/__init__.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
# coding: utf-8 # flake8: noqa """ Director API This is the oSparc's director API # noqa: E501 OpenAPI spec version: 0.1.0 Contact: support@simcore.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import # import models into model package from simcore_direc...
40.214286
96
0.865009
930db3ac1f843de8f628ca1588dbc2311f6a9366
10,113
py
Python
nevergrad/optimization/multiobjective/nsga2.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
nevergrad/optimization/multiobjective/nsga2.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
nevergrad/optimization/multiobjective/nsga2.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np import nevergrad.common.typing as tp from nevergrad.parametrization import parameter as p class Crow...
43.403433
107
0.585978
930dc4acef95fd7ab57508496acf4d5946b6fd35
3,654
py
Python
__init__.py
smartgic/mycroft-magicmirror-wakeword-skill
17f4771da97fd2fd6794a5d4614596066afa3d2d
[ "MIT" ]
null
null
null
__init__.py
smartgic/mycroft-magicmirror-wakeword-skill
17f4771da97fd2fd6794a5d4614596066afa3d2d
[ "MIT" ]
null
null
null
__init__.py
smartgic/mycroft-magicmirror-wakeword-skill
17f4771da97fd2fd6794a5d4614596066afa3d2d
[ "MIT" ]
1
2021-05-27T19:29:41.000Z
2021-05-27T19:29:41.000Z
"""MagicMirror wake word entrypoint skill """ from mycroft import MycroftSkill import json import requests __author__ = 'smartgic' class MagicMirrorWakeWord(MycroftSkill): """This is the place where all the magic happens for the MagicMirror wake word skill. """ def __init__(self): MycroftSki...
34.149533
74
0.58566
930dc5f21574a3a38ec036adff753370018d3194
2,998
py
Python
examples/guest-test.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
examples/guest-test.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
examples/guest-test.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
import time import logging try: from fortrace.core.vmm import Vmm from fortrace.utility.logger_helper import create_logger from fortrace.core.vmm import GuestListener from fortrace.core.reporter import Reporter except ImportError as ie: print("Import error! in fileManagement.py " + str(ie)) exi...
26.298246
84
0.737825
930e0293fc36bfb9fec31ca28e84261d0d66ea66
12,040
py
Python
run_end_to_end_tests.py
shaka-bot/shaka-streamer
60588ea0be83074d29538fa851338fc0183f1909
[ "Apache-2.0" ]
154
2019-08-29T16:53:24.000Z
2022-02-25T00:29:56.000Z
run_end_to_end_tests.py
shaka-bot/shaka-streamer
60588ea0be83074d29538fa851338fc0183f1909
[ "Apache-2.0" ]
101
2019-08-30T17:34:51.000Z
2022-03-02T18:46:22.000Z
run_end_to_end_tests.py
shaka-bot/shaka-streamer
60588ea0be83074d29538fa851338fc0183f1909
[ "Apache-2.0" ]
56
2019-09-08T17:47:22.000Z
2022-02-23T17:35:11.000Z
#!/usr/bin/env python3 # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
34.204545
126
0.688621
930e181b8ad54da46f2c22f6c57b73bb5b182b41
1,069
py
Python
test/test_abstract_image.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_abstract_image.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_abstract_image.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
26.725
265
0.718428
930e580999e2e624ea6ed55f90bc57976304d52e
13,323
py
Python
Tests/test_TreeConstruction.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
1
2020-02-13T14:32:44.000Z
2020-02-13T14:32:44.000Z
Tests/test_TreeConstruction.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
null
null
null
Tests/test_TreeConstruction.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
# Copyright (C) 2013 by Yanbo Ye (yeyanbo289@gmail.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Unit tests for the Bio.Phylo.TreeConstruction module.""" import os import unittest import te...
43.681967
93
0.553329
930e6aa592ddfcaec7d124c7d809d1fd64f2f851
16,735
py
Python
chrome/browser/web_dev_style/css_checker.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
chrome/browser/web_dev_style/css_checker.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/web_dev_style/css_checker.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Presubmit script for Chromium WebUI resources. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the pre...
39.562648
80
0.511443
930e8f2969438213a31711ba2a01ebb68ef4e40d
889
py
Python
datathon/datathon_etl_pipelines/dofns/read_tar_file.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
310
2018-02-23T01:40:01.000Z
2022-03-30T12:25:56.000Z
datathon/datathon_etl_pipelines/dofns/read_tar_file.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
189
2018-06-19T15:32:10.000Z
2022-03-11T23:48:14.000Z
datathon/datathon_etl_pipelines/dofns/read_tar_file.py
animesh/healthcare
7d3d4dc9deb3d31eab99035780ccb9a44f00b687
[ "Apache-2.0" ]
165
2018-03-06T19:29:18.000Z
2022-03-21T10:53:45.000Z
"""An Apache Beam DoFn for untaring a tar file.""" import tarfile import apache_beam as beam import tensorflow as tf class ReadTarFile(beam.DoFn): """Untar a tar file.""" def process(self, path, path_to_key=lambda x: x): """Overrides beam.DoFn.process. Args: path: The full path to the tar file. T...
27.78125
78
0.646794
930ea2dd6d30440e5ddc7bdb93b642d734a35403
13,716
py
Python
document_library/south_migrations/0016_auto__add_field_documenttitle_meta_description.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
6
2016-11-27T13:16:08.000Z
2021-07-14T02:38:00.000Z
document_library/south_migrations/0016_auto__add_field_documenttitle_meta_description.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
1
2017-09-20T22:31:24.000Z
2020-12-08T17:00:58.000Z
document_library/south_migrations/0016_auto__add_field_documenttitle_meta_description.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
3
2017-01-11T05:37:40.000Z
2021-01-09T12:12:23.000Z
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models try: from django.contrib.auth import get_user_model except ImportError: # Django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() ...
76.2
193
0.576407
930eac910ab05738ce24d4b138c403ab9461646e
5,956
py
Python
configs/detection/ava/swin_small_kinetics_pretrained_32x2x1_cosine_10e_ava22_rgb.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
configs/detection/ava/swin_small_kinetics_pretrained_32x2x1_cosine_10e_ava22_rgb.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
configs/detection/ava/swin_small_kinetics_pretrained_32x2x1_cosine_10e_ava22_rgb.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
model = dict( type='FastRCNN', backbone=dict( type='SwinTransformer3D', patch_size=(2,4,4), embed_dim=96, depths=[2, 2, 18, 2], num_heads=[3, 6, 12, 24], window_size=(8,7,7), mlp_ratio=4., qkv_bias=True, qk_scale=None, drop_rate=0.,...
34.229885
192
0.628274
930ecfe52242f0ed0f7e0ca247abdfbf918e99b7
3,274
py
Python
myeongsoo/code/args.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
myeongsoo/code/args.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
myeongsoo/code/args.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
import os import argparse def parse_args(mode='train'): parser = argparse.ArgumentParser() parser.add_argument('--seed', default=42, type=int, help='seed') parser.add_argument('--device', default='cuda', type=str, help='cpu or gpu') parser.add_argument('--data_dir', default='/opt/ml/input/...
59.527273
118
0.700672
930ed2b11032da10ec501fdf3d411213d8900c9c
11,694
py
Python
modin/config/envvars.py
krfricke/modin
119a8be21f86c51954ce1753264f5c904fa7a09c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/config/envvars.py
krfricke/modin
119a8be21f86c51954ce1753264f5c904fa7a09c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/config/envvars.py
krfricke/modin
119a8be21f86c51954ce1753264f5c904fa7a09c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
27.909308
116
0.640243
930edfd05d4e2f60548af3072a8d149b4d68e4c0
2,332
py
Python
stests/core/orchestration/predicates.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/core/orchestration/predicates.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/core/orchestration/predicates.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import typing from stests.core import cache from stests.core import factory from stests.core.logging import log_event from stests.core.orchestration.model import Workflow from stests.core.types.orchestration import ExecutionAspect from stests.core.types.orchestration import ExecutionLock from stests.core.types.orchest...
31.093333
91
0.698113
930efe717fd48806c83ce11845c61caf3279bc63
6,607
py
Python
plugins/search_alternativeto/__init__.py
okb1100/awesome-albert-plugins
f4cc861a67f7242690b6c21a9069f505f380572c
[ "MIT" ]
null
null
null
plugins/search_alternativeto/__init__.py
okb1100/awesome-albert-plugins
f4cc861a67f7242690b6c21a9069f505f380572c
[ "MIT" ]
null
null
null
plugins/search_alternativeto/__init__.py
okb1100/awesome-albert-plugins
f4cc861a67f7242690b6c21a9069f505f380572c
[ "MIT" ]
null
null
null
""" Current file was autogeneratd by the search_template and the `create_googler_plugins.py` script. In case you find a bug please submit a patch to the aforementioned directories and file instead. """ """Alternativeto: Search suggestions for Alternativeto.""" import json import os import shutil import subprocess imp...
28.478448
95
0.571061
930f0aa622e42fd1d67ded5faa4716ede1e00566
8,699
py
Python
tests/scripts/thread-cert/Cert_5_2_07_REEDSynchronization.py
sarah-iot/openthread
8210a02400c145eb862b65e32040ed0415ba36c2
[ "BSD-3-Clause" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
tests/scripts/thread-cert/Cert_5_2_07_REEDSynchronization.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
tests/scripts/thread-cert/Cert_5_2_07_REEDSynchronization.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
32.950758
214
0.548569
930f157ec1edb648c7e3b403d38eb43acb08e643
2,125
py
Python
py/cidoc_crm_types/entities/e90_symbolic_object.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e90_symbolic_object.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e90_symbolic_object.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .e28_conceptual_object import E28ConceptualObject from .e72_legal_object import E72LegalObject from dataclasses import dataclass @dataclass class E90SymbolicObject(E72LegalObject, E28ConceptualObject): """ Scope note: This class comprises identifiable symbols and any aggregation of symbols, such as character...
66.40625
527
0.782588
930f2ed4f673b85667c94e0ca3470af435e95eb6
4,593
py
Python
tests/home_platform/test_env.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
1
2021-07-27T09:15:43.000Z
2021-07-27T09:15:43.000Z
tests/home_platform/test_env.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
null
null
null
tests/home_platform/test_env.py
LuCeHe/home-platform
06f9370bfacecebd0c8623a3b8f0511532a9a1f0
[ "BSD-3-Clause" ]
1
2021-07-27T09:21:12.000Z
2021-07-27T09:21:12.000Z
# Copyright (c) 2017, IGLU consortium # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyright notice, # this list of conditions and...
34.276119
108
0.660353
930f4272af5dc7c9c2cd3d7792b17f0c824c7d57
6,859
py
Python
notebooks/PNAS/old_vs_new.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
notebooks/PNAS/old_vs_new.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
notebooks/PNAS/old_vs_new.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
import os import numpy as np import matplotlib.pyplot as plt #from plotly.offline import init_notebook_mode, iplot #init_notebook_mode(connected=False) from sympy import Matrix, symbols, Symbol, Function, latex from scipy.interpolate import interp1d from LAPM.linear_autonomous_pool_model import LinearAutonomousPoolMod...
31.177273
354
0.713078
930f46dea8556885c21e76bb1f924c79ce9ac627
585
py
Python
frappe/patches/v12_0/uninstall_custom_sentry_app.py
diptigandhi24/frappe
cdbc3191f95464949ac033e65cc267d8af3be2a2
[ "MIT" ]
3
2021-03-01T08:52:59.000Z
2021-12-15T10:17:59.000Z
frappe/patches/v12_0/uninstall_custom_sentry_app.py
diptigandhi24/frappe
cdbc3191f95464949ac033e65cc267d8af3be2a2
[ "MIT" ]
212
2017-08-16T13:03:18.000Z
2020-10-06T12:26:21.000Z
frappe/patches/v12_0/uninstall_custom_sentry_app.py
diptigandhi24/frappe
cdbc3191f95464949ac033e65cc267d8af3be2a2
[ "MIT" ]
14
2020-11-04T11:22:44.000Z
2022-02-01T20:59:37.000Z
import frappe def execute(): if "sentry" in frappe.get_installed_apps() and frappe.get_all("DocType", {"name": "Sentry Settings", "Module": "Sentry"}): sentry_dsn = frappe.db.get_single_value("Sentry Settings", "sentry_dsn") from frappe.installer import remove_app remove_app(app_name="sentry", yes=True, no_back...
53.181818
123
0.74188
930f4a797856639afc8640a97d3546d908078587
642
py
Python
scripts/pylint_custom_plugin/tests/test_files/api_version_checker_acceptable_class.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
scripts/pylint_custom_plugin/tests/test_files/api_version_checker_acceptable_class.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
scripts/pylint_custom_plugin/tests/test_files/api_version_checker_acceptable_class.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
#Test file for api_verison checker class SomeClient(): """ :param str endpoint: Something. :keyword api_version: The API version of the service to use for requests. It defaults to API version v2.1. Setting to an older version may result in reduced feature compatibility. To use the ...
25.68
96
0.682243
930f4e3eaef7a76039e28e81ec0e2369f64271cf
3,211
py
Python
src/utils/RunLive.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
null
null
null
src/utils/RunLive.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
null
null
null
src/utils/RunLive.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
null
null
null
import os import cv2 import numpy as np import sys import time import _thread from importlib import import_module from queue import Queue from utils.uav_utils import manual_control from atlas_utils.presenteragent import presenter_channel from atlas_utils.acl_image import AclImage class LiveRunner: """ Respon...
37.776471
106
0.606042
930f883e9df4981cadf837fcc3fbbe4d8fa4648f
4,218
py
Python
yardstick/benchmark/runners/iteration.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/runners/iteration.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/runners/iteration.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Mirantis 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 b...
31.244444
78
0.600047
930fa5cd051c3f5d912292acaf6226afced2eb33
936
py
Python
kaybee/plugins/articles/filters.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
2
2017-11-08T19:55:57.000Z
2018-12-21T12:41:41.000Z
kaybee/plugins/articles/filters.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
null
null
null
kaybee/plugins/articles/filters.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
1
2018-10-13T08:59:29.000Z
2018-10-13T08:59:29.000Z
""" Jinja2 filters The articles system needs some rich ways to format things. For example, different ways to show dates. We'll use Jinja2 filters for this. The filters are registered as instance callables. This lets us put psuedo-globals such as sphinx_app into the scope and not have to pass that in from the templat...
26
67
0.708333
930fd8854b5c403e9b67dbfc57b0bd60b4704e3c
5,849
py
Python
project3/frontend_CIFAR10.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project3/frontend_CIFAR10.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project3/frontend_CIFAR10.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
import tflearn from tflearn.data_utils import shuffle, to_categorical from tflearn.models.dnn import DNN from tflearn.layers.core import input_data, dropout, fully_connected from tflearn.layers.conv import conv_2d, max_pool_2d from tflearn.layers.estimator import regression from tflearn.data_preprocessing import ImageP...
39.52027
121
0.669858
930fdc4f71bdb13c297f3c90649d8a7f4908447e
42,448
py
Python
nxsdk_modules_ncl/lsnn/apps/relnet/data/loihi_chip_optimum_network_from_data.py
event-driven-robotics/models
5e5b6521b8bcab6e3576e177784baaed57fd5280
[ "BSD-3-Clause" ]
54
2020-03-04T17:37:17.000Z
2022-02-22T13:16:10.000Z
nxsdk_modules_ncl/lsnn/apps/relnet/data/loihi_chip_optimum_network_from_data.py
lyes-khacef/models
a8b6e2a83d4842eb99878d3fa53cd92f4c6b3db8
[ "BSD-3-Clause" ]
9
2020-08-26T13:17:54.000Z
2021-11-09T09:02:00.000Z
nxsdk_modules_ncl/lsnn/apps/relnet/data/loihi_chip_optimum_network_from_data.py
lyes-khacef/models
a8b6e2a83d4842eb99878d3fa53cd92f4c6b3db8
[ "BSD-3-Clause" ]
26
2020-03-18T17:09:34.000Z
2021-11-22T16:23:14.000Z
# Copyright © 2018-2021 Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions...
61.164265
163
0.694756
930fdcc866f4709ad15b63632c0168cd9414b437
11,699
py
Python
scripts/retrieve_and_rasterize.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
scripts/retrieve_and_rasterize.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
scripts/retrieve_and_rasterize.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ # Problem Description: Given a tile index of (x,y,z) of size 256x256, 1. Find out (lat_deg, lng_deg) and the extent covered by the maptile (ie. the radius in meters) 2. Grab the road network (and other entities, like building boundaries or types) from OSM -- use OSMnx -- in the area ...
38.232026
145
0.650312
930ff7fb9b3f3b9564196cf292d44bc9969a2908
79,923
py
Python
salt/modules/cmdmod.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/cmdmod.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/cmdmod.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' A module for shelling out. Keep in mind that this module is insecure, in that it can give whomever has access to the master root execution access to all salt minions. ''' from __future__ import absolute_import # Import python libs import time import functools import glob import logging imp...
32.436282
121
0.560364
931008030cadbf171c51e3fe91aa873439d1d794
3,154
py
Python
src/genie/libs/parser/iosxe/show_isis.py
tylersiemers/genieparser
f18d49f9ca268d23df34faaf8b2212ca29b6882e
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_isis.py
tylersiemers/genieparser
f18d49f9ca268d23df34faaf8b2212ca29b6882e
[ "Apache-2.0" ]
1
2019-04-02T16:51:56.000Z
2019-04-02T16:51:56.000Z
src/genie/libs/parser/iosxe/show_isis.py
tylersiemers/genieparser
f18d49f9ca268d23df34faaf8b2212ca29b6882e
[ "Apache-2.0" ]
1
2021-01-29T17:31:33.000Z
2021-01-29T17:31:33.000Z
"""show_isis.py """ import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, \ Any, \ Optional, \ Or, \ ...
39.924051
176
0.450222
9310198f27db2d2ac9dc75730ba5793d8637bc9a
2,492
py
Python
.eggs/boto-2.48.0-py2.7.egg/boto/manage/propget.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
.eggs/boto-2.48.0-py2.7.egg/boto/manage/propget.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
.eggs/boto-2.48.0-py2.7.egg/boto/manage/propget.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modi...
39.555556
74
0.591091
93101d66b4329468772f6bc026e81fc2bcb5589f
561
py
Python
django-backend/notifications/signals.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
2
2021-06-08T16:35:30.000Z
2022-03-18T16:04:48.000Z
django-backend/notifications/signals.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
4
2022-02-22T18:43:07.000Z
2022-02-22T18:45:25.000Z
django-backend/notifications/signals.py
isystematics/SoarCast
6ba8d7db76e2ba1ad5fd1ab3636dd202b11450b0
[ "Apache-2.0" ]
null
null
null
import logging from django.db.models.signals import post_save from django.dispatch import receiver from notifications.models import Notification, EmailNotificationProfile from notifications.utils import send_notification_email log = logging.getLogger(__name__) @receiver(post_save, sender=Notification) def create_pr...
33
71
0.818182
931036e56be3e807b6db5d06d4285e0b4a6b48cf
2,702
py
Python
src/pytorch/explore.py
jeetsagar/turbojet
9b17edde0a7e01d0fa320261fbc2734ce53577d2
[ "MIT" ]
null
null
null
src/pytorch/explore.py
jeetsagar/turbojet
9b17edde0a7e01d0fa320261fbc2734ce53577d2
[ "MIT" ]
null
null
null
src/pytorch/explore.py
jeetsagar/turbojet
9b17edde0a7e01d0fa320261fbc2734ce53577d2
[ "MIT" ]
2
2021-05-20T05:47:59.000Z
2021-08-24T07:44:37.000Z
#!python3 """functions for exploring the data""" import h5py import pathlib import numpy as np def get_filenames(parent='../../../data_set/'): parentdir = pathlib.Path(parent) flist = list(parentdir.glob('*.h5')) flist.sort() return flist def print_keys(filename): with h5py.File(filename, 'r')...
31.057471
62
0.610659
93104c3c834b2202b96850efd82717f6ff29642c
6,232
py
Python
HAIA/neat/visualize.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
51
2019-06-03T12:45:13.000Z
2022-02-16T15:48:28.000Z
Chapter4/visualize.py
123mitnik/Hands-on-Neuroevolution-with-Python
b65c7dee49303c296ae22f2d82422614bdf7a168
[ "MIT" ]
3
2020-02-20T08:13:34.000Z
2020-09-16T10:11:52.000Z
Chapter4/visualize.py
123mitnik/Hands-on-Neuroevolution-with-Python
b65c7dee49303c296ae22f2d82422614bdf7a168
[ "MIT" ]
30
2019-05-24T02:02:47.000Z
2022-03-03T22:48:22.000Z
#Copyright (c) 2007-2011, cesar.gomes and mirrorballu2 #Copyright (c) 2015-2017, CodeReclaimers, LLC # #Redistribution and use in source and binary forms, with or without modification, are permitted provided that the #following conditions are met: # #1. Redistributions of source code must retain the above copyright not...
36.87574
128
0.671534
931051146f306d7be46dc2e760adc30dbf18443c
7,046
py
Python
src/hi_getter/models.py
Cubicpath/HaloInfiniteGetter
5c1e0c77e1e56d1679dce3835e432fea40239135
[ "MIT" ]
null
null
null
src/hi_getter/models.py
Cubicpath/HaloInfiniteGetter
5c1e0c77e1e56d1679dce3835e432fea40239135
[ "MIT" ]
6
2022-02-14T16:11:09.000Z
2022-03-30T22:33:39.000Z
src/hi_getter/models.py
Cubicpath/HaloInfiniteGetter
5c1e0c77e1e56d1679dce3835e432fea40239135
[ "MIT" ]
null
null
null
################################################################################################### # MIT Licence (C) 2022 Cubicpath@Github # ################################################################################################### """Miscellaneous obj...
42.445783
110
0.62461
9310829b82681d881f9a8921946cdc6737176d8e
16,152
py
Python
python_modules/dagster/dagster_tests/core_tests/asset_defs_tests/test_partitioned_assets.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/asset_defs_tests/test_partitioned_assets.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/asset_defs_tests/test_partitioned_assets.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import pendulum import pytest from dagster import ( AssetMaterialization, DagsterInvalidDefinitionError, DailyPartitionsDefinition, HourlyPartitionsDefinition, IOManager, IOManagerDefinition, PartitionsDefinition, SourceAsset, StaticPartitionsDefinition, ) from dagster.core.asset_de...
36.542986
98
0.689326
9310841ae2fe5c90da8d2d2da1230a478ad0e891
4,067
py
Python
mac-py27-venv-designateclient/v2/cli/blacklists.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
mac-py27-venv-designateclient/v2/cli/blacklists.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
mac-py27-venv-designateclient/v2/cli/blacklists.py
naototty/python-conohadns-client
04f360450d2e1a6020d2870272d8125cb112fa01
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <endre.karlson@hp.com> # # 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/lice...
29.904412
79
0.694615
9310891dccd63a649fe5d7f28a3ec1cd60441ec1
636
py
Python
problems/83_remove-duplicates-from-sorted-list.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/83_remove-duplicates-from-sorted-list.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/83_remove-duplicates-from-sorted-list.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=83 lang=python3 # # [83] Remove Duplicates from Sorted List # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def deleteDuplicates(self, head: ListNode) ->...
21.931034
59
0.529874
9310b2b8c23553b45aecdbe87b6fe59fd06d578c
1,647
py
Python
projects/shortning_bread/shortning_bread_1.py
aisipos/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
47
2015-01-07T16:25:27.000Z
2022-03-07T07:21:27.000Z
projects/shortning_bread/shortning_bread_1.py
EQ4/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
1
2015-02-02T20:25:15.000Z
2015-02-02T20:25:15.000Z
projects/shortning_bread/shortning_bread_1.py
EQ4/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
10
2015-02-02T19:48:57.000Z
2021-03-19T17:45:17.000Z
#!/usr/bin/env python ## this is the beginning of an experiment for the next level of the algebra from sebastian.core import DURATION_64 from sebastian.core import VSeq, HSeq, Point, OSequence from sebastian.core.transforms import midi_pitch, degree_in_key_with_octave, add from sebastian.core.notes import Key, major_...
29.410714
80
0.709168
931122895ed2792d271bd5af4c28c58d1c598876
708
py
Python
tornado/__init__.py
M-Kokolich/PoVo
d72b8375a2662225299690a321979ac6988d229d
[ "MIT" ]
4
2016-08-01T02:32:13.000Z
2021-11-08T11:21:08.000Z
tornado/__init__.py
gus-ball/gps_v4.9
ed587bc6e49093603072d6d137d45d9b765bd73e
[ "MIT" ]
1
2016-08-01T02:32:32.000Z
2016-08-01T02:32:32.000Z
tornado/__init__.py
gus-ball/gps_v4.9
ed587bc6e49093603072d6d137d45d9b765bd73e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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...
30.782609
75
0.742938
931141cc38c488e885ffe62b2bb3effada83fb53
4,248
py
Python
dgeq/exceptions.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
null
null
null
dgeq/exceptions.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
1
2021-01-24T22:53:53.000Z
2021-01-24T22:53:53.000Z
dgeq/exceptions.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
null
null
null
from typing import Any, TYPE_CHECKING, Type, Union from django.conf import settings from django.db import models from . import constants if TYPE_CHECKING: from .censor import Censor class DgeqError(Exception): """Base exception for `dgeq` module. Exception inheriting `DgeqError` must declare att...
29.296552
99
0.631591
93114c0a5d37a16708c2a04e42faed2725939885
1,042
py
Python
certau/source/taxii.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
12
2016-07-11T07:53:05.000Z
2021-07-19T12:20:21.000Z
certau/source/taxii.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
null
null
null
certau/source/taxii.py
thisismyrobot/cti-toolkit
faf6e912af69376f5c55902c1592f7eeb0ce03dd
[ "BSD-3-Clause" ]
4
2016-11-13T22:38:10.000Z
2022-01-15T08:21:15.000Z
from six import StringIO from certau.util.taxii import file_name_for_content_block from certau.source.base import StixSourceItem class TaxiiContentBlockSourceItem(StixSourceItem): def __init__(self, content_block, collection): self.collection = collection super(TaxiiContentBlockSourceItem, self)...
28.944444
72
0.700576
93115bae6b7b63abf03ceb721b7b49e7bf7b26c8
689
py
Python
model/__init__.py
Stanford-PERTS/bele-library
ad2bbda6e7a03d3579b52b5de30771d9990cabac
[ "CC0-1.0" ]
null
null
null
model/__init__.py
Stanford-PERTS/bele-library
ad2bbda6e7a03d3579b52b5de30771d9990cabac
[ "CC0-1.0" ]
null
null
null
model/__init__.py
Stanford-PERTS/bele-library
ad2bbda6e7a03d3579b52b5de30771d9990cabac
[ "CC0-1.0" ]
null
null
null
""" Model =========== Contains all Mindset Kit data models """ from .book import Chapter from .book import Book from .comment import Comment from .content import Content from .email import Email from .errorchecker import ErrorChecker from .feedback import Feedback from .fileembedded import FileEmbedded from .indexer ...
23.758621
72
0.772134
93115f1deef6ce66a1ba3a099c197b56e1451849
20,861
py
Python
bookworm/CreateDatabase.py
ddbourgin/bookworm_db
ce51c2ef1da7dbf2628236ad1da6066280308241
[ "MIT" ]
1
2020-09-23T13:14:43.000Z
2020-09-23T13:14:43.000Z
bookworm/CreateDatabase.py
ddbourgin/bookworm_db
ce51c2ef1da7dbf2628236ad1da6066280308241
[ "MIT" ]
null
null
null
bookworm/CreateDatabase.py
ddbourgin/bookworm_db
ce51c2ef1da7dbf2628236ad1da6066280308241
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import subprocess import MySQLdb import re import sys import json import os import decimal import ConfigParser from variableSet import dataField from variableSet import variableSet from variableSet import splitMySQLcode import warnings warnings.filterwarnings('ignore', 'Table...
46.254989
427
0.609942
93119e3eabffdb7c0e1b3e939fa3ad2046eafd00
450
py
Python
intro/indexacao_negativa.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
null
null
null
intro/indexacao_negativa.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
2
2020-07-19T15:36:35.000Z
2022-02-02T20:30:16.000Z
intro/indexacao_negativa.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def indexNative(): ''' Indexação negativa: ''' lista = [1, 2, 3, 4, 2, 4, 3, 6, 7, 31, 77, 7, 3, 445, 23] # último elemento print(lista[-1], '- último elemento') # penultimo elemento print(lista[-2], '- penúltimo elemento') # antepenultimo elemento ...
18.75
62
0.562222
9311de333c6857f224d63702459073877ea96781
850
py
Python
lokbot/util.py
zbx911/lok_bot
0ac13f352f385f36cb3d4bcd6e55b9be366e1cb3
[ "MIT" ]
null
null
null
lokbot/util.py
zbx911/lok_bot
0ac13f352f385f36cb3d4bcd6e55b9be366e1cb3
[ "MIT" ]
null
null
null
lokbot/util.py
zbx911/lok_bot
0ac13f352f385f36cb3d4bcd6e55b9be366e1cb3
[ "MIT" ]
null
null
null
import random from lokbot.enum import * def get_resource_index_by_item_code(item_code): """ Returns the index of the item in the resource list [0, 1, 2, 3 ] [food, lumber, stone, gold] """ if (ITEM_CODE_FOOD_1K <= item_code <= ITEM_CODE_FOOD_10M) or (item_code == ITEM_CODE_FOOD)...
26.5625
101
0.665882
9311f1b1a41789a60e09b37291393e2c9c63e8f4
1,718
py
Python
services/chapps_greylisting.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
1
2022-03-23T13:36:43.000Z
2022-03-23T13:36:43.000Z
services/chapps_greylisting.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
2
2022-02-25T18:12:15.000Z
2022-03-07T22:32:13.000Z
services/chapps_greylisting.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Caching, Highly-Available Postfix Policy Service - Greylisting""" ### requires the python-pidfile library from https://github.com/mosquito/python-pidfile import asyncio, pidfile, signal, functools from chapps.switchboard import GreylistingHandler from chapps.config import config from chapps.s...
34.36
87
0.686263
9311f3028ecd6ce836be8a1d9ec24fecd233e749
1,385
py
Python
talks-articles/reference/algorithms/mergesort.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
37
2015-02-01T23:16:39.000Z
2021-12-22T16:50:48.000Z
talks-articles/reference/algorithms/mergesort.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
1
2017-03-02T04:55:48.000Z
2018-01-14T10:51:11.000Z
talks-articles/reference/algorithms/mergesort.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
15
2015-03-02T08:09:01.000Z
2021-06-10T03:25:41.000Z
#!/usr/bin/env python """ Mergsort a list https://en.wikipedia.org/wiki/Merge_sort """ def two_way_merge(array_lhs, array_rhs): sorted_array = [] left_index = right_index = 0 lhs_size = len(array_lhs) rhs_size = len(array_rhs) while left_index < lhs_size and right_index < rhs_size: if arr...
27.156863
59
0.631047
93121334d768f2b4f6184df5f5ca3b753a628448
3,394
py
Python
tests/unit/test_applications.py
jonathanstaniforth/xiao-asgi
9a1c2b59d034a242574736a2a8130804bb799049
[ "MIT" ]
null
null
null
tests/unit/test_applications.py
jonathanstaniforth/xiao-asgi
9a1c2b59d034a242574736a2a8130804bb799049
[ "MIT" ]
17
2021-11-10T12:08:29.000Z
2021-12-04T18:34:04.000Z
tests/unit/test_applications.py
jonathanstaniforth/xiao-asgi
9a1c2b59d034a242574736a2a8130804bb799049
[ "MIT" ]
null
null
null
from logging import Logger from unittest.mock import AsyncMock, MagicMock, Mock, call from pytest import fixture, mark from xiao_asgi.applications import Xiao from xiao_asgi.routing import HttpRoute, Route @mark.asyncio class TestXiao: @fixture def routes(self): return [ HttpRoute("/"), ...
28.049587
76
0.450501
93122a0ad993f88ad79b6559a02d63ac72235015
16,531
py
Python
eve_peewee/__init__.py
stt/eve-peewee
84ff6061dec7234ae1f8cc82a0afa4d03f7242aa
[ "BSD-2-Clause" ]
2
2016-04-26T03:45:38.000Z
2016-09-02T03:10:54.000Z
eve_peewee/__init__.py
stt/eve-peewee
84ff6061dec7234ae1f8cc82a0afa4d03f7242aa
[ "BSD-2-Clause" ]
null
null
null
eve_peewee/__init__.py
stt/eve-peewee
84ff6061dec7234ae1f8cc82a0afa4d03f7242aa
[ "BSD-2-Clause" ]
null
null
null
import peewee from playhouse import db_url from playhouse.shortcuts import RetryOperationalError import eve from eve.utils import config, auto_fields, str_to_date from eve.io.base import DataLayer, BaseJSONEncoder from werkzeug.exceptions import HTTPException, abort from cerberus import Validator from datetime import...
34.225673
101
0.567782
93122a3fc74690e422a39cce10828129a6bc1b2a
860
py
Python
OOP_concepts/show_namespace_of_classes.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
OOP_concepts/show_namespace_of_classes.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
OOP_concepts/show_namespace_of_classes.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
# https://github.com/CoreyMSchafer/code_snippets/blob/master/Object-Oriented/2-Class-Instance-Variables/oop.py class Employee: """ Class object of employee information. """ # Class variable: raise_amt = 1.05 def __init__(self, first, last, pay): self.first = first self.last =...
26.875
110
0.654651
93125797d8adc146410a06290c58a2d3331242d0
545
py
Python
2019/4/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2019/4/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2019/4/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
pass_range = 387638, 919123 + 1 pass_list = list(range(*pass_range)) def check_password(password): digits = [int(c) for c in str(password)] same_adjacent = False for index, digit in enumerate(digits[:-1]): if not same_adjacent and str(digit)*2 in str(password) and str(digit)*3 not in str(password)...
28.684211
101
0.680734
93126108df488a3b483ec0b4a6c4b9f92a4dd14f
2,710
py
Python
sdk/examples/xo_python/sawtooth_xo/processor/main.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
sdk/examples/xo_python/sawtooth_xo/processor/main.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
sdk/examples/xo_python/sawtooth_xo/processor/main.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
35.657895
80
0.654613
9312e17a38ebce62d57db71709e11d1c277911a4
2,393
py
Python
mininet/mininet/clean.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
mininet/mininet/clean.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
mininet/mininet/clean.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
""" Mininet Cleanup author: Bob Lantz (rlantz@cs.stanford.edu) Unfortunately, Mininet and OpenFlow (and the Linux kernel) don't always clean up properly after themselves. Until they do (or until cleanup functionality is integrated into the Python code), this script may be used to get rid of unwanted garbage. It may al...
34.681159
78
0.621396
93130367e093cf4d2af139e84f0cc8dbe3ed380f
2,503
py
Python
blaspy/level_1/copy.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
4
2015-01-25T12:44:44.000Z
2022-03-19T08:36:19.000Z
blaspy/level_1/copy.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
7
2015-01-20T13:35:39.000Z
2015-05-31T17:11:50.000Z
blaspy/level_1/copy.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2014-2015-2015, The University of Texas at Austin. All rights reserved. This file is part of BLASpy and is available under the 3-Clause BSD License, which can be found in the LICENSE file at the top-level directory or at http://opensource.org/licenses/BSD-3-Clause """ from ..he...
36.275362
101
0.644027
93132e8f7a3728b971516fd3f8560a370695e0b8
827
py
Python
BART3D/get_interaction_change.py
sygy1995/BART3D
54c91b6eef9d7677b17ca1b0a69b9f2b208da9de
[ "BSD-3-Clause" ]
null
null
null
BART3D/get_interaction_change.py
sygy1995/BART3D
54c91b6eef9d7677b17ca1b0a69b9f2b208da9de
[ "BSD-3-Clause" ]
null
null
null
BART3D/get_interaction_change.py
sygy1995/BART3D
54c91b6eef9d7677b17ca1b0a69b9f2b208da9de
[ "BSD-3-Clause" ]
null
null
null
import os,sys,argparse import numpy as np import pandas as pd from scipy import stats import BART3D.utils as utils def compare_hic_interaction(control_np,treatment_np,resolution,file_up,file_down,chrom,species): compr_data_out_up = open(file_up,'a') compr_data_out_down = open(file_down,'a') bin_number = len(contr...
39.380952
113
0.712213
93133ea551ea4a95cb4f3ec8350ff3fdcaea01b7
613
py
Python
v1.0/dc/views/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v1.0/dc/views/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v1.0/dc/views/commun.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
from flask import Blueprint from flask import render_template, request, redirect, url_for com_bp = Blueprint('com_bp', __name__) @com_bp.route('/success') def showSuccessPage(): return render_template('success.html') @com_bp.route('/success/<string:message>') def showSuccessPagewithMessage(message): ...
26.652174
64
0.725938
93136218048e25b4432d796b21ef81d5e295268f
1,742
py
Python
reconstruction/main/main_experiment1_d.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
reconstruction/main/main_experiment1_d.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
reconstruction/main/main_experiment1_d.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
import sys import pathlib sys.path.append(str(pathlib.Path(__file__).parent.absolute()) + "/../") import general_utils from general_utils.workspace_utils import is_work_in_cluster from general_utils.temp_utils import clean_work_dir from csv_modules.csv_combine import combine_files_exp_1 import argparse parser = ar...
29.525424
127
0.71814
931366172f1acbfaf20ef3a3663c2db703ed8113
4,450
py
Python
tests/parsingFunctionsTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
60
2019-09-09T16:44:14.000Z
2022-03-26T12:04:17.000Z
tests/parsingFunctionsTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
16
2020-05-12T20:17:30.000Z
2022-03-15T16:01:41.000Z
tests/parsingFunctionsTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
3
2020-03-28T11:20:02.000Z
2022-01-22T07:16:58.000Z
#! /usr/bin/env python import unittest from unittest import mock from mock import patch from parameterized import parameterized, parameterized_class import sys import logging import numpy as np from Bio import AlignIO import os from os import path import CIAlign import CIAlign.parsingFunctions as parsingFunctions fr...
42.788462
181
0.680899
93138bb0dbe46133f719d33737f64e6d841b1448
5,947
py
Python
applications/diario_obra/controllers/usuario.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
applications/diario_obra/controllers/usuario.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
applications/diario_obra/controllers/usuario.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
@auth.requires_login() def _novoUsuario(): usuario_logado = auth.user_id tipo = db(db.auth_user.id == usuario_logado).select(db.auth_user.tipo)[0].tipo funcionario = 3 adm = 1 if tipo == funcionario or tipo == adm: form = SQLFORM(db.auth_user, _class='ui form') if form.accepts(request.vars): session.f...
27.660465
83
0.600975
931392ca7d710cb6eac3d645ad7b99699bbcebe8
246
py
Python
python/phonenumbers/data/alt_format_375.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/data/alt_format_375.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/alt_format_375.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
1
2018-11-10T03:47:34.000Z
2018-11-10T03:47:34.000Z
"""Auto-generated file, do not edit by hand. 375 metadata""" from ..phonemetadata import NumberFormat PHONE_ALT_FORMAT_375 = [NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{2})(\\d{2})', format=u'\\1 \\2 \\3 \\4', leading_digits_pattern=['[1-4]'])]
49.2
142
0.650407
9313be2319977ab0ef66fd9c39b31c6dd8c3aa49
7,101
py
Python
recommender.py
taliafawzy/celp
d309c9533c6fe6c4ce40021cf7b0efd8d9e3928d
[ "MIT" ]
null
null
null
recommender.py
taliafawzy/celp
d309c9533c6fe6c4ce40021cf7b0efd8d9e3928d
[ "MIT" ]
null
null
null
recommender.py
taliafawzy/celp
d309c9533c6fe6c4ce40021cf7b0efd8d9e3928d
[ "MIT" ]
null
null
null
import data from data import CITIES, BUSINESSES, USERS, REVIEWS, TIPS, CHECKINS from geopy import distance import random import pandas as pd import numpy as np all_businesses = [] def recommend_home(user_id=None, n=10): """ Returns n recommendations as a list of dicts. Optionally takes in a user_id. ...
36.415385
142
0.663991
9313c1fae5493edebe333a15d93be0c5c0770964
5,942
py
Python
src/utils/HeuristicInitializer.py
disiji/fc_differentiable
65d6cbb3e0e41862744366c045fa06b6dc2d99a5
[ "MIT" ]
2
2019-11-23T03:14:33.000Z
2022-01-18T20:00:27.000Z
src/utils/HeuristicInitializer.py
disiji/fc_differentiable
65d6cbb3e0e41862744366c045fa06b6dc2d99a5
[ "MIT" ]
null
null
null
src/utils/HeuristicInitializer.py
disiji/fc_differentiable
65d6cbb3e0e41862744366c045fa06b6dc2d99a5
[ "MIT" ]
2
2019-04-09T00:18:44.000Z
2022-01-01T10:43:25.000Z
import numpy as np import utils.utils_load_data as dh class HeuristicInitializer: """ data is a numpy array of all the cells normalized marker data """ def __init__(self, node_type, gate_data_axes_ids, pos_data, neg_data, num_gridcells_per_axis=20, consider_all_gates=False, greedy_f...
38.836601
109
0.587513
9313e4a87b17a63aedc58bc474089fcd2fc02eae
5,622
py
Python
DBSCAN.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
DBSCAN.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
DBSCAN.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib as plt import os from sklearn.preprocessing import MinMaxScaler from sklearn.preprocessing import StandardScaler from collections import OrderedDict from sklearn.metrics import accuracy_score from time import time dataset=pd.read_csv('/home/user/Projects/Pratee...
28.11
159
0.73497
9313ed861a72a8f8281b14185181c423ab7473b1
34,148
py
Python
salt/states/boto_lambda.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2020-02-22T07:11:24.000Z
2020-02-22T07:11:24.000Z
salt/states/boto_lambda.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
salt/states/boto_lambda.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
2
2017-01-05T16:14:59.000Z
2019-01-31T23:15:25.000Z
# -*- coding: utf-8 -*- ''' Manage Lambda Functions ================= .. versionadded:: 2016.3.0 Create and destroy Lambda Functions. Be aware that this interacts with Amazon's services, and so may incur charges. This module uses ``boto3``, which can be installed via package, or pip. This module accepts explicit vp...
39.568946
110
0.568877
93142e535e46933798365b945ffc51d2e8941d4d
714
py
Python
src/networks/__init__.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
src/networks/__init__.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
src/networks/__init__.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
from .main import build_network, build_autoencoder from .mnist_LeNet import MNIST_LeNet, MNIST_LeNet_Decoder, MNIST_LeNet_Autoencoder from .fmnist_LeNet import FashionMNIST_LeNet, FashionMNIST_LeNet_Decoder, FashionMNIST_LeNet_Autoencoder from .cifar10_LeNet import CIFAR10_LeNet, CIFAR10_LeNet_Decoder, CIFAR10_LeNet_Au...
64.909091
104
0.880952
93146c79f274fc09fa5d075dfc9d826dd48bbd57
7,704
py
Python
src/pynwb/core.py
q0j0p/pynwb
6c3a864662f2cce63b542f9f614cc632903f9bc1
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/pynwb/core.py
q0j0p/pynwb
6c3a864662f2cce63b542f9f614cc632903f9bc1
[ "BSD-3-Clause-LBNL" ]
1
2021-06-01T22:25:36.000Z
2021-06-01T22:25:36.000Z
src/pynwb/core.py
q0j0p/pynwb
6c3a864662f2cce63b542f9f614cc632903f9bc1
[ "BSD-3-Clause-LBNL" ]
null
null
null
from collections import Iterable from h5py import RegionReference from .form.utils import docval, getargs, ExtenderMeta, call_docval_func, popargs from .form import Container, Data, DataRegion, get_region_slicer from . import CORE_NAMESPACE, register_class from six import with_metaclass def set_parents(container, p...
35.666667
113
0.610462
93147a7ecb2a5f486ff52f17c37341c27ebdad5b
351
py
Python
test_data/medieval_latin/cartae/clean.py
matgille/boudams
d253ff2ee124e13186b5782ebb3c2d9b4bedd942
[ "MIT" ]
5
2019-10-12T22:12:42.000Z
2022-02-17T14:59:02.000Z
test_data/medieval_latin/cartae/clean.py
matgille/boudams
d253ff2ee124e13186b5782ebb3c2d9b4bedd942
[ "MIT" ]
10
2019-06-08T09:31:19.000Z
2021-05-16T09:27:14.000Z
test_data/medieval_latin/cartae/clean.py
matgille/boudams
d253ff2ee124e13186b5782ebb3c2d9b4bedd942
[ "MIT" ]
2
2020-01-10T09:46:09.000Z
2021-02-26T17:04:36.000Z
# Clean up files from the search fold of the source import glob import os here = os.path.join(os.path.dirname(__file__)) sep = "******" for file in glob.glob(os.path.join(here, "src", "*.txt")): with open(file) as f: text = f.read() text = text.split(sep)[-2] with open(file+".normalized.txt", "w...
21.9375
58
0.606838
93147cfbb9311da703f69f5ea40990272bc7280a
2,956
py
Python
apysc/_animation/animation_height_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
apysc/_animation/animation_height_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
apysc/_animation/animation_height_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
"""Class implementation for the animation_height interface. """ from typing import Union from apysc._animation.animation_height import AnimationHeight from apysc._animation.animation_interface_base import AnimationInterfaceBase from apysc._animation.easing import Easing from apysc._type.int import Int cl...
35.614458
78
0.587957
9314a23400db67d1e1d44f7245d0dbccc7d81190
8,223
py
Python
sdks/python/apache_beam/ml/inference/pytorch_test.py
rahuliyer95/beam
c77971053d2eac2e2bcd1c36c3d312157fc4e450
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/ml/inference/pytorch_test.py
rahuliyer95/beam
c77971053d2eac2e2bcd1c36c3d312157fc4e450
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/ml/inference/pytorch_test.py
rahuliyer95/beam
c77971053d2eac2e2bcd1c36c3d312157fc4e450
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
36.384956
79
0.653898
9314ad284d2209eabb67ae1311cc3ab35ccf2e92
643
py
Python
txdav/caldav/__init__.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
txdav/caldav/__init__.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
txdav/caldav/__init__.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2010-2015 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
32.15
74
0.749611
9314afbebcdf69af2c6ac5d3d86d29c4b131bfe1
2,123
py
Python
leetcode_python/Array/maximum-sum-circular-subarray.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Array/maximum-sum-circular-subarray.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Array/maximum-sum-circular-subarray.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://buptwc.com/2018/10/08/Leetcode-918-Maximum-Sum-Circular-Subarray/ class Solution(object): def maxSubarraySumCircular(self, A): left = [A[0]] * len(A) s = [A[0]] * len(A) r_max = [s[0]] * len(A) for i in range(1,len(A)): left[i] = max(A[i], left[i-1]+...
30.328571
92
0.504004
9314c17cbcc631882c669ae90972e7988d33daaf
4,468
py
Python
autogalaxy/__init__.py
Jammy2211/PyAutoAstro
4c26455dba047b6187bf1adf193591e050107d03
[ "MIT" ]
4
2019-10-29T13:27:23.000Z
2020-03-24T11:13:35.000Z
autogalaxy/__init__.py
Jammy2211/PyAutoAstro
4c26455dba047b6187bf1adf193591e050107d03
[ "MIT" ]
null
null
null
autogalaxy/__init__.py
Jammy2211/PyAutoAstro
4c26455dba047b6187bf1adf193591e050107d03
[ "MIT" ]
3
2020-02-12T10:29:59.000Z
2020-03-24T11:13:53.000Z
from autoarray.dataset import preprocess from autoarray.dataset.imaging import SettingsImaging from autoarray.dataset.imaging import Imaging from autoarray.dataset.interferometer import Interferometer from autoarray.dataset.interferometer import SettingsInterferometer from autoarray.instruments import acs from au...
46.541667
85
0.849373
9314d007d24148151d10acc06d9ecb74fc2c13e3
1,940
py
Python
PythonAPI/examples/show_recorder_actors_blocked.py
manel-jrad/carla
999fb086b69ed627ed48c1068f181c6213fde046
[ "MIT" ]
2
2022-02-22T04:17:15.000Z
2022-03-08T03:53:44.000Z
Recorder - Blocked Actors Information Code.py
VEDANTGHODKE/Swayatta---Autonomous-Driver-Assistance-System-ADAS-For-Indian-Environments
7f0361c0f52e4e7623d975725497648cf582f36f
[ "MIT" ]
null
null
null
Recorder - Blocked Actors Information Code.py
VEDANTGHODKE/Swayatta---Autonomous-Driver-Assistance-System-ADAS-For-Indian-Environments
7f0361c0f52e4e7623d975725497648cf582f36f
[ "MIT" ]
1
2022-03-08T09:45:28.000Z
2022-03-08T09:45:28.000Z
#!/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import glob import os import sys try: sys.path.append(glob....
24.556962
101
0.570103
9314d468dc79f378119ad0e124c7d26895022599
11,925
py
Python
veros/routines.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
115
2019-11-23T02:31:30.000Z
2022-03-29T12:58:30.000Z
veros/routines.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
207
2019-11-21T13:21:22.000Z
2022-03-31T23:36:09.000Z
veros/routines.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
21
2020-01-28T13:13:39.000Z
2022-02-02T13:46:33.000Z
import functools import inspect import threading from contextlib import ExitStack, contextmanager from veros import logger from veros.state import VerosState # stack helpers class RoutineStack: def __init__(self): self.keep_full_stack = False self._stack = [] self._current_idx = [] ...
30.266497
119
0.620461
931518f35a97d253616b53a09d547a9a82b5ed4c
4,591
py
Python
test/unit/rmq_2_sysmon/main.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
test/unit/rmq_2_sysmon/main.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
test/unit/rmq_2_sysmon/main.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: main.py Description: Unit testing of main in rmq_2_sysmon.py. Usage: test/unit/rmq_2_sysmon/main.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info < (2, 7): import unittest2 as unitt...
24.550802
75
0.676541
93151aa3a6ed2bf436671cad528c1953e4d3e782
8,187
py
Python
lib/rucio/daemons/mock/conveyorinjector.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/mock/conveyorinjector.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/mock/conveyorinjector.py
elichad/rucio
0705e4124e18c853c4661f85e00238cb0c6bd750
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2018 CERN for the benefit of the ATLAS collaboration. # # 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...
37.555046
154
0.556003
93154c8ea3bd32a97d491081cf28146f341023c7
12,315
py
Python
mwe_discov_eval/measures/lexical_predictability_ratio.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
mwe_discov_eval/measures/lexical_predictability_ratio.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
mwe_discov_eval/measures/lexical_predictability_ratio.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 22 10:46:58 2020 @author: nicol """ from collections import defaultdict import numpy as np from mwe_discov_eval import messages from .utils import DatabaseManager, MeasureCalculator, set_display def _skipos(skipgram): skipgram = skipgram.split(' ') i = skipgram...
38.245342
79
0.58449
93155ef90ef714f6db616145cbf68884be2ea520
35,191
py
Python
lib/core/test.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
2
2019-10-08T11:33:20.000Z
2021-05-21T10:10:27.000Z
lib/core/test.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
null
null
null
lib/core/test.py
YeLyuUT/VOSDetectron
add644f8f8ad3dd17098f0afa161335d457f05d6
[ "MIT" ]
2
2019-10-08T11:33:22.000Z
2022-02-20T16:07:37.000Z
# Written by Roy Tseng # # Based on: # -------------------------------------------------------- # Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # ...
37.517058
98
0.659117
931561fbaea014250aa23f77cbca3ebbfa7536d0
42,648
py
Python
synapseclient/__main__.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
synapseclient/__main__.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
synapseclient/__main__.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
""" *************************** Synapse command line client *************************** The Synapse Python Client can be used from the command line via the **synapse** command. Installation ============ The command line client is installed along with `installation of the Synapse Python client <http://docs.synapse.or...
50.35183
249
0.665776
9315666745473de12e23ca6cbef8f79cb6a42749
4,642
py
Python
GUI.py
RubenTeunisse/Synthetic_Scans
54f979fb1a794dd05cdd81b77306c7265cba711d
[ "MIT" ]
null
null
null
GUI.py
RubenTeunisse/Synthetic_Scans
54f979fb1a794dd05cdd81b77306c7265cba711d
[ "MIT" ]
null
null
null
GUI.py
RubenTeunisse/Synthetic_Scans
54f979fb1a794dd05cdd81b77306c7265cba711d
[ "MIT" ]
null
null
null
""" Created by Ruben Teunisse 2021 """ import joblib from tkinter import * from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import matplotlib.pyplot as plt import numpy as np import math # Get models #model = joblib.load('./model') #encoder = joblib.load('./encoder') decoder = joblib.load('...
33.157143
148
0.659199
931575a4988d895d98528cb9636e77267a67a5fc
1,443
py
Python
source/api/responses/__init__.py
thearchitector/When2Meet2
bca33501171ff30a65eec715493679770e17bb48
[ "BSD-3-Clause" ]
4
2019-04-15T01:17:56.000Z
2019-06-25T19:45:30.000Z
source/api/responses/__init__.py
thearchitector/When2Meet2
bca33501171ff30a65eec715493679770e17bb48
[ "BSD-3-Clause" ]
null
null
null
source/api/responses/__init__.py
thearchitector/When2Meet2
bca33501171ff30a65eec715493679770e17bb48
[ "BSD-3-Clause" ]
null
null
null
from flask import jsonify from flask.json import JSONEncoder from datetime import datetime __all__ = ["Responses", "ISOAwareEncoder"] class Responses(): """ Contains methods to simplify responding to client requests, specifically failure and success JSONs. """ def success(msg, **kwargs): ...
37
97
0.689536
93158df0efff8ea1f5c1454490126fe700b16814
193
py
Python
terrascript/petstore/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/petstore/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/petstore/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/petstore/d.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 )
21.444444
79
0.766839
93158f0591b18e621f61db67f866ae48cb5334f8
17,096
py
Python
Slider.py
Jarno-de-Wit/PygButtons
c956514a00146bf98e8efee64fb9c2f4aee2722d
[ "MIT" ]
null
null
null
Slider.py
Jarno-de-Wit/PygButtons
c956514a00146bf98e8efee64fb9c2f4aee2722d
[ "MIT" ]
null
null
null
Slider.py
Jarno-de-Wit/PygButtons
c956514a00146bf98e8efee64fb9c2f4aee2722d
[ "MIT" ]
null
null
null
from Base import Buttons from Button import Button import os os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "" import pygame import math class Slider(Buttons): """ Creates a Slider, which allows the user to input a value within a given range. pos: (left, top) - The topleft position before scaling. size:...
51.493976
261
0.638453
93159e4d8c907525fd165ab1319654b5ef74fc54
2,747
py
Python
aws/load_config.py
maruina/kanedias
c10e5a25be58b18aa62d5d4fae79b1e10616b560
[ "MIT" ]
1
2016-12-02T22:39:16.000Z
2016-12-02T22:39:16.000Z
aws/load_config.py
maruina/kanedias
c10e5a25be58b18aa62d5d4fae79b1e10616b560
[ "MIT" ]
null
null
null
aws/load_config.py
maruina/kanedias
c10e5a25be58b18aa62d5d4fae79b1e10616b560
[ "MIT" ]
null
null
null
import os import sys from boto.pyami.config import Config from fabric.colors import red # Load the configuration file if os.path.exists('config.ini'): boto_config = Config() boto_config.load_credential_file('config.ini') if boto_config.items('Credentials'): AWS_ID = boto_config.get('Credentials', '...
30.865169
92
0.569712
9315cd3973f0b0f36180775506ad15012c77d2fc
84,311
py
Python
oscar/lib/python2.7/site-packages/faker/providers/address/sk_SK/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/address/sk_SK/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/address/sk_SK/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as AddressProvider class Provider(AddressProvider): city_formats = ('{{city_name}}', ) street_name_formats = ('{{street_name}}', ) street_address_formats = ('{{street_name}} {{building_number}}', ) address_format...
72.807427
82
0.605651
9315e37d68787147a56ce1dd470562435a8ee071
158
py
Python
hivemind/client/optim/__init__.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
hivemind/client/optim/__init__.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
hivemind/client/optim/__init__.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
from hivemind.client.optim.simple import ParameterAveragingOptimizer, DecentralizedSGD from hivemind.client.optim.collaborative import CollaborativeOptimizer
52.666667
86
0.898734
931615d0491aad82de2f295667a77206e4d77ba7
2,128
py
Python
lace/serialization/ply/__init__.py
bodylabs/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
2
2020-05-30T10:28:34.000Z
2021-02-17T13:47:23.000Z
lace/serialization/ply/__init__.py
lace/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
11
2019-08-29T16:53:29.000Z
2021-07-01T06:24:37.000Z
lace/serialization/ply/__init__.py
metabolize/lace
75cee6a118932cd027692d6cfe36b3726b3a4a5c
[ "BSD-2-Clause" ]
5
2017-05-09T16:18:16.000Z
2018-05-08T16:16:09.000Z
from lace.serialization.ply.plyutils import error as PLYError # pylint can't find the exception type in the c code pylint: disable=no-name-in-module __all__ = ['load', 'dump', 'EXTENSION'] EXTENSION = '.ply' def load(f, existing_mesh=None): from baiji.serialization.util.openlib import ensure_file_open_and_call ...
40.923077
152
0.658835