hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
478976b6b9fddc675865d02a0c625bea73288ea2
110,682
py
Python
tensorflow/python/frozen_keras/engine/legacy_base_layer.py
tanzhenyu/tensorflow
78b09356f5c1a17d869a2fbc571bd720b3450d9b
[ "Apache-2.0" ]
1
2021-06-11T08:28:08.000Z
2021-06-11T08:28:08.000Z
tensorflow/python/frozen_keras/engine/legacy_base_layer.py
jimbobbennett/tensorflow
988ba54e96aa1c0254c00823049cf46109d4335c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/frozen_keras/engine/legacy_base_layer.py
jimbobbennett/tensorflow
988ba54e96aa1c0254c00823049cf46109d4335c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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...
39.74219
115
0.679433
b2ea526e2e39ab0533c5f463ff094c54814cb304
5,613
py
Python
release/scripts/addons/io_scene_3ds/__init__.py
noorbeast/BlenderSource
65ebecc5108388965678b04b43463b85f6c69c1d
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2019-03-20T13:10:46.000Z
2019-05-15T20:00:31.000Z
engine/2.80/scripts/addons/io_scene_3ds/__init__.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
engine/2.80/scripts/addons/io_scene_3ds/__init__.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
32.824561
78
0.597363
4400d3348fb2784826efc89e17d2b7f7a21aef0d
8,080
py
Python
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/distanceNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/distanceNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/distanceNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
39.223301
78
0.541337
09c357f445613cc7901f50edb7a22d6b13b263f1
2,694
py
Python
tests/test_aws.py
procore/patroni
70bae1b267db4cf76d3ade299a3bef6741ec2b89
[ "MIT" ]
null
null
null
tests/test_aws.py
procore/patroni
70bae1b267db4cf76d3ade299a3bef6741ec2b89
[ "MIT" ]
null
null
null
tests/test_aws.py
procore/patroni
70bae1b267db4cf76d3ade299a3bef6741ec2b89
[ "MIT" ]
null
null
null
import unittest import requests import boto.ec2 from collections import namedtuple from patroni.scripts.aws import AWSConnection from requests.exceptions import RequestException class MockEc2Connection: def __init__(self, error=False): self.error = error def get_all_volumes(self, filters): i...
28.357895
68
0.646993
23463df23fe604082778cc1f1d2d07bde5e8c012
992
py
Python
acshaproxy/registry/events.py
cncolder/acs-haproxy-src
11631299110aef4db4929d29442c8a5744b3be41
[ "Apache-2.0" ]
null
null
null
acshaproxy/registry/events.py
cncolder/acs-haproxy-src
11631299110aef4db4929d29442c8a5744b3be41
[ "Apache-2.0" ]
null
null
null
acshaproxy/registry/events.py
cncolder/acs-haproxy-src
11631299110aef4db4929d29442c8a5744b3be41
[ "Apache-2.0" ]
null
null
null
import etcd_info import logging import sys logger = logging.getLogger("haproxy") class Events(object): def __init__(self): self.message_handler = None def on_message(self, handler): self.message_handler = handler def run_forever(self, *args, **kwargs): etcd_client = etcd_info.ge...
33.066667
115
0.604839
4f50d8638289f72d2945505f1ea94028a24506f3
3,308
py
Python
tests/test_parsing.py
shammellee/pendulum
bb179c8fb6ef92b7bfc471a46338abbfac9fafca
[ "MIT" ]
1
2018-11-25T03:10:22.000Z
2018-11-25T03:10:22.000Z
tests/test_parsing.py
shammellee/pendulum
bb179c8fb6ef92b7bfc471a46338abbfac9fafca
[ "MIT" ]
null
null
null
tests/test_parsing.py
shammellee/pendulum
bb179c8fb6ef92b7bfc471a46338abbfac9fafca
[ "MIT" ]
1
2020-07-24T17:37:18.000Z
2020-07-24T17:37:18.000Z
import pendulum from .conftest import assert_datetime, assert_date, assert_time, assert_duration def test_parse(): text = "2016-10-16T12:34:56.123456+01:30" dt = pendulum.parse(text) assert isinstance(dt, pendulum.DateTime) assert_datetime(dt, 2016, 10, 16, 12, 34, 56, 123456) assert "+01:30" =...
25.251908
80
0.657195
89edce94017f16c10255d0376d77c40812c9b29d
2,258
py
Python
micro_ros_diagnostic_bridge/launch/diagnostic_bridge.launch.py
Kannut/micro_ros_diagnostics
d57343e8d6a937eb4ba597f0d3872a1fd0037bb7
[ "Apache-2.0" ]
null
null
null
micro_ros_diagnostic_bridge/launch/diagnostic_bridge.launch.py
Kannut/micro_ros_diagnostics
d57343e8d6a937eb4ba597f0d3872a1fd0037bb7
[ "Apache-2.0" ]
null
null
null
micro_ros_diagnostic_bridge/launch/diagnostic_bridge.launch.py
Kannut/micro_ros_diagnostics
d57343e8d6a937eb4ba597f0d3872a1fd0037bb7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 - for information on the respective copyright owner # see the NOTICE file and/or the repository https://github.com/micro-ROS/system_modes. # # 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 o...
38.931034
86
0.665633
6f2db62368d53484c84a67d93065296c22ed1ef6
1,055
py
Python
src/storages/memory.py
evestidor/svc-stock-manager
56cea7f49e735df565e4a90d31e210b74160a73e
[ "MIT" ]
null
null
null
src/storages/memory.py
evestidor/svc-stock-manager
56cea7f49e735df565e4a90d31e210b74160a73e
[ "MIT" ]
9
2019-12-04T23:17:07.000Z
2022-02-10T09:44:02.000Z
src/storages/memory.py
evestidor/svc-stock-manager
56cea7f49e735df565e4a90d31e210b74160a73e
[ "MIT" ]
null
null
null
from typing import List from src.domain import Stock from src.exceptions import ( StockAlreadyExists, StockDoesNotExist, ) from src.interfaces import StockStorage class StockMemoryStorage(StockStorage): AlreadyExists = StockAlreadyExists DoesNotExist = StockDoesNotExist def __init__(self): ...
25.119048
54
0.654976
922834be1b3b25e3b0c48b078ab247cfea39ef28
422
py
Python
tests/protected/A.py
LLNL/PYB11Generator
ca4714eabf4591dc9bc49327aa20e159d8ea4b94
[ "BSD-3-Clause" ]
7
2020-10-12T21:31:12.000Z
2022-01-05T16:56:20.000Z
tests/protected/A.py
LLNL/PYB11Generator
ca4714eabf4591dc9bc49327aa20e159d8ea4b94
[ "BSD-3-Clause" ]
1
2019-06-30T05:19:07.000Z
2019-06-30T05:19:07.000Z
tests/protected/A.py
jmikeowen/PYB11Generator
ca4714eabf4591dc9bc49327aa20e159d8ea4b94
[ "BSD-3-Clause" ]
1
2021-08-03T01:26:04.000Z
2021-08-03T01:26:04.000Z
from PYB11Generator import * @PYB11template("T1", "T2") class A: def pyinit(self): "A default constructor" return @PYB11pure_virtual @PYB11protected def func(self, val1 = "const %(T1)s", val2 = "const %(T2)s"): return "void" x = PYB11readwrite() ...
20.095238
75
0.592417
6a3678abdbe3fbf5bc7c1433d0cde86974cf32e7
2,683
py
Python
3rdparty/pytorch/caffe2/python/operator_test/index_hash_ops_test.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
15
2019-08-10T02:36:38.000Z
2021-07-14T13:45:32.000Z
3rdparty/pytorch/caffe2/python/operator_test/index_hash_ops_test.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
7
2019-10-21T03:08:51.000Z
2022-03-11T23:54:28.000Z
pytorch/caffe2/python/operator_test/index_hash_ops_test.py
raghavnauhria/whatmt
c20483a437c82936cb0fb8080925e37b9c4bba87
[ "MIT" ]
6
2020-10-16T13:28:31.000Z
2021-08-25T12:08:34.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, workspace from hypothesis import given import caffe2.python.hypothesis_test_util as hu import caffe2.python.serialized_test.serialized_tes...
40.651515
79
0.613492
8a0d2f1017f244421162550f476db5d9a4274ed7
23,813
py
Python
src/pruning_layers/layers.py
ivclab/PackExpander
81b8e832018f60fc678883f3025c39cb1d289e27
[ "MIT" ]
25
2019-03-28T09:02:44.000Z
2022-02-11T15:30:50.000Z
src/pruning_layers/layers.py
ivclab/PackExpander
81b8e832018f60fc678883f3025c39cb1d289e27
[ "MIT" ]
2
2020-10-29T06:16:16.000Z
2021-01-04T02:23:04.000Z
src/pruning_layers/layers.py
ivclab/PackExpander
81b8e832018f60fc678883f3025c39cb1d289e27
[ "MIT" ]
7
2020-03-26T05:39:30.000Z
2021-07-30T09:12:42.000Z
# Copyright 2017 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...
40.705983
98
0.693571
5ab135d7a54e1f290b344fb5f89ff7ffe33a4fa4
2,410
py
Python
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_rdbms/postgresql/models/server_properties_for_create.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_rdbms/postgresql/models/server_properties_for_create.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_rdbms/postgresql/models/server_properties_for_create.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
41.551724
169
0.660166
0466350039a51495a96dad604cc3828f2127b41f
152
py
Python
feeder/api/models/__init__.py
jordan-hamilton/petnet-feeder-service
66c3192b0e66f4eefb5fd55cceb1219fa1ddb914
[ "MIT" ]
47
2020-04-23T20:28:27.000Z
2020-10-07T19:49:10.000Z
feeder/api/models/__init__.py
jordan-hamilton/petnet-feeder-service
66c3192b0e66f4eefb5fd55cceb1219fa1ddb914
[ "MIT" ]
101
2021-01-23T05:23:33.000Z
2022-03-28T13:38:13.000Z
feeder/api/models/__init__.py
ericchapman80/petnet-api-hacking
23cff84317d7380d7d1c0a2718cc153e83920906
[ "MIT" ]
9
2020-04-25T17:22:44.000Z
2020-10-07T04:36:56.000Z
from pydantic import BaseModel class BasePaginatedList(BaseModel): size: int = 0 page: int = 0 totalSize: int = 0 totalPages: int = 1
16.888889
35
0.664474
8661420fa46026edb9d594ae0fb58b437eae34d4
254
py
Python
python/12p1.py
dsumike/adventofcode
cd5e484fa162bada67625c3779580d77e87d1daa
[ "MIT" ]
null
null
null
python/12p1.py
dsumike/adventofcode
cd5e484fa162bada67625c3779580d77e87d1daa
[ "MIT" ]
null
null
null
python/12p1.py
dsumike/adventofcode
cd5e484fa162bada67625c3779580d77e87d1daa
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re # Part 1 # ignore that this is JSON, look for all ints and add them together with open('../input/12.txt') as fileobj: json = fileobj.readline() total = sum([int(x) for x in re.findall(r'-?[0-9]+', json)]) print total
19.538462
67
0.669291
f3747ad21d103d033483025376c35ddb48b4a17b
8,228
py
Python
official/nlp/gpt/src/gpt.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/gpt/src/gpt.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/gpt/src/gpt.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 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...
36.087719
116
0.658605
a4139b1a0de6890a85e78e3da3d7aaee35ed43ad
16,523
py
Python
code/python/FactSetEstimates/v2/fds/sdk/FactSetEstimates/model/rolling_detail_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetEstimates/v2/fds/sdk/FactSetEstimates/model/rolling_detail_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetEstimates/v2/fds/sdk/FactSetEstimates/model/rolling_detail_request.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Estimates Gain access to 20+ years of comprehensive estimates and statistics of over 250+ estimated metrics, including financial statement items, product segments, geosegments, and industry metrics. FactSet's consensus estimates are aggregated from a wide base of over 800+ contributors and cover ov...
52.789137
859
0.60794
1daadd23d0fdab21106af0d26bb81a3cdcd1ae26
3,308
py
Python
tests/parser/syntax/test_list.py
williamremor/vyper
4d33dc4140f7d0c339876afb6af7b417bd0ed8e0
[ "MIT" ]
1
2018-08-31T02:32:57.000Z
2018-08-31T02:32:57.000Z
tests/parser/syntax/test_list.py
williamremor/vyper
4d33dc4140f7d0c339876afb6af7b417bd0ed8e0
[ "MIT" ]
null
null
null
tests/parser/syntax/test_list.py
williamremor/vyper
4d33dc4140f7d0c339876afb6af7b417bd0ed8e0
[ "MIT" ]
null
null
null
import pytest from pytest import raises from vyper import compiler from vyper.exceptions import TypeMismatchException, StructureException fail_list = [ """ @public def foo(): x: num[3] = [1, 2, 3] x = 4 """, """ @public def foo(): x: num[3] = [1, 2, 3] x = [4, 5, 6, 7] """, """ @p...
13.447154
70
0.457981
b73e87fa77f0eac281ca110683c746fa70efc4d1
1,059
py
Python
importers/pnc.py
dumbbillyhardy/beancount-importers
d1d250cfa8484ed42416eaef10e13f0510f035c7
[ "MIT" ]
1
2020-08-05T22:53:58.000Z
2020-08-05T22:53:58.000Z
importers/pnc.py
dumbbillyhardy/beancount-importers
d1d250cfa8484ed42416eaef10e13f0510f035c7
[ "MIT" ]
null
null
null
importers/pnc.py
dumbbillyhardy/beancount-importers
d1d250cfa8484ed42416eaef10e13f0510f035c7
[ "MIT" ]
1
2020-08-05T22:04:58.000Z
2020-08-05T22:04:58.000Z
from .baseAccount import BaseAccount from dateutil.parser import parse from titlecase import titlecase class CashBuilderImporter(BaseAccount): def getDate(self, row): return parse(row['Date']).date() def getDesc(self, row): return titlecase(row['Description']) def getAmt(self, row): ...
33.09375
86
0.624174
1caae31a7efdcdfb0dab427173604d72c98a998a
584
py
Python
src/manipulation_dreambed/PySMACROSInterface.py
kth-ros-pkg/manipulation_dreambed
0551762dba4d1b142053785692967548d06a9582
[ "BSD-3-Clause" ]
null
null
null
src/manipulation_dreambed/PySMACROSInterface.py
kth-ros-pkg/manipulation_dreambed
0551762dba4d1b142053785692967548d06a9582
[ "BSD-3-Clause" ]
null
null
null
src/manipulation_dreambed/PySMACROSInterface.py
kth-ros-pkg/manipulation_dreambed
0551762dba4d1b142053785692967548d06a9582
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ This file is part of the RobDREAM (http://robdream.eu/) deliverable D4.2. @author: Silvia Cruciani (cruciani@kth.se) """ import rospy import yaml from manipulation_dreambed.srv import DreamBedEvaluation def func(**kwargs): rospy.wait_for_service('dream_bed_evaluation') try: ...
30.736842
93
0.717466
99be556e67d5d6c9b6324ba18b2d0ee395a04e83
605
py
Python
examples/7_tessy_as_script.py
K4rian/tessy
c7e63818238f03a10efa24ebeb1cb0c032598a63
[ "MIT" ]
null
null
null
examples/7_tessy_as_script.py
K4rian/tessy
c7e63818238f03a10efa24ebeb1cb0c032598a63
[ "MIT" ]
null
null
null
examples/7_tessy_as_script.py
K4rian/tessy
c7e63818238f03a10efa24ebeb1cb0c032598a63
[ "MIT" ]
null
null
null
import sys import tessy """ 7. Tessy as a invokable script This example demonstrates how to write a simple invokable script using tessy and the "image_to_string" function. """ if __name__ == "__main__": lang = None image_file = None if len(sys.argv) == 2: image_file = sys.argv[1] elif len...
21.607143
83
0.638017
18ed0c84f2ef518167b3b2f5462b250989838ac1
4,988
py
Python
setup.py
kamakiri01/qulacs
1e3e6ac26390abdfe5abe7f4d52349bcfd68e20c
[ "MIT" ]
260
2018-10-13T15:58:26.000Z
2022-03-17T11:03:58.000Z
setup.py
kamakiri01/qulacs
1e3e6ac26390abdfe5abe7f4d52349bcfd68e20c
[ "MIT" ]
182
2018-10-14T02:29:27.000Z
2022-03-06T20:23:18.000Z
setup.py
kamakiri01/qulacs
1e3e6ac26390abdfe5abe7f4d52349bcfd68e20c
[ "MIT" ]
88
2018-10-10T03:46:29.000Z
2022-02-27T21:56:05.000Z
import os import re import sys import platform import subprocess from setuptools import setup, find_packages, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion _VERSION = '0.3.0' project_name = 'Qulacs' def _is_valid_compiler(cmd): try: out = subproc...
36.676471
112
0.584603
93095c13380d9e4a486d692c3e5463f04d54a037
1,076
py
Python
SpiMediaGallery/main/importers/project_application_importer.py
Swiss-Polar-Institute/spi-media-gallery
2f66f938cbe1a7a25a5971d42abb1b0b5deca31e
[ "MIT" ]
5
2020-02-21T20:38:50.000Z
2022-02-19T11:00:46.000Z
SpiMediaGallery/main/importers/project_application_importer.py
Swiss-Polar-Institute/spi-media-gallery
2f66f938cbe1a7a25a5971d42abb1b0b5deca31e
[ "MIT" ]
23
2019-10-01T17:13:39.000Z
2022-01-21T20:02:26.000Z
SpiMediaGallery/main/importers/project_application_importer.py
Swiss-Polar-Institute/spi-media-gallery
2f66f938cbe1a7a25a5971d42abb1b0b5deca31e
[ "MIT" ]
2
2022-02-03T08:52:51.000Z
2022-02-03T08:58:00.000Z
from django.core.cache import cache from .project_application_api_client import ProjectApplicationApiClient from ..management.commands.generate_virtual_tags import GenerateTags from ..management.commands.resize_media import Resizer def import_resize_update_tags_from_project_application(): # Creates the new Mediu...
31.647059
71
0.757435
a3aef05533ea82fbc26faf81c1c2d882740c3f89
181
py
Python
appmon/forms.py
jboegeholz/flask_appmon
6a3ae2c7c889f8212293ef9e1cfc5c9e9efe6cf6
[ "MIT" ]
null
null
null
appmon/forms.py
jboegeholz/flask_appmon
6a3ae2c7c889f8212293ef9e1cfc5c9e9efe6cf6
[ "MIT" ]
1
2016-10-02T20:16:21.000Z
2016-10-02T20:16:21.000Z
appmon/forms.py
jboegeholz/flask_appmon
6a3ae2c7c889f8212293ef9e1cfc5c9e9efe6cf6
[ "MIT" ]
null
null
null
from wtforms import Form, StringField class ApplicationForm(Form): app_name = StringField("Application Name") client = StringField("Client") port = StringField("Port")
25.857143
46
0.729282
598b957e807ca223c54b16b5e82a5f66f9e9f541
12,898
py
Python
google/cloud/dataflow/__init__.py
LaudateCorpus1/python-dataflow-client
888664b70baefe7acb7e46c82a06c24e7ba06af2
[ "Apache-2.0" ]
7
2021-11-04T03:22:01.000Z
2022-02-05T14:28:50.000Z
google/cloud/dataflow/__init__.py
LaudateCorpus1/python-dataflow-client
888664b70baefe7acb7e46c82a06c24e7ba06af2
[ "Apache-2.0" ]
31
2021-06-26T01:14:50.000Z
2022-03-17T03:01:49.000Z
google/cloud/dataflow/__init__.py
LaudateCorpus1/python-dataflow-client
888664b70baefe7acb7e46c82a06c24e7ba06af2
[ "Apache-2.0" ]
4
2021-08-31T11:41:16.000Z
2022-01-29T08:09:21.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
45.900356
88
0.8323
b3fcab36690d67eed49f78b55179704187a10b42
3,316
py
Python
golden_ratio.py
HLee2020/Phys250_Final_Project
f09eeb66668db9cf407b780901ad995e1567a75a
[ "MIT" ]
null
null
null
golden_ratio.py
HLee2020/Phys250_Final_Project
f09eeb66668db9cf407b780901ad995e1567a75a
[ "MIT" ]
null
null
null
golden_ratio.py
HLee2020/Phys250_Final_Project
f09eeb66668db9cf407b780901ad995e1567a75a
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from numpy import random as rng from ant_walks import * from ant_measurements import * def golden_ratio(lattice, x_init, y_init, steps, state, orient): x = x_init y = y_init x_list = [x] y_list = [y] lattice_y = len(lattice) lattice_x =len(latt...
35.276596
92
0.535887
07495119d70118d8a2b0b7cfe7a99b7e37690c1b
3,714
py
Python
sahara/service/edp/oozie.py
hortonworksqe/sahara
b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270
[ "Apache-2.0" ]
1
2016-04-13T17:07:05.000Z
2016-04-13T17:07:05.000Z
sahara/service/edp/oozie.py
hortonworksqe/sahara
b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270
[ "Apache-2.0" ]
null
null
null
sahara/service/edp/oozie.py
hortonworksqe/sahara
b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis 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 writ...
36.058252
79
0.655358
4706269e1cfa50e3bfcc7d8304e8cc1aa022e702
3,137
py
Python
homeassistant/components/evohome/water_heater.py
deporpeps/home-assistant
797196dce97d1418e1217fbe645e7da1c94ce6c5
[ "Apache-2.0" ]
1
2022-01-15T18:27:59.000Z
2022-01-15T18:27:59.000Z
homeassistant/components/evohome/water_heater.py
deporpeps/home-assistant
797196dce97d1418e1217fbe645e7da1c94ce6c5
[ "Apache-2.0" ]
null
null
null
homeassistant/components/evohome/water_heater.py
deporpeps/home-assistant
797196dce97d1418e1217fbe645e7da1c94ce6c5
[ "Apache-2.0" ]
null
null
null
"""Support for WaterHeater devices of (EMEA/EU) Honeywell TCC systems.""" import logging from typing import List import requests.exceptions import evohomeclient2 from homeassistant.components.water_heater import ( SUPPORT_OPERATION_MODE, WaterHeaterDevice) from homeassistant.const import PRECISION_WHOLE, STATE_OF...
34.472527
79
0.683456
9b57a65c36677d25905724d3e79650ca56c1c076
374
py
Python
dirmon/setup.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
72
2015-11-20T12:52:10.000Z
2021-06-08T16:57:53.000Z
dirmon/setup.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
87
2016-08-25T15:09:59.000Z
2022-02-07T14:34:45.000Z
dirmon/setup.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
37
2015-11-20T12:51:59.000Z
2021-12-13T18:13:32.000Z
from setuptools import setup, find_packages setup( name="dirmon", version="3.0.0", author="Marcus LaFerrera (@mlaferrera)", url="https://github.com/PUNCH-Cyber/stoq-plugins-public", license="Apache License 2.0", description="Monitor a directory for newly created files for processing", packa...
28.769231
77
0.71123
f009d2a98c3be5c7a2718d4552d8c8b8976b1af4
4,548
py
Python
benchmarks/Evolution/both/evo_json/convert_py_json/convert_trait.py
nuprl/retic_performance
621211c2f40251ce5364c33e72e4067e34a32013
[ "MIT" ]
3
2018-08-03T02:41:29.000Z
2021-03-19T03:18:47.000Z
benchmarks/Evolution/both/evo_json/convert_py_json/convert_trait.py
nuprl/retic_performance
621211c2f40251ce5364c33e72e4067e34a32013
[ "MIT" ]
3
2018-02-04T17:53:56.000Z
2018-11-10T17:06:57.000Z
benchmarks/Evolution/both/evo_json/convert_py_json/convert_trait.py
nuprl/retic_performance
621211c2f40251ce5364c33e72e4067e34a32013
[ "MIT" ]
1
2018-08-04T00:14:12.000Z
2018-08-04T00:14:12.000Z
from evo_json.data_def import * from evo_json.constants import * from evolution.data_defs import is_list_of_valid_elem, is_list_of from evolution.constants import CARNIVORE_MIN_FOOD_TOKENS, \ CARNIVORE_MAX_FOOD_TOKENS __author__ = 'Edwin Cowart, Kevin McDonough' """----------- PyJSON Trait <-> TraitCard ---------...
29.72549
84
0.684257
0d2376884ec0b7ce93579203037e71c319d40689
993
py
Python
v2.5.7/toontown/pets/PetManager.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v1.0.0.test/toontown/pets/PetManager.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/pets/PetManager.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from panda3d.core import * from toontown.toonbase import ToontownGlobals from direct.task import Task def acquirePetManager(): if not hasattr(base, 'petManager'): PetManager() base.petManager.incRefCount() def releasePetManager(): base.petManager.decRefCount() class PetManager: CollTaskName...
25.461538
111
0.673716
7ade9cd63dfc275197fcba50fb864a9154cd20b6
410
py
Python
apps/core/migrations/0003_longer_service_name.py
sparcs-kaist/sparcssso
9aeedc02652dadacb44c6a4ba06901f6d2372223
[ "MIT" ]
18
2015-07-06T06:20:14.000Z
2022-03-20T23:45:40.000Z
apps/core/migrations/0003_longer_service_name.py
sparcs-kaist/sparcssso
9aeedc02652dadacb44c6a4ba06901f6d2372223
[ "MIT" ]
170
2015-07-07T08:42:03.000Z
2022-03-24T17:31:17.000Z
apps/core/migrations/0003_longer_service_name.py
sparcs-kaist/sparcssso
9aeedc02652dadacb44c6a4ba06901f6d2372223
[ "MIT" ]
11
2015-07-07T20:42:19.000Z
2022-01-12T22:39:59.000Z
# Generated by Django 2.1.8 on 2021-03-07 14:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_emaildomain'), ] operations = [ migrations.AlterField( model_name='service', name='name', f...
21.578947
85
0.607317
5c8bc7233d38d4519b8bea2f6b1a7f8902e217ec
8,773
py
Python
snake.py
LemonPi314/terminal-snake
ee7d875bf3f2e97b685cc0bf21340b2109b39162
[ "MIT" ]
null
null
null
snake.py
LemonPi314/terminal-snake
ee7d875bf3f2e97b685cc0bf21340b2109b39162
[ "MIT" ]
null
null
null
snake.py
LemonPi314/terminal-snake
ee7d875bf3f2e97b685cc0bf21340b2109b39162
[ "MIT" ]
null
null
null
import time import json from random import choice from dataclasses import dataclass from pyco import terminal, cursor from pyco.color import Fore, Back, RESET from pyco.utils import getch, kbhit ESC = '\x1b' @dataclass class XYPair: x: int y: int def copy(self): obj = type(self).__new__(self.__c...
37.173729
172
0.531175
410a610700d1d69201cead69cfc85774d2359403
8,386
py
Python
fcos_core/modeling/rpn/rpn.py
Hwang64/CrabNet
bf414e2d51f433ab3560a973feff104907779d21
[ "BSD-2-Clause" ]
2
2021-03-17T01:52:44.000Z
2021-03-18T02:41:32.000Z
fcos_core/modeling/rpn/rpn.py
Hwang64/CrabNet
bf414e2d51f433ab3560a973feff104907779d21
[ "BSD-2-Clause" ]
null
null
null
fcos_core/modeling/rpn/rpn.py
Hwang64/CrabNet
bf414e2d51f433ab3560a973feff104907779d21
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch import torch.nn.functional as F from torch import nn from fcos_core.modeling import registry from fcos_core.modeling.box_coder import BoxCoder from fcos_core.modeling.rpn.retinanet.retinanet import build_retinanet from fcos_core.model...
38.118182
101
0.646196
393063e704a04acdf7cc87444883a69d9559bae2
14,052
py
Python
test/python/WMCore_t/Services_t/DBS_t/DBSReader_t.py
haozturk/WMCore
b34e8c89b4a30de78b7d0cf4730d4c70af5830b4
[ "Apache-2.0" ]
null
null
null
test/python/WMCore_t/Services_t/DBS_t/DBSReader_t.py
haozturk/WMCore
b34e8c89b4a30de78b7d0cf4730d4c70af5830b4
[ "Apache-2.0" ]
null
null
null
test/python/WMCore_t/Services_t/DBS_t/DBSReader_t.py
haozturk/WMCore
b34e8c89b4a30de78b7d0cf4730d4c70af5830b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ _DBSReader_t_ Unit test for the DBS helper class. """ import unittest from WMCore.Services.DBS.DBS3Reader import getDataTiers, DBS3Reader as DBSReader from WMCore.Services.DBS.DBSErrors import DBSReaderError from WMQuality.Emulators.EmulatedUnitTestCase import EmulatedUnitTestCase # A smal...
45.329032
123
0.661472
44e84d57cb44e3b582fd702ffb12e3ff7bbf30eb
3,170
py
Python
asn/neuronModel.py
lynnsoerensen/Arousal_DCNN
0f4ae01dac06722fa5fecfd43e13b722cdf09199
[ "MIT" ]
2
2020-12-30T00:38:14.000Z
2021-07-01T18:30:13.000Z
asn/neuronModel.py
lynnsoerensen/Arousal_DCNN
0f4ae01dac06722fa5fecfd43e13b722cdf09199
[ "MIT" ]
null
null
null
asn/neuronModel.py
lynnsoerensen/Arousal_DCNN
0f4ae01dac06722fa5fecfd43e13b722cdf09199
[ "MIT" ]
1
2021-10-03T08:49:35.000Z
2021-10-03T08:49:35.000Z
import numpy as np class ASN: """ Adaptive spiking neuron class, double-checked on Jan 24, 2018 """ def __init__(self, mf=0.1, bias=0): # Params # membrane filter self.tau_phi = 2.5 self.dPhi = np.exp(-1 / self.tau_phi) # threshold decay filter self.tau_gamma = ...
35.617978
105
0.570978
aba4244b7274b765aa0af9774b2318ce20e75f22
201
py
Python
AtCoder/ABC/B/page-13/088B.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
AtCoder/ABC/B/page-13/088B.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
AtCoder/ABC/B/page-13/088B.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
n = int(input()) lst = list(map(int, input().split())) lst.sort(reverse=True) a = 0 b = 0 for i in range(1, n+1): if i % 2 == 0: b += lst[i-1] else: a += lst[i-1] print(a-b)
13.4
37
0.477612
a6fb653b8551c87c741d8c6d6cac5633b1d54c9a
11,644
py
Python
tests/test_cli.py
mdengler/pipgrip
03f5b9df70d8035b26d35e1dfa5bae6857fc240d
[ "BSD-3-Clause" ]
null
null
null
tests/test_cli.py
mdengler/pipgrip
03f5b9df70d8035b26d35e1dfa5bae6857fc240d
[ "BSD-3-Clause" ]
null
null
null
tests/test_cli.py
mdengler/pipgrip
03f5b9df70d8035b26d35e1dfa5bae6857fc240d
[ "BSD-3-Clause" ]
null
null
null
import pytest from click.testing import CliRunner import pipgrip.pipper from pipgrip.cli import flatten, main from pipgrip.pipper import _download_wheel self_wheel = _download_wheel(".", None, None, None, "./tests/assets") # fmt: off def mock_download_wheel(package, *args, **kwargs): wheelhouse = { ".":...
36.965079
161
0.455514
bda21e067273d2e1c5db8dc65fdb916b20107941
111,879
py
Python
telethon/telegram_client.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
null
null
null
telethon/telegram_client.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
null
null
null
telethon/telegram_client.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
null
null
null
import asyncio import getpass import hashlib import io import itertools import logging import os import re import sys import time import warnings from collections import UserList from datetime import datetime, timedelta from io import BytesIO from mimetypes import guess_type from async_generator import async_generator...
39.659341
89
0.560418
205bc91dab311149173a0d90819b22ef604f45bc
3,500
py
Python
tempest/api/object_storage/test_container_acl.py
afaheem88/tempest_neutron
20276dbee68087e576f4977633380fc6cd3fc1cd
[ "Apache-2.0" ]
null
null
null
tempest/api/object_storage/test_container_acl.py
afaheem88/tempest_neutron
20276dbee68087e576f4977633380fc6cd3fc1cd
[ "Apache-2.0" ]
null
null
null
tempest/api/object_storage/test_container_acl.py
afaheem88/tempest_neutron
20276dbee68087e576f4977633380fc6cd3fc1cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
42.168675
78
0.668571
b11cb699166972e5702315de3e7c144262951e55
1,406
py
Python
cogdl/wrappers/data_wrapper/graph_classification/patchy_san_dw.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
6
2020-07-09T02:48:41.000Z
2021-06-16T09:04:14.000Z
cogdl/wrappers/data_wrapper/graph_classification/patchy_san_dw.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
null
null
null
cogdl/wrappers/data_wrapper/graph_classification/patchy_san_dw.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
1
2020-05-19T11:45:45.000Z
2020-05-19T11:45:45.000Z
import torch from .graph_classification_dw import GraphClassificationDataWrapper from cogdl.models.nn.patchy_san import get_single_feature class PATCHY_SAN_DataWrapper(GraphClassificationDataWrapper): @staticmethod def add_args(parser): GraphClassificationDataWrapper.add_args(parser) parser.a...
42.606061
119
0.699147
6df51b54b0413191306c4392bb2186dd4add5d9d
7,425
py
Python
vietnam_thor/app.py
vishalbelsare/teaching
dc1f7d6b259ff13ea4747e12ece0b2c66982532b
[ "MIT" ]
26
2019-07-24T16:54:19.000Z
2022-03-24T13:32:51.000Z
vietnam_thor/app.py
vishalbelsare/teaching
dc1f7d6b259ff13ea4747e12ece0b2c66982532b
[ "MIT" ]
1
2020-07-28T22:52:23.000Z
2020-07-28T22:52:23.000Z
vietnam_thor/app.py
vishalbelsare/teaching
dc1f7d6b259ff13ea4747e12ece0b2c66982532b
[ "MIT" ]
26
2020-04-16T14:57:16.000Z
2021-11-23T00:24:12.000Z
""" Web app with Panel for THOR data. Created May 2021 Copyright (C) Damien Farrell This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at...
37.690355
128
0.646465
5d4bdac389bb1f270d74efb6c876258d46077110
79
py
Python
torch/utils/model_dump/__main__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
torch/utils/model_dump/__main__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
torch/utils/model_dump/__main__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
#!/usr/bin/env python3 import sys from . import main sys.exit(main(sys.argv))
13.166667
24
0.721519
10e1dd9832c0c616596400be1c0d10e07f0034e9
2,535
py
Python
django_tricks/utils/decorators.py
mariocesar/django-tricks
4653d663bc489aa8b30375b41b6adb0f73720b74
[ "0BSD" ]
2
2017-07-31T19:52:34.000Z
2021-07-26T02:45:23.000Z
django_tricks/utils/decorators.py
mariocesar/django-tricks
4653d663bc489aa8b30375b41b6adb0f73720b74
[ "0BSD" ]
1
2021-03-25T21:43:16.000Z
2021-03-25T21:43:16.000Z
django_tricks/utils/decorators.py
mariocesar/django-tricks
4653d663bc489aa8b30375b41b6adb0f73720b74
[ "0BSD" ]
null
null
null
import sys from django.core.cache import cache from django.utils.six import wraps class ServiceReturn: def __init__(self, name, ret_value, err=None, exc_info=None): self.name = name self.ret_value = ret_value self.exc_info = exc_info self.err = err def __repr__(self): ...
27.258065
102
0.61499
45f1ececed2f95831172490cdfaeef9c086369c0
9,630
py
Python
runway/cfngin/lookups/handlers/file.py
avosper-intellaegis/runway
757d4e7db269ec16479b044ac82a69f25fa2a450
[ "Apache-2.0" ]
null
null
null
runway/cfngin/lookups/handlers/file.py
avosper-intellaegis/runway
757d4e7db269ec16479b044ac82a69f25fa2a450
[ "Apache-2.0" ]
null
null
null
runway/cfngin/lookups/handlers/file.py
avosper-intellaegis/runway
757d4e7db269ec16479b044ac82a69f25fa2a450
[ "Apache-2.0" ]
null
null
null
"""File lookup.""" # pylint: disable=arguments-differ # pyright: reportIncompatibleMethodOverride=none from __future__ import annotations import base64 import collections.abc import json import re from typing import Any, Callable, Dict, List, Mapping, Sequence, Union, overload import yaml from troposphere import Base...
31.782178
86
0.607269
99723e54d9d16e1e81a0e906336f7675d8545697
2,237
py
Python
tests/unit/ui/test_utils.py
varuntiwari27/rally
948fba0e8fe8214dd3716451d2a52e014a4115be
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
tests/unit/ui/test_utils.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
tests/unit/ui/test_utils.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# Copyright 2014: Mirantis 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 required b...
39.245614
78
0.71122
f74d3cd803994be5b0ec6f093a396dab53fd0640
2,594
py
Python
f_d_c.py
ashu2004a/face_recognition
a0585d81daa7f0588e6269df8e26fdf7f18c27be
[ "CC0-1.0" ]
1
2021-04-25T14:48:23.000Z
2021-04-25T14:48:23.000Z
f_d_c.py
ashu2004a/face_recognition
a0585d81daa7f0588e6269df8e26fdf7f18c27be
[ "CC0-1.0" ]
null
null
null
f_d_c.py
ashu2004a/face_recognition
a0585d81daa7f0588e6269df8e26fdf7f18c27be
[ "CC0-1.0" ]
null
null
null
''' Author: Ashutosh Panigrahi Year: 2021 Version: 0.0.1 ''' #This piece of code detect the face (image in png/jpg or else given) given. import __future__ import click import os import re import face_recognition.api as fcrec import multiprocessing import sys import itertools def print_result(filename, location): ...
32.835443
137
0.712799
a6abdd5461a47150ac3bec97bfdc07a72023f47d
3,886
py
Python
tests/test_observable/test_takewithtime.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
tests/test_observable/test_takewithtime.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
tests/test_observable/test_takewithtime.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
import unittest from reactivex import operators as ops from reactivex.testing import ReactiveTest, TestScheduler on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disp...
28.15942
84
0.575142
0c5d8b3b1bb500a47d6a92d1b54714dfde7b4220
1,339
py
Python
Codewars/7kyu/ranking-position/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/7kyu/ranking-position/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/7kyu/ranking-position/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 3.6.0 input_ = [ { 'name': 'John', 'points': 100 }, { 'name': 'Bob', 'points': 130 }, { 'name': 'Mary', 'points': 120 }, { 'name': 'Kate', 'points': 120 } ] output = [ { 'name': 'Bob', 'points': 130, 'position': 1 }, { 'name': 'Kate', 'points': 120, 'position': 2 }, { 'name': '...
29.108696
58
0.51531
0d4017a0c2d13cddc203b9f5d163e6c518c35565
10,597
py
Python
src/python/pants/engine/build_files.py
lgirault/pants
7731c9783d8011089f59d47c41d49fdd6433bb4f
[ "Apache-2.0" ]
94
2015-01-15T21:24:20.000Z
2022-02-16T16:55:43.000Z
src/python/pants/engine/build_files.py
lgirault/pants
7731c9783d8011089f59d47c41d49fdd6433bb4f
[ "Apache-2.0" ]
5
2020-07-18T01:04:43.000Z
2021-05-10T08:40:56.000Z
src/python/pants/engine/build_files.py
lgirault/pants
7731c9783d8011089f59d47c41d49fdd6433bb4f
[ "Apache-2.0" ]
47
2015-02-25T02:20:07.000Z
2022-03-21T00:59:16.000Z
# coding=utf-8 # Copyright 2015 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 import logging from builtins import next from os.path import dirname, join import six fr...
40.446565
101
0.733038
efd5dd58e7f9cef8933ebf8f712c7a6e44637acc
3,247
py
Python
test/test_TimeseriesStats.py
gunny26/datalogger4
ab1b6bd295e41f57530a9f1c0977f5dcd1eabf2a
[ "Apache-2.0" ]
null
null
null
test/test_TimeseriesStats.py
gunny26/datalogger4
ab1b6bd295e41f57530a9f1c0977f5dcd1eabf2a
[ "Apache-2.0" ]
null
null
null
test/test_TimeseriesStats.py
gunny26/datalogger4
ab1b6bd295e41f57530a9f1c0977f5dcd1eabf2a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import unittest import logging import datetime import gzip import os import json # own modules from datalogger4.Timeseries import Timeseries from datalogger4.TimeseriesStats import TimeseriesStats class Test(unittest.TestCase): def setUp(self): self.basedir = "/var/rrd" self....
36.483146
305
0.647367
6a2fa229c6af2e24d45c083bcab9df06b3111d70
23,985
py
Python
tests/reflectometry/data_test.py
arm61/ess
f3d3fd47d334420b0b838aec720efc38c186a420
[ "BSD-3-Clause" ]
null
null
null
tests/reflectometry/data_test.py
arm61/ess
f3d3fd47d334420b0b838aec720efc38c186a420
[ "BSD-3-Clause" ]
null
null
null
tests/reflectometry/data_test.py
arm61/ess
f3d3fd47d334420b0b838aec720efc38c186a420
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2021 Scipp contributors (https://github.com/scipp) # flake8: noqa: E501 """ Tests for data module """ # author: Andrew R. McCluskey (arm61) import os import unittest import numpy as np from numpy.testing import assert_almost_equal, assert_equal import scipp as s...
34.76087
83
0.525578
2481d3cf96dc57e73f536d5817da17eef8b9dfa2
8,607
py
Python
src/external/elf-loader/extract-system-config.py
Tiamat-Tech/shadow
482458a2ff0573d4b5eec0c588852af46aead24a
[ "BSD-3-Clause" ]
1
2021-04-17T01:00:35.000Z
2021-04-17T01:00:35.000Z
src/external/elf-loader/extract-system-config.py
Tiamat-Tech/shadow
482458a2ff0573d4b5eec0c588852af46aead24a
[ "BSD-3-Clause" ]
18
2020-12-15T07:11:46.000Z
2022-02-15T00:07:52.000Z
src/external/elf-loader/extract-system-config.py
Tiamat-Tech/shadow
482458a2ff0573d4b5eec0c588852af46aead24a
[ "BSD-3-Clause" ]
1
2021-09-21T22:20:32.000Z
2021-09-21T22:20:32.000Z
#!/usr/bin/env python3 import sys import re import getopt import os import codecs from elftools.elf.elffile import ELFFile # Should be inheriting FileNotFoundError but we use Exception to ensure python2 compatibility class CouldNotFindFile(Exception): pass class DebugData: def __init__(self, debug_filename):...
41.781553
127
0.595562
c57a2422172ba631d7064511ac500f526f10b498
21,241
py
Python
dvc/repo/experiments/__init__.py
rfdickerson/dvc
54a48e3256ffc18f47e51fc23a5a3e1488d2b57e
[ "Apache-2.0" ]
1
2021-04-05T19:16:36.000Z
2021-04-05T19:16:36.000Z
dvc/repo/experiments/__init__.py
mgkwill/dvc
de768375ed72ce171daad91c38beb7af387c2cf2
[ "Apache-2.0" ]
null
null
null
dvc/repo/experiments/__init__.py
mgkwill/dvc
de768375ed72ce171daad91c38beb7af387c2cf2
[ "Apache-2.0" ]
null
null
null
import logging import os import re import tempfile from collections.abc import Mapping from concurrent.futures import ( ProcessPoolExecutor, ThreadPoolExecutor, as_completed, ) from contextlib import contextmanager from functools import partial, wraps from typing import Iterable, Optional from funcy import...
34.538211
79
0.583588
c6f2aeb530373c41986cc3d3272ba0215c659647
1,739
py
Python
IO/Xdmf3/Testing/Python/ManyFiles.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
1,755
2015-01-03T06:55:00.000Z
2022-03-29T05:23:26.000Z
IO/Xdmf3/Testing/Python/ManyFiles.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
29
2015-04-23T20:58:30.000Z
2022-03-02T16:16:42.000Z
IO/Xdmf3/Testing/Python/ManyFiles.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
1,044
2015-01-05T22:48:27.000Z
2022-03-31T02:38:26.000Z
""" This test verifies that vtk's Xdmf reader will read a sampling of small to moderate size data files that cover a spectrum of file format features. """ from __future__ import print_function import sys import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() smallFiles = [ #from XDMF "2...
23.186667
74
0.72973
2a68e244183dd5212631b8456f9129348ec95876
914
py
Python
api/weather/WeatherServiceTest.py
Gabriel737/CadorsMap
2bca28b8bda79caad1149bcedd1dc4953c84e13b
[ "MIT" ]
1
2021-12-11T21:11:06.000Z
2021-12-11T21:11:06.000Z
api/weather/WeatherServiceTest.py
kaumil/cmpt_732
e753824d30fdc32c60f6699ac5b4d88d78f6fa33
[ "MIT" ]
null
null
null
api/weather/WeatherServiceTest.py
kaumil/cmpt_732
e753824d30fdc32c60f6699ac5b4d88d78f6fa33
[ "MIT" ]
1
2021-11-11T16:51:07.000Z
2021-11-11T16:51:07.000Z
from Weather import WeatherService def main(): ws = WeatherService() print('=== COORDS ===') coords = ws._locate_coordinates('Stave Lake, BC, Canada') print(coords.latitude, coords.longitude, '\n') print('=== CYVR === ') print(ws.retrieve_weather('2005-11-13', 'cyvr', 'richmond BC (CY...
38.083333
120
0.584245
caa7526d0b961c79b7aa3531481e0aec746aa73b
15,164
py
Python
temboardui/plugins/monitoring/__init__.py
l00ptr/temboard
f583d58e4d831f5395bc29e0a90634d38b0b4930
[ "PostgreSQL" ]
null
null
null
temboardui/plugins/monitoring/__init__.py
l00ptr/temboard
f583d58e4d831f5395bc29e0a90634d38b0b4930
[ "PostgreSQL" ]
null
null
null
temboardui/plugins/monitoring/__init__.py
l00ptr/temboard
f583d58e4d831f5395bc29e0a90634d38b0b4930
[ "PostgreSQL" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os from textwrap import dedent import tornado.web import tornado.escape from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy import create_engine from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.exc import ProgrammingError, IntegrityError fr...
34.385488
98
0.558692
012a2c3dd63d7741689260ea0029462b87006cc9
150
py
Python
yatube/core/context_processors/year.py
LHLHLHE/yatube_project
8f0ee4f8715133dd8c268caa3f49f80a0648c859
[ "MIT" ]
null
null
null
yatube/core/context_processors/year.py
LHLHLHE/yatube_project
8f0ee4f8715133dd8c268caa3f49f80a0648c859
[ "MIT" ]
null
null
null
yatube/core/context_processors/year.py
LHLHLHE/yatube_project
8f0ee4f8715133dd8c268caa3f49f80a0648c859
[ "MIT" ]
null
null
null
import datetime def year(request): """Добавляет переменную с текущим годом.""" return { 'year': datetime.datetime.now().year, }
16.666667
47
0.62
b09070a26468a2b80936043135028accbe8c5000
171
py
Python
client/__init__.py
mycelium-ethereum/upshot-adapter
f4bed3f4c4e746062465f8e705bb3988044cf432
[ "MIT" ]
null
null
null
client/__init__.py
mycelium-ethereum/upshot-adapter
f4bed3f4c4e746062465f8e705bb3988044cf432
[ "MIT" ]
null
null
null
client/__init__.py
mycelium-ethereum/upshot-adapter
f4bed3f4c4e746062465f8e705bb3988044cf432
[ "MIT" ]
null
null
null
from dotenv import load_dotenv load_dotenv(); import os from client.Webhook import webhook from client.Upshot import Upshot upshot = Upshot(os.getenv("UPSHOT_API_KEY"))
19
44
0.807018
a71ee19552d1acd72fe1bd577ef83283c6936eec
49
py
Python
btd6_memory_info/generated/SteamNative/RemoteStorageFileWriteAsyncComplete_t/remote_storage_file_write_async_complete_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/RemoteStorageFileWriteAsyncComplete_t/remote_storage_file_write_async_complete_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/RemoteStorageFileWriteAsyncComplete_t/remote_storage_file_write_async_complete_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class RemoteStorageFileWriteAsyncComplete_t: pass
49
49
0.938776
4d930c0f2ec564695065f9344177d99faa68824a
1,719
py
Python
fabfile.py
KunihikoKido/aws-lambda-es-dumpdata
40cb4f1852de0d7fc2c6e446d053fe50385f262f
[ "MIT" ]
3
2017-03-13T02:51:06.000Z
2017-09-01T08:03:53.000Z
fabfile.py
KunihikoKido/aws-lambda-es-suggest
f80fa289c0856e307622336a33ed5c1badfe75fb
[ "MIT" ]
null
null
null
fabfile.py
KunihikoKido/aws-lambda-es-suggest
f80fa289c0856e307622336a33ed5c1badfe75fb
[ "MIT" ]
2
2018-08-10T15:36:17.000Z
2019-11-13T20:09:11.000Z
# -*- coding: utf-8 -*- import os from fabric.api import local from fabric.api import task from fabric_aws_lambda import SetupTask from fabric_aws_lambda import InvokeTask from fabric_aws_lambda import MakeZipTask from fabric_aws_lambda import AWSLambdaInvokeTask from fabric_aws_lambda import AWSLambdaGetConfigTask fr...
26.045455
62
0.778941
a018d2d7818a31d1e835209f54a458acc22837b9
3,104
py
Python
clone/views.py
karobia001/Insta-clone
fc512c8f73776bd4df9fb518e628c8dd42e0fac4
[ "MIT" ]
null
null
null
clone/views.py
karobia001/Insta-clone
fc512c8f73776bd4df9fb518e628c8dd42e0fac4
[ "MIT" ]
3
2020-06-06T00:09:24.000Z
2021-06-10T22:17:03.000Z
clone/views.py
karobia001/Insta-clone
fc512c8f73776bd4df9fb518e628c8dd42e0fac4
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from .forms import NewStatusForm, NewCommentForm from django.shortcuts import render,redirect from .models import Image, Profile, Comment # Create your views here. @login_required(login_url='/accounts/register/') def timeline(request): current_user = reque...
37.853659
128
0.692332
688dc9499ee05ec79a009558993ac6cb9864c9f0
1,793
py
Python
integration_tests/projects/002_jaffle_shop/fal_scripts/models/orders_forecast.py
emekdahl/fal
8a6670a2a1940cdd3e838073894d643e1050b654
[ "Apache-2.0" ]
360
2021-11-10T18:43:03.000Z
2022-03-31T14:57:19.000Z
integration_tests/projects/002_jaffle_shop/fal_scripts/models/orders_forecast.py
emekdahl/fal
8a6670a2a1940cdd3e838073894d643e1050b654
[ "Apache-2.0" ]
64
2021-11-11T22:05:53.000Z
2022-03-30T18:14:05.000Z
integration_tests/projects/002_jaffle_shop/fal_scripts/models/orders_forecast.py
emekdahl/fal
8a6670a2a1940cdd3e838073894d643e1050b654
[ "Apache-2.0" ]
9
2021-12-17T02:49:36.000Z
2022-03-31T14:57:21.000Z
"""Forecast and upload order data Packages: - prophet """ import pandas as pd from prophet import Prophet import sqlalchemy.types as types def make_forecast(dataframe: pd.DataFrame, periods: int = 30): """Make forecast on metric data.""" model = Prophet(daily_seasonality=False, yearly_seasonality=False) ...
31.45614
83
0.737312
510e701e19f0d454f8cf705c6d49aca211a5ef13
7,386
py
Python
tests/test_branch_utils.py
QualiTorque/torque-cli
20ee82b4c68fd7e5b659209b72a686e76471ab52
[ "Apache-2.0" ]
null
null
null
tests/test_branch_utils.py
QualiTorque/torque-cli
20ee82b4c68fd7e5b659209b72a686e76471ab52
[ "Apache-2.0" ]
null
null
null
tests/test_branch_utils.py
QualiTorque/torque-cli
20ee82b4c68fd7e5b659209b72a686e76471ab52
[ "Apache-2.0" ]
null
null
null
import unittest from datetime import datetime from unittest.mock import Mock, patch import torque.commands.sb import torque.services.waiter from torque.branch import branch_utils from torque.commands.base import BaseCommand from torque.constants import DEFAULT_TIMEOUT, FINAL_SB_STATUSES, UNCOMMITTED_BRANCH_NAME from t...
37.115578
99
0.691579
4adeaf7f937b4b5db8adb199cd10f9cb42174cec
2,254
py
Python
pennylane_aqt/api_client.py
XanaduAI/pennylane-aqt
1570a0cf422967dfe0d170f099a636a3024bd353
[ "Apache-2.0" ]
5
2020-06-01T05:13:23.000Z
2020-07-12T17:59:14.000Z
pennylane_aqt/api_client.py
XanaduAI/pennylane-aqt
1570a0cf422967dfe0d170f099a636a3024bd353
[ "Apache-2.0" ]
3
2020-06-03T12:52:44.000Z
2020-06-23T18:08:30.000Z
pennylane_aqt/api_client.py
XanaduAI/pennylane-aqt
1570a0cf422967dfe0d170f099a636a3024bd353
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
28.531646
98
0.703194
13ff58be813f7ad399c32cc9d408f919ed019e38
1,153
py
Python
modules/signatures/windows/rat_rbot.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
24
2021-06-21T07:35:37.000Z
2022-03-22T03:33:59.000Z
modules/signatures/windows/rat_rbot.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
3
2021-07-01T08:09:05.000Z
2022-01-28T03:38:36.000Z
modules/signatures/windows/rat_rbot.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
6
2021-06-22T05:32:57.000Z
2022-02-11T02:05:45.000Z
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # This signature was contributed by RedSocks - http://redsocks.nl # See the file 'docs/LICENSE' for copying permission. from lib.cuckoo.common.abstracts import Signature class RBot(Signature): name = ...
28.121951
74
0.5915
d5580f9a74dce5251565eeff3abc57d2886c23fb
5,170
py
Python
highlighter_path.py
Phidica/sublime-fish
cd95616df5c73da5ce2dfe548892b4571040f9dd
[ "MIT" ]
31
2017-11-15T00:21:27.000Z
2022-03-22T16:01:34.000Z
highlighter_path.py
eugenesvk/sublime-fish
6697fdd7becc3e5991484d4365b036b9fbb1d99d
[ "MIT" ]
17
2017-11-11T15:07:27.000Z
2022-03-29T14:46:14.000Z
highlighter_path.py
eugenesvk/sublime-fish
6697fdd7becc3e5991484d4365b036b9fbb1d99d
[ "MIT" ]
2
2021-03-19T11:41:34.000Z
2021-09-19T14:37:13.000Z
import os.path import logging import re import sublime, sublime_plugin from fish.highlighter_base import BaseHighlighter class PathHighlighter(sublime_plugin.ViewEventListener, BaseHighlighter): def __init__(self, view): sublime_plugin.ViewEventListener.__init__(self, view) BaseHighlighter.__init__(self, v...
37.737226
165
0.681431
72cb7bfb4edd5f8bfec073bf042c5b707fd9ed54
764
py
Python
docs/00.Python_Advanced/Django_note/mysite1/mysite1/urls.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
null
null
null
docs/00.Python_Advanced/Django_note/mysite1/mysite1/urls.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
null
null
null
docs/00.Python_Advanced/Django_note/mysite1/mysite1/urls.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
null
null
null
"""mysite1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
34.727273
79
0.704188
7a59e65296759895caa2944c0a2902c1d12946b5
1,952
py
Python
setup.py
skterry/KAI
b8ccf003bf892692bdf00f4bd112e2a7a2938a5b
[ "BSD-3-Clause" ]
null
null
null
setup.py
skterry/KAI
b8ccf003bf892692bdf00f4bd112e2a7a2938a5b
[ "BSD-3-Clause" ]
null
null
null
setup.py
skterry/KAI
b8ccf003bf892692bdf00f4bd112e2a7a2938a5b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst # NOTE: The configuration for the package, including the name, version, and # other information are set in the setup.cfg file. import os import sys from setuptools import setup # First provide helpful messages if contributors try...
24.708861
76
0.71875
7088ea152946ef33d247df89e52221b9a94e8d5c
88
py
Python
odxtools/version.py
andlaus/odxtools
8c4d806d7d23b9f87e571edffb3e90b7005688f4
[ "MIT" ]
null
null
null
odxtools/version.py
andlaus/odxtools
8c4d806d7d23b9f87e571edffb3e90b7005688f4
[ "MIT" ]
null
null
null
odxtools/version.py
andlaus/odxtools
8c4d806d7d23b9f87e571edffb3e90b7005688f4
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (c) 2022 MBition GmbH __version__ = '1.0.1'
17.6
33
0.715909
ba76eedca41d8c5534d97efdd5858bd369bc9d61
10,956
py
Python
sdk/python/pulumi_azure_native/web/v20210201/web_app_metadata_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20210201/web_app_metadata_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20210201/web_app_metadata_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
46.621277
1,771
0.655988
799e473531e6a234ff4b1d9d7e665426aa1dff2e
1,295
py
Python
dataset/codesearchnet_feng/__init__.py
nashid/naturalcc
e9d9b4a296b61199fc35779b062db2205935a608
[ "MIT" ]
1
2021-12-21T05:52:37.000Z
2021-12-21T05:52:37.000Z
dataset/codesearchnet_feng/__init__.py
hrshy0629/naturalcc
9c3329dd8387c8242deb52bf590ebe3ac795f8de
[ "MIT" ]
null
null
null
dataset/codesearchnet_feng/__init__.py
hrshy0629/naturalcc
9c3329dd8387c8242deb52bf590ebe3ac795f8de
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from ncc import ( __NCC_DIR__, __BPE_DIR__, __TREE_SITTER_LIBS_DIR__, ) from ncc.data.constants import ( RAW, ATTRIBUTES, MODES, ) DATASET_NAME = 'codesearchnet_feng' DATASET_DIR = os.path.join(__NCC_DIR__, DATASET_NAME) RAW_DIR = os.path.join(DATASET_DIR, RAW) ATTRIBUTE...
26.979167
94
0.677992
9b2e58eb7277626552563a9421b74eadecb150db
1,064
py
Python
sampleConfigs/generateConfigFiles.py
pnnl/ARTS
4fbb49611a0efdfa94bddb510289206f7b0acd5d
[ "ECL-2.0", "Apache-2.0" ]
9
2019-05-16T23:07:05.000Z
2020-10-21T16:15:01.000Z
sampleConfigs/generateConfigFiles.py
pnnl/ARTS
4fbb49611a0efdfa94bddb510289206f7b0acd5d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sampleConfigs/generateConfigFiles.py
pnnl/ARTS
4fbb49611a0efdfa94bddb510289206f7b0acd5d
[ "ECL-2.0", "Apache-2.0" ]
4
2019-09-10T17:08:10.000Z
2021-03-15T18:27:00.000Z
#!/usr/bin/env python3 import configparser import itertools as it import sys if(len(sys.argv) == 1): print(sys.argv[0], "NUM_GPU LAUNCHER") exit(0) if(len(sys.argv) == 3): launcher = sys.argv[2] else: launcher = "ssh" r2 = [str(x) for x in range(2)] r3 = [str(x) for x in range(3)] options = {} opti...
20.862745
64
0.655075
b1818048f49d777e08e17b6d3ac0a3780b6917c1
1,260
py
Python
api/permissions.py
ferrumie/multi-pay
3e6a6fc63de823c10b5c52ade73b8357ed8bfd48
[ "MIT" ]
null
null
null
api/permissions.py
ferrumie/multi-pay
3e6a6fc63de823c10b5c52ade73b8357ed8bfd48
[ "MIT" ]
null
null
null
api/permissions.py
ferrumie/multi-pay
3e6a6fc63de823c10b5c52ade73b8357ed8bfd48
[ "MIT" ]
null
null
null
from rest_framework import permissions from django.core.cache import cache class IsOwner(permissions.BasePermission): """ Object-level permission to only allow owners to have access to the requests """ def has_permission(self, request, view): return request.user and request.user.is_authentica...
32.307692
79
0.644444
3be2a3d6fea6e7074d23cdd89e597457fde0f944
9,243
py
Python
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/lifecycle_hook_list.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/lifecycle_hook_list.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/lifecycle_hook_list.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class LifecycleHookList: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value ...
30.81
223
0.646543
f0768f1af5082d30570467e49cdea80c2029a2b1
875
py
Python
astropy/stats/__init__.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
astropy/stats/__init__.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
astropy/stats/__init__.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This subpackage contains statistical tools provided for or used by Astropy. While the `scipy.stats` package contains a wide range of statistical tools, it is a general-purpose package, and is missing some that are particularly useful to astronomy or a...
35
75
0.752
9973462c7f138d73d5b5ea9d49ad48b85bca8d3e
280
py
Python
back/markdownchat/chat/models.py
ivanseibel/markdown-chat
3afe687183a49ba5426dc1636fe1f49de5b6f304
[ "MIT" ]
1
2022-01-20T17:50:03.000Z
2022-01-20T17:50:03.000Z
back/markdownchat/chat/models.py
ivanseibel/markdown-chat
3afe687183a49ba5426dc1636fe1f49de5b6f304
[ "MIT" ]
1
2021-09-06T22:38:10.000Z
2021-09-06T22:38:10.000Z
back/markdownchat/chat/models.py
ivanseibel/markdown-chat
3afe687183a49ba5426dc1636fe1f49de5b6f304
[ "MIT" ]
null
null
null
from django.db import models class SignedUser(models.Model): room = models.CharField(blank=False, null=False, max_length=50) username = models.CharField(blank=False, null=False, max_length=50) channel_name = models.CharField(blank=False, null=False, max_length=100)
35
76
0.760714
27171fbc12333917b03d104c4331137fe31e932d
2,173
py
Python
src/mfactcheck/pipelines/multi_sent.py
D-Roberts/multilingual_nli_ECIR
e7466f5e6c6b6246ae37c1c951003c13f56d84c8
[ "Apache-2.0" ]
2
2021-02-13T22:57:33.000Z
2021-03-29T09:41:08.000Z
src/mfactcheck/pipelines/multi_sent.py
D-Roberts/multilingual_nli_ECIR
e7466f5e6c6b6246ae37c1c951003c13f56d84c8
[ "Apache-2.0" ]
null
null
null
src/mfactcheck/pipelines/multi_sent.py
D-Roberts/multilingual_nli_ECIR
e7466f5e6c6b6246ae37c1c951003c13f56d84c8
[ "Apache-2.0" ]
null
null
null
"""Pipeline onnx client Sentence Selector cpu""" import collections import csv import json import os import numpy as np from mfactcheck.multi_retriever.sentences.data import ( SentenceProcessor, get_eval_data, get_topk_sentences_eval, ) from mfactcheck.multi_retriever.sentences.config_util import _get_sen...
35.622951
86
0.684307
637ef0ff4fb778956845f201b2fc7d19c7351f75
7,714
py
Python
calm/dsl/config/config.py
opywan/calm-dsl
1d89436d039a39265a0ae806022be5b52e757ac0
[ "Apache-2.0" ]
null
null
null
calm/dsl/config/config.py
opywan/calm-dsl
1d89436d039a39265a0ae806022be5b52e757ac0
[ "Apache-2.0" ]
null
null
null
calm/dsl/config/config.py
opywan/calm-dsl
1d89436d039a39265a0ae806022be5b52e757ac0
[ "Apache-2.0" ]
1
2020-04-07T12:21:13.000Z
2020-04-07T12:21:13.000Z
import configparser import errno import os from jinja2 import Environment, PackageLoader from calm.dsl.tools import get_logging_handle from .schema import validate_config, validate_init_config LOG = get_logging_handle(__name__) _CONFIG = None _CONFIG_FILE = None _INIT = None def make_file_dir(path, is_dir=False...
25.627907
88
0.654913
f07b798ca8f38e3b115da93fe94db93857bce477
3,214
py
Python
mysite/settings.py
bheavner/django_girls
3456eea7c488584af98710aaec6411c965491d8a
[ "MIT" ]
null
null
null
mysite/settings.py
bheavner/django_girls
3456eea7c488584af98710aaec6411c965491d8a
[ "MIT" ]
null
null
null
mysite/settings.py
bheavner/django_girls
3456eea7c488584af98710aaec6411c965491d8a
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.24. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
26.130081
91
0.698818
3bb5a13ae7c2cea9ef71a4042839d87cd1925bb5
12,342
py
Python
docs/source/conf.py
tjb900/distributed
f6bf1b7105f508f7435df898ee3ac00a2edefd65
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
tjb900/distributed
f6bf1b7105f508f7435df898ee3ac00a2edefd65
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
tjb900/distributed
f6bf1b7105f508f7435df898ee3ac00a2edefd65
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Dask.distributed documentation build configuration file, created by # sphinx-quickstart on Tue Oct 6 14:42:44 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated fi...
31.727506
80
0.718603
67dd463ce455c8bae0c5f475f6942f60905663cc
21,643
py
Python
sdk/python/pulumi_google_native/networkconnectivity/v1/policy_based_route_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/networkconnectivity/v1/policy_based_route_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/networkconnectivity/v1/policy_based_route_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
81.059925
1,118
0.711777
b0187997bf5c72498496acc700c720ed20fef4cf
124,922
py
Python
salt/minion.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
salt/minion.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
salt/minion.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Routines to set up a minion ''' # Import python libs from __future__ import absolute_import, print_function, with_statement import os import re import sys import copy import time import types import signal import fnmatch import logging import threading import traceback import contextlib impo...
41.52992
165
0.547542
92b826b9a5dc45ee8cb6d5a711e2282de26858a1
6,344
py
Python
venv/lib/python3.5/site-packages/awscli/paramfile.py
seancarnahan/CodeDeployGitHubDemo
464d25e3ed2ecf5b16ecc2f519190faf5f24b910
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.5/site-packages/awscli/paramfile.py
seancarnahan/CodeDeployGitHubDemo
464d25e3ed2ecf5b16ecc2f519190faf5f24b910
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.5/site-packages/awscli/paramfile.py
seancarnahan/CodeDeployGitHubDemo
464d25e3ed2ecf5b16ecc2f519190faf5f24b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
36.045455
78
0.684899
c8dad103de46f16ab2b864d45430a57e5a2b6ec1
512
py
Python
office365/onedrive/publicationFacet.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/onedrive/publicationFacet.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/onedrive/publicationFacet.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.runtime.client_value import ClientValue class PublicationFacet(ClientValue): def __init__(self, level=None, versionId=None): """ :param str level: The state of publication for this document. Either published or checkout. Read-only. :param str versionId: The unique identifi...
34.133333
117
0.697266
bc3e8ee66802f3d83d0357198a79c98d5772455d
2,094
py
Python
test/vanilla/Expected/AcceptanceTests/Report/report/_configuration.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
4
2020-10-22T20:35:38.000Z
2021-12-21T07:29:01.000Z
test/vanilla/Expected/AcceptanceTests/Report/report/_configuration.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
3
2020-09-09T15:16:15.000Z
2021-12-20T15:25:18.000Z
test/vanilla/Expected/AcceptanceTests/Report/report/_configuration.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
2
2020-11-10T07:16:23.000Z
2020-12-30T11:03:14.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 ...
41.058824
106
0.666667
4b05e19162a5cc7888db88a7abe8158bf229a328
3,894
py
Python
src/sas/sasgui/guiframe/custom_pstats.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
src/sas/sasgui/guiframe/custom_pstats.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
src/sas/sasgui/guiframe/custom_pstats.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
import cProfile, pstats, os def func_std_string(func_name): # match what old profile produced if func_name[:2] == ('~', 0): # special case for built-in functions name = func_name[2] if name.startswith('<') and name.endswith('>'): return '{%s}' % name[1:-1] else: ...
32.722689
78
0.479712
148f50dcdae20bfd954ff3ddba4a6b72597c8597
2,650
py
Python
utils/visualize_data.py
PointCloudYC/se-pseudogrid
65005d82fda1a31b8c945e02e378df102ba0fee0
[ "MIT" ]
2
2021-11-30T06:38:23.000Z
2021-12-17T01:38:32.000Z
utils/visualize_data.py
PointCloudYC/se-pseudogrid
65005d82fda1a31b8c945e02e378df102ba0fee0
[ "MIT" ]
null
null
null
utils/visualize_data.py
PointCloudYC/se-pseudogrid
65005d82fda1a31b8c945e02e378df102ba0fee0
[ "MIT" ]
null
null
null
""" Date: April 12, 2021 Author: YIN Chao Functionality: - read PSNet-5 dataset processed files (data/xxx/processed) - write each point cloud to ply files with xyzrgb and xyzLabel format - show each point cloud in open3d """ import sys import os import pickle import numpy as np import matplotlib.pyplot as plt import ...
37.323944
153
0.649434
3833a24c6865041f4357cf79429f866d000e22ef
10,528
py
Python
force_wfmanager/notifications/tests/test_ui_notification.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
1
2019-08-19T16:02:20.000Z
2019-08-19T16:02:20.000Z
force_wfmanager/notifications/tests/test_ui_notification.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
396
2017-07-18T15:19:55.000Z
2021-05-03T06:23:06.000Z
force_wfmanager/notifications/tests/test_ui_notification.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
2
2019-03-05T16:23:10.000Z
2020-04-16T08:59:11.000Z
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved. import unittest from testfixtures import LogCapture from threading import Event from force_bdss.api import ( BaseDriverEvent, MCOStartEvent, MCOProgressEvent, MCOFinishEvent, DataValue, ) from force_wfmanager.notificati...
34.631579
77
0.571524
06e396964bf27809f5c2302cfacefd53a65561d0
4,755
py
Python
src/repobee_plug/_exthooks.py
Rickard-Martensson/repobee
5c460e3388bc5b0843789fea747c800f692689c7
[ "MIT" ]
null
null
null
src/repobee_plug/_exthooks.py
Rickard-Martensson/repobee
5c460e3388bc5b0843789fea747c800f692689c7
[ "MIT" ]
11
2021-07-26T02:09:47.000Z
2022-03-29T02:15:24.000Z
src/repobee_plug/_exthooks.py
orquestradigital-actions/repobee
8b7bd49932837148422e08a18e33e9f62cd8987f
[ "MIT" ]
null
null
null
"""Hookspecs for repobee extension hooks. Extension hooks add something to the functionality of repobee, but are not necessary for its operation. Currently, all extension hooks are related to cloning repos. .. module:: exthooks :synopsis: Hookspecs for repobee extension hooks. """ import argparse import configpa...
27.485549
78
0.674869
8cec3edfa3bf148bb1e00c4d2309fa53a35e9c28
3,546
py
Python
packages/SwingSet/misc-tools/vat-map.py
danwt/agoric-sdk
e0f7ee8884648973c63bbcae587ea36e51f58a64
[ "Apache-2.0" ]
null
null
null
packages/SwingSet/misc-tools/vat-map.py
danwt/agoric-sdk
e0f7ee8884648973c63bbcae587ea36e51f58a64
[ "Apache-2.0" ]
null
null
null
packages/SwingSet/misc-tools/vat-map.py
danwt/agoric-sdk
e0f7ee8884648973c63bbcae587ea36e51f58a64
[ "Apache-2.0" ]
null
null
null
import sys, json, gzip, re, time from collections import defaultdict from pprint import pprint # python vat-map.py SLOGFILE[.gz] > vat-map.json # # Determines a name for each vatID, also the manager type and number of # deliveries. The resulting vat-map.json can be read by other tools to put a # description on each va...
38.543478
89
0.562606
75feee6b224cf948bb6f00521dc2ba60e310ecec
22,318
py
Python
mindmeld/converter/rasa.py
dyoshiha/mindmeld
95f0e8482594f00040766a2ee687e9c9338f5a74
[ "Apache-2.0" ]
null
null
null
mindmeld/converter/rasa.py
dyoshiha/mindmeld
95f0e8482594f00040766a2ee687e9c9338f5a74
[ "Apache-2.0" ]
null
null
null
mindmeld/converter/rasa.py
dyoshiha/mindmeld
95f0e8482594f00040766a2ee687e9c9338f5a74
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Cisco Systems, Inc. and others. 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...
43.420233
97
0.60086
19e33eaabc8002583190512848d1b97981cece8b
2,557
py
Python
dizoo/multiagent_particle/envs/multiagent/multi_discrete.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
464
2021-07-08T07:26:33.000Z
2022-03-31T12:35:16.000Z
dizoo/multiagent_particle/envs/multiagent/multi_discrete.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
177
2021-07-09T08:22:55.000Z
2022-03-31T07:35:22.000Z
dizoo/multiagent_particle/envs/multiagent/multi_discrete.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
92
2021-07-08T12:16:37.000Z
2022-03-31T09:24:41.000Z
# An old version of OpenAI Gym's multi_discrete.py. (Was getting affected by Gym updates) # (https://github.com/openai/gym/blob/1fb81d4e3fb780ccf77fec731287ba07da35eb84/gym/spaces/multi_discrete.py) import numpy as np import gym #from gym.spaces import prng class MultiDiscrete(gym.Space): """ - The multi-di...
47.351852
110
0.650763
c30fa4d213ccd71b1af04ff23006d7e4c6ff3605
199,221
py
Python
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
AdvancedThreatAnalytics/content
0ae9a9f8e94f227161c808341619044489484dae
[ "MIT" ]
null
null
null
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
AdvancedThreatAnalytics/content
0ae9a9f8e94f227161c808341619044489484dae
[ "MIT" ]
null
null
null
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
AdvancedThreatAnalytics/content
0ae9a9f8e94f227161c808341619044489484dae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import demistomock as demisto import copy import json import re import os import sys import requests from pytest import raises, mark import pytest import warnings from CommonServerPython import xml2json, json2xml, entryTypes, formats, tableToMarkdown, underscoreToCamelCase, \ flattenCell, d...
36.77021
139
0.581851
dd3433c0903ab701ff475e35d88a96a291420282
3,706
py
Python
IO/summationPub.py
storage4grid/PROFESS-PROFEV
adf4e26488225206c249938c9eecc394a06f9677
[ "Apache-2.0" ]
null
null
null
IO/summationPub.py
storage4grid/PROFESS-PROFEV
adf4e26488225206c249938c9eecc394a06f9677
[ "Apache-2.0" ]
null
null
null
IO/summationPub.py
storage4grid/PROFESS-PROFEV
adf4e26488225206c249938c9eecc394a06f9677
[ "Apache-2.0" ]
null
null
null
""" Created on Sep 19 15:45 2019 @author: nishit """ import configparser import threading from abc import abstractmethod from queue import Queue from random import randrange import time from IO.MQTTClient import MQTTClient from IO.dataReceiver import DataReceiver from utils_intern.messageLogger import MessageLogger...
33.089286
109
0.57987
2598bc676520755448378dc0b5ba76d4e9886e1c
67,095
py
Python
Lib/tkinter/test/test_ttk/test_widgets.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
1,886
2021-05-03T23:58:43.000Z
2022-03-31T19:15:58.000Z
Lib/tkinter/test/test_ttk/test_widgets.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
70
2021-05-04T23:25:35.000Z
2022-03-31T18:42:08.000Z
Lib/tkinter/test/test_ttk/test_widgets.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
52
2021-05-04T21:26:03.000Z
2022-03-08T18:02:56.000Z
import unittest import tkinter from tkinter import ttk, TclError from test.support import requires import sys from tkinter.test.test_ttk.test_functions import MockTclObj from tkinter.test.support import (AbstractTkTest, tcl_version, get_tk_patchlevel, simulate_mouse_click) from tkinte...
35.860502
87
0.592414
dd29b750f19b1ed740fe1b21974595b1d6080a37
8,366
py
Python
reverse/A7105/a7105.py
guillaume-rico/HUBSAN-X4-H107D
cb291d53e4f68a27db834aea7e651f053cd64112
[ "MIT" ]
4
2016-10-11T01:09:33.000Z
2020-12-31T12:48:25.000Z
reverse/A7105/a7105.py
guillaume-rico/HUBSAN-X4-H107D
cb291d53e4f68a27db834aea7e651f053cd64112
[ "MIT" ]
null
null
null
reverse/A7105/a7105.py
guillaume-rico/HUBSAN-X4-H107D
cb291d53e4f68a27db834aea7e651f053cd64112
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import array # Original work of Avalrop : https://github.com/alvarop/protox # The protox module allows for the decoding of A7105 SPI packets # # Strobe packets are marked with an S. Register read/writes are marked R/W # # Sample output: # R RSSI = 0.886V # R RSSI = 0.872V # W PLL Regist...
26.308176
81
0.584031
f1f3b1f89ecf72014da867141d7efdcec433972b
241
py
Python
straal/__init__.py
piotr-szpetkowski/straal-python
f72fe0aed734bf5439c4ddee9bc9bad12f619c33
[ "Apache-2.0" ]
null
null
null
straal/__init__.py
piotr-szpetkowski/straal-python
f72fe0aed734bf5439c4ddee9bc9bad12f619c33
[ "Apache-2.0" ]
null
null
null
straal/__init__.py
piotr-szpetkowski/straal-python
f72fe0aed734bf5439c4ddee9bc9bad12f619c33
[ "Apache-2.0" ]
null
null
null
from straal.base import get_api_key, get_base_url, init from straal.cards import Card from straal.customers import Customer from straal.filters import filters __all__ = ["get_api_key", "get_base_url", "init", "Card", "Customer", "filters"]
34.428571
80
0.780083
ae954749a1e3ef3477e0530c4d433610d05be343
2,361
py
Python
pymc3_ext/tests/test_updates.py
wlad111/pymc3
43432834be5bbca72caa32d40a848515eea554a8
[ "Apache-2.0" ]
null
null
null
pymc3_ext/tests/test_updates.py
wlad111/pymc3
43432834be5bbca72caa32d40a848515eea554a8
[ "Apache-2.0" ]
null
null
null
pymc3_ext/tests/test_updates.py
wlad111/pymc3
43432834be5bbca72caa32d40a848515eea554a8
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np import theano from theano.configparser import change_flags from pymc3_ext.variational.updates import ( sgd, momentum, nesterov_momentum, adagrad, rmsprop, adadelta, adam, adamax, adagrad_window ) _a = theano.shared(1.) _b = _a*2 _m = theano.shared(n...
29.886076
98
0.597205
29c7172609ed4f24032a25aaf60f35878cd61506
15,778
py
Python
tests/python/pants_test/engine/legacy/test_changed_integration.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/legacy/test_changed_integration.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/legacy/test_changed_integration.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import shu...
40.352941
106
0.67949
7fdf0f90f7d73d2f4eea3c057ff0a56276356bed
3,075
py
Python
examples/src/main/python/forwarding.py
observernet/obsrj
8a9f630115d1df1055b68d97951ee35e9d841acc
[ "Apache-2.0" ]
null
null
null
examples/src/main/python/forwarding.py
observernet/obsrj
8a9f630115d1df1055b68d97951ee35e9d841acc
[ "Apache-2.0" ]
null
null
null
examples/src/main/python/forwarding.py
observernet/obsrj
8a9f630115d1df1055b68d97951ee35e9d841acc
[ "Apache-2.0" ]
1
2021-05-23T09:23:27.000Z
2021-05-23T09:23:27.000Z
# An example of how to use Jython to implement the "Getting Started" tutorial app, which receives coins and simply # sends them on (minus a fee). __author__ = "richard 'ragmondo' green" import sys # Change this to point to where you have a copy of the bitcoinj.jar sys.path.append(r"/path/to/bitcoinj-core-0.12-bundle...
33.791209
139
0.682602