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
381ad81afdb369172a232bccd776554e522f2049
5,352
py
Python
tests/test_api_scores.py
jacebrowning/crowdsorter
1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb
[ "MIT" ]
2
2020-05-09T23:46:23.000Z
2021-03-23T18:40:26.000Z
tests/test_api_scores.py
jacebrowning/crowdsorter
1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb
[ "MIT" ]
1
2020-10-18T17:15:49.000Z
2020-11-11T18:25:05.000Z
tests/test_api_scores.py
jacebrowning/crowdsorter
1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb
[ "MIT" ]
1
2021-03-23T18:41:16.000Z
2021-03-23T18:41:16.000Z
# pylint: disable=unused-variable,unused-argument,expression-not-assigned,singleton-comparison import pytest from expecter import expect from .utils import load def describe_scores(): @pytest.fixture def url(): return "/api/collections/_c/scores/" def describe_GET(): def it_returns_sc...
32.047904
94
0.349589
381ae0eeaca5ec0b5def9a396f5484ad0d713c14
938
py
Python
pages/tests.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
1
2015-05-04T09:28:14.000Z
2015-05-04T09:28:14.000Z
pages/tests.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
pages/tests.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
######################################################################## # vim: fileencoding=utf-8 ts=8 noexpandtab : # # ~~~~ Maiznet.fr ~~~~ # # -> pages/tests.py # # # Copyright 2011 Rémy Sanchez <remy.sanchez@hyperthese.net> # # This file is distributed under the terms of the WTFPL. For more # informations, see ht...
25.351351
73
0.567164
381af45d4043ce5413c6f169c4f6501750d288f5
3,113
py
Python
basemodel.py
zhangshengHust/mlci
7704116ea928dd6188776463ccf4c33f339330aa
[ "MIT" ]
1
2021-11-29T09:48:40.000Z
2021-11-29T09:48:40.000Z
basemodel.py
zhangshengHust/mlci_tv
7704116ea928dd6188776463ccf4c33f339330aa
[ "MIT" ]
null
null
null
basemodel.py
zhangshengHust/mlci_tv
7704116ea928dd6188776463ccf4c33f339330aa
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import yaml from layers import SimpleClassifier, WordEmbedding, VisualFeatEncoder, QuestionEmbedding import torch.nn.functional as F from dfaf import SingleBlock, Classifier, Ocr_classifier, MultiBlock from torch.nn.utils.weight_norm import weight_norm from transformers import BertMod...
34.977528
124
0.600064
381b02ecd041f304b0e9bc3b809700923959a4d7
3,450
py
Python
jina/logging/formatter.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
2
2021-06-30T06:56:30.000Z
2022-03-11T01:27:19.000Z
jina/logging/formatter.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
jina/logging/formatter.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
import json import re from copy import copy from logging import Formatter from ..helper import colored if False: from logging import LogRecord class ColorFormatter(Formatter): """Format the log into colored logs based on the log-level.""" MAPPING = { 'DEBUG': dict(color='white', on_color=None)...
31.363636
120
0.582899
381b1729f1113a5243a8b2e1bd4e34675d29ae40
3,264
py
Python
rnn/test_lstm.py
DingKe/pytorch_workplace
4bc60a2c3640de522d0b72262667ba70391ba16e
[ "MIT" ]
184
2017-05-23T12:06:08.000Z
2021-12-21T09:09:51.000Z
rnn/test_lstm.py
xzm2004260/pytorch_workplace
4bc60a2c3640de522d0b72262667ba70391ba16e
[ "MIT" ]
8
2017-08-14T11:40:20.000Z
2019-01-16T13:14:32.000Z
rnn/test_lstm.py
xzm2004260/pytorch_workplace
4bc60a2c3640de522d0b72262667ba70391ba16e
[ "MIT" ]
61
2017-04-29T09:53:47.000Z
2021-02-19T02:13:14.000Z
import torch import torch.nn as nn import torchvision.datasets as dsets import torchvision.transforms as transforms from torch.autograd import Variable from modules import LSTM torch.manual_seed(1111) # Hyper Parameters sequence_length = 28 input_size = 28 hidden_size = 128 num_layers = 2 num_classes = 10 batch_si...
32
100
0.609988
381b1a09bc346fb99b5fe0fc2a345054e96ccfa7
23,924
py
Python
Lib/site-packages/matplotlib/legend_handler.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
lib/python2.7/site-packages/matplotlib/legend_handler.py
jppgibbs/Aegis
feac08cd3935569057e75531fe80bd0e1f982a93
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/matplotlib/legend_handler.py
jppgibbs/Aegis
feac08cd3935569057e75531fe80bd0e1f982a93
[ "MIT" ]
5
2018-05-19T05:08:51.000Z
2021-04-29T16:03:45.000Z
""" This module defines default legend handlers. It is strongly encouraged to have read the :ref:`legend guide <sphx_glr_tutorials_intermediate_legend_guide.py>` before this documentation. Legend handlers are expected to be a callable object with a following signature. :: legend_handler(legend, orig_handle, font...
35.814371
87
0.599314
381b2fb2f984de39ff1f8ce6a7fe2e6e5c4ac8df
1,084
py
Python
modules/tools/mobileye_viewer/localization_data.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/mobileye_viewer/localization_data.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/mobileye_viewer/localization_data.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
37.37931
79
0.648524
381b3e432afe6b84b123a0fd7c7280e8b891f6f3
105
py
Python
scripts/readme/what.py
dhruvmanila/pyinspect
ce90df243e5e5ee100f13de4329c111454b8c891
[ "MIT" ]
87
2020-09-30T10:18:26.000Z
2022-03-10T08:56:04.000Z
scripts/readme/what.py
dhruvmanila/pyinspect
ce90df243e5e5ee100f13de4329c111454b8c891
[ "MIT" ]
16
2020-09-30T10:57:17.000Z
2022-01-16T02:10:45.000Z
scripts/readme/what.py
dhruvmanila/pyinspect
ce90df243e5e5ee100f13de4329c111454b8c891
[ "MIT" ]
5
2020-11-20T07:39:26.000Z
2022-01-13T04:54:51.000Z
import pyinspect as pi a = "my variable" b = "another variable" pi.what() # print all local variables
15
38
0.704762
381b593ef674cf254f1d0244e781056822df0009
3,841
py
Python
twistedhl7/receiver.py
rectalogic/twisted-hl7
076e9b8e8b52175213d3959646027654b1ef9e27
[ "BSD-3-Clause" ]
1
2019-06-22T23:30:34.000Z
2019-06-22T23:30:34.000Z
twistedhl7/receiver.py
rectalogic/twisted-hl7
076e9b8e8b52175213d3959646027654b1ef9e27
[ "BSD-3-Clause" ]
null
null
null
twistedhl7/receiver.py
rectalogic/twisted-hl7
076e9b8e8b52175213d3959646027654b1ef9e27
[ "BSD-3-Clause" ]
null
null
null
from zope.interface import Interface, implements from twisted.python import log from twisted.internet import defer import hl7 class MessageContainer(object): """Base class for messages returned from :py:meth:`twistedhl7.receiver.IHL7Receiver.parseMessage` and passed to :py:meth:`twistedhl7.receiver.IHL7Recei...
36.235849
131
0.695652
381b8fb046ec16ae6c069a3f9042b2c1dd881210
417
py
Python
terrascript/time/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/time/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/time/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/time/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class time_offset(terrascript.Resource): pass class time_rotating(terrascript.Resource): pass clas...
16.038462
79
0.76259
381b9e92f9cdc486ab170fdfe72bf6d7ea2449ee
1,210
py
Python
velkozz_logger/velkozz_logger/__init__.py
velkoz-data-ingestion/velkozz_logging_application
f2e24e042787adbbb818a0d4cd791df7535ac9f1
[ "MIT" ]
null
null
null
velkozz_logger/velkozz_logger/__init__.py
velkoz-data-ingestion/velkozz_logging_application
f2e24e042787adbbb818a0d4cd791df7535ac9f1
[ "MIT" ]
null
null
null
velkozz_logger/velkozz_logger/__init__.py
velkoz-data-ingestion/velkozz_logging_application
f2e24e042787adbbb818a0d4cd791df7535ac9f1
[ "MIT" ]
null
null
null
# Importing Flask Modules: from flask import Flask from flask_sqlalchemy import SQLAlchemy # Importing Flask REST API modules: from flask_restful import Resource, Api # Declaring global libraries: db = SQLAlchemy() def init_app(): "Method that creates and initalizes the core flask application" app = Flask(_...
32.702703
99
0.732231
381bab4acd16b4f384d554069794d135d6f3e910
45,418
py
Python
deputy/deputy.py
rmbarron/deputy-api-python-client
91d939bab8143fb0a70ca631e7ee38ad347e2999
[ "Apache-2.0" ]
null
null
null
deputy/deputy.py
rmbarron/deputy-api-python-client
91d939bab8143fb0a70ca631e7ee38ad347e2999
[ "Apache-2.0" ]
null
null
null
deputy/deputy.py
rmbarron/deputy-api-python-client
91d939bab8143fb0a70ca631e7ee38ad347e2999
[ "Apache-2.0" ]
2
2020-05-20T23:20:53.000Z
2020-05-20T23:21:15.000Z
#!/usr/bin/python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.207752
83
0.647166
381bb7683710cad1f5895945565325af22d9699d
186
py
Python
tests/test_socfaker_registry.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
tests/test_socfaker_registry.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
tests/test_socfaker_registry.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
def test_socfaker_registry_hive(socfaker_fixture): assert socfaker_fixture.registry.hive def test_socfaker_registry_path(socfaker_fixture): assert socfaker_fixture.registry.path
37.2
50
0.860215
381bba4c821564033fd94afeb85f5c0b5f0c4398
1,153
py
Python
tango_shared/context_processors.py
tBaxter/tango-shared-core
35fc10aef1ceedcdb4d6d866d44a22efff718812
[ "MIT" ]
2
2015-09-21T04:27:26.000Z
2016-06-02T16:57:25.000Z
tango_shared/context_processors.py
tBaxter/tango-shared-core
35fc10aef1ceedcdb4d6d866d44a22efff718812
[ "MIT" ]
1
2018-12-20T13:01:57.000Z
2018-12-20T13:01:57.000Z
tango_shared/context_processors.py
tBaxter/tango-shared-core
35fc10aef1ceedcdb4d6d866d44a22efff718812
[ "MIT" ]
3
2015-11-12T21:11:21.000Z
2016-10-24T23:18:10.000Z
import datetime from django.conf import settings from django.contrib.sites.shortcuts import get_current_site now = datetime.datetime.now() one_day_ago = now - datetime.timedelta(days=1) def site_processor(request): ALLOWABLE_THEMES = getattr(settings, 'ALLOWABLE_THEMES', None) authenticated_request = re...
32.027778
67
0.690373
381be3e1b5a7fcf4d31c99b519453226c4494624
8,411
py
Python
bracketool/teambrackets.py
dhontecillas/bracketool
5366b26597b3c3d41c8bc491216fba01f81c1c84
[ "MIT" ]
1
2021-03-25T13:46:53.000Z
2021-03-25T13:46:53.000Z
bracketool/teambrackets.py
dhontecillas/bracketool
5366b26597b3c3d41c8bc491216fba01f81c1c84
[ "MIT" ]
null
null
null
bracketool/teambrackets.py
dhontecillas/bracketool
5366b26597b3c3d41c8bc491216fba01f81c1c84
[ "MIT" ]
null
null
null
""" Reserve slots for teams. This module reserve slots for teams that have several competitors in the same brackets. In order to keep track of already existing team pairings it uses a dictionary: team_pairing_count. Is a dictionary of ordered tuples (min, max), with the count of times that...
38.582569
80
0.659731
381be5fa67477fba5dcc74ec4246ee471bef0c01
11,001
py
Python
src/python/pants/backend/python/subsystems/python_tool_base.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/subsystems/python_tool_base.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
6
2022-01-25T15:49:26.000Z
2022-02-09T11:21:13.000Z
src/python/pants/backend/python/subsystems/python_tool_base.py
thejcannon/pants
7c24f42cb78cc462b63698cef736eda7a85c40e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import importlib.resources from typing import ClassVar, Iterable, Sequence, cast from pants.backend.python.target_types import ConsoleScript, EntryPoin...
44.719512
105
0.64885
381be648d67fe12d44c496a319fd7d2862297109
4,462
py
Python
flexget/tests/test_urlrewriting.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_urlrewriting.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_urlrewriting.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin from flexget.plugin import get_plugin_by_name class TestURLRewriters(object): """ Bad example, does things manually, you should use task.find_entry to check exista...
44.178218
114
0.638055
381c2055fc293244ba3c32eb4e1dbd2cb1f2f1a2
4,282
py
Python
encoding/transforms/transforms.py
Womcos/SCARF
b90251bc23410cb810a7082ca75147a7aae21dec
[ "MIT" ]
1
2021-04-06T11:29:04.000Z
2021-04-06T11:29:04.000Z
encoding/transforms/transforms.py
Womcos/SCARF
b90251bc23410cb810a7082ca75147a7aae21dec
[ "MIT" ]
null
null
null
encoding/transforms/transforms.py
Womcos/SCARF
b90251bc23410cb810a7082ca75147a7aae21dec
[ "MIT" ]
1
2021-04-06T08:41:12.000Z
2021-04-06T08:41:12.000Z
import math import random from PIL import Image from torchvision.transforms import Resize __all__ = ['Lighting', 'ERandomCrop', 'ECenterCrop'] class Lighting(object): """Lighting noise(AlexNet - style PCA - based noise)""" def __init__(self, alphastd, eigval, eigvec): self.alphastd = alphastd ...
37.234783
93
0.61887
381c3a7eeae0985860fe05d27edc06a03ab05b34
233
py
Python
limix/heritability/__init__.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/heritability/__init__.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/heritability/__init__.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
r""" *********************** Heritability estimation *********************** - :func:`.estimate` Heritability ^^^^^^^^^^^^ .. autofunction:: limix.heritability.estimate """ from .estimate import estimate __all__ = ['estimate']
12.944444
45
0.536481
381c582399481f05032c639576af52da6f26322f
4,926
py
Python
neuro-sdk/tests/test_disks.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-sdk/tests/test_disks.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-sdk/tests/test_disks.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
from datetime import datetime, timedelta from typing import Callable from aiohttp import web from neuro_sdk import Client, Cluster, Disk from tests import _TestServerFactory _MakeClient = Callable[..., Client] async def test_list( aiohttp_server: _TestServerFactory, make_client: _MakeClient, cluster_c...
27.830508
88
0.519082
381c91a1626f328499db32355c1cfd3afe82f0f3
8,402
py
Python
chroma_core/lib/job.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_core/lib/job.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_core/lib/job.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import django.db.models from chroma_core.services import log_register from iml_common.lib.agent_rpc import agent_result job_log = log_register("job") class Dependabl...
35.905983
126
0.632826
381c9c8cd3e588f4227681ef1f1ff8146e8a2b6c
101
py
Python
JDjango/api/future/doc_dearpygui.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjango/api/future/doc_dearpygui.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjango/api/future/doc_dearpygui.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
from dearpygui.core import * from dearpygui.simple import * show_documentation() start_dearpygui()
14.428571
30
0.80198
381c9c9f8a9d7896ecd6ae03b9d5931ad71791d9
2,586
py
Python
max_connect.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
1
2019-08-29T01:12:47.000Z
2019-08-29T01:12:47.000Z
max_connect.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
max_connect.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-# #------------------------------------------------------------------------------- # PROJECT_NAME: design_pattern # Name: max_connect.py # Author: 9824373 # Date: 2020-08-19 21:03 # Contact: 9824373@qq.com # Version: ...
27.806452
93
0.476411
381c9d7fef4a0d8a449c8904d445cddee7fb5477
5,972
py
Python
Tasks.py
l0gan/PoshC2
1012ff5684e9a0f7811bf76fd04f43ccd7649e3a
[ "BSD-3-Clause" ]
1
2020-06-27T00:34:07.000Z
2020-06-27T00:34:07.000Z
Tasks.py
TheWover/PoshC2
ef33808a3f0c4473a4a238518551997463e31e53
[ "BSD-3-Clause" ]
null
null
null
Tasks.py
TheWover/PoshC2
ef33808a3f0c4473a4a238518551997463e31e53
[ "BSD-3-Clause" ]
null
null
null
from Colours import Colours from Core import load_module, load_module_sharp, encrypt, default_response import DB, datetime, hashlib, re, base64, traceback def newTask(path): result = DB.get_implants_all() commands = "" if result: for i in result: RandomURI = i[1] EncKey = i...
57.980583
216
0.456631
381cac250eaed6599f39d92d07f271c344e023d1
2,298
py
Python
alipay/aop/api/domain/UpdateCodeRequest.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/UpdateCodeRequest.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/UpdateCodeRequest.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 UpdateCodeRequest(object): def __init__(self): self._action = None self._biz_id = None self._code_token = None self._context_data = None @property def act...
26.72093
75
0.570931
381cbf4439c71643ac8b3d4f25a0531042cf887e
704
py
Python
src/views/simplepage/cms_toolbars.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
src/views/simplepage/cms_toolbars.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
src/views/simplepage/cms_toolbars.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
from cms.toolbar_pool import toolbar_pool from cms.extensions.toolbar import ExtensionToolbar from django.utils.translation import ugettext_lazy as _ from .models import SimplePageExtension @toolbar_pool.register class SimplePageExtensionToolbar(ExtensionToolbar): """ The toolbar for configuring a page. "...
29.333333
65
0.693182
381cf0e899f1af362d17c24cf9773a347104009a
793
py
Python
Tests/li_ft_dft.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
8
2016-08-26T14:57:01.000Z
2019-12-23T07:39:37.000Z
Tests/li_ft_dft.py
nicodgomez/pyquante
483571110b83cab406d3d4d8f2eba5cae0a2da58
[ "DOC" ]
1
2019-02-03T10:44:02.000Z
2019-02-03T10:44:02.000Z
Tests/li_ft_dft.py
globulion/pyq-mod
ee32b6685e9c1e915c5c515ef7ab83adc200fa9b
[ "DOC" ]
8
2016-02-23T19:22:11.000Z
2021-08-28T12:12:59.000Z
#!/usr/bin/env python import unittest, sciunittest from PyQuante.NumWrap import arange from PyQuante.dft import dft from PyQuante.Molecule import Molecule energy = -7.349422 name = "Li/FT/DFT" def main(): li = Molecule('Li', atomlist = [(3,(0,0,0))], units='Angs', ...
25.580645
88
0.607818
381d0db60ef77f0438afced79a9eaa3183085bb7
4,521
py
Python
stocky-devel/stocky/serverlib/ServerWebSocket.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
1
2020-05-13T17:39:59.000Z
2020-05-13T17:39:59.000Z
stocky-devel/stocky/serverlib/ServerWebSocket.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
1
2018-09-18T19:39:24.000Z
2019-02-04T23:52:59.000Z
stocky-devel/stocky/serverlib/ServerWebSocket.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
null
null
null
"""Provide a level of abstraction to websockets on the server side to allow for different encoding and/or compression approaches.""" import typing import logging from geventwebsocket import websocket import geventwebsocket.exceptions import serverlib.qai_helper as qai_helper from webclient.commonmsg import CommonMSG...
34.776923
101
0.641672
381d1bc97b7fd5068d22d44fa9007730ff00db61
6,991
py
Python
magnum/tests/unit/objects/utils.py
gyliu513/magnum
943eba8a7b03b11878399198091327d2e1b90fcb
[ "Apache-2.0" ]
null
null
null
magnum/tests/unit/objects/utils.py
gyliu513/magnum
943eba8a7b03b11878399198091327d2e1b90fcb
[ "Apache-2.0" ]
null
null
null
magnum/tests/unit/objects/utils.py
gyliu513/magnum
943eba8a7b03b11878399198091327d2e1b90fcb
[ "Apache-2.0" ]
1
2020-09-09T14:35:08.000Z
2020-09-09T14:35:08.000Z
# Copyright 2014 Rackspace Hosting # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
31.071111
78
0.689458
381d1e0bb290a95877c98dca0df52083d984c276
4,193
py
Python
campy/util/note.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
5
2018-12-03T19:18:50.000Z
2021-05-31T07:17:06.000Z
campy/util/note.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2020-02-13T20:56:05.000Z
2020-02-19T18:32:56.000Z
campy/util/note.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-06T07:29:07.000Z
2017-06-06T07:29:07.000Z
""" Exports a :class:`Note` class that can play musical notes. A :class:`Note` has several attributes - its :class:`Pitch` To create a note, you can """ import enum import logging import campy.private.platform as _platform # Create a module-level logger. logger = logging.getLogger(__name__) # TODO: replace w/ imp...
25.882716
115
0.601002
381d5760c80e841b4e4bc288486e06bffa26fb4c
13,393
py
Python
pytype/tests/test_builtins1.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/test_builtins1.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_builtins1.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Tests of builtins (in pytd/builtins/{version}/__builtins__.pytd). File 1/3. Split into parts to enable better test parallelism. """ import textwrap from pytype.overlays import collections_overlay from pytype.pytd import pytd_utils from pytype.tests import test_base class BuiltinTests(test_base.TargetIndependent...
24.17509
78
0.541029
381d6005af3f2ed91dd42998ddb81580bd8c508b
2,449
py
Python
slides2html/revealjstemplate.py
threefoldtech/presentation2html
962452bb082b97ecc7dd8b03d0bae609eefd4be7
[ "Apache-2.0" ]
5
2019-01-11T13:38:10.000Z
2020-09-13T23:29:16.000Z
slides2html/revealjstemplate.py
threefoldtech/presentation2html
962452bb082b97ecc7dd8b03d0bae609eefd4be7
[ "Apache-2.0" ]
664
2018-12-19T12:43:44.000Z
2019-08-23T04:24:42.000Z
slides2html/revealjstemplate.py
threefoldtech/presentation2html
962452bb082b97ecc7dd8b03d0bae609eefd4be7
[ "Apache-2.0" ]
7
2019-05-03T07:14:37.000Z
2019-08-05T12:36:52.000Z
""" Reveal.js templates to be used in rendering websites. """ BASIC_TEMPLATE = """ <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>reveal.js</title> <link rel="stylesheet" href=...
28.476744
111
0.473254
381d86dbd21992c7fe423f47112198bff602ea44
92
py
Python
AlgorithmsPractice/otherQuestion/BIGO/Q1.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/otherQuestion/BIGO/Q1.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/otherQuestion/BIGO/Q1.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# 2019/9/2 # 三道题均需要用Java编写 # 第一题链表回文判断 # 第二题版本号对比 # 第三题给定字符串s,字符串列表dict,判断s是否可以用dict中的字符串组成
15.333333
41
0.793478
381d8ba8f7e2c6694efdd4d5111fed75a83fd0d8
2,351
py
Python
docs/source/conf.py
jsspric/sagemaker-jumpstart-industry-pack
1cbaeb859d109022c94c2fd60531b5a32efc52bf
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
jsspric/sagemaker-jumpstart-industry-pack
1cbaeb859d109022c94c2fd60531b5a32efc52bf
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
jsspric/sagemaker-jumpstart-industry-pack
1cbaeb859d109022c94c2fd60531b5a32efc52bf
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.205479
106
0.676733
381d950dd59dabb855bf03f96ac9b7de97cfbeb5
3,961
py
Python
obs-thrift-api/tests/obsthriftserver/ttypes.py
pashkal/obs-thrift-api
80635f9466d2c819c0d3099492b2e23fd9876821
[ "Apache-2.0" ]
39
2020-05-03T08:48:07.000Z
2022-02-04T21:12:24.000Z
obs-thrift-api/tests/obsthriftserver/ttypes.py
pashkal/obs-thrift-api
80635f9466d2c819c0d3099492b2e23fd9876821
[ "Apache-2.0" ]
6
2020-07-07T10:20:20.000Z
2021-07-30T18:21:28.000Z
obs-thrift-api/tests/obsthriftserver/ttypes.py
pashkal/obs-thrift-api
80635f9466d2c819c0d3099492b2e23fd9876821
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Thrift Compiler (0.14.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
33.854701
134
0.596062
381d9d7401e6a46a01ba736ff34edd41f0d99ea9
5,683
py
Python
structure/tempo.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
structure/tempo.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
structure/tempo.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
from tonalmodel.range import Range from timemodel.duration import Duration from fractions import Fraction from enum import Enum # The following are global variables used by TempoType, as we could not define these # inside TempoType. class TempoTypeHelper: RANGE_MAP = None ALL_TYPES = None class TempoType(E...
32.289773
114
0.60549
381d9f8bf69a99a5da22bf7133c1611faf727dc3
7,494
py
Python
sourcecode/MSG_GAN/CustomLayers.py
akanimax/msg-gan-v1
35d50f767de922229d0b1ba314fa6a4b005baeba
[ "MIT" ]
40
2020-04-15T22:24:30.000Z
2022-03-10T12:06:04.000Z
sourcecode/MSG_GAN/CustomLayers.py
akanimax/msg-gan-v1
35d50f767de922229d0b1ba314fa6a4b005baeba
[ "MIT" ]
2
2020-06-15T21:30:34.000Z
2021-02-06T15:33:31.000Z
sourcecode/MSG_GAN/CustomLayers.py
akanimax/msg-gan-v1
35d50f767de922229d0b1ba314fa6a4b005baeba
[ "MIT" ]
10
2020-05-08T13:45:13.000Z
2021-11-29T22:38:18.000Z
""" Module containing custom layers """ import torch as th import copy # ========================================================== # Layers required for Building The generator and # discriminator # ========================================================== class GenInitialBlock(th.nn.Module): """ Module implemen...
31.487395
89
0.56632
381dc60573c8005805d30cd0d0b6ab716bb3419b
1,045
py
Python
lemur/metrics.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/metrics.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/metrics.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur.metrics :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. """ from flask import current_app from lemur.plugins.base import plugins class Metrics(object): """ :param app: The Flask application object. Defaults to None. ""...
31.666667
118
0.641148
381de7e71491ec0f0a3fa4c5079f07ba4afcb25a
7,348
py
Python
hake/src/HAKE_model.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
hake/src/HAKE_model.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
hake/src/HAKE_model.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.934783
119
0.667665
381e6aae9ec3b59e9e66ad68840f284e07031fa5
273
py
Python
terrascript/hetznerdns/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/hetznerdns/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/hetznerdns/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/hetznerdns/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class hetznerdns(terrascript.Provider): pass
18.2
79
0.776557
381edf2201def95fa010ff01e79acffa50ec754f
90
py
Python
scratch.py
simon-ball/fjordkraft
53439a9fc90bca52a5786f54314005b578326888
[ "MIT" ]
null
null
null
scratch.py
simon-ball/fjordkraft
53439a9fc90bca52a5786f54314005b578326888
[ "MIT" ]
null
null
null
scratch.py
simon-ball/fjordkraft
53439a9fc90bca52a5786f54314005b578326888
[ "MIT" ]
null
null
null
import fjordkraft as fk values = fk.read_api() print(values) fk.write_to_database(values)
18
28
0.8
381ee678c62c989aa0a3649f2d6f1a8ec81a50d4
47,943
py
Python
backport_packages/setup_backport_packages.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
1
2020-08-25T05:55:54.000Z
2020-08-25T05:55:54.000Z
backport_packages/setup_backport_packages.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
null
null
null
backport_packages/setup_backport_packages.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
40.595258
108
0.684751
381f02bce2464d8dc7f025948efbcd6159132b0d
2,700
py
Python
utils/utils.py
nipengmath/Distributed-Tensorflow-Template
d7e190cd55eef8b8021f06de9c30345bdc75eb68
[ "MIT" ]
null
null
null
utils/utils.py
nipengmath/Distributed-Tensorflow-Template
d7e190cd55eef8b8021f06de9c30345bdc75eb68
[ "MIT" ]
null
null
null
utils/utils.py
nipengmath/Distributed-Tensorflow-Template
d7e190cd55eef8b8021f06de9c30345bdc75eb68
[ "MIT" ]
null
null
null
import argparse import os import tensorflow as tf def process_config() -> dict: """ Add in any static configuration that is unlikely to change very often :return: a dictionary of static configuration data """ config = {"exp_name": "example_model_train"} return config def get_args() -> dict:...
26.732673
88
0.606296
381f14f80a8ee3def6ca976e3bd88adf09cf0224
4,094
py
Python
applications/tensorflow/cnns/synthetic_benchmarks/resnet.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/synthetic_benchmarks/resnet.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/synthetic_benchmarks/resnet.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. import inspect import os import sys import tensorflow as tf from tensorflow.python.ipu import utils # Add path with models and benchmarks folder to pythonpath cwd = os.path.dirname(os.path.abspath(inspect.stack()[0][1])) sys.path.insert(1, os.path.join(cwd, '..')) sys.path.insert(1, os...
36.230088
122
0.642892
381f3fa67bae00b8d2f0ce2a752af7c0f1c2e423
6,587
py
Python
Experiments/analyze_style_layers.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
Experiments/analyze_style_layers.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
Experiments/analyze_style_layers.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
import os import cv2 import matplotlib.pyplot as plt import torch from tqdm import tqdm import numpy as np from losses.vgg_loss.contextual_loss import contextual_loss from losses.vgg_loss.gram_loss import gram from losses.vgg_loss.vgg_loss import get_features_metric, VGGFeatures from style_transfer.utils import imload...
39.208333
124
0.689844
381f4facd4d81b0aeb4d706263c45e32f48d498b
517
py
Python
core/realtime/chat.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
core/realtime/chat.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
core/realtime/chat.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
import json import datetime import redis from dss import settings import logging logger = logging.getLogger('dss') def post_chat(session, image, user, message): r = redis.StrictRedis(host=settings.REDIS_HOST, port=6379, db=0) payload = json.dumps({ 'session': session, 'message': message, ...
24.619048
68
0.649903
381f613817ca6d359397b40a7aec46f8669a3ae8
23,601
py
Python
face_recognition_demo.py
JHP4911/Facial-Attendance-on-Pi-with-LIDAR
82730a4e5e752adb88cee6294f2c260ce2594a91
[ "CC0-1.0" ]
2
2021-09-15T15:28:09.000Z
2022-01-17T02:25:11.000Z
face_recognition_demo.py
AdroitAnandAI/Facial-Attendance-on-Pi-with-LIDAR
82730a4e5e752adb88cee6294f2c260ce2594a91
[ "CC0-1.0" ]
null
null
null
face_recognition_demo.py
AdroitAnandAI/Facial-Attendance-on-Pi-with-LIDAR
82730a4e5e752adb88cee6294f2c260ce2594a91
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python """ This file has been modified extensively to integrate LIDAR, send MQTT messages, store last 'n' frame info in dqueue, send sms, send appropriate audio messages to function as AI Augmented Door Access Control and Attendance mechanism in an IoT Gadget. It has been tested extensively on RPi ...
43.225275
167
0.585568
381f6d9ad159fed4f64ec25b6a056574a35dfa76
929
py
Python
binary-search/0081-search-in-rotated-sorted-array-ii(3、中间元素和右边界比较,选左中位数).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
binary-search/0081-search-in-rotated-sorted-array-ii(3、中间元素和右边界比较,选左中位数).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
binary-search/0081-search-in-rotated-sorted-array-ii(3、中间元素和右边界比较,选左中位数).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
from typing import List class Solution: # 中间元素和右边界比较 def search(self, nums: List[int], target: int) -> bool: size = len(nums) if size == 0: return False left = 0 right = size - 1 while left < right: mid = (left + right + 1) >> 1 i...
25.805556
59
0.375673
381f805e1dcaff2b75f1023d4dd61abc0ee06019
453
py
Python
GeneticAlgorithms/test/KnapsackEvolutionTrial.py
jlln/GeneticKnapsack
fed7578d25ae2c9d80d17e0dfaef5ee9b8bcb0ba
[ "MIT" ]
null
null
null
GeneticAlgorithms/test/KnapsackEvolutionTrial.py
jlln/GeneticKnapsack
fed7578d25ae2c9d80d17e0dfaef5ee9b8bcb0ba
[ "MIT" ]
null
null
null
GeneticAlgorithms/test/KnapsackEvolutionTrial.py
jlln/GeneticKnapsack
fed7578d25ae2c9d80d17e0dfaef5ee9b8bcb0ba
[ "MIT" ]
null
null
null
import numpy as np from src.KnapsackIndividual import Individual, KnapsackItem from src.Evolution import breed_population,evolve_knapsack_population np.random.seed(1234) items = list(set([(np.random.randint(1, 30), np.random.randint(1, 30)) for x in range(500)])) items = [KnapsackItem(x[0], x[1]) for x in item...
37.75
94
0.752759
381f9c93ff9a5f914189540de458f48543c815da
3,601
py
Python
python/advanced/1.0.file_operations.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
1
2022-02-02T08:41:23.000Z
2022-02-02T08:41:23.000Z
python/advanced/1.0.file_operations.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
null
null
null
python/advanced/1.0.file_operations.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
null
null
null
""" Genelde verilerimizi değişkenlerde saklarız. Ancak verilerdeki değişimler program sonlandığında bellekten silinir. Bu verileri saklamak için dosya işlemlerine ihityaç duyarız. Dosya okumak çoğu proje için olmazsa olmazdır. Bu dosyalarda işlemeniz gereken veriler olabilir ya da işlediğiniz verileri ...
37.905263
121
0.746182
381fbc21503cb531929884ce063748655a78e12c
4,271
py
Python
script/cylindergen.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
1
2021-06-07T13:20:04.000Z
2021-06-07T13:20:04.000Z
script/cylindergen.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
script/cylindergen.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Cylinder mesh generator. """ from __future__ import print_function from __future__ import absolute_import import sys sys.path.append('.') from argparse import ArgumentParser from sfepy.mesh.mesh_generators import gen_cylinder_mesh from sfepy.discrete.fem.meshio import MeshIO helps = { 'fi...
43.141414
78
0.557012
381fd3686cfe92c6669282e30900171df4d8551d
118,105
py
Python
volttrontesting/services/historian/test_historian.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
volttrontesting/services/historian/test_historian.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
4
2021-05-28T19:12:54.000Z
2022-02-18T03:07:40.000Z
volttrontesting/services/historian/test_historian.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
3
2021-06-12T19:49:56.000Z
2022-02-12T20:14:38.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2020, Battelle Memorial Institute. # # 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...
39.394596
118
0.612387
381fd4322b6a9353968bdc305cea61fd0b024726
549
py
Python
test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/llc/version-tolerant/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneVersionTolerant/llcservicedrivenupdateoneversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 ...
39.214286
94
0.557377
382021f30ff6ce35872aa0de4ebe2a43f50c21d7
22
py
Python
blurr/__init__.py
warner-benjamin/blurr
c946c3c1b6ee92c6305f102b3d13181132ad083b
[ "Apache-2.0" ]
12
2020-05-28T12:22:52.000Z
2022-03-21T13:55:50.000Z
blurr/__init__.py
warner-benjamin/blurr
c946c3c1b6ee92c6305f102b3d13181132ad083b
[ "Apache-2.0" ]
84
2019-07-04T20:49:46.000Z
2020-11-24T12:08:46.000Z
blurr/__init__.py
warner-benjamin/blurr
c946c3c1b6ee92c6305f102b3d13181132ad083b
[ "Apache-2.0" ]
5
2020-12-31T12:44:33.000Z
2022-03-28T14:33:25.000Z
__version__ = "1.0.6"
11
21
0.636364
382033b4927cc0d3ee7b9eaddc79b8fff64b1414
12,060
py
Python
django_cloud_deploy/cloudlib/database.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
django_cloud_deploy/cloudlib/database.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
django_cloud_deploy/cloudlib/database.py
di/django-cloud-deploy
2ee99bcabbbb5224280c0977415ae4bdab9ab7e2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
41.020408
90
0.585987
3820517c1a5bf3c0cb3c87a960209da704e34208
223
py
Python
bookr/filter_demo/templatetags/inclusion_tag.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
bookr/filter_demo/templatetags/inclusion_tag.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
bookr/filter_demo/templatetags/inclusion_tag.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.inclusion_tag('book_list.html') def book_list(books): book_list = [book_name for book_name, _ in books.items()] return {'book_list': book_list}
22.3
61
0.73991
382058831374c410db7fab5f298c8d59b4126391
6,551
py
Python
tofu/tests/tests09_tutorials/tuto_plot_create_geometry.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
56
2017-07-09T10:29:45.000Z
2022-03-31T02:44:50.000Z
tofu/tests/tests09_tutorials/tuto_plot_create_geometry.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
522
2017-07-02T21:06:07.000Z
2022-03-02T08:07:57.000Z
tofu/tests/tests09_tutorials/tuto_plot_create_geometry.py
Didou09/tofu
4a4e1f058bab8e7556ed9d518f90807cec605476
[ "MIT" ]
9
2017-07-02T20:38:53.000Z
2021-12-04T00:12:30.000Z
""" Creating your first Geometry ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is a tutorial that shows you how to create a simple geometry. """ import numpy as np import matplotlib.pyplot as plt import tofu.geom as tfg ############################################################################### # Creating an empty Vessel #...
40.689441
79
0.641429
382071e34a920755a21dc0188006900f2f008be5
874
py
Python
djstripe/migrations/0012_alter_transfer_destination_data_1.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
null
null
null
djstripe/migrations/0012_alter_transfer_destination_data_1.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
null
null
null
djstripe/migrations/0012_alter_transfer_destination_data_1.py
ExtraE113/dj-stripe
1b50be13fc99b624388a005b8aa1e26c57392203
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-08-08 05:52 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("djstripe", "0012_alter_transfer_schema_change_1"), ] operations = [ # runSQL to update values in column old_destination_field with ids of account fro...
33.615385
150
0.630435
38208754d5a6caa6725c488af2638af1c290a28f
10,236
py
Python
third_party/pex/pex/variables.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
63
2017-08-31T10:02:52.000Z
2021-12-18T21:42:14.000Z
third_party/pex/pex/variables.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
284
2017-10-20T15:35:26.000Z
2020-09-11T15:25:40.000Z
third_party/pex/pex/variables.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
44
2017-08-21T19:47:57.000Z
2020-11-22T22:45:50.000Z
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). # Due to the PEX_ properties, disable checkstyle. # checkstyle: noqa import os import sys from contextlib import contextmanager from .common import die __all__ = ('ENV', 'Variables') ...
33.45098
99
0.705451
38209101fd1eb9f838f5468035221a09dfe17422
9,999
py
Python
kusanagi/ghost/regression/BaseRegressor.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
22
2018-08-04T04:51:27.000Z
2021-11-03T14:22:16.000Z
kusanagi/ghost/regression/BaseRegressor.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
1
2021-11-16T12:41:14.000Z
2021-11-16T12:41:14.000Z
kusanagi/ghost/regression/BaseRegressor.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
7
2018-08-04T04:51:29.000Z
2021-07-17T07:26:04.000Z
import numpy as np import theano import theano.tensor as tt from theano import shared as S from kusanagi.base.Loadable import Loadable from kusanagi import utils floatX = theano.config.floatX class BaseRegressor(Loadable): ''' Class that implements a regression model. This base class implements the logic for ...
40.812245
80
0.575058
3820ce2860e10d01501bc2b6e58a607170f01f8a
2,362
py
Python
alipay/aop/api/response/MybankCreditSupplychainCreditpaySellersignCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/MybankCreditSupplychainCreditpaySellersignCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/MybankCreditSupplychainCreditpaySellersignCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class MybankCreditSupplychainCreditpaySellersignCreateResponse(AlipayResponse): def __init__(self): super(MybankCreditSupplychainCreditpaySellersignCreateResponse, self).__init__()...
27.465116
129
0.641829
3820e917dd9c50a68a75cd46cca80f4439cc9d79
60
py
Python
start.py
WillsMediaServer/Wills-Media-Server
40fd6e86d3ce387861510a4e5e2a7c8c2c5eb921
[ "MIT" ]
null
null
null
start.py
WillsMediaServer/Wills-Media-Server
40fd6e86d3ce387861510a4e5e2a7c8c2c5eb921
[ "MIT" ]
null
null
null
start.py
WillsMediaServer/Wills-Media-Server
40fd6e86d3ce387861510a4e5e2a7c8c2c5eb921
[ "MIT" ]
1
2019-12-18T22:35:55.000Z
2019-12-18T22:35:55.000Z
from wms import init if __name__ == "__main__": init()
12
26
0.65
3820eca5c3d2c467bab2b4b2005482e82b0f345c
719
py
Python
views/tests/test_standard_messages.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
views/tests/test_standard_messages.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
views/tests/test_standard_messages.py
Lexparency/lexhost
71ad624d4ea608294ed40496e44fbdfcd11622c7
[ "MIT" ]
null
null
null
import unittest from views.standard_messages import _standard_messages class TestStandardMessages(unittest.TestCase): langs = sorted(set(_standard_messages.keys()) - {'en'}) benchmark = set(_standard_messages['en'].keys()) def test_to(self): addeds = {'this_domain', 'This_Domain', 'lexparency_u...
28.76
71
0.66064
38212b92a1b0c0568801feb55aac7645d1957860
1,152
py
Python
examples/plots/plot_lines_lw_color.py
abhijith-git/mplsoccer
7359ed83117cb6f191f82c44fe953eb421395695
[ "MIT" ]
1
2021-05-20T16:31:21.000Z
2021-05-20T16:31:21.000Z
examples/plots/plot_lines_lw_color.py
eddwebster/mplsoccer
eb260bc9ab8a94473b4082d922ed490ce11e7982
[ "MIT" ]
null
null
null
examples/plots/plot_lines_lw_color.py
eddwebster/mplsoccer
eb260bc9ab8a94473b4082d922ed490ce11e7982
[ "MIT" ]
null
null
null
""" ======================================= Plot lines with varying width and color ======================================= This example shows how to plot lines with different colors and linewidths. This would be useful for pass maps. """ from mplsoccer.pitch import Pitch import numpy as np from matplotlib.cm import ...
32.914286
86
0.630208
382134b534184a01a518746239214f34f1c7e720
38
py
Python
opticalNet/constants.py
karstarkastro/opticalNet
2479e463cc3eecc848b9d615536dc2609dd4e5a1
[ "MIT" ]
1
2022-03-12T07:26:15.000Z
2022-03-12T07:26:15.000Z
opticalNet/constants.py
karstarkastro/opticalNet
2479e463cc3eecc848b9d615536dc2609dd4e5a1
[ "MIT" ]
null
null
null
opticalNet/constants.py
karstarkastro/opticalNet
2479e463cc3eecc848b9d615536dc2609dd4e5a1
[ "MIT" ]
null
null
null
c = 299792458 # speed of light in m/s
38
38
0.684211
382144f75a0bb6414b599b7c49e6edd1ae840c88
2,786
py
Python
python/sublist/sublist_test.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
9
2020-12-12T03:29:33.000Z
2021-08-11T13:08:06.000Z
python/sublist/sublist_test.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
16
2020-05-30T12:38:13.000Z
2022-02-19T09:23:31.000Z
python/sublist/sublist_test.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
1
2020-11-02T10:40:06.000Z
2020-11-02T10:40:06.000Z
import unittest from sublist import sublist, SUBLIST, SUPERLIST, EQUAL, UNEQUAL # Tests adapted from `problem-specifications//canonical-data.json` class SublistTest(unittest.TestCase): def test_empty_lists(self): self.assertEqual(sublist([], []), EQUAL) def test_empty_list_within_non_empty_list(sel...
33.166667
79
0.622757
38216157641c1437b77dee9a72bdd17dfb0c0bc2
1,447
py
Python
setup.py
fabioz/u-msgpack-python
75029b567431d1dbc04fc0da44195005afbc3164
[ "MIT" ]
1
2017-09-01T20:34:48.000Z
2017-09-01T20:34:48.000Z
setup.py
fabioz/u-msgpack-python
75029b567431d1dbc04fc0da44195005afbc3164
[ "MIT" ]
null
null
null
setup.py
fabioz/u-msgpack-python
75029b567431d1dbc04fc0da44195005afbc3164
[ "MIT" ]
1
2020-07-28T17:01:40.000Z
2020-07-28T17:01:40.000Z
from setuptools import setup setup( name='u-msgpack-python', version='1.6.1', description='A portable, lightweight msgpack serializer and deserializer written in pure Python.', author='vsergeev, fabioz', author_email='vsergeev at gmail', url='https://github.com/vsergeev/u-msgpack-python', p...
55.653846
550
0.702142
38219559ed22ea10f51992ec3bcc2a3a2d80b234
4,403
py
Python
sandbox/error-correct-pass2.py
wltrimbl/khmer
ff95776eabee96420f1ae43d0eff562682cbb17b
[ "CNRI-Python" ]
null
null
null
sandbox/error-correct-pass2.py
wltrimbl/khmer
ff95776eabee96420f1ae43d0eff562682cbb17b
[ "CNRI-Python" ]
null
null
null
sandbox/error-correct-pass2.py
wltrimbl/khmer
ff95776eabee96420f1ae43d0eff562682cbb17b
[ "CNRI-Python" ]
null
null
null
#! /usr/bin/env python # This file is part of khmer, https://github.com/dib-lab/khmer/, and is # Copyright (C) 2011-2015, Michigan State University. # Copyright (C) 2015, The Regents of the University of California. # # Redistribution and use in source and binary forms, with or without # modification, are permitted pro...
35.224
78
0.668862
3821b393ec6847db71b7c4b7396b1ed448ae9538
3,390
py
Python
tensorflow/python/debug/examples/debug_fibonacci.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/debug/examples/debug_fibonacci.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/debug/examples/debug_fibonacci.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 The TensorFlow Authors. 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 applica...
32.596154
80
0.679351
3821c1c7987f11814e91fd6daa11a997dc7b07f7
18,220
py
Python
moto/iot/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
moto/iot/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
moto/iot/responses.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals import json from moto.core.responses import BaseResponse from .models import iot_backends class IoTResponse(BaseResponse): SERVICE_NAME = 'iot' @property def iot_backend(self): return iot_backends[self.region] def create_thing(self): thing_na...
39.95614
104
0.664709
3821c93f93c610a31aaeca37d45e3413d126ecbe
5,440
py
Python
kopf/reactor/activities.py
ankitdobhal/kopf
2765eda2a08e7e42195446cc23f02ba91603db53
[ "MIT" ]
null
null
null
kopf/reactor/activities.py
ankitdobhal/kopf
2765eda2a08e7e42195446cc23f02ba91603db53
[ "MIT" ]
null
null
null
kopf/reactor/activities.py
ankitdobhal/kopf
2765eda2a08e7e42195446cc23f02ba91603db53
[ "MIT" ]
null
null
null
""" Supporting tasks for startup/cleanup and to keep the operator functional. Consumes a credentials vault, and monitors that it has enough credentials. When the credentials are invalidated (i.e. excluded), run the re-authentication activity and populates with the new credentials (fully or partially). The process is ...
37.777778
98
0.688051
3821d6a59722f138f3d561462f2210dbd8ef28d9
5,175
py
Python
legal-api/src/legal_api/models/party.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
legal-api/src/legal_api/models/party.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
legal-api/src/legal_api/models/party.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
38.909774
120
0.665314
38220004082cf8865236966c0a8f861723b3a065
4,074
py
Python
pymmconfig/pymmconfig.py
BAM-PFA/pymm
f029167579bfe2db87df441b313315ecfe18b18a
[ "BSD-2-Clause" ]
3
2017-12-09T10:58:59.000Z
2019-05-22T15:32:44.000Z
pymmconfig/pymmconfig.py
BAM-PFA/pymm
f029167579bfe2db87df441b313315ecfe18b18a
[ "BSD-2-Clause" ]
26
2018-02-22T05:55:45.000Z
2019-04-21T02:37:18.000Z
pymmconfig/pymmconfig.py
BAM-PFA/pymm
f029167579bfe2db87df441b313315ecfe18b18a
[ "BSD-2-Clause" ]
1
2018-03-01T17:40:20.000Z
2018-03-01T17:40:20.000Z
#!/usr/bin/env python3 ''' pymm is a python port of mediamicroservices (https://github.com/mediamicroservices/mm) run `pymmconfig` once at setup to initialize config settings or run it again to change or add values ''' import os import sys import inspect import configparser def make_config(configPath): if not os.pat...
36.053097
144
0.723368
382208a79bef714fc57df09693e0dc9a7ee80b11
1,278
py
Python
superset/migrations/versions/f0fbf6129e13_adding_verbose_name_to_tablecolumn.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/migrations/versions/f0fbf6129e13_adding_verbose_name_to_tablecolumn.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/migrations/versions/f0fbf6129e13_adding_verbose_name_to_tablecolumn.py
zhwXF/Superset
14c3488c79f8f3cdbd1123e8f7a92f8746c2db09
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
30.428571
62
0.751174
3822566814284ca1ff005113cb870f0ebac06f05
4,180
py
Python
tests/models/validators/v2_1_2/jsd_cf9418234d9ab37e.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_cf9418234d9ab37e.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_cf9418234d9ab37e.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Preview Config data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, includin...
28.435374
78
0.433493
38226c37d6efd83efbb33c5a3afb1ab3094333f6
4,586
py
Python
omrdatasettools/MeasureVisualizer.py
apacha/OMR-Datasets
a49af3ce4bfae370baef7e4f9c435b0f76025713
[ "MIT" ]
195
2017-09-29T10:29:59.000Z
2022-03-16T07:54:30.000Z
omrdatasettools/MeasureVisualizer.py
apacha/OMR-Datasets
a49af3ce4bfae370baef7e4f9c435b0f76025713
[ "MIT" ]
2
2019-11-10T21:09:27.000Z
2020-01-06T12:23:53.000Z
omrdatasettools/MeasureVisualizer.py
apacha/OMR-Datasets
a49af3ce4bfae370baef7e4f9c435b0f76025713
[ "MIT" ]
42
2017-09-13T02:52:46.000Z
2022-03-15T12:31:51.000Z
import argparse import json import os from PIL import Image, ImageDraw from tqdm import tqdm class MeasureVisualizer: """ Class that can be used to visualize the measure annotations that are provided as json files. Allows to enable/disable whether to draw system-measures (one measure for all inst...
48.787234
122
0.679023
382270a08ad11d37fb32c744c2192c12f95618cb
1,849
py
Python
app/v2/inbound_sms/inbound_sms_schemas.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/v2/inbound_sms/inbound_sms_schemas.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/v2/inbound_sms/inbound_sms_schemas.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
from app.schema_validation.definitions import uuid get_inbound_sms_request = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "schema for query parameters allowed when getting list of received text messages", "type": "object", "properties": { "older_than": uuid, }, ...
29.822581
101
0.556517
3822913db713815fb4b9ff24fd69173724bd9acd
8,205
py
Python
posetrigger/evaluation_control.py
gwappa/python-posetrigger
3d9619160b5ed97e52ba2aae99d5eec663834a06
[ "MIT" ]
null
null
null
posetrigger/evaluation_control.py
gwappa/python-posetrigger
3d9619160b5ed97e52ba2aae99d5eec663834a06
[ "MIT" ]
null
null
null
posetrigger/evaluation_control.py
gwappa/python-posetrigger
3d9619160b5ed97e52ba2aae99d5eec663834a06
[ "MIT" ]
null
null
null
# # MIT License # # Copyright (c) 2020 Keisuke Sehara # # 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, me...
36.793722
97
0.645338
38229d76fed43089c1cdefbca734f6079d67c2b8
308
py
Python
ooni/nettests/examples/example_simple_post.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
24
2018-12-23T12:53:57.000Z
2022-01-19T19:50:53.000Z
ooni/nettests/examples/example_simple_post.py
Acidburn0zzz/ooni-probe
22720e383093c0d30fd1b6ca44794d3b29031f91
[ "BSD-2-Clause" ]
64
2018-09-13T08:26:20.000Z
2022-02-11T03:48:34.000Z
ooni/nettests/examples/example_simple_post.py
Acidburn0zzz/ooni-probe
22720e383093c0d30fd1b6ca44794d3b29031f91
[ "BSD-2-Clause" ]
9
2019-06-10T01:41:48.000Z
2022-01-08T08:46:25.000Z
from twisted.internet import defer from ooni import nettest class MyIP(nettest.NetTestCase): def test_simple(self): self.report['foobar'] = 'antani' return defer.succeed(42) def postProcessor(self, measurements): print measurements self.report['antani'] = 'testing'
25.666667
42
0.681818
3822a670d07a999d93b55d0715006a4c71dcd7ac
258
py
Python
utils/__init__.py
ggashish/Makoda
d16ed8014cde6dc22fa50c95ec365e8744402559
[ "MIT" ]
3
2021-08-07T13:01:32.000Z
2021-08-25T16:19:15.000Z
utils/__init__.py
ggashish/Makoda
d16ed8014cde6dc22fa50c95ec365e8744402559
[ "MIT" ]
null
null
null
utils/__init__.py
ggashish/Makoda
d16ed8014cde6dc22fa50c95ec365e8744402559
[ "MIT" ]
null
null
null
from utils.buttons import * from utils.context import * from utils.emote import * from utils.helper import * from utils.permission import * from utils.paginator import * from utils.default import * from utils.converter import * from utils.exceptions import *
28.666667
30
0.794574
3822a6866f2d94417fa06856407eb8baf17a4d2a
5,071
py
Python
modules/tools/planning/plot_trajectory/main.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/planning/plot_trajectory/main.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/planning/plot_trajectory/main.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
35.711268
81
0.664958
3822b15b73922a2970ef9df4b3d63ee99afbf442
4,919
py
Python
vgio/quake2/wal.py
joshuaskelly/game-tools
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
22
2017-11-30T22:13:50.000Z
2019-12-19T17:56:40.000Z
vgio/quake2/wal.py
joshuaskelly/vgio
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
22
2019-08-11T05:07:26.000Z
2020-12-30T16:07:04.000Z
vgio/quake2/wal.py
joshuaskelly/game-tools
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
4
2018-06-24T14:04:36.000Z
2019-05-14T06:01:51.000Z
"""This module provides file I/O for Quake 2 WAL texture files. Example: with open('arrow0.wal') as file: wal_file = wal.Wal.read(file) References: Quake 2 Source - id Software - https://github.com/id-Software/Quake-2 """ import struct from vgio._core import ReadWriteFile __all__ = ['Wal'] ...
24.472637
131
0.548485
3822b9f6520c77a8e8f2b318ee45d7ebca33c05e
1,800
py
Python
ml-agents/mlagents/trainers/tests/torch/test_layers.py
mattinjersey/ml-agents
7dcf947f541d661cc4a94b0e7758e1b12c6be078
[ "Apache-2.0" ]
2
2021-01-09T13:13:13.000Z
2021-01-18T19:54:00.000Z
ml-agents/mlagents/trainers/tests/torch/test_layers.py
Rushoo26/ml-agents
c73616c176f383bebefc3a1895ed1265661a1236
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/trainers/tests/torch/test_layers.py
Rushoo26/ml-agents
c73616c176f383bebefc3a1895ed1265661a1236
[ "Apache-2.0" ]
1
2021-12-03T16:51:05.000Z
2021-12-03T16:51:05.000Z
from mlagents.torch_utils import torch from mlagents.trainers.torch.layers import ( Swish, linear_layer, lstm_layer, Initialization, LSTM, ) def test_swish(): layer = Swish() input_tensor = torch.Tensor([[1, 2, 3], [4, 5, 6]]) target_tensor = torch.mul(input_tensor, torch.sigmoid(inpu...
30
86
0.675
3822e656f0cf782e6fe6cb2fa60f62c859cce680
5,665
py
Python
thermof/simulation/plot.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
null
null
null
thermof/simulation/plot.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
11
2017-08-15T22:11:32.000Z
2017-08-22T23:32:17.000Z
thermof/simulation/plot.py
pzarabadip/thermof
44c33e37aeadce31241a878135b1531757a2b1c4
[ "MIT" ]
1
2017-01-31T19:44:02.000Z
2017-01-31T19:44:02.000Z
# Date: August 2017 # Author: Kutay B. Sezginel """ Plot functions for Simulation class """ import os from thermof.read import read_framework_distance from thermof.visualize import plot_thermal_conductivity, plot_framework_distance, plot_thermo from thermof.visualize import subplot_thermal_conductivity def plot_simul...
55
133
0.621712
3822eb499b334c9769f58704648749d6a47ad06a
17,667
py
Python
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_synonym_maps_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_synonym_maps_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_synonym_maps_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...
43.947761
164
0.670402
3822ecd0a1b0e780c99a8762e159e115fe13e085
21,137
py
Python
pandas/tests/series/test_apply.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/series/test_apply.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/series/test_apply.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2019-03-08T19:59:05.000Z
2020-09-27T03:18:37.000Z
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import pytest from collections import Counter, defaultdict, OrderedDict import numpy as np import pandas as pd from pandas import (Index, Series, DataFrame, isna) from pandas.compat import lrange from pandas import compat from pandas.util.testing import assert_series...
36.380379
79
0.546719
3822fcabfe9384ab7d207bd7fa965eab374c9690
22,364
py
Python
download/gzip3.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
1
2020-04-29T18:55:56.000Z
2020-04-29T18:55:56.000Z
download/gzip3.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
null
null
null
download/gzip3.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
null
null
null
"""Functions that read and write gzipped files. The user of the file doesn't have to worry about the compression, but random access is not allowed.""" # based on Andrew Kuchling's minigzip.py distributed with the zlib module import struct, sys, time, os import zlib # changed from "import builtins" # http://docs.pyth...
35.274448
101
0.56032
3823057920873a4c83c39e38c00d16f8ffcf1684
1,029
py
Python
backend/setup.py
peersky/moonstock
9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c
[ "Apache-2.0" ]
2
2021-08-03T16:11:07.000Z
2021-12-13T08:32:06.000Z
backend/setup.py
peersky/moonstock
9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c
[ "Apache-2.0" ]
null
null
null
backend/setup.py
peersky/moonstock
9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup from moonstream.version import MOONSTREAM_VERSION long_description = "" with open("README.md") as ifp: long_description = ifp.read() setup( name="moonstream", version=MOONSTREAM_VERSION, packages=find_packages(), install_requires=["boto3", "bugout >= 0....
31.181818
73
0.660836
38233744c5aacf30745540532af2e3647d1e2c38
8,581
py
Python
test/functional/wallet_labels.py
luisriverag/namecoin-core
f2c234926bdb151338732df7ace37a105c14e776
[ "MIT" ]
null
null
null
test/functional/wallet_labels.py
luisriverag/namecoin-core
f2c234926bdb151338732df7ace37a105c14e776
[ "MIT" ]
1
2021-09-06T21:01:56.000Z
2021-09-15T21:05:19.000Z
test/functional/wallet_labels.py
luisriverag/namecoin-core
f2c234926bdb151338732df7ace37a105c14e776
[ "MIT" ]
1
2021-08-10T14:03:36.000Z
2021-08-10T14:03:36.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test label RPCs. RPCs tested are: - getaddressesbylabel - listaddressgroupings - setlabel ...
41.454106
115
0.643748
382345d661075cc2b1a73e72ea1c1928caeb0a9c
18,572
py
Python
src/bullet_utils/wrapper.py
machines-in-motion/bullet_utils
ea71fe8cfe9ec81ab2b85e840f2dadd6b90a7af4
[ "BSD-3-Clause" ]
1
2021-10-03T00:39:04.000Z
2021-10-03T00:39:04.000Z
src/bullet_utils/wrapper.py
machines-in-motion/bullet_utils
ea71fe8cfe9ec81ab2b85e840f2dadd6b90a7af4
[ "BSD-3-Clause" ]
11
2021-01-06T18:40:07.000Z
2021-12-13T15:51:50.000Z
src/bullet_utils/wrapper.py
machines-in-motion/bullet_utils
ea71fe8cfe9ec81ab2b85e840f2dadd6b90a7af4
[ "BSD-3-Clause" ]
3
2021-03-09T15:18:05.000Z
2021-12-22T12:05:18.000Z
"""wrapper Pybullet interface using pinocchio's convention. License: BSD 3-Clause License Copyright (C) 2018-2019, New York University , Max Planck Gesellschaft Copyright note valid unless otherwise stated in individual files. All rights reserved. """ import pybullet import pinocchio import numpy as np from numpy.ra...
41.455357
162
0.623842
3823525ab8bc84c5df0038632d0a3eb51003268d
11,378
py
Python
services/traction/acapy_client/model/did_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/model/did_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/model/did_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
40.781362
124
0.559589
382375467d28f58769c513126c126d41ef5fa1a0
4,524
py
Python
pxr/usd/lib/usdHydra/test.py
unity3d-jp/USD
0f146383613e1efe872ea7c85aa3536f170fcda2
[ "BSD-3-Clause" ]
7
2016-12-13T00:53:38.000Z
2020-04-02T13:25:50.000Z
pxr/usd/lib/usdHydra/test.py
unity3d-jp/USD
0f146383613e1efe872ea7c85aa3536f170fcda2
[ "BSD-3-Clause" ]
null
null
null
pxr/usd/lib/usdHydra/test.py
unity3d-jp/USD
0f146383613e1efe872ea7c85aa3536f170fcda2
[ "BSD-3-Clause" ]
2
2016-12-13T00:53:40.000Z
2020-05-04T07:32:53.000Z
# # Copyright 2016 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # # 6. Trademarks. T...
43.92233
98
0.732317
382376b41f8d8a90be98e959231ed6b7b864eaa7
444
py
Python
src/model_train/config.py
potrahi/magic_wand
8c9b14db17f7cc93caf88546eb00fd23e9a0e9a7
[ "Apache-2.0" ]
null
null
null
src/model_train/config.py
potrahi/magic_wand
8c9b14db17f7cc93caf88546eb00fd23e9a0e9a7
[ "Apache-2.0" ]
null
null
null
src/model_train/config.py
potrahi/magic_wand
8c9b14db17f7cc93caf88546eb00fd23e9a0e9a7
[ "Apache-2.0" ]
null
null
null
DATA_NAME = "accel_ms2_xyz" LABEL_NAME = "gesture" # label name (you should keep "negative" in the end of the list) labels = ["ring", "slope", "wing", "negative"] # data split configuration # note that train_ratio + valid_ratio + test_ratio = 1 train_ratio = 0.6 valid_ratio = 0.3 data_split_random_seed = 30 # model ...
23.368421
64
0.731982
38237e86cf17a8445c9008ffac6e064230885141
7,001
py
Python
cogs/voicegen.py
CDESamBotDev/VCRoles
764fff6be5dc44194ee3979dbfa72340cd66a172
[ "Apache-2.0" ]
3
2022-02-18T11:41:07.000Z
2022-02-22T17:33:09.000Z
cogs/voicegen.py
CDESamBotDev/VCRoles
764fff6be5dc44194ee3979dbfa72340cd66a172
[ "Apache-2.0" ]
15
2022-01-22T20:15:10.000Z
2022-03-29T16:10:40.000Z
cogs/voicegen.py
CDESamBotDev/VCRoles
764fff6be5dc44194ee3979dbfa72340cd66a172
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Union import discord from discord import app_commands from discord.ext import commands from bot import MyClient from checks import check_any, command_available, is_owner from views.interface import Interface class VoiceGen(commands.Cog): def __init__(self, client: MyClient): ...
37.438503
223
0.592058
3823b88e9881ed703d55e1b0291a1d1a97402670
3,730
py
Python
test.py
smba/pycosa-toolbox
ce4142a1231f8b06d4f10db486a562e89d4682ee
[ "MIT" ]
1
2022-02-10T13:50:59.000Z
2022-02-10T13:50:59.000Z
test.py
smba/pycosa-toolbox
ce4142a1231f8b06d4f10db486a562e89d4682ee
[ "MIT" ]
5
2022-01-20T14:05:58.000Z
2022-03-29T08:49:44.000Z
test.py
smba/pycosa-toolbox
ce4142a1231f8b06d4f10db486a562e89d4682ee
[ "MIT" ]
1
2022-02-10T20:23:01.000Z
2022-02-10T20:23:01.000Z
import unittest import pycosa.modeling as modeling import pycosa.sampling as sampling import numpy as np import pandas as pd import matplotlib.pyplot as plt """ Testing should include aspects like - Sample size - negative - exact - maximum not exceeded - Uniqueness """ class TestSingleSampler(unittest...
28.914729
78
0.64504
3823bc1eb867c0e1efa000c5b64cad5f345df485
669
py
Python
supriya/ugens/PeakFollower.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PeakFollower.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PeakFollower.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.synthdefs import UGen class PeakFollower(UGen): """ Tracks peak signal amplitude. :: >>> source = supriya.ugens.In.ar(0) >>> peak_follower = supriya.ugens.PeakFollower.ar( ... decay=0.999, ... so...
22.3
88
0.627803
3823e1f69245ec8a371db7315d6e286f9a5d026e
63,959
py
Python
dfxml/__init__.py
dfxml-working-group/dfxml_python
f82924bda1ac77cfef6296a8f7066c72a2adcb91
[ "CC0-1.0" ]
2
2021-07-04T19:18:21.000Z
2021-09-27T05:47:03.000Z
dfxml/__init__.py
dfxml-working-group/dfxml_python
f82924bda1ac77cfef6296a8f7066c72a2adcb91
[ "CC0-1.0" ]
17
2021-07-02T21:19:52.000Z
2022-01-27T22:30:19.000Z
dfxml/__init__.py
dfxml-working-group/dfxml_python
f82924bda1ac77cfef6296a8f7066c72a2adcb91
[ "CC0-1.0" ]
3
2021-07-05T08:14:20.000Z
2022-01-30T23:18:37.000Z
#!/usr/bin/env python # This software was developed in whole or in part by employees of the # Federal Government in the course of their official duties, and with # other Federal assistance. Pursuant to title 17 Section 105 of the # United States Code portions of this software authored by Federal # employees are not su...
39.286855
257
0.610063
3823f7aa6eb7cc797952be4d96b4b8449d9c07c8
762
py
Python
test/test_xref.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
test/test_xref.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
test/test_xref.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
"""Integration tests for the PyWriter distributions. Test the cross reference generation. For further information see https://github.com/peter88213/PyWriter Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ from pywriter.odt.odt_xref import OdtXref from pywriter.test.export...
25.4
82
0.7021
382400debba4ea506ff0b1094db79526174d506e
1,069
py
Python
files/models.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
files/models.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
files/models.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
from django.db import models # Create your models here. class Directory(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=128) parent = models.ForeignKey('self', on_delete=models.CASCADE, null=True) owner = models.CharField(max_length=128) class File(models.Mod...
38.178571
82
0.751169
38241a7da2d9029b37d48a025d75099804c75a86
934
py
Python
tests/integration/session/test_timeout.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/session/test_timeout.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/session/test_timeout.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
import time from app import settings from tests.integration.integration_test_case import IntegrationTestCase class TestTimeout(IntegrationTestCase): def setUp(self): settings.EQ_SESSION_TIMEOUT_SECONDS = 2 super().setUp() def tearDown(self): settings.EQ_SESSION_TIMEOUT_SECONDS = 45 *...
29.1875
71
0.714133