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
384ecd2a979b2394d04c3d32e3f8dcafa8b878b8
4,612
py
Python
gcloud/iam_auth/utils.py
Chace-wang/bk-sops
c5f42606c796eae369d23c7de3e47d4ec166c658
[ "Apache-2.0" ]
null
null
null
gcloud/iam_auth/utils.py
Chace-wang/bk-sops
c5f42606c796eae369d23c7de3e47d4ec166c658
[ "Apache-2.0" ]
null
null
null
gcloud/iam_auth/utils.py
Chace-wang/bk-sops
c5f42606c796eae369d23c7de3e47d4ec166c658
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) 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 co...
38.756303
115
0.766912
384f0f900b8f40fb3e426bd8134fa1e12e9732f9
729
py
Python
acore/or_classifiers/small_list.py
zhao-david/ACORE-LFI
91de88b77f0be110e42ed91bbb7a50b7ca83319a
[ "MIT" ]
9
2020-03-17T10:38:28.000Z
2022-03-10T20:05:11.000Z
acore/or_classifiers/small_list.py
zhao-david/ACORE-LFI
91de88b77f0be110e42ed91bbb7a50b7ca83319a
[ "MIT" ]
null
null
null
acore/or_classifiers/small_list.py
zhao-david/ACORE-LFI
91de88b77f0be110e42ed91bbb7a50b7ca83319a
[ "MIT" ]
1
2020-10-15T19:44:12.000Z
2020-10-15T19:44:12.000Z
from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis from sklearn.linear_model import LogisticRegression from sklearn.neighbors import KNeighborsClassifier from xgboost import XGBClassifier from sklearn.neural_network import MLPClassifier classifier_dict = { 'Log. Regr.': LogisticRegression(pen...
42.882353
84
0.761317
384f5732b51cc950281180695f7178b4da3e6af2
930
py
Python
e2e/scripts/text_input.py
deepchatterjeevns/streamlit
631d42877bd16bdec14ee124c936917b430f6ce4
[ "Apache-2.0" ]
4
2019-11-10T13:50:56.000Z
2020-01-07T21:02:29.000Z
e2e/scripts/text_input.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
4
2021-05-09T11:42:18.000Z
2022-02-27T10:59:36.000Z
e2e/scripts/text_input.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
1
2020-06-26T14:41:01.000Z
2020-06-26T14:41:01.000Z
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit 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 applicabl...
32.068966
74
0.697849
384f6240aca122e8acd5545994694c38278922fd
8,360
py
Python
MachineLearning/TP4/ex4.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP4/ex4.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP4/ex4.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
# %% Machine Learning Online Class - Exercise 4 Neural Network Learning # Instructions # ------------ # # This file contains code that helps you get started on the # linear exercise. You will need to complete the following functions # in this exericse: # # sigmoidGradient.py # randInitializeWeights.py #...
39.248826
119
0.683732
384f8cd0c55e7a67819b8843c013c24a785d2920
28,078
py
Python
models/cite_wa/OneLabelTextCNN/train.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
34
2019-02-04T14:57:08.000Z
2022-02-07T13:32:35.000Z
models/cite_wa/OneLabelTextCNN/train.py
syyunn/DeepWTO
0e9f206ec2ce24b1afdf895bc81509dd84235b82
[ "Apache-2.0" ]
3
2020-03-02T05:06:24.000Z
2020-03-06T08:39:18.000Z
models/cite_wa/OneLabelTextCNN/train.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
4
2020-02-17T04:17:12.000Z
2022-02-07T14:27:01.000Z
import sys # -*- coding:utf-8 -*- __author__ = 'Randolph' __modify__ = 'Zachary' [sys.path.append(i) for i in ['.', '..', '...', '....']] import os import sys import time import logging import numpy as np import tensorflow as tf from tensorboard.plugins import projector from models.cite_wa.OneLabelTextCNN.model imp...
40.989781
91
0.488639
384f9dce583c095695d2e08dd9589bca8a18c703
25,530
py
Python
gslib/commands/signurl.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
649
2015-01-08T01:50:15.000Z
2022-03-31T08:33:38.000Z
gslib/commands/signurl.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
798
2015-01-02T07:46:09.000Z
2022-03-31T20:37:19.000Z
gslib/commands/signurl.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
315
2015-01-02T10:26:53.000Z
2022-03-27T02:18:58.000Z
# -*- coding: utf-8 -*- # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
39.156442
129
0.640736
384fa630b69a344cacd25f845b4e883c3610a3d9
10,624
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_rbd_persistent_volume_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_rbd_persistent_volume_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_rbd_persistent_volume_source.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1RBD...
34.160772
312
0.620858
384fba6c855efd44c90b92f3144bc8d0d8cd022e
126
py
Python
redbrick/cli/__init__.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2020-11-26T04:25:15.000Z
2020-11-26T04:25:15.000Z
redbrick/cli/__init__.py
redbrick-ai/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
33
2021-02-04T17:51:53.000Z
2022-03-17T07:28:36.000Z
redbrick/cli/__init__.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2021-06-09T10:06:35.000Z
2021-06-09T10:06:35.000Z
"""CLI for RedBrick SDK.""" from redbrick.cli.project import CLIProject from redbrick.cli.public import cli_parser, cli_main
25.2
52
0.793651
384fc2c811bf475aefaa7e31db0ae6a15a8618fa
240
py
Python
lesson_5_work/Ex6.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
lesson_5_work/Ex6.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
lesson_5_work/Ex6.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
commands = ["ctrl","alt","shift"] is_present= False print("Enter command: ") command = input() if command in commands: is_present= True if is_present== True: print("ТривогААА!!!!") else: print("Гомера звільнять")
21.818182
34
0.629167
384fda1c6d691bd639d75b9cfd5b1af8acf60f5e
11,369
py
Python
generated_graph.py
Prukfa/Graph-Attack
6554c6196ae03ee2670e5598905eb10995a9234e
[ "MIT" ]
1
2020-09-13T16:01:12.000Z
2020-09-13T16:01:12.000Z
generated_graph.py
JDarDagran/Graph-Attack
6554c6196ae03ee2670e5598905eb10995a9234e
[ "MIT" ]
null
null
null
generated_graph.py
JDarDagran/Graph-Attack
6554c6196ae03ee2670e5598905eb10995a9234e
[ "MIT" ]
null
null
null
import random import numpy as np import math import matplotlib.pyplot as plt import json import datetime from matplotlib.figure import Figure from scipy.stats import bernoulli import os from abc import abstractmethod, ABCMeta class Node(object): """ Class for node object. """ def __init__(self, number)...
37.896667
270
0.575248
384fdf4ca00d316ef52e60288ed72c6a64b91a1f
14,577
py
Python
time_series_ocean_regions.py
milenaveneziani/analysis
4c10695204c528c514b2d17d9c57281894022b78
[ "BSD-2-Clause" ]
null
null
null
time_series_ocean_regions.py
milenaveneziani/analysis
4c10695204c528c514b2d17d9c57281894022b78
[ "BSD-2-Clause" ]
null
null
null
time_series_ocean_regions.py
milenaveneziani/analysis
4c10695204c528c514b2d17d9c57281894022b78
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function, \ unicode_literals import os import xarray import numpy as np import matplotlib.pyplot as plt from mpas_analysis.shared.io import open_mpas_dataset, write_netcdf from mpas_analysis.shared.io.utility import get_files_year_month, decode_strings from ...
46.27619
181
0.591686
384ff3b8eaeb5cad564e069e0021cb0917dddd20
3,498
py
Python
behave/features/steps/general.py
jhutchings1/transfer-coronavirus-data-service
fbaa48f87e4413f68b680a9a4e2ae43a8ee13b01
[ "MIT" ]
1
2020-04-02T15:00:11.000Z
2020-04-02T15:00:11.000Z
behave/features/steps/general.py
jhutchings1/transfer-coronavirus-data-service
fbaa48f87e4413f68b680a9a4e2ae43a8ee13b01
[ "MIT" ]
33
2021-04-26T03:03:19.000Z
2022-03-21T03:05:27.000Z
behave/features/steps/general.py
jhutchings1/transfer-coronavirus-data-service
fbaa48f87e4413f68b680a9a4e2ae43a8ee13b01
[ "MIT" ]
3
2020-05-05T13:47:03.000Z
2021-04-10T20:15:50.000Z
import time from selenium.common.exceptions import NoSuchElementException from behave import then, when @when('visit url "{url}"') def visit_url_step(context, url): context.browser.get(url) @when('you click on "{selector}"') def click_on_step(context, selector): elem = context.browser.find_element_by_css_...
26.300752
87
0.651801
38500a6a79928aa4d045c32075975e27acbfbc55
3,231
py
Python
dtoolkit/geoaccessor/accessor.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
1
2021-10-09T04:50:58.000Z
2021-10-09T04:50:58.000Z
dtoolkit/geoaccessor/accessor.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
427
2021-06-04T02:40:22.000Z
2022-03-30T12:55:52.000Z
dtoolkit/geoaccessor/accessor.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
1
2021-07-09T09:56:44.000Z
2021-07-09T09:56:44.000Z
import geopandas as gpd from pandas.core.accessor import _register_accessor from pandas.util._decorators import doc @doc(klass=":class:`~geopandas.GeoSeries`") def register_geoseries_accessor(name: str): """ Register a custom accessor on {klass} objects. This is a temparatory solution to hook method into...
27.615385
80
0.616527
38503bbcd144be084a71df036244226328d8df73
1,431
py
Python
python/nano/src/bigdl/nano/deps/openvino/pytorch/pytorch_openvino_utils.py
StevenGolden1203/BigDL
2ae276fcdc3dc63a93917e5fe75d185696139a63
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/openvino/pytorch/pytorch_openvino_utils.py
StevenGolden1203/BigDL
2ae276fcdc3dc63a93917e5fe75d185696139a63
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/deps/openvino/pytorch/pytorch_openvino_utils.py
StevenGolden1203/BigDL
2ae276fcdc3dc63a93917e5fe75d185696139a63
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.75
95
0.749825
385075fe5ed1667eeeb7d4f4fab7e161be3100b2
4,189
py
Python
salt/cli/batch.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2015-10-06T22:25:22.000Z
2015-10-06T22:25:22.000Z
salt/cli/batch.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/cli/batch.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
''' Execute batch runs ''' # Import python libs import math import time import copy # Import salt libs import salt.client import salt.output class Batch(object): ''' Manage the execution of batch runs ''' def __init__(self, opts, quiet=False): self.opts = opts self.quiet = quiet ...
31.261194
79
0.434233
385083ac4b582448ffcbdfdff8a639456c17e61a
3,740
py
Python
tests/helloworld/hello_worker_task_pool.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
9
2019-05-06T17:30:35.000Z
2021-12-10T16:05:00.000Z
tests/helloworld/hello_worker_task_pool.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
80
2018-04-13T20:25:04.000Z
2022-03-10T21:59:58.000Z
tests/helloworld/hello_worker_task_pool.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
4
2020-08-07T17:58:13.000Z
2021-11-12T17:17:42.000Z
# ------------------------------------------------------------------------------- # Copyright 2006-2021 UT-Battelle, LLC. See LICENSE for more information. # ------------------------------------------------------------------------------- from ipsframework import Component class HelloWorker(Component): def __init...
42.988506
102
0.568984
3850cdc8424c8cb27ed59df67150eff2b0dcd2d6
5,693
py
Python
ocs_ci/ocs/must_gather/must_gather.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/ocs/must_gather/must_gather.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/ocs/must_gather/must_gather.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import os import logging import shutil import tempfile import re from pathlib import Path from ocs_ci.helpers.helpers import storagecluster_independent_check from ocs_ci.ocs.resources.pod import get_all_pods from ocs_ci.ocs.utils import collect_ocs_logs from ocs_ci.ocs.must_gather.const_must_gather import GATHER_COMMA...
32.718391
89
0.595468
3850cea0f00d6bedf55be65787251f24e39b7b97
1,415
py
Python
openapi_python_client/schema/openapi_schema_pydantic/server.py
JamesHinshelwood/openapi-python-client
08bc2acf91d50d4fcdd7f0e50a8b0d3f00a187d9
[ "MIT" ]
1
2022-02-17T11:45:13.000Z
2022-02-17T11:45:13.000Z
openapi_python_client/schema/openapi_schema_pydantic/server.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
null
null
null
openapi_python_client/schema/openapi_schema_pydantic/server.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
null
null
null
from typing import Dict, Optional from pydantic import BaseModel, Extra from .server_variable import ServerVariable class Server(BaseModel): """An object representing a Server. References: - https://swagger.io/docs/specification/api-host-and-base-path/ - https://github.com/OAI/OpenAPI-Speci...
35.375
107
0.511661
38512be3ec26e103cf30fba29ac489af493ba703
4,052
py
Python
NNClass/MNIST.py
mattkjames7/NNClass
57c6e90adebdb84a9fb633d57fc099880a50405c
[ "MIT" ]
null
null
null
NNClass/MNIST.py
mattkjames7/NNClass
57c6e90adebdb84a9fb633d57fc099880a50405c
[ "MIT" ]
null
null
null
NNClass/MNIST.py
mattkjames7/NNClass
57c6e90adebdb84a9fb633d57fc099880a50405c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as colors from mpl_toolkits.axes_grid1 import make_axes_locatable import os from .NNClass import NNClass class MNIST(object): def __init__(self,Hidden=[10],Split=[0.8,0.1,0.1]): ''' This is a simple object which uses 10,000 samples from t...
24.409639
132
0.646101
38514c0912b7bab4f8ae754c9617d7668d69e5af
219
py
Python
pi_wars/utils/sam_drive_from_vector.py
MageJohn/pi_wars
f1167846a5f9cbc87c54dfb961cd02fc8c81b345
[ "MIT" ]
null
null
null
pi_wars/utils/sam_drive_from_vector.py
MageJohn/pi_wars
f1167846a5f9cbc87c54dfb961cd02fc8c81b345
[ "MIT" ]
null
null
null
pi_wars/utils/sam_drive_from_vector.py
MageJohn/pi_wars
f1167846a5f9cbc87c54dfb961cd02fc8c81b345
[ "MIT" ]
null
null
null
def drive_from_vector(x, y): leftReturn = clamp(y+x, -1, 1) rightReturn = clamp(y-x, -1, 1) return (leftReturn,rightReturn) def clamp(n, smallest, largest): return max(smallest, min(n, largest))
27.375
42
0.639269
385180b25ce1eb2c5ebc5ead56c9e3a941bdd7bd
843
py
Python
tools/manifest/tests/test_item.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
1
2020-07-03T21:13:22.000Z
2020-07-03T21:13:22.000Z
tools/manifest/tests/test_item.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
null
null
null
tools/manifest/tests/test_item.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
1
2017-09-04T11:09:07.000Z
2017-09-04T11:09:07.000Z
import pytest from ..item import URLManifestItem @pytest.mark.parametrize("path", [ "a.https.c", "a.b.https.c", "a.https.b.c", "a.b.https.c.d", "a.serviceworker.c", "a.b.serviceworker.c", "a.serviceworker.b.c", "a.b.serviceworker.c.d", ]) def test_url_https(path): m = URLManifestI...
20.071429
66
0.576512
3851c7a2a7ba1d9bd5d1f508697325d3d4e745d4
7,012
py
Python
oslo/log/openstack/common/rpc/dispatcher.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
oslo/log/openstack/common/rpc/dispatcher.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
oslo/log/openstack/common/rpc/dispatcher.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
39.173184
79
0.66101
3851e6fdb5143e9d61094a642849317f5dbd7c4b
1,945
py
Python
test/model/address_table_test.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
27
2015-04-15T09:40:26.000Z
2020-04-29T06:24:06.000Z
test/model/address_table_test.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
2
2015-06-03T20:19:51.000Z
2015-06-30T20:40:14.000Z
test/model/address_table_test.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
10
2015-08-06T08:17:28.000Z
2020-09-29T17:02:57.000Z
import unittest from time import time from biicode.server.model.address_table import AddressTable from biicode.common.model.id import ID, UserID class AddressTableTest(unittest.TestCase): def setUp(self): self.block_id = UserID(1) + 2 # ID(ID(1), 2) def test_name(self): table = AddressTable...
32.966102
78
0.524422
3852100e7cde35754c72381807cd4b4368bb09d5
4,814
py
Python
figures.py
david-hoffman/pyOTF
affa4380de86db17cf9f7a7b976186b64f031794
[ "Apache-2.0" ]
38
2017-02-23T10:32:36.000Z
2021-12-17T19:22:14.000Z
figures.py
david-hoffman/pyOTF
affa4380de86db17cf9f7a7b976186b64f031794
[ "Apache-2.0" ]
21
2020-02-24T18:43:29.000Z
2021-09-15T04:12:58.000Z
figures.py
david-hoffman/pyOTF
affa4380de86db17cf9f7a7b976186b64f031794
[ "Apache-2.0" ]
8
2018-02-07T12:46:15.000Z
2021-02-21T15:12:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # figures.py """ Simple script to generate the figures in the README.md. Copyright (c) 2020, David Hoffman """ import time import warnings import numpy as np from matplotlib import pyplot as plt import tifffile as tif from pyotf.otf import HanserPSF, SheppardPSF, apply...
29.175758
97
0.624221
385225192a9d3e1f6d717e8d32822e94c09d4f0b
5,710
py
Python
sunpy/net/dataretriever/sources/tests/test_eve.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-01-03T16:39:28.000Z
2020-04-24T15:12:08.000Z
sunpy/net/dataretriever/sources/tests/test_eve.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/net/dataretriever/sources/tests/test_eve.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
import pytest import sunpy.net.dataretriever.sources.eve as eve from sunpy.net import Fido from sunpy.net import attrs as a from sunpy.net._attrs import Instrument, Level, Time from sunpy.net.dataretriever.client import QueryResponse from sunpy.net.fido_factory import UnifiedResponse from sunpy.net.vso import VSOClien...
35.030675
116
0.676357
385231ad17b37d9af3fed5bbf40b97e2ff95ac35
2,146
py
Python
alipay/aop/api/domain/TicketInfoResult.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/TicketInfoResult.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/TicketInfoResult.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 TicketInfoResult(object): def __init__(self): self._address = None self._ticket_no = None self._time = None self._type = None @property def address(self):...
24.953488
69
0.540541
385248a9ee4891003596fb82f586cb44fe335bc0
46,862
py
Python
au-zone/nnef_converter/common/nnef_node.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
au-zone/nnef_converter/common/nnef_node.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
au-zone/nnef_converter/common/nnef_node.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 The Khronos Group Inc. # Copyright (c) 2018 Au-Zone 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 #...
34.86756
144
0.612778
385252d768ed5969f4029b5e8ed7e36fe60d5626
1,918
py
Python
pw_env_setup/py/pw_env_setup/virtualenv_setup/__main__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
43
2020-03-20T21:07:13.000Z
2021-11-23T17:34:02.000Z
pw_env_setup/py/pw_env_setup/virtualenv_setup/__main__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
2
2020-03-21T04:58:09.000Z
2021-04-09T10:29:05.000Z
pw_env_setup/py/pw_env_setup/virtualenv_setup/__main__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
12
2020-03-21T01:02:26.000Z
2022-01-04T01:35:14.000Z
# Copyright 2020 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.884615
79
0.62513
38525b06c611b68ae509300f94db973b97d578b0
1,624
py
Python
fileshare/user/urls.py
nijatrajab/fileshare
f364788f318ffe8b731ccb68e9c275bfa73c0292
[ "MIT" ]
1
2021-07-08T06:51:28.000Z
2021-07-08T06:51:28.000Z
fileshare/user/urls.py
nijatrajab/fileshareproject
f364788f318ffe8b731ccb68e9c275bfa73c0292
[ "MIT" ]
null
null
null
fileshare/user/urls.py
nijatrajab/fileshareproject
f364788f318ffe8b731ccb68e9c275bfa73c0292
[ "MIT" ]
null
null
null
from django.urls import path from django.contrib.auth import views as auth_views from . import views app_name = 'user' urlpatterns = [ # authenticate urls path('', auth_views.LogoutView.as_view(next_page='login'), name='logout'), path('login/', views.LgnView.as_view(), name='login'), path('signup/', ...
42.736842
109
0.716749
38526d2aee18a1113871bcea84a0d25914347702
194
py
Python
example/python/pipelines/pipeline_tockenclassification.py
SidaZh/EET
6414faa734abfdb666556304ca3df5b7f5e54c38
[ "Apache-2.0" ]
null
null
null
example/python/pipelines/pipeline_tockenclassification.py
SidaZh/EET
6414faa734abfdb666556304ca3df5b7f5e54c38
[ "Apache-2.0" ]
null
null
null
example/python/pipelines/pipeline_tockenclassification.py
SidaZh/EET
6414faa734abfdb666556304ca3df5b7f5e54c38
[ "Apache-2.0" ]
null
null
null
import torch from eet import pipeline classifier = pipeline("token-classification",data_type = torch.float16) out = classifier(["My name is Sarah and I live in London and I like"]) print(out)
24.25
71
0.762887
3852773a0080b1bb3f4cfab203ae63ca18826224
8,531
py
Python
a_in_scan_iepe.py
Novellogiampiero/RaspSources
57a98b3957426113fa8d1b0b0a75449948af3ca4
[ "Apache-2.0" ]
null
null
null
a_in_scan_iepe.py
Novellogiampiero/RaspSources
57a98b3957426113fa8d1b0b0a75449948af3ca4
[ "Apache-2.0" ]
null
null
null
a_in_scan_iepe.py
Novellogiampiero/RaspSources
57a98b3957426113fa8d1b0b0a75449948af3ca4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Wrapper call demonstrated: ai_device.a_in_scan() with IEPE mode enabled Purpose: Performs a continuous scan of the range of A/D input channels Demonstration: Displays the analog input data fo...
40.62381
79
0.60415
3852ac00ec9342ed302717daedf800aa22d7bad5
8,233
py
Python
readalongs/views.py
ReadAlongs/Studio
3fd89f49466bbed99b6cabaf071b0605e63d1fdc
[ "MIT" ]
16
2020-05-27T18:09:04.000Z
2022-03-16T17:40:57.000Z
readalongs/views.py
ReadAlongs/Studio
3fd89f49466bbed99b6cabaf071b0605e63d1fdc
[ "MIT" ]
77
2020-03-31T16:07:15.000Z
2022-03-17T14:22:51.000Z
readalongs/views.py
ReadAlongs/Studio
3fd89f49466bbed99b6cabaf071b0605e63d1fdc
[ "MIT" ]
7
2021-05-04T17:38:57.000Z
2022-03-25T09:07:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ####################################################################### # # views.py # # Views for ReadAlong Studio web application # Interactions are described as websocket events and responses # Corresponding JavaScript is found in readalongs/static/js/main.js # #...
34.304167
101
0.584477
3852e4b185b7e17ca80bc21c6a3ccc06e501884b
3,379
py
Python
menu_streamlit.py
rcsmit/newagebullshitgenerator
04a0cb8f464b37aa786564f43c38efd95b6ef9de
[ "MIT" ]
null
null
null
menu_streamlit.py
rcsmit/newagebullshitgenerator
04a0cb8f464b37aa786564f43c38efd95b6ef9de
[ "MIT" ]
null
null
null
menu_streamlit.py
rcsmit/newagebullshitgenerator
04a0cb8f464b37aa786564f43c38efd95b6ef9de
[ "MIT" ]
null
null
null
import streamlit as st import importlib import traceback import os import platform st.set_page_config(page_title="Streamlit scripts of René Smit") def dynamic_import(module): """Import a module stored in a variable Args: module (string): The module to import Returns: the module you wan...
36.728261
161
0.570583
3852f9b1ed39844170e362ace573a21c29cc8a9f
1,475
py
Python
src/meme.py
thepembeweb/meme-generator
06500a26c636f00a68206967918bad65ba12264f
[ "MIT" ]
null
null
null
src/meme.py
thepembeweb/meme-generator
06500a26c636f00a68206967918bad65ba12264f
[ "MIT" ]
null
null
null
src/meme.py
thepembeweb/meme-generator
06500a26c636f00a68206967918bad65ba12264f
[ "MIT" ]
null
null
null
import os import random from argparse import ArgumentParser from MemeEngine import MemeEngine from QuoteEngine import Ingestor, QuoteModel def generate_meme(path=None, body=None, author=None): """ Generate a meme given an path and a quote """ img = None quote = None if path is None: images =...
28.365385
63
0.609492
3852faa016e53dbd37bbf1df122262bf50ccd417
5,729
py
Python
experiments/state_distance/baselines/abhishek_mb.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/baselines/abhishek_mb.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/baselines/abhishek_mb.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import random import numpy as np import tensorflow as tf import rlkit.misc.hyperparameter as hyp from rlkit.envs.multitask.ant_env import GoalXYPosAnt from rlkit.envs.multitask.pusher2d import CylinderXYPusher2DEnv from rlkit.envs.multitask.her_half_cheetah import HalfCheetah, \ half_cheetah_cost_fn from rlkit.en...
33.899408
75
0.640426
385300821bd4d8e744a2b115834a43fa9911fe44
5,260
py
Python
ginga/canvas/CanvasMixin.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/canvas/CanvasMixin.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/canvas/CanvasMixin.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
# # CanvasMixin.py -- enable canvas like capabilities. # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from ginga.canvas.CompoundMixin import CompoundMixin from ginga.u...
31.497006
78
0.619772
385308c8f90129b9db71d7605adabed2bee22086
5,457
py
Python
tmm/_h5utils.py
Toktom/tmm
902c2d781253e74197049dc617e131722b7b88fc
[ "MIT" ]
null
null
null
tmm/_h5utils.py
Toktom/tmm
902c2d781253e74197049dc617e131722b7b88fc
[ "MIT" ]
null
null
null
tmm/_h5utils.py
Toktom/tmm
902c2d781253e74197049dc617e131722b7b88fc
[ "MIT" ]
null
null
null
import numpy as np import time import h5py def save_dict_to_hdf5(dic, key, h5file): """ Saves dictionary into HDF5 file. Parameters ---------- dic : dictionary Python dictionary that will be saved into the h5 file. key : string Dictionary key. h5file : h5py.File Ou...
26.619512
108
0.581638
38531464223debf82886de302b44db7de25ac7f0
3,711
py
Python
chainer/__init__.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
chainer/__init__.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
chainer/__init__.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
import collections import os import pkg_resources import sys import threading from chainer import cuda # NOQA from chainer import dataset # NOQA from chainer import datasets # NOQA from chainer import flag from chainer import function from chainer import function_set from chainer import functions # NOQA from chain...
25.244898
78
0.752088
38531a0afba9606496449721de6dc38db71e397b
210
py
Python
deeppixel/cam/__init__.py
smaranjitghose/DeepStyle
b798a04079b10cb5de037afd402b0cdaa8767aa0
[ "MIT" ]
33
2020-03-03T15:29:41.000Z
2021-04-05T18:09:42.000Z
deeppixel/cam/__init__.py
smaranjitghose/DeepStyle
b798a04079b10cb5de037afd402b0cdaa8767aa0
[ "MIT" ]
67
2020-03-03T16:08:31.000Z
2021-03-25T04:29:24.000Z
deeppixel/cam/__init__.py
smaranjitghose/DeepStyle
b798a04079b10cb5de037afd402b0cdaa8767aa0
[ "MIT" ]
63
2020-03-03T21:23:54.000Z
2021-06-10T13:00:17.000Z
from .gradcam import GradCAM from .gradcampp import GradCAMPP from .scorecam import ScoreCAM from .smoothgrad import SmoothGrad __all__ = [ "GradCAM", "GradCAMPP", "ScoreCAM", "SmoothGrad", ]
16.153846
34
0.709524
385338d8dfa3552fb7b36781ac18eed0e4055a34
469
py
Python
util/get_sds_path.py
m4ln/image_processing_scripts
3274e01869be9c7a845a4bb76aa02b3cf0023b50
[ "BSD-3-Clause" ]
null
null
null
util/get_sds_path.py
m4ln/image_processing_scripts
3274e01869be9c7a845a4bb76aa02b3cf0023b50
[ "BSD-3-Clause" ]
null
null
null
util/get_sds_path.py
m4ln/image_processing_scripts
3274e01869be9c7a845a4bb76aa02b3cf0023b50
[ "BSD-3-Clause" ]
null
null
null
from sys import platform def get_sds_path(): """ get the sds path based on the operating system Returns: sds path if os is win or linux, otherwise error """ if platform == "linux": sds_path = '/sds_hd/sd18a006/' elif platform == "win32": sds_path = "//ls...
22.333333
62
0.575693
38535be5b5332d4197ef4beacb79068b70db6628
2,271
py
Python
fab_deploy/contrib/conf.py
samdolan/django-fab-deploy
642e5cc319f811d4ee647d65388c85988ac887e2
[ "Unlicense" ]
1
2019-08-04T20:54:43.000Z
2019-08-04T20:54:43.000Z
fab_deploy/contrib/conf.py
samdolan/django-fab-deploy
642e5cc319f811d4ee647d65388c85988ac887e2
[ "Unlicense" ]
null
null
null
fab_deploy/contrib/conf.py
samdolan/django-fab-deploy
642e5cc319f811d4ee647d65388c85988ac887e2
[ "Unlicense" ]
null
null
null
from fabric.api import env import os import yaml try: # python 2.7+ from collections import OrderedDict except ImportError: from ordereddict import OrderedDict # Originally from https://gist.github.com/844388 class OrderedDictYAMLLoader(yaml.Loader): """ A YAML loader that loads mappings into orde...
31.985915
94
0.645971
3853b362826e6755f0713e77e1c0b2274d345337
3,700
py
Python
fri/model/regression.py
timothycrosley/fri
94c6b74bfb4ceee405df41834e2e3f8b0a617b38
[ "MIT" ]
null
null
null
fri/model/regression.py
timothycrosley/fri
94c6b74bfb4ceee405df41834e2e3f8b0a617b38
[ "MIT" ]
null
null
null
fri/model/regression.py
timothycrosley/fri
94c6b74bfb4ceee405df41834e2e3f8b0a617b38
[ "MIT" ]
null
null
null
import cvxpy as cvx import numpy as np from sklearn.utils import check_X_y from .base_cvxproblem import Relevance_CVXProblem from .base_initmodel import InitModel from .base_type import ProblemType class Regression(ProblemType): @classmethod def parameters(cls): return ["C", "epsilon"] @property...
29.83871
84
0.624595
3853c7600fab2cfc09f4cd63015c49299216b348
10,670
py
Python
k_util/logger.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
1
2018-09-23T06:13:44.000Z
2018-09-23T06:13:44.000Z
k_util/logger.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
null
null
null
k_util/logger.py
krinj/k-util
a888fda5b82a81bcbdff21adf2f172e6bb3ea72d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Use this tool to log stuff with pre-formatted margins, indents, line breaks, fields, and colors. Also has the option to log output to the terminal and to a file. """ import os import time import sys from typing import List from k_util import pather __author__ = "Jakrin Juangbhanich" __ema...
34.419355
124
0.527648
3853de398abffab1c54dda5b6db18aff03111c0c
5,330
py
Python
viewer.py
alexwlchan/aws-architecture-icon-browser
f778fd3ea2f513f0b4064eb4109767efc236856e
[ "MIT" ]
6
2021-08-21T23:11:25.000Z
2021-09-24T18:11:44.000Z
viewer.py
alexwlchan/aws-architecture-icon-browser
f778fd3ea2f513f0b4064eb4109767efc236856e
[ "MIT" ]
null
null
null
viewer.py
alexwlchan/aws-architecture-icon-browser
f778fd3ea2f513f0b4064eb4109767efc236856e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import collections import colorsys import os import re import urllib.request import zipfile from flask import abort, Flask, render_template, send_file # From https://aws.amazon.com/architecture/icons/ ASSET_PACKAGE_URL = "https://d1.awsstatic.com/webteam/architecture-icons/q3-2021/Asset-Packag...
27.055838
149
0.623265
3853edf31af80a2cb7171c8aa554ea431c24c749
903
py
Python
tests/test_base_crawler.py
joaoheron/base_crawler
8e9aef53f3a28322571edda8c4c0fbd78d3de699
[ "MIT" ]
3
2020-07-16T14:46:23.000Z
2020-07-21T14:11:26.000Z
tests/test_base_crawler.py
joaoheron/base_crawler
8e9aef53f3a28322571edda8c4c0fbd78d3de699
[ "MIT" ]
null
null
null
tests/test_base_crawler.py
joaoheron/base_crawler
8e9aef53f3a28322571edda8c4c0fbd78d3de699
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tests for `base_crawler` package.""" import pytest from click.testing import CliRunner from base_crawler import cli # from base_crawler import base_crawler @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ ...
26.558824
77
0.710963
3853f35e89ec601eaf5f256aac05d58d42268062
7,982
py
Python
demo/demo_generator/run.py
NIRVANALAN/self-mono-sf
80ac323099b3ca32802c5d3f91db3e6a5cafca25
[ "Apache-2.0" ]
null
null
null
demo/demo_generator/run.py
NIRVANALAN/self-mono-sf
80ac323099b3ca32802c5d3f91db3e6a5cafca25
[ "Apache-2.0" ]
null
null
null
demo/demo_generator/run.py
NIRVANALAN/self-mono-sf
80ac323099b3ca32802c5d3f91db3e6a5cafca25
[ "Apache-2.0" ]
null
null
null
import os import open3d as o3d import numpy as np import torch import matplotlib.pyplot as plt import skimage.io as io from skimage.color import rgb2gray import math import torch.functional as tf from .utils_misc import ( flow_to_png_middlebury, read_png_flow, read_png_depth, numpy2torch, pixel2pts...
28.304965
88
0.584816
3853f6744d3d87a66f22bfcb68c49f9196032ddf
24,103
py
Python
cotk/metric/bleu.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
117
2019-03-14T15:06:42.000Z
2022-02-28T07:06:34.000Z
cotk/metric/bleu.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
149
2019-03-12T09:43:21.000Z
2020-08-24T02:56:34.000Z
cotk/metric/bleu.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
51
2019-03-14T15:12:48.000Z
2021-08-09T03:37:48.000Z
r""" Containing some classes and functions about bleu evaluating results of models. """ from typing import Union, List, Any, Optional, Iterable, Dict import random import os import multiprocessing from multiprocessing import Pool import numpy as np import tqdm from nltk.translate.bleu_score import corpus_bleu, sentence...
35.341642
133
0.691242
38540db5349036762eeafa13a6bb503be500486a
1,947
py
Python
integration_tests/test_checkov_json_report.py
robeden/checkov
5a354bf3fb7a73da1f057b03de884b4347f5dbb6
[ "Apache-2.0" ]
1
2021-03-07T07:23:46.000Z
2021-03-07T07:23:46.000Z
integration_tests/test_checkov_json_report.py
caxaria/checkov
37750c28287b81fe51d79e209e9e60c7445bbba6
[ "Apache-2.0" ]
5
2021-02-16T13:55:58.000Z
2022-01-31T23:03:14.000Z
integration_tests/test_checkov_json_report.py
robeden/checkov
5a354bf3fb7a73da1f057b03de884b4347f5dbb6
[ "Apache-2.0" ]
1
2021-03-07T07:23:39.000Z
2021-03-07T07:23:39.000Z
import json import os import unittest current_dir = os.path.dirname(os.path.realpath(__file__)) class TestCheckovJsonReport(unittest.TestCase): def test_terragoat_report(self): report_path = current_dir + "/../checkov_report_terragoat.json" self.validate_report(report_path) def test_cfngoat...
38.94
99
0.682075
3854a88347e3139423460b81d0cbde7aa589371d
80
py
Python
tests/test_cli.py
davegallant/ickinesis
eca715a8f5c3364dd9249adb59a9ec8bddbb7a5c
[ "Apache-2.0" ]
1
2019-10-03T13:43:14.000Z
2019-10-03T13:43:14.000Z
tests/test_cli.py
davegallant/kinesis
eca715a8f5c3364dd9249adb59a9ec8bddbb7a5c
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
davegallant/kinesis
eca715a8f5c3364dd9249adb59a9ec8bddbb7a5c
[ "Apache-2.0" ]
null
null
null
import argparse def test_args(): args = argparse.Namespace(stream="test")
13.333333
44
0.7125
3854ab240182632c808b69b750b5b44118636c31
441
py
Python
maquinaria/clientes/views/clientes.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
maquinaria/clientes/views/clientes.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
maquinaria/clientes/views/clientes.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
"""Vista de maquinas""" #Django REST Framework from rest_framework import viewsets from rest_framework.permissions import IsAuthenticated #Serializers from maquinaria.clientes.serializers import ClienteModelSerializer #Models from maquinaria.clientes.models import Cliente class ClienteViewSet(viewsets.ModelViewSet...
25.941176
66
0.839002
3854b0e31f1acca63ff5123077808355e002784a
247
py
Python
api/urls.py
BtLutz/credit-cards
740fbd4923b4b3f4352602adacf379461fefbc38
[ "MIT" ]
null
null
null
api/urls.py
BtLutz/credit-cards
740fbd4923b4b3f4352602adacf379461fefbc38
[ "MIT" ]
6
2020-06-05T22:33:57.000Z
2022-02-10T08:49:20.000Z
api/urls.py
BtLutz/credit-cards
740fbd4923b4b3f4352602adacf379461fefbc38
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('validate', views.ValidateView.as_view(), name='validate'), path('generate', views.GenerateView.as_view(), name='generate') ]
24.7
68
0.684211
3854bd0b63971df74660382694db8a9df1657bd4
232
py
Python
matrix_extrapolation/bch_series_expansion/types.py
ochsnerd/Hamiltonian_Extrapolation
a91e651a9515a22d6e279d567340182658bcd2f6
[ "Apache-2.0" ]
null
null
null
matrix_extrapolation/bch_series_expansion/types.py
ochsnerd/Hamiltonian_Extrapolation
a91e651a9515a22d6e279d567340182658bcd2f6
[ "Apache-2.0" ]
null
null
null
matrix_extrapolation/bch_series_expansion/types.py
ochsnerd/Hamiltonian_Extrapolation
a91e651a9515a22d6e279d567340182658bcd2f6
[ "Apache-2.0" ]
null
null
null
from typing import Tuple from sympy import Rational BCH_Symbol = int BCH_Word = Tuple[BCH_Symbol, ...] BCH_Subterm = Tuple[Rational, BCH_Word] PS_Symbol = int PS_Word = Tuple[PS_Symbol, ...] PS_Subterm = Tuple[Rational, PS_Word]
19.333333
39
0.75431
3854bea19ccffd0492ff67317552d0c16762092b
3,538
py
Python
test/api/mail_merge/test_execute_mail_merge.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
test/api/mail_merge/test_execute_mail_merge.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
test/api/mail_merge/test_execute_mail_merge.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="test_execute_mail_merge.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this soft...
51.275362
228
0.719333
3854eefd9266db8a540d25d4d465396b58dfe1ce
1,720
py
Python
asyncpraw/models/reddit/mixins/editable.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
asyncpraw/models/reddit/mixins/editable.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
asyncpraw/models/reddit/mixins/editable.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
"""Provide the EditableMixin class.""" from ....const import API_PATH class EditableMixin: """Interface for classes that can be edited and deleted.""" async def delete(self): """Delete the object. Example usage: .. code-block:: python comment = await reddit.comment("dkk...
28.196721
75
0.568605
3855072ed3f32da9d05d4c87a3f53676bd611d09
3,312
py
Python
heartFEM/examples/optimiseHeart.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
3
2021-04-13T07:05:20.000Z
2021-10-02T13:41:09.000Z
heartFEM/examples/optimiseHeart.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
null
null
null
heartFEM/examples/optimiseHeart.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
2
2021-09-06T13:13:41.000Z
2022-03-11T18:59:02.000Z
case='/media/yaplab/DATA/fetalheartFEM/preSurgery/Case_088_all' import logging logging.basicConfig(level=logging.INFO,filename=case+'/optimiseHeart.txt') import heartFEM import numpy as np import medImgProc.processFunc as pf import os from scipy import optimize age=np.loadtxt(case+'/age.txt') hf=heartFEM.LVclosed(de...
41.924051
220
0.7968
38550f4bfcfda4d96c43ef57bd56f6b55bfdd14e
352
py
Python
telraam_data/tests/utils.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
telraam_data/tests/utils.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
telraam_data/tests/utils.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
def get_data_keys(): return [ 'instance_id', 'segment_id', 'date', 'interval', 'uptime', 'heavy', 'car', 'bike', 'pedestrian', 'heavy_lft', 'heavy_rgt', 'car_lft', 'car_rgt', 'bike_lft', 'bike_rgt', 'pedestrian_lft', 'pedestrian_rgt', 'direction', 'car_speed_hist_0to70plus', 'car_speed_hist_...
58.666667
117
0.647727
38551553df3b312c0f642b1e6fdb44bee1389ec5
3,570
py
Python
src/routeControllers/elementCode.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
src/routeControllers/elementCode.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
21
2021-01-08T18:03:32.000Z
2021-02-02T16:17:34.000Z
src/routeControllers/elementCode.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, request, redirect, url_for, flash, session from wtforms import Form, StringField, validators, DateTimeField, BooleanField, IntegerField from wtforms.fields import html5 as h5fields from wtforms.widgets import html5 as h5widgets from wtforms.widgets import TextArea from src....
48.243243
116
0.698319
38552a7bdb4393d3828e2ce2dac7337af57c348b
3,553
py
Python
api.py
mheerens/product-api
a27ea68387decfac1ccfcb88c2673c6705a0d7ac
[ "MIT" ]
null
null
null
api.py
mheerens/product-api
a27ea68387decfac1ccfcb88c2673c6705a0d7ac
[ "MIT" ]
null
null
null
api.py
mheerens/product-api
a27ea68387decfac1ccfcb88c2673c6705a0d7ac
[ "MIT" ]
null
null
null
""" This file contains the main API server using flask. # start via: FLASK_APP=api.py flask run """ from flask import Flask, request, render_template#, send_from_directory from fetch import main as fetch_main from predict_ARIMA import main as predict_main #TEMPORARILY DISABLED DUE TO MEMORY RESTRICTIONS ON AWS from con...
33.518868
102
0.617225
38552b2b2cf88b517ca2ebf034c0b9d51b6126a3
17,634
py
Python
Core/Model/EdgeModel/JSON/preferences.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
Core/Model/EdgeModel/JSON/preferences.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
28
2021-06-20T17:39:00.000Z
2021-09-04T15:03:41.000Z
Core/Model/EdgeModel/JSON/preferences.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
import json import random from Model.util import log_message from Model.EdgeModel.JSON.base import ( BaseJSONHandler, BaseJSONClass, BaseAttribute, Caretaker, OTHER, DT_SEC, DT_SIMPLE_STRING, DT_WEBKIT, DT_WEBKIT_SEC, DT_SEC_DOT_MICRO, ) ACCTRKUPDATE = "Account Tracker Update" ...
35.91446
88
0.562266
38553320971e703f249172c9d854e7770c641762
816
py
Python
08_multi_processing/mpExample.py
837477/Python_Parallel
7590ff38e6a2b1dbec139e9571b6564b5bbf276f
[ "MIT" ]
67
2017-08-27T18:00:46.000Z
2022-03-01T11:54:16.000Z
08_multi_processing/mpExample.py
837477/python_parallel_programming_study
2294f4a3de9e9f5b16b6772a3a8d96c37eb63c0f
[ "MIT" ]
8
2018-10-18T17:15:45.000Z
2021-12-24T01:58:05.000Z
08_multi_processing/mpExample.py
837477/python_parallel_programming_study
2294f4a3de9e9f5b16b6772a3a8d96c37eb63c0f
[ "MIT" ]
49
2017-08-18T12:53:30.000Z
2022-02-06T09:40:50.000Z
from multiprocessing import Pool import timeit import math PRIMES = [ 112272535095293, 112582705942171, 112272535095293, 115280095190773, 115797848077099, 112272535095293, 115280095190773, 115797848077099, 112272535095293, 115280095190773, 115797848077099, 11227253509529...
20.923077
89
0.656863
38553bd0574119ce21d518688f2dbf78e76a0143
1,497
py
Python
lambda/prediction-lambda/handler/app.py
CheranMahalingam/Forex_Sentiment_Analysis
3c5d91d21bd908e6bc0585c50583fa9f0bd4939c
[ "MIT" ]
6
2021-05-16T22:04:53.000Z
2022-02-02T16:45:01.000Z
lambda/prediction-lambda/handler/app.py
bytjn1416124/Forex_Technical_Analysis_Platform
3c5d91d21bd908e6bc0585c50583fa9f0bd4939c
[ "MIT" ]
null
null
null
lambda/prediction-lambda/handler/app.py
bytjn1416124/Forex_Technical_Analysis_Platform
3c5d91d21bd908e6bc0585c50583fa9f0bd4939c
[ "MIT" ]
6
2021-04-27T04:30:42.000Z
2022-02-06T08:46:25.000Z
"""Entrypoint for lambda function""" from technical_indicators import generate_technical_indicators from twitter_sentiment import generate_twitter_sentiment from store import store_indicator_data from analysis_dataframe import get_technical_analysis_data from preprocessing import preprocess from predict import generat...
45.363636
125
0.742151
385552fe147391e6a29680051ff1702516aefc65
5,421
py
Python
src/python/pants/base/payload_field.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/payload_field.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/payload_field.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from abc import abstractmethod from builtins import object from hashlib import sha1 from...
26.0625
99
0.732153
385568184cf95152e9ad91a3bde954fe5df4bbfe
493
py
Python
mail_recovery/__manifest__.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
1
2020-12-07T19:52:33.000Z
2020-12-07T19:52:33.000Z
mail_recovery/__manifest__.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
null
null
null
mail_recovery/__manifest__.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
null
null
null
{ "name": "Mail Recovery", "summary": """Backup and recover unsent message""", "author": "IT-Projects LLC, Ildar Nasyrov", "license": "Other OSI approved licence", # MIT "price": 95.00, "currency": "EUR", "support": "apps@itpp.dev", "website": "https://twitter.com/nasyrov_ildar", "c...
29
55
0.574037
38557fcf7501cdafab71dce206c46a282fd16e1c
12,286
py
Python
client.py
SamJakob/PythonTCPSocketsExample
c0cf9f150bbcc6c285fc7ff16d4e1c171fdaf974
[ "MIT" ]
null
null
null
client.py
SamJakob/PythonTCPSocketsExample
c0cf9f150bbcc6c285fc7ff16d4e1c171fdaf974
[ "MIT" ]
null
null
null
client.py
SamJakob/PythonTCPSocketsExample
c0cf9f150bbcc6c285fc7ff16d4e1c171fdaf974
[ "MIT" ]
null
null
null
import sys from multiprocessing import Process from typing import Optional from socket import socket, MSG_PEEK, AF_INET, SOCK_STREAM # Import Queue from our utilities package. # This should probably only be necessary on macOS, but is probably worth keeping for # cross-compatability. from utils import Queue # Import ...
44.839416
107
0.601253
3855abb62460153dc2890d5e8b808266ee392614
2,599
py
Python
statistic_parser.py
mfin23/ENM-Protein-Predictor
9133db15a7a682c8038c279f817faa66336d68c8
[ "MIT" ]
12
2017-06-26T21:56:21.000Z
2020-12-08T02:40:27.000Z
statistic_parser.py
mfin23/ENM-Protein-Predictor
9133db15a7a682c8038c279f817faa66336d68c8
[ "MIT" ]
2
2019-08-14T15:14:36.000Z
2020-12-14T02:48:32.000Z
statistic_parser.py
mfin23/ENM-Protein-Predictor
9133db15a7a682c8038c279f817faa66336d68c8
[ "MIT" ]
3
2018-11-23T15:29:25.000Z
2020-03-20T18:08:31.000Z
"""Developed by: Matthew Findlay 2017 This module parses the JSON output from the estimator script and prints it in readable format to the command line. This can be run by passing a json file as a command line argument. """ import data_utils import numpy as np import json import operator import sys # Open json file ...
33.320513
129
0.672566
3855d2a4198610b44a2f44cf52b030ad9a963867
1,714
py
Python
src/indriya_robot_interface/behaviors/aleventtracker_start.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
1
2017-07-12T15:30:58.000Z
2017-07-12T15:30:58.000Z
src/indriya_robot_interface/behaviors/aleventtracker_start.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
null
null
null
src/indriya_robot_interface/behaviors/aleventtracker_start.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
1
2016-03-09T12:34:19.000Z
2016-03-09T12:34:19.000Z
# -*- encoding: UTF-8 -*- """ This example shows how to use ALTracker to track an object with trackEvent api. """ import time import argparse from naoqi import ALProxy def main(IP, PORT): print "Connecting to", IP, "with port", PORT motion = ALProxy("ALMotion", IP, PORT) posture = ALProxy("ALRobotPostur...
24.140845
79
0.635356
385601e6e806908f20581924969f79b05a1ed196
1,627
py
Python
E 2015-2016/March 17/RcalculatorScript.py
bnajafi/Python4ScientificComputing_Fundamentals
7c943404654d9c44920ea9a7fdee28bc99ad8d05
[ "MIT" ]
65
2017-01-19T08:03:38.000Z
2021-04-02T17:41:43.000Z
E 2015-2016/March 17/RcalculatorScript.py
bnajafi/Python4ScientificComputing_Fundamentals
7c943404654d9c44920ea9a7fdee28bc99ad8d05
[ "MIT" ]
null
null
null
E 2015-2016/March 17/RcalculatorScript.py
bnajafi/Python4ScientificComputing_Fundamentals
7c943404654d9c44920ea9a7fdee28bc99ad8d05
[ "MIT" ]
110
2017-01-19T08:04:14.000Z
2020-07-23T13:44:52.000Z
def Rcalculator(): A_string=raw_input("Please enter the area of the wall (in m2): ") A=float(A_string) NumberOfResistances_string=raw_input("Please enter number of resistances: ") NumberOfResistances=int(NumberOfResistances_string) ResistanceNumber=1 R_tot=0 for ResistanceNumber in range(Num...
56.103448
105
0.623848
38560d8fe95a1f301f6f26cdb2a6bdc4bee17de1
2,088
py
Python
src/main/python/programmingtheiot/cda/emulated/HvacEmulatorTask.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/emulated/HvacEmulatorTask.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/emulated/HvacEmulatorTask.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
##### # # This class is part of the Programming the Internet of Things project. # # It is provided as a simple shell to guide the student and assist with # implementation for the Programming the Internet of Things exercises, # and designed to be modified by the student as needed. # import logging from time import s...
33.142857
109
0.758142
38562aa01356d6471008b142edabe66ec24cc3a8
614
py
Python
pymath/matrix/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
pymath/matrix/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
pymath/matrix/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
class Matrix(object): def __init__(self, matrix): self.matrix = matrix self.rows = [[int(n) for n in row.split()] for row in matrix.split('\n')] self.columns = [list(tup) for tup in zip(*self.rows)] def alternative(self): rows = [map(int, item.split()) for item in self.matrix.sp...
38.375
83
0.550489
385637300c99dd5093766c80a63a831598357527
14,045
py
Python
icebath/core/build_xrds.py
lsetiawan/icebath
018e8c5a33e0b081258d008c24a69dab6fccc0af
[ "BSD-3-Clause" ]
null
null
null
icebath/core/build_xrds.py
lsetiawan/icebath
018e8c5a33e0b081258d008c24a69dab6fccc0af
[ "BSD-3-Clause" ]
null
null
null
icebath/core/build_xrds.py
lsetiawan/icebath
018e8c5a33e0b081258d008c24a69dab6fccc0af
[ "BSD-3-Clause" ]
null
null
null
import datetime as dt import numpy as np import os import pandas as pd from rasterio.vrt import WarpedVRT import rasterio.transform from rasterio.errors import RasterioIOError import rioxarray import xarray as xr import warnings from icebath.core import fjord_props from icebath.core import bergxr import faulthandler ...
42.177177
166
0.602492
38564740d501cd39627b604b8006d7f61ec21f8c
396
py
Python
src/Python3/Q108589/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
src/Python3/Q108589/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
src/Python3/Q108589/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random def main(): item = {'peach': '4', 'melon': '4', 'Cherry': '1', 'orange': '3', 'Grape': '4', 'persimmon': '3', 'strawberry': '3', 'watermelon': '7', 'pear': '4', 'grapefruit': '3', 'banana': '2', 'Apple': '5', 'pineapple': '6'} fruit, val = random.choice(list(i...
28.285714
120
0.515152
385653fd7c4295b261aa4b423827d8e48c5ce82c
231
py
Python
problems/1823_find-the-winner-of-the-circular-game.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/1823_find-the-winner-of-the-circular-game.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/1823_find-the-winner-of-the-circular-game.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
# n = n # time = O(n) # space = O(1) # done time = 20m class Solution: def findTheWinner(self, n: int, k: int) -> int: res = 0 for i in range(1, n + 1): res = (res + k) % i return res + 1
16.5
51
0.458874
38565d59f4ca438a0f77d1a671995f9494fb09ff
1,310
py
Python
models/Alexnet/Alexnet_Ter.py
Enderdead/BinaryConnect_PyTorch
990e970b1fbd299ff88200db21a9cc3fe44706d3
[ "MIT" ]
75
2019-03-19T07:36:56.000Z
2021-12-23T02:34:59.000Z
models/Alexnet/Alexnet_Ter.py
Enderdead/BinaryConnect_PyTorch
990e970b1fbd299ff88200db21a9cc3fe44706d3
[ "MIT" ]
10
2019-03-19T21:16:56.000Z
2019-04-16T15:05:37.000Z
models/Alexnet/Alexnet_Ter.py
Enderdead/BinaryConnect_PyTorch
990e970b1fbd299ff88200db21a9cc3fe44706d3
[ "MIT" ]
9
2019-08-12T10:33:55.000Z
2021-07-23T02:10:06.000Z
import torch from torch import nn from layers.binary_layers import * from functions.terner_connect import * class AlexNetBin(nn.Module): def __init__(self, num_classes=10): super(AlexNetBin, self).__init__() self.features = nn.Sequential( Conv2dBin(3, 64, kernel_size=3, stride=2, paddin...
32.75
65
0.549618
38566406c49446ec05823eb35f4f1101dfa6cdec
1,160
py
Python
snit/cli.py
normanlorrain/snit
d84420493e40533744db082472f1c08f9fb96edb
[ "MIT" ]
null
null
null
snit/cli.py
normanlorrain/snit
d84420493e40533744db082472f1c08f9fb96edb
[ "MIT" ]
null
null
null
snit/cli.py
normanlorrain/snit
d84420493e40533744db082472f1c08f9fb96edb
[ "MIT" ]
null
null
null
from pathlib import Path import click from . import archive @click.group() # @click.option('--debug/--no-debug', default=False) @click.option( "--archive", "-a", "directory", envvar="SNIT_DIR", metavar="PATH", required=True, help="Specify the directory for the archive. Can b...
25.777778
103
0.618966
38568a10f551bfa5b7753b887cb9e315f00539a3
1,852
py
Python
webdataset/filters.py
OCRoArchive/webdataset
d616fe4eac6715c939d1511e6c9348319dc5e057
[ "BSD-3-Clause" ]
389
2019-08-07T17:09:17.000Z
2021-05-16T14:05:03.000Z
webdataset/filters.py
OCRoArchive/webdataset
d616fe4eac6715c939d1511e6c9348319dc5e057
[ "BSD-3-Clause" ]
87
2021-05-17T01:56:25.000Z
2022-03-29T16:58:50.000Z
webdataset/filters.py
OCRoArchive/webdataset
d616fe4eac6715c939d1511e6c9348319dc5e057
[ "BSD-3-Clause" ]
42
2021-05-20T16:44:22.000Z
2022-03-26T09:15:59.000Z
# # Copyright (c) 2017-2021 NVIDIA CORPORATION. All rights reserved. # This file is part of the WebDataset library. # See the LICENSE file for licensing terms (BSD-style). # """A small curry wrapper for the functions in the `iterators` package.""" from . import iterators import itertools class Curried2(object): ...
27.641791
73
0.673866
38569d0d1e07a55b4d2f3ab13bf883e9aa74f652
2,547
py
Python
pymoo/core/individual.py
tobeneck/t_pymoo
dd469dcbe9ad04df0d8af9890d6d88200f062eb3
[ "Apache-2.0" ]
null
null
null
pymoo/core/individual.py
tobeneck/t_pymoo
dd469dcbe9ad04df0d8af9890d6d88200f062eb3
[ "Apache-2.0" ]
null
null
null
pymoo/core/individual.py
tobeneck/t_pymoo
dd469dcbe9ad04df0d8af9890d6d88200f062eb3
[ "Apache-2.0" ]
null
null
null
import copy class TraceTuple: def __init__(self, traceID, influenceFactor): self.traceID = traceID self.influenceFactor = influenceFactor return class TraceList: def __init__(self, traceList=None): if traceList is None: self.traceList = [] else: ...
23.154545
88
0.530035
3856a162c03d6f1b31b17b7da98fc5fcb284e730
1,406
py
Python
mqtt2influxdb/mqtt_client.py
daniel17903/Mqtt2InfluxDb
e3e882c665e5aceefbbeb6058e8eb110d810a862
[ "MIT" ]
null
null
null
mqtt2influxdb/mqtt_client.py
daniel17903/Mqtt2InfluxDb
e3e882c665e5aceefbbeb6058e8eb110d810a862
[ "MIT" ]
null
null
null
mqtt2influxdb/mqtt_client.py
daniel17903/Mqtt2InfluxDb
e3e882c665e5aceefbbeb6058e8eb110d810a862
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqtt import json import logging class MqttClient: def __init__(self, config): self.config = config self.client = mqtt.Client() self.client.on_connect = self._on_connect self.client.on_message = self._on_message self.subscribed_topics = set() ...
34.292683
111
0.647937
3856bfee542487ecb33f2b69e551c151b403a6a1
6,246
py
Python
drivers/fit_alltransit.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
drivers/fit_alltransit.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
drivers/fit_alltransit.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
""" Fit the TESS + groundbased TOI 1937 data for {"period", "t0", "log_r", "b", "u0", "u1"}, plus instrument means. Believe the error bars, and fix the depth. """ import numpy as np, matplotlib.pyplot as plt, pandas as pd, pymc3 as pm import pickle, os, corner, pytest, socket from collections import OrderedDict from ...
35.488636
81
0.652418
3856e8efff4739b0bb21a16907190ff73eafc8dc
1,426
py
Python
tests/unit/test_gron.py
HoverHell/python-gron
21977c36b5fafde6be351b5488673e97a7cb4aeb
[ "MIT" ]
null
null
null
tests/unit/test_gron.py
HoverHell/python-gron
21977c36b5fafde6be351b5488673e97a7cb4aeb
[ "MIT" ]
null
null
null
tests/unit/test_gron.py
HoverHell/python-gron
21977c36b5fafde6be351b5488673e97a7cb4aeb
[ "MIT" ]
null
null
null
from gron import gron def test_github_data(): with open('./tests/data/github.json', 'r') as fh: IN = fh.read().strip() with open('./tests/data/github.gron', 'r') as fh: OUT = fh.read().strip() out = gron(IN) assert out == OUT # not implemented yet #def test_stream(): # with open('....
25.464286
54
0.539271
3856ebddb014bdb2540c649a32161f1765b63ddb
8,960
py
Python
src/sprint_datapusher/datapusher.py
langrenn-sprint/sprint-datapusher
b6b77f8c2566d0c6b1b4c535c65bdb2e3aa916a2
[ "Apache-2.0" ]
null
null
null
src/sprint_datapusher/datapusher.py
langrenn-sprint/sprint-datapusher
b6b77f8c2566d0c6b1b4c535c65bdb2e3aa916a2
[ "Apache-2.0" ]
4
2021-02-07T16:19:22.000Z
2021-02-22T19:22:59.000Z
src/sprint_datapusher/datapusher.py
langrenn-sprint/sprint-datapusher
b6b77f8c2566d0c6b1b4c535c65bdb2e3aa916a2
[ "Apache-2.0" ]
null
null
null
"""Module for cli application monitoring directory and send json to webserver.""" import logging import os import time from typing import Any import click from dotenv import load_dotenv import pandas as pd import requests from watchdog.events import FileSystemEvent, FileSystemEventHandler from watchdog.observers impor...
35.697211
87
0.626451
38573727ca7b44dc3a27527a813c24a67c706dcb
35,094
py
Python
src/qfit/structure/mmCIF.py
sakibh/qfit-3.0
fcc9d56b21d2d16ffb2796da0d48003649a31909
[ "MIT" ]
null
null
null
src/qfit/structure/mmCIF.py
sakibh/qfit-3.0
fcc9d56b21d2d16ffb2796da0d48003649a31909
[ "MIT" ]
null
null
null
src/qfit/structure/mmCIF.py
sakibh/qfit-3.0
fcc9d56b21d2d16ffb2796da0d48003649a31909
[ "MIT" ]
null
null
null
## Copyright 2002-2010 by PyMMLib Development Group (see AUTHORS file) ## This code is part of the PyMMLib distribution and governed by ## its license. Please see the LICENSE file that should have been ## included as part of this package. """mmCIF file and mmCIF dictionary parser. Files are parsed into a set of data s...
29.61519
83
0.505386
38579bec1f36c3bb675cfb20f5833dca71369f41
2,374
py
Python
Ideas/Tennis Project/Source Code/VideoReader.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
Ideas/Tennis Project/Source Code/VideoReader.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
1
2021-11-11T22:15:36.000Z
2021-11-11T22:15:36.000Z
Ideas/Tennis Project/Source Code/VideoReader.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
# class for reading video mp4 files # hopefully then we won't have to write a million of the same functions # imports for reading videos: import numpy as np import cv2 # note to self: opencv reads images in and stores as BGR, not RGB!!! class VideoReader(object): # opens video files and fills in useful...
33.914286
89
0.575821
3857a14a213f7fc9b207596c862a2bae76b9814a
5,992
py
Python
bin/disco_autoscale.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
bin/disco_autoscale.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
4
2016-03-22T17:04:04.000Z
2016-03-23T18:03:45.000Z
bin/disco_autoscale.py
Angakkuit/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Command line tool for working with autoscaling groups and launch configurations. """ from __future__ import print_function import argparse import sys from disco_aws_automation import DiscoAutoscale, read_config from disco_aws_automation.disco_aws_util import run_gracefully from disco_aws_aut...
46.8125
108
0.704272
3857ae646f3f1e897079c6e3e4ecd022b7b0159f
5,909
py
Python
library/ceph_mgr_module.py
alvistack/ansible-role-ceph-mgr
f60f9086cd98b69a75a08aa3de13188b05a9b82f
[ "Apache-2.0" ]
null
null
null
library/ceph_mgr_module.py
alvistack/ansible-role-ceph-mgr
f60f9086cd98b69a75a08aa3de13188b05a9b82f
[ "Apache-2.0" ]
null
null
null
library/ceph_mgr_module.py
alvistack/ansible-role-ceph-mgr
f60f9086cd98b69a75a08aa3de13188b05a9b82f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
24.827731
144
0.593163
3857b1589cf2ea2586cdac0b2151fa38c817fff9
364
py
Python
imbi/endpoints/ui/automations/__init__.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
1
2021-06-23T18:34:47.000Z
2021-06-23T18:34:47.000Z
imbi/endpoints/ui/automations/__init__.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
null
null
null
imbi/endpoints/ui/automations/__init__.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
2
2022-02-11T22:06:18.000Z
2022-02-21T19:35:06.000Z
""" System Reports """ from tornado import web from . import gitlab, sonarqube URLS = [ web.url(r'^/ui/automations/gitlab/commit', gitlab.InitialCommitRequestHandler), web.url(r'^/ui/automations/gitlab/create', gitlab.CreationRequestHandler), web.url(r'^/ui/automations/sonarqube/create', ...
22.75
78
0.695055
3857e6a63bc15b9eaf0d3e12cdd0f85eb6b3ba20
137
py
Python
client/test/test_token.py
JasonAlt/oauth-ssh
c251a229cde4337202c4c278e94183c9765ea522
[ "Apache-2.0" ]
20
2019-05-03T12:43:57.000Z
2021-10-20T19:47:56.000Z
client/test/test_token.py
JasonAlt/oauth-ssh
c251a229cde4337202c4c278e94183c9765ea522
[ "Apache-2.0" ]
26
2019-04-19T19:47:30.000Z
2022-03-14T14:40:06.000Z
client/test/test_token.py
JasonAlt/oauth-ssh
c251a229cde4337202c4c278e94183c9765ea522
[ "Apache-2.0" ]
15
2019-05-03T12:44:00.000Z
2022-02-25T14:25:13.000Z
from oauth_ssh.token import Token class TestToken(): def test_expires_in(self): assert 'expires_at' in Token(expires_in=10)
22.833333
51
0.729927
385806f19b855b5ddd2598a779c2284839ff0978
4,343
py
Python
jinjamator/daemon/api/endpoints/environments.py
jinjamator/jinjamator-core
928a6db56a20f57d6f7dc66fb46de71de945817e
[ "Apache-2.0" ]
7
2020-05-06T07:48:14.000Z
2021-12-11T15:57:26.000Z
jinjamator/daemon/api/endpoints/environments.py
jinjamator/jinjamator-core
928a6db56a20f57d6f7dc66fb46de71de945817e
[ "Apache-2.0" ]
1
2020-04-11T15:13:07.000Z
2020-04-27T20:01:34.000Z
jinjamator/daemon/api/endpoints/environments.py
jinjamator/jinjamator-core
928a6db56a20f57d6f7dc66fb46de71de945817e
[ "Apache-2.0" ]
1
2020-05-29T08:53:08.000Z
2020-05-29T08:53:08.000Z
# Copyright 2019 Wilhelm Putz # 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, s...
38.096491
90
0.619388
385828c01c090cd0652fe75b2d2d7f41dc983d82
3,967
py
Python
tests/test_converter_internal_url.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
tests/test_converter_internal_url.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
tests/test_converter_internal_url.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
# pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ ████...
32.785124
88
0.607764
38583d95c89ec127cd9f89aa358eb17e8ec669e2
2,471
py
Python
clif/python/postconv.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
966
2017-04-18T04:14:04.000Z
2022-03-03T21:22:44.000Z
clif/python/postconv.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
48
2017-05-02T23:51:29.000Z
2021-12-06T19:10:11.000Z
clif/python/postconv.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
135
2017-04-26T06:15:30.000Z
2022-01-07T02:17:20.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
33.391892
80
0.727641
385840bb2a8b24073d2dca6cdcd629536b7f8259
7,185
py
Python
rllite/DQN/DQN.py
ZJU-RL/zjurl
6aab83aaba7249bc43d112f21787c45b111d8aa4
[ "MIT" ]
3
2019-03-07T13:24:21.000Z
2019-08-08T12:49:51.000Z
rllite/DQN/DQN.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
rllite/DQN/DQN.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
import math, random import gym import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.optim as optim from rllite.common import ReplayBuffer2 from rllite.common import make_atari, wrap_deepmind, wrap_pytorch class DQN(nn.Module): def __init__(self, env_id="CartPole-v0"...
32.219731
113
0.586778
385862f009cef063727195853957b442839e1c7f
913
py
Python
VestDeviceBase.py
Suitceyes-Project/Tactile-Board-Listener
a14e8513afb81a5610a9127d736a650c5a69363b
[ "MIT" ]
null
null
null
VestDeviceBase.py
Suitceyes-Project/Tactile-Board-Listener
a14e8513afb81a5610a9127d736a650c5a69363b
[ "MIT" ]
null
null
null
VestDeviceBase.py
Suitceyes-Project/Tactile-Board-Listener
a14e8513afb81a5610a9127d736a650c5a69363b
[ "MIT" ]
1
2021-06-01T07:27:00.000Z
2021-06-01T07:27:00.000Z
from abc import ABC, abstractmethod class VestDevice(ABC): @abstractmethod def set_pin(self, index, intensity): pass @abstractmethod def set_pins_batched(self, values = dict): pass @abstractmethod def set_frequency(self, frequency): pass @abstractmeth...
22.268293
106
0.593647
385862f4e54c6baf7d38c2040a2a5550b74ac4ed
602
py
Python
collegiate-explorer-admin/cc_admin/apps/detail/urls.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
3
2021-05-24T23:06:40.000Z
2021-11-08T10:32:42.000Z
collegiate-explorer-admin/cc_admin/apps/detail/urls.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
4
2020-10-12T03:00:43.000Z
2020-11-17T01:47:56.000Z
collegiate-explorer-admin/cc_admin/apps/detail/urls.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
2
2021-03-01T15:30:26.000Z
2022-01-13T21:30:20.000Z
__author__ = 'Aaron Yang' __email__ = 'byang971@usc.edu' __date__ = '10/19/2020 6:35 PM' from django.urls import path from . import views urlpatterns = [ path('<str:id>', views.get_basic_info), path('popular_major/<str:id>', views.get_popular_major), path('location/<str:id>', views.get_loc_data), pat...
31.684211
61
0.699336
385867cb3aedaff6027fc65c783b3bb7c6f84bc5
20,994
py
Python
curve_tracer/app.py
slightlynybbled/curve_tracer_gui
1fe9940f6e21f8fdb748f058bee1ae89cc559a28
[ "MIT" ]
4
2016-06-19T12:41:56.000Z
2021-08-04T02:46:55.000Z
curve_tracer/app.py
slightlynybbled/curve_tracer_gui
1fe9940f6e21f8fdb748f058bee1ae89cc559a28
[ "MIT" ]
5
2016-06-14T17:00:54.000Z
2019-05-02T21:35:24.000Z
curve_tracer/app.py
slightlynybbled/curve_tracer_gui
1fe9940f6e21f8fdb748f058bee1ae89cc559a28
[ "MIT" ]
1
2021-08-29T14:02:28.000Z
2021-08-29T14:02:28.000Z
#!/usr/bin/python3 import tkinter as tk from tkinter import filedialog import csv import os import threading import time import datetime import serial import serial.tools.list_ports import serialdispatch from PIL import Image, ImageTk from curve_tracer.shortcut_bar import ShortcutBar from curve_tracer.plot4q import ...
37.157522
167
0.613366
38587fdd6ef6468f6ee99d39c47f6dcbc5f70986
6,855
py
Python
rock4/softtest/api/loadtest/LocustApp.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
5
2018-09-25T05:49:49.000Z
2021-12-30T11:06:09.000Z
rock4/softtest/api/loadtest/LocustApp.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
3
2018-04-01T04:27:21.000Z
2019-01-03T11:02:33.000Z
rock4/softtest/api/loadtest/LocustApp.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
7
2018-09-25T05:49:51.000Z
2021-12-30T11:06:11.000Z
# -*- encoding: utf-8 -*- ''' Current module: pyrunner.ext.loadtest.LocustApp Rough version history: v1.0 Original version to use ******************************************************************** @AUTHOR: Administrator-Bruce Luo(罗科峰) MAIL: lkf20031988@163.com RCS: rock4.softtest.a...
36.462766
132
0.512764
3858bcf03a730721a93378fe943f049f811d90d8
190,241
py
Python
glib/glib-2.46.2/gio/gdbus-2.0/codegen/codegen.py
imx6uldev/depedency_tools
0748392a4e97ded2a770b6fbcab281dd3fda2db7
[ "MIT" ]
null
null
null
glib/glib-2.46.2/gio/gdbus-2.0/codegen/codegen.py
imx6uldev/depedency_tools
0748392a4e97ded2a770b6fbcab281dd3fda2db7
[ "MIT" ]
1
2020-10-13T07:38:31.000Z
2020-10-13T07:38:31.000Z
migrate/glib/gio/gdbus-2.0/codegen/codegen.py
zhongliangkang/twemproxy41
8dc3664145b0fcdd32fa321720235a9db9b3cece
[ "Apache-2.0" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
# -*- Mode: Python -*- # GDBus - GLib D-Bus Library # # Copyright (C) 2008-2011 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at ...
55.740111
390
0.46449
3858cf19940bab3615fec0e0ec855b89d8e38f84
836
py
Python
plugins/aea-cli-ipfs/tests/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
plugins/aea-cli-ipfs/tests/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
plugins/aea-cli-ipfs/tests/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2021 Fetch.AI 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 ...
39.809524
80
0.578947
3858cf5f30bd0f3d70f76ff14d6e50dd5184e8a5
1,660
py
Python
alipay/aop/api/domain/AlipayOverseasTransferQueryModel.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/AlipayOverseasTransferQueryModel.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/AlipayOverseasTransferQueryModel.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 AlipayOverseasTransferQueryModel(object): def __init__(self): self._pass_through_info = None self._transfer_request_id = None @property def pass_through_info(self): ...
29.642857
89
0.656627
3859143886a667e1e764fb82867fddc480e30ec3
1,806
py
Python
nova/api/openstack/compute/schemas/floating_ip_dns.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/api/openstack/compute/schemas/floating_ip_dns.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/api/openstack/compute/schemas/floating_ip_dns.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.000Z
# Copyright 2014 IBM 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 ...
29.606557
78
0.537652
38592a84d04a365d58bb9a40ddb7131266e07a74
805
py
Python
atom/nucleus/python/test/test_cash.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_cash.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_cash.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
19.634146
79
0.673292
3859387301e1244f37c7aaae8b6f2111ec5e8b50
4,122
py
Python
yvain/fuzzy_set.py
Parowicz/Yvain
e6caba0ef0c5bd030250a4ab67381aff4d653ba6
[ "Apache-2.0" ]
null
null
null
yvain/fuzzy_set.py
Parowicz/Yvain
e6caba0ef0c5bd030250a4ab67381aff4d653ba6
[ "Apache-2.0" ]
null
null
null
yvain/fuzzy_set.py
Parowicz/Yvain
e6caba0ef0c5bd030250a4ab67381aff4d653ba6
[ "Apache-2.0" ]
null
null
null
""" Fuzzy set abstractions and utilities """ from math import ceil from typing import Callable from yvain.logical_systems import LogicalSystem, Zadeh from yvain.membership_functions import MembershipFunction def _integrate(function: Callable[[float, ], float], start: float, end: float, n: int) -> flo...
32.456693
102
0.646531