hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79631513a63adedd3b8f349e9c96d3af9497a9e4
509
py
Python
examples/circuitplayground_touch_all.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
examples/circuitplayground_touch_all.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
examples/circuitplayground_touch_all.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
"""This example prints to the serial console when you touch the capacitive touch pads.""" from adafruit_circuitplayground import cp while True: if cp.touch_A1: print("Touched pad A1") if cp.touch_A2: print("Touched pad A2") if cp.touch_A3: print("Touched pad A3") if cp.touch_A4:...
26.789474
89
0.626719
796315155d543c6b84e1d8a2b4012e4351912cf9
1,472
py
Python
ridi/secret_keeper/cmdline.py
ridi/secret-keeper-python
152eee167ab108ca975be631c1ef51bbd9b263f1
[ "MIT" ]
18
2018-10-05T10:33:37.000Z
2021-05-23T18:24:14.000Z
ridi/secret_keeper/cmdline.py
ridi/secret-keeper-python
152eee167ab108ca975be631c1ef51bbd9b263f1
[ "MIT" ]
2
2018-12-04T07:45:51.000Z
2019-01-10T05:51:44.000Z
ridi/secret_keeper/cmdline.py
ridi/secret-keeper-python
152eee167ab108ca975be631c1ef51bbd9b263f1
[ "MIT" ]
1
2020-04-09T19:57:06.000Z
2020-04-09T19:57:06.000Z
from __future__ import print_function import argparse import sys import traceback from botocore.exceptions import ClientError from ridi.secret_keeper.connect import tell def run(arguments): description = """ Retrieve and print secrets from `secret-keeper`. You need to configure AWS credentials by enviro...
29.44
117
0.663723
7963151819c472ea52ab1c0b3ed32da27b838305
2,417
py
Python
src/pi_to_pi/publisher.py
FanchenBao/Rokku
cfc87bf93ed31d715bb0b4df2091565a6ba06bbd
[ "MIT" ]
1
2021-05-21T20:14:22.000Z
2021-05-21T20:14:22.000Z
src/pi_to_pi/publisher.py
FanchenBao/Rokku
cfc87bf93ed31d715bb0b4df2091565a6ba06bbd
[ "MIT" ]
14
2019-10-16T22:02:08.000Z
2021-06-02T00:34:52.000Z
src/pi_to_pi/publisher.py
FanchenBao/Rokku
cfc87bf93ed31d715bb0b4df2091565a6ba06bbd
[ "MIT" ]
4
2019-10-09T22:40:23.000Z
2020-02-25T14:40:40.000Z
import logging import logging.config import os from time import sleep import paho.mqtt.client as mqtt import yaml class Publisher: """ A wrapper class to create an instance of client to publish message and handle related functionalities. """ def __init__( self, name: str = "", ...
29.839506
79
0.591643
7963153538045b179f68a611488880fd229d604c
403
py
Python
hrwros_ws/build/turtlebot_stdr/catkin_generated/pkg.develspace.context.pc.py
AshfakYeafi/ros
7895302251088b7945e359f60a9c617e5170a72e
[ "MIT" ]
null
null
null
hrwros_ws/build/turtlebot_stdr/catkin_generated/pkg.develspace.context.pc.py
AshfakYeafi/ros
7895302251088b7945e359f60a9c617e5170a72e
[ "MIT" ]
null
null
null
hrwros_ws/build/turtlebot_stdr/catkin_generated/pkg.develspace.context.pc.py
AshfakYeafi/ros
7895302251088b7945e359f60a9c617e5170a72e
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "turtlebot_stdr" PROJECT_SPACE_DIR = "...
44.777778
77
0.717122
796315b86481fed44761e686be962d486b85a3a8
6,897
py
Python
dacc/__init__.py
i2mint/dacc
09f8048cf7ad5e21cb0b930ddad3e9ca79896974
[ "MIT" ]
null
null
null
dacc/__init__.py
i2mint/dacc
09f8048cf7ad5e21cb0b930ddad3e9ca79896974
[ "MIT" ]
null
null
null
dacc/__init__.py
i2mint/dacc
09f8048cf7ad5e21cb0b930ddad3e9ca79896974
[ "MIT" ]
null
null
null
__author__ = 'thor' from typing import Iterable def has_non_callable_attr(obj, attr): return hasattr(obj, attr) and not hasattr(getattr(obj, attr), '__call__') def ascertain_list(x): """ ascertain_list(x) blah blah returns [x] if x is not already a list, and x itself if it's already a list Use: Thi...
43.10625
120
0.61621
796315f50ec200af75eaa2d0b6c5e3c003ba97d3
1,598
py
Python
ingestion/src/metadata/ingestion/ometa/mixins/dashboard_mixin.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/ometa/mixins/dashboard_mixin.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/ometa/mixins/dashboard_mixin.py
TeddyCr/OpenMetadata
9e11ad54d99a3317c27c101269768e7aa2c6eb5f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Collate # 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, software...
33.291667
75
0.724656
7963169fafb136bbbdba25002558dfc334b7fffd
2,045
py
Python
test/test/mbed_gt_coverage_api.py
bridadan/mbed-os-tools
765f30b5350b1535a7805eb6338d8261e5371206
[ "Apache-2.0" ]
null
null
null
test/test/mbed_gt_coverage_api.py
bridadan/mbed-os-tools
765f30b5350b1535a7805eb6338d8261e5371206
[ "Apache-2.0" ]
null
null
null
test/test/mbed_gt_coverage_api.py
bridadan/mbed-os-tools
765f30b5350b1535a7805eb6338d8261e5371206
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018, Arm Limited and affiliates. # SPDX-License-Identifier: Apache-2.0 # # 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/lic...
32.460317
88
0.681663
7963175278a5fd7f2ac5347b8e6d1a7f73ada7b3
516
py
Python
examples/excel_export_multiple2.py
madhulika-accolite/fusionexport-python-client
70e9566288f615a4a38f1676e99ede1900da9163
[ "MIT" ]
1
2018-05-24T09:06:23.000Z
2018-05-24T09:06:23.000Z
examples/excel_export_multiple2.py
madhulika-accolite/fusionexport-python-client
70e9566288f615a4a38f1676e99ede1900da9163
[ "MIT" ]
null
null
null
examples/excel_export_multiple2.py
madhulika-accolite/fusionexport-python-client
70e9566288f615a4a38f1676e99ede1900da9163
[ "MIT" ]
null
null
null
from fusionexport import ExportManager, ExportConfig # Import sdk # Instantiate the ExportConfig class and add the required configurations export_config = ExportConfig() export_config["chartConfig"] = "resources/multiple.json" export_config["type"] = 'xlsx' # Instantiate the ExportManager class em = ExportManager() ...
36.857143
73
0.794574
79631827de7f17ac5fd0c94d0afb6a663063955a
1,434
py
Python
sdk/python/kfp/cli/utils/aliased_plurals_group.py
omarzouk/pipelines
f77ebc879741d4f5f5a6b7eede6d996788df3a45
[ "Apache-2.0" ]
1
2022-03-14T20:54:33.000Z
2022-03-14T20:54:33.000Z
sdk/python/kfp/cli/utils/aliased_plurals_group.py
omarzouk/pipelines
f77ebc879741d4f5f5a6b7eede6d996788df3a45
[ "Apache-2.0" ]
1
2020-02-06T12:53:44.000Z
2020-02-06T12:53:44.000Z
sdk/python/kfp/cli/utils/aliased_plurals_group.py
omarzouk/pipelines
f77ebc879741d4f5f5a6b7eede6d996788df3a45
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Kubeflow 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...
37.736842
78
0.688285
79631865ebdf0f283f1c74b9e807321a06cce5af
2,463
py
Python
engine/s3_storage.py
staciajohanna/squadbox
4701062e64c2e1d3ad75ac01fb75cf55caa1ee10
[ "MIT" ]
23
2017-10-29T17:36:30.000Z
2020-12-04T17:44:07.000Z
engine/s3_storage.py
staciajohanna/squadbox
4701062e64c2e1d3ad75ac01fb75cf55caa1ee10
[ "MIT" ]
60
2017-10-10T21:49:26.000Z
2021-06-10T19:12:42.000Z
engine/s3_storage.py
staciajohanna/squadbox
4701062e64c2e1d3ad75ac01fb75cf55caa1ee10
[ "MIT" ]
8
2017-12-09T16:18:53.000Z
2021-07-12T04:08:29.000Z
import hashlib, logging, random, time from django.core.files.storage import default_storage from django.core.files.base import ContentFile from http_handler.settings import WEBSITE from schema.models import Attachment def upload_attachments(attachments, msg_id): res = "" for attachment in attachments...
31.987013
114
0.618352
79631881db6a739849a643457cae7772d6286c32
61,693
py
Python
evennia/accounts/accounts.py
srmeier/evennia
574d7fbd4f65cae60c534fe592803057d452ed7b
[ "BSD-3-Clause" ]
null
null
null
evennia/accounts/accounts.py
srmeier/evennia
574d7fbd4f65cae60c534fe592803057d452ed7b
[ "BSD-3-Clause" ]
null
null
null
evennia/accounts/accounts.py
srmeier/evennia
574d7fbd4f65cae60c534fe592803057d452ed7b
[ "BSD-3-Clause" ]
null
null
null
""" Typeclass for Account objects Note that this object is primarily intended to store OOC information, not game info! This object represents the actual user (not their character) and has NO actual presence in the game world (this is handled by the associated character object, so you should customize that instead for ...
36.765793
129
0.586679
7963188c3630378f25072a53111a57acbc12df36
7,289
py
Python
plenum/test/freshness/test_replica_freshness.py
IDunion/indy-plenum
406afdeca1630be688f803a3cba15115faa20e2b
[ "Apache-2.0" ]
148
2017-07-11T19:05:25.000Z
2022-03-16T21:31:20.000Z
plenum/test/freshness/test_replica_freshness.py
IDunion/indy-plenum
406afdeca1630be688f803a3cba15115faa20e2b
[ "Apache-2.0" ]
561
2017-06-29T17:59:56.000Z
2022-03-09T15:47:14.000Z
plenum/test/freshness/test_replica_freshness.py
IDunion/indy-plenum
406afdeca1630be688f803a3cba15115faa20e2b
[ "Apache-2.0" ]
378
2017-06-29T17:45:27.000Z
2022-03-26T07:27:59.000Z
from plenum.common.constants import CONFIG_LEDGER_ID from plenum.common.messages.node_messages import Ordered from plenum.test.helper import freshness, assertExp from plenum.test.replica.conftest import * from plenum.test.test_node import getPrimaryReplica from stp_core.loop.eventually import eventually FRESHNESS_TIM...
34.875598
116
0.732336
796318b488fff9662206d6ea69e471f5aa3baff5
5,226
py
Python
sdk_thinning/SDK_Thinning.py
12star9/Python-Tools
dd5f1564670240f4b053355418669b274028e1a7
[ "MIT" ]
19
2018-08-24T08:03:12.000Z
2021-05-17T08:12:29.000Z
sdk_thinning/SDK_Thinning.py
12star9/Python-Tools
dd5f1564670240f4b053355418669b274028e1a7
[ "MIT" ]
3
2021-03-19T01:47:04.000Z
2022-01-13T01:23:02.000Z
sdk_thinning/SDK_Thinning.py
12star9/Python-Tools
dd5f1564670240f4b053355418669b274028e1a7
[ "MIT" ]
6
2019-07-07T16:51:12.000Z
2021-05-20T06:31:27.000Z
#coding=utf-8 import sys import os import subprocess import time def init_a_files(): specify_str = '.a' sdk_path = u'/Users/star.liao/Desktop/三轮测试游戏工程/TempleRun20425/TR2_SDKList/AdS_SDK/AggregationAdThirdSDKs' # 搜索指定目录 results = [] folders = [sdk_path] for folder in folders: # 把目...
29.693182
109
0.608305
79631a584c383177826ec96dd35ba18dc8431cde
196
py
Python
rootfs/usr/lib/pypy-upstream/lib_pypy/_testcapi.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/pypy-upstream/lib_pypy/_testcapi.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/pypy-upstream/lib_pypy/_testcapi.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
try: import cpyext except ImportError: raise ImportError("No module named '_testcapi'") else: import _pypy_testcapi _pypy_testcapi.compile_shared('_testcapimodule.c', '_testcapi')
24.5
67
0.75
79631ae2ab657785f48aa4301a4016b8ca9fd879
5,224
py
Python
rplugin/python3/gkeep/util.py
stevearc/gkeep.nvim
861ef3f32456245cde88646615bdeb078beefbf1
[ "MIT" ]
103
2021-08-28T06:29:13.000Z
2022-03-25T10:52:21.000Z
rplugin/python3/gkeep/util.py
stevearc/gkeep.nvim
861ef3f32456245cde88646615bdeb078beefbf1
[ "MIT" ]
9
2021-10-18T12:00:08.000Z
2022-03-30T08:22:20.000Z
rplugin/python3/gkeep/util.py
stevearc/gkeep.nvim
861ef3f32456245cde88646615bdeb078beefbf1
[ "MIT" ]
1
2021-11-01T12:11:13.000Z
2021-11-01T12:11:13.000Z
import enum import logging import os import re import subprocess import sys import typing as t import unicodedata from typing import TYPE_CHECKING import pynvim from gkeep.config import KEEP_FT, Config, State from gkeepapi.node import List, NodeType, Note, TopLevelNode from pynvim.api import Buffer if sys.version_inf...
26.927835
91
0.61696
79631b12606df2bda25387628f217f9d1f28b7fd
13,296
py
Python
Test/PythonTCs/LTE_4G_S1HandOverPrepFailure.py
clstefi/ignite
042a30527c78dd329560d8ed49ad95eb7029ea4f
[ "Apache-2.0" ]
2
2021-03-03T12:41:31.000Z
2021-03-08T15:27:49.000Z
Test/PythonTCs/LTE_4G_S1HandOverPrepFailure.py
clstefi/ignite
042a30527c78dd329560d8ed49ad95eb7029ea4f
[ "Apache-2.0" ]
8
2020-03-30T04:58:00.000Z
2021-01-18T05:59:06.000Z
Test/PythonTCs/LTE_4G_S1HandOverPrepFailure.py
clstefi/ignite
042a30527c78dd329560d8ed49ad95eb7029ea4f
[ "Apache-2.0" ]
11
2020-03-27T06:52:37.000Z
2021-08-17T15:53:11.000Z
# # Copyright (c) 2019, Infosys 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 in ...
59.891892
172
0.529483
79631db241e0df845740d12ecdc852dcd3655754
625
py
Python
src/irobotframework/tests/test_inspect.py
bollwyvl/irobotframework
e06f9f41fd9a84fd21ded7d6c888545843b49be4
[ "BSD-3-Clause" ]
9
2019-01-15T14:42:20.000Z
2021-11-16T13:42:40.000Z
src/irobotframework/tests/test_inspect.py
bollwyvl/irobotframework
e06f9f41fd9a84fd21ded7d6c888545843b49be4
[ "BSD-3-Clause" ]
9
2019-01-30T05:30:46.000Z
2021-05-08T23:45:30.000Z
src/irobotframework/tests/test_inspect.py
bollwyvl/irobotframework
e06f9f41fd9a84fd21ded7d6c888545843b49be4
[ "BSD-3-Clause" ]
5
2019-01-21T18:51:21.000Z
2020-12-16T09:10:06.000Z
# Copyright (c) 2018 Georgia Tech Research Corporation # Distributed under the terms of the BSD-3-Clause License """ Pure python tests of kernel behavior """ import jupyter_kernel_test from . import RobotBase class InspectTest(RobotBase, jupyter_kernel_test.KernelTests): code_inspect_sample = """ *** Settings *...
21.551724
63
0.7328
79631e1e905f6e6d243cad88a0e1d0c7a75da48f
1,110
py
Python
scons/templates/focal_options.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
scons/templates/focal_options.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
scons/templates/focal_options.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2020 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
31.714286
78
0.654054
79631e6aff71821f388d8d605927ea17a48423f5
13,306
py
Python
Discover-for-Cloud-Templates/AWS/troubleshooting/scripts/fd_accounts.py
musayev-io/Cloud-AWS
a783be40b125b0569185b3cc9595d4e41a76ca61
[ "MIT" ]
null
null
null
Discover-for-Cloud-Templates/AWS/troubleshooting/scripts/fd_accounts.py
musayev-io/Cloud-AWS
a783be40b125b0569185b3cc9595d4e41a76ca61
[ "MIT" ]
null
null
null
Discover-for-Cloud-Templates/AWS/troubleshooting/scripts/fd_accounts.py
musayev-io/Cloud-AWS
a783be40b125b0569185b3cc9595d4e41a76ca61
[ "MIT" ]
null
null
null
"""CrowdStrike Falcon Discover Account registration utility Leverages the FalconPy uber class to perform check, update, register and delete operations within a customer Falcon Discover environment. """ ############################################################################## # fd_accounts - Creation date - 2020.1...
50.78626
118
0.596723
79631eff6aa8af6c7cfefc84a6fd609fd4390c2d
13,457
py
Python
saleor/checkout/forms.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
3
2019-06-09T18:00:54.000Z
2019-06-18T10:07:39.000Z
saleor/checkout/forms.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
2
2019-07-03T21:08:32.000Z
2019-08-06T02:09:26.000Z
saleor/checkout/forms.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
null
null
null
"""Checkout-related forms and fields.""" from datetime import date from typing import Any from django import forms from django.conf import settings from django.core.exceptions import NON_FIELD_ERRORS from django.utils.encoding import smart_text from django.utils.safestring import mark_safe from django.utils.translatio...
33.063882
86
0.634614
79631f083881cd035b38344a5343d2d8b17214e7
7,498
py
Python
src/mask_rcnn_ros/scripts/mask_rcnn_node.py
TheMangalex/mask_rcnn_ros
87e36f5c52f555694a1199b3cbfde6a6516d5aba
[ "MIT" ]
18
2019-07-12T10:44:26.000Z
2022-03-13T14:01:26.000Z
src/mask_rcnn_ros/scripts/mask_rcnn_node.py
TheMangalex/mask_rcnn_ros
87e36f5c52f555694a1199b3cbfde6a6516d5aba
[ "MIT" ]
null
null
null
src/mask_rcnn_ros/scripts/mask_rcnn_node.py
TheMangalex/mask_rcnn_ros
87e36f5c52f555694a1199b3cbfde6a6516d5aba
[ "MIT" ]
9
2019-05-19T13:31:54.000Z
2022-03-13T14:01:24.000Z
#!/usr/bin/env python import os import threading import numpy as np import cv2 from cv_bridge import CvBridge import matplotlib.pyplot as plt import rospy from sensor_msgs.msg import Image from sensor_msgs.msg import RegionOfInterest from mask_rcnn_ros import coco from mask_rcnn_ros import utils from mask_rcnn_ros im...
35.704762
81
0.586957
79631f131794897cdb23589c1d19e01375a80e5b
952
py
Python
audiofile/core/convert.py
hagenw/audiofile
ea73b482398f96037a94943de599775c9d476e0d
[ "MIT" ]
null
null
null
audiofile/core/convert.py
hagenw/audiofile
ea73b482398f96037a94943de599775c9d476e0d
[ "MIT" ]
null
null
null
audiofile/core/convert.py
hagenw/audiofile
ea73b482398f96037a94943de599775c9d476e0d
[ "MIT" ]
null
null
null
import subprocess from audiofile.core.utils import ( binary_missing_error, broken_file_error, run_ffmpeg, run_sox, ) def convert( infile: str, outfile: str, offset: float = 0, duration: float = None, ): """Convert any audio/video file to WAV. Args: inf...
25.72973
62
0.634454
79631f4b8c1c7b6b83bbbe36571dfe503aea1a1d
2,758
py
Python
python/tvm/relay/backend/contrib/ethosu/te/inline.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
python/tvm/relay/backend/contrib/ethosu/te/inline.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
2,863
2017-08-17T19:55:50.000Z
2019-11-04T17:18:41.000Z
python/tvm/relay/backend/contrib/ethosu/te/inline.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.773333
92
0.713198
79631f83042165247589ea7a97f7d6130888c5f9
12,440
py
Python
qa/rpc-tests/util.py
znodes/Znode
472a1f2249fbe18ac0684eff41765fb06d9963d6
[ "MIT" ]
null
null
null
qa/rpc-tests/util.py
znodes/Znode
472a1f2249fbe18ac0684eff41765fb06d9963d6
[ "MIT" ]
null
null
null
qa/rpc-tests/util.py
znodes/Znode
472a1f2249fbe18ac0684eff41765fb06d9963d6
[ "MIT" ]
1
2019-01-08T11:35:08.000Z
2019-01-08T11:35:08.000Z
# Copyright (c) 2014 The Bitcoin Core developers # Copyright (c) 2014-2015 The Dash developers # Copyright (c) 2015-2017 The ZNDECoin developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helpful routines for regressio...
35.953757
108
0.648473
796322397c16f54654e67b1440d68d54b677370a
1,124
py
Python
catapult/integrations/clubhouse.py
robert-plutoflume/catapult
0a1697fad7810129b3dcc69696508a070123653b
[ "MIT" ]
null
null
null
catapult/integrations/clubhouse.py
robert-plutoflume/catapult
0a1697fad7810129b3dcc69696508a070123653b
[ "MIT" ]
null
null
null
catapult/integrations/clubhouse.py
robert-plutoflume/catapult
0a1697fad7810129b3dcc69696508a070123653b
[ "MIT" ]
null
null
null
""" Requires an API token. https://app.clubhouse.io/settings/account/api-tokens This should be set as the env var `CH_TOKEN`. """ import os from typing import List import requests # from catapult.integrations.github import CLOSED_PR_STATES, PR_URL_RE, get_pr_details from catapult.integrations.git import PullRequest,...
29.578947
86
0.670819
796322648530ecc015e0a6650b62fd724da19a4f
754
py
Python
config.py
Geerocktricks/-News-API
112d8022b4d9842d8dab7775d28dc5899ad4d4d0
[ "MIT" ]
null
null
null
config.py
Geerocktricks/-News-API
112d8022b4d9842d8dab7775d28dc5899ad4d4d0
[ "MIT" ]
null
null
null
config.py
Geerocktricks/-News-API
112d8022b4d9842d8dab7775d28dc5899ad4d4d0
[ "MIT" ]
null
null
null
import os class Config: ''' General configuration parent class ''' NEWS_API_BASE_URL ='https://newsapi.org/v2/top-headlines?sources={}&apiKey={}' SOURCES_URL = 'https://newsapi.org/v2/sources?category={}&apiKey={}' NEWS_API_KEY = os.environ.get('NEWS_API_KEY') class ProdConfig(Config): ...
22.176471
82
0.672414
796324604b3b85df1d6d5028e313cf3fb58b59ad
932
py
Python
pages/views.py
EugeneZnm/A-HOMES
b73fa5ec74eca177ca96920ed7ff7adca5f1e9e6
[ "Unlicense" ]
2
2019-08-18T09:40:09.000Z
2019-11-17T01:59:30.000Z
pages/views.py
EugeneZnm/A-HOMES
b73fa5ec74eca177ca96920ed7ff7adca5f1e9e6
[ "Unlicense" ]
5
2020-06-05T21:25:49.000Z
2021-09-08T01:04:43.000Z
pages/views.py
EugeneZnm/A-HOMES
b73fa5ec74eca177ca96920ed7ff7adca5f1e9e6
[ "Unlicense" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from listings.models import Listing from realtors.models import Realtor from listings.choices import price_choices, bedroom_choices, county_choices # Create your views here. def index(request): # getting three published listings by date l...
28.242424
83
0.700644
796324d9337dbed08a75aa0e1febf43e40ea635d
3,339
py
Python
homeassistant/components/ecoal_boiler/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/ecoal_boiler/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/ecoal_boiler/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
3
2019-04-28T16:35:45.000Z
2020-05-28T15:21:59.000Z
"""Support to control ecoal/esterownik.pl coal/wood boiler controller.""" import logging import voluptuous as vol from homeassistant.const import (CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_MONITORED_CONDITIONS, CONF_SENSORS, CONF_SWITCHES) import h...
37.1
79
0.718778
79632643936495f7796fd38dd22224f0531b6474
4,741
py
Python
tests/test_widget_dateinput.py
prafullkotecha/django-material
a81641634893db132d17a4b355b66c3e12bceeff
[ "BSD-3-Clause" ]
null
null
null
tests/test_widget_dateinput.py
prafullkotecha/django-material
a81641634893db132d17a4b355b66c3e12bceeff
[ "BSD-3-Clause" ]
null
null
null
tests/test_widget_dateinput.py
prafullkotecha/django-material
a81641634893db132d17a4b355b66c3e12bceeff
[ "BSD-3-Clause" ]
1
2021-11-04T15:25:11.000Z
2021-11-04T15:25:11.000Z
import json from django import forms from django.test.utils import override_settings from django_webtest import WebTest from . import build_test_urls class DateInputForm(forms.Form): test_field = forms.DateField( widget=forms.DateInput(attrs={'data-test': 'Test Attr'})) data_field = forms.BooleanFiel...
36.19084
122
0.632778
79632676f8d0caefbc00bbfda9029efabc48edbc
1,254
py
Python
arrpc/metrics.py
adrianchifor/arrpc
0547d593a330ea4ddf9065909113dcc3aa8b1f57
[ "Apache-2.0" ]
3
2019-06-10T04:23:51.000Z
2020-05-09T15:31:53.000Z
arrpc/metrics.py
adrianchifor/arrpc
0547d593a330ea4ddf9065909113dcc3aa8b1f57
[ "Apache-2.0" ]
null
null
null
arrpc/metrics.py
adrianchifor/arrpc
0547d593a330ea4ddf9065909113dcc3aa8b1f57
[ "Apache-2.0" ]
null
null
null
from multiprocessing import Lock from prometheus_client import start_http_server from arrpc import logger metrics_mutex = Lock() metrics_server_started = False shared_hostname_label = "" shared_namespace_label = "" shared_metrics = { "arrpc_client_metric_seconds": None, "arrpc_client_metric_bytes": None, ...
25.591837
88
0.692982
796326a9aa797b0a75ff88d8e12247cf926fdec2
14,206
py
Python
libdyson/dyson_device.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
28
2021-02-11T22:44:01.000Z
2022-03-28T22:29:35.000Z
libdyson/dyson_device.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
20
2021-03-07T15:18:58.000Z
2022-03-07T13:47:30.000Z
libdyson/dyson_device.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
25
2021-02-13T14:55:43.000Z
2022-03-29T22:27:55.000Z
"""Dyson device.""" from abc import abstractmethod import json import logging import threading from typing import Any, Optional import paho.mqtt.client as mqtt from .const import ( ENVIRONMENTAL_FAIL, ENVIRONMENTAL_INIT, ENVIRONMENTAL_OFF, MessageType, ) from .exceptions import ( DysonConnectionRe...
31.923596
82
0.61833
796326b8375c518968f7c523b88ac34002622954
6,348
py
Python
lite/examples/pose_estimation/raspberry_pi/visualizer.py
AmolShahh/examples
9321bae747548a70d9667752a5334e5330b1ce49
[ "Apache-2.0" ]
2
2021-10-05T05:33:26.000Z
2021-10-05T05:51:02.000Z
lite/examples/pose_estimation/raspberry_pi/visualizer.py
AmolShahh/examples
9321bae747548a70d9667752a5334e5330b1ce49
[ "Apache-2.0" ]
1
2020-11-20T14:36:21.000Z
2020-11-20T16:49:33.000Z
lite/examples/pose_estimation/raspberry_pi/visualizer.py
AmolShahh/examples
9321bae747548a70d9667752a5334e5330b1ce49
[ "Apache-2.0" ]
1
2021-09-20T03:17:50.000Z
2021-09-20T03:17:50.000Z
# Copyright 2021 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...
38.011976
79
0.695495
796326f98606dc1bdf8b155b92ae9186d5453235
1,598
py
Python
src/generate_asctb_owl.py
hubmapconsortium/hubmap-ontology
c78e23fd7166a415d4c321d108442f0b2b58bd08
[ "CC-BY-4.0" ]
1
2020-11-30T01:18:38.000Z
2020-11-30T01:18:38.000Z
src/generate_asctb_owl.py
hubmapconsortium/hubmap-ontology
c78e23fd7166a415d4c321d108442f0b2b58bd08
[ "CC-BY-4.0" ]
21
2019-04-16T13:46:29.000Z
2021-01-26T19:55:49.000Z
src/generate_asctb_owl.py
hubmapconsortium/hubmap-ontology
c78e23fd7166a415d4c321d108442f0b2b58bd08
[ "CC-BY-4.0" ]
1
2021-07-29T16:20:14.000Z
2021-07-29T16:20:14.000Z
import json, requests from urllib.parse import quote_plus from rdflib import Graph API_URL = 'https://asctb-api.herokuapp.com/v2/csv?output=jsonld&expanded=true&csvUrl={0}' #API_URL = 'https://asctb-api--staging.herokuapp.com/v2/csv?output=jsonld&expanded=true&csvUrl={0}' #API_URL = 'http://localhost:5000/v2/csv?outpu...
30.730769
126
0.717772
796327053eaa7c6a8741c9e577fce4cb28bb7764
1,222
py
Python
inan/cmds/netspace.py
inan0812/chia-blockchain
8de40989f56fb64d6ff1690ae0c2169cc11ad18b
[ "Apache-2.0" ]
1
2021-09-19T18:59:19.000Z
2021-09-19T18:59:19.000Z
inan/cmds/netspace.py
inan0812/chia-blockchain
8de40989f56fb64d6ff1690ae0c2169cc11ad18b
[ "Apache-2.0" ]
null
null
null
inan/cmds/netspace.py
inan0812/chia-blockchain
8de40989f56fb64d6ff1690ae0c2169cc11ad18b
[ "Apache-2.0" ]
1
2022-02-08T19:58:12.000Z
2022-02-08T19:58:12.000Z
import click @click.command("netspace", short_help="Estimate total farmed space on the network") @click.option( "-p", "--rpc-port", help=( "Set the port where the Full Node is hosting the RPC interface. " "See the rpc_port under full_node in config.yaml. " "[default: 35558]" ),...
28.418605
97
0.648118
796327950a140a206fa7045a8ba4af708f820f95
1,808
py
Python
_posts/2020/2020-04-10-python textbased adventure game/game01.py
hasturhu/asteroid
78c33046c309aa29120bd3b5f05f6c5c6556d512
[ "MIT" ]
1
2020-08-05T04:39:37.000Z
2020-08-05T04:39:37.000Z
_posts/2020/2020-04-10-python textbased adventure game/game01.py
hasturhu/asteroid
78c33046c309aa29120bd3b5f05f6c5c6556d512
[ "MIT" ]
2
2020-06-20T17:32:05.000Z
2021-08-19T15:14:38.000Z
_posts/2020/2020-04-10-python textbased adventure game/game01.py
hasturhu/hasturhu.github.io
0858416ec2d395607c6264e51cd993856857e1ff
[ "MIT" ]
null
null
null
# Setup from textwrap import dedent yes_no = ["yes", "no"] directions = ["west", "east", "south", "north"] # Start of game response = "" while response not in yes_no: response = input("\nYou are in front of an old white house. Would you like to step in?(yes/no)\n") if response == "yes": print("\nThere'...
34.113208
102
0.600664
796327c6e98cfa9ac30d96c0c92a33112af491da
1,515
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_extension_handler_instance_view.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_extension_handler_instance_view.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_extension_handler_instance_view.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
39.868421
82
0.634983
796327e84264570952be9cabfc0edbf62fa00a85
1,291
py
Python
feature_match.py
Zhuoli/object_similarity
2436413ad95a4920868256be4f6411b6f9c46844
[ "MIT" ]
null
null
null
feature_match.py
Zhuoli/object_similarity
2436413ad95a4920868256be4f6411b6f9c46844
[ "MIT" ]
null
null
null
feature_match.py
Zhuoli/object_similarity
2436413ad95a4920868256be4f6411b6f9c46844
[ "MIT" ]
null
null
null
import cv2 import numpy as np def feature_match(img1, img2): #-- Step 1: Detect the keypoints using SURF Detector, compute the descriptors # https://docs.opencv.org/3.4/d7/d60/classcv_1_1SIFT.html detector = cv2.SIFT_create(edgeThreshold=50) keypoints1, descriptors1 = detector.detectAndCompute(img1, No...
49.653846
133
0.725019
79632817662c55897adb2c4187778b073aa5f58c
7,496
py
Python
python/paddle/fluid/tests/unittests/test_normal.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/test_normal.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/test_normal.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2020 PaddlePaddle 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 app...
37.293532
78
0.589381
79632836508513f83672f3dc27dfd76bd7e8dff8
3,475
py
Python
lib/cfclient/utils/zmq_led_driver.py
NilanjanDaw/Ground-based-Control-and-Remote-Stabilization-for-MAV
86fe2e73d43f8384b42931cedbc5d7dc7ef90e67
[ "MIT" ]
null
null
null
lib/cfclient/utils/zmq_led_driver.py
NilanjanDaw/Ground-based-Control-and-Remote-Stabilization-for-MAV
86fe2e73d43f8384b42931cedbc5d7dc7ef90e67
[ "MIT" ]
null
null
null
lib/cfclient/utils/zmq_led_driver.py
NilanjanDaw/Ground-based-Control-and-Remote-Stabilization-for-MAV
86fe2e73d43f8384b42931cedbc5d7dc7ef90e67
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 20...
33.095238
77
0.605468
796328bf32cd9465fcb9f7eed247ff234aa36e9a
1,010
py
Python
DeepHash/model/plot.py
imhmhm/DeepHash
9907613e1b73818985bc585af613a960c8df7d20
[ "MIT" ]
506
2018-05-04T00:40:01.000Z
2022-03-30T12:15:29.000Z
DeepHash/model/plot.py
imhmhm/DeepHash
9907613e1b73818985bc585af613a960c8df7d20
[ "MIT" ]
55
2018-05-24T08:13:24.000Z
2022-02-19T22:47:58.000Z
DeepHash/model/plot.py
imhmhm/DeepHash
9907613e1b73818985bc585af613a960c8df7d20
[ "MIT" ]
131
2018-05-03T04:31:25.000Z
2022-03-05T03:48:30.000Z
import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import collections import pickle as pickle import os _since_beginning = collections.defaultdict(lambda: {}) _since_last_flush = collections.defaultdict(lambda: {}) _iter = [0] def tick(): _iter[0] += 1 def plot(name, value)...
24.047619
68
0.7
7963297a0f9be3c12a585375db455d0c67195194
7,179
py
Python
method_generator/tokenizer.py
prolidorpenrvapiroldon/cppclasshelper-sublime-text-plugin
209e2a23e9b82ecf5e317932cb03019e6f37afac
[ "MIT" ]
9
2019-06-03T00:58:51.000Z
2022-03-25T15:28:57.000Z
method_generator/tokenizer.py
prolidorpenrvapiroldon/cppclasshelper-sublime-text-plugin
209e2a23e9b82ecf5e317932cb03019e6f37afac
[ "MIT" ]
2
2019-02-20T03:32:12.000Z
2020-10-30T13:49:50.000Z
method_generator/tokenizer.py
prolidorpenrvapiroldon/cppclasshelper-sublime-text-plugin
209e2a23e9b82ecf5e317932cb03019e6f37afac
[ "MIT" ]
6
2020-02-25T12:39:55.000Z
2022-03-25T15:29:00.000Z
import re from .exceptions import ClassValidationException class Tokenizer: """ base tokenizer """ @classmethod def tokenize(cls, input_str): pass class ClassTokenizer(Tokenizer): """ class tokenizer creates tokens for all class components """ @classmethod def ...
30.811159
126
0.575289
79632b465bef0b93124e80b18a27548af7cb9b93
904
py
Python
livestyled/schemas/device_consent.py
andrelopez/python-sdk
3c83d4698ecf6b5b59003d20cb26644e0dd77f61
[ "MIT" ]
null
null
null
livestyled/schemas/device_consent.py
andrelopez/python-sdk
3c83d4698ecf6b5b59003d20cb26644e0dd77f61
[ "MIT" ]
1
2020-05-21T10:01:07.000Z
2020-05-21T10:01:07.000Z
livestyled/schemas/device_consent.py
andrelopez/python-sdk
3c83d4698ecf6b5b59003d20cb26644e0dd77f61
[ "MIT" ]
3
2021-02-01T10:13:36.000Z
2022-02-11T17:47:30.000Z
from marshmallow import EXCLUDE, fields, Schema from livestyled.models.device_consent import DeviceConsent class DeviceConsentSchema(Schema): class Meta: unknown = EXCLUDE model = DeviceConsent id = fields.Int() location_capture = fields.Boolean(data_key='locationCapture', allow_none=Tru...
45.2
97
0.766593
79632b57370be16672c33c46296a30b187f13a7c
1,619
py
Python
app/systems/celery/scheduler.py
criticallycode/zima
cd38cac1c0c33b362d110ae28deba3828daa3f4a
[ "Apache-2.0" ]
null
null
null
app/systems/celery/scheduler.py
criticallycode/zima
cd38cac1c0c33b362d110ae28deba3828daa3f4a
[ "Apache-2.0" ]
null
null
null
app/systems/celery/scheduler.py
criticallycode/zima
cd38cac1c0c33b362d110ae28deba3828daa3f4a
[ "Apache-2.0" ]
null
null
null
from celery import schedules from django_celery_beat.clockedschedule import clocked from django_celery_beat.schedulers import DatabaseScheduler, ModelEntry from db_mutex import DBMutexError, DBMutexTimeoutError from db_mutex.models import DBMutex from db_mutex.db_mutex import db_mutex from data.schedule.models import...
25.296875
89
0.688079
79632c4a820c707b4d385bda7b7d3345f37fc4f8
2,862
py
Python
lib/surface/run/jobs/logs/read.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/run/jobs/logs/read.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/run/jobs/logs/read.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. 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 requir...
35.775
117
0.689029
79632d66d911ff6084f8c9e031a6323abf8beaab
252
py
Python
setup.py
Pzwxy/message_board
bc7f705f6a729fd179ab5534b7b34c6b069e59aa
[ "Apache-2.0" ]
null
null
null
setup.py
Pzwxy/message_board
bc7f705f6a729fd179ab5534b7b34c6b069e59aa
[ "Apache-2.0" ]
null
null
null
setup.py
Pzwxy/message_board
bc7f705f6a729fd179ab5534b7b34c6b069e59aa
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name='guestbook', version='1.0.0', packages=find_packages(), include_package_data=True, install_requires=[ 'Flask', ], entry_points=""" [console_scripts] guestbook=guestbook:main """, )
15.75
43
0.718254
79632d93211eb85448838b8ef697934dcf793975
8,582
py
Python
pyod/models/hbos.py
DrewNow/pyod
4439904ce05e95c31dbeed22d34526f729eaad2b
[ "BSD-2-Clause" ]
1
2021-07-05T08:05:00.000Z
2021-07-05T08:05:00.000Z
pyod/models/hbos.py
DrewNow/pyod
4439904ce05e95c31dbeed22d34526f729eaad2b
[ "BSD-2-Clause" ]
null
null
null
pyod/models/hbos.py
DrewNow/pyod
4439904ce05e95c31dbeed22d34526f729eaad2b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Histogram-based Outlier Detection (HBOS) """ # Author: Yue Zhao <zhaoy@cmu.edu> # License: BSD 2 clause from __future__ import division from __future__ import print_function import numpy as np from numba import njit from sklearn.utils import check_array from sklearn.utils.validation import ...
36.675214
78
0.596248
79632de32e20965da6179d47090b214eb683779d
23,377
py
Python
custom/icds_reports/utils/aggregation_helpers/monolith/child_health_monthly.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/utils/aggregation_helpers/monolith/child_health_monthly.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/utils/aggregation_helpers/monolith/child_health_monthly.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
from dateutil.relativedelta import relativedelta from corehq.apps.userreports.models import StaticDataSourceConfiguration, get_datasource_config from corehq.apps.userreports.util import get_table_name from custom.icds_reports.const import ( AGG_COMP_FEEDING_TABLE, AGG_CHILD_HEALTH_PNC_TABLE, AGG_CHILD_HEAL...
62.505348
206
0.625529
79632e8a1d4933eac838514baeb669676b5bcde8
3,812
py
Python
equality/ssl/create_ssl.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
10
2021-07-04T15:14:12.000Z
2021-10-17T14:52:56.000Z
equality/ssl/create_ssl.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
11
2021-07-04T19:31:36.000Z
2022-01-11T02:46:23.000Z
equality/ssl/create_ssl.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
11
2021-07-04T21:49:17.000Z
2021-10-04T17:45:38.000Z
import datetime from pathlib import Path from typing import Any, Tuple import pkg_resources from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import rsa from cryptography...
35.626168
104
0.704617
79632eadce89c02efccbf46afa3caa7bab3d5105
6,287
py
Python
recommendation/api/types/translation/test/test_candidate_finders.py
wikimedia/research-recommendation-api
4f8ac4da0597185071953b2c1fdea13f7547f6a6
[ "Apache-2.0" ]
3
2016-11-14T16:33:13.000Z
2017-12-13T21:21:03.000Z
recommendation/api/types/translation/test/test_candidate_finders.py
wikimedia/research-recommendation-api
4f8ac4da0597185071953b2c1fdea13f7547f6a6
[ "Apache-2.0" ]
null
null
null
recommendation/api/types/translation/test/test_candidate_finders.py
wikimedia/research-recommendation-api
4f8ac4da0597185071953b2c1fdea13f7547f6a6
[ "Apache-2.0" ]
3
2017-01-28T01:33:04.000Z
2020-03-12T01:06:25.000Z
import pytest import responses import requests import urllib import json import re from recommendation.api.types.translation import candidate_finders from recommendation.api.external_data import fetcher PAGEVIEW_RESPONSE = { 'items': [ { 'access': 'all-access', 'month': '08', ...
36.34104
118
0.613488
79632ec4288abe705a6467f1c42c9dbd18cd42f7
602
py
Python
pyopengl/gl_window/gl_window.py
manzyun/pygame
e298c6a5fe9fbdf7fc2fa897605ad308c1595daa
[ "MIT" ]
11
2017-04-08T15:24:15.000Z
2021-12-12T03:16:34.000Z
pyopengl/gl_window/gl_window.py
manzyun/pygame
e298c6a5fe9fbdf7fc2fa897605ad308c1595daa
[ "MIT" ]
null
null
null
pyopengl/gl_window/gl_window.py
manzyun/pygame
e298c6a5fe9fbdf7fc2fa897605ad308c1595daa
[ "MIT" ]
7
2017-05-14T05:37:01.000Z
2021-12-12T03:16:42.000Z
#!/usr/bin/env python from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * import sys def main(): glutInit(sys.argv) glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE) glutInitWindowSize(300, 300) # ウィンドウサイズ glutInitWindowPosition(100, 100) # ウィンドウ位置 glutCreateWindow("OpenGLウィンドウの表...
22.296296
50
0.677741
79633110a601c62356b5d09461f2805ed9e51999
1,605
py
Python
codigo/Live59/exemplo_5.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live59/exemplo_5.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live59/exemplo_5.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
from asyncio import get_event_loop, sleep, ensure_future, gather from collections.abc import AsyncIterator from types import coroutine from functools import singledispatch from typing import Collection, Dict from io import IOBase @singledispatch @coroutine def aiter(iterator): pass @aiter.register(Collection) @c...
21.689189
64
0.698442
7963314ff91338171be3e39e639deed1bebcd46a
6,020
py
Python
agents/tools/in_graph_batch_env.py
dvbvr/batch-ppo
ab0688eef8622a512b27206dfd4da095d7ddeb39
[ "Apache-2.0" ]
null
null
null
agents/tools/in_graph_batch_env.py
dvbvr/batch-ppo
ab0688eef8622a512b27206dfd4da095d7ddeb39
[ "Apache-2.0" ]
null
null
null
agents/tools/in_graph_batch_env.py
dvbvr/batch-ppo
ab0688eef8622a512b27206dfd4da095d7ddeb39
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Agents 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 ag...
31.518325
79
0.687874
796332f5a211bb2833f5920f80acf86f26139042
477
py
Python
ex062.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
ex062.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
ex062.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
print('Gerador de PA') print('---' * 7) primeiro = int(input('Primeiro termo: ')) razao = int(input('Razão da PA: ')) termo = primeiro cont = 1 mais = 10 total = 0 while mais != 0: total += mais while cont <= total: print('{} -> '.format(termo), end='') termo += razao cont += 1 print...
25.105263
68
0.599581
79633592dd46a4349348678f23148163677eeee1
3,275
py
Python
var/spack/repos/builtin/packages/mgis/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-03-05T10:54:32.000Z
2021-03-05T14:14:52.000Z
var/spack/repos/builtin/packages/mgis/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/mgis/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Mgis(CMakePackage): """ The MFrontGenericInterfaceSupport project (MGIS) provides help...
38.081395
122
0.633282
796335fe01cd84c4897fd5189fefb728848b4457
11,870
py
Python
google/appengine/api/urlfetch.py
qsnake/google_appengine
6efcc6e4dd38fe2d2c210b57d3444c26b428af1f
[ "Apache-2.0" ]
null
null
null
google/appengine/api/urlfetch.py
qsnake/google_appengine
6efcc6e4dd38fe2d2c210b57d3444c26b428af1f
[ "Apache-2.0" ]
null
null
null
google/appengine/api/urlfetch.py
qsnake/google_appengine
6efcc6e4dd38fe2d2c210b57d3444c26b428af1f
[ "Apache-2.0" ]
1
2020-11-13T19:10:18.000Z
2020-11-13T19:10:18.000Z
#!/usr/bin/env python # # Copyright 2007 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 o...
31.823056
80
0.705981
796336e61caa5564bc3433b9016f7b19488ef6c3
1,711
py
Python
docs/code/tumblelog.py
embeddedfactor/mongoengine
3627969fce1e17882f84a45773b66a502f765269
[ "MIT" ]
null
null
null
docs/code/tumblelog.py
embeddedfactor/mongoengine
3627969fce1e17882f84a45773b66a502f765269
[ "MIT" ]
1
2021-06-01T23:44:17.000Z
2021-06-01T23:44:17.000Z
docs/code/tumblelog.py
embeddedfactor/mongoengine
3627969fce1e17882f84a45773b66a502f765269
[ "MIT" ]
null
null
null
from mongoengine import * connect('tumblelog') class Comment(EmbeddedDocument): content = StringField() name = StringField(max_length=120) class User(Document): email = StringField(required=True) first_name = StringField(max_length=50) last_name = StringField(max_length=50) class Post(Document):...
23.763889
73
0.702513
7963373092304ebdc76923fe940462798da4868c
7,626
py
Python
api-dev/venv/lib/python3.6/site-packages/web3/main.py
twaddle-dev/CoVid-19
37b1ca12d7ca1a066ab1c0d4a02d9b038d44e62f
[ "Apache-2.0" ]
1
2021-05-15T12:00:27.000Z
2021-05-15T12:00:27.000Z
api-dev/venv/lib/python3.6/site-packages/web3/main.py
twaddle-dev/CoVid-19
37b1ca12d7ca1a066ab1c0d4a02d9b038d44e62f
[ "Apache-2.0" ]
null
null
null
api-dev/venv/lib/python3.6/site-packages/web3/main.py
twaddle-dev/CoVid-19
37b1ca12d7ca1a066ab1c0d4a02d9b038d44e62f
[ "Apache-2.0" ]
null
null
null
from eth_abi.codec import ( ABICodec, ) from eth_utils import ( add_0x_prefix, apply_to_return_value, from_wei, is_address, is_checksum_address, keccak as eth_utils_keccak, remove_0x_prefix, to_bytes, to_checksum_address, to_int, to_text, to_wei, ) from hexbytes impor...
26.027304
96
0.631524
796337f17a6d26f73a87d8be0913602f418ba5f0
2,067
py
Python
lite/tests/unittest_py/op/common/test_elementwise_pow_op_base.py
devchai123/Paddle-Lite
442d6996a59c3498eae27610d49a0d5b2c320f24
[ "Apache-2.0" ]
null
null
null
lite/tests/unittest_py/op/common/test_elementwise_pow_op_base.py
devchai123/Paddle-Lite
442d6996a59c3498eae27610d49a0d5b2c320f24
[ "Apache-2.0" ]
null
null
null
lite/tests/unittest_py/op/common/test_elementwise_pow_op_base.py
devchai123/Paddle-Lite
442d6996a59c3498eae27610d49a0d5b2c320f24
[ "Apache-2.0" ]
1
2021-12-03T10:07:54.000Z
2021-12-03T10:07:54.000Z
# Copyright (c) 2021 PaddlePaddle 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 appli...
34.45
125
0.68118
79633828e36d218a17b34ee161671f4792bf8132
4,334
py
Python
sanity-checking-pruning/models/vgg.py
MitchellX/Pruning
c1c0a094d7e427319da775bda4752bb2ddbd6ee8
[ "MIT" ]
38
2020-10-20T08:56:49.000Z
2022-03-29T00:59:44.000Z
sanity-checking-pruning/models/vgg.py
MitchellX/Pruning
c1c0a094d7e427319da775bda4752bb2ddbd6ee8
[ "MIT" ]
1
2020-11-05T08:59:49.000Z
2020-11-07T16:04:45.000Z
sanity-checking-pruning/models/vgg.py
MitchellX/Pruning
c1c0a094d7e427319da775bda4752bb2ddbd6ee8
[ "MIT" ]
5
2020-10-28T03:10:42.000Z
2022-03-27T11:19:18.000Z
import math import torch.nn as nn import torch.utils.model_zoo as model_zoo import torch.nn.init as init __all__ = [ 'VGG', 'vgg11', 'vgg11_bn', 'vgg13', 'vgg13_bn', 'vgg16', 'vgg16_bn', 'vgg19_bn', 'vgg19', ] model_urls = { 'vgg11': 'https://download.pytorch.org/models/vgg11-bbd30ac9.pth', 'vgg13'...
30.097222
129
0.576142
796338a2c85174834f6551011b41ef643a45ceba
12,979
py
Python
maskgen/group_filter.py
spongezhang/maskgen
7284e300d1cb326a5349879de0bace9cfa8788a8
[ "BSD-3-Clause" ]
null
null
null
maskgen/group_filter.py
spongezhang/maskgen
7284e300d1cb326a5349879de0bace9cfa8788a8
[ "BSD-3-Clause" ]
null
null
null
maskgen/group_filter.py
spongezhang/maskgen
7284e300d1cb326a5349879de0bace9cfa8788a8
[ "BSD-3-Clause" ]
null
null
null
from maskgen_loader import MaskGenLoader import plugins from software_loader import getOperations, Operation, getOperation, getOperationsByCategory, insertCustomRule, getRule,getFilters import logging maskgenloader = MaskGenLoader() def callRule(functions, *args, **kwargs): import copy for func in functions:...
34.889785
129
0.580168
796338f017c3b39adf1d3a2827fd23fbc4270d87
553
py
Python
cvscan/utilities.py
bharlow058/NLP
b98ea5eca4385f09eebdf2bddb81d160a3cfb6c7
[ "MIT" ]
43
2017-04-08T15:43:24.000Z
2022-02-12T15:57:28.000Z
cvscan/utilities.py
SaketJNU/cvscan
b98ea5eca4385f09eebdf2bddb81d160a3cfb6c7
[ "MIT" ]
13
2016-12-26T04:42:52.000Z
2020-07-17T05:36:20.000Z
cvscan/utilities.py
SaketJNU/cvscan
b98ea5eca4385f09eebdf2bddb81d160a3cfb6c7
[ "MIT" ]
32
2016-12-05T06:02:29.000Z
2022-03-05T16:39:04.000Z
#!/usr/bin/env python """ Contains all the constants and utility functions used through out the project """ import pickle import dirpath # Constants LINES_FRONT = 3 LINES_BACK = 3 # Methods def get_avoid_organizations(): with open(dirpath.PKGPATH + '/data/organizations/avoid_organizations') as fp: avoid_...
20.481481
77
0.755877
79633bec5d61eaa59b1af4fabe07d7aad8b7d2be
196
py
Python
example.py
jaehwlee/silence-remover
5b45131d2c1979fed04ce2e09c2be4d6924b65e5
[ "Apache-2.0" ]
null
null
null
example.py
jaehwlee/silence-remover
5b45131d2c1979fed04ce2e09c2be4d6924b65e5
[ "Apache-2.0" ]
null
null
null
example.py
jaehwlee/silence-remover
5b45131d2c1979fed04ce2e09c2be4d6924b65e5
[ "Apache-2.0" ]
null
null
null
from utils import remove_silence from utils import load_audio if __name__ == "__main__": PATH = '/some/where/file.wav' audio = load_audio(PATH) trimmed_audio = remove_silence(audio)
21.777778
41
0.729592
79633e04319d02305a972fb191ce9b5795fd0e36
930
py
Python
setup.py
fakegit/airtest-selenium
37c2c8af7564a9b788c55239e6597007afce3e23
[ "Apache-2.0" ]
41
2018-07-11T08:21:23.000Z
2022-01-08T05:00:08.000Z
setup.py
fakegit/airtest-selenium
37c2c8af7564a9b788c55239e6597007afce3e23
[ "Apache-2.0" ]
12
2018-07-18T02:56:25.000Z
2021-05-24T07:20:05.000Z
setup.py
fakegit/airtest-selenium
37c2c8af7564a9b788c55239e6597007afce3e23
[ "Apache-2.0" ]
16
2018-11-24T01:16:45.000Z
2021-08-18T16:59:50.000Z
# coding=utf-8 from setuptools import setup, find_packages def parse_requirements(filename='requirements.txt'): """ load requirements from a pip requirements file. (replacing from pip.req import parse_requirements)""" lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter i...
35.769231
109
0.733333
79633eafaf6dc07c134c916967e2bf534127c966
46,328
py
Python
hexrd/unitcell.py
saransh13/hexrd3
c09fb4f7123f14e645ca5e985dce6ed968892453
[ "BSD-3-Clause" ]
null
null
null
hexrd/unitcell.py
saransh13/hexrd3
c09fb4f7123f14e645ca5e985dce6ed968892453
[ "BSD-3-Clause" ]
null
null
null
hexrd/unitcell.py
saransh13/hexrd3
c09fb4f7123f14e645ca5e985dce6ed968892453
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from hexrd import constants from hexrd import symmetry, symbols import warnings import h5py from pathlib import Path from scipy.interpolate import interp1d import time class unitcell: ''' >> @AUTHOR: Saransh Singh, Lawrence Livermore National Lab, saransh1@llnl.gov >> @DATE: 1...
32.717514
120
0.498316
79633f0d99b7678a831822202f6e0881820670f3
5,838
py
Python
nasws/cnn/search_space/nasbench101/lib/cifar.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
8
2021-04-13T01:52:11.000Z
2022-03-30T03:53:12.000Z
nasws/cnn/search_space/nasbench101/lib/cifar.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
4
2021-05-29T01:41:00.000Z
2021-08-24T09:40:43.000Z
nasws/cnn/search_space/nasbench101/lib/cifar.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
null
null
null
# Copyright 2019 The Google Research 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 agree...
31.219251
80
0.679685
79633f187b6d1cdcc85811ae0638e79b79fad1fe
1,531
py
Python
insight_face/take_pic.py
livingbio/InsightFace_Pytorch
404a7772c9efba52e28cd0c3dab32b0d91c89ca9
[ "MIT" ]
null
null
null
insight_face/take_pic.py
livingbio/InsightFace_Pytorch
404a7772c9efba52e28cd0c3dab32b0d91c89ca9
[ "MIT" ]
null
null
null
insight_face/take_pic.py
livingbio/InsightFace_Pytorch
404a7772c9efba52e28cd0c3dab32b0d91c89ca9
[ "MIT" ]
null
null
null
import cv2 import argparse from insight_face.mtcnn import MTCNN from datetime import datetime from PIL import Image import numpy as np parser = argparse.ArgumentParser(description='take a picture') parser.add_argument('--name','-n', default='unknown', type=str,help='input the name of the recording person') args = par...
28.351852
128
0.586545
79633f2e1a555af50fdda94acfca11254241d281
1,591
py
Python
tkew.py
J-Obog/t-kew
db05c4d2b0e284038a8d29012d554a477dbfd8d2
[ "MIT" ]
null
null
null
tkew.py
J-Obog/t-kew
db05c4d2b0e284038a8d29012d554a477dbfd8d2
[ "MIT" ]
null
null
null
tkew.py
J-Obog/t-kew
db05c4d2b0e284038a8d29012d554a477dbfd8d2
[ "MIT" ]
null
null
null
from threading import Thread from multiprocessing import cpu_count from typing import List, Tuple, Optional DEFAULT_WORKER_SIZE = cpu_count() // 2 class TaskQueue: def __init__(self, num_workers: int = DEFAULT_WORKER_SIZE): self.__workers: List[Thread] = [Thread(target=self.__listen, args=(wid,) ) for wi...
30.596154
113
0.551854
79633f47f9d1caa3f63fc587e4c3fd526d525487
1,840
py
Python
netbox/utilities/background_tasks.py
aslafy-z/netbox
a5512dd4c46c005df8752fc330c1382ac22b31ea
[ "Apache-2.0" ]
2
2021-07-08T03:58:12.000Z
2022-02-11T21:50:46.000Z
netbox/utilities/background_tasks.py
emersonfelipesp/netbox
fecca5ad83fb6b48a2f15982dfd3242653f105f9
[ "Apache-2.0" ]
25
2019-09-17T19:40:50.000Z
2022-03-11T04:01:55.000Z
netbox/utilities/background_tasks.py
emersonfelipesp/netbox
fecca5ad83fb6b48a2f15982dfd3242653f105f9
[ "Apache-2.0" ]
1
2018-12-05T12:03:21.000Z
2018-12-05T12:03:21.000Z
import logging import requests from cacheops.simple import cache, CacheMiss from django.conf import settings from django_rq import job from packaging import version # Get an instance of a logger logger = logging.getLogger('netbox.releases') @job('check_releases') def get_releases(pre_releases=False): url = sett...
34.716981
106
0.672283
79633faa13269422e0e44b6a460164b73ea848c5
15,944
py
Python
src/sqlfluff/rules/L052.py
fawix/sqlfluff
d9f64445b60a4746619c3cb577cf157e632a4862
[ "MIT" ]
null
null
null
src/sqlfluff/rules/L052.py
fawix/sqlfluff
d9f64445b60a4746619c3cb577cf157e632a4862
[ "MIT" ]
null
null
null
src/sqlfluff/rules/L052.py
fawix/sqlfluff
d9f64445b60a4746619c3cb577cf157e632a4862
[ "MIT" ]
null
null
null
"""Implementation of Rule L052.""" from collections import deque from typing import List, Optional from sqlfluff.core.parser import SymbolSegment from sqlfluff.core.parser.segments.base import BaseSegment from sqlfluff.core.parser.segments.raw import NewlineSegment from sqlfluff.core.rules.base import BaseRule, LintR...
40.364557
88
0.481059
7963418a3aa6269e8bfffdfc48396d6fd60b2242
106
py
Python
1_Python/Desafios/003_Soma_errada.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
1_Python/Desafios/003_Soma_errada.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
1_Python/Desafios/003_Soma_errada.py
guilhermebaos/Curso-em-Video-Python
0e67f6f59fa3216889bd2dde4a26b532c7c545fd
[ "MIT" ]
null
null
null
n1=input("Escreve um número") n2=input("Escreve outro número") print("A soma (não) é",n1+n2,"pois não?")
21.2
41
0.679245
79634241a98472b783c5f9836d41ffaf7686470c
1,187
py
Python
aasaan/aasaan/settings/prod.py
deepakkt/aasaan
77ef72e785e6ae562f51ae64fa9d85faf860c315
[ "MIT" ]
null
null
null
aasaan/aasaan/settings/prod.py
deepakkt/aasaan
77ef72e785e6ae562f51ae64fa9d85faf860c315
[ "MIT" ]
15
2020-06-05T19:26:26.000Z
2022-03-11T23:33:53.000Z
aasaan/aasaan/settings/prod.py
deepakkt/aasaan
77ef72e785e6ae562f51ae64fa9d85faf860c315
[ "MIT" ]
null
null
null
from .base import * # for prod environments, the static items are served with # Nginx from a hardcoded path instead of relative paths # like in dev environments. So override the paths # present in base.py del STATIC_PATH STATIC_ROOT = "/var/www/aasaan/static" MEDIA_ROOT = "/var/www/aasaan/media" BIN_ROOT = "/home/deep...
22.826923
71
0.69166
796342a07d0949b7d8f2511713b330ee7130d535
5,703
py
Python
main.py
doublestraus/secret-finder
23babe9329b0cf13c78de9d22af58927575586e2
[ "Apache-2.0" ]
2
2021-11-10T22:36:31.000Z
2021-11-12T12:26:34.000Z
main.py
doublestraus/secret-finder
23babe9329b0cf13c78de9d22af58927575586e2
[ "Apache-2.0" ]
null
null
null
main.py
doublestraus/secret-finder
23babe9329b0cf13c78de9d22af58927575586e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import json import argparse import time import traceback import sys import uuid import parsers.confluence.parser as confluence_parser import parsers.jira.parser as jira_parser import parsers.redmine.parser as redmine_parser from termcolor import colored, cprint from datetime import datetime def ge...
35.42236
117
0.642644
79634313683e424df3ce531c1d7fdf4ca7cca3a7
10,509
py
Python
robot-server/tests/modules/test_module_data_mapper.py
Opentrons/labware
e21d8db51eac5818477264a45ef12c0a2d15fb72
[ "Apache-2.0" ]
2
2015-11-10T17:49:51.000Z
2016-01-15T04:43:37.000Z
robot-server/tests/modules/test_module_data_mapper.py
Opentrons/labware
e21d8db51eac5818477264a45ef12c0a2d15fb72
[ "Apache-2.0" ]
null
null
null
robot-server/tests/modules/test_module_data_mapper.py
Opentrons/labware
e21d8db51eac5818477264a45ef12c0a2d15fb72
[ "Apache-2.0" ]
null
null
null
"""Tests for robot_server.modules.module_data_mapper.""" import pytest from opentrons.protocol_engine import ModuleModel from opentrons.drivers.rpi_drivers.types import USBPort as HardwareUSBPort from opentrons.hardware_control.modules import ( LiveData, ModuleType, MagneticStatus, TemperatureStatus, ...
33.57508
112
0.590541
79634578b75cb2d99d56b368d98f76f1795f1218
8,118
py
Python
tests/test_deprecated.py
illiumst/pytorch-lightning
9893681859dc60b5e4e8fab46bdfbbdec2979f92
[ "Apache-2.0" ]
1
2020-06-01T01:58:05.000Z
2020-06-01T01:58:05.000Z
tests/test_deprecated.py
illiumst/pytorch-lightning
9893681859dc60b5e4e8fab46bdfbbdec2979f92
[ "Apache-2.0" ]
null
null
null
tests/test_deprecated.py
illiumst/pytorch-lightning
9893681859dc60b5e4e8fab46bdfbbdec2979f92
[ "Apache-2.0" ]
null
null
null
"""Test deprecated functionality which will be removed in vX.Y.Z""" import sys import pytest from pytorch_lightning import Trainer import tests.base.utils as tutils from tests.base import EvalModelTemplate def _soft_unimport_module(str_module): # once the module is imported e.g with parsing with pytest it liv...
42.062176
94
0.727396
796346c9650d0a88c57db7412b3f9f70ef959a17
8,958
py
Python
varats/varats/tools/driver_build_setup.py
se-passau/VaRA-Tool-Suite
b81d795327431af8c854244c67b67ce97d512b2b
[ "BSD-2-Clause" ]
8
2019-10-30T08:07:44.000Z
2020-11-13T08:02:36.000Z
varats/varats/tools/driver_build_setup.py
se-passau/VaRA-Tool-Suite
b81d795327431af8c854244c67b67ce97d512b2b
[ "BSD-2-Clause" ]
342
2019-02-14T15:53:31.000Z
2020-11-03T18:11:27.000Z
varats/varats/tools/driver_build_setup.py
se-passau/VaRA-Tool-Suite
b81d795327431af8c854244c67b67ce97d512b2b
[ "BSD-2-Clause" ]
3
2020-04-15T13:24:44.000Z
2020-10-27T21:13:10.000Z
"""Driver module for `vara-buildsetup`.""" import os import typing as tp from pathlib import Path from tempfile import TemporaryDirectory import click from plumbum import colors from varats.containers.containers import ( ImageBase, run_container, BaseImageCreationContext, create_dev_image, ) from var...
29.084416
80
0.669904
796347347be1f4c36adaec6929d3d74c7549e5c8
1,521
py
Python
dpx/hosting/views/admin/dashboard.py
DotPodcast/dotpodcast-dpx
5a084a07d094180eaefbb0946d274f74c1472e02
[ "MIT" ]
8
2018-06-10T20:41:50.000Z
2021-03-05T16:33:11.000Z
dpx/hosting/views/admin/dashboard.py
DotPodcast/dotpodcast-dpx
5a084a07d094180eaefbb0946d274f74c1472e02
[ "MIT" ]
8
2021-03-18T20:20:20.000Z
2022-03-11T23:15:30.000Z
dpx/hosting/views/admin/dashboard.py
DotPodcast/dotpodcast-dpx
5a084a07d094180eaefbb0946d274f74c1472e02
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.auth.mixins import LoginRequiredMixin from django.http.response import HttpResponse from django.views.generic.base import TemplateView, View from redis import StrictRedis from tempfile import mkstemp import json import os from . import AdminViewMixin class Dashboar...
28.166667
57
0.613412
79634735fb6d15b816ffae5c55d9708a15f7b247
20,635
py
Python
qcodes/instrument_drivers/AlazarTech/ATS9373.py
mizkulg/Qcodes
28448e2ce60041d436958a66529317d355ee4a9d
[ "MIT" ]
null
null
null
qcodes/instrument_drivers/AlazarTech/ATS9373.py
mizkulg/Qcodes
28448e2ce60041d436958a66529317d355ee4a9d
[ "MIT" ]
73
2020-10-08T09:28:41.000Z
2021-09-16T11:04:28.000Z
qcodes/instrument_drivers/AlazarTech/ATS9373.py
mizkulg/Qcodes
28448e2ce60041d436958a66529317d355ee4a9d
[ "MIT" ]
null
null
null
from distutils.version import LooseVersion import numpy as np from qcodes.utils import validators from qcodes.instrument_drivers.AlazarTech.ATS import AlazarTech_ATS from qcodes.instrument_drivers.AlazarTech.utils import TraceParameter class AlazarTech_ATS9373(AlazarTech_ATS): """ This class is the driver f...
49.366029
92
0.420838
796347585eb3760d4ddfce1de1bdcef03d345c59
4,413
py
Python
ohbm/exhibitor.py
koudyk/ohbm
36ca6b6e960d9e8bea9f98415ad3650d248e65f6
[ "MIT" ]
null
null
null
ohbm/exhibitor.py
koudyk/ohbm
36ca6b6e960d9e8bea9f98415ad3650d248e65f6
[ "MIT" ]
null
null
null
ohbm/exhibitor.py
koudyk/ohbm
36ca6b6e960d9e8bea9f98415ad3650d248e65f6
[ "MIT" ]
2
2017-06-24T15:46:33.000Z
2019-05-31T23:16:16.000Z
''' exhibitor: part of the ohbm-api ''' from ohbm.utils import get_url, ordered_to_dict, parse_item, parse_items class Exhibitor(): def __init__(self,api=None): if api == None: print("Please use this module from ohbm.api") else: self.api = api def get_result(self,url,...
44.13
117
0.670292
79634855d8a297b7e59c26d3a66919b4b5ac2898
852
py
Python
afield/models.py
robmurray/advking
290d17f17788ae4504d109195fb4391fbf4ca318
[ "Apache-2.0" ]
null
null
null
afield/models.py
robmurray/advking
290d17f17788ae4504d109195fb4391fbf4ca318
[ "Apache-2.0" ]
null
null
null
afield/models.py
robmurray/advking
290d17f17788ae4504d109195fb4391fbf4ca318
[ "Apache-2.0" ]
null
null
null
from django.db import models from datetime import datetime class Room(models.Model): name = models.CharField(max_length=50,default="") description = models.TextField(max_length=1000,default="") createDate = models.DateTimeField('date created',default=datetime.now, blank=True) def __str__(self): ...
35.5
91
0.738263
796348a574e0d2d478d1dc4eb6053d5639d4f417
3,110
py
Python
src/server_processor.py
NewYorkCoinNYC/electrum-server-redux
479c91522a0a0749f37cc19c067ae8d62b940661
[ "MIT" ]
null
null
null
src/server_processor.py
NewYorkCoinNYC/electrum-server-redux
479c91522a0a0749f37cc19c067ae8d62b940661
[ "MIT" ]
null
null
null
src/server_processor.py
NewYorkCoinNYC/electrum-server-redux
479c91522a0a0749f37cc19c067ae8d62b940661
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright(C) 2021 CryptoLover705 # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify,...
31.1
77
0.636013
79634a63f683b8b16d67afbb6ea1738317c837de
2,241
py
Python
beet/server/start_farmer.py
beetseeds/beet-blockchain-1
e5d93f1f9041c48dd0c38416d845c8675bf22738
[ "Apache-2.0" ]
7
2021-08-29T15:12:25.000Z
2022-02-09T04:28:38.000Z
beet/server/start_farmer.py
beetseeds/beet-blockchain-1
e5d93f1f9041c48dd0c38416d845c8675bf22738
[ "Apache-2.0" ]
null
null
null
beet/server/start_farmer.py
beetseeds/beet-blockchain-1
e5d93f1f9041c48dd0c38416d845c8675bf22738
[ "Apache-2.0" ]
3
2021-09-04T10:32:00.000Z
2022-03-15T08:44:25.000Z
import pathlib from typing import Dict from beet.consensus.constants import ConsensusConstants from beet.consensus.default_constants import DEFAULT_CONSTANTS from beet.farmer.farmer import Farmer from beet.farmer.farmer_api import FarmerAPI from beet.rpc.farmer_rpc_api import FarmerRpcApi from beet.server.outbound_mes...
32.478261
107
0.740741
79634b4b6c193c5c009ce47ea0f1105899627f4b
12,724
py
Python
fairseq/search.py
ictnlp/GMA
1c48db457f2d7f468a2f869d808a82e6c3f08f79
[ "MIT" ]
3
2022-03-14T02:27:17.000Z
2022-03-28T14:16:40.000Z
fairseq/search.py
ictnlp/GMA
1c48db457f2d7f468a2f869d808a82e6c3f08f79
[ "MIT" ]
2
2022-03-29T03:03:51.000Z
2022-03-31T10:50:53.000Z
fairseq/search.py
ictnlp/GMA
1c48db457f2d7f468a2f869d808a82e6c3f08f79
[ "MIT" ]
2
2022-03-21T14:23:09.000Z
2022-03-27T05:36:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import pdb import torch class Search(object): def __init__(self, tgt_dict): self.pad = tgt_dict.pad() self.u...
37.423529
100
0.59596
79634b66af9f2a20b71059b9a9d3ab1c2846b2c0
2,961
py
Python
critiquebrainz/frontend/views/event.py
reosarevok/critiquebrainz
c793a67df3c964d4d5adddb0e9f3d416cbc72975
[ "Apache-2.0" ]
null
null
null
critiquebrainz/frontend/views/event.py
reosarevok/critiquebrainz
c793a67df3c964d4d5adddb0e9f3d416cbc72975
[ "Apache-2.0" ]
null
null
null
critiquebrainz/frontend/views/event.py
reosarevok/critiquebrainz
c793a67df3c964d4d5adddb0e9f3d416cbc72975
[ "Apache-2.0" ]
null
null
null
# critiquebrainz - Repository for Creative Commons licensed reviews # # Copyright (C) 2018 MetaBrainz Foundation Inc. # # 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 Li...
40.013514
100
0.725093
79634b69eed1ba7966176f7e16b3b951af85596e
4,291
py
Python
VAEmodel.py
nshervt/GSVAE
6a7771a32634e39644be5549f1c24ee7507518b0
[ "MIT" ]
1
2022-02-17T21:06:28.000Z
2022-02-17T21:06:28.000Z
VAEmodel.py
nshervt/GSVAE
6a7771a32634e39644be5549f1c24ee7507518b0
[ "MIT" ]
null
null
null
VAEmodel.py
nshervt/GSVAE
6a7771a32634e39644be5549f1c24ee7507518b0
[ "MIT" ]
1
2021-02-10T22:03:41.000Z
2021-02-10T22:03:41.000Z
""" Author: Navid Shervani-Tabar """ import torch from torch import nn from torch.autograd import Variable from filter import scattering class VAEmod(nn.Module): def __init__(self, args): super(VAEmod, self).__init__() # -- training parameters self.device = args.device # -- gra...
33.263566
125
0.604754
79634b72bded157bd747635bfccdf70a24e8652d
9,320
py
Python
TP3/RiskAI/AI.py
RaphaelLapierre/INF4215
36e6c6594e81e202910251616fa9a3bf57a0fdcc
[ "MIT" ]
null
null
null
TP3/RiskAI/AI.py
RaphaelLapierre/INF4215
36e6c6594e81e202910251616fa9a3bf57a0fdcc
[ "MIT" ]
null
null
null
TP3/RiskAI/AI.py
RaphaelLapierre/INF4215
36e6c6594e81e202910251616fa9a3bf57a0fdcc
[ "MIT" ]
null
null
null
from AttackAction import * from PlaceTroopsAction import * from MoveAction import * # WARNING : IT IS FORBIDDEN TO USE ANY CLASS MEMBER THAT STARTS WITH _ # IN THE AI CLASS class AI: def __init__(self): pass # Choose a starting country one at the time # # remainingCountries : the countries tha...
36.692913
110
0.654399
79634bcd6f9c7ba2c85c0fe4a1ea866cac45a983
2,548
py
Python
flaviabernardes/flaviabernardes/cms/migrations/0006_auto_20151014_2028.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
flaviabernardes/flaviabernardes/cms/migrations/0006_auto_20151014_2028.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
flaviabernardes/flaviabernardes/cms/migrations/0006_auto_20151014_2028.py
rogerhil/flaviabernardes
30676c7e4b460f11ef9f09a33936ee3820b129da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import image_cropping.fields class Migration(migrations.Migration): dependencies = [ ('cms', '0005_auto_20151012_1611'), ] operations = [ migrations.AddField( model_name=...
39.8125
231
0.627551
79634d984dcb5b101405ca7cd61ca9e62511264f
21,821
py
Python
src/azure-cli/azure/cli/command_modules/storage/__init__.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
1
2020-12-23T03:23:33.000Z
2020-12-23T03:23:33.000Z
src/azure-cli/azure/cli/command_modules/storage/__init__.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/storage/__init__.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
1
2020-04-24T13:27:18.000Z
2020-04-24T13:27:18.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
61.641243
164
0.643921
79634d9909154da88aac11c468c54abc01ad39fc
4,479
py
Python
backend/spacy_ner.py
Lakshya31/ShellPrivacyFilterDemo
7e6afc0288b6aafccf0a5aabc763ed996e47fa91
[ "MIT" ]
4
2020-10-09T14:29:44.000Z
2020-10-09T17:10:42.000Z
backend/spacy_ner.py
Lakshya31/ShellPrivacyFilterDemo
7e6afc0288b6aafccf0a5aabc763ed996e47fa91
[ "MIT" ]
null
null
null
backend/spacy_ner.py
Lakshya31/ShellPrivacyFilterDemo
7e6afc0288b6aafccf0a5aabc763ed996e47fa91
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Named Entity Recognition using spaCy NER # Recogizing personal, official, confidential entities from text using custom NER model built using spaCy. # Author: Shreyash Gupta (Chrono-Logical) # Requirements # 1. spacy - use pip install spacy # In[ ]: import spacy import ra...
32.693431
110
0.543871
79634dbb13838dc96da36aad0c73b5ae612eedb4
3,016
py
Python
examples/httpbin/basic_test.py
strongjian/httprunner
a40c7892f3666dd1de200e53ecd5cee9fa8a68ee
[ "Apache-2.0" ]
1
2020-05-14T11:19:31.000Z
2020-05-14T11:19:31.000Z
examples/httpbin/basic_test.py
strongjian/httprunner
a40c7892f3666dd1de200e53ecd5cee9fa8a68ee
[ "Apache-2.0" ]
null
null
null
examples/httpbin/basic_test.py
strongjian/httprunner
a40c7892f3666dd1de200e53ecd5cee9fa8a68ee
[ "Apache-2.0" ]
null
null
null
# NOTICE: Generated By HttpRunner. DO'NOT EDIT! # FROM: examples/httpbin/basic.yml from httprunner import HttpRunner, TConfig, TStep class TestCaseBasic(HttpRunner): config = TConfig( **{ "name": "basic test with httpbin", "base_url": "https://httpbin.org/", "path": "ex...
30.77551
88
0.346154
79634e1379663aab3ea630a19d68b1ee6f19d902
1,811
py
Python
gui/assets.py
kgrgnff/alphasheep
a58c6c97bf1405604f63e8811ddbc3bf6cbc90eb
[ "MIT" ]
null
null
null
gui/assets.py
kgrgnff/alphasheep
a58c6c97bf1405604f63e8811ddbc3bf6cbc90eb
[ "MIT" ]
null
null
null
gui/assets.py
kgrgnff/alphasheep
a58c6c97bf1405604f63e8811ddbc3bf6cbc90eb
[ "MIT" ]
null
null
null
import os from simulator.card_defs import Card, Pip, Suit open_tarock_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data/images/cards/OpenTarock/") open_tarock_filenames = { Card(Suit.eichel, Pip.sau): "1.png", Card(Suit.gras, Pip.sau): "2.png", Card(Suit.herz, Pip.sau): "3....
40.244444
108
0.586969
79634f581f366c17e3ed8222bf637c1e13db9b01
1,107
py
Python
pandas/tests/arrays/categorical/test_warnings.py
developing-coder/pandas
9feb3ad92cc0397a04b665803a49299ee7aa1037
[ "BSD-3-Clause" ]
1
2019-05-04T03:42:25.000Z
2019-05-04T03:42:25.000Z
pandas/tests/arrays/categorical/test_warnings.py
developing-coder/pandas
9feb3ad92cc0397a04b665803a49299ee7aa1037
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/arrays/categorical/test_warnings.py
developing-coder/pandas
9feb3ad92cc0397a04b665803a49299ee7aa1037
[ "BSD-3-Clause" ]
1
2020-01-02T14:28:17.000Z
2020-01-02T14:28:17.000Z
import pytest import pandas as pd import pandas.util.testing as tm class TestCategoricalWarnings: def test_tab_complete_warning(self, ip): # https://github.com/pandas-dev/pandas/issues/16409 pytest.importorskip('IPython', minversion="6.0.0") from IPython.core.completer import provisionalc...
36.9
67
0.684734
79634f73e00951bb840489ec9d94254060bda5fb
67
py
Python
notifications/templatetags/__init__.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
notifications/templatetags/__init__.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
notifications/templatetags/__init__.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
# https://docs.djangoproject.com/en/3.0/howto/custom-template-tags/
67
67
0.776119
7963511b4124fbffe01ef840fec911f43d156954
104
py
Python
helpers/os_utils.py
Samadriae/Binance-volatility-trading-bot
42843c18de1c8d40cfc981c8b3b38111d2dbed1b
[ "MIT" ]
42
2021-07-07T06:14:05.000Z
2022-02-07T09:49:02.000Z
helpers/os_utils.py
PolyquantBot/Polyquant-bot
5e386dbb1c639d0e33ac6a4ae365ee36df781d71
[ "MIT" ]
5
2021-11-04T23:47:07.000Z
2021-12-30T08:00:04.000Z
helpers/os_utils.py
PolyquantBot/Polyquant-bot
5e386dbb1c639d0e33ac6a4ae365ee36df781d71
[ "MIT" ]
30
2021-07-13T20:45:56.000Z
2022-01-16T08:18:14.000Z
def rchop(s, suffix): if suffix and s.endswith(suffix): return s[:-len(suffix)] return s
26
37
0.615385
796351406c6fd2e0e05f7b6c59d11676e32a5885
1,305
py
Python
playCloser.py
Hexren/dhcpThemeSongs
071e69fff90bfc9c1df6d95545bbcf6cc65e9b53
[ "MIT" ]
null
null
null
playCloser.py
Hexren/dhcpThemeSongs
071e69fff90bfc9c1df6d95545bbcf6cc65e9b53
[ "MIT" ]
null
null
null
playCloser.py
Hexren/dhcpThemeSongs
071e69fff90bfc9c1df6d95545bbcf6cc65e9b53
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sys import argv #import os import syslog from soco import SoCo #beware of isc dhcp number conversion 'd0:22:be:20:05:e6' becomes 'd0:22:be:20:5:e6', without leading zeroes themes = { 'ttwt': 'http://www.synthesisradio.com/dailyguru/TTWT.mp3', 'closer': 'x-file-cifs://giselnas/music/...
27.765957
136
0.673563
796351e0ee79bba070f02e6c25dd3c3a5ab6ee0d
336
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/exceptions.py
paolofantozzi/cookiecutter-django
bcc8468b19bbdece813151243c83d017d6febd72
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/exceptions.py
paolofantozzi/cookiecutter-django
bcc8468b19bbdece813151243c83d017d6febd72
[ "BSD-3-Clause" ]
3
2020-11-25T19:21:40.000Z
2020-11-25T19:40:59.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/exceptions.py
paolofantozzi/cookiecutter-django
bcc8468b19bbdece813151243c83d017d6febd72
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Exceptions for users.""" from rest_framework.exceptions import APIException class UserNotActive(APIException): """Authentication failed exception with code for user not active.""" status_code = 401 default_code = 'user_not_active' default_detail = 'User not active. Should...
24
72
0.720238
7963524a106e3b8c5149100da2e4828f966dcc8a
2,617
py
Python
airflow/operators/hive_to_samba_operator.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
4
2018-12-14T05:14:02.000Z
2022-01-23T15:48:13.000Z
airflow/operators/hive_to_samba_operator.py
berniechiu/incubator-airflow
b85210d8596c1e05fbf3da2941aaca8170ae871e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
22
2019-12-09T23:22:07.000Z
2021-05-12T23:15:40.000Z
airflow/operators/hive_to_samba_operator.py
cse-airflow/incubator-airflow
215b8c8170bd63f4c449614945bb4b6d90f6a860
[ "Apache-2.0" ]
6
2020-06-09T02:16:58.000Z
2021-12-27T15:46:32.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
38.485294
76
0.724112
79635418883ed122e73f22bca876a2ccaf379b53
18,939
py
Python
hf/plotgenerator/timeseries.py
HappyFaceGoettingen/HappyFaceCore
6989b3ff110abbdd49533c42b06ad128ddebf7b8
[ "Apache-2.0" ]
null
null
null
hf/plotgenerator/timeseries.py
HappyFaceGoettingen/HappyFaceCore
6989b3ff110abbdd49533c42b06ad128ddebf7b8
[ "Apache-2.0" ]
null
null
null
hf/plotgenerator/timeseries.py
HappyFaceGoettingen/HappyFaceCore
6989b3ff110abbdd49533c42b06ad128ddebf7b8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2012 Institut für Experimentelle Kernphysik - Karlsruher Institut für Technologie # # 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://...
43.043182
150
0.552511
796354cdf07b1fac46974451cbffcb6198dde1a8
4,904
py
Python
tests/nnet/layers/test_batchnorm.py
Zac-HD/MyGrad
fbc375d28842e1af1ebaf62ca6da479609a6baf6
[ "MIT" ]
null
null
null
tests/nnet/layers/test_batchnorm.py
Zac-HD/MyGrad
fbc375d28842e1af1ebaf62ca6da479609a6baf6
[ "MIT" ]
null
null
null
tests/nnet/layers/test_batchnorm.py
Zac-HD/MyGrad
fbc375d28842e1af1ebaf62ca6da479609a6baf6
[ "MIT" ]
null
null
null
import hypothesis.extra.numpy as hnp import hypothesis.strategies as st import numpy as np from hypothesis import given, settings from numpy.testing import assert_allclose, assert_array_equal import mygrad as mg from mygrad import Tensor from mygrad.nnet.layers.batchnorm import batchnorm from tests.wrappers.uber impor...
29.017751
83
0.627855
796354e9adff6d0ad3c9e4008a62d8fbc9250936
22,842
py
Python
futu/common/pb/Notify_pb2.py
liteself/py-futu-api
a78f5b46f56d30fb82a42951823afea4b5ed1307
[ "Apache-2.0" ]
2
2020-03-18T09:54:03.000Z
2020-05-15T08:13:33.000Z
futu/common/pb/Notify_pb2.py
liteself/py-futu-api
a78f5b46f56d30fb82a42951823afea4b5ed1307
[ "Apache-2.0" ]
null
null
null
futu/common/pb/Notify_pb2.py
liteself/py-futu-api
a78f5b46f56d30fb82a42951823afea4b5ed1307
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: Notify.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _me...
36.723473
2,588
0.738202
7963558f6d863009d5cbc00d430f78c5d5aea6c2
4,826
py
Python
util/image_viewer/viewer_tools.py
graeme-winter/dials
78a696a6591e224e73204846f39771ebac0c2668
[ "BSD-3-Clause" ]
null
null
null
util/image_viewer/viewer_tools.py
graeme-winter/dials
78a696a6591e224e73204846f39771ebac0c2668
[ "BSD-3-Clause" ]
null
null
null
util/image_viewer/viewer_tools.py
graeme-winter/dials
78a696a6591e224e73204846f39771ebac0c2668
[ "BSD-3-Clause" ]
null
null
null
""" Various tools/controls used by the image viewer """ import wx import wx.lib.newevent from orderedset import OrderedSet ZeroMQEvent, EVT_ZEROMQ_EVENT = wx.lib.newevent.NewEvent() class ImageCollectionWithSelection(OrderedSet): """A Ordered-like object that tracks a 'currently selected item'""" def __in...
33.282759
95
0.649606