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
ff3bab7707a6ff50d118f812bcf4004f1e04ab23
3,788
py
Python
tests/test_dbd_parsimonious.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
1
2016-06-08T15:14:15.000Z
2016-06-08T15:14:15.000Z
tests/test_dbd_parsimonious.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
12
2016-02-11T15:01:05.000Z
2019-09-23T17:28:32.000Z
tests/test_dbd_parsimonious.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
4
2016-06-08T15:03:07.000Z
2019-09-23T17:05:38.000Z
from recordwhat.parsers.dbd_parsimonious import ( dbd_grammar, dbdField, dbdRecordType, RecordWalker, stream_dbd, generate_all, stream_table, _BASE_FIELDS, _IMPORTS, prettytable_summary) from recordwhat.parsers.generate import (load_dbd_derived, generate) from recordwhat.util import read_file from collectio...
29.826772
68
0.567846
ff3bcc1447f9db168970d73cbcab9ef5c6c17178
4,194
py
Python
anymail/backends/postal.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
1,324
2016-03-10T04:57:52.000Z
2022-03-31T15:14:58.000Z
anymail/backends/postal.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
208
2016-03-10T03:40:59.000Z
2022-03-22T23:16:08.000Z
anymail/backends/postal.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
129
2016-03-10T09:24:52.000Z
2022-02-07T05:37:24.000Z
from .base_requests import AnymailRequestsBackend, RequestsPayload from ..exceptions import AnymailRequestsAPIError from ..message import AnymailRecipientStatus from ..utils import get_anymail_setting class EmailBackend(AnymailRequestsBackend): """ Postal v1 API Email Backend """ esp_name = "Postal" ...
32.511628
87
0.627325
ff3bd4bca5525ee36d928e675d467517706d0038
1,469
py
Python
src/AudioVideoMerge/AudioVideoMerger.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
src/AudioVideoMerge/AudioVideoMerger.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
src/AudioVideoMerge/AudioVideoMerger.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
from glob import glob import config import subprocess from Utilities import Utilities as util from tqdm import tqdm import moviepy.editor as editor import os class AudioVideoMerger: def __init__(self, fileName): self.fileName = fileName self.audioFilePath = util.getSeparatedAudioFilePath(self.file...
39.702703
113
0.652144
ff3c0df8b25a86e9b1f7b84558f6fe244e2fcc86
520
py
Python
tests/_site/apps/partner/migrations/0002_auto_20141007_2032.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
tests/_site/apps/partner/migrations/0002_auto_20141007_2032.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
tests/_site/apps/partner/migrations/0002_auto_20141007_2032.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import oscar.core.utils class Migration(migrations.Migration): dependencies = [ ('partner', '0001_initial'), ] operations = [ migrations.AlterField( model_...
24.761905
123
0.626923
ff3c217cf0c74db76ad4fa3f51ccc7bcab3970fb
265
py
Python
journal/urls.py
whiteisnick/nickpale
77ad44fa4f2f3b22d0e04419c9625f0fc2dbda02
[ "MIT" ]
null
null
null
journal/urls.py
whiteisnick/nickpale
77ad44fa4f2f3b22d0e04419c9625f0fc2dbda02
[ "MIT" ]
9
2018-03-25T18:00:11.000Z
2022-03-11T23:16:16.000Z
journal/urls.py
nickpale/nickpale
77ad44fa4f2f3b22d0e04419c9625f0fc2dbda02
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'journal' urlpatterns = [ # ex: /journal/ path('', views.JournalIndexView.as_view(), name='index'), # ex: /journal/5/ path('<int:pk>/', views.JournalEntryView.as_view(), name='entry') ]
20.384615
69
0.645283
ff3c47b3fd08fc54bb5c841efcab7210c172f10e
708
py
Python
src/radical/ensemblemd/engine/tests/testcases.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/engine/tests/testcases.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/engine/tests/testcases.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
""" Engine tests cases """ import os import sys import unittest #----------------------------------------------------------------------------- # class EngineTestCases(unittest.TestCase): # silence deprecation warnings under py3 def setUp(self): # clean up fragments from previous tests pass ...
22.125
78
0.484463
ff3c754567cb0ef00637f04ea4c753157433279f
834
py
Python
python/ctci/2_linked_lists/node.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/ctci/2_linked_lists/node.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/ctci/2_linked_lists/node.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
class Node: def __init__(self, data): self.data = data self.nxt = None def add(self, data): nxt = self while nxt.nxt is not None: nxt = nxt.nxt nxt.nxt = Node(data) return nxt.nxt def join(self, node): self.nxt = node def get_size(n): count = 1 while n.nxt is not No...
17.375
48
0.576739
ff3c8a20227aac09134cadb80797f4694754c58a
14,074
py
Python
oscar/lib/python2.7/site-packages/isort/settings.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/isort/settings.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/isort/settings.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""isort/settings.py. Defines how the default settings for isort should be loaded (First from the default setting dictionary at the top of the file, then overridden by any settings in ~/.isort.cfg if there are any) Copyright (C) 2013 Timothy Edmund Crosley Permission is hereby granted, free of charge, to...
54.762646
128
0.558192
ff3c8ed95e10cdd95cab0a0ede5a61e4f8324811
4,098
py
Python
tests/issues/test_issue_64.py
vishalbelsare/tradingkit
a5dd5e1de828a930c3d4530a34f564b110edc076
[ "MIT" ]
null
null
null
tests/issues/test_issue_64.py
vishalbelsare/tradingkit
a5dd5e1de828a930c3d4530a34f564b110edc076
[ "MIT" ]
null
null
null
tests/issues/test_issue_64.py
vishalbelsare/tradingkit
a5dd5e1de828a930c3d4530a34f564b110edc076
[ "MIT" ]
null
null
null
import random from unittest import TestCase from tradingkit.cli.runner import Runner from tradingkit.data.feed.list_feeder import ListFeeder from tradingkit.display.none_plotter import NonePlotter from tradingkit.display.plotly_plotter import PlotlyPlotter from tradingkit.exchange.bridge_exchange import BridgeExchange...
36.589286
86
0.468521
ff3ca1f495d8dafa88f6cc5ea781e8873eb9ee26
5,112
py
Python
python/examples/lightpaint.py
control-led/rpi_ws281x
9b257443449650fa24b1bbbc894099f2863f4144
[ "BSD-2-Clause" ]
1,583
2015-01-01T14:39:44.000Z
2022-03-28T19:21:19.000Z
python/examples/lightpaint.py
control-led/rpi_ws281x
9b257443449650fa24b1bbbc894099f2863f4144
[ "BSD-2-Clause" ]
428
2015-01-01T17:43:16.000Z
2022-03-24T21:20:21.000Z
python/examples/lightpaint.py
control-led/rpi_ws281x
9b257443449650fa24b1bbbc894099f2863f4144
[ "BSD-2-Clause" ]
637
2015-01-03T19:53:09.000Z
2022-03-31T16:33:52.000Z
#!/usr/bin/env python3 # rpi_ws281x library light-painting example # Author: Gary Servin (garyservin@gmail.com) # # Lightpainting example for displaying images one column at a time and capturing # it by taking a long exposure photograph. # Based on https://github.com/scottjgibson/PixelPi import time from rpi_ws281x im...
40.251969
159
0.656886
ff3cd5401e73a58f636c4e0fde2736d8f1cfa603
728
py
Python
setup.py
davebshow/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
32
2015-11-01T11:08:33.000Z
2021-05-09T05:42:07.000Z
setup.py
daveopsX/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
14
2015-10-19T14:04:27.000Z
2017-09-13T19:32:33.000Z
setup.py
daveopsX/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
10
2015-10-30T00:07:26.000Z
2021-05-17T17:58:14.000Z
from setuptools import setup setup( name="gremlinclient", version="0.2.8", url="", license="MIT", author="davebshow", author_email="davebshow@gmail.com", description="Python driver for TP3 Gremlin Server", long_description=open("README.txt").read(), packages=["gremlinclient", "grem...
26.962963
62
0.616758
ff3cfc15df9b8490a45e0d8b4d48e1b922b03aa4
2,559
py
Python
tests/backends/test_memory_cache_backend.py
musebc/starlette-cache-middleware
d880cc64cff14b443c43de84db1cbc5473ec2814
[ "Apache-2.0" ]
1
2021-06-14T21:14:49.000Z
2021-06-14T21:14:49.000Z
tests/backends/test_memory_cache_backend.py
musebc/starlette-cache-middleware
d880cc64cff14b443c43de84db1cbc5473ec2814
[ "Apache-2.0" ]
null
null
null
tests/backends/test_memory_cache_backend.py
musebc/starlette-cache-middleware
d880cc64cff14b443c43de84db1cbc5473ec2814
[ "Apache-2.0" ]
null
null
null
from unittest.mock import patch, MagicMock import pytest from starlette_cache.backends.memory_cache_backend import MemoryCacheBackend class ExampleClass(object): def __init__(self, value: str): self.value = value def __eq__(self, other): return isinstance(other, ExampleClass) and self.value...
30.831325
88
0.670965
ff3d4d81fe3d5a94870895b422f31ee2b861d3ae
7,647
py
Python
experiments/ashvin/demos/multiobj/td3bc2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/demos/multiobj/td3bc2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/demos/multiobj/td3bc2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
"""Example behavior cloning script for pointmass. If you are trying to run this code, ask Ashvin for the demonstration file: demos/pointmass_demos_100.npy (which should go in your S3 storage) """ import rlkit.misc.hyperparameter as hyp from multiworld.envs.mujoco.cameras import sawyer_pusher_camera_upright_v2 from mu...
32.819742
87
0.627959
ff3dd64256dcca8b756ff822800e61b324e9a2bb
7,008
py
Python
electrum/base_crash_reporter.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
electrum/base_crash_reporter.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
electrum/base_crash_reporter.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
# Electrum - lightweight Bitcoin client # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, merge, # publish...
37.276596
117
0.683076
ff3dfbe2798a275905d8679d96e3ff51aa239141
41,097
py
Python
astwro/tools/gapick.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
6
2017-06-15T20:34:51.000Z
2020-04-15T14:21:43.000Z
astwro/tools/gapick.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
18
2017-08-15T20:53:55.000Z
2020-10-05T23:40:34.000Z
astwro/tools/gapick.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
2
2017-11-06T15:33:53.000Z
2020-10-02T21:06:05.000Z
#! /usr/bin/env python # coding=utf-8 """ Find best PSF stars using GA to minimize mean error. .. seealso:: :ref:`gapick` """ from __future__ import absolute_import, division, print_function __metaclass__ = type # For now: # TODO: --neigbours option: once for generation neightbour removal # TODO: --timestamp: add...
49.159091
129
0.625204
ff3e264b9dceaa56b597ef053860dd81c365a92c
694
py
Python
nlp_annotator_api/utils/update_dataclass.py
dasaku-ai/nlpmodel-v-h
326bb9467df11d517285610c70f9d22627eb5efc
[ "Apache-2.0" ]
3
2022-01-04T12:15:22.000Z
2022-03-25T21:19:20.000Z
nlp_annotator_api/utils/update_dataclass.py
IBM/deepsearch-nlp-annotator-api-example
76c2c8fd83c1e6d51c51c7b581a8c3f273b23c40
[ "Apache-2.0" ]
1
2022-02-02T09:26:44.000Z
2022-02-02T09:26:44.000Z
nlp_annotator_api/utils/update_dataclass.py
dasaku-ai/nlpmodel-v-h
326bb9467df11d517285610c70f9d22627eb5efc
[ "Apache-2.0" ]
5
2021-09-27T08:26:09.000Z
2022-03-10T11:41:35.000Z
from dataclasses import Field, is_dataclass from typing import Any, Mapping def update_dataclass(self: Any, config: Any): if not is_dataclass(self): raise ValueError("Only dataclasses are supported.") for k, v in config.items(): if k not in self.__dataclass_fields__: continue ...
26.692308
59
0.649856
ff3e47ad0be895a5a1026172616d234bf2fedea0
219
py
Python
archives/02/tootle/utils.py
asmodehn/caerbannog
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
1
2019-01-22T20:57:45.000Z
2019-01-22T20:57:45.000Z
archives/03/footle/utils.py
asmodehn/functional-python
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
3
2019-03-14T17:33:39.000Z
2019-03-14T18:09:42.000Z
archives/03/footle/utils.py
asmodehn/caerbannog
47bb1138190748041a4c0d02e522c0924a9af962
[ "MIT" ]
null
null
null
import enum # Directly, naively, modeled in python 3.6 # from the code shown in : https://www.youtube.com/watch?v=AG3KuqDbmhM # Side Note: Yes, Python has enums ! class PenState(enum.Enum): UP = -1 DOWN = 1
18.25
70
0.680365
ff3e4bd7a15d09e885a1f024b0cff5237071058e
42,003
py
Python
sdk/media/azure-mgmt-media/azure/mgmt/media/models/_azure_media_services_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/media/azure-mgmt-media/azure/mgmt/media/models/_azure_media_services_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/media/azure-mgmt-media/azure/mgmt/media/models/_azure_media_services_enums.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 ...
46.309813
110
0.727377
ff3e6b35a7656a613085eb9070db255d44951707
3,196
py
Python
rl-toolkit/rlf/envs/env_interface.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
rl-toolkit/rlf/envs/env_interface.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
rl-toolkit/rlf/envs/env_interface.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import numpy as np import os.path as osp import re from collections import OrderedDict import gym class EnvInterface(object): def __init__(self, args): self.args = args def setup(self, args, task_id): self.task_id = task_id def requires_tensor_wrap(self): return True def env_...
26.633333
75
0.653942
ff3eae95bf87ae5ac266e64effbeefe907fce6c4
9,586
py
Python
lib/fast_rcnn/config.py
yxliang/pva-faster-rcnn
b0dc7d255da61188dda01e8760078b6991d6f7e2
[ "BSD-2-Clause" ]
744
2016-09-01T06:36:47.000Z
2022-03-28T00:32:10.000Z
lib/fast_rcnn/config.py
yxliang/pva-faster-rcnn
b0dc7d255da61188dda01e8760078b6991d6f7e2
[ "BSD-2-Clause" ]
105
2016-09-26T17:48:30.000Z
2020-08-09T15:25:22.000Z
lib/fast_rcnn/config.py
yxliang/pva-faster-rcnn
b0dc7d255da61188dda01e8760078b6991d6f7e2
[ "BSD-2-Clause" ]
313
2016-09-14T13:20:35.000Z
2021-08-13T02:59:15.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Fast R-CNN config system. This file specifies default config option...
32.060201
91
0.693303
ff3ec0feae98395c22d014cf0945a17060aab963
240
py
Python
tests/test_silence_tensorflow.py
LucaCappelletti94/silence_tensorflow
bddab5a96a5fc2130a074eb8a9e201d06361ee17
[ "MIT" ]
14
2020-04-07T16:20:02.000Z
2022-01-31T11:53:33.000Z
tests/test_silence_tensorflow.py
LucaCappelletti94/silence_tensorflow
bddab5a96a5fc2130a074eb8a9e201d06361ee17
[ "MIT" ]
3
2020-03-09T10:36:25.000Z
2021-02-15T10:26:00.000Z
tests/test_silence_tensorflow.py
LucaCappelletti94/silence_tensorflow
bddab5a96a5fc2130a074eb8a9e201d06361ee17
[ "MIT" ]
null
null
null
from silence_tensorflow import silence_tensorflow def test_silence_tensorflow(): """Check that everything runs.""" silence_tensorflow() def test_auto_silence(): import silence_tensorflow.auto # pylint: disable=unused-variable
30
69
0.783333
ff3ece7a2fdf0f4d002cd76f8676adee17932f1c
16,975
py
Python
hivwholeseq/sequencing/build_consensus_iterative.py
neherlab/hivwholeseq
978ce4060362e4973f92b122ed5340a5314d7844
[ "MIT" ]
3
2016-09-13T12:15:47.000Z
2021-07-03T01:28:56.000Z
hivwholeseq/sequencing/build_consensus_iterative.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
null
null
null
hivwholeseq/sequencing/build_consensus_iterative.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
3
2016-01-17T03:43:46.000Z
2020-03-25T07:00:11.000Z
#!/usr/bin/env python # vim: fdm=indent ''' author: Fabio Zanini date: 12/08/13 content: Take reads mapped to HXB2, then build a consensus, then map recursively againt consensi until the latter do not change anymore. This elaborate scheme is necessary to cope with indel-rich region...
39.847418
114
0.604948
ff3ee4e0aa72c96a6b61185f57659ec9f099df4c
3,401
py
Python
Quantize/Quantizers_test.py
stevenygd/TensorQuant-Experiment
f084b57c22a3c2d4fa49d77b56a35e9017149789
[ "Apache-2.0" ]
null
null
null
Quantize/Quantizers_test.py
stevenygd/TensorQuant-Experiment
f084b57c22a3c2d4fa49d77b56a35e9017149789
[ "Apache-2.0" ]
null
null
null
Quantize/Quantizers_test.py
stevenygd/TensorQuant-Experiment
f084b57c22a3c2d4fa49d77b56a35e9017149789
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np import Quantizers import math import time import struct from tensorflow.python.ops import standard_ops from tensorflow.python.ops import nn hex_lambda = lambda x : hex(struct.unpack('<I', struct.pack('<f', x))[0]) toHex = np.vectorize(hex_lambda) input_width = input_height...
29.068376
104
0.707439
ff3ef5a9df8821278ed900c0e15914d29778ea38
13,465
py
Python
gpkit/constraints/sgp.py
appliedopt/gpkit
647ef0a2a0ff625026943bfd7fb5ca560100898b
[ "MIT" ]
1
2015-01-20T16:02:38.000Z
2015-01-20T16:02:38.000Z
gpkit/constraints/sgp.py
appliedopt/gpkit
647ef0a2a0ff625026943bfd7fb5ca560100898b
[ "MIT" ]
2
2015-01-19T21:29:44.000Z
2015-01-20T15:26:26.000Z
gpkit/constraints/sgp.py
appliedopt/gpkit
647ef0a2a0ff625026943bfd7fb5ca560100898b
[ "MIT" ]
null
null
null
"""Implement the SequentialGeometricProgram class""" import warnings as pywarnings from time import time from collections import defaultdict import numpy as np from ..exceptions import (InvalidGPConstraint, Infeasible, UnnecessarySGP, InvalidPosynomial, InvalidSGPConstraint) from ..keydict imp...
48.610108
109
0.564575
ff3f0b30621729e852594f28d5f97d896f0c73be
6,712
py
Python
salt/modules/publish.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
salt/modules/publish.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/publish.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Publish a command from a minion to a target ''' # Import python libs import time import ast import logging # Import salt libs import salt.crypt import salt.payload import salt.transport from salt.exceptions import SaltReqTimeoutError from salt._compat import string_types, integer_types lo...
28.440678
87
0.601758
ff3f173405e945858a6a3c0a7e5793380937e01a
2,377
py
Python
ucscsdk/mometa/firmware/FirmwareProductFamily.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/mometa/firmware/FirmwareProductFamily.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/mometa/firmware/FirmwareProductFamily.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the general information for FirmwareProductFamily ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class FirmwareProductFamilyConsts(): FAMILY_NAME_UCS_CLASSIC = "ucs-classic" FAMI...
50.574468
290
0.688683
ff3f2ab61ad2cda6756a845f900ccfe3901e09ee
614
py
Python
libpython/gary/dbm_parser.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
8
2015-11-02T22:55:24.000Z
2018-05-27T22:11:40.000Z
libpython/gary/dbm_parser.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
3
2021-03-31T19:12:43.000Z
2021-12-13T20:03:51.000Z
libpython/gary/dbm_parser.py
longnow/panlex-tools
1b10fa140af96078c7c909cd10f3f3c05f641671
[ "MIT" ]
2
2016-07-11T18:00:18.000Z
2019-04-23T14:41:52.000Z
#!/usr/bin/env python3 import regex as re def getRecords(filename): with open(filename) as fin: started = False fields = [] for line in fin: match = re.search('^\\\\(\S+)\s+(.*)', line) if match: if match[1] == 'le': if s...
27.909091
60
0.389251
ff3f55de0f53a7370c54af4a83985ed1634ec3d1
6,646
py
Python
datalad/downloaders/tests/test_s3.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
1
2021-06-11T19:54:19.000Z
2021-06-11T19:54:19.000Z
datalad/downloaders/tests/test_s3.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
21
2015-03-12T11:48:18.000Z
2020-08-31T09:28:05.000Z
datalad/downloaders/tests/test_s3.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
41.279503
150
0.720132
ff3f80fe25bf1309763f2ab8bfafa762f73bc604
430
py
Python
tests/megawing/spartan6/ram/_ram256.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/megawing/spartan6/ram/_ram256.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/megawing/spartan6/ram/_ram256.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
import sys from magma import * from mantle.xilinx.spartan6.RAM import RAM256 from loam.shields.megawing import MegaWing megawing = MegaWing() megawing.Clock.on() megawing.Switch.on(8) megawing.LED.on(1) main = megawing.main() ram = RAM256(32 * [0,1] + 32 * [1,1] + 32 * [1,0] + 32 * [1,1]) wire(main.CLK, ram.CLK) wi...
17.2
63
0.67907
ff401b067656575dbb5c4e43cbef6fb312dd8244
5,918
py
Python
cloud9_root/src/tools/gce/manage_gce.py
DanielGuoVT/symsc
95b705bd1f4d2863d79866c84fc7ee90aba743cb
[ "Apache-2.0" ]
3
2019-02-12T04:14:39.000Z
2020-11-05T08:46:20.000Z
cloud9_root/src/tools/gce/manage_gce.py
DanielGuoVT/symsc
95b705bd1f4d2863d79866c84fc7ee90aba743cb
[ "Apache-2.0" ]
null
null
null
cloud9_root/src/tools/gce/manage_gce.py
DanielGuoVT/symsc
95b705bd1f4d2863d79866c84fc7ee90aba743cb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2012 EPFL. All rights reserved. """Manages a GCE cloud running Cloud9.""" __author__ = "stefan.bucur@epfl.ch (Stefan Bucur)" import argparse import json import logging import os import sys import time try: from gcelib import gce_util from gcelib import gce_v1beta12 from g...
27.398148
80
0.660527
ff4039b6690679802b0d3a252ec876eb4eb55530
1,770
py
Python
custom_components/ble_monitor/ble_parser/brifit.py
avidit/home-assistant-config
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
383
2019-11-25T17:13:04.000Z
2020-11-12T08:47:35.000Z
custom_components/ble_monitor/ble_parser/brifit.py
scrambledleek/ha_hacs_ble_monitor
abafc7a34312e695667325dbe97c309f20dd1527
[ "MIT" ]
142
2019-11-25T21:29:27.000Z
2020-11-12T16:58:01.000Z
custom_components/ble_monitor/ble_parser/brifit.py
scrambledleek/ha_hacs_ble_monitor
abafc7a34312e695667325dbe97c309f20dd1527
[ "MIT" ]
65
2019-11-26T11:53:44.000Z
2020-11-11T16:37:52.000Z
"""Parser for Brifit BLE advertisements""" import logging from struct import unpack from .helpers import ( to_mac, to_unformatted_mac, ) _LOGGER = logging.getLogger(__name__) def parse_brifit(self, data, source_mac, rssi): """Parser for Brifit sensors""" msg_length = len(data) if msg_length == 2...
27.65625
95
0.568362
ff403d66810ffd1b8dbf8c95c3f6b10edb04f4a3
2,555
py
Python
services/director/setup.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/director/setup.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/director/setup.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
import io import re import sys from fnmatch import fnmatch from itertools import chain from os import walk from os.path import join from pathlib import Path from setuptools import find_packages, setup _CDIR = Path(sys.argv[0] if __name__ == '__main__' else __file__).resolve().parent if sys.version_info<(3, 6): r...
32.75641
107
0.628963
ff403f591e8f4b2af72f399495d232a990b8e10b
10,190
py
Python
th2_check2_recon/rule.py
th2-net/th2-check2-recon
fb34e78d3efb70c9a80e86f1b7c1018a8061b573
[ "Apache-2.0" ]
null
null
null
th2_check2_recon/rule.py
th2-net/th2-check2-recon
fb34e78d3efb70c9a80e86f1b7c1018a8061b573
[ "Apache-2.0" ]
1
2021-06-30T08:52:02.000Z
2021-06-30T08:52:02.000Z
th2_check2_recon/rule.py
th2-net/th2-check2-recon
fb34e78d3efb70c9a80e86f1b7c1018a8061b573
[ "Apache-2.0" ]
1
2020-12-11T09:11:23.000Z
2020-12-11T09:11:23.000Z
# Copyright 2020-2021 Exactpro (Exactpro Systems Limited) # # 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 ...
42.107438
120
0.629146
ff4054cc1f3bbdba90d8829ddf9cd67514d11ea1
30,360
py
Python
sympy/concrete/tests/test_sums_products.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
1
2015-08-31T06:55:47.000Z
2015-08-31T06:55:47.000Z
sympy/concrete/tests/test_sums_products.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
null
null
null
sympy/concrete/tests/test_sums_products.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
3
2015-04-18T22:33:32.000Z
2015-09-23T06:45:07.000Z
from sympy import ( Abs, And, binomial, Catalan, cos, Derivative, E, Eq, exp, EulerGamma, factorial, Function, harmonic, I, Integral, KroneckerDelta, log, nan, Ne, Or, oo, pi, Piecewise, Product, product, Rational, S, simplify, sqrt, Sum, summation, Symbol, symbols, sympify, zeta, gamma ) from sympy.abc...
37.574257
84
0.48531
ff4069f164b0b1f5c406349c4ff73eb76abdeaec
485
py
Python
selenium/login_126_module_more_main.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
selenium/login_126_module_more_main.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
selenium/login_126_module_more_main.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/evn python # -*- coding:utf-8 -*- #python version 2.7.10 from selenium import webdriver import time import login_126_module_more_public as public driver = webdriver.Firefox() #设置隐士等待10s driver.implicitly_wait(10) driver.get("http://mail.126.com") class Account(object): def __init__(self, username,passwo...
22.045455
45
0.760825
ff406ad28b54bbdd8fb7b8efbe19691f5abcd57e
973
py
Python
moorkh/attacks/fgsm.py
akshay-gupta123/moorkh
5094f0971ff6ed6252c401f29a37100e971c963b
[ "MIT" ]
null
null
null
moorkh/attacks/fgsm.py
akshay-gupta123/moorkh
5094f0971ff6ed6252c401f29a37100e971c963b
[ "MIT" ]
null
null
null
moorkh/attacks/fgsm.py
akshay-gupta123/moorkh
5094f0971ff6ed6252c401f29a37100e971c963b
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from .base import Attack class FGSM(Attack): def __init__(self, model, eps=0.05): super(FGSM,self).__init__(model, "FGSM") self.eps = eps def forward(self, images,labels): images = images.clone().detach().to(self.device) lab...
31.387097
89
0.603289
ff4085b852eb6101baffffe440623bc1008f8f28
3,284
py
Python
deeppavlov/core/data/data_learning_iterator.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
3
2020-04-16T04:25:10.000Z
2021-05-07T23:04:43.000Z
deeppavlov/core/data/data_learning_iterator.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
12
2020-01-28T22:14:04.000Z
2022-02-10T00:10:17.000Z
deeppavlov/core/data/data_learning_iterator.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2021-02-05T13:01:48.000Z
2021-02-05T13:01:48.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
34.208333
102
0.610231
ff40b7c55302d3b3fda003328fc0eacc2f3014b5
3,647
py
Python
cep_price_console/cntr_upload/View_5.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
cep_price_console/cntr_upload/View_5.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
5
2021-03-31T19:27:48.000Z
2022-01-13T01:57:46.000Z
cep_price_console/cntr_upload/View_5.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
from tkinter import * from tkinter.ttk import * from cep_price_console.cntr_upload.CntrUploadTab import CntrUploadTab from cep_price_console.utils.log_utils import CustomAdapter, debug from cep_price_console.cntr_upload.Treeview import TreeviewConstructor, TreeColumn, TreeRow import logging class Step5ReviewUpload(Cn...
40.977528
94
0.638059
ff40dedbe4266f4d1568f7cd85afd8a2d4e15682
1,138
py
Python
join_sampling_python/test/test_relation.py
ixlab/join_sampling_public
ca3e1faced5d248ad81d935badbbb5eb580b3c9e
[ "Apache-2.0" ]
3
2016-05-13T20:50:35.000Z
2022-03-25T22:07:33.000Z
join_sampling_python/test/test_relation.py
ixlab/join_sampling
ca3e1faced5d248ad81d935badbbb5eb580b3c9e
[ "Apache-2.0" ]
null
null
null
join_sampling_python/test/test_relation.py
ixlab/join_sampling
ca3e1faced5d248ad81d935badbbb5eb580b3c9e
[ "Apache-2.0" ]
null
null
null
import unittest from src.row import Row from src.relation import Relation # pylint: disable=R0904 class RowTests(unittest.TestCase): def test_is_present(self): relation = self.get_standard_relation() self.assertTrue(relation.is_present_key(Row(1, ['1', 2, 'a'])), "key 1 is not present i...
29.947368
67
0.612478
ff40e0f83ff0eacd4370ee8ec617772fc109aa63
1,699
py
Python
features_generation/utils/parcellation.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
null
null
null
features_generation/utils/parcellation.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
1
2021-08-12T07:54:37.000Z
2021-08-12T07:54:37.000Z
features_generation/utils/parcellation.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
1
2021-08-08T11:56:19.000Z
2021-08-08T11:56:19.000Z
from pathlib import Path import pandas as pd import nibabel as nib import numpy as np import tqdm parcellation_fname = Path( "/media/groot/Data/Parcellations/MNI/BN_Atlas_274_combined_1mm.nii.gz" ) parcellation_labels = pd.read_csv( "/media/groot/Data/Parcellations/MNI/BNA_with_cerebellum.csv", index_col=0 ) ...
24.623188
78
0.657446
ff40e56895de61d8a0ec485e34cec266589135b9
2,652
py
Python
setup.py
AravindR7/mindmeld
470bba73ac56b6388146212ddaf697097e81cec3
[ "Apache-2.0" ]
1
2019-12-12T12:44:33.000Z
2019-12-12T12:44:33.000Z
setup.py
AravindR7/mindmeld
470bba73ac56b6388146212ddaf697097e81cec3
[ "Apache-2.0" ]
null
null
null
setup.py
AravindR7/mindmeld
470bba73ac56b6388146212ddaf697097e81cec3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """This module contains the specification of the mindmeld package""" # pylint: disable=locally-disabled,invalid-name from setuptools import setup with open('README.md') as readme_file: readme = readme_file.read() requirements = [ 'attrs~=18.2', 'Click~=6.0', ...
28.516129
79
0.597285
ff40f9bf09e5609d92de3a99885006cecd7a5312
5,711
py
Python
test/integ_tests/conftest.py
antalszava/amazon-braket-pennylane-plugin-python-1
0228fd38dee5a586807b8a2b32b3bfa0f0360669
[ "Apache-2.0" ]
16
2021-01-11T20:59:39.000Z
2022-03-04T14:18:20.000Z
test/integ_tests/conftest.py
antalszava/amazon-braket-pennylane-plugin-python-1
0228fd38dee5a586807b8a2b32b3bfa0f0360669
[ "Apache-2.0" ]
43
2020-12-09T00:19:38.000Z
2022-03-29T19:52:55.000Z
test/integ_tests/conftest.py
aws/amazon-braket-pennylane-plugin-python
dbb8f4ae6d82778a9efb0a7f635100be6e323024
[ "Apache-2.0" ]
11
2021-01-11T21:01:42.000Z
2021-11-01T08:46:11.000Z
# Copyright Amazon.com Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file a...
30.87027
98
0.638592
ff4102cbcfab60075dbe53f8cf23a706c6dfa3c1
792
py
Python
id.py
UnitedIncome/SLACKBOT-DESTROYER
a38900136cea8adf71bd29fadaa2788c52f3f9be
[ "MIT" ]
32
2018-11-01T15:44:50.000Z
2021-08-10T07:30:50.000Z
id.py
UnitedIncome/SLACKBOT-DESTROYER
a38900136cea8adf71bd29fadaa2788c52f3f9be
[ "MIT" ]
4
2018-10-30T20:44:19.000Z
2021-06-04T00:06:30.000Z
id.py
isabella232/slackbot-destroyer
a38900136cea8adf71bd29fadaa2788c52f3f9be
[ "MIT" ]
2
2021-06-25T15:59:15.000Z
2021-08-05T18:09:22.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os from constants import SLACK_BOT_TOKEN from slackclient import SlackClient # This should be replaced with the name of the bot user. BOT_NAME = str(os.environ.get('BOT_NAME')) slack_client = SlackClient(SLACK_BOT_TOKEN) if __name__ == "__main__": api_call = slack...
31.68
102
0.580808
ff410e1479eef2d59168fecb6ab19101bc2b918c
3,766
py
Python
sporco/pgm/ppp.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
217
2016-06-13T16:41:26.000Z
2022-03-22T06:31:05.000Z
sporco/pgm/ppp.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
21
2016-06-13T23:28:35.000Z
2022-02-17T23:20:01.000Z
sporco/pgm/ppp.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
47
2016-12-14T13:08:33.000Z
2021-12-12T01:59:49.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2019-2020 by Brendt Wohlberg <brendt@ieee.org> # Ulugbek Kamilov <kamilov@wustl.edu> # All rights reserved. BSD 3-clause License. # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' fi...
24.614379
74
0.593733
ff4131b27a3ac673cf58c741e6ad68e59c194057
2,922
py
Python
sdk/translation/azure-ai-translation-document/samples/sample_check_document_statuses.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/translation/azure-ai-translation-document/samples/sample_check_document_statuses.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/translation/azure-ai-translation-document/samples/sample_check_document_statuses.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """ FILE: sample_check_document_statuses.py DESCRIPTION: This sample demonstrates how to begin translation and then monitor each document's status and progress...
41.742857
115
0.687201
ff4134fadcbaddaaa43028432da1318ae7ad41e9
8,151
py
Python
tests/test_sagemaker/test_sagemaker_endpoint.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
tests/test_sagemaker/test_sagemaker_endpoint.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
tests/test_sagemaker/test_sagemaker_endpoint.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import boto3 from botocore.exceptions import ClientError, ParamValidationError import sure # noqa from moto import mock_sagemaker from moto.sts.models import ACCOUNT_ID import pytest TEST_REGION_NAME = "us-east-1" FAKE_ROLE_ARN = "arn:a...
34.685106
129
0.704944
ff413a5ef630dc01993cf4cea1b1c48b4bbce855
1,456
py
Python
musicxml_toolbox/musicxml/partlist.py
Kanma/musicxml_toolbox
0a3e70d70c4731cfd6eb8456b5d68497ebfd2922
[ "MIT" ]
2
2018-05-03T19:06:26.000Z
2021-04-13T11:21:57.000Z
musicxml_toolbox/musicxml/partlist.py
Kanma/musicxml_toolbox
0a3e70d70c4731cfd6eb8456b5d68497ebfd2922
[ "MIT" ]
null
null
null
musicxml_toolbox/musicxml/partlist.py
Kanma/musicxml_toolbox
0a3e70d70c4731cfd6eb8456b5d68497ebfd2922
[ "MIT" ]
null
null
null
from .xmlelementwrapper import XMLElementWrapper from copy import deepcopy from .scorepart import ScorePart class PartList(XMLElementWrapper): def __init__(self, xml_element): super(PartList, self).__init__(xml_element) self.score_parts = [] # <score-part> while True: ...
22.75
77
0.62294
ff4140e4927ead902e7d7f288a797941b17f2c2d
4,257
py
Python
python/pathilico/app/views/annotation_view.py
OtaYuji/pathilico
b28cb0d3db043de1f8a70723f8a8142b73b8c8bd
[ "Apache-2.0" ]
null
null
null
python/pathilico/app/views/annotation_view.py
OtaYuji/pathilico
b28cb0d3db043de1f8a70723f8a8142b73b8c8bd
[ "Apache-2.0" ]
null
null
null
python/pathilico/app/views/annotation_view.py
OtaYuji/pathilico
b28cb0d3db043de1f8a70723f8a8142b73b8c8bd
[ "Apache-2.0" ]
null
null
null
# Copyright # 2019 Department of Dermatology, School of Medicine, Tohoku University # # 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/LICENS...
33.257813
79
0.668546
ff41759f815c5a12cf8b0879bf9c1a81befd5a36
17,221
py
Python
funcstructs/structures/rootedtrees.py
caleblevy/endofunction-structures
084ddeab8d12307dd95b8727190c589a1bf659df
[ "MIT" ]
5
2015-05-06T05:08:26.000Z
2017-04-21T03:32:13.000Z
funcstructs/structures/rootedtrees.py
caleblevy/endofunction-structures
084ddeab8d12307dd95b8727190c589a1bf659df
[ "MIT" ]
null
null
null
funcstructs/structures/rootedtrees.py
caleblevy/endofunction-structures
084ddeab8d12307dd95b8727190c589a1bf659df
[ "MIT" ]
null
null
null
"""Algorithms for representing and enumerating rooted trees. Caleb Levy, 2014-2015. """ from itertools import chain, groupby from math import factorial from funcstructs import bases from funcstructs.combinat import divisors, factorial_prod from funcstructs.compat import is_index, is_natural from funcstructs.utils.su...
41.100239
79
0.62087
ff4177977b877758ed28d6b11d0f364508eb412e
10,902
py
Python
argparser.py
fcdl94/ModelingTheBackground
1c589833ce5c1a7446469d4602ceab2cdeac1b0e
[ "MIT" ]
105
2020-03-20T17:47:00.000Z
2022-03-16T16:52:07.000Z
argparser.py
fcdl94/ModelingTheBackground
1c589833ce5c1a7446469d4602ceab2cdeac1b0e
[ "MIT" ]
38
2020-03-24T18:21:12.000Z
2022-02-25T17:44:01.000Z
argparser.py
fcdl94/ModelingTheBackground
1c589833ce5c1a7446469d4602ceab2cdeac1b0e
[ "MIT" ]
28
2020-04-27T18:44:37.000Z
2022-03-28T22:43:54.000Z
import argparse import tasks def modify_command_options(opts): if opts.dataset == 'voc': opts.num_classes = 21 if opts.dataset == 'ade': opts.num_classes = 150 if not opts.visualize: opts.sample_num = 0 if opts.method is not None: if opts.method == 'FT': p...
54.238806
117
0.59723
ff4191da63aacff157ea9a37cfac623a051a5cfb
540
py
Python
tests/test_datetime.py
road-master/showroom-event-scheduler
5dd0bfa9ad8529855d3e196a311470fa2025fbc5
[ "MIT" ]
null
null
null
tests/test_datetime.py
road-master/showroom-event-scheduler
5dd0bfa9ad8529855d3e196a311470fa2025fbc5
[ "MIT" ]
2
2021-08-02T16:47:05.000Z
2021-08-02T16:47:22.000Z
tests/test_datetime.py
road-master/showroom-event-scheduler
5dd0bfa9ad8529855d3e196a311470fa2025fbc5
[ "MIT" ]
null
null
null
"""Test for datetime.py.""" import pytest from showroomeventscheduler.datetime import ShowroomEventSchedulerDatetime class TestShowroomEventSchedulerDatetime: """Test for ShowroomEventSchedulerDatetime.""" @staticmethod def test_parse_time_over_24_hour(): with pytest.raises(ValueError): ...
28.421053
78
0.738889
ff419785eaed31bc4be7d959ad6a4f6a32093828
10,639
py
Python
tests/test_jet_pump.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
tests/test_jet_pump.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
tests/test_jet_pump.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2018 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
39.550186
188
0.588401
ff41a0f83604f1cc908db1cc9c222f68100350e1
19,176
py
Python
ninecms/migrations/0012_auto_20151218_1637.py
Wtower/django-ninecms
e500010fb11f06c8dfe8d8c9c4d2aab0b15bc127
[ "BSD-3-Clause" ]
49
2015-11-17T16:18:02.000Z
2021-12-10T15:01:03.000Z
ninecms/migrations/0012_auto_20151218_1637.py
Wtower/django-ninecms
e500010fb11f06c8dfe8d8c9c4d2aab0b15bc127
[ "BSD-3-Clause" ]
39
2015-11-18T12:20:14.000Z
2022-01-19T10:47:19.000Z
ninecms/migrations/0012_auto_20151218_1637.py
Wtower/django-ninecms
e500010fb11f06c8dfe8d8c9c4d2aab0b15bc127
[ "BSD-3-Clause" ]
9
2016-04-07T12:12:05.000Z
2021-02-04T15:42:02.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import mptt.fields import ninecms.utils.media import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('ninecms', '0011_auto_20151202_140...
52.536986
1,935
0.577441
ff41aca76029866ce07bb8e18765f0ffcde73d07
265
py
Python
dl_data_validation_toolset/framework/report/individual.py
kwierman/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
1
2017-08-24T00:46:47.000Z
2017-08-24T00:46:47.000Z
dl_data_validation_toolset/framework/report/individual.py
kwierman/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
177
2017-04-10T23:03:27.000Z
2022-03-28T22:07:54.000Z
dl_data_validation_toolset/framework/report/individual.py
HEP-DL/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
null
null
null
from .base import BaseReport class IndividualReport(BaseReport): """ 2+ Better than good 2= Good 1= Warning 0= Invalidates """ def __init__(self, name, status, fields): self.name = name self.status = status self.fields = fields
16.5625
43
0.641509
ff41ad0c4f4977c7714aa118c769b01f53de17ee
4,837
py
Python
nova/servicegroup/drivers/db.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/servicegroup/drivers/db.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2016-04-04T18:41:59.000Z
2016-04-04T18:41:59.000Z
nova/servicegroup/drivers/db.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
2
2015-12-04T23:51:46.000Z
2016-06-07T20:01:59.000Z
# Copyright 2012 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
43.1875
79
0.632624
ff41ff044a2c6d34160a8c5ac5dcce756b010681
811
py
Python
arm/serializers.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
arm/serializers.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
arm/serializers.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from arm.models import ArmImage, ArmTrainImage, ArmCylinderImage class ArmImageSerializer(serializers.ModelSerializer): class Meta: model = ArmImage fields = ('pk', 'rgb_source', 'depth_source', 'table_z') read_only_fields = ('result','create_time',) ...
33.791667
86
0.689273
ff4212efe33f80d5daca2a306ae9f0e5be2341d4
11,168
py
Python
spydrnet/ir/netlist.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
34
2020-03-12T15:40:49.000Z
2022-02-28T07:13:47.000Z
spydrnet/ir/netlist.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
104
2020-01-06T20:32:19.000Z
2022-01-02T00:20:14.000Z
spydrnet/ir/netlist.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
10
2020-09-02T20:24:00.000Z
2022-02-24T16:10:07.000Z
from spydrnet.ir.first_class_element import FirstClassElement from spydrnet.ir.library import Library from spydrnet.ir.instance import Instance from spydrnet.ir.views.listview import ListView from spydrnet.global_state import global_callback from spydrnet.global_state.global_callback import _call_create_netlist from co...
35.119497
129
0.617747
ff42136b7a2cf60fec48a4a6dd19cd6da0a45f86
1,149
py
Python
AlgorithmicTradingAndQuantitativeAnalysis/Examples/96_nb_predict.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
AlgorithmicTradingAndQuantitativeAnalysis/Examples/96_nb_predict.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
AlgorithmicTradingAndQuantitativeAnalysis/Examples/96_nb_predict.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
# -*- coding: utf-8 -*- """ Using trained Naive Bayes classifier to predict sentiment of a news article @author: Mayank Rasu """ import pickle import pandas as pd from sklearn.feature_extraction.text import TfidfTransformer #############Importing trained classifier and fitted vectorizer################ nb_clf = pickl...
38.3
107
0.746736
ff42184a528ecfffc331050e2d22234a73aef913
1,421
py
Python
OLD PROJECT/screens/mainscreen.py
Svaught598/WetLabApp
abec4b077547353c28ede748a07823812ea91112
[ "MIT" ]
1
2021-02-16T18:31:35.000Z
2021-02-16T18:31:35.000Z
OLD PROJECT/screens/mainscreen.py
Svaught598/WetLabApp
abec4b077547353c28ede748a07823812ea91112
[ "MIT" ]
5
2020-08-04T19:55:30.000Z
2022-03-12T00:28:10.000Z
OLD PROJECT/screens/mainscreen.py
Svaught598/WetLabApp
abec4b077547353c28ede748a07823812ea91112
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Menu Screen: This screen serves as a means navigate to each of the subroutines outlined in their corresponding screen module. """ """importing kivy modules""" from kivy.uix.screenmanager import Screen from kivy.lang.builder import Builder ####################################...
30.234043
79
0.422942
ff424a4a550558771c5b37262a7047017594d5c5
1,011
py
Python
HRI/TFVT_HRI/interaction/movement.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
146
2020-12-08T11:51:38.000Z
2022-03-23T12:58:43.000Z
HRI/TFVT_HRI/interaction/movement.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
10
2020-12-23T03:00:31.000Z
2022-03-23T09:55:30.000Z
HRI/TFVT_HRI/interaction/movement.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
43
2020-12-21T09:40:39.000Z
2022-03-31T06:41:32.000Z
from interaction.common.discrete_ctrl import DiscreteController from interaction.common.discrete_uc_ctrl import DiscreteUCController MOVEMENT_TO_ID = { 'null': 0, 'move_ahead': 1, 'move_backward': 2, 'move_left': 3, 'move_right': 4, 'turn_left': 5, 'turn_right': 6 } def movement_to_id(mo...
24.071429
68
0.693373
ff42a6c92c8e761ffbea4b8040e89d5a6c32b93b
7,925
py
Python
web/cloudstrype/main/fs/clouds/google.py
btimby/cloudstrype
e465ecbb7e4274be24b181dc6de3eb052d2eb656
[ "MIT" ]
5
2017-03-13T17:04:55.000Z
2017-06-14T22:55:45.000Z
web/cloudstrype/main/fs/clouds/google.py
btimby/cloudstrype
e465ecbb7e4274be24b181dc6de3eb052d2eb656
[ "MIT" ]
16
2017-02-24T06:41:27.000Z
2017-03-08T06:21:51.000Z
web/cloudstrype/main/fs/clouds/google.py
btimby/cloudstrype
e465ecbb7e4274be24b181dc6de3eb052d2eb656
[ "MIT" ]
null
null
null
import json import logging from base64 import b64encode from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from main.fs.clouds.base import BaseOAuth2APIClient, HTTPError from main.models import Chunk, Storage LOGGER = logging.getLogger(__name__) class GDriveAPIClient(BaseOAuth2AP...
37.738095
79
0.595457
ff42f018d28148b61a533fdc9d322fd105d58f48
667
py
Python
Corey Schafer/Enclosure and Decorator/closure&decorator.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
Corey Schafer/Enclosure and Decorator/closure&decorator.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
Corey Schafer/Enclosure and Decorator/closure&decorator.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
# https://raw.githubusercontent.com/CoreyMSchafer/code_snippets/master/Closures/closure.py # https://www.youtube.com/watch?v=swU3c34d2NQ&t=11s # Closures and decorator. import logging logging.basicConfig(filename='example.log', level=logging.INFO) def logger(func): def log_func(*args): logging.info( ...
20.84375
91
0.694153
ff4344bb64219701cfd1578da08745ee1bd78462
3,321
py
Python
pili/api_1_0/errors.py
pilosus/pili
8eb51e79420b7a2e4148f3b819e787cf6711e8cd
[ "MIT" ]
2
2019-12-22T13:05:08.000Z
2020-02-02T13:05:31.000Z
pili/api_1_0/errors.py
pilosus/pili
8eb51e79420b7a2e4148f3b819e787cf6711e8cd
[ "MIT" ]
71
2016-10-31T15:41:10.000Z
2022-03-21T14:26:22.000Z
pili/api_1_0/errors.py
pilosus/pili
8eb51e79420b7a2e4148f3b819e787cf6711e8cd
[ "MIT" ]
null
null
null
from typing import Optional from flask import Response, current_app, jsonify from werkzeug.exceptions import MethodNotAllowed from werkzeug.routing import RequestRedirect from pili.api_1_0 import api from pili.connectors.redis import RateLimitExceededError from pili.exceptions import ( ForbiddenError, Request...
29.131579
86
0.736826
ff434dad51beef3d7d7badd7f9893f718fa48156
4,002
py
Python
tests/test_api.py
ucb-sejits/opentuner
f78187f0010e7fa1f7969a1230518a4cfa12dedb
[ "MIT" ]
null
null
null
tests/test_api.py
ucb-sejits/opentuner
f78187f0010e7fa1f7969a1230518a4cfa12dedb
[ "MIT" ]
null
null
null
tests/test_api.py
ucb-sejits/opentuner
f78187f0010e7fa1f7969a1230518a4cfa12dedb
[ "MIT" ]
null
null
null
from __future__ import print_function import unittest import argparse import opentuner from opentuner.api import TuningRunManager from opentuner.measurement.interface import DefaultMeasurementInterface from opentuner.resultsdb.models import Result from opentuner.search.manipulator import ConfigurationManipulator, Inte...
42.574468
83
0.582209
ff4360e756d4c0dc487ca7968c1322ed00a8da51
2,838
py
Python
rabbitmq/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
rabbitmq/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
rabbitmq/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2021-06-21T19:21:51.000Z
2021-06-21T19:21:51.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest import mock import requests from datadog_checks.rabbitmq import RabbitMQ from datadog_checks.rabbitmq.rabbitmq import RabbitMQException @pytest.mark.unit def test__get_data(check): with mock....
35.037037
83
0.695208
ff4363371f2f6aec82a716621d0cd058ca52545d
940
py
Python
config.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
null
null
null
config.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
21
2019-10-23T21:16:18.000Z
2021-08-02T21:43:46.000Z
config.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
1
2019-10-25T23:01:25.000Z
2019-10-25T23:01:25.000Z
import os import sys DEBUG = sys.argv[1:] == ['DEBUG'] if DEBUG: from dotenv import load_dotenv load_dotenv() client_id = os.getenv("client_id") client_secret = os.getenv("client_secret") WEBAPP_HOST = '0.0.0.0' WEBAPP_PORT = os.getenv('PORT') HOST = os.getenv('HOST') WEBHOOK_PATH = "/webhook/lewis/" WEBHO...
22.380952
76
0.691489
ff439af82b960baec89a83c8d2f5e6312ab18a6a
5,896
py
Python
scrapli/driver/core/cisco_iosxe/async_driver.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
scrapli/driver/core/cisco_iosxe/async_driver.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
scrapli/driver/core/cisco_iosxe/async_driver.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
"""scrapli.driver.core.cisco_iosxe.async_driver""" from copy import deepcopy from io import BytesIO from typing import Any, Callable, Dict, List, Optional, Union from scrapli.driver import AsyncNetworkDriver from scrapli.driver.core.cisco_iosxe.base_driver import FAILED_WHEN_CONTAINS, PRIVS from scrapli.driver.network...
37.316456
100
0.652137
ff43afd36112add08e99121d4010e9f24d66c88d
747
py
Python
views/form.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
views/form.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
views/form.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.views.generic.edit import FormView from django.http import JsonResponse from mighty.descriptors.form import FormDescriptor from mighty.views.base import BaseView from mighty.views.template import TemplateView from mighty.forms import SearchForm class FormView(BaseView, FormView): pass class FormConfi...
28.730769
79
0.7751
ff43cec27c5916ba04f74b1272daa49400598859
2,230
py
Python
utils/competition_eval.py
itsnarsi/1WeStar
c3d0caa1079db6900a227ab51694faabd6f0eb2d
[ "MIT" ]
null
null
null
utils/competition_eval.py
itsnarsi/1WeStar
c3d0caa1079db6900a227ab51694faabd6f0eb2d
[ "MIT" ]
null
null
null
utils/competition_eval.py
itsnarsi/1WeStar
c3d0caa1079db6900a227ab51694faabd6f0eb2d
[ "MIT" ]
null
null
null
# @Author: Narsi Reddy <narsi> # @Date: 2020-01-18T20:22:17-06:00 # @Email: sdhy7@mail.umkc.edu # @Last modified by: narsi # @Last modified time: 2020-01-18T20:24:43-06:00 import numpy as np import json from PIL import Image from .msssim import MultiScaleSSIM from tqdm import tqdm def evaluate2(submission_images...
25.340909
91
0.703587
ff43d7bf60883e36dba0f9fbf0855d81ffc0f8e9
638
py
Python
tests/conftest.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
4
2021-02-16T19:34:38.000Z
2022-01-31T16:44:14.000Z
tests/conftest.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
tests/conftest.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
import shutil import tempfile import pytest import statey as st from tests.resources import register as register_test_resources register_test_resources() @pytest.fixture def session(): return st.create_session() @pytest.fixture def resource_session(): return st.create_resource_session() @pytest.fixture...
14.5
63
0.731975
ff43f0c478944218e4ef76e3d99ee6783adf9062
10,621
py
Python
infra/services/bugdroid/gitiles_poller.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
infra/services/bugdroid/gitiles_poller.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
infra/services/bugdroid/gitiles_poller.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Poller and support classes for git repositories with a gitiles interface. This module can poll git repositories for commit activity without requiring a l...
38.904762
80
0.684964
ff441d3da8856038abae90a53fa7419d4f727b49
7,647
py
Python
resources/lib/api/data_types.py
helviojr/plugin.video.netflix
f79811835c998709668f94fd350bdf428d797c64
[ "MIT" ]
15
2018-12-29T18:11:00.000Z
2019-03-23T19:45:21.000Z
resources/lib/api/data_types.py
helviojr/plugin.video.netflix
f79811835c998709668f94fd350bdf428d797c64
[ "MIT" ]
3
2019-01-06T14:57:58.000Z
2019-01-28T20:38:35.000Z
resources/lib/api/data_types.py
wintuxx/plugin.video.netflix
7db7f6398a91fdf064d4fd1cc0fdb1b08f0a39a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Convenience representations of datatypes returned by the API""" # pylint: disable=too-few-public-methods from __future__ import unicode_literals from collections import OrderedDict import resources.lib.common as common from .paths import resolve_refs class LoLoMo(object): """List of ...
36.942029
75
0.617628
ff44407f2e00384954e6514238c9da77009e101d
1,731
py
Python
thampi/lib/util.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
13
2018-12-17T02:20:30.000Z
2019-11-27T23:56:56.000Z
thampi/lib/util.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
7
2018-10-25T13:53:32.000Z
2019-03-19T22:20:59.000Z
thampi/lib/util.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
3
2018-10-01T20:01:22.000Z
2019-10-29T23:43:27.000Z
import inspect from typing import Dict, List from collections import ChainMap import uuid as u import datetime import os import pickle def filter_in(old_dict: Dict, keys: List[str]): return {key: old_dict[key] for key in keys if key in old_dict.keys()} def get_args(a_dict, a_callable): init_params = functio...
22.776316
92
0.69093
ff444be6ebd074567a4b57f9a54938c069115e8f
14,697
py
Python
effdet/evaluation/object_detection_evaluation.py
Ekta246/efficientdet-pytorch
f284a465a9050c26723c268de71fb31bf080048a
[ "Apache-2.0" ]
null
null
null
effdet/evaluation/object_detection_evaluation.py
Ekta246/efficientdet-pytorch
f284a465a9050c26723c268de71fb31bf080048a
[ "Apache-2.0" ]
null
null
null
effdet/evaluation/object_detection_evaluation.py
Ekta246/efficientdet-pytorch
f284a465a9050c26723c268de71fb31bf080048a
[ "Apache-2.0" ]
1
2021-02-19T16:15:00.000Z
2021-02-19T16:15:00.000Z
import logging import numpy as np from effdet.evaluation.metrics import compute_precision_recall, compute_average_precision, compute_cor_loc from effdet.evaluation.per_image_evaluation import PerImageEvaluation class ObjectDetectionEvaluation: """Internal implementation of Pascal object detection metrics.""" ...
52.866906
115
0.663401
ff445d056263ea5b70899a12bb093a60b9c4d44f
3,287
py
Python
src/visuanalytics/analytics/control/scheduler/DbScheduler.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2020-11-27T17:26:27.000Z
2020-11-27T17:26:27.000Z
src/visuanalytics/analytics/control/scheduler/DbScheduler.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
85
2021-01-02T11:38:59.000Z
2021-07-26T07:13:47.000Z
src/visuanalytics/analytics/control/scheduler/DbScheduler.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2021-04-19T06:50:53.000Z
2021-04-19T06:50:53.000Z
""" Modul welches den Datenbank Scheduler beeinhaltet. Sorgt dafür das ein Video zur richtigen Zeit gerendert und die Historisierung einer Datenquelle zur richtigen Zeit gestartet wird. """ import logging from datetime import datetime from visuanalytics.analytics.control.scheduler.scheduler import Scheduler, ignore_e...
39.130952
130
0.638272
ff44a75f52425a149ae67ccb812e0ace6241646a
306
py
Python
03_creating_and_editing_spreadsheets/creating_sheet_title.py
r00c/automating_excel_with_python
b4fa01aa6bdc2ec1c87a3e9cd00813b100f81f8b
[ "MIT" ]
43
2021-07-01T11:50:38.000Z
2022-03-26T13:56:15.000Z
03_creating_and_editing_spreadsheets/creating_sheet_title.py
wenxuefeng3930/automating_excel_with_python
dc2509359e1b14d2ad694f9fe554f3ce1781e497
[ "MIT" ]
1
2021-11-06T23:06:21.000Z
2021-11-07T01:24:44.000Z
03_creating_and_editing_spreadsheets/creating_sheet_title.py
wenxuefeng3930/automating_excel_with_python
dc2509359e1b14d2ad694f9fe554f3ce1781e497
[ "MIT" ]
11
2021-06-25T02:06:35.000Z
2022-03-31T14:29:59.000Z
# creating_sheet_title.py from openpyxl import Workbook def create_sheets(path): workbook = Workbook() sheet = workbook.active sheet.title = "Hello" sheet2 = workbook.create_sheet(title="World") workbook.save(path) if __name__ == "__main__": create_sheets("hello_sheets.xlsx")
19.125
49
0.70915
ff44b13256e366f12a5c941b32fe99f526f2b668
268
py
Python
src/grasping_env_catkin/grasping_env/setup.py
jbohg/grasping_sim
dcde7689c2579a1e3e0d71e794b00a8647473a2f
[ "BSD-3-Clause" ]
23
2019-05-29T05:55:14.000Z
2021-08-17T06:03:05.000Z
src/grasping_env_catkin/grasping_env/setup.py
jbohg/grasping_sim
dcde7689c2579a1e3e0d71e794b00a8647473a2f
[ "BSD-3-Clause" ]
null
null
null
src/grasping_env_catkin/grasping_env/setup.py
jbohg/grasping_sim
dcde7689c2579a1e3e0d71e794b00a8647473a2f
[ "BSD-3-Clause" ]
2
2019-05-29T04:51:57.000Z
2019-10-25T18:50:48.000Z
import os from setuptools import setup setup( name = "grasping_env", version = "0.0.1", author = "Hamza Merzic", author_email = "hamzamerzic@gmail.com", description = ("Grasping environment using Barrett hand in Gazebo."), license = "MIT", )
20.615385
73
0.656716
ff44bac415e2a5ca61cf3aefbcd5bfce6b8c82a4
2,528
py
Python
taskflow/tests/unit/test_functor_task.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
299
2015-01-11T01:36:28.000Z
2022-03-11T08:56:27.000Z
taskflow/tests/unit/test_functor_task.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
4
2015-02-06T11:12:58.000Z
2018-10-19T18:55:58.000Z
taskflow/tests/unit/test_functor_task.py
jimbobhickville/taskflow
6ea991ce94f5be46b7e4726b4c4f014e10407786
[ "Apache-2.0" ]
67
2015-01-11T14:34:24.000Z
2022-01-14T02:57:03.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2012-2013 Yahoo! Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICE...
26.610526
78
0.609968
ff44daa23e79a77545b08e7a65891f864af9d693
1,182
py
Python
analysis/obsolete/patterns_get_sqrt-diff-norm_outputs.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
1
2022-02-24T20:39:46.000Z
2022-02-24T20:39:46.000Z
analysis/obsolete/patterns_get_sqrt-diff-norm_outputs.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
analysis/obsolete/patterns_get_sqrt-diff-norm_outputs.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
4
2020-02-18T09:25:20.000Z
2021-11-20T23:52:29.000Z
# -*- coding: utf-8 -*- """ Created on Sun May 20 11:35:03 2018 @author: DanielM """ import os import numpy as np import shelve import os import analysis_main # Setup some parameters given by paradigm_frequency_inhibition.py data_path = "C:\\Users\\Daniel\\pyDentateData\\pattern_separation_data_local_input_revised\\...
31.945946
152
0.748731
ff4526ce031a9141ee4f73a6a91e44b730b9d98b
214
py
Python
app/main/errors.py
Andrewowalla/pitches
eb15ae12ab33241b09e6e4e00a9e99a6c341159c
[ "MIT" ]
null
null
null
app/main/errors.py
Andrewowalla/pitches
eb15ae12ab33241b09e6e4e00a9e99a6c341159c
[ "MIT" ]
null
null
null
app/main/errors.py
Andrewowalla/pitches
eb15ae12ab33241b09e6e4e00a9e99a6c341159c
[ "MIT" ]
null
null
null
from flask import render_template from . import main @main.app_errorhandler(404) def four_Ow_four(error): ''' function to render the 404 error page ''' return render_template('fourOwfour.html'),404
23.777778
49
0.728972
ff4555d9509632b7fe7a8859763063a3530b5338
6,507
py
Python
utils/general.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
utils/general.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
utils/general.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
from typing import List, Set, Dict, Tuple, Optional from utils.mapping import get_named_joints from renderer import DefaultRenderer, Renderer import numpy as np import cv2 import yaml import os.path import glob from datetime import datetime def getfilename_from_conf(config, index=None, include_date=True): """crea...
29.986175
94
0.609344
ff456f1f93204c4e8b1179cad4cd0f1b786a5fcb
6,643
py
Python
experiments/vitchyr/probabilistic_goal_reaching/basic_reaching_with_dynamics_visualization/exp_16_u_wall_visualize_discount_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/probabilistic_goal_reaching/basic_reaching_with_dynamics_visualization/exp_16_u_wall_visualize_discount_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/probabilistic_goal_reaching/basic_reaching_with_dynamics_visualization/exp_16_u_wall_visualize_discount_model.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.experiments.vitchyr.probabilistic_goal_reaching.launcher import \ probabilistic_goal_reaching_experiment from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( qf_kwargs=dict( hidden_si...
31.042056
87
0.511215
ff4573143aa929e86561bd7bcf6397394b718cc4
4,786
py
Python
ifcb/data/products/class_scores.py
joefutrelle/pyifcb
9a4a934212fc2e481f8927cf2786436bab647d3e
[ "MIT" ]
5
2018-08-12T02:04:44.000Z
2021-03-19T02:21:31.000Z
ifcb/data/products/class_scores.py
joefutrelle/pyifcb
9a4a934212fc2e481f8927cf2786436bab647d3e
[ "MIT" ]
46
2016-09-14T21:12:52.000Z
2022-02-14T20:33:49.000Z
ifcb/data/products/class_scores.py
joefutrelle/pyifcb
9a4a934212fc2e481f8927cf2786436bab647d3e
[ "MIT" ]
3
2018-10-18T16:03:08.000Z
2021-07-28T14:45:06.000Z
import re import os import pandas as pd import h5py as h5 from scipy.io import loadmat from ..identifiers import Pid from ..utils import BaseDictlike from .files import find_product_file, list_product_files class ClassScoresDirectory(BaseDictlike): """a dictlike keyed by bin lid. the values are ClassScoresFiles"...
39.883333
97
0.613247
ff457fe62ec69a9a6136325ec0bf4830cd29eebc
1,511
py
Python
redi/core.py
kennethreitz-archive/redi
77e1cf5afa80173b3fcec83828e6d61b97be0c2b
[ "0BSD" ]
3
2015-11-05T08:56:41.000Z
2016-07-17T18:11:33.000Z
redi/core.py
kennethreitz-archive/redi
77e1cf5afa80173b3fcec83828e6d61b97be0c2b
[ "0BSD" ]
null
null
null
redi/core.py
kennethreitz-archive/redi
77e1cf5afa80173b3fcec83828e6d61b97be0c2b
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- """ redi.core ~~~~~~~~~ This module contains the primary interface for redi. Simple, eh? """ from . import config, models, db, utils # REDI.S! s = models.RedisKey('', redis=None, o=True) def key(key, redis=config.redis, default=None): """Return Redi Datatype instance for given key. ...
24.770492
78
0.704169
ff4585c64c9c0c248c290e0a6fb9198e47ad68ca
4,029
py
Python
data/GenericDataFeed.py
adfoucart/deephisto
f70fbaad9f95a9b9f2e420c9c33d46bdfab5bdf9
[ "MIT" ]
1
2021-10-05T13:44:43.000Z
2021-10-05T13:44:43.000Z
data/GenericDataFeed.py
adfoucart/deephisto
f70fbaad9f95a9b9f2e420c9c33d46bdfab5bdf9
[ "MIT" ]
null
null
null
data/GenericDataFeed.py
adfoucart/deephisto
f70fbaad9f95a9b9f2e420c9c33d46bdfab5bdf9
[ "MIT" ]
1
2021-11-02T14:25:13.000Z
2021-11-02T14:25:13.000Z
# -*- coding: utf-8 -*- ''' Author: Adrien Foucart Generic DataFeed class, containing the common parts of ArtefactDataFeed, EpitheliumDataFeed & WarwickDataFeed ''' import numpy as np class GenericDataFeed: def __init__(self, params, db, generator=None): # General parameters self.directory = par...
41.536082
156
0.637627
ff4590dc93907c64035e17ce84436b34cff57eca
5,505
py
Python
std/pytorch/01-low/76.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/76.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/pytorch/01-low/76.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler import numpy as np import torchvision from torchvision import datasets, models, transforms import matplotlib.pyplot as plt import time import os import copy plt.ion() data_transforms = { "train": transforms.Compose...
32.573964
115
0.616349
ff45aaca647670502be347014b7c92bae4b2809a
898
py
Python
find_bad_bboxes.py
mbecker12/bird-detection
b352f6c585c2553a283abc48a0167984b9529c4a
[ "MIT" ]
1
2020-11-30T19:35:25.000Z
2020-11-30T19:35:25.000Z
find_bad_bboxes.py
mbecker12/bird-detection
b352f6c585c2553a283abc48a0167984b9529c4a
[ "MIT" ]
null
null
null
find_bad_bboxes.py
mbecker12/bird-detection
b352f6c585c2553a283abc48a0167984b9529c4a
[ "MIT" ]
null
null
null
from glob import glob for filename in glob("data/train/*.txt"): with open(filename, "r") as fp: for line in fp.readlines(): try: _, x, y, width, height = line.split(" ") except: print(f"{line=}") x = float(x) y = float(y) ...
32.071429
77
0.417595
ff45b884193381dbe6960977883c8431013394e2
549
py
Python
core/utils/html.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
core/utils/html.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
core/utils/html.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
from html.parser import HTMLParser class HTMLStripper(HTMLParser): """ Class that cleans HTML, removing all tags and HTML entities. """ def __init__(self): self.reset() self.fed = [] def handle_data(self, d): self.fed.append(d) def get_data(self): return ''.j...
18.931034
64
0.577413
ff45b9a01c69fecb2001c3c6fa5cb6b9440efc35
1,406
py
Python
huobi/model/tradeevent.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2020-12-28T07:04:45.000Z
2020-12-28T07:04:45.000Z
huobi/model/tradeevent.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
null
null
null
huobi/model/tradeevent.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2022-03-27T10:36:04.000Z
2022-03-27T10:36:04.000Z
from huobi.impl.utils.channelparser import ChannelParser from huobi.model import Trade class TradeEvent: """ The trade received by subscription of trade. :member symbol: The symbol you subscribed. timestamp: The UNIX formatted timestamp generated by server in UTC. trade_list: The ...
32.697674
75
0.638691
ff45c0f73412818b3c5da4191a3a8bd703a7154e
5,326
py
Python
End2EndLearning/drive.py
azshue/SAAP
c1214f3919d2df213a125d780175afc1553ddeb2
[ "MIT" ]
4
2020-01-12T21:30:38.000Z
2021-08-11T01:49:14.000Z
End2EndLearning/drive.py
azshue/SAAP
c1214f3919d2df213a125d780175afc1553ddeb2
[ "MIT" ]
null
null
null
End2EndLearning/drive.py
azshue/SAAP
c1214f3919d2df213a125d780175afc1553ddeb2
[ "MIT" ]
null
null
null
### This script is to load a model and use it to drive an AV in the simulator from keras import __version__ as keras_version from keras.models import load_model import h5py import argparse import base64 import os import shutil import cv2 import csv import numpy as np import socketio import eventlet import eventlet.wsg...
25.361905
110
0.682501
ff45c37293d553a5777ad15cfac26be8d638d2a9
9,847
py
Python
test/IECoreHoudini/AttributeRemap.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-09-02T13:05:18.000Z
2018-09-02T13:05:18.000Z
test/IECoreHoudini/AttributeRemap.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-11-07T19:40:15.000Z
2018-11-07T19:40:15.000Z
test/IECoreHoudini/AttributeRemap.py
noizfactory/cortex
c2b5bd154d9d7919a0c498f865c5e40a7687e1ce
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright 2010 Dr D Studios Pty Limited (ACN 127 184 954) (Dr. D Studios), # its affiliates and/or its licensors. # # Copyright (c) 2010-2015, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary ...
45.8
148
0.707119
ff45cb6d99a76838cc90cf554bef53a15adf762d
5,869
py
Python
src/bkuser_global/logging.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/bkuser_global/logging.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/bkuser_global/logging.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
30.097436
115
0.508775
ff45e1aa8fcdc917c060d529041b127a2a388153
456
py
Python
pkg/_exception.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/_exception.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/_exception.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
class FilePathNotFoundInArgs(Exception): pass class StorageAccountCreationException(Exception): pass class FunctionAppPlanCreationException(Exception): pass class NoMessageFoundException(Exception): pass class FunctionAppAzureCreationException(Exception): pass class ValidationFailedExcepti...
14.709677
51
0.79386
ff45e34f06723548430da0abeedc8ae152e859a5
1,128
py
Python
setup.py
hzerrad/docassemble-jsonloader
3884aa89804e8d607d075b8dfe2532cda20251cd
[ "MIT" ]
null
null
null
setup.py
hzerrad/docassemble-jsonloader
3884aa89804e8d607d075b8dfe2532cda20251cd
[ "MIT" ]
null
null
null
setup.py
hzerrad/docassemble-jsonloader
3884aa89804e8d607d075b8dfe2532cda20251cd
[ "MIT" ]
null
null
null
import os from distutils.core import setup def readme(): with open(os.path.join(os.path.dirname(__file__), 'README.md')) as read_me: return read_me.read() setup(name='docassemble-jsonloader', version='0.2.0', description="Python interface to the Firebase's REST API.", long_description=...
32.228571
79
0.616135
ff4603eec8d4084f7592a412291af329b781d513
1,118
py
Python
tests/integration/conftest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/integration/conftest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/integration/conftest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import asyncio import pytest from platon._utils.module_testing.emitter_contract import ( CONTRACT_EMITTER_ABI, CONTRACT_EMITTER_CODE, ) from platon._utils.module_testing.math_contract import ( MATH_ABI, MATH_BYTECODE, ) from platon._utils.module_testing.revert_contract import ( _REVERT_CONTRACT_ABI...
24.844444
81
0.773703
ff462215eb64517e5355eee4c727500f1ba199b4
44,478
py
Python
nvflare/fuel/hci/client/fl_admin_api.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
nvflare/fuel/hci/client/fl_admin_api.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
nvflare/fuel/hci/client/fl_admin_api.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021-2022, NVIDIA 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 by ...
50.543182
160
0.637304
ff464b41bb8ad980a8188e42c397693534e4bdad
3,662
py
Python
jaeger_client/utils.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
372
2017-10-31T21:51:26.000Z
2022-03-23T10:36:19.000Z
jaeger_client/utils.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
276
2017-10-10T11:33:50.000Z
2022-03-24T16:36:16.000Z
jaeger_client/utils.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
157
2017-10-09T07:16:41.000Z
2021-12-29T14:49:26.000Z
# Copyright (c) 2016 Uber Technologies, 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 agreed to ...
29.772358
96
0.639814
ff467f3415ae19ccac72f2678cb15283f4c2fe33
103,782
py
Python
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/models/_models.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 ...
39.900807
364
0.655865
ff467f9f5a0f7ffcdcdffedcc73c5a2b8a65634b
109
py
Python
src/final_exam/q_dna/motif.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
null
null
null
src/final_exam/q_dna/motif.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
1
2018-02-03T03:41:28.000Z
2018-02-03T03:41:28.000Z
src/final_exam/q_dna/motif.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
1
2018-04-13T01:17:50.000Z
2018-04-13T01:17:50.000Z
class Motif(): def non_contiguous_motif(str1,list) index = 0 list = [] str1 = ''
18.166667
39
0.504587
ff46cb5311c78cdbb0f77fd65af1ac28f9b1293f
2,314
py
Python
weasyl/ignoreuser.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
111
2016-05-18T04:18:18.000Z
2021-11-03T02:05:19.000Z
weasyl/ignoreuser.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
1,103
2016-05-29T05:17:53.000Z
2022-03-31T18:12:40.000Z
weasyl/ignoreuser.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
47
2016-05-29T20:48:37.000Z
2021-11-12T09:40:40.000Z
from libweasyl import staff from libweasyl.cache import region from weasyl import define as d from weasyl.error import WeasylError def check(userid, otherid): """ Return True if otherid is ignored by userid, False otherwise. """ if not userid or not otherid: return False return d.engine....
27.547619
110
0.607174