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
e840788ecf5147ff65061a9c44fd23a993cdbaa1
26,500
py
Python
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/operations/_gateway_custom_domains_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/operations/_gateway_custom_domains_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2022_01_01_preview/operations/_gateway_custom_domains_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.093178
231
0.675774
e84081b24faba4bde899639aeea6cc2a01a84247
6,875
py
Python
utils/curriculum_clustering.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
19
2020-10-29T14:22:58.000Z
2022-03-31T13:45:56.000Z
utils/curriculum_clustering.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
null
null
null
utils/curriculum_clustering.py
JiarunLiu/Co-correcting
4e3ca4951de5d73ca812bbbcfe666273082ff2fd
[ "Apache-2.0" ]
7
2021-09-15T05:16:32.000Z
2022-02-02T01:31:07.000Z
# Implementation of Paper: # CurriculumNet: Weakly Supervised Learning from Large-Scale Web Images # Github: https://github.com/MalongTech/research-curriculumnet.git import time import numpy as np from sklearn.base import BaseEstimator, ClusterMixin from sklearn.cluster import KMeans from sklearn.decomposition imp...
46.768707
119
0.614109
e840883d54cf6873e63b1f577fb97316e1090f11
16,090
py
Python
readthedocs/rtd_tests/tests/test_doc_building.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/rtd_tests/tests/test_doc_building.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/rtd_tests/tests/test_doc_building.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os.path import shutil import uuid import re from django.test import TestCase from django.contrib.auth.models import User from mock import patch, Mock, PropertyMock from docker.errors import APIError as DockerAPIError, DockerException from readthedocs.projects.models import Project from...
40.024876
81
0.60404
e840a130b25f7e043b56e080eb805eb5ec2635bf
5,666
py
Python
src/kaldi_augmentation/make_DEMAND+chime3background.py
jsalt2019-diadet/jsalt2019-diadet
b64198e3a4e2fe1a91e537073b5089a733dfc370
[ "Apache-2.0" ]
7
2019-10-30T08:45:08.000Z
2021-08-11T08:03:37.000Z
src/kaldi_augmentation/make_DEMAND+chime3background.py
jsalt2019-diadet/jsalt2019-diadet
b64198e3a4e2fe1a91e537073b5089a733dfc370
[ "Apache-2.0" ]
1
2020-08-19T23:12:37.000Z
2020-08-26T14:55:28.000Z
src/kaldi_augmentation/make_DEMAND+chime3background.py
jsalt2019-diadet/jsalt2019-diadet
b64198e3a4e2fe1a91e537073b5089a733dfc370
[ "Apache-2.0" ]
8
2019-10-27T00:12:50.000Z
2021-09-22T12:05:57.000Z
#!/usr/bin/env python # python >= 2.7 required import os, errno, fnmatch from collections import OrderedDict # https://stackoverflow.com/a/600612/3342981 def mkdir_p(path): try: os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): pass ...
38.808219
99
0.589305
e840aaea766071a402b464deba26e57af3ad55db
7,139
py
Python
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/_event_hub_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/_event_hub_management_client.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/_event_hub_management_client.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
52.881481
173
0.74128
e840e3eb4daf0cf57349bd6e9e3b22c34089ed66
2,478
py
Python
parameters.py
Koen-Git/ColorSymDetect
5d6bb6734063f4a09c9a153527a446ce5c02a5b0
[ "MIT" ]
1
2022-03-07T20:08:32.000Z
2022-03-07T20:08:32.000Z
parameters.py
Koen-Git/ColorSymDetect
5d6bb6734063f4a09c9a153527a446ce5c02a5b0
[ "MIT" ]
null
null
null
parameters.py
Koen-Git/ColorSymDetect
5d6bb6734063f4a09c9a153527a446ce5c02a5b0
[ "MIT" ]
null
null
null
# Resize fraction of images # Lower values will result in higher quality images, but also longer computation time # Different values possible require adjustments of threshold parameters for optimal results # 1 will not resize the image # Default: 4 resize = 4 # Minimum threshold for symmetry scores of main reflection...
45.054545
145
0.793382
e84115bffb4ff906c412275ce81f08144a7e1627
1,029
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/activations/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/activations/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/keras/activations/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
"""Imports for Python API. This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script. """ from tensorflow.python.keras._impl.keras.activations import deserialize from tensorflow.python.keras._impl.keras.activations import elu from tensorflow.python.keras._imp...
57.166667
73
0.854227
e84121ab64790903d14da896dca23484a0f4acd9
14,823
py
Python
tests/lib/common.py
sravichandran-contractor/boardfarm
cb8cbe75db5f0323bb56cf9563d7e9b4e940a880
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/lib/common.py
sravichandran-contractor/boardfarm
cb8cbe75db5f0323bb56cf9563d7e9b4e940a880
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/lib/common.py
sravichandran-contractor/boardfarm
cb8cbe75db5f0323bb56cf9563d7e9b4e940a880
[ "BSD-3-Clause-Clear" ]
null
null
null
# Copyright (c) 2015 # # All rights reserved. # # This file is distributed under the Clear BSD license. # The full text can be found in LICENSE in the root directory. # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 import json import pexpect import sys import subprocess import time import unittest2 import urllib...
37.813776
175
0.599406
e84127cec4bcb6db5a2ae6cf3ac5d8c6e286f4dc
15,560
py
Python
cinder/tests/functional/test_group_snapshots.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/functional/test_group_snapshots.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/functional/test_group_snapshots.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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 # # Unless required ...
44.330484
79
0.650578
e841365fdb4cc90f794626f878fab13ae35612c8
395
py
Python
bibliohub/bibliohub/asgi.py
apjanco/bibliohub
95da034d2e136bd4ae25a9b6932fd19124dacd9b
[ "MIT" ]
null
null
null
bibliohub/bibliohub/asgi.py
apjanco/bibliohub
95da034d2e136bd4ae25a9b6932fd19124dacd9b
[ "MIT" ]
null
null
null
bibliohub/bibliohub/asgi.py
apjanco/bibliohub
95da034d2e136bd4ae25a9b6932fd19124dacd9b
[ "MIT" ]
null
null
null
""" ASGI config for bibliohub project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
e8414ca18e29a92752adce412acde15423954f1f
5,212
py
Python
tests/test_draw_keypoint.py
Erotemic/vtool
5fadd03c4231a02f522ff48b8f6edbfbcd0c6945
[ "Apache-2.0" ]
5
2015-04-17T11:27:00.000Z
2017-11-29T11:31:51.000Z
tests/test_draw_keypoint.py
Erotemic/vtool
5fadd03c4231a02f522ff48b8f6edbfbcd0c6945
[ "Apache-2.0" ]
1
2015-09-17T08:17:41.000Z
2015-09-17T13:23:12.000Z
tests/test_draw_keypoint.py
Erotemic/vtool
5fadd03c4231a02f522ff48b8f6edbfbcd0c6945
[ "Apache-2.0" ]
3
2016-07-04T18:22:56.000Z
2017-03-03T22:50:19.000Z
#!/usr/bin/env python # if False: # from __future__ import absolute_import, division, print_function # from six.moves import range # from plottool_ibeis import draw_func2 as df2 # from plottool_ibeis import mpl_keypoint # from plottool_ibeis import mpl_sift # NOQA # import vtool_ibeis.keypoint ...
32.779874
108
0.493477
e841596fbceb5d12952b5fd433016eb922a2dcb9
25,118
py
Python
google/cloud/pubsublite_v1/services/cursor_service/client.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
null
null
null
google/cloud/pubsublite_v1/services/cursor_service/client.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
null
null
null
google/cloud/pubsublite_v1/services/cursor_service/client.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
42.144295
107
0.650092
e841a488b26bfe5501b3403b8d1e832b57a93dc4
650
py
Python
exome_slicer/graphql/users/filters.py
genomics-geek/exome_slicer
e1e69fac4ec634b07bab353a191ce783ec766c53
[ "MIT" ]
2
2018-04-09T14:09:59.000Z
2019-09-24T08:27:23.000Z
exome_slicer/graphql/users/filters.py
genomics-geek/exome_slicer
e1e69fac4ec634b07bab353a191ce783ec766c53
[ "MIT" ]
4
2018-01-24T18:41:20.000Z
2018-12-07T16:41:09.000Z
exome_slicer/graphql/users/filters.py
genomics-geek/exome_slicer
e1e69fac4ec634b07bab353a191ce783ec766c53
[ "MIT" ]
1
2018-01-17T23:56:52.000Z
2018-01-17T23:56:52.000Z
from django.contrib.auth import get_user_model from django.contrib.auth.models import Group, Permission from django.contrib.contenttypes.models import ContentType from ..filterset import BaseFilterSet class UserFilter(BaseFilterSet): class Meta: model = get_user_model() fields = '__all__' clas...
19.117647
58
0.7
e841a8a5190fd0e7106a109d3d92eab9f1b43971
1,255
py
Python
larch/wxlib/floatspin.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/wxlib/floatspin.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/wxlib/floatspin.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ floatspin controls """ import wx from wx.lib.agw import floatspin as fspin from wxutils import get_icon, is_wxPhoenix def FloatSpin(parent, value=0, action=None, tooltip=None, size=(100, -1), digits=1, increment=1, **kws): """FloatSpin with action and tooltip""" if v...
32.179487
67
0.630279
e841c76d1d1956358d50a9682fc1acc4732a9e3c
10,955
py
Python
run_sh/sources/select_result.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
run_sh/sources/select_result.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
run_sh/sources/select_result.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __...
35.800654
147
0.621817
e841f3766d4bd9ccb858f88e63a81da33e802b62
7,689
py
Python
Client.py
FlamesLLC/UberduckM1-Translatorv0.1x
aa21909291fc7e0973e1d32f7e90492fcec5cfb2
[ "MIT" ]
null
null
null
Client.py
FlamesLLC/UberduckM1-Translatorv0.1x
aa21909291fc7e0973e1d32f7e90492fcec5cfb2
[ "MIT" ]
null
null
null
Client.py
FlamesLLC/UberduckM1-Translatorv0.1x
aa21909291fc7e0973e1d32f7e90492fcec5cfb2
[ "MIT" ]
null
null
null
## write a app that makes generated trained voices on singers on any mp3 file and upload it to uberduck.ai server print("Writing request v0.1") import requests import json import os import sys import time import wave import pyaudio import numpy as np import wave import io import subprocess import google as g ...
47.171779
1,414
0.76668
e8425e5fd6ab4d4d05a9f9a9b15b01d852e138df
301
py
Python
math/letttercasepermutation.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
math/letttercasepermutation.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
math/letttercasepermutation.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution: def letterCasePermutation(self, S: str) -> [str]: res = [''] for ch in S: if ch.isalpha(): res = [i+j for i in res for j in [ch.upper(), ch.lower()]] else: res = [i+ch for i in res] return res
30.1
74
0.438538
e8427d6d2cef7083b70e3d647849b07eba7d4764
27
py
Python
btd6_memory_info/generated/UnityEngine/UIElements/FocusController/focus_controller.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/UIElements/FocusController/focus_controller.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/UIElements/FocusController/focus_controller.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class FocusController: pass
27
27
0.888889
e84281510dd068c97d7f69003754359a7bce4f43
6,806
py
Python
artellapipe/managers/tags.py
ArtellaPipe/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
7
2019-10-28T05:18:30.000Z
2020-08-21T05:36:52.000Z
artellapipe/managers/tags.py
tpoveda/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
4
2020-01-22T02:41:54.000Z
2020-03-17T10:49:12.000Z
artellapipe/managers/tags.py
tpoveda/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains manager that handles Artella Project DCC tags """ from __future__ import print_function, division, absolute_import __author__ = "Tomas Poveda" __license__ = "MIT" __maintainer__ = "Tomas Poveda" __email__ = "tpovedatd@gmail.com" import tpDcc as ...
34.548223
109
0.6268
e842928cad00ee22351dff2cf1de07b8c7aecaca
1,017
py
Python
docs/conf.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
6
2017-04-02T20:14:21.000Z
2022-01-16T03:38:30.000Z
docs/conf.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
null
null
null
docs/conf.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
1
2017-05-08T06:42:37.000Z
2017-05-08T06:42:37.000Z
from headerparser import __version__ project = "headerparser" author = "John T. Wodder II" copyright = "2017-2019 John T. Wodder II" extensions = [ "sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.todo", "sphinx.ext.viewcode", "sphinx_copybutton", ] autodoc_default_options = { "mem...
21.638298
50
0.705015
e8429f4d2d1e55571bdc4764b86a7d530da11ece
33,873
py
Python
models/transformers_master/models/marian/convert_marian_tatoeba_to_pytorch.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
models/transformers_master/models/marian/convert_marian_tatoeba_to_pytorch.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
models/transformers_master/models/marian/convert_marian_tatoeba_to_pytorch.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
# Copyright 2020 The HuggingFace Team. 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 applicabl...
26.692671
175
0.403655
e842abfe5939ba0f16df4a8e7d0640ccf6c220c8
1,507
py
Python
wolk_gateway_module/interface/configuration_provider.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
null
null
null
wolk_gateway_module/interface/configuration_provider.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
2
2020-11-16T15:10:36.000Z
2020-11-20T13:10:13.000Z
wolk_gateway_module/interface/configuration_provider.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
null
null
null
"""Stub method for providing current device configuration options.""" # Copyright 2019 WolkAbout Technology s.r.o. # # 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...
28.980769
76
0.678832
e842e2209edfb442646497c24310a09fa72de108
594
py
Python
puzzles/count_vegetables/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
puzzles/count_vegetables/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
puzzles/count_vegetables/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
def count_vegetables(s): """ split string and use Counter object to count each string, convert them to a dictionary for each Key value pare in dictionary, add to a list, sort the list in descending order by count, then by alphabetical order by using sorted return this list """ p = s.split() ...
45.692308
114
0.63468
e8430ccf07e84eb8041225ed49a1dbe3c6f72918
8,892
py
Python
vpype_cli/substitution.py
PPAC37/vpype
3aee1e4f769866e1a90456e0caa09010fc543fae
[ "MIT", "BSD-3-Clause" ]
null
null
null
vpype_cli/substitution.py
PPAC37/vpype
3aee1e4f769866e1a90456e0caa09010fc543fae
[ "MIT", "BSD-3-Clause" ]
null
null
null
vpype_cli/substitution.py
PPAC37/vpype
3aee1e4f769866e1a90456e0caa09010fc543fae
[ "MIT", "BSD-3-Clause" ]
null
null
null
import glob import os import pathlib import sys from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional import asteval import vpype as vp if TYPE_CHECKING: # pragma no cover from .state import State class PropertySubstitutionError(Exception): """Error while performing property subs...
32.217391
95
0.590868
e84320738a27a0634d7b2044c2c8502cbf53b9c1
6,081
py
Python
homeassistant/components/alarm_control_panel/envisalink.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/alarm_control_panel/envisalink.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/alarm_control_panel/envisalink.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support for Envisalink-based alarm control panels (Honeywell/DSC). For more details about this platform, please refer to the documentation at https://home-assistant.io/components/alarm_control_panel.envisalink/ """ from os import path import logging import voluptuous as vol import homeassistant.components.alarm_c...
36.854545
78
0.647755
e8432fcbf042c5036ba768333d6a4077fd57d5d9
465
py
Python
day06/short.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
day06/short.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
day06/short.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
import util from functools import cache @cache def f(a): return f(a-9) + f(a-7) if a>0 else 1 def solve(arr, days): #return sum(f(days-t) for t in arr) res = 0 for i,t in enumerate(arr): print(i) res += f(days-t) data = util.load_int_list('input.txt') result = solve(data, 80) print("P...
19.375
40
0.647312
e84334315c96cef21cf3a8c44a695d48f104b503
6,228
py
Python
goal_prox/envs/ant.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
goal_prox/envs/ant.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
goal_prox/envs/ant.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import os import numpy as np from gym import spaces from gym import utils from gym.envs.mujoco import mujoco_env from mujoco_py.builder import MujocoException class AntGoalEnv(mujoco_env.MujocoEnv, utils.EzPickle): def __init__(self, angle_range=(0, np.pi), distance=5): self.goal = np.array([10, 0]) ...
34.032787
101
0.547046
e8434408c57c00ab07b222f4ecb900c0ef882789
3,522
py
Python
tests/python/relax/test_analysis.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
null
null
null
tests/python/relax/test_analysis.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
null
null
null
tests/python/relax/test_analysis.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.72973
70
0.62862
e8434e3379ae971dbb2907aadebe031314f305a1
1,199
py
Python
scripts/py/fix_abstract_version.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
scripts/py/fix_abstract_version.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
scripts/py/fix_abstract_version.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
from typing import Union from elasticsearch import NotFoundError from legislative_act import model as dm s = dm.Search() s = s.filter('term', doc_type='versionsmap') c2v = {} for hit in s.scan(): if len(hit.availabilities) == 1: continue for part in hit.exposed_and_hidden: if len(part.expos...
26.065217
94
0.629691
e8437a733993e24e3b06fd303986021759dcf599
1,773
py
Python
tests/test_pipeline.py
MO-RISE/crowsnest-connector-ais-tcp
0625899343f6fba539e464af742d697aa78698c8
[ "Apache-2.0" ]
null
null
null
tests/test_pipeline.py
MO-RISE/crowsnest-connector-ais-tcp
0625899343f6fba539e464af742d697aa78698c8
[ "Apache-2.0" ]
null
null
null
tests/test_pipeline.py
MO-RISE/crowsnest-connector-ais-tcp
0625899343f6fba539e464af742d697aa78698c8
[ "Apache-2.0" ]
1
2022-01-15T13:29:07.000Z
2022-01-15T13:29:07.000Z
import main import json from pathlib import Path from unittest.mock import MagicMock from datetime import datetime from paho.mqtt.client import MQTTMessage from brefv.envelope import Envelope from pyais.messages import NMEAMessage, JSONEncoder as BytesJSONEncoder def test_from_mqtt(): envelope = Envelope( ...
24.971831
87
0.711224
e8438d750750200a6a6585463125c640acb3cb98
5,447
py
Python
pudb/lowlevel.py
albfan/pudb
0a8b240fe4d05e6e3ab14f6f14d9926f8936e284
[ "MIT" ]
null
null
null
pudb/lowlevel.py
albfan/pudb
0a8b240fe4d05e6e3ab14f6f14d9926f8936e284
[ "MIT" ]
null
null
null
pudb/lowlevel.py
albfan/pudb
0a8b240fe4d05e6e3ab14f6f14d9926f8936e284
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from pudb.py3compat import PY3 # {{{ breakpoint validity def generate_executable_lines_for_code(code): l = code.co_firstlineno yield l if PY3: for c in code.co_lnotab[1::2]: l += c yield l else: f...
26.570732
78
0.633193
e8439a6ba7a2133300fe6e265c88f933f9ecafe9
6,494
py
Python
cartpole-learn-and-morph.py
MarkSelden/mbrl-lib
26845b3a5d8930e00726cc56bf17707a7ac45083
[ "MIT" ]
null
null
null
cartpole-learn-and-morph.py
MarkSelden/mbrl-lib
26845b3a5d8930e00726cc56bf17707a7ac45083
[ "MIT" ]
null
null
null
cartpole-learn-and-morph.py
MarkSelden/mbrl-lib
26845b3a5d8930e00726cc56bf17707a7ac45083
[ "MIT" ]
null
null
null
import copy import os import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import torch import hydra from omegaconf import DictConfig, OmegaConf import mbrl.env.termination_fns as termination_fns import mbrl.env.reward_fns as reward_fns import mbrl.models as models import mbrl.planning as plannin...
35.486339
164
0.646443
e8439de6089b6d7892e9a506a5265d4174ca3045
8,688
py
Python
tests/python/unittest/test_codegen_cuda.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_codegen_cuda.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_codegen_cuda.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
1
2019-05-01T16:57:15.000Z
2019-05-01T16:57:15.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
41.971014
114
0.582643
e843d42cec17bb14ae41e8dea49af1b919257c64
9,578
py
Python
Smarter_Contracts_Bash/meekmusa_Smart_ContractBash/contract.py
ChoiceCoin/Smart_Contracts
a85623dc65361c517394947acf601affccac5454
[ "ECL-2.0", "Apache-2.0" ]
28
2021-09-13T08:34:58.000Z
2022-02-02T06:49:56.000Z
Smarter_Contracts_Bash/meekmusa_Smart_ContractBash/contract.py
ChoiceCoin/Smart_Contracts
a85623dc65361c517394947acf601affccac5454
[ "ECL-2.0", "Apache-2.0" ]
4
2021-09-13T21:47:09.000Z
2021-09-24T07:12:08.000Z
Smarter_Contracts_Bash/meekmusa_Smart_ContractBash/contract.py
ChoiceCoin/Smart_Contracts
a85623dc65361c517394947acf601affccac5454
[ "ECL-2.0", "Apache-2.0" ]
23
2021-09-13T04:55:18.000Z
2022-03-22T19:40:50.000Z
from pyteal import * def approval_program(): seller_key = Bytes("seller") nft_id_key = Bytes("nft_id") start_time_key = Bytes("start") end_time_key = Bytes("end") reserve_amount_key = Bytes("reserve_amount") min_bid_increment_key = Bytes("min_bid_inc") num_bids_key = Bytes("num_b...
39.578512
111
0.515974
e84440771be6db506095cbb762671477f1f85619
407
py
Python
pantsuitUp/interviewMe/migrations/0017_remove_feedback_input_text.py
PantsuitUp/Whack2017
9463b90b0a38a5ccc57062190cc692db7155b3a0
[ "Apache-2.0" ]
null
null
null
pantsuitUp/interviewMe/migrations/0017_remove_feedback_input_text.py
PantsuitUp/Whack2017
9463b90b0a38a5ccc57062190cc692db7155b3a0
[ "Apache-2.0" ]
4
2020-06-05T17:52:33.000Z
2022-03-11T23:17:53.000Z
pantsuitUp/interviewMe/migrations/0017_remove_feedback_input_text.py
PantsuitUp/Whack2017
9463b90b0a38a5ccc57062190cc692db7155b3a0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-11 22:00 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('interviewMe', '0016_feedback_raw_passivity'), ] operations = [ migrations.RemoveFie...
20.35
55
0.626536
e84440b17e3d4030160a896375b204521b49d379
5,135
py
Python
autograd/scipy/special.py
kewlcoder/autograd
ce3d9a4ad067a14cbf6ae27ccbd75936ff253752
[ "MIT" ]
6,119
2015-03-10T03:55:58.000Z
2022-03-31T11:54:19.000Z
autograd/scipy/special.py
kewlcoder/autograd
ce3d9a4ad067a14cbf6ae27ccbd75936ff253752
[ "MIT" ]
523
2015-03-10T11:59:23.000Z
2022-03-05T15:31:59.000Z
autograd/scipy/special.py
kewlcoder/autograd
ce3d9a4ad067a14cbf6ae27ccbd75936ff253752
[ "MIT" ]
949
2015-03-11T20:04:20.000Z
2022-03-31T12:13:11.000Z
from __future__ import absolute_import import scipy.special import autograd.numpy as np from autograd.extend import primitive, defvjp, defjvp from autograd.numpy.numpy_vjps import unbroadcast_f, repeat_to_match_shape ### Beta function ### beta = primitive(scipy.special.beta) betainc = primitive(scipy.special.betain...
40.117188
117
0.655891
e8444446ec042af80220bbd9057c37613c9cedc9
4,044
py
Python
ryu/openexchange/test/multi_network.py
xiaobinglu/Ryu-Qos
0da078745a9c07a53905b542b4adad058fd1fd2d
[ "Apache-2.0" ]
3
2017-05-16T11:24:05.000Z
2021-05-15T13:59:44.000Z
ryu/openexchange/test/multi_network.py
xiaobinglu/Ryu-Qos
0da078745a9c07a53905b542b4adad058fd1fd2d
[ "Apache-2.0" ]
null
null
null
ryu/openexchange/test/multi_network.py
xiaobinglu/Ryu-Qos
0da078745a9c07a53905b542b4adad058fd1fd2d
[ "Apache-2.0" ]
2
2016-08-20T18:07:16.000Z
2017-05-16T11:24:07.000Z
#!/usr/bin/python """ This example create 7 sub-networks to connect 7 domain controllers. Each domain network contains at least 5 switches. For an easy test, we add 2 hosts per switch. So, in our topology, we have at least 35 switches and 70 hosts. Hope it will work perfectly. """ from mininet....
32.095238
78
0.660732
e8445d055fe84d4f13d6234b4670608dcb29b5db
5,480
py
Python
code/lib/toscanfv/toscanfv_rdcl_graph.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/lib/toscanfv/toscanfv_rdcl_graph.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/lib/toscanfv/toscanfv_rdcl_graph.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
import json import logging import copy from lib.rdcl_graph import RdclGraph from toscaparser.tosca_template import ToscaTemplate from translator.hot.tosca_translator import TOSCATranslator logging.basicConfig(level=logging.DEBUG) log = logging.getLogger('ToscanfvRdclGraph') class ToscanfvRdclGraph(RdclGraph): ""...
44.918033
148
0.530839
e844730958164188ada3959e14a746bac4725894
10,054
py
Python
name disambiguation/Text_Clustering/clustering.py
javafish/BigDataKnowledgeDiscovery
015678fd2b34867abb951c0ea3746d8b4700a1b2
[ "MIT" ]
null
null
null
name disambiguation/Text_Clustering/clustering.py
javafish/BigDataKnowledgeDiscovery
015678fd2b34867abb951c0ea3746d8b4700a1b2
[ "MIT" ]
null
null
null
name disambiguation/Text_Clustering/clustering.py
javafish/BigDataKnowledgeDiscovery
015678fd2b34867abb951c0ea3746d8b4700a1b2
[ "MIT" ]
null
null
null
import xml.etree.cElementTree as ET import csv import codecs from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity import pandas as pd import matplotlib as plt from gensim.models import doc2vec import logging import numpy as np from sklearn.cluster ...
39.120623
121
0.563756
e844789c393c59aa07748226eb6bf44ed021782c
1,502
py
Python
ERation/eadmin/urls.py
mishelshaji/ERation
0e755ae63ae2c9cc009e18b72425ac508670a1cf
[ "MIT" ]
null
null
null
ERation/eadmin/urls.py
mishelshaji/ERation
0e755ae63ae2c9cc009e18b72425ac508670a1cf
[ "MIT" ]
null
null
null
ERation/eadmin/urls.py
mishelshaji/ERation
0e755ae63ae2c9cc009e18b72425ac508670a1cf
[ "MIT" ]
null
null
null
from django.urls import path from . import views as v urlpatterns = [ path('', v.home, name='adminhome'), path('login/', v.usr_login, name='user_login'), path('newcard/', v.newcard, name='newcard'), path('managecard/', v.manage_card, name='managecard'), path('managecard/<int:id>/', v.manage_card, n...
42.914286
84
0.685087
e8448d0600d55945b4fc1c2363ee73e879bd2250
14,668
py
Python
build/wg_cmake.py
wgsyd/wgtf
d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed
[ "BSD-3-Clause" ]
28
2016-06-03T05:28:25.000Z
2019-02-14T12:04:31.000Z
build/wg_cmake.py
wgsyd/wgtf
d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed
[ "BSD-3-Clause" ]
null
null
null
build/wg_cmake.py
wgsyd/wgtf
d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed
[ "BSD-3-Clause" ]
14
2016-06-03T05:52:27.000Z
2019-03-21T09:56:03.000Z
import argparse import cStringIO import getpass import glob import os from stat import * import platform import subprocess import sys import misc_helper BUILD_DIRECTORY = os.path.dirname( os.path.join( os.getcwd(), __file__ ) ) VC_XP_VARS_BAT = os.path.join( BUILD_DIRECTORY, 'vcxpvarsall.bat' ) SRC_DIRECTORY = os.path...
28.371373
119
0.678279
e8449bd7d2eb6d53907d2180d845871038f8b7fa
580
py
Python
LintCode/chapter 05/6. Merge Two Sorted Arrays/solution.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LintCode/chapter 05/6. Merge Two Sorted Arrays/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LintCode/chapter 05/6. Merge Two Sorted Arrays/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
class Solution: """ @param A: sorted integer array A @param B: sorted integer array B @return: A new sorted integer array """ # two pointers def mergeSortedArray(self, A, B): # write your code here i, j = 0, 0 res = [] while i < len(A) and j < len(B): ...
25.217391
40
0.405172
e844a81030cf95abfe8e857b97ba0ab9b9b8234c
26,746
py
Python
opsbro/misc/internalyaml/ruamel/setup.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
opsbro/misc/internalyaml/ruamel/setup.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
opsbro/misc/internalyaml/ruamel/setup.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
# # header # coding: utf-8 from __future__ import print_function, absolute_import, division, unicode_literals # # __init__.py parser import sys import os import datetime sys.path = [path for path in sys.path if path not in [os.getcwd(), '']] import platform # NOQA from _ast import * # NOQA from ast im...
37.354749
93
0.537277
e844c176c2c15c3ed02ced28b39fc33f2c9657d8
6,343
py
Python
Nlp/3. Crowdflower Search Results Relevance/kaggle/beating_the_benchmark.py
nishchalnishant/Completed_Kaggle_competitions
fc920af79f09de642e1e590cdc281bfbf5a92db3
[ "MIT" ]
null
null
null
Nlp/3. Crowdflower Search Results Relevance/kaggle/beating_the_benchmark.py
nishchalnishant/Completed_Kaggle_competitions
fc920af79f09de642e1e590cdc281bfbf5a92db3
[ "MIT" ]
null
null
null
Nlp/3. Crowdflower Search Results Relevance/kaggle/beating_the_benchmark.py
nishchalnishant/Completed_Kaggle_competitions
fc920af79f09de642e1e590cdc281bfbf5a92db3
[ "MIT" ]
null
null
null
""" Beating the Benchmark Search Results Relevance @ Kaggle __author__ : Abhishek """ import pandas as pd import numpy as np from sklearn.linear_model import LogisticRegression from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.svm import SVC from sklearn.decomposition import TruncatedSVD from ...
36.245714
98
0.663251
e844c96db337dac856e2ab99a2fccc7b79b7b44b
11,809
py
Python
napari/components/layerlist.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/components/layerlist.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/components/layerlist.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
import itertools import warnings from typing import List, Optional import numpy as np from ..layers import Layer from ..utils.list import ListModel from ..utils.naming import inc_name_count def _add(event): """When a layer is added, set its name.""" layers = event.source layer = event.item layer.nam...
34.732353
79
0.573715
e844df12f4c055d0a8695545e16039a36719be05
19,837
py
Python
python-modules/dummycontroller/dummycontroller/mission.py
isabella232/ewm-cloud-robotics
8210843df323379ded92ec14ec73b1f3ef6b2f41
[ "Apache-2.0" ]
null
null
null
python-modules/dummycontroller/dummycontroller/mission.py
isabella232/ewm-cloud-robotics
8210843df323379ded92ec14ec73b1f3ef6b2f41
[ "Apache-2.0" ]
1
2022-02-27T19:06:41.000Z
2022-02-27T19:06:41.000Z
python-modules/dummycontroller/dummycontroller/mission.py
isabella232/ewm-cloud-robotics
8210843df323379ded92ec14ec73b1f3ef6b2f41
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. # # This file is part of ewm-cloud-robotics # (see https://github.com/SAP/ewm-cloud-robotics). # # This file is licensed under the Apache Software License, v. 2 except as noted # otherwise in the LIC...
46.565728
99
0.614357
e844ee8cfa2c2313217aefd0eddefa800c31053d
3,035
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/report/models/with_default_views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/report/models/with_default_views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/report/models/with_default_views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
37.012195
78
0.662603
e844f8b8761fa6c2c03a8d99320db70611b682d0
2,661
py
Python
pycryptoki/ca_extensions/utilization_metrics.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/ca_extensions/utilization_metrics.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/ca_extensions/utilization_metrics.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
""" Module to work with utilization metrics """ import collections from ctypes import c_ulong from pycryptoki.cryptoki import (CA_ReadUtilizationMetrics, CA_ReadAllUtilizationCounters, CA_ReadAndResetUtilizationMetrics) from pycryptoki.cryptoki import CK...
33.683544
89
0.723036
e84503b40aee764197d61ca689b550a58aa6d6e0
4,480
py
Python
detection/models/roi_extractors/roi_align.py
HirataYurina/cascade-rcnn-tf2.2
f756b811ab31c9dab2a8f8afe68f46465422f64b
[ "MIT" ]
1
2021-08-12T06:51:29.000Z
2021-08-12T06:51:29.000Z
detection/models/roi_extractors/roi_align.py
HirataYurina/cascade-rcnn-tf2.2
f756b811ab31c9dab2a8f8afe68f46465422f64b
[ "MIT" ]
3
2021-04-05T08:04:39.000Z
2021-11-12T19:16:26.000Z
detection/models/roi_extractors/roi_align.py
HirataYurina/cascade-rcnn-tf2.2
f756b811ab31c9dab2a8f8afe68f46465422f64b
[ "MIT" ]
1
2021-09-06T06:05:31.000Z
2021-09-06T06:05:31.000Z
# -*- coding:utf-8 -*- # author:栗山未来ii # e-mail:1353593259@qq.com # datetime:1993/12/01 # filename:aaa.py # software: PyCharm import tensorflow as tf from detection.utils.misc import * class PyramidROIAlign(tf.keras.layers.Layer): def __init__(self, pool_shape, **kwargs): '''Implements ROI Pooling on mu...
38.956522
115
0.605357
e8450f7e5e5e2a07b62d475bf98b4bf44cd6c79d
33,422
py
Python
hlpr/services/stubs/user_pb2.py
hlpr-hackers/hlpr-backend
af83d00a54bc993f0d1964ada918e53d098db2f1
[ "MIT" ]
null
null
null
hlpr/services/stubs/user_pb2.py
hlpr-hackers/hlpr-backend
af83d00a54bc993f0d1964ada918e53d098db2f1
[ "MIT" ]
2
2020-04-05T10:59:28.000Z
2020-04-05T15:17:19.000Z
hlpr/services/stubs/user_pb2.py
hlpr-hackers/hlpr-backend
af83d00a54bc993f0d1964ada918e53d098db2f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: user.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from...
36.092873
3,116
0.737778
e84522e1961e65ed92d94a50301da2b9bf82ca21
8,262
py
Python
Tools/resultsdbpy/resultsdbpy/model/suite_context_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/resultsdbpy/resultsdbpy/model/suite_context_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/resultsdbpy/resultsdbpy/model/suite_context_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2019 Apple Inc. 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 # notice, this list of conditions and the f...
46.943182
126
0.689542
e8452969de9c1821025d9afa5b6c111d4fd4c7f9
350
py
Python
abl/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abl/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abl/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin def main(): ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() A, B, C, D = na() if A <= C <= B or C <= A <= D: print("Yes") else: print("No") if __nam...
17.5
57
0.525714
e8452bbc67cd99df4d8bec2bfc7c73f3eb63d4f2
2,782
py
Python
tests/test_jupyter_inheritance.py
jancervenka/jupyter-inheritance
a8aecf14a16e318afa77316445bf261ae019b202
[ "MIT" ]
null
null
null
tests/test_jupyter_inheritance.py
jancervenka/jupyter-inheritance
a8aecf14a16e318afa77316445bf261ae019b202
[ "MIT" ]
null
null
null
tests/test_jupyter_inheritance.py
jancervenka/jupyter-inheritance
a8aecf14a16e318afa77316445bf261ae019b202
[ "MIT" ]
null
null
null
import json import pytest from unittest import mock from src.jupyter_inheritance import ( _get_kernel_id, _get_kernel_connection_file_path, _dump_kernel_state, _wait_for_file, STORAGE_DIR, ) _MODULE_PATH = "src.jupyter_inheritance" def _assert_expected(fun, args, expected): if isinstance(expe...
24.619469
81
0.626168
e8453814b0ca7729e09c62e5ddab8cf061ce73ce
524
py
Python
LC/356.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/356.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/356.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def isReflected(self, points): """ :type points: List[List[int]] :rtype: bool """ if not points: return True s=max(points, key=lambda x:x[0])[0]+min(points, key=lambda x:x[0])[0] m=s/2.0 right=set() reflected=set() ...
30.823529
77
0.486641
e8459d7dfb0f95b118b265f354a1e0c718c8cb95
9,175
py
Python
experiments/2021-01-30-evo-dynamics/hpcc/gen_sub_multi.py
amlalejini/plastic-evolvability-avida
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2021-09-16T14:47:43.000Z
2021-10-31T04:55:16.000Z
experiments/2021-01-30-evo-dynamics/hpcc/gen_sub_multi.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
null
null
null
experiments/2021-01-30-evo-dynamics/hpcc/gen_sub_multi.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2020-08-19T20:01:14.000Z
2020-12-21T21:24:12.000Z
''' Generate slurm job submission scripts - one per condition ''' import argparse, os, sys, errno, subprocess, csv from pyvarco import CombinationCollector seed_offset = 200000 default_num_replicates = 30 job_time_request = "48:00:00" job_memory_request = "4G" job_name = "avida" executable = "avida" base_script_filen...
44.756098
142
0.616567
e845cbe19fc3fed94f1a8ac42d41a34f01a6beb2
63
py
Python
appstoreconnect/__version__.py
IlyaSkriblovsky/appstoreconnectapi
ddc8f13d1db2c4dea8c87949e749cb2b5e883568
[ "MIT" ]
null
null
null
appstoreconnect/__version__.py
IlyaSkriblovsky/appstoreconnectapi
ddc8f13d1db2c4dea8c87949e749cb2b5e883568
[ "MIT" ]
null
null
null
appstoreconnect/__version__.py
IlyaSkriblovsky/appstoreconnectapi
ddc8f13d1db2c4dea8c87949e749cb2b5e883568
[ "MIT" ]
null
null
null
VERSION = (0, 8, 3) __version__ = '.'.join(map(str, VERSION))
15.75
41
0.603175
e84602409ffc09bfa94530b83afae5afa3f5773b
952
py
Python
src/cyborgbackup/main/models/schedules.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
src/cyborgbackup/main/models/schedules.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
src/cyborgbackup/main/models/schedules.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
import logging from django.db import models from cyborgbackup.api.versioning import reverse from cyborgbackup.main.models.base import PrimordialModel analytics_logger = logging.getLogger('cyborgbackup.models.schedule') __all__ = ['Schedule'] class CyborgBackupScheduleState(models.Model): schedule_last_run = m...
22.139535
86
0.697479
e84654d4b9410984fa66a7e1c295ae2c067d3cd7
10,626
py
Python
sunpy/net/jsoc/tests/test_jsoc.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/jsoc/tests/test_jsoc.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/jsoc/tests/test_jsoc.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import tempfile import datetime import pandas as pd import astropy.table import astropy.time from astropy.time import Time as astropyTime import astropy.units as u import pytest from sunpy.net.jsoc import JSOCClient, JSOCResponse from sunpy.net.download import Results import sunpy.net...
33.840764
99
0.640128
e8465f3bb248c3300c3ff554a820b9f5949026e9
3,657
py
Python
tests/chainer_tests/functions_tests/test_convolution_2d.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/test_convolution_2d.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/test_convolution_2d.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import unittest import numpy import six.moves.cPickle as pickle import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.testing import condition from chainer.utils import conv class TestConvolu...
29.97541
78
0.622642
e84671bf2374257f53b3b4120ecad995191292ac
5,914
py
Python
dataprep/clean/clean_iban.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/clean_iban.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/clean_iban.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Clean and validate a DataFrame column containing IBAN numbers. """ # pylint: disable=too-many-lines, too-many-arguments, too-many-branches, unused-argument from typing import Any, Union from operator import itemgetter import dask.dataframe as dd import numpy as np import pandas as pd from stdnum import iban from ...
31.126316
97
0.603652
e8467ee46e1c5d75f8f772694b77c29b5c44675e
214
py
Python
src/api/core/exceptions.py
HALLOWe3n/StockCompAPI
696bd6e70d97ac7748a542ff3e95ce4347a198b0
[ "MIT" ]
null
null
null
src/api/core/exceptions.py
HALLOWe3n/StockCompAPI
696bd6e70d97ac7748a542ff3e95ce4347a198b0
[ "MIT" ]
null
null
null
src/api/core/exceptions.py
HALLOWe3n/StockCompAPI
696bd6e70d97ac7748a542ff3e95ce4347a198b0
[ "MIT" ]
null
null
null
# Created by PyCharm Professional. # User: romandemyanchuk # Date: 6/27/20 # Time: 2:08 AM # To change this template use File | Settings | File and Code Templates. class NoneCorrectFileError(Exception): pass
21.4
72
0.738318
e8469a5f40a50a98a22c52c2a50dea0731156370
5,732
py
Python
exe/procutils.py
Tristanovsk/grs
ba5da28f6df0438e15404324c3488c799fb81212
[ "MIT" ]
4
2021-06-14T20:43:22.000Z
2021-07-05T09:32:41.000Z
exe/procutils.py
Tristanovsk/grs
ba5da28f6df0438e15404324c3488c799fb81212
[ "MIT" ]
null
null
null
exe/procutils.py
Tristanovsk/grs
ba5da28f6df0438e15404324c3488c799fb81212
[ "MIT" ]
null
null
null
'''utils module dedicated to processing of massive dataset''' import os, sys import re import numpy as np import pandas as pd import glob import datetime class misc: ''' Miscellaneous utilities ''' def __init__(self): pass def wktbox(self, center_lon, center_lat, width=1, height=1): ...
36.050314
127
0.527041
e846f2115eb22f8f2a13724804e4c8d5d909c0b1
1,497
py
Python
src/walnut/trading.py
liona24/walnut
8605ac53220646f7f8db7ea36c2d3969416148db
[ "MIT" ]
null
null
null
src/walnut/trading.py
liona24/walnut
8605ac53220646f7f8db7ea36c2d3969416148db
[ "MIT" ]
null
null
null
src/walnut/trading.py
liona24/walnut
8605ac53220646f7f8db7ea36c2d3969416148db
[ "MIT" ]
null
null
null
import threading from time import sleep class BaseTrader(object): thread = None storage = None symbol = None eval_interval = None callback = None _stop_event = None def __init__(self, symbol, storage, eval_interval, callback, name=None, daemon=None): self.symbo...
23.030769
64
0.564462
e847105c741190c17deee44ab88784c13ef74d9a
3,256
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/account/create_theme.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/account/create_theme.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/account/create_theme.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
34.273684
148
0.611794
e84727499b1b417f336d4c3a6ca2716f8f82e9f1
3,970
py
Python
isy-04/04_svm.py
bschurian/Interactive-Systems-Ben
f1a02a7150b154cd53806db190ebae5072ba74f1
[ "MIT" ]
null
null
null
isy-04/04_svm.py
bschurian/Interactive-Systems-Ben
f1a02a7150b154cd53806db190ebae5072ba74f1
[ "MIT" ]
null
null
null
isy-04/04_svm.py
bschurian/Interactive-Systems-Ben
f1a02a7150b154cd53806db190ebae5072ba74f1
[ "MIT" ]
null
null
null
import numpy as np import cv2 import glob from sklearn import svm import re ############################################################ # # Support Vector Machine # Image Classification # ############################################################ def create_keypoints(w, h): keypoints ...
38.173077
130
0.722418
e84745f4bac2bd86aca40ddd9e170bcca609daf6
10,538
py
Python
tensorflow_probability/python/distributions/gamma.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/gamma.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/gamma.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.362416
146
0.688745
e8475bcf68d7df2e5e7bf4b8ede004eb10afd133
4,678
py
Python
wechat_django/admin/views/user.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
166
2019-02-23T10:19:33.000Z
2022-02-03T06:50:15.000Z
wechat_django/admin/views/user.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
19
2019-05-07T07:28:32.000Z
2021-06-02T06:56:03.000Z
wechat_django/admin/views/user.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
54
2019-02-27T07:55:57.000Z
2021-09-02T06:47:51.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.contrib import admin from django.utils import timezone from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy as _ import object_tool from ...models import UserTag, WeChatUser...
35.439394
89
0.643651
e8476570e2e7a0f3e0e12de58bf4be56a821fec7
6,348
py
Python
bot/cogs/garfield_cog.py
c0rexx/pepek-bot
8f8df56ae43bc6df15a0861e127396f06d7e1f54
[ "MIT" ]
null
null
null
bot/cogs/garfield_cog.py
c0rexx/pepek-bot
8f8df56ae43bc6df15a0861e127396f06d7e1f54
[ "MIT" ]
null
null
null
bot/cogs/garfield_cog.py
c0rexx/pepek-bot
8f8df56ae43bc6df15a0861e127396f06d7e1f54
[ "MIT" ]
1
2021-03-12T13:46:37.000Z
2021-03-12T13:46:37.000Z
import datetime import random import asyncio import discord from discord.ext import commands from lib.datetime_lib import random_date, custom_strftime from lib.emotes import basic_emoji, scoots_emoji from lib.garfield_strip import garfield_strip, GarfieldError from lib.wiki_fact import get_day_fact, WikipediaError ...
38.944785
172
0.649653
e8477cc6416117d0aa7df41aae0a84168b3a9732
949
py
Python
core/loader.py
cachedout/eventdriventalk
194061e8cdf9c72afa5f5d7d6c015e35026710bd
[ "Apache-2.0" ]
7
2016-10-08T03:48:47.000Z
2019-06-06T10:37:00.000Z
core/loader.py
cachedout/eventdriventalk
194061e8cdf9c72afa5f5d7d6c015e35026710bd
[ "Apache-2.0" ]
null
null
null
core/loader.py
cachedout/eventdriventalk
194061e8cdf9c72afa5f5d7d6c015e35026710bd
[ "Apache-2.0" ]
1
2018-10-12T17:39:56.000Z
2018-10-12T17:39:56.000Z
''' A basic loader to pull some modules off of disk for normalized access. ''' import os import imp import inspect def load_actions(opts, reactions_dir): reaction_mods = os.listdir(reactions_dir) return _load_mods(opts, reaction_mods, reactions_dir, 'reactions') def load_rules(opts, rules_dir): rules_mod...
27.911765
101
0.69863
e8477ce4c0ab8276b87d64393247bd22f8186d53
830
py
Python
data/transcoder_evaluation_gfg/python/COUNT_FACTORIAL_NUMBERS_IN_A_GIVEN_RANGE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/COUNT_FACTORIAL_NUMBERS_IN_A_GIVEN_RANGE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/COUNT_FACTORIAL_NUMBERS_IN_A_GIVEN_RANGE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( low , high ) : fact = 1 x = 1 while ( fact < low ) : fact = fact * x x += 1 res = 0...
20.75
64
0.513253
e8477ea9c6aa35914d476e93f7008ed1c2557253
352
py
Python
website/api/__init__.py
ongzhixian/hci-admin
25564d0b906df466390ff7124ac75b765be87429
[ "MIT" ]
null
null
null
website/api/__init__.py
ongzhixian/hci-admin
25564d0b906df466390ff7124ac75b765be87429
[ "MIT" ]
null
null
null
website/api/__init__.py
ongzhixian/hci-admin
25564d0b906df466390ff7124ac75b765be87429
[ "MIT" ]
null
null
null
################################################################################ # Define package composition ################################################################################ __all__ = ["root", "test", "message", "administration", "kb", "classifier", "note"] # ZX: There's a better way to do this; see ...
50.285714
83
0.377841
e8478cd74ec943be061b3686e125c12e5332242d
4,114
py
Python
ioos_tools/skill_score.py
mwengren/notebooks_demos
b784affed6a79684553e7a16c22fe837d0fdbdd0
[ "MIT" ]
null
null
null
ioos_tools/skill_score.py
mwengren/notebooks_demos
b784affed6a79684553e7a16c22fe837d0fdbdd0
[ "MIT" ]
null
null
null
ioos_tools/skill_score.py
mwengren/notebooks_demos
b784affed6a79684553e7a16c22fe837d0fdbdd0
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import numpy as np import numpy.ma as ma from pandas import DataFrame __all__ = ['both_valid', 'mean_bias', 'mean_absolute_bias', 'median_absolute_bias', 'rmse', 'r2', 'apply_skill', ...
28.178082
78
0.594069
e847a97dfb9e18d86e465e561ee3566c8c4decd0
389
py
Python
easyml/easyml/wsgi.py
evancasey1/EasyML
69f0c246cb7e1d6f7167eb504c30693088e703fd
[ "MIT" ]
null
null
null
easyml/easyml/wsgi.py
evancasey1/EasyML
69f0c246cb7e1d6f7167eb504c30693088e703fd
[ "MIT" ]
null
null
null
easyml/easyml/wsgi.py
evancasey1/EasyML
69f0c246cb7e1d6f7167eb504c30693088e703fd
[ "MIT" ]
1
2020-10-25T08:14:33.000Z
2020-10-25T08:14:33.000Z
""" WSGI config for easyml project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
e847af7e216e8189d83023ad1e828d785f08022c
3,569
py
Python
intersight/models/task_ucs_task6_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/task_ucs_task6_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/task_ucs_task6_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class TaskUcsTask6Ref(object): """ NOTE: This class...
23.793333
77
0.536285
e847d0d204f04b21e12fc95f28df1b1effd4111d
10,201
py
Python
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_prime_field_curve_math.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
null
null
null
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_prime_field_curve_math.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
null
null
null
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_prime_field_curve_math.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
null
null
null
from random import choice, randint from unittest import TestCase from . import CURVES from ..curve import P192, P224, P256, P384, P521, secp256k1, W25519, W448 from ..point import Point class TestPrimeFieldCurve(TestCase): """ NIST P curve tests taken from https://www.nsa.gov/ia/_files/nist-routines.pdf """ ...
44.545852
150
0.68258
e847eb21749de3994ffc4fe66dada50c1a5c1411
1,756
py
Python
jawa/util/flags.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
1
2021-12-30T10:53:57.000Z
2021-12-30T10:53:57.000Z
jawa/util/flags.py
GiantTreeLP/jawa-fixed
dbdd1cb6ef2439bf6496adef8732775c792036ec
[ "MIT" ]
null
null
null
jawa/util/flags.py
GiantTreeLP/jawa-fixed
dbdd1cb6ef2439bf6496adef8732775c792036ec
[ "MIT" ]
1
2021-01-21T12:17:39.000Z
2021-01-21T12:17:39.000Z
__all__ = ('Flags',) import struct class Flags(object): """ Convenience class for handling bit flags. """ def __init__(self, binary_format, flags): object.__setattr__(self, 'binary_format', binary_format) object.__setattr__(self, 'flags', flags) object.__setattr__(self, '_value...
27.873016
76
0.574032
e847efc1921a01e03f388983f1ec74dc5963d2cd
922
py
Python
cosmotech_api/apis/__init__.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
cosmotech_api/apis/__init__.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
cosmotech_api/apis/__init__.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
# flake8: noqa # Import all APIs into this package. # If you have many APIs here with many many models used in each API this may # raise a `RecursionError`. # In order to avoid this, import only the API that you directly need like: # # from .api.connector_api import ConnectorApi # # or import this package, but befo...
35.461538
76
0.818872
e84813b830b2787ab8108cd118d76932905aee23
697
py
Python
algorithms/sorting/quick_sort.py
agdenadel/python-algorithms
28c298e2bc311c609f39a9f1c75a5abc9cc66b8a
[ "MIT" ]
null
null
null
algorithms/sorting/quick_sort.py
agdenadel/python-algorithms
28c298e2bc311c609f39a9f1c75a5abc9cc66b8a
[ "MIT" ]
null
null
null
algorithms/sorting/quick_sort.py
agdenadel/python-algorithms
28c298e2bc311c609f39a9f1c75a5abc9cc66b8a
[ "MIT" ]
null
null
null
from sort_utilities import swap def quick_sort(array): # lomuto scheme array = list(array) # copy array to work in place def partition(array, low, high): pivot = array[high] i = low - 1 for j in range(low, high): if array[j] < pivot: i += 1 ...
26.807692
54
0.48637
e848196695bda34786bfc493ed8229444a6e5e50
543
py
Python
manage.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
null
null
null
manage.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
3
2020-02-12T02:52:01.000Z
2021-06-10T22:18:25.000Z
manage.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'graphqltest.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. ...
33.9375
75
0.688766
e8481b0a46f1a5507cc2bad3810a87596677dd63
2,502
py
Python
pmaf/pipe/specs/_inventory/_primitive/_ti.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/pipe/specs/_inventory/_primitive/_ti.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/pipe/specs/_inventory/_primitive/_ti.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
from ._base import SpecificationPrimitiveBase from pmaf.pipe.factors._metakit import FactorBackboneMetabase from pmaf.pipe.agents.miners._miner import Miner from pmaf.pipe.agents.dockers._mediums._id_medium import DockerIdentifierMedium from pmaf.pipe.agents.dockers._mediums._tax_medium import DockerTaxonomyMedium from...
46.333333
152
0.719824
e8483cf904451d3e3a08674ac3fee4734617d357
3,958
py
Python
django_comments_xtd/demos/simple_threads/settings.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/demos/simple_threads/settings.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/demos/simple_threads/settings.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
#-*- coding: utf-8 -*- from __future__ import unicode_literals import os PRJ_PATH = os.path.abspath(os.path.curdir) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Alice Bloggs', 'alice@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', ...
30.21374
78
0.71425
e8484fb1d6e5ed276ec0222e2c54dd67d32fb3d5
810
py
Python
astk/ChromHMM.py
huang-sh/astk
8837a28b1dc80a43445d5fca8f0972ed4e23449d
[ "BSD-3-Clause" ]
null
null
null
astk/ChromHMM.py
huang-sh/astk
8837a28b1dc80a43445d5fca8f0972ed4e23449d
[ "BSD-3-Clause" ]
null
null
null
astk/ChromHMM.py
huang-sh/astk
8837a28b1dc80a43445d5fca8f0972ed4e23449d
[ "BSD-3-Clause" ]
null
null
null
# import feature_len as fl # from . import utils as ul def install(path): import os import zipfile from urlli...
32.4
196
0.47037
e8485348a0322b19506815352a42858deec7ddea
7,225
py
Python
vuln_check/wapitiCore/net/swf.py
erick-maina/was
3b89b9539a5d5daaaca5ab12d96e920c6a67dd55
[ "MIT" ]
2
2020-03-21T19:36:14.000Z
2020-09-30T09:18:20.000Z
vuln_check/wapitiCore/net/swf.py
erick-maina/was
3b89b9539a5d5daaaca5ab12d96e920c6a67dd55
[ "MIT" ]
null
null
null
vuln_check/wapitiCore/net/swf.py
erick-maina/was
3b89b9539a5d5daaaca5ab12d96e920c6a67dd55
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of the Wapiti project (http://wapiti.sourceforge.io) # Copyright (C) 2017-2020 Nicolas Surribas # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free ...
34.903382
120
0.601661
e84857a16381211a3cac71811337eb7af302ff12
885
py
Python
test/mitmproxy/tools/test_dump.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
test/mitmproxy/tools/test_dump.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
test/mitmproxy/tools/test_dump.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
from unittest import mock import pytest from mitmproxy import options from mitmproxy.tools import dump class TestDumpMaster: def mkmaster(self, **opts): o = options.Options(**opts) m = dump.DumpMaster(o, with_termlog=False, with_dumper=False) return m @pytest.mark.parametrize("terml...
31.607143
69
0.639548
e8486cb005c7a385787e10d199f758e6e9dc47fa
1,003
py
Python
sdks/python/test/test_v2MissingSymbolCrashGroup.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_v2MissingSymbolCrashGroup.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_v2MissingSymbolCrashGroup.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
25.075
109
0.740778
e848769e576b3c3d12397767025af50e40463255
3,182
py
Python
PythonProjects/97-Throwaway-202020/libs/rosebot.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/97-Throwaway-202020/libs/rosebot.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/97-Throwaway-202020/libs/rosebot.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" THROW-AWAY Capstone Project. If you mess up this THROW-AWAY project, ** no worries. ** It lets you practice skills & concepts needed for the REAL Capstone Project. This module contains a RoseBot class that is the same as the full RoseBot class that you will implement later, but restricted to the objects that...
48.212121
80
0.4956
e8488486caa752bd1cb1a4ec0c4ea7ca1b497efc
3,905
py
Python
ice_validator/tests/test_get_file_only_reference_local_files.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
1
2018-08-29T19:33:22.000Z
2018-08-29T19:33:22.000Z
ice_validator/tests/test_get_file_only_reference_local_files.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
ice_validator/tests/test_get_file_only_reference_local_files.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
2
2019-07-23T15:47:43.000Z
2021-07-02T15:04:19.000Z
# -*- coding: utf8 -*- # ============LICENSE_START==================================================== # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ===========================================...
32.541667
85
0.659667
e84886dc4f86137de2ba4e63f5980a90990dad2d
12,173
py
Python
lreid/data/datasets/image/cuhk03.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
63
2021-03-20T15:33:11.000Z
2022-03-30T03:04:14.000Z
lreid/data/datasets/image/cuhk03.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
5
2021-03-23T08:04:21.000Z
2022-03-10T02:28:43.000Z
lreid/data/datasets/image/cuhk03.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
10
2021-04-30T11:14:10.000Z
2022-03-18T16:44:55.000Z
from __future__ import division, print_function, absolute_import import os.path as osp from lreid.utils import read_json, write_json, mkdir_if_missing from ..dataset import ImageDataset class CUHK03(ImageDataset): """CUHK03. Reference: Li et al. DeepReID: Deep Filter Pairing Neural Network for Pers...
39.522727
115
0.552452
e84889a4ac34c04f8e7f5e19db56aa5b0f81f474
831
py
Python
apps/accounts/tests/unit/services/test_auth_email.py
victoraguilarc/agendas
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
2
2020-06-06T23:10:27.000Z
2020-10-06T19:12:26.000Z
apps/accounts/tests/unit/services/test_auth_email.py
victoraguilarc/medical-appointment
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
3
2021-04-08T20:44:38.000Z
2021-09-22T19:04:16.000Z
apps/accounts/tests/unit/services/test_auth_email.py
victoraguilarc/agendas
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
1
2020-10-10T14:07:37.000Z
2020-10-10T14:07:37.000Z
# -*- coding: utf-8 -*- import pytest from apps.accounts.models.choices import ActionCategory from apps.accounts.services.auth_email import AuthEmailService from apps.accounts.tests.factories.pending_action import PendingActionFactory from apps.contrib.utils.testing.unit_tests import mail_outbox @pytest.mark.django_...
31.961538
88
0.756919
e848a4ff9743bbf10e8821edb2a86a248cea71cd
4,455
py
Python
bin/aws.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
bin/aws.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
bin/aws.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
# pylint: disable=C0301,C0111,W0212,W0611,E1102,W0703 import ssl import sys import json import logging from argparse import ArgumentParser from boto.s3.connection import S3Connection logging.getLogger("boto").setLevel(logging.WARNING) def prepare_client(): """Prepare a client to connect bucket (namespace) ...
34.804688
110
0.625814
e848a85c28fce556df559b94148aa803c715de03
3,983
py
Python
bigml/pcahandler.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
1
2021-08-30T20:18:38.000Z
2021-08-30T20:18:38.000Z
bigml/pcahandler.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
null
null
null
bigml/pcahandler.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
1
2021-08-30T20:18:40.000Z
2021-08-30T20:18:40.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2018-2019 BigML # # 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 requi...
32.917355
76
0.613608
e848ad0790245d9bdfb0fbb3ced77c11e36b0ecc
972
py
Python
series.py
nastinsk/math-series
ceb01d9c9dc1c68cf0319466be54f7155fa6c314
[ "MIT" ]
null
null
null
series.py
nastinsk/math-series
ceb01d9c9dc1c68cf0319466be54f7155fa6c314
[ "MIT" ]
null
null
null
series.py
nastinsk/math-series
ceb01d9c9dc1c68cf0319466be54f7155fa6c314
[ "MIT" ]
null
null
null
def fibonacci(n): """Function that returns value of the given index from Fibonacci sequence """ previous = 0 current = 1 try: for i in range(n): previous, current = current, previous + current return previous except TypeError: return ("Input should be a one intege...
27.771429
92
0.622428
e848c6f66b387e696cd3b5a72e1ed5a5f135ba7d
5,317
py
Python
openpnm/models/geometry/throat_length.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
1
2020-06-08T19:48:00.000Z
2020-06-08T19:48:00.000Z
openpnm/models/geometry/throat_length.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
null
null
null
openpnm/models/geometry/throat_length.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
null
null
null
r""" .. autofunction:: openpnm.models.geometry.throat_length.piecewise .. autofunction:: openpnm.models.geometry.throat_length.ctc .. autofunction:: openpnm.models.geometry.throat_length.conduit_lengths """ import numpy as _np from numpy.linalg import norm as _norm from openpnm.utils import logging as _logging _logge...
32.820988
77
0.671807
e848d2528e75c31e779e41fbc53a1c629e2f47f6
15,151
py
Python
fdc/graph.py
alexandreday/Fast_Density_Clustering
91e7ee0ccf2b297b40747823302a21cd70d59dc9
[ "BSD-3-Clause" ]
7
2019-11-02T02:07:17.000Z
2022-01-25T10:50:09.000Z
fdc/graph.py
alexandreday/Fast_Density_Clustering
91e7ee0ccf2b297b40747823302a21cd70d59dc9
[ "BSD-3-Clause" ]
1
2021-09-21T16:47:37.000Z
2022-01-30T00:58:11.000Z
fdc/graph.py
alexandreday/Fast_Density_Clustering
91e7ee0ccf2b297b40747823302a21cd70d59dc9
[ "BSD-3-Clause" ]
7
2017-12-05T03:18:08.000Z
2021-12-20T19:10:49.000Z
from .fdc import FDC from .classify import CLF import numpy as np from copy import deepcopy from collections import Counter, OrderedDict from matplotlib import pyplot as plt import pickle class DGRAPH: """ Check for neighbors """ def __init__(self, n_average = 10, cv_score = 0., test_size_ratio = 0.8, clf_type...
39.662304
147
0.573031
e848f6faaf200b2f306112335bac097d0b817a54
4,200
py
Python
maskrcnn_benchmark/modeling/roi_heads/td_box_head_v3/roi_box_predictors.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
78
2020-03-02T12:00:57.000Z
2022-02-21T09:48:08.000Z
maskrcnn_benchmark/modeling/roi_heads/td_box_head_v3/roi_box_predictors.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
19
2020-03-02T12:07:18.000Z
2022-03-30T08:04:06.000Z
maskrcnn_benchmark/modeling/roi_heads/td_box_head_v3/roi_box_predictors.py
pwllr/IDA-3D
f5c8acbcf90a7c351499249a24754ad311da375e
[ "MIT" ]
14
2020-06-14T03:29:47.000Z
2021-07-21T06:30:08.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from maskrcnn_benchmark.modeling import registry import torch from torch import nn import math from torch.nn import functional as F from torch.autograd import Variable @registry.ROI_BOX_TD_V3_PREDICTOR.register("FastRCNNPredictor") class FastRCNN...
37.837838
125
0.65881
e84914bbf138f094e5a7a895cd7cf00b2af750ad
448
py
Python
venv/Scripts/easy_install-script.py
AndreyEmelyanenko/Crawler
6d12f7a4af98e8db0919b9b7f4fd470f7e073a99
[ "MIT" ]
null
null
null
venv/Scripts/easy_install-script.py
AndreyEmelyanenko/Crawler
6d12f7a4af98e8db0919b9b7f4fd470f7e073a99
[ "MIT" ]
null
null
null
venv/Scripts/easy_install-script.py
AndreyEmelyanenko/Crawler
6d12f7a4af98e8db0919b9b7f4fd470f7e073a99
[ "MIT" ]
null
null
null
#!C:\Users\TOR\PycharmProjects\Crawler\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex...
34.461538
83
0.696429
e8492411929347295a277ba555fe7c8fcf72dbaf
12,557
py
Python
rango/views.py
farschmessivo/ranco
ce81e77a9c2a82c4475b3838c3eac48bf206206f
[ "MIT" ]
null
null
null
rango/views.py
farschmessivo/ranco
ce81e77a9c2a82c4475b3838c3eac48bf206206f
[ "MIT" ]
null
null
null
rango/views.py
farschmessivo/ranco
ce81e77a9c2a82c4475b3838c3eac48bf206206f
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse from rango.models import Category, Page from rango.forms import CategoryForm, PageForm from rango.forms import UserForm, UserProfileForm from django.core.urlresolvers import reverse from django.contrib.auth import authenticat...
41.856667
98
0.631441
e84929752245a3ec249675bc4109d93991d5f0d1
2,760
py
Python
src/sardana/macroserver/macros/test/test_gh.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/macroserver/macros/test/test_gh.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/macroserver/macros/test/test_gh.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
38.873239
78
0.665217
e84938151a5f81dea21bce622766c240bb96d20f
32,256
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.41319
212
0.67296
e8494ca5ec7de1839fb1b7ee070393654349e53c
34,835
py
Python
indico/modules/events/contributions/controllers/management.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/modules/events/contributions/controllers/management.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/modules/events/contributions/controllers/management.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import uuid from operator import attrgetter from flask import flash, jsonify, redirect, request, session ...
44.039191
119
0.706875