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
79ab0c66a7b67dc1f0ff703e541ef47c8cfaf70f
1,492
py
Python
Preproc/preproc_region_defs.py
dsg-bielefeld/image_wac
b3ce45ba951f0d78777bf984fd3748b09bb2ad24
[ "BSD-3-Clause" ]
2
2016-08-05T06:29:43.000Z
2016-08-15T07:47:03.000Z
Preproc/preproc_region_defs.py
clp-research/image_wac
b3ce45ba951f0d78777bf984fd3748b09bb2ad24
[ "BSD-3-Clause" ]
null
null
null
Preproc/preproc_region_defs.py
clp-research/image_wac
b3ce45ba951f0d78777bf984fd3748b09bb2ad24
[ "BSD-3-Clause" ]
4
2016-08-15T07:47:07.000Z
2018-10-08T22:21:37.000Z
# coding: utf-8 ''' Collect all the region definitions (bounding boxes) that we need ''' from __future__ import division import scipy.io import matplotlib.pyplot as plt import numpy as np import pandas as pd import gzip import json import xml.etree.ElementTree as ET # for progress bars from tqdm import tqdm from i...
17.348837
77
0.75
79ab1c318ed10e05ffc4b83f6d2d001467fd37a2
712
py
Python
configs/selfsup/simsiam/simsiam_resnet50_4xb64-coslr-200e_in1k.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/simsiam/simsiam_resnet50_4xb64-coslr-200e_in1k.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/simsiam/simsiam_resnet50_4xb64-coslr-200e_in1k.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
1
2022-03-15T11:31:48.000Z
2022-03-15T11:31:48.000Z
_base_ = [ '../_base_/models/simsiam.py', '../_base_/datasets/imagenet_mocov2_b64_cluster.py', '../_base_/schedules/sgd_coslr-200e_in1k.py', '../_base_/default_runtime.py', ] # set base learning rate lr = 0.05 # additional hooks custom_hooks = [ dict(type='SimSiamHook', priority='HIGH', fix_pred_l...
29.666667
75
0.727528
79ab2f8aa41e658e746c9c5e3a4fcfdc44f69802
5,751
py
Python
projects/model/Event.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
projects/model/Event.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
projects/model/Event.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
#$Id$ class Event: """This class is used to create object for Event.""" def __init__(self): """Initialize parameters for Event object.""" self.id = 0 self.title = "" self.location = "" self.scheduled_on = "" self.scheduled_on_long = 0 self.remi...
18.315287
57
0.503043
79ab4cd8ef06ee9c60ec5a60a37ca8a6eafacd0d
20,000
py
Python
custom_user/tests.py
montebond/pyp
9a0356f8ade44fd813e03d54f5b934336c6b6656
[ "BSD-3-Clause" ]
null
null
null
custom_user/tests.py
montebond/pyp
9a0356f8ade44fd813e03d54f5b934336c6b6656
[ "BSD-3-Clause" ]
null
null
null
custom_user/tests.py
montebond/pyp
9a0356f8ade44fd813e03d54f5b934336c6b6656
[ "BSD-3-Clause" ]
null
null
null
"""EmailUser tests.""" from mock import patch import django from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.middleware import AuthenticationMiddleware from django.core import mail from django.core import management from django.core.urlresolvers import reverse fr...
41.666667
133
0.67495
79ab635ba8ac6d2d0d0e51b9efd63b3c6fb5c4c6
1,062
py
Python
menu/admin.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
1
2021-01-28T20:10:36.000Z
2021-01-28T20:10:36.000Z
menu/admin.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
150
2016-08-27T21:38:36.000Z
2021-10-16T23:32:05.000Z
menu/admin.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
2
2016-08-27T21:35:12.000Z
2018-01-13T08:11:33.000Z
""" :Created: 5 May 2015 :Author: Lucas Connors """ from django import forms from django.contrib import admin from ordered_model.admin import OrderedModelAdmin from menu.models import Category, MenuItem class CategoryAdmin(OrderedModelAdmin): list_display = ("name", "parent", "move_up_down_links") class Menu...
23.6
83
0.667608
79ab7815462cd5ae00f59d961f1d6d2de1fc9fc9
3,908
py
Python
deprecated/.ipynb_checkpoints/run_lfads_synth-checkpoint.py
lyprince/hierarchical_lfads
cc897286a3ade52038840900bc0313fe7195f871
[ "MIT" ]
18
2019-11-13T11:32:08.000Z
2022-02-15T17:46:55.000Z
deprecated/run_lfads_synth.py
lyprince/hierarchical_lfads
cc897286a3ade52038840900bc0313fe7195f871
[ "MIT" ]
2
2020-01-20T20:20:15.000Z
2021-12-02T10:45:35.000Z
deprecated/.ipynb_checkpoints/run_lfads_synth-checkpoint.py
lyprince/hierarchical_lfads
cc897286a3ade52038840900bc0313fe7195f871
[ "MIT" ]
10
2019-11-19T15:41:34.000Z
2021-11-15T08:42:39.000Z
from models import * from utils import read_data, load_parameters, save_parameters import argparse import time import yaml import torch import torchvision parser = argparse.ArgumentParser() parser.add_argument('-o', '--output', type=str) parser.add_argument('-d', '--data_path', type=str) parser.add_argument('-p', '--p...
41.136842
156
0.67912
79ab7c3f01254a140b6e6a5196a8415d70b8fed1
326
py
Python
src/npc.py
CGirdlestone/TextAdventure
6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad
[ "MIT" ]
null
null
null
src/npc.py
CGirdlestone/TextAdventure
6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad
[ "MIT" ]
null
null
null
src/npc.py
CGirdlestone/TextAdventure
6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad
[ "MIT" ]
null
null
null
class NPC: def __init__(self, **kwargs): self.__dict__.update(**kwargs) def tryattr(self, attribute): if hasattr(self, attribute): if getattr(self, attribute) is not None: return True else: return False else: return ...
20.375
52
0.518405
79ab98d42bcf0db4851d2eed4a1b8a90494eaae1
1,257
py
Python
oscar/lib/python2.7/site-packages/django/core/management/commands/startproject.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/core/management/commands/startproject.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/core/management/commands/startproject.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from importlib import import_module from django.core.management.base import CommandError from django.core.management.templates import TemplateCommand from ..utils import get_random_secret_key class Command(TemplateCommand): help = ( "Creates a Django project directory structure for the given p...
35.914286
92
0.652347
79abb385cb312082ef6cfa2b40f1b0708269a42b
86,664
py
Python
tfoptflow-grad-eval-batch-bad/model_pwcnet (orig).py
mf-zhang/tfoptflow
d27b249fcbae2d1f4373ef4ba16cb0c89890058e
[ "MIT" ]
null
null
null
tfoptflow-grad-eval-batch-bad/model_pwcnet (orig).py
mf-zhang/tfoptflow
d27b249fcbae2d1f4373ef4ba16cb0c89890058e
[ "MIT" ]
null
null
null
tfoptflow-grad-eval-batch-bad/model_pwcnet (orig).py
mf-zhang/tfoptflow
d27b249fcbae2d1f4373ef4ba16cb0c89890058e
[ "MIT" ]
null
null
null
""" model_pwcnet.py PWC-Net model class. Written by Phil Ferriere Licensed under the MIT License (see LICENSE for details) """ from __future__ import absolute_import, division, print_function import time import datetime import warnings import numpy as np import pandas as pd import tensorflow as tf from tqdm import ...
53.529339
134
0.593695
79abdcfb30c720040b588e8b2775c7005ecef946
9,387
py
Python
test/IECoreScene/FaceVaryingPromotionOpTest.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-09-02T13:05:18.000Z
2018-09-02T13:05:18.000Z
test/IECoreScene/FaceVaryingPromotionOpTest.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-11-07T19:40:15.000Z
2018-11-07T19:40:15.000Z
test/IECoreScene/FaceVaryingPromotionOpTest.py
noizfactory/cortex
c2b5bd154d9d7919a0c498f865c5e40a7687e1ce
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2010-2013, Image Engine Design 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: # # * Redis...
51.016304
110
0.726643
79abfb82100e0cd8f43f787c7d4591a051e491e9
701
py
Python
tests/utils/postprocess/test_sort.py
vdestraitt/toucan-data-sdk
09327592daef6bc94d0d6f79a041b581226c2b7b
[ "BSD-3-Clause" ]
null
null
null
tests/utils/postprocess/test_sort.py
vdestraitt/toucan-data-sdk
09327592daef6bc94d0d6f79a041b581226c2b7b
[ "BSD-3-Clause" ]
null
null
null
tests/utils/postprocess/test_sort.py
vdestraitt/toucan-data-sdk
09327592daef6bc94d0d6f79a041b581226c2b7b
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd from toucan_data_sdk.utils.postprocess import sort_values def test_sort_values(): """ It should sort dataframe """ data = pd.DataFrame([ {'variable': 'toto', 'Category': 1, 'value': 300}, {'variable': 'toto', 'Category': 1, 'value': 100}, {'variable': 'toto', 'Categ...
33.380952
67
0.596291
79ac0fd3f0046f2892d1c64e0e0727a71010ea1c
5,557
py
Python
ProgPracFol/BasicsProgramSet7.py
RawRapter/python-vscode
8b462220bd0bdb4b98e71da19ba1c2931925f4c4
[ "MIT" ]
1
2021-07-15T05:16:34.000Z
2021-07-15T05:16:34.000Z
ProgPracFol/BasicsProgramSet7.py
RawRapter/python-vscode
8b462220bd0bdb4b98e71da19ba1c2931925f4c4
[ "MIT" ]
null
null
null
ProgPracFol/BasicsProgramSet7.py
RawRapter/python-vscode
8b462220bd0bdb4b98e71da19ba1c2931925f4c4
[ "MIT" ]
null
null
null
""" This set is related to tuple python programs """ #Import Files from operator import rshift import sys, re from itertools import chain,product from typing import Dict #Tuples Tuple1 = ("anant", "arun", "kumar", "tiwari", "uttar", "pradesh") Tuple2 = (8,4,6,3,2,1,9,7,5) Tuple3 = (1,7) Tuple4 = (4,2) Tuple5 = ([1], [...
24.480176
94
0.660248
79ac1054ca4a6e7d3fce841e7238696b332768f2
3,706
py
Python
content/_build/jupyter_execute/08_test_driven_development/exercise/solutions.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
content/_build/jupyter_execute/08_test_driven_development/exercise/solutions.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
content/_build/jupyter_execute/08_test_driven_development/exercise/solutions.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # <a href="https://colab.research.google.com/github/aviadr1/learn-advanced-python/blob/master/content/08_test_driven_development/exercise/solutions.ipynb" target="_blank"> # <img src="https://colab.research.google.com/assets/colab-badge.svg" # title="Open this file in Goo...
26.471429
171
0.664868
79ac259f6e299202ed4e1156efe2559a3c1b3482
8,051
py
Python
qute_style/qs_application.py
TilmanK/QuteStyle
6afcffcd92f763484f58bf4c82e0495b84a28785
[ "MIT" ]
null
null
null
qute_style/qs_application.py
TilmanK/QuteStyle
6afcffcd92f763484f58bf4c82e0495b84a28785
[ "MIT" ]
null
null
null
qute_style/qs_application.py
TilmanK/QuteStyle
6afcffcd92f763484f58bf4c82e0495b84a28785
[ "MIT" ]
null
null
null
"""QuteStyleApplication.""" from __future__ import annotations import logging import operator from copy import copy from typing import List, Type, cast from PyQt5 import QtCore from PyQt5.QtCore import QRectF, QSize, Qt, pyqtSlot from PyQt5.QtGui import ( QCloseEvent, QColor, QMouseEvent, QPainter, ...
35.941964
78
0.630232
79ac5d12e3725a66020619b1f07921d35ab018ea
1,635
py
Python
python/phonenumbers/data/region_NC.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/data/region_NC.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_NC.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. NC metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_NC = PhoneMetadata(id='NC', country_code=687, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2-57-9]\\d{5}', possible_number_pattern...
90.833333
152
0.759633
79ac8843a8f28f2be757304e76f349f294ed5418
6,006
py
Python
openbb_terminal/portfolio/brokers/ally/ally_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/portfolio/brokers/ally/ally_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/portfolio/brokers/ally/ally_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
"""Ally Controller""" __docformat__ = "numpy" import argparse import logging from typing import List from prompt_toolkit.completion import NestedCompleter from openbb_terminal import feature_flags as obbff from openbb_terminal.decorators import log_start_end from openbb_terminal.helper_funcs import ( EXPORT_ONLY...
33.18232
86
0.599068
79ace527f4b942c0d5bc2ddf4cf80b6e1e868b0e
223
py
Python
spikesorters/spyking_circus/container/upload_singularity_container.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikesorters/spyking_circus/container/upload_singularity_container.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikesorters/spyking_circus/container/upload_singularity_container.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from cairio import client as ca ca.autoConfig(collection='spikeforest', key='spikeforest2-readwrite', ask_password=True) sha1_path = ca.saveFile('spyking_circus.simg') print(sha1_path)
24.777778
62
0.73991
79ad1a87e98687f07c385ba0bee83e36706aa5e0
1,783
py
Python
master/bopytest-code/code/ch3/c/tasks_proj/tests/conftest.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/bopytest-code/code/ch6/testpaths/tasks_proj/tests/conftest.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/bopytest-code/code/ch6/testpaths/tasks_proj/tests/conftest.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import pytest import tasks @pytest.fixture(scope='session', params=['tiny', 'mongo']) def tasks_db_session(tmpdir_factory, request): # Setup : start db temp_dir = tmpdir_factory.mktemp('temp') tasks.start_tasks_db(str(temp_dir), request.param) yield # this is where the testing happens # Teardown...
26.220588
60
0.647224
79ad39223dba37022b19e4f30dd1b3fbb8a3add8
16,253
py
Python
nmrglue/analysis/lineshapes1d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
nmrglue/analysis/lineshapes1d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
nmrglue/analysis/lineshapes1d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
""" One-dimensional lineshape functions and classes """ import numpy as np import scipy.special # needed for complex error function (wo pi = np.pi #################################### # 1D lineshape simulator functions # #################################### # Gaussian (normal) lineshape simulator functions def ...
26.90894
79
0.598597
79ad6e9923e16f1230ac3c9ba1fde096c97902f7
17,456
py
Python
tests/providers/azure/internal/test_compute.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
241
2020-02-08T20:05:54.000Z
2022-03-31T23:51:30.000Z
tests/providers/azure/internal/test_compute.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
376
2020-02-05T10:22:54.000Z
2022-03-30T00:09:18.000Z
tests/providers/azure/internal/test_compute.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
72
2020-02-06T07:34:30.000Z
2022-03-05T18:02:13.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google 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 ...
48.896359
136
0.741063
79ad6ee7a1b70a0b660faefaa0e75efa676195ef
1,716
py
Python
catalyst/contrib/utils/compression.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/utils/compression.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/utils/compression.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
1
2018-12-21T15:56:21.000Z
2018-12-21T15:56:21.000Z
import base64 import logging import os import numpy as np from six import string_types from .serialization import deserialize, serialize logger = logging.getLogger(__name__) try: import lz4.frame LZ4_ENABLED = True except ImportError as ex: if os.environ.get("USE_LZ4", "0") == "1": logger.warni...
22.88
66
0.660839
79ad94beafca5d1e4b4170993e1abd0c789ee27b
1,657
py
Python
setup.py
d1g1tinc/drf-haystack
7bf138948562ebcf3470954a4627dc12f6b09b96
[ "MIT" ]
null
null
null
setup.py
d1g1tinc/drf-haystack
7bf138948562ebcf3470954a4627dc12f6b09b96
[ "MIT" ]
null
null
null
setup.py
d1g1tinc/drf-haystack
7bf138948562ebcf3470954a4627dc12f6b09b96
[ "MIT" ]
null
null
null
import re import os try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup def get_version(package): """ Return package version as listed in `__version__` in `init.py`. """ init_py = open(os.path.join(pa...
30.127273
114
0.640917
79adacdd5a52b70f33f874fea72e513e33d6e6dd
448
py
Python
tests/test_deletion.py
eruvanos/dynafile
207425b073a963b01c677b697e74842b429c004a
[ "MIT" ]
null
null
null
tests/test_deletion.py
eruvanos/dynafile
207425b073a963b01c677b697e74842b429c004a
[ "MIT" ]
null
null
null
tests/test_deletion.py
eruvanos/dynafile
207425b073a963b01c677b697e74842b429c004a
[ "MIT" ]
null
null
null
from dynafile import Dynafile def test_delete_item(tmp_path): db = Dynafile(tmp_path / "db") db.put_item( item={ "PK": "1", "SK": "1", "name": "Dynafile", } ) db.delete_item( key={ "PK": "1", "SK": "1", } ...
15.448276
34
0.370536
79adb261029bd3d2e5bf8d83301be434b06eb47f
886
py
Python
app/accounts/views.py
MahmudulHassan5809/recipe-app-api-drf
10d841dbfbf9e38d9c238138501af592bea4f656
[ "MIT" ]
null
null
null
app/accounts/views.py
MahmudulHassan5809/recipe-app-api-drf
10d841dbfbf9e38d9c238138501af592bea4f656
[ "MIT" ]
null
null
null
app/accounts/views.py
MahmudulHassan5809/recipe-app-api-drf
10d841dbfbf9e38d9c238138501af592bea4f656
[ "MIT" ]
null
null
null
from rest_framework import generics,authentication,permissions from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from accounts.serializers import UserSerializer,AuthTokenSerializer class CreateUserView(generics.CreateAPIView): serializer_class = UserSerial...
32.814815
67
0.801354
79adbabdcbf43ff2f8b4b9a4ec003cecf6681fc7
23,161
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
44.540385
267
0.691637
79adeea631703f13d7c05a1a67eede87b9857209
10,961
py
Python
training/evaluation.py
stdiff/emo-classifier
211731a44022408c750b611383216ce0578f2d41
[ "MIT" ]
null
null
null
training/evaluation.py
stdiff/emo-classifier
211731a44022408c750b611383216ce0578f2d41
[ "MIT" ]
null
null
null
training/evaluation.py
stdiff/emo-classifier
211731a44022408c750b611383216ce0578f2d41
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Union, Optional import numpy as np import pandas as pd import altair as alt from sklearn.metrics import precision_recall_curve, precision_recall_fscore_support from emo_classifier.classifiers.metrics import SimpleStats, stats_roc_auc from emo_classifier.metrics import ...
41.052434
119
0.657604
79ae192db012bfab63f7a07b7a9807645e18006d
29,069
py
Python
tests/func/test_run.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
tests/func/test_run.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
tests/func/test_run.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
import os import uuid import logging import mock import shutil import filecmp import subprocess from dvc.main import main from dvc.output import OutputBase from dvc.repo import Repo as DvcRepo from dvc.utils import file_md5 from dvc.utils.stage import load_stage_file from dvc.system import System from dvc.stage impor...
29.362626
79
0.529912
79ae1bc622e055a2d1d11d2b8de690a6817e1b98
622
py
Python
linode_plugin/utils.py
displague/cloudify-linode-plugin
dbcdfe9ca10c95634ef17e9c8bde3aab286ac497
[ "Apache-2.0" ]
1
2017-03-08T21:48:20.000Z
2017-03-08T21:48:20.000Z
linode_plugin/utils.py
displague/cloudify-linode-plugin
dbcdfe9ca10c95634ef17e9c8bde3aab286ac497
[ "Apache-2.0" ]
2
2015-03-05T16:53:31.000Z
2015-03-31T13:51:53.000Z
linode_plugin/utils.py
displague/cloudify-linode-plugin
dbcdfe9ca10c95634ef17e9c8bde3aab286ac497
[ "Apache-2.0" ]
6
2015-03-04T22:45:31.000Z
2020-11-30T16:56:21.000Z
# ####### # Copyright (c) 2016 GigaSpaces Technologies Ltd. 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 requi...
41.466667
74
0.758842
79ae24c3efd0e55e696cd67c6cd79346d4641b1f
904
py
Python
gibson2/termination_conditions/point_goal.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
3
2021-02-07T14:00:38.000Z
2021-07-03T19:40:59.000Z
gibson2/termination_conditions/point_goal.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
null
null
null
gibson2/termination_conditions/point_goal.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
2
2021-04-01T12:14:59.000Z
2021-06-18T13:04:39.000Z
from gibson2.termination_conditions.termination_condition_base import BaseTerminationCondition from gibson2.utils.utils import l2_distance class PointGoal(BaseTerminationCondition): """ PointGoal used for PointNavFixed/RandomTask Episode terminates if point goal is reached """ def __init__(self, ...
31.172414
94
0.665929
79ae3050aa0b70bf2d7aa8f1e4de407dd9a0a92c
6,139
py
Python
datalad/distributed/tests/test_create_sibling_ghlike.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/distributed/tests/test_create_sibling_ghlike.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/distributed/tests/test_create_sibling_ghlike.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## """Test create public...
32.141361
80
0.58951
79ae7d8d69b96c192e78acfeb72c223ce2a12b3c
2,240
py
Python
app.py
LuisAlbizo/laim_bot
513248d531607be96493ca30103e97c253e23ed5
[ "MIT" ]
3
2018-08-29T23:18:31.000Z
2021-03-10T08:54:36.000Z
app.py
LuisAlbizo/laim_bot
513248d531607be96493ca30103e97c253e23ed5
[ "MIT" ]
null
null
null
app.py
LuisAlbizo/laim_bot
513248d531607be96493ca30103e97c253e23ed5
[ "MIT" ]
2
2019-08-10T02:36:10.000Z
2020-09-06T17:40:47.000Z
from flask import Flask, request, render_template from bokeh.plotting import figure from bokeh.embed import components from bokeh.models import ColumnDataSource, Label import base64, pickle app = Flask(__name__) @app.route("/") def index(): return "<h1>Hola Mundo 2</h1>" @app.route("/mutt") def patan(): text...
38.62069
103
0.662946
79ae8481874acd3dfb3bea0d7e2238c2e1808ff6
50,975
py
Python
ctools/defragment_sharded_collection.py
kaloianm/workscripts
98c24c448e232125936b6145b3cba628acc8f52b
[ "Unlicense" ]
2
2021-05-09T21:41:47.000Z
2022-01-03T16:47:09.000Z
ctools/defragment_sharded_collection.py
kaloianm/workscripts
98c24c448e232125936b6145b3cba628acc8f52b
[ "Unlicense" ]
30
2018-10-31T05:46:14.000Z
2022-03-18T22:07:52.000Z
ctools/defragment_sharded_collection.py
kaloianm/workscripts
98c24c448e232125936b6145b3cba628acc8f52b
[ "Unlicense" ]
11
2018-08-16T04:12:39.000Z
2022-03-18T03:49:55.000Z
#!/usr/bin/env python3 # import argparse import asyncio import logging import math from motor.frameworks.asyncio import is_event_loop import pymongo import sys import time import pickle from common import Cluster, yes_no from copy import deepcopy from pymongo import errors as pymongo_errors from tqdm import tqdm # E...
46.808999
173
0.609514
79aeb3cd5bfdea7385adcceb8daa2d0c93661a15
9,839
py
Python
azure-devops/azext_devops/vstsCompressed/symbol/v4_1/models/models.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/vstsCompressed/symbol/v4_1/models/models.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
37
2020-04-27T07:45:19.000Z
2021-04-05T07:27:15.000Z
azure-devops/azext_devops/vstsCompressed/symbol/v4_1/models/models.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.722727
464
0.663685
79aeb87ec598d4fb8ad636cf5ce756890b65d855
2,101
py
Python
catalyst/contrib/utils/visualization.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/utils/visualization.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/utils/visualization.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
import itertools import numpy as np from .image import tensor_from_rgb_image def plot_confusion_matrix( cm, class_names=None, normalize=False, title="confusion matrix", fname=None, show=True, figsize=12, fontsize=32, colormap="Blues", ): """ Render the confusion matrix an...
21.885417
74
0.628748
79aed113d6b1ec0dbc881355f960884ad6bc4150
1,487
py
Python
experiments/figures/gen_cdf.py
icaros-usc/dqd
262c31f56cd4704b76ddaf9b9eb024afdbb209d6
[ "MIT" ]
38
2021-06-09T01:29:58.000Z
2022-02-20T13:32:05.000Z
experiments/figures/gen_cdf.py
icaros-usc/dqd
262c31f56cd4704b76ddaf9b9eb024afdbb209d6
[ "MIT" ]
1
2021-08-01T03:50:24.000Z
2021-08-01T21:03:39.000Z
experiments/figures/gen_cdf.py
icaros-usc/dqd
262c31f56cd4704b76ddaf9b9eb024afdbb209d6
[ "MIT" ]
2
2021-06-10T07:14:22.000Z
2021-12-14T15:25:21.000Z
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt plt.rcParams["pdf.fonttype"] = 42 plt.rcParams["ps.fonttype"] = 42 data = pd.read_csv('cdf.csv') y_label = "Threshold Percentage" plt.figure(figsize = (12,12)) # Color mapping for algorithms palette ={ "CMA-MEGA": "C0", "CMA-MEGA (A...
27.036364
74
0.552791
79aef48e942f6b7c0e8830f266ccd6f98faa0f52
2,790
py
Python
examples/obsolete_legacy/testrunclick.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
examples/obsolete_legacy/testrunclick.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
examples/obsolete_legacy/testrunclick.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import sys import time import logging import subprocess from six.moves import input try: from fortrace.core.vmm import Vmm from fortrace.utility.logger_helper import create_logger fro...
27.9
109
0.643728
79aef89c6a34342da9d71b729a9930c290c155e6
2,658
py
Python
main/model/config.py
wodore/wodore-ng
0f5f1fd720a52a36e8bfe0cc588a81bdf43b0ce5
[ "MIT" ]
null
null
null
main/model/config.py
wodore/wodore-ng
0f5f1fd720a52a36e8bfe0cc588a81bdf43b0ce5
[ "MIT" ]
null
null
null
main/model/config.py
wodore/wodore-ng
0f5f1fd720a52a36e8bfe0cc588a81bdf43b0ce5
[ "MIT" ]
null
null
null
# coding: utf-8 """Provides implementation of Config""" from __future__ import absolute_import from google.appengine.ext import ndb import config from model import Base, ConfigAuth import util from pydash import _ class Config(Base, ConfigAuth): """A class describing datastore config.""" analytics_id = ndb....
43.57377
109
0.70918
79af253d7c7d5f7da3c988dff6af966eb70b4b14
15,436
py
Python
tests/regressiontests/views/tests/debug.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/views/tests/debug.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/views/tests/debug.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement import inspect import os import sys from django.conf import settings from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase, RequestFactory from django.core.urlresolvers import reverse from django.template import TemplateSyntaxError from dja...
45.940476
108
0.645439
79af3ea02cef11e549b3491b0f790b6e47ed60ac
2,095
py
Python
satchless/contrib/pricing/cache/__init__.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
1
2015-11-05T05:09:27.000Z
2015-11-05T05:09:27.000Z
satchless/contrib/pricing/cache/__init__.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
satchless/contrib/pricing/cache/__init__.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
import urllib from ....util.exceptions import FinalValue def get_cache_key(product=None, variant=None, **kwargs): ret = {} if variant: ret['variant'] = variant.id if product: ret['product'] = product.id return ret class CacheFactory(object): class Handler(object): def __in...
33.790323
77
0.6
79af4adfa036f836fb94e156e5da343122816d98
7,634
py
Python
path-planning-project/PathPlanning.py
awharkrider/CPSC-3520-Artificial-Intelligence
e6fe115ab2e21b9fbe470fbb9530a59acaca34be
[ "Apache-2.0" ]
null
null
null
path-planning-project/PathPlanning.py
awharkrider/CPSC-3520-Artificial-Intelligence
e6fe115ab2e21b9fbe470fbb9530a59acaca34be
[ "Apache-2.0" ]
null
null
null
path-planning-project/PathPlanning.py
awharkrider/CPSC-3520-Artificial-Intelligence
e6fe115ab2e21b9fbe470fbb9530a59acaca34be
[ "Apache-2.0" ]
null
null
null
""" PathPlanning.py Aaron Harkrider Collaborated with: Ally Wallace, Garrett Henderson 02-06-2018 # Map a path for a UGV(unmanned ground vehicle) to successfully navigate through a grid as fast as possible. - Two uninformed search algorithms and * breadth_first_search * depth_first_graph search - One inform...
38.361809
116
0.652738
79af5eacadc84766932a6610f8e49452630db55c
673
py
Python
lambda_function.py
pew/lambda-ec2-start-stop
f67566d280d6159518c56b08f89d8daf14cc7f53
[ "MIT" ]
null
null
null
lambda_function.py
pew/lambda-ec2-start-stop
f67566d280d6159518c56b08f89d8daf14cc7f53
[ "MIT" ]
null
null
null
lambda_function.py
pew/lambda-ec2-start-stop
f67566d280d6159518c56b08f89d8daf14cc7f53
[ "MIT" ]
null
null
null
"""aws lambda function to start/stop instances""" import boto3 def lambda_handler(event, context): """take instance-id and region from event, start or stop the instance""" client = boto3.client("ec2", region_name=event["region"]) instance_id = event["instance_id"] get_status = client.describe_instanc...
35.421053
76
0.708767
79afb1243a07f4e243acc7879a6a46205a08d9c0
74,746
py
Python
fabric_cf/actor/db/psql_database.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
fabric_cf/actor/db/psql_database.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/actor/db/psql_database.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # 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 ...
40.711329
119
0.591577
79afcc0c3d20ef96acd5b2e541da8147395249b7
2,381
py
Python
astwro/timeseries/tests/test_fnpeaks.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
6
2017-06-15T20:34:51.000Z
2020-04-15T14:21:43.000Z
astwro/timeseries/tests/test_fnpeaks.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
18
2017-08-15T20:53:55.000Z
2020-10-05T23:40:34.000Z
astwro/timeseries/tests/test_fnpeaks.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
2
2017-11-06T15:33:53.000Z
2020-10-02T21:06:05.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function #import matplotlib.pyplot as plt __metaclass__ = type import numpy as np from ..fnpeaks import * class TestFNpeaks: def setup_class(self): self.N = 10 self.M = 1000 self.lc = np.random.normal(10, 0.5, (sel...
34.014286
106
0.595548
79afd65cc509a4e2d3826cd742798032c7bbe4b4
3,974
py
Python
syntactic_analysis/spreadsheet_utils.py
Esukhia/bo-constituency-analysis
8a24302249ed7da2cf4b674ad74b982244ffe3f3
[ "MIT" ]
1
2019-07-11T12:11:28.000Z
2019-07-11T12:11:28.000Z
syntactic_analysis/spreadsheet_utils.py
Esukhia/bo-constituency-analysis
8a24302249ed7da2cf4b674ad74b982244ffe3f3
[ "MIT" ]
null
null
null
syntactic_analysis/spreadsheet_utils.py
Esukhia/bo-constituency-analysis
8a24302249ed7da2cf4b674ad74b982244ffe3f3
[ "MIT" ]
1
2020-12-08T10:10:31.000Z
2020-12-08T10:10:31.000Z
# coding: utf-8 from pathlib import Path import xlrd from openpyxl import Workbook, load_workbook import csv from copy import deepcopy from .analysis import normalize_raw_tree def xlsx_to_tsv(filename, out_dir): filename, out_dir = Path(filename), Path(out_dir) # create and / or empty output folder if n...
33.965812
84
0.604429
79afe1f1b2abd884b2d473343e69abfb123dda46
908
py
Python
lib/FluentDB/helpers/configuration.py
olavoasantos/FluentDB
ab645d2c4e3c73971ca259e89feaa2b967b22e8e
[ "MIT" ]
2
2016-12-12T21:45:12.000Z
2016-12-19T23:53:43.000Z
lib/FluentDB/helpers/configuration.py
olavoasantos/FluentDB
ab645d2c4e3c73971ca259e89feaa2b967b22e8e
[ "MIT" ]
null
null
null
lib/FluentDB/helpers/configuration.py
olavoasantos/FluentDB
ab645d2c4e3c73971ca259e89feaa2b967b22e8e
[ "MIT" ]
null
null
null
from configparser import ConfigParser class Configuration(object): def __getattr__(self, item): return self.get(item) @staticmethod def get(section, filename='config.ini'): """ Read database configuration file and return a dictionary object. :param section: section of conf...
28.375
83
0.615639
79afed89d6c108698ae17609f67c9ba98c8298a8
5,139
py
Python
mylib/Entity/PCAssay.py
cozy9/Metascape
261901657bef5e1060f1ae86a2a3913d1e4c87c4
[ "Apache-2.0" ]
2
2021-08-01T19:33:44.000Z
2022-02-14T16:37:34.000Z
mylib/Entity/PCAssay.py
data2code/Metascape
261901657bef5e1060f1ae86a2a3913d1e4c87c4
[ "Apache-2.0" ]
null
null
null
mylib/Entity/PCAssay.py
data2code/Metascape
261901657bef5e1060f1ae86a2a3913d1e4c87c4
[ "Apache-2.0" ]
1
2019-05-22T12:44:34.000Z
2019-05-22T12:44:34.000Z
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function from . import Entity as el import xml.etree.ElementTree as ET import re # NCBI's efetch does not support pcassay and pccompound database # so XML are obtained from other means, e.g., # https://pubchem.ncbi.nlm.nih.gov/as...
40.148438
163
0.652462
79b04ad63b6db7b3a878458a96ca65d7ab3bc037
2,410
py
Python
venv/Lib/site-packages/pyrogram/raw/types/page_caption.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/page_caption.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/page_caption.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...
32.133333
103
0.618672
79b04ca26e1a21836c5cc155e84a338ba0f4fa86
828
py
Python
setup.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
setup.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
setup.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='counselor', version='0.3.3', description='Package to interact with HashiCorp Consul', long_description=long_description, long_description_content_type="text/markdown", a...
30.666667
60
0.654589
79b0529fac3086ead07f84fc0c46138dbc82387d
38,591
py
Python
ironic/tests/unit/db/test_nodes.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/db/test_nodes.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/db/test_nodes.py
michaeltchapman/ironic
ecabbbb509ee7aa783b143e2bef6afdc4c33cbaf
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
41.765152
79
0.606385
79b07cf6f3f380f296c7ce80ec1c84c5aa0ae81e
28,006
py
Python
nnef/scripts/designed_seq.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
2
2021-04-30T06:07:49.000Z
2021-06-30T06:47:00.000Z
nnef/scripts/designed_seq.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
null
null
null
nnef/scripts/designed_seq.py
lahplover/nnef
dcabf31337e5849593f343e6502fe0b8dc20452e
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as pl from scipy import stats import h5py import os ###################################################### amino_acids = pd.read_csv('data/amino_acids.csv') idx2aa = {x-1: y for x, y in zip(amino_acids.idx, amino_acids.AA)} aa = amino_acids['AA'].values ...
40.065808
116
0.611012
79b09e9855b521531363b275388157187bf95c20
1,596
py
Python
website/common/utilities/extract/extract_locations.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
null
null
null
website/common/utilities/extract/extract_locations.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
2
2020-02-11T23:23:09.000Z
2020-06-05T17:24:59.000Z
website/common/utilities/extract/extract_locations.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
null
null
null
""" Used to gather the 'top N' U.S. cities by population. Returns: list of tuples in the form (city name, state name, state abbr) """ # 3rd party modules import requests from bs4 import BeautifulSoup # local modules from .state_dicts import state_name_dict def extract_locations(top_N = None): # Globals and magic ...
31.294118
146
0.755013
79b0c17e50e04523b6115dfbead4408a8c35cc30
11,331
py
Python
eastlake/steps/newish_metacal/metacal/metacal_fitter.py
des-science/eastlake
bbfd28a1426d178cc7ce2f1cd87e7245779c5527
[ "BSD-3-Clause" ]
1
2022-03-29T14:01:02.000Z
2022-03-29T14:01:02.000Z
eastlake/steps/newish_metacal/metacal/metacal_fitter.py
des-science/eastlake
bbfd28a1426d178cc7ce2f1cd87e7245779c5527
[ "BSD-3-Clause" ]
1
2021-06-11T11:33:14.000Z
2021-06-11T11:33:14.000Z
eastlake/steps/newish_metacal/metacal/metacal_fitter.py
des-science/eastlake
bbfd28a1426d178cc7ce2f1cd87e7245779c5527
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import logging import numpy as np import esutil as eu from ..ngmix_compat import NGMIX_V2 from ngmix import ObsList, MultiBandObsList from ngmix.gexceptions import BootPSFFailure, BootGalFailure from . import procflags if NGMIX_V2: from ngmix.runners import Runner, PSFRunner ...
30.790761
79
0.505781
79b1016462b090d0c338764edd4d2352c702a759
10,549
py
Python
pyz80/ULA.py
jamesba/pyz80
25730c9eb07432d92518ad4ed8688b489a59d84f
[ "Apache-2.0" ]
4
2018-01-01T16:27:44.000Z
2020-07-06T00:52:32.000Z
pyz80/ULA.py
jamesba/pyz80
25730c9eb07432d92518ad4ed8688b489a59d84f
[ "Apache-2.0" ]
null
null
null
pyz80/ULA.py
jamesba/pyz80
25730c9eb07432d92518ad4ed8688b489a59d84f
[ "Apache-2.0" ]
null
null
null
"""This module contains classes implementing a simple video adapter and keyboard device for our Z80 emulator. Specifically one modeled on the Spectrum. To use any of these classes the program must run a tkinter main loop.""" __all__ = [ "SpectrumULA" ] import tkinter from .memorybus import Peripheral from .iobus im...
38.641026
109
0.434354
79b11a597f07624505be1285261f82c5b6939f99
70,883
py
Python
tests/SamFile_test.py
mattions/pysam
067d1ad265e0903cfaea367572a8b42477e0ddc4
[ "MIT" ]
null
null
null
tests/SamFile_test.py
mattions/pysam
067d1ad265e0903cfaea367572a8b42477e0ddc4
[ "MIT" ]
null
null
null
tests/SamFile_test.py
mattions/pysam
067d1ad265e0903cfaea367572a8b42477e0ddc4
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''unit testing code for pysam. Execute in the :file:`tests` directory as it requires the Makefile and data files located there. ''' import pysam import unittest import os import shutil import sys import collections import subprocess import logging import array from TestUtils import checkBinaryE...
35.871964
193
0.527207
79b144222577f4f9d0352ea2a7bb4448dc3521b8
1,148
py
Python
notebooks/laff/vecvec/norm2.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
1
2019-12-27T21:12:29.000Z
2019-12-27T21:12:29.000Z
notebooks/laff/vecvec/norm2.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
null
null
null
notebooks/laff/vecvec/norm2.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
null
null
null
import laff import numpy as np from math import sqrt def norm2( x ): """ Compute the 2-norm of a vector, returning alpha x can be a row or column vector. """ assert type(x) is np.matrix and len(x.shape) is 2, \ "laff.norm2: vector x must be a 2D numpy.matrix" m, n = np.shape(x) assert m is 1 ...
22.96
63
0.623693
79b18042fbe35d17928503756160511b52b0a5cc
257
py
Python
django_oci/views/__init__.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
5
2020-03-24T23:45:28.000Z
2021-11-26T03:31:05.000Z
django_oci/views/__init__.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
14
2020-04-02T17:13:28.000Z
2020-12-29T12:36:38.000Z
django_oci/views/__init__.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
null
null
null
from .base import APIVersionCheck from .blobs import BlobUpload, BlobDownload from .image import ImageManifest, ImageTags from .auth import GetAuthToken # Load storage on application init from django_oci.storage import get_storage storage = get_storage()
25.7
43
0.828794
79b1a26c9e254fd86ff840088ace1f636fe5fa1d
9,926
py
Python
yolox/data/datasets/voc.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
yolox/data/datasets/voc.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
yolox/data/datasets/voc.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Code are based on # https://github.com/fmassa/vision/blob/voc_dataset/torchvision/datasets/voc.py # Copyright (c) Francisco Massa. # Copyright (c) Ellis Brown, Max deGroot. # Copyright (c) Megvii, Inc. and its affiliates. import os import os.path import pickle import xml...
37.315789
93
0.533548
79b20180a84982efb61e0601dcb25e167a64fcbf
3,220
py
Python
t2t_csaky/config.py
ricsinaruto/Chatbots
898cd7eeb9aa71cf1be0ad434695ca9beb3fd1ec
[ "MIT" ]
508
2017-08-19T21:29:16.000Z
2022-03-29T19:17:59.000Z
t2t_csaky/config.py
jaytsien/Seq2seqChatbots
3dc6e037672b87183b237fa5c1390c81cfaecf0e
[ "MIT" ]
17
2018-06-26T10:33:05.000Z
2022-02-09T23:28:02.000Z
t2t_csaky/config.py
jaytsien/Seq2seqChatbots
3dc6e037672b87183b237fa5c1390c81cfaecf0e
[ "MIT" ]
76
2017-11-10T05:53:43.000Z
2021-07-20T13:30:51.000Z
''' In this file you can set all tensor2tensor flags, hparams and other settings for the current run. This file will also be copied to the provided directory. ''' FLAGS = { 't2t_usr_dir': 't2t_csaky', # Tensor2tensor imports from this dir. 'data_dir': 'data_dir/DailyDialog/test_repo', 'train_dir': 'train...
40.25
78
0.668012
79b204685fb120feb166812e7a65e956ac8fdc24
4,257
py
Python
inference.py
gajdosech2/keras-centernet
f9b87c84a1df181142978ffe7a27e0a2835600d7
[ "Apache-2.0" ]
null
null
null
inference.py
gajdosech2/keras-centernet
f9b87c84a1df181142978ffe7a27e0a2835600d7
[ "Apache-2.0" ]
null
null
null
inference.py
gajdosech2/keras-centernet
f9b87c84a1df181142978ffe7a27e0a2835600d7
[ "Apache-2.0" ]
null
null
null
from generators.csv_ import CSVGenerator from models.resnet import centernet import cv2 import os import numpy as np import time from generators.utils import affine_transform, get_affine_transform from utils.image import read_image_bgr, preprocess_image, resize_image import os.path as osp DATA_SUFFIX = '_datamap.png' ...
40.160377
115
0.576462
79b206ba2bda4a51ecdd46bef66e1c848691ce3b
1,377
py
Python
lists/longestMatchingParentheses.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
lists/longestMatchingParentheses.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
lists/longestMatchingParentheses.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
class ArrayStack: def __init__(self): self.data = [] def isEmpty(self): return len(self.data) == 0 def push(self, val): return self.data.append(val) def pop(self): if self.isEmpty(): raise Empty("Stack underflow!") return self.data.pop() def ...
21.857143
56
0.480755
79b2300e6267e766f02d46f93f6a4e9377435cf6
1,866
py
Python
python/cuXfilter/tests/test_cudatashader_line.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
2
2019-03-06T02:10:05.000Z
2020-05-06T06:33:02.000Z
python/cuXfilter/tests/test_cudatashader_line.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
null
null
null
python/cuXfilter/tests/test_cudatashader_line.py
AjayThorve/cuxfilter
537ff67de80439a43e0bad7373558f5e25dcb112
[ "Apache-2.0" ]
null
null
null
# import cudatashader as ds # import cudatashader.transfer_functions as tf # from collections import OrderedDict # import cudf # from cuXfilter import charts, DataFrame # import random # cux_df = DataFrame.from_dataframe(cudf.DataFrame({'states': [float(i) for i in range(57_000)], 'val':[float(i*10) for i in range(57_...
42.409091
165
0.699357
79b2802831047791c430cecc4757e188357fb777
10,597
py
Python
apps/shared/exchange.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
5
2018-04-05T07:02:04.000Z
2018-07-10T09:39:03.000Z
apps/shared/exchange.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
89
2018-03-11T14:46:07.000Z
2018-09-07T14:50:42.000Z
apps/shared/exchange.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright 2018 Frank V. Castellucci and Arthur Greef # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
34.517915
80
0.655657
79b2d2608d77bff3ffd2124a08fa0a08179ec34a
1,637
py
Python
PR_Pillow_floodfill/ff_partial_set.py
yo1995/Daily_Python_Tasks
211255deead5023cdcea1db4f49a53eedfe762b6
[ "MIT" ]
14
2018-05-21T05:12:25.000Z
2021-11-28T14:49:55.000Z
PR_Pillow_floodfill/ff_partial_set.py
yo1995/Daily_Python_Tasks
211255deead5023cdcea1db4f49a53eedfe762b6
[ "MIT" ]
2
2018-11-28T20:59:37.000Z
2021-07-27T22:39:33.000Z
PR_Pillow_floodfill/ff_partial_set.py
yo1995/Daily_Python_Tasks
211255deead5023cdcea1db4f49a53eedfe762b6
[ "MIT" ]
6
2019-03-21T01:07:57.000Z
2021-03-29T03:24:33.000Z
import time from PIL import Image import sys import psutil import os def _color_diff(rgb1, rgb2): """ Uses 1-norm distance to calculate difference between two rgb values. """ return abs(rgb1[0]-rgb2[0]) + abs(rgb1[1]-rgb2[1]) + abs(rgb1[2]-rgb2[2]) def flood_fill_partial(image, xy, value, thresh=0):...
28.719298
77
0.504582
79b2ed92c9eb707d5ac59e840a8b8987c81aa6f1
1,027
py
Python
src/analyzer.py
agrc/dwr-tracking
5d6d0c7ddd89f40927d2ece466838df6deceee6f
[ "MIT" ]
null
null
null
src/analyzer.py
agrc/dwr-tracking
5d6d0c7ddd89f40927d2ece466838df6deceee6f
[ "MIT" ]
1
2019-04-08T17:38:11.000Z
2019-04-08T17:38:11.000Z
src/analyzer.py
agrc/dwr-tracking
5d6d0c7ddd89f40927d2ece466838df6deceee6f
[ "MIT" ]
null
null
null
import multilog import logging import arcpy import os VERSION = '1.0.0' LOCAL_LOG_NAME = 'analyzer' LOCAL_LOGS = '../logs/{}.log'.format(LOCAL_LOG_NAME) SD_LOG_NAME = 'python.scheduled' LABELS = {'file': os.path.basename(__file__), 'version': VERSION} SD_LOGGING_KEY = '../.secrets/python-logging.json' CLOUD_LOGGING ...
29.342857
98
0.686465
79b31217b4240e0a5e6a191f25cc823d1ed5cc2f
2,246
py
Python
lib/models/backbones/efficientdet/efficientdet.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
lib/models/backbones/efficientdet/efficientdet.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
lib/models/backbones/efficientdet/efficientdet.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
import torch import torch.nn as nn import math from .efficientnet import EfficientNet from .bifpn import BIFPN from .retinahead import RetinaHead from torchvision.ops import nms import torch.nn.functional as F MODEL_MAP = { 'efficientdet-d0': 'efficientnet-b0', 'efficientdet-d1': 'efficientnet-b1', 'effic...
33.522388
72
0.561443
79b31506fc2bfdb9c0f07e629cb4a64941534985
5,517
py
Python
tests/python/pants_test/backend/python/tasks/util/build_local_dists_test_base.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/python/tasks/util/build_local_dists_test_base.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
tests/python/pants_test/backend/python/tasks/util/build_local_dists_test_base.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import re from abc import abstractmethod from enum import Enum from pants.backend.native.register import rules as native_backend_rules from pants.backend.native.subsystems.libc_dev import...
42.767442
104
0.775421
79b325a09aa8918dd03c1d553dffc253106b72a2
258
py
Python
test/test_user_client.py
maxpowel/crypto_com_client
07f087caff0e2cff13149adbb3c95455f71bd53f
[ "Apache-2.0" ]
7
2020-09-01T13:16:44.000Z
2021-10-31T21:24:51.000Z
test/test_user_client.py
maxpowel/crypto_com_client
07f087caff0e2cff13149adbb3c95455f71bd53f
[ "Apache-2.0" ]
1
2022-03-23T22:44:32.000Z
2022-03-24T05:51:57.000Z
test/test_user_client.py
maxpowel/crypto_com_client
07f087caff0e2cff13149adbb3c95455f71bd53f
[ "Apache-2.0" ]
2
2021-10-20T04:43:45.000Z
2021-10-31T21:24:55.000Z
from crypto_com import UserClient def test_constructor(): client = UserClient(api_secret="aa", api_key="bb") assert "wss://stream.crypto.com/v2/user" == client.api_url assert "aa".encode() == client.api_secret assert "bb" == client.api_key
28.666667
62
0.697674
79b34906e84b5f3fc5e5f2b32f95a198e4a85f50
1,562
py
Python
brian2/units/stdunits.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
1
2019-12-25T16:33:37.000Z
2019-12-25T16:33:37.000Z
brian2/units/stdunits.py
divyashivaram/brian2
ac086e478efa50be772c6cee55b52b43018bc77a
[ "BSD-2-Clause" ]
13
2015-10-05T15:33:42.000Z
2015-11-18T08:31:42.000Z
brian2/units/stdunits.py
moritzaugustin/brian2
d98ea0cb4af0c9426e71c8ee7659ddb13aea8593
[ "BSD-2-Clause" ]
null
null
null
######### PHYSICAL UNIT NAMES ##################### #------------------------------------ Dan Goodman - # These are optional shorthand unit names which in # most circumstances shouldn't clash with local names """Optional short unit names This module defines the following short unit names: mV, mA, uA (micro_amp), nA,...
26.033333
79
0.537132
79b3991fc1d67ce13acc1bd561b4b12471f07702
9,056
py
Python
taf/testlib/pypacker_server.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
taf/testlib/pypacker_server.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
taf/testlib/pypacker_server.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
#!/usr/bin/env python # Copyright (c) 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 applic...
34.173585
142
0.625883
79b3bc629603227a259f62a13eef06535b503033
4,303
py
Python
homeassistant/components/zha/fan.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2020-03-29T00:56:35.000Z
2020-03-29T00:56:35.000Z
homeassistant/components/zha/fan.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2022-03-12T01:06:11.000Z
2022-03-12T01:06:11.000Z
homeassistant/components/zha/fan.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2020-03-07T10:43:50.000Z
2020-03-07T10:43:50.000Z
"""Fans on Zigbee Home Automation networks.""" import functools import logging from homeassistant.components.fan import ( DOMAIN, SPEED_HIGH, SPEED_LOW, SPEED_MEDIUM, SPEED_OFF, SUPPORT_SET_SPEED, FanEntity, ) from homeassistant.core import callback from homeassistant.helpers.dispatcher imp...
29.675862
80
0.676505
79b43ca8877873906ad2c86045f30b20210a791e
3,204
py
Python
alipay/aop/api/domain/PointInstruction.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/PointInstruction.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/PointInstruction.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class PointInstruction(object): def __init__(self): self._action_type = None self._point_amount = None self._reason = None self._status = None self._task_name = ...
27.62069
75
0.562422
79b45162b55253d8994b277853ce32dca21fcb03
139
py
Python
lang/python/cffi/int.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/cffi/int.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/cffi/int.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
import cffi ffi = cffi.FFI() ffi.cdef("const int mysize;") lib = ffi.verify("const int mysize = sizeof(long long int);") print(lib.mysize)
23.166667
61
0.705036
79b47b24d5d0f32a7ad33f7824924c70953113ef
8,875
py
Python
leetcode_python/Backtracking/word-search.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Backtracking/word-search.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Backtracking/word-search.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same letter cell may not be used more than once. Example 1: Input:...
34.399225
232
0.512901
79b47e14b1c45d5b22a2b676bb837ae4480a7fe4
14,132
py
Python
dmreader/trait_base.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
1
2021-07-28T05:46:33.000Z
2021-07-28T05:46:33.000Z
dmreader/trait_base.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
null
null
null
dmreader/trait_base.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------ # # Copyright (c) 2005, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the condi...
36.329049
82
0.484149
79b47f4499e088cf85ef24bc2bd51e62485c7716
25
py
Python
classifier/__init__.py
will-hart/twitter_sentiment
b03ee18a9ba3ecc2cf0df7a47a84968b7e4d3768
[ "MIT" ]
null
null
null
classifier/__init__.py
will-hart/twitter_sentiment
b03ee18a9ba3ecc2cf0df7a47a84968b7e4d3768
[ "MIT" ]
null
null
null
classifier/__init__.py
will-hart/twitter_sentiment
b03ee18a9ba3ecc2cf0df7a47a84968b7e4d3768
[ "MIT" ]
null
null
null
__author__ = 'mecharius'
12.5
24
0.76
79b48453b962fe49d6e8bb16621fabb8a0ac6d99
4,140
py
Python
qube/common/levensthein_dist.py
qbicsoftware/qube
59d6d034d6def13f6456cc80de0f56029b24af03
[ "MIT" ]
2
2020-04-16T18:50:06.000Z
2020-04-19T10:39:50.000Z
qube/common/levensthein_dist.py
qbicsoftware/qube-cli
59d6d034d6def13f6456cc80de0f56029b24af03
[ "MIT" ]
202
2020-09-25T07:48:39.000Z
2022-03-28T04:04:54.000Z
qube/common/levensthein_dist.py
qbicsoftware/qube
59d6d034d6def13f6456cc80de0f56029b24af03
[ "MIT" ]
null
null
null
from qube.common.suggest_similar_commands import SIMILARITY_SUGGEST_FACTOR, SIMILARITY_USE_FACTOR def levensthein_dist(input_command: str, candidate: str) -> int: """ This function implements the Levenshtein algorithm to determine, in case of a non-existing handle, if theres a very similar command to sugg...
48.705882
144
0.678986
79b4ab5e6e67b4531184b9f1b1b3f3bcc36aab5a
185
py
Python
synapse/models/chemistry.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/models/chemistry.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/models/chemistry.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
from synapse.lib.module import CoreModule class ChemMod(CoreModule): @staticmethod def getBaseModels(): modl = {} name = 'chem' return ((name, modl),)
18.5
41
0.605405
79b4c90b06fb571a645e096fb3cad8985aa5e772
673
py
Python
src/esm/__init__.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
2
2017-06-15T21:32:07.000Z
2020-01-08T09:08:33.000Z
src/esm/__init__.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
20
2017-06-12T10:57:45.000Z
2020-01-08T08:22:31.000Z
src/esm/__init__.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
8
2017-06-07T10:05:47.000Z
2017-12-12T15:31:41.000Z
# Copyright © 2017-2019 Zuercher Hochschule fuer Angewandte Wissenschaften. # 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/l...
44.866667
78
0.736999
79b4ea1c15572e5b0a63403bcdc84be9dc4b1c8b
913
py
Python
scrap/plot-queue.py
HASTE-project/desktop-agent
71a3d0d69b5a6660d63158897a53d1a65aba49ba
[ "BSD-3-Clause" ]
2
2020-08-06T22:27:39.000Z
2021-12-04T12:59:45.000Z
scrap/plot-queue.py
HASTE-project/desktop-agent
71a3d0d69b5a6660d63158897a53d1a65aba49ba
[ "BSD-3-Clause" ]
null
null
null
scrap/plot-queue.py
HASTE-project/desktop-agent
71a3d0d69b5a6660d63158897a53d1a65aba49ba
[ "BSD-3-Clause" ]
1
2021-04-30T23:57:44.000Z
2021-04-30T23:57:44.000Z
import matplotlib.pyplot as plt LOG_FILE_NAME = '2019_03_22__11_40_21_trash' timestamps = [] pre_processeds = [] not_pre_processeds = [] total = [] lines = [] with open('../../logs/log_%s.log' % LOG_FILE_NAME, 'r') as f: for line in f: if 'PLOT' not in line: continue lines.append(lin...
23.410256
61
0.682366
79b5006649d77af2e9430f832ad3179ef6cc45c1
25,632
py
Python
gmond/python_modules/vm_stats/vm_stats.py
hinesmr/monitor-core
e2b3fda5bc12d55587913e6ab8e0de32f4df80a8
[ "BSD-3-Clause" ]
null
null
null
gmond/python_modules/vm_stats/vm_stats.py
hinesmr/monitor-core
e2b3fda5bc12d55587913e6ab8e0de32f4df80a8
[ "BSD-3-Clause" ]
null
null
null
gmond/python_modules/vm_stats/vm_stats.py
hinesmr/monitor-core
e2b3fda5bc12d55587913e6ab8e0de32f4df80a8
[ "BSD-3-Clause" ]
null
null
null
import sys #import traceback #import os import re import time PARAMS = {} NAME_PREFIX = 'vm_' METRICS = { 'time' : 0, 'data' : {} } LAST_METRICS = dict(METRICS) METRICS_CACHE_MAX = 5 ############################################################################### # Explanation of metrics in /proc/meminfo can...
34.968622
132
0.480805
79b50a49b32be56909976e53432688263078cc7a
863
py
Python
test/test_warning.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
test/test_warning.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
26
2021-04-05T12:32:21.000Z
2022-03-22T12:53:44.000Z
test/test_warning.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
1
2021-04-16T21:04:53.000Z
2021-04-16T21:04:53.000Z
import time from threading import Thread import pytest from taro import warning from taro.jobs.runner import RunnerJobInstance from taro.test.execution import TestExecution from taro.test.observer import TestWarnObserver @pytest.fixture def execution(): return TestExecution(wait=True) @pytest.fixture def job(...
20.547619
53
0.747393
79b55bf4a9314f8718b7e39174c66809800ccc21
3,110
py
Python
hint/01-theo-BTC/02_DQN-5-cations/02_closest-gold/Miner-Training-Local-CodeSample-Approach1/viz_utils.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
hint/01-theo-BTC/02_DQN-5-cations/02_closest-gold/Miner-Training-Local-CodeSample-Approach1/viz_utils.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
1
2022-02-10T02:27:10.000Z
2022-02-10T02:27:10.000Z
round01/viz_utils.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from constants import width, height, terrain_ids, n_px # in RGB format #gold = [99.3, 68.8, 1.0] #silver = [47.8, 47.8, 47.8] #blue = [8.2, 39.4, 95.6] #green = [4.6, 43.8, 2.5] #pink = [85.4, 47.7, 45.9] #gold = np.array([99.3, 68.8, 1.0]) #silver = np.array([47.8, ...
32.061856
122
0.633119
79b5600bd2591f57aa2ecca2162cb217caf803b6
9,989
py
Python
backend/config/settings.py
uncle-yura/simple_booking
91a9609ae4521e4b2d52953112607c69db54d0ee
[ "MIT" ]
null
null
null
backend/config/settings.py
uncle-yura/simple_booking
91a9609ae4521e4b2d52953112607c69db54d0ee
[ "MIT" ]
null
null
null
backend/config/settings.py
uncle-yura/simple_booking
91a9609ae4521e4b2d52953112607c69db54d0ee
[ "MIT" ]
null
null
null
""" Django settings for simple_booking project. Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from ...
31.41195
100
0.702072
79b56815e5ff8ab2e370c1cad66e93e8152d1768
534
py
Python
terrascript/resource/josenk/esxi.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/josenk/esxi.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/josenk/esxi.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/josenk/esxi.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:15:57 UTC) import terrascript class esxi_guest(terrascript.Resource): pass class esxi_portgroup(terrascript.Resource): pass class esxi_resource_pool(terrascript.Resource): pass class esxi_virtual_dis...
16.181818
73
0.737828
79b56ddc8c37938b1a8d8688919c2131e7904b59
927
py
Python
boot_django.py
crawfordleeds/crawfish
6c1013e6e058b2cd05d265d04c19ed164b109b5e
[ "MIT" ]
1
2022-02-16T00:32:53.000Z
2022-02-16T00:32:53.000Z
boot_django.py
crawfordleeds/crawfish
6c1013e6e058b2cd05d265d04c19ed164b109b5e
[ "MIT" ]
null
null
null
boot_django.py
crawfordleeds/crawfish
6c1013e6e058b2cd05d265d04c19ed164b109b5e
[ "MIT" ]
null
null
null
# File sets up the django environment, used by other scripts that need to # execute in django land import os import django from django.conf import settings APP_NAME = "crawfish" BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), APP_NAME)) MIDDLEWARE = [ "django.contrib.sessions.middleware.Sessio...
25.75
77
0.631068
79b56fd1fab6448db2f44c600624db47631bc1d2
10,329
py
Python
bonneville/modules/rabbitmq.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/rabbitmq.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/rabbitmq.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Module to provide RabbitMQ compatibility to Salt. Todo: A lot, need to add cluster support, logging, and minion configuration data. ''' # Import bonneville libs from bonneville import exceptions, utils # Import python libs import logging log = logging.getLogger(__name__) def __virtual__...
22.117773
83
0.592894
79b5715171d922a86ef4362630bccea1c5935a3a
3,714
py
Python
html2dict/base_extractor.py
B-Souty/html2dict
833b8d2912ad02dc5833803295727dc327ad1b65
[ "MIT" ]
2
2018-08-20T18:49:29.000Z
2020-07-12T20:03:20.000Z
html2dict/base_extractor.py
B-Souty/html2dict
833b8d2912ad02dc5833803295727dc327ad1b65
[ "MIT" ]
4
2018-07-23T16:17:09.000Z
2018-08-18T18:39:42.000Z
html2dict/base_extractor.py
B-Souty/html2dict
833b8d2912ad02dc5833803295727dc327ad1b65
[ "MIT" ]
null
null
null
from lxml import html import requests from html2dict.resources import * __all__ = [ 'TableExtractor', 'Table', 'get_text_content', 'is_header' ] class TableExtractor(object): """Html to dictionaries extractor class This is the skeleton Extractor class. Attributes: html_string (s...
29.244094
82
0.605277
79b59bb488eed0668f668905962ac1e7fa0bf4ad
4,584
py
Python
alipay/aop/api/domain/AlipaySocialBaseMcommentFootprintSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipaySocialBaseMcommentFootprintSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipaySocialBaseMcommentFootprintSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipaySocialBaseMcommentFootprintSendModel(object): def __init__(self): self._biz_type = None self._ext_data = None self._footprint_model_code = None self._footpri...
31.39726
91
0.603403
79b5c6ffb67595462143388a6638f82718396082
1,283
py
Python
src/django_rpx_plus/models.py
mikexstudios/django-rpx-plus
78e525dc9d54003b4c20a2fd838968cebe506928
[ "BSD-3-Clause" ]
2
2018-01-10T20:14:14.000Z
2020-12-27T19:47:37.000Z
src/django_rpx_plus/models.py
mikexstudios/django-rpx-plus
78e525dc9d54003b4c20a2fd838968cebe506928
[ "BSD-3-Clause" ]
null
null
null
src/django_rpx_plus/models.py
mikexstudios/django-rpx-plus
78e525dc9d54003b4c20a2fd838968cebe506928
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from picklefield.fields import PickledObjectField class RpxData(models.Model): #Primary key field is automatically created. #The RPX identifier is essentially an OpenID URL. identifier = models.URLField(unique = True, verify_exists = False, ...
45.821429
80
0.695246
79b6261ac77d3b17640458bdf502892c8ba7f619
970
py
Python
reaching-definitions.py
kavinyao/Liu
cc012daff19d6d1dad8d088a255ece7092c4c3b1
[ "MIT" ]
1
2015-02-05T08:33:21.000Z
2015-02-05T08:33:21.000Z
reaching-definitions.py
kavinyao/Liu
cc012daff19d6d1dad8d088a255ece7092c4c3b1
[ "MIT" ]
null
null
null
reaching-definitions.py
kavinyao/Liu
cc012daff19d6d1dad8d088a255ece7092c4c3b1
[ "MIT" ]
null
null
null
from liu import * # construct CFG cfg = ControlFlowGraph() n2 = cfg.new_block(Assign(Var('i'), Subtract(Var('m'), Const('1')))) n3 = cfg.new_block(Assign(Var('j'), Var('n'))) n4 = cfg.new_block(Assign(Var('a'), Var('u1'))) n5 = cfg.new_block(Assign(Var('i'), Add(Var('i'), Const('1')))) n6 = cfg.new_block(Assign(Var('j...
30.3125
68
0.661856
79b66e56958da0eac13eb26e8ae260f12dbb52cb
718
py
Python
tests/test_simple_dataclass.py
hockeybuggy/dataclass_structor
345dc4ff66e63890cdb3a0f588adcafe7334c0e2
[ "MIT" ]
null
null
null
tests/test_simple_dataclass.py
hockeybuggy/dataclass_structor
345dc4ff66e63890cdb3a0f588adcafe7334c0e2
[ "MIT" ]
1
2019-04-01T23:10:55.000Z
2019-04-01T23:10:55.000Z
tests/test_simple_dataclass.py
hockeybuggy/dataclass_structor
345dc4ff66e63890cdb3a0f588adcafe7334c0e2
[ "MIT" ]
null
null
null
from dataclass_structor import structure, unstructure from ._fixtures import DataClassGuest as Guest def test_unstructure__guest_with_first_name(): expected = {"first_name": "Bobby Jim"} assert unstructure(Guest(first_name="Bobby Jim")) == expected def test_structure__guest_with_first_name(): expected ...
29.916667
68
0.75766
79b66eacbc6a4426304d9c712d62a9109f0d4a22
1,362
py
Python
python/gdx_getting_started_usb.py
4beddgroup221/godirect-examples
87728510c3eb92fd42b0ab73adcb07068555f995
[ "BSD-3-Clause" ]
13
2019-01-16T02:45:00.000Z
2022-02-22T19:30:29.000Z
python/gdx_getting_started_usb.py
4beddgroup221/godirect-examples
87728510c3eb92fd42b0ab73adcb07068555f995
[ "BSD-3-Clause" ]
21
2019-01-17T20:47:28.000Z
2022-03-17T17:35:37.000Z
python/gdx_getting_started_usb.py
4beddgroup221/godirect-examples
87728510c3eb92fd42b0ab73adcb07068555f995
[ "BSD-3-Clause" ]
19
2018-11-19T18:33:02.000Z
2022-03-14T11:36:41.000Z
''' The gdx functions are located in a gdx.py file inside a folder named "gdx". In order for the import to find the gdx folder, the folder needs to be in the same directory as this python program. The gdx functions used in a typical program to collect data include: gdx.open_usb() or gdx.open_ble() gdx.select...
32.428571
104
0.716593
79b694baec258ec60e7fa5f602c149c08e9a1cf0
12,302
py
Python
docusign_rooms/apis/form_libraries_api.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
2
2020-11-11T01:38:45.000Z
2021-11-14T17:00:43.000Z
docusign_rooms/apis/form_libraries_api.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
null
null
null
docusign_rooms/apis/form_libraries_api.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
1
2021-11-14T17:00:32.000Z
2021-11-14T17:00:32.000Z
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import impor...
44.09319
126
0.602585
79b697769c6a8a7ae57083ef20d17ddb69c3d142
155
py
Python
test/__init__.py
avinashvarna/sanskrit_lib
241647185b0ba3155280b3256e002d0343e088d2
[ "MIT" ]
52
2015-05-12T09:59:01.000Z
2021-12-07T02:36:19.000Z
test/__init__.py
suhasagg/sanskrit
97dd42ffbad5339945b7ecfd54c44ae94a047114
[ "MIT" ]
7
2017-03-31T05:23:29.000Z
2021-02-27T17:44:52.000Z
test/__init__.py
suhasagg/sanskrit
97dd42ffbad5339945b7ecfd54c44ae94a047114
[ "MIT" ]
14
2016-05-31T12:34:45.000Z
2021-12-07T02:36:21.000Z
# -*- coding: utf-8 -*- """ test ~~~~ Tests for all of the code in the package. :license: MIT and BSD """ import unittest from unittest import TestCase
11.923077
41
0.658065
79b6a554245d664eb16ae5e03d2c937dfce5c59d
42,822
py
Python
pygeostatistics/sgsim.py
wassemalward/pyGeoStatistics
25cd4b74855ddb5763d87388502424a9742d37ce
[ "MIT" ]
null
null
null
pygeostatistics/sgsim.py
wassemalward/pyGeoStatistics
25cd4b74855ddb5763d87388502424a9742d37ce
[ "MIT" ]
null
null
null
pygeostatistics/sgsim.py
wassemalward/pyGeoStatistics
25cd4b74855ddb5763d87388502424a9742d37ce
[ "MIT" ]
2
2019-04-09T06:06:27.000Z
2019-06-03T15:08:20.000Z
# -*- coding: utf-8 -*- """ Sequential Gaussian Simulation Created on Sun Dec 4 2016 """ from __future__ import absolute_import, division, print_function __author__ = "yuhao" import json import os import time from collections import namedtuple from itertools import product import matplotlib.pyplot as plt import num...
38.752941
99
0.494792
79b6bac23f8e8a3c1a5256ab65145184640f3ccd
61,129
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_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 ...
47.831768
609
0.684929
79b6c83f0d1d09e5a37c2fa80d754d92a0d34feb
880
py
Python
tests/test_lambda_reducer.py
kmkurn/rnnr
6fb53b1dfe3266e1648c361753950c6c59e720a8
[ "Apache-2.0" ]
3
2019-10-27T10:03:18.000Z
2019-10-28T11:11:46.000Z
tests/test_lambda_reducer.py
kmkurn/rnnr
6fb53b1dfe3266e1648c361753950c6c59e720a8
[ "Apache-2.0" ]
null
null
null
tests/test_lambda_reducer.py
kmkurn/rnnr
6fb53b1dfe3266e1648c361753950c6c59e720a8
[ "Apache-2.0" ]
null
null
null
from functools import reduce from rnnr import Event from rnnr.attachments import LambdaReducer def test_ok(runner): outputs = [4, 2, 1, 5, 6] batches = range(len(outputs)) @runner.on(Event.BATCH) def on_batch(state): state["output"] = outputs[state["batch"]] r = LambdaReducer("product",...
24.444444
73
0.631818
79b6ce6e53b1fa4635c9040be4dd29b397b0169d
4,162
py
Python
oscar/lib/python2.7/site-packages/IPython/lib/editorhooks.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/lib/editorhooks.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/lib/editorhooks.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" 'editor' hooks for common editors that work well with ipython They should honor the line number argument, at least. Contributions are *very* welcome. """ from __future__ import print_function import os import pipes import shlex import subprocess import sys from IPython import get_ipython from IPy...
32.015385
81
0.616771
79b6cf61f046627d980a0440f7c1f8025b6719c6
1,418
py
Python
serie1/bruch.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
serie1/bruch.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
serie1/bruch.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
# Authors: Tom Lambert (lambertt) and Yuuma Odaka-Falush (odafaluy) from __future__ import print_function from pprint import pprint from fraction_tests import test_fraction from prime_tests import test_prime from fraction import Fraction import user class Bruch(Fraction): """A derivative of the Fraction-class...
24.448276
95
0.654443
79b6dbc9a7f2542f852a2b342474f187d2f22100
1,206
py
Python
fantacalcio/public/forms.py
cekk/fantacalcio-react
067479d760633384053f652c14c71ec493971ea1
[ "BSD-3-Clause" ]
2
2015-01-27T15:25:16.000Z
2017-02-19T19:39:31.000Z
fantacalcio/public/forms.py
cekk/fantacalcio-react
067479d760633384053f652c14c71ec493971ea1
[ "BSD-3-Clause" ]
null
null
null
fantacalcio/public/forms.py
cekk/fantacalcio-react
067479d760633384053f652c14c71ec493971ea1
[ "BSD-3-Clause" ]
null
null
null
from flask_wtf import Form from wtforms import TextField, PasswordField from wtforms.validators import DataRequired from werkzeug import secure_filename from fantacalcio.user.models import User from flask_wtf.file import FileField class LoginForm(Form): username = TextField('Username', validators=[DataRequired()]...
30.15
77
0.677446