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
df75c7f45e2493a860ede35367ed9150664866bf
2,896
py
Python
homeassistant/components/alarm_control_panel/reproduce_state.py
KJonline/core
a1eaff43436e9769109906ca892359de946ac657
[ "Apache-2.0" ]
null
null
null
homeassistant/components/alarm_control_panel/reproduce_state.py
KJonline/core
a1eaff43436e9769109906ca892359de946ac657
[ "Apache-2.0" ]
null
null
null
homeassistant/components/alarm_control_panel/reproduce_state.py
KJonline/core
a1eaff43436e9769109906ca892359de946ac657
[ "Apache-2.0" ]
null
null
null
"""Reproduce an Alarm control panel state.""" from __future__ import annotations import asyncio import logging from typing import Any, Iterable from homeassistant.const import ( ATTR_ENTITY_ID, SERVICE_ALARM_ARM_AWAY, SERVICE_ALARM_ARM_CUSTOM_BYPASS, SERVICE_ALARM_ARM_HOME, SERVICE_ALARM_ARM_NIGHT...
27.846154
81
0.704765
2875e7e3385b8736891e0cc95f01c96f6c22c396
1,642
py
Python
data/p2DJ/New/program/cirq/startCirq84.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/cirq/startCirq84.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/cirq/startCirq84.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=2 # total number=7 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for ...
26.918033
77
0.696102
ba2461b9a24085ead6709d32ae139a5295c476ad
166
py
Python
guardiancl/device.py
guardiaocl/guardiaocl-servers
86c203656c2e9d1844a17963a4e5c2239b4eda1a
[ "Apache-2.0" ]
null
null
null
guardiancl/device.py
guardiaocl/guardiaocl-servers
86c203656c2e9d1844a17963a4e5c2239b4eda1a
[ "Apache-2.0" ]
null
null
null
guardiancl/device.py
guardiaocl/guardiaocl-servers
86c203656c2e9d1844a17963a4e5c2239b4eda1a
[ "Apache-2.0" ]
null
null
null
class Device: serial = "" description = "" def __init__(self, serial, description): self.serial = serial self.description = description
18.444444
44
0.614458
2bedeb4aaf31855781910b52987ca36e72b55bd2
1,572
py
Python
src/library/blas/AutoGemm/AutoGemm.py
tingxingdong/clean
9cdaed4c755b825b0c10a99f9974224993aa39a9
[ "Apache-2.0" ]
1
2021-07-07T11:28:56.000Z
2021-07-07T11:28:56.000Z
src/library/blas/AutoGemm/AutoGemm.py
tingxingdong/clean
9cdaed4c755b825b0c10a99f9974224993aa39a9
[ "Apache-2.0" ]
null
null
null
src/library/blas/AutoGemm/AutoGemm.py
tingxingdong/clean
9cdaed4c755b825b0c10a99f9974224993aa39a9
[ "Apache-2.0" ]
null
null
null
################################################################################ # AutoGemm # - Automatically generate gemm kernels based on tile parameters # - This script generates the following to ease integration into clBLAS: # - generate all the kernel files # - kernel selection logic # - include files for k...
32.75
120
0.592239
8fbf7dfbfe2a43bef8255eb9ed7763fc1ea34514
26
py
Python
packages/simcore-sdk/src/simcore_sdk/node_data/__init__.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
null
null
null
packages/simcore-sdk/src/simcore_sdk/node_data/__init__.py
KZzizzle/osparc-simcore
981bc8d193f3f5d507e3225f857e0308c339e163
[ "MIT" ]
17
2020-10-15T16:06:05.000Z
2022-03-21T18:48:21.000Z
packages/simcore-sdk/src/simcore_sdk/node_data/__init__.py
GitHK/osparc-simcore-forked
5b01a28d1b8028afcf9a735e1d46a73daa13686e
[ "MIT" ]
null
null
null
from . import data_manager
26
26
0.846154
f69c20ae3b98dd5477e055580f3d2133d7906e57
952
py
Python
test/testserver.py
pymacaron/pymacaron
884b68722bdd2ab90ad645848f300a73420ada1d
[ "BSD-2-Clause" ]
27
2018-08-08T09:40:47.000Z
2022-03-11T15:55:48.000Z
test/testserver.py
pymacaron/pymacaron
884b68722bdd2ab90ad645848f300a73420ada1d
[ "BSD-2-Clause" ]
9
2019-07-23T08:05:06.000Z
2019-12-16T12:07:32.000Z
test/testserver.py
pymacaron/pymacaron
884b68722bdd2ab90ad645848f300a73420ada1d
[ "BSD-2-Clause" ]
1
2020-06-16T13:47:04.000Z
2020-06-16T13:47:04.000Z
#!/usr/bin/env python import os import sys from pymacaron.log import pymlogger import json from flask import Flask sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) from pymacaron import API, letsgo log = pymlogger(__name__) app = Flask(__name__) def test_crash_reporter(msg, body)...
19.04
79
0.643908
db4b0c144c5ef281beeeac024c50cc5c9a833d13
4,930
py
Python
crabageprediction/venv/Lib/site-packages/mpl_toolkits/axisartist/axisline_style.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
crabageprediction/venv/Lib/site-packages/mpl_toolkits/axisartist/axisline_style.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
5
2022-01-16T10:08:41.000Z
2022-01-20T05:34:09.000Z
crabageprediction/venv/Lib/site-packages/mpl_toolkits/axisartist/axisline_style.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
4
2022-02-04T22:58:27.000Z
2022-02-14T19:29:18.000Z
import math import numpy as np from matplotlib.patches import _Style, FancyArrowPatch from matplotlib.transforms import IdentityTransform from matplotlib.path import Path class _FancyAxislineStyle: class SimpleArrow(FancyArrowPatch): """The artist class that will be returned for SimpleArrow style.""" ...
33.767123
79
0.546653
0d1f787b4873449cef1d90a3cbe90464999f4ad5
37
py
Python
src/lib/rexec.py
DTenore/skulpt
098d20acfb088d6db85535132c324b7ac2f2d212
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
src/lib/rexec.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
src/lib/rexec.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
import _sk_fail; _sk_fail._("rexec")
18.5
36
0.756757
6b81f33302f528c1b23be0003b7a3e9714f28d72
1,356
py
Python
Phase2/Backup_Files/create.py
skaefer143/291-Project2
08a6751c7742722af3db7e091770df79cf94d538
[ "MIT" ]
null
null
null
Phase2/Backup_Files/create.py
skaefer143/291-Project2
08a6751c7742722af3db7e091770df79cf94d538
[ "MIT" ]
null
null
null
Phase2/Backup_Files/create.py
skaefer143/291-Project2
08a6751c7742722af3db7e091770df79cf94d538
[ "MIT" ]
1
2019-09-17T00:21:22.000Z
2019-09-17T00:21:22.000Z
# CMPUT 291 - Mini Project 2 # Group 13 - Ken Li, Noah Kryzanowski, Storm Kaefer # Phase 2 - Create index files # Last Change By: Storm # Time Changed: # ---- # With help from https://www.cyberciti.biz/faq/python-execute-unix-linux-command-examples/ # ---- # Filenames must be indexedTweets.txt, indexedTerms.txt, and in...
33.9
163
0.699115
b1ff6f092fdf28a86f168d9c6f8b262b24bda329
7,672
py
Python
QGL/BasicSequences/StarkShift.py
gribeill/QGL
ce96caac94b9a5ee621a9bb9c56a14bf23c750e5
[ "Apache-2.0" ]
null
null
null
QGL/BasicSequences/StarkShift.py
gribeill/QGL
ce96caac94b9a5ee621a9bb9c56a14bf23c750e5
[ "Apache-2.0" ]
null
null
null
QGL/BasicSequences/StarkShift.py
gribeill/QGL
ce96caac94b9a5ee621a9bb9c56a14bf23c750e5
[ "Apache-2.0" ]
null
null
null
from ..PulsePrimitives import * from ..Compiler import compile_to_hardware from ..ChannelLibraries import EdgeFactory from ..PulseSequencePlotter import plot_pulse_files from .helpers import create_cal_seqs, delay_descriptor, cal_descriptor import numpy as np from collections.abc import Iterable from itertools import p...
35.354839
108
0.646376
88ab896873af8ebf61da98d50368aa2d9d6cef4d
1,458
py
Python
tweak_param.py
Sim19/SimGEXPwMotifs
dbf8ac78bf694bc8647b343df44e010b25c96815
[ "MIT" ]
null
null
null
tweak_param.py
Sim19/SimGEXPwMotifs
dbf8ac78bf694bc8647b343df44e010b25c96815
[ "MIT" ]
null
null
null
tweak_param.py
Sim19/SimGEXPwMotifs
dbf8ac78bf694bc8647b343df44e010b25c96815
[ "MIT" ]
null
null
null
# coding=utf-8 ''' functions for initializing delta and sigmasquared for datageneration ''' #### PACKAGES #### import numpy as np import numpy.linalg as la ################## #### FUNCTIONS #### def eigVal(matrix): eig = la.eigvals(matrix) return eig def tweakEigval(V_eig, Sigma_eig, M_eig, delta, frac, method=...
23.516129
69
0.661866
cb213c7464abbd61120152e3fa653524e50b50c9
4,661
py
Python
warre/tests/unit/api/v1/test_reservation.py
NeCTAR-RC/warre
4ca9bfaa6d0568cc8268d570b36c2c0fcb0f9d8e
[ "Apache-2.0" ]
1
2021-08-16T14:50:35.000Z
2021-08-16T14:50:35.000Z
warre/tests/unit/api/v1/test_reservation.py
NeCTAR-RC/warre
4ca9bfaa6d0568cc8268d570b36c2c0fcb0f9d8e
[ "Apache-2.0" ]
null
null
null
warre/tests/unit/api/v1/test_reservation.py
NeCTAR-RC/warre
4ca9bfaa6d0568cc8268d570b36c2c0fcb0f9d8e
[ "Apache-2.0" ]
null
null
null
# # 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 # ...
41.616071
78
0.599657
d281f6a610b7ccb4ccd560f5d1e452c5e526866f
8,112
py
Python
nova/api/openstack/compute/views/servers.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/views/servers.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/views/servers.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
2
2019-07-08T22:12:35.000Z
2020-07-24T08:27:24.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010-2011 OpenStack LLC. # Copyright 2011 Piston Cloud Computing, 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 o...
36.540541
78
0.552392
e798536b02b48956f417357156ccbf8f6accd1ad
725
py
Python
build_source/lib/util.py
YusunPark/YusunPark.github.io
f0e6a0195936f4dfcaf71b9a101f1d7efdbceabd
[ "DOC" ]
null
null
null
build_source/lib/util.py
YusunPark/YusunPark.github.io
f0e6a0195936f4dfcaf71b9a101f1d7efdbceabd
[ "DOC" ]
null
null
null
build_source/lib/util.py
YusunPark/YusunPark.github.io
f0e6a0195936f4dfcaf71b9a101f1d7efdbceabd
[ "DOC" ]
null
null
null
# coding: utf-8 import glob import os import collections def get_doc_list(base_path): """ guide 목록 수집 """ doc_info = collections.OrderedDict() doc_path = [] doc_path += glob.glob(os.path.join(base_path, '*', '*')) # doc_path += glob.glob(os.path.join(base_path, '*', '*_guide')) # doc_p...
21.969697
69
0.609655
86e445a42a38ac308879effde6340970d8dc8920
2,424
py
Python
Quantum.py
RicardoBBS/ShorAlgo
8403e4ace7d09e245f1876fa66ea3b5b347dcda3
[ "MIT" ]
null
null
null
Quantum.py
RicardoBBS/ShorAlgo
8403e4ace7d09e245f1876fa66ea3b5b347dcda3
[ "MIT" ]
null
null
null
Quantum.py
RicardoBBS/ShorAlgo
8403e4ace7d09e245f1876fa66ea3b5b347dcda3
[ "MIT" ]
null
null
null
import sys import numpy as np from matplotlib import pyplot as plt from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister, execute, Aer, visualization from random import randint def to_binary(N,n_bit): Nbin = np.zeros(n_bit, dtype=bool) for i in range(1,n_bit+1): bit_state = (N % (...
25.515789
163
0.565594
c8d46cf1694a6edef172faf02c8cd23becfa56ba
2,877
py
Python
train.py
zilongzheng/PaddleEBM
44356e281a21093b8a4607543a67f7c0601772c1
[ "Apache-2.0" ]
7
2021-02-08T07:34:22.000Z
2021-02-20T03:52:50.000Z
train.py
zilongzheng/PaddleEBM
44356e281a21093b8a4607543a67f7c0601772c1
[ "Apache-2.0" ]
null
null
null
train.py
zilongzheng/PaddleEBM
44356e281a21093b8a4607543a67f7c0601772c1
[ "Apache-2.0" ]
1
2021-09-20T21:19:56.000Z
2021-09-20T21:19:56.000Z
import os import sys import argparse from utils.config import get_config from utils.setup import setup from utils.logger import get_logger from trainer import Trainer def parse_args(): parser = argparse.ArgumentParser(description='PaddleEBM') parser.add_argument('-c', '--config-file...
30.606383
90
0.546055
c209f5f2ebfc423ee8740a5fa7b9b5607e4743a7
4,521
py
Python
tests/test_completer.py
abhishek-kumar-code/redfishtool_nsfcac
928edbf2c9c3ebfd6cb4722a2a77b1e63372211c
[ "MIT" ]
6
2019-03-08T00:00:41.000Z
2021-03-12T16:42:53.000Z
tests/test_completer.py
abhishek-kumar-code/redfishtool_nsfcac
928edbf2c9c3ebfd6cb4722a2a77b1e63372211c
[ "MIT" ]
null
null
null
tests/test_completer.py
abhishek-kumar-code/redfishtool_nsfcac
928edbf2c9c3ebfd6cb4722a2a77b1e63372211c
[ "MIT" ]
2
2019-05-08T02:43:06.000Z
2021-01-06T16:12:33.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import six import unittest from prompt_toolkit.document import Document from http_prompt.completer import HttpPromptCompleter from http_prompt.context import Context class TestCompleter(unittest.TestCase): def setUp(self): self.context = ...
33.738806
64
0.624419
41e3a6e838e79c0d5746ac8b6cb81bd8b924f04b
9,171
py
Python
src/sagemaker/chainer/model.py
satishpasumarthi/sagemaker-python-sdk
255a339ae985041ef47e3a80da91b9f54bca17b9
[ "Apache-2.0" ]
1
2021-12-10T16:18:29.000Z
2021-12-10T16:18:29.000Z
src/sagemaker/chainer/model.py
satishpasumarthi/sagemaker-python-sdk
255a339ae985041ef47e3a80da91b9f54bca17b9
[ "Apache-2.0" ]
20
2021-09-17T20:50:11.000Z
2021-12-09T00:29:02.000Z
src/sagemaker/chainer/model.py
satishpasumarthi/sagemaker-python-sdk
255a339ae985041ef47e3a80da91b9f54bca17b9
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
43.056338
100
0.654127
edb3ed10d965bba40b906d4e4c53ff287885abde
73,615
py
Python
spyder/plugins/explorer/widgets/explorer.py
feiser2016/spyder
b6e7a45f8bb12b9be6b279218c44e19f603685e8
[ "MIT" ]
null
null
null
spyder/plugins/explorer/widgets/explorer.py
feiser2016/spyder
b6e7a45f8bb12b9be6b279218c44e19f603685e8
[ "MIT" ]
null
null
null
spyder/plugins/explorer/widgets/explorer.py
feiser2016/spyder
b6e7a45f8bb12b9be6b279218c44e19f603685e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Files and Directories Explorer""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from __future__ im...
39.98642
82
0.545704
63d4fc3ec536d536b165d58ea27339117133136b
9,367
py
Python
satchmo/apps/payment/modules/paypal/views.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/payment/modules/paypal/views.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/payment/modules/paypal/views.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.utils.http import urlencode from django.utils.translation import ugettext as _ from django.views.decorators.cache import never_cache try: from djang...
38.706612
134
0.672254
6f245f652b4b1cd0f1a0cf6aa156f71485037a46
1,329
py
Python
Image_To_HTML.py
iamkazi/OCR-Tesseract
33a77cb4201725aac12c6fedb7a6d3ec26bd36dc
[ "Apache-2.0" ]
null
null
null
Image_To_HTML.py
iamkazi/OCR-Tesseract
33a77cb4201725aac12c6fedb7a6d3ec26bd36dc
[ "Apache-2.0" ]
null
null
null
Image_To_HTML.py
iamkazi/OCR-Tesseract
33a77cb4201725aac12c6fedb7a6d3ec26bd36dc
[ "Apache-2.0" ]
null
null
null
import pytesseract from PIL import Image import os #download tesseract from https://github.com/UB-Mannheim/tesseract/wiki pytesseract.pytesseract.tesseract_cmd = r'C:\Users\iam_kazi\AppData\Local\Tesseract-OCR\tesseract.exe' listfiles = os.listdir("C:\Data") for x in listfiles: img=Image.open("C:\\Dat...
32.414634
103
0.407825
21ff3925bc009fa27056f017a2bdb5538ae5ad65
1,038
py
Python
data/score_informed_transcription/midi/example_transpose_octave.py
bzcheeseman/Dali
a77c7ce60b20ce150a5927747e128688657907eb
[ "MIT" ]
null
null
null
data/score_informed_transcription/midi/example_transpose_octave.py
bzcheeseman/Dali
a77c7ce60b20ce150a5927747e128688657907eb
[ "MIT" ]
null
null
null
data/score_informed_transcription/midi/example_transpose_octave.py
bzcheeseman/Dali
a77c7ce60b20ce150a5927747e128688657907eb
[ "MIT" ]
null
null
null
from .MidiOutFile import MidiOutFile from .MidiInFile import MidiInFile """ This is an example of the smallest possible type 0 midi file, where all the midi events are in the same track. """ class Transposer(MidiOutFile): "Transposes all notes by 1 octave" def _transp(self, ch, note): if c...
25.317073
68
0.657033
42d9fc68b5afb7e7bf74e23d0ccf18ca38e99fa5
13,861
py
Python
siiptool/thirdparty/edk2_capsule_tool/Common/Uefi/Capsule/FmpCapsuleHeader.py
kdbarnes-intel/iotg-fbu
bf6c38240ef13c64d2776e48ec277b3c8bebce6f
[ "BSD-2-Clause" ]
15
2020-03-21T03:19:46.000Z
2022-03-02T07:12:57.000Z
siiptool/thirdparty/edk2_capsule_tool/Common/Uefi/Capsule/FmpCapsuleHeader.py
kdbarnes-intel/iotg-fbu
bf6c38240ef13c64d2776e48ec277b3c8bebce6f
[ "BSD-2-Clause" ]
7
2020-03-10T03:17:24.000Z
2021-06-08T17:47:34.000Z
siiptool/thirdparty/edk2_capsule_tool/Common/Uefi/Capsule/FmpCapsuleHeader.py
kdbarnes-intel/iotg-fbu
bf6c38240ef13c64d2776e48ec277b3c8bebce6f
[ "BSD-2-Clause" ]
11
2020-02-28T19:52:22.000Z
2022-03-02T07:15:51.000Z
## @file # Module that encodes and decodes a EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER with # a payload. # # Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies ...
45.745875
179
0.626362
44f1bf12451cf3b5934d89daa0e2a8643a358709
1,943
py
Python
samples/snippets/run_notification.py
adamread/python-bigquery-datatransfer
efdcdbbe743595a505f10e0d596a39d362223aaa
[ "Apache-2.0" ]
58
2020-03-05T16:06:45.000Z
2022-03-28T18:20:46.000Z
samples/snippets/run_notification.py
adamread/python-bigquery-datatransfer
efdcdbbe743595a505f10e0d596a39d362223aaa
[ "Apache-2.0" ]
120
2020-02-05T09:56:10.000Z
2022-03-23T00:19:09.000Z
samples/snippets/run_notification.py
adamread/python-bigquery-datatransfer
efdcdbbe743595a505f10e0d596a39d362223aaa
[ "Apache-2.0" ]
21
2020-02-05T23:11:23.000Z
2022-01-29T08:07:36.000Z
# Copyright 2021 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 agreed to in writing, s...
43.177778
87
0.784869
d8058f31cb7f09d7544c1d1440d32c94b61c8193
1,744
py
Python
models/base_model.py
artBoffin/GooeyBrain
60b08c713c97a4ae24ad9a47a73d69dab41d27ea
[ "Apache-2.0" ]
2
2017-07-13T04:53:47.000Z
2020-08-20T03:48:46.000Z
models/base_model.py
artBoffin/GooeyBrain
60b08c713c97a4ae24ad9a47a73d69dab41d27ea
[ "Apache-2.0" ]
11
2017-02-19T01:28:43.000Z
2022-03-11T23:15:40.000Z
models/base_model.py
artBoffin/GooeyBrain
60b08c713c97a4ae24ad9a47a73d69dab41d27ea
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import sys import time from models.parameter import Parameter from models.util import log, error import tensorflow as tf def time_string(): return time.strftime("%Y%m%d-%H%M%S") class BaseModel: def __init__(self, sess, params): self.log("module ctor...
29.559322
95
0.617546
b9f7c889c22befb25287d6f9989d796751ceb096
1,878
py
Python
source/wizard.py
awiouy/service.librespot
016bc87c98ab6b990dca8874916cf34937677396
[ "MIT" ]
3
2017-11-22T19:48:12.000Z
2017-12-31T00:31:22.000Z
source/wizard.py
awiouy/service.librespot
016bc87c98ab6b990dca8874916cf34937677396
[ "MIT" ]
null
null
null
source/wizard.py
awiouy/service.librespot
016bc87c98ab6b990dca8874916cf34937677396
[ "MIT" ]
1
2020-01-19T23:36:18.000Z
2020-01-19T23:36:18.000Z
################################################################################ # This file is part of LibreELEC - https://libreelec.tv # Copyright (C) 2016 Team LibreELEC # # LibreELEC is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publish...
34.777778
87
0.615548
cda3dbbfde293430ac9f28465fa2c75ca7320ffd
9,894
py
Python
api/tacticalrmm/automation/views.py
matstocks/tacticalrmm
3269d047f08546c2a44cbabb3c4c27211804bdf5
[ "MIT" ]
1
2020-08-14T20:42:31.000Z
2020-08-14T20:42:31.000Z
api/tacticalrmm/automation/views.py
3v1lW1th1n/tacticalrmm
ae96dba2aa6679fcccfc8a032158d0ea038f5423
[ "MIT" ]
5
2021-04-08T19:44:31.000Z
2021-09-22T19:34:33.000Z
api/tacticalrmm/automation/views.py
3v1lW1th1n/tacticalrmm
ae96dba2aa6679fcccfc8a032158d0ea038f5423
[ "MIT" ]
null
null
null
from django.db import DataError from django.shortcuts import get_object_or_404 from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from .models import Policy from agents.models import Agent from scripts.models import Script from clients.mod...
36.780669
89
0.5943
81360a22f7edb6ba4b68b6a07573f1e517862f1e
20,907
py
Python
twisted/internet/test/test_unix.py
jMyles/twisted
a5108c0db829847bbfd4bf427868eb0b13da0465
[ "Unlicense", "MIT" ]
1
2015-08-18T06:57:28.000Z
2015-08-18T06:57:28.000Z
Lib/site-packages/twisted/internet/test/test_unix.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/internet/test/test_unix.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2020-11-01T20:40:01.000Z
2020-11-01T20:40:01.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for implementations of L{IReactorUNIX}. """ from __future__ import division, absolute_import from stat import S_IMODE from os import stat, close, urandom from tempfile import mktemp from socket import AF_INET, SOCK_STREAM, socket from ...
34.386513
80
0.651696
5c36b21ae55acb34e150894ae32e7aadf102f20e
5,532
py
Python
Adafruit/Adafruit_I2C.py
jelly/prometheus-bmp180-exporter
1ff0dd880bad3c899a1b7034062fac0d6eff4dbc
[ "MIT" ]
null
null
null
Adafruit/Adafruit_I2C.py
jelly/prometheus-bmp180-exporter
1ff0dd880bad3c899a1b7034062fac0d6eff4dbc
[ "MIT" ]
null
null
null
Adafruit/Adafruit_I2C.py
jelly/prometheus-bmp180-exporter
1ff0dd880bad3c899a1b7034062fac0d6eff4dbc
[ "MIT" ]
null
null
null
#!/usr/bin/python import re import smbus # =========================================================================== # Adafruit_I2C Class # =========================================================================== class Adafruit_I2C(object): @staticmethod def getPiRevision(): "Gets the version number of ...
34.148148
106
0.61804
7b55c5d8efe63739152a27914263b7f0ad76c5f2
5,573
py
Python
electrum/gui/qt/request_list.py
sherlockcoin/electrum
fa9e4cf5ed15ae44331a70954e69bc677c529357
[ "MIT" ]
1
2020-03-28T04:25:54.000Z
2020-03-28T04:25:54.000Z
electrum/gui/qt/request_list.py
Matthelonianxl/electrum-1
1f14894c43ca4193fb07c202f22e421365c50d2d
[ "MIT" ]
1
2021-11-15T17:47:57.000Z
2021-11-15T17:47:57.000Z
electrum/gui/qt/request_list.py
Matthelonianxl/electrum-1
1f14894c43ca4193fb07c202f22e421365c50d2d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
42.869231
139
0.662121
3168018eebe9a0d36e2c9c94870ff2c454a60dcc
1,781
py
Python
src/api/datamanage/utils/meta_sync/client.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datamanage/utils/meta_sync/client.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datamanage/utils/meta_sync/client.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# coding=utf-8 """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------------------...
55.65625
111
0.769792
b41e90985340897521f2a06bb74e14a3e4f5e259
4,444
py
Python
Week 5/Object-oriented Programming/Defining New Classes/topic.py
chanchanchong/Crash-Course-On-Python
ce98bdd5c5355a582c76b864dae1c5eecdf6ea44
[ "MIT" ]
null
null
null
Week 5/Object-oriented Programming/Defining New Classes/topic.py
chanchanchong/Crash-Course-On-Python
ce98bdd5c5355a582c76b864dae1c5eecdf6ea44
[ "MIT" ]
null
null
null
Week 5/Object-oriented Programming/Defining New Classes/topic.py
chanchanchong/Crash-Course-On-Python
ce98bdd5c5355a582c76b864dae1c5eecdf6ea44
[ "MIT" ]
null
null
null
class Apple: pass class Apple: color = "" flavor = "" jonagold = Apple() jonagold.color = "red" jonagold.flavor = "sweet" print(jonagold.flavor) print(jonagold.color) golden = Apple() golden.color = "Yellow" golden.flavor = "Soft" # We called out earlier that the point of object oriented programming is ...
48.835165
82
0.756076
c1bbb3a71e0fd4439f3afc630e5651a94be3988f
24,541
py
Python
conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py
Mu-L/conan
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
[ "MIT" ]
1
2019-11-04T17:23:09.000Z
2019-11-04T17:23:09.000Z
conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py
Mu-L/conan
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
[ "MIT" ]
null
null
null
conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py
Mu-L/conan
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
[ "MIT" ]
null
null
null
import glob import os import textwrap from conans.test.assets.genconanfile import GenConanfile from conans.test.utils.tools import TestClient from conans.util.files import load def get_requires_from_content(content): for line in content.splitlines(): if "Requires:" in line: return line re...
37.239757
101
0.617905
ef0bcf8f72e58b6ac21a095e0eeabd6b9a415bce
10,934
py
Python
Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/tests/python/unittest/test_hybrid_script.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
64
2021-05-02T14:42:34.000Z
2021-05-06T01:35:03.000Z
tests/python/unittest/test_hybrid_script.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
23
2019-07-29T05:21:52.000Z
2020-08-31T18:51:42.000Z
tests/python/unittest/test_hybrid_script.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.000Z
import tvm, inspect, sys, traceback, numpy, nose from tvm.hybrid import script from tvm.hybrid.intrin import HYBRID_GLOBALS @nose.tools.nottest def run_and_check(func, args, outs, var_dict={}, target='llvm'): def tvm_val_2_py_val(val): val = tvm.ir_pass.Substitute(val, var_dict) val = tvm.ir_pass.S...
30.974504
91
0.561551
413feb4744ad7b46716e5aaf004a45edf1adf88e
7,667
py
Python
src/simmate/calculators/vasp/tasks/_to_do/nudged_elastic_band.py
sionab/simmate
6dedea7310829aae425bf3393e7923e454a0129f
[ "BSD-3-Clause" ]
null
null
null
src/simmate/calculators/vasp/tasks/_to_do/nudged_elastic_band.py
sionab/simmate
6dedea7310829aae425bf3393e7923e454a0129f
[ "BSD-3-Clause" ]
null
null
null
src/simmate/calculators/vasp/tasks/_to_do/nudged_elastic_band.py
sionab/simmate
6dedea7310829aae425bf3393e7923e454a0129f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os from pymatgen.analysis.transition_state import NEBAnalysis from simmate.calculators.vasp.inputs.all import Incar, Poscar, Kpoints, Potcar from simmate.calculators.vasp.tasks.base import VaspTask from simmate.calculators.vasp.error_handlers.tetrahedron_mesh import TetrahedronMesh fro...
44.063218
106
0.635581
0e6432880e334538bfd90598f42c86b94f920b85
1,307
py
Python
digital_signature.py
julzhk/crypto_spike
435787aee5bc0d456a871e9e93fd952bc148090c
[ "Unlicense" ]
null
null
null
digital_signature.py
julzhk/crypto_spike
435787aee5bc0d456a871e9e93fd952bc148090c
[ "Unlicense" ]
null
null
null
digital_signature.py
julzhk/crypto_spike
435787aee5bc0d456a871e9e93fd952bc148090c
[ "Unlicense" ]
null
null
null
# coding=utf-8 import hashlib from random import randint def generate_keys(keysize=256): # (sk, pk) := generateKeys(​keysize​) ​The generateKeys method takes a key size and generates # a key pair. The secret key sk is kept privately and used to sign messages. pk is the public # verification key that you gi...
36.305556
102
0.693191
7da09144ab3c469f9e688175397a392c9d3bd1f8
767
py
Python
src/iminuit/color.py
MarcoGorelli/iminuit
496c74b7b43f502838375d7118eed04cdf17fab0
[ "MIT" ]
null
null
null
src/iminuit/color.py
MarcoGorelli/iminuit
496c74b7b43f502838375d7118eed04cdf17fab0
[ "MIT" ]
null
null
null
src/iminuit/color.py
MarcoGorelli/iminuit
496c74b7b43f502838375d7118eed04cdf17fab0
[ "MIT" ]
null
null
null
__all__ = ["Gradient"] class Gradient: """Color gradient.""" _steps = None def __init__(self, *steps): self._steps = steps def __call__(self, v): st = self._steps z = 0.0 if v < st[0][0]: z = 0.0 i = 0 elif v >= st[-1][0]: ...
22.558824
81
0.352021
db8f55d221f411cae61f1e0a06d921abdf0f2d6e
53,600
py
Python
sympy/functions/special/bessel.py
Abhishek-IOT/sympy
e31c4cdedb5080325b3fd04f4b4826d9dab65b26
[ "BSD-3-Clause" ]
2
2021-03-04T16:57:06.000Z
2021-08-11T01:42:29.000Z
sympy/functions/special/bessel.py
mmelotti/sympy
bea29026d27cc50c2e6a5501b6a70a9629ed3e18
[ "BSD-3-Clause" ]
1
2020-04-22T12:45:26.000Z
2020-04-22T12:45:26.000Z
sympy/functions/special/bessel.py
mmelotti/sympy
bea29026d27cc50c2e6a5501b6a70a9629ed3e18
[ "BSD-3-Clause" ]
3
2019-05-18T21:32:31.000Z
2019-07-26T11:05:46.000Z
from functools import wraps from sympy import S, pi, I, Rational, Wild, cacheit, sympify from sympy.core.function import Function, ArgumentIndexError from sympy.core.power import Pow from sympy.functions.combinatorial.factorials import factorial from sympy.functions.elementary.trigonometric import sin, cos, csc, cot f...
29.1939
147
0.545877
bd6f97978454f1b33f650241ebb330d28b4471d2
4,800
py
Python
tests/integration/docusaurus/connecting_to_your_data/cloud/s3/spark/inferred_and_runtime_python_example.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
6,451
2017-09-11T16:32:53.000Z
2022-03-31T23:27:49.000Z
tests/integration/docusaurus/connecting_to_your_data/cloud/s3/spark/inferred_and_runtime_python_example.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
3,892
2017-09-08T18:57:50.000Z
2022-03-31T23:15:20.000Z
tests/integration/docusaurus/connecting_to_your_data/cloud/s3/spark/inferred_and_runtime_python_example.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
1,023
2017-09-08T15:22:05.000Z
2022-03-31T21:17:08.000Z
from typing import List from ruamel import yaml import great_expectations as ge from great_expectations.core.batch import Batch, BatchRequest, RuntimeBatchRequest from great_expectations.data_context import BaseDataContext from great_expectations.data_context.types.base import ( DataContextConfig, InMemorySto...
38.709677
110
0.767083
7ece2d809cd2e9e3910e49b83689517e8d2aba54
2,443
py
Python
app/core/tests/test_models.py
2006GTO/recipes-app-api
8bc8be28342f650e634350a5460b91521c3560bb
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
2006GTO/recipes-app-api
8bc8be28342f650e634350a5460b91521c3560bb
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
2006GTO/recipes-app-api
8bc8be28342f650e634350a5460b91521c3560bb
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from core import models from unittest.mock import patch def sample_user(email='test@gmail.com', password='qazqazqaz'): return get_user_model().objects.create_user(email, password) class ModelTests(TestCase): def t...
31.320513
71
0.585346
f0ec1d8ffb55033e51611598a53538c04f685e44
2,674
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_20/rule_13.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_20/rule_13.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_20/rule_13.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Time, obj[3]: Coupon, obj[4]: Coupon_validity, obj[5]: Gender, obj[6]: Age, obj[7]: Maritalstatus, obj[8]: Children, obj[9]: Education, obj[10]: Occupation, obj[11]: Income, obj[12]: Bar, obj[13]: Coffeehouse, obj[14]: Restaurant20to50, obj[15]: Direct...
36.630137
347
0.564323
ff27bfd263ab6aeebf7a97cecfee1f1f0419192c
804
py
Python
moosetash/handlers.py
michaelrccurtis/moosetash
bf26152409b991e116d0658e1836ac1b4b521f7d
[ "MIT" ]
2
2022-03-09T11:22:45.000Z
2022-03-10T03:11:55.000Z
moosetash/handlers.py
michaelrccurtis/moosetash
bf26152409b991e116d0658e1836ac1b4b521f7d
[ "MIT" ]
null
null
null
moosetash/handlers.py
michaelrccurtis/moosetash
bf26152409b991e116d0658e1836ac1b4b521f7d
[ "MIT" ]
null
null
null
from typing import Any from .exceptions import MissingPartial, MissingVariable def missing_variable_default(variable_name: str, variable_tag: str) -> str: return '' def missing_variable_raise(variable_name: str, variable_tag: str): raise MissingVariable(variable_name) def missing_variable_keep(variable_na...
25.125
75
0.761194
db60e040c4e38d6124380de0e59fd23a3a990009
3,707
py
Python
tfx/tools/cli/container_builder/builder.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
3
2020-07-20T18:37:16.000Z
2021-11-17T11:24:27.000Z
tfx/tools/cli/container_builder/builder.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
2
2020-08-11T00:19:14.000Z
2020-08-26T20:10:31.000Z
tfx/tools/cli/container_builder/builder.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
1
2021-01-28T13:41:51.000Z
2021-01-28T13:41:51.000Z
# Lint as: python2, python3 # Copyright 2019 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 req...
39.021053
78
0.724845
52e62603ef4b935ed48ba5e1af55b5b1e04418e5
184
py
Python
models/mtg/__init__.py
shinji19/sealed-deck-generator
8321d023fbef3a4b58c37fe36ac9b225b22bb4d1
[ "MIT" ]
null
null
null
models/mtg/__init__.py
shinji19/sealed-deck-generator
8321d023fbef3a4b58c37fe36ac9b225b22bb4d1
[ "MIT" ]
null
null
null
models/mtg/__init__.py
shinji19/sealed-deck-generator
8321d023fbef3a4b58c37fe36ac9b225b22bb4d1
[ "MIT" ]
null
null
null
from .card_score_master_repository import CardScoreMasterRepository from .card_master import CardMaster from .card_master_repository import CardMasterRepository from .deck import Deck
36.8
67
0.891304
673e8009a489382d3986c2e60dc554e6ebf87d09
2,710
py
Python
tests/buffer/test_prioritized_buffer.py
krishanrana/rl_algorithms
c12fe447a70f2f99f37f6c1157907755d38fde81
[ "MIT" ]
null
null
null
tests/buffer/test_prioritized_buffer.py
krishanrana/rl_algorithms
c12fe447a70f2f99f37f6c1157907755d38fde81
[ "MIT" ]
null
null
null
tests/buffer/test_prioritized_buffer.py
krishanrana/rl_algorithms
c12fe447a70f2f99f37f6c1157907755d38fde81
[ "MIT" ]
null
null
null
from typing import List, Tuple import numpy as np from scipy.stats import ks_2samp from rl_algorithms.common.buffer.replay_buffer import ReplayBuffer from rl_algorithms.common.buffer.wrapper import PrioritizedBufferWrapper def generate_prioritized_buffer( buffer_length: int, batch_size: int, idx_lst=None, prior...
34.74359
83
0.715498
db8ae692652dfade0664459977d3318d1ffe00fd
6,211
py
Python
core/self6dpp/models/model_utils_deepim.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
core/self6dpp/models/model_utils_deepim.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
core/self6dpp/models/model_utils_deepim.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
import torch import copy import numpy as np from lib.pysixd.pose_error import re, te from core.utils.pose_utils import quat2mat_torch from core.utils.rot_reps import rot6d_to_mat_batch from core.utils import lie_algebra, quaternion_lf from .net_factory import HEADS def get_rot_dim(rot_type): if rot_type in ["allo...
34.698324
92
0.622927
dc3d35304c67ecd9b8ccf2437032a784d321a25d
2,415
py
Python
back/sequences/emails.py
kingzbauer/ChiefOnboarding
202092a367aade9e032286466e06399ea07f1908
[ "MIT" ]
null
null
null
back/sequences/emails.py
kingzbauer/ChiefOnboarding
202092a367aade9e032286466e06399ea07f1908
[ "MIT" ]
null
null
null
back/sequences/emails.py
kingzbauer/ChiefOnboarding
202092a367aade9e032286466e06399ea07f1908
[ "MIT" ]
null
null
null
from django.core.mail import send_mail from django.template import Template, Context from django.template.loader import render_to_string from django.conf import settings from django.utils.translation import ugettext as _ from django.utils import translation from organization.models import Organization def send_sequen...
33.082192
105
0.536232
067a6b49dbece689a80ee6d32b8a311e76c567e0
3,420
py
Python
python/londiste/compare.py
askoja/skytools
a3dd719119849350445f2ef08c736ff9b25aa006
[ "0BSD" ]
1
2016-04-11T13:26:34.000Z
2016-04-11T13:26:34.000Z
python/londiste/compare.py
askoja/skytools
a3dd719119849350445f2ef08c736ff9b25aa006
[ "0BSD" ]
null
null
null
python/londiste/compare.py
askoja/skytools
a3dd719119849350445f2ef08c736ff9b25aa006
[ "0BSD" ]
null
null
null
#! /usr/bin/env python """Compares tables in replication set. Currently just does count(1) on both sides. """ import sys, skytools __all__ = ['Comparator'] from londiste.syncer import Syncer class Comparator(Syncer): """Simple checker based in Syncer. When tables are in sync runs simple SQL query on them....
30.265487
129
0.577778
c3aa7add1744760ac6029f8b6a0bd55126b43854
59
py
Python
src/hello.py
bhattvishal/machinelearning-azure-amlws
3e200a69f40d20f7058f61be8101d65575832970
[ "MIT" ]
null
null
null
src/hello.py
bhattvishal/machinelearning-azure-amlws
3e200a69f40d20f7058f61be8101d65575832970
[ "MIT" ]
null
null
null
src/hello.py
bhattvishal/machinelearning-azure-amlws
3e200a69f40d20f7058f61be8101d65575832970
[ "MIT" ]
null
null
null
print("Hello World, I am new to Azure Machine Learning...")
59
59
0.728814
a020ae4679fe329fee65c453fc00914ca3bcaaa6
401
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Learning/04b-complex-try-blocks.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Learning/04b-complex-try-blocks.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Learning/04b-complex-try-blocks.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
# More complex try blocks import sys a = "False" b = 6 c = 2 try: print(len(a)) print(b / c) print(a[47]) except TypeError: print(f"{a} has no length") except ZeroDivisionError as err: print(f"Cannot divide by zero! Error: {err}") except: print(f"Uh oh, unknown error: {sys.exc_info()}") else: ...
19.095238
52
0.63591
ed41ba93cb1b2469c03d120042d83076fdc747ca
4,397
py
Python
ml/rl/test/gym/open_ai_gym_memory_pool.py
mikepsinn/Horizon
4ce123062320c0297b80135e0b63759c02bf5699
[ "BSD-3-Clause" ]
1
2019-12-04T05:05:56.000Z
2019-12-04T05:05:56.000Z
ml/rl/test/gym/open_ai_gym_memory_pool.py
weiddeng/Horizon
0e7fe9d742c408e1b42803b42e104efbc56bae5b
[ "BSD-3-Clause" ]
null
null
null
ml/rl/test/gym/open_ai_gym_memory_pool.py
weiddeng/Horizon
0e7fe9d742c408e1b42803b42e104efbc56bae5b
[ "BSD-3-Clause" ]
1
2019-09-20T02:36:30.000Z
2019-09-20T02:36:30.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import numpy as np import torch from caffe2.python import workspace from ml.rl.test.gym.open_ai_gym_environment import ModelType from ml.rl.training.training_data_page import TrainingDataPage class OpenAIGymMemoryPool: ...
37.581197
86
0.615192
247b8fd4f4b0bae76f2aef60f27684dc06edbd74
911
py
Python
queryUser.py
abgcsc/CDANs
7113ed836df1369895054b11c121071faa8392af
[ "MIT" ]
7
2018-03-04T17:12:13.000Z
2022-02-08T03:35:40.000Z
queryUser.py
abgcsc/CDANs
7113ed836df1369895054b11c121071faa8392af
[ "MIT" ]
null
null
null
queryUser.py
abgcsc/CDANs
7113ed836df1369895054b11c121071faa8392af
[ "MIT" ]
4
2018-02-12T22:37:22.000Z
2018-12-20T13:16:32.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jul 05 11:09:29 2016 @author: Drew """ import sys def queryUser(question): """ Ask a simple yes/no question of the user. """ valid = {"yes": True, "y": True, "ye": True, "no": False, "n": False} while True: try: sys.stdo...
28.46875
73
0.493963
90998e8d9c76b5e243b279ed97ea6f53b6eaf74d
303
py
Python
utils/usys.S.py
skyzh/core-os-riscv
6471afb60dd7be678b6a2fde56f935b536746b4d
[ "MIT" ]
239
2020-01-17T19:27:05.000Z
2022-03-28T17:05:58.000Z
utils/usys.S.py
riscv-ripper/core-os-riscv
6471afb60dd7be678b6a2fde56f935b536746b4d
[ "MIT" ]
10
2020-02-20T06:02:32.000Z
2021-06-15T10:33:27.000Z
utils/usys.S.py
riscv-ripper/core-os-riscv
6471afb60dd7be678b6a2fde56f935b536746b4d
[ "MIT" ]
26
2020-01-18T09:25:31.000Z
2022-01-23T09:59:42.000Z
#!/usr/bin/env python3 ### Copyright (c) 2020 Alex Chi ### ### This software is released under the MIT License. ### https://opensource.org/licenses/MIT from syscall import syscalls for (idx, syscall) in enumerate(syscalls): print(f""" .global __{syscall} __{syscall}: li a7, {idx} ecall ret""")
17.823529
52
0.686469
f6f41d3ebe8061406134deb406fa44e3164fd94a
698
py
Python
Methods/Slot/SlotW23/comp_height.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
2
2020-06-29T13:48:37.000Z
2021-06-15T07:34:05.000Z
Methods/Slot/SlotW23/comp_height.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Methods/Slot/SlotW23/comp_height.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """@package Methods.Machine.SlotW23.comp_height SlotW23 Computation of height method @date Created on Mon Jun 29 15:28:55 2015 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b @todo check and unittest """ def comp_height(self): """Compute the height of the Slot. Caution, th...
20.529412
68
0.611748
b55a43c12c8de29ff15f7b83d6a94849a0112bdf
5,498
py
Python
client/client_actions/osx/osx_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
1
2016-02-13T15:40:20.000Z
2016-02-13T15:40:20.000Z
client/client_actions/osx/osx_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
3
2020-02-11T22:29:15.000Z
2021-06-10T17:44:31.000Z
client/client_actions/osx/osx_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- mode: python; encoding: utf-8 -*- # Copyright 2011 Google Inc. All Rights Reserved. """OSX tests.""" import glob import os import mock import mox from grr.lib import config_lib from grr.lib import flags from grr.lib import test_lib from grr.test_data import osx_launchd as testdata ...
32.341176
80
0.709167
c5ab4a2a4858a4f2105a237ea6c9df626692dfff
518
py
Python
default_central/presets/sound/listport.py
vizicist/palette
01f3bbd8bc4fa4fffdbb96f8e7ed282b6e2274a6
[ "MIT" ]
8
2020-11-14T22:50:51.000Z
2021-08-10T06:22:01.000Z
default_central/presets/sound/listport.py
vizicist/palette
01f3bbd8bc4fa4fffdbb96f8e7ed282b6e2274a6
[ "MIT" ]
1
2021-02-24T20:16:06.000Z
2021-12-25T18:53:12.000Z
default_central/presets/sound/listport.py
vizicist/palette
01f3bbd8bc4fa4fffdbb96f8e7ed282b6e2274a6
[ "MIT" ]
null
null
null
import json import glob import sys import os def listport(paramfile): f = open(paramfile) params = json.load(f) f.close() p = params["params"] path = os.path.split(paramfile) fname = path[len(path)-1] print("%s \"%s\" %d" % (fname, p["regionport"]["value"], int(p["regionchannel"]["value"]))...
20.72
95
0.610039
d8fda46d342559b558e7db0b3b1929b2e4c0f36e
2,276
py
Python
shared/templates/create_services_disabled.py
mpreisler/scap-security-guide
4e7df9a865f459d32914edbb83fae21cd4b89124
[ "BSD-3-Clause" ]
1
2019-01-07T10:43:25.000Z
2019-01-07T10:43:25.000Z
shared/templates/create_services_disabled.py
mpreisler/scap-security-guide
4e7df9a865f459d32914edbb83fae21cd4b89124
[ "BSD-3-Clause" ]
null
null
null
shared/templates/create_services_disabled.py
mpreisler/scap-security-guide
4e7df9a865f459d32914edbb83fae21cd4b89124
[ "BSD-3-Clause" ]
1
2019-12-12T12:08:14.000Z
2019-12-12T12:08:14.000Z
# # create_services_disabled.py # automatically generate checks for disabled services import sys from template_common import FilesGenerator, UnknownTargetError class ServiceDisabledGenerator(FilesGenerator): def generate(self, target, serviceinfo): try: # get the items out of the list ...
32.056338
90
0.521529
c3b47ecdb5ca36a9de544a826408846f68913de0
6,515
py
Python
ckan/lib/mailer.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
1
2022-02-14T20:25:34.000Z
2022-02-14T20:25:34.000Z
ckan/lib/mailer.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
null
null
null
ckan/lib/mailer.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
3
2020-01-02T10:32:37.000Z
2021-12-22T07:20:21.000Z
# encoding: utf-8 import codecs import os import smtplib import socket import logging from time import time from email.mime.text import MIMEText from email.header import Header from email import utils from ckan.common import config import ckan.common from six import text_type import ckan import ckan.model as model i...
31.322115
79
0.634229
972979266da3ad85222416925a27b391b57f151c
6,341
py
Python
tests/keys.py
sdss/opscore
dd4f2b2ad525fe3dfe3565463de2c079a7e1232e
[ "BSD-3-Clause" ]
null
null
null
tests/keys.py
sdss/opscore
dd4f2b2ad525fe3dfe3565463de2c079a7e1232e
[ "BSD-3-Clause" ]
1
2021-08-17T21:08:14.000Z
2021-08-17T21:08:14.000Z
tests/keys.py
sdss/opscore
dd4f2b2ad525fe3dfe3565463de2c079a7e1232e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Unit tests for opscore.protocols.keys """ # Created 18-Nov-2008 by David Kirkby (dkirkby@uci.edu) import unittest import opscore.protocols.keys as protoKeys import opscore.protocols.messages as protoMess import opscore.protocols.types as protoTypes class KeysTest(unittest.TestCase): def...
39.141975
87
0.618672
2d394152278af834437b15cb3d766242f4c49900
6,827
py
Python
lorawan_gateway.py
leeatwill/single_chan_pkt_fwd
c1dd87cd5e8c035626599a36cf7f8286fcc5a25a
[ "BSD-3-Clause" ]
null
null
null
lorawan_gateway.py
leeatwill/single_chan_pkt_fwd
c1dd87cd5e8c035626599a36cf7f8286fcc5a25a
[ "BSD-3-Clause" ]
null
null
null
lorawan_gateway.py
leeatwill/single_chan_pkt_fwd
c1dd87cd5e8c035626599a36cf7f8286fcc5a25a
[ "BSD-3-Clause" ]
null
null
null
""" Raspberry Pi Single Channel Gateway Learn Guide: https://learn.adafruit.com/raspberry-pi-single-channel-lorawan-gateway Author: Brent Rubell for Adafruit Industries """ # Import Python System Libraries import json import time import subprocess import uuid # Import Adafruit Blinka Libraries import busio from digita...
33.630542
109
0.620917
af1a7f03a0e9c13faaae11b8e06650b3592191f6
1,525
py
Python
GeneratorInterface/PomwigInterface/test/analyzeSDDijets_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
GeneratorInterface/PomwigInterface/test/analyzeSDDijets_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
GeneratorInterface/PomwigInterface/test/analyzeSDDijets_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process('Analysis') process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring("file:POMWIG_SingleDiffractiveDijetsPlus_8TeV_Pt_30_cff_py_GEN.root") ) #process.lo...
27.727273
107
0.685246
fcb2317ef6c4e3589df24a8f8d41e626d7256eb6
4,540
py
Python
monai/handlers/mean_dice.py
Irme/MONAI
dc4bf661831b14f4231cb325cc1b15d38c1e406c
[ "Apache-2.0" ]
3
2020-10-12T02:13:27.000Z
2021-04-14T11:46:21.000Z
monai/handlers/mean_dice.py
JZK00/MONAI
49e693c4e7df83dc1f8ab87349373de9263188a9
[ "Apache-2.0" ]
1
2020-09-17T12:41:51.000Z
2020-09-29T15:20:37.000Z
monai/handlers/mean_dice.py
JZK00/MONAI
49e693c4e7df83dc1f8ab87349373de9263188a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
41.651376
114
0.661454
c0326266597fc02bab4cf5a938f46ce234430831
185
py
Python
app/celerydemo/tasks.py
rudra012/dj_celery_docker
37ba5f11eda472a445540605c33037e53f09a15f
[ "MIT" ]
null
null
null
app/celerydemo/tasks.py
rudra012/dj_celery_docker
37ba5f11eda472a445540605c33037e53f09a15f
[ "MIT" ]
null
null
null
app/celerydemo/tasks.py
rudra012/dj_celery_docker
37ba5f11eda472a445540605c33037e53f09a15f
[ "MIT" ]
null
null
null
from celery import shared_task from .models import TaskLog @shared_task def logging_task(): print('Logging task invoked...........') TaskLog.objects.create(task_name='test')
18.5
44
0.713514
f105465aad29e94a9eddc88ab93324e35402c7f9
780
py
Python
src/gatekeeper/gatekeeper/util/validation.py
CN-UPB/Cloud-NFV-Orchestration
28a6852f529ac73fe28f4448597f455b2d2fe552
[ "Apache-2.0" ]
10
2019-01-09T06:32:58.000Z
2021-11-16T11:36:22.000Z
src/gatekeeper/gatekeeper/util/validation.py
CN-UPB/Cloud-NFV-Orchestration
28a6852f529ac73fe28f4448597f455b2d2fe552
[ "Apache-2.0" ]
14
2019-11-13T06:51:51.000Z
2021-12-09T02:01:29.000Z
src/gatekeeper/gatekeeper/util/validation.py
CN-UPB/Cloud-NFV-Orchestration
28a6852f529ac73fe28f4448597f455b2d2fe552
[ "Apache-2.0" ]
7
2019-02-06T05:46:56.000Z
2021-08-21T13:56:07.000Z
""" Functions to validate data against Pishahang JSON schemas """ import json from pathlib import Path import jsonschema from gatekeeper.models.descriptors import DescriptorType DESCRIPTOR_SCHEMA_DIR = Path(__file__).parents[3] / "schemas/bundled/descriptors" schemaMap = {} for descriptorType, filename in [ (...
27.857143
82
0.755128
69771187f2374577a31d8f8dac915400578f9952
1,088
py
Python
hood/migrations/0004_post.py
D-Kamunya/watch_hood
26044e8b38cb3f89b5474fa1adc2db7f463555fa
[ "Unlicense" ]
null
null
null
hood/migrations/0004_post.py
D-Kamunya/watch_hood
26044e8b38cb3f89b5474fa1adc2db7f463555fa
[ "Unlicense" ]
null
null
null
hood/migrations/0004_post.py
D-Kamunya/watch_hood
26044e8b38cb3f89b5474fa1adc2db7f463555fa
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-31 19:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('hood', '0003_business'),...
35.096774
123
0.609375
db1b4a07f43a24ee45d3b8649bab6e550d83ea1a
568
py
Python
leapy/dask/__init__.py
nonabelian/leapy
152152eed87572983dd61b27a4a1726b5cb2e615
[ "BSD-3-Clause" ]
1
2019-05-01T01:59:03.000Z
2019-05-01T01:59:03.000Z
leapy/dask/__init__.py
nonabelian/leapy
152152eed87572983dd61b27a4a1726b5cb2e615
[ "BSD-3-Clause" ]
null
null
null
leapy/dask/__init__.py
nonabelian/leapy
152152eed87572983dd61b27a4a1726b5cb2e615
[ "BSD-3-Clause" ]
null
null
null
from dask_ml.linear_model import LogisticRegression from .transformers import OneHotEncoder from .transformers import Selector from .transformers.export import OneHotEncoderExporter from .transformers.export import TrivialExporter setattr(LogisticRegression, 'to_runtime', TrivialExporter.to_runtime) # setattr(SGDClas...
37.866667
70
0.850352
0863659995ffea46242e0e990769f9c6b99abbdd
988
py
Python
test/test_lz4_encoder.py
mmontagna/generic-encoders
3344a6dfb6173feb0f8ac6102ac01d5a4425c99c
[ "MIT" ]
5
2018-07-06T05:30:51.000Z
2021-03-04T05:09:35.000Z
test/test_lz4_encoder.py
mmontagna/generic-encoders
3344a6dfb6173feb0f8ac6102ac01d5a4425c99c
[ "MIT" ]
4
2018-07-03T15:09:33.000Z
2018-08-11T04:06:01.000Z
test/test_lz4_encoder.py
mmontagna/generic-encoders
3344a6dfb6173feb0f8ac6102ac01d5a4425c99c
[ "MIT" ]
null
null
null
import unittest import six from generic_encoders import lz4_encoder class TestLz4Encoder(unittest.TestCase): def test_lz4_encoders_bytes(self): string = b"some string 123" self.assertEqual(string, lz4_encoder.decode( lz4_encoder.encode(string) )) d...
29.939394
98
0.652834
815e8b31593996feb91b690f38dc075513948bd8
24,467
py
Python
src/nufeb_tools/utils.py
Jsakkos/nufeb_tools
e7143102a7ceab5505ebcf02128b1fe4f3535320
[ "MIT" ]
null
null
null
src/nufeb_tools/utils.py
Jsakkos/nufeb_tools
e7143102a7ceab5505ebcf02128b1fe4f3535320
[ "MIT" ]
null
null
null
src/nufeb_tools/utils.py
Jsakkos/nufeb_tools
e7143102a7ceab5505ebcf02128b1fe4f3535320
[ "MIT" ]
null
null
null
import os import h5py from pathlib import Path import pandas as pd import numpy as np import json import subprocess import sys import argparse import pickle import json from urllib.parse import urlparse from urllib.request import urlretrieve import tarfile from scipy.spatial.distance import pdist,squareform from scipy....
40.642857
162
0.582172
089e3fa219424451b09f96298c4668bf9cb6732f
1,379
py
Python
tsdb_app.py
loblab/resouce-simulator
a3d62f32ec1f377548519e7aa4eaef10d5bdd0c2
[ "Apache-2.0" ]
null
null
null
tsdb_app.py
loblab/resouce-simulator
a3d62f32ec1f377548519e7aa4eaef10d5bdd0c2
[ "Apache-2.0" ]
null
null
null
tsdb_app.py
loblab/resouce-simulator
a3d62f32ec1f377548519e7aa4eaef10d5bdd0c2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from influxdb import InfluxDBClient from base_app import * class TsdbApp(BaseApp): DEFAULT_HOST = "influxdb" DEFAULT_PORT = 8086 DEFAULT_DATA = "resim" DEFAULT_USER = "" DEFAULT_PSWD = "" def base_init(self): self.argps.add_argument('-s', '--host', dest='host', type...
44.483871
97
0.645395
3a3da41d2a442329ea985c0c42655c39d3b1a911
1,805
py
Python
fork/protocols/farmer_protocol.py
Fork-Network/fork-blockchain
4e7c55b5787376dabacc8049eac49c0bb0bfd855
[ "Apache-2.0" ]
7
2021-07-23T22:06:56.000Z
2022-02-09T04:30:23.000Z
fork/protocols/farmer_protocol.py
Fork-Network/fork-blockchain
4e7c55b5787376dabacc8049eac49c0bb0bfd855
[ "Apache-2.0" ]
null
null
null
fork/protocols/farmer_protocol.py
Fork-Network/fork-blockchain
4e7c55b5787376dabacc8049eac49c0bb0bfd855
[ "Apache-2.0" ]
2
2021-07-29T10:11:56.000Z
2021-08-01T19:37:18.000Z
from dataclasses import dataclass from typing import Optional from blspy import G2Element from fork.types.blockchain_format.pool_target import PoolTarget from fork.types.blockchain_format.proof_of_space import ProofOfSpace from fork.types.blockchain_format.sized_bytes import bytes32 from fork.util.ints import uint8, ...
26.15942
116
0.801662
32b54743e28f398ebfec83cb5825e025ed9f7943
474
py
Python
geom2d/point.py
VLovets/python_01
6521fcac0dfedc456e8a9263e7705616eb642078
[ "Apache-2.0" ]
null
null
null
geom2d/point.py
VLovets/python_01
6521fcac0dfedc456e8a9263e7705616eb642078
[ "Apache-2.0" ]
null
null
null
geom2d/point.py
VLovets/python_01
6521fcac0dfedc456e8a9263e7705616eb642078
[ "Apache-2.0" ]
null
null
null
__author__ = 'vlovets' from math import sqrt class Point: def __init__(self, _x, _y): self.x = _x self.y = _y def distance(self, p2): dx = p2.x - self.x dy = p2.y - self.y return sqrt(dx*dx + dy*dy) def __eq__(self, other): return self.x == other.x and se...
20.608696
54
0.537975
5a54f4209e4550ab78aec71752465e18f5c80f81
4,512
py
Python
src/data/musdb_amss/audio_deeffect.py
ws-choi/AMSS-Net
9e906f64365526dbb184340ac9565ac8bc32f830
[ "MIT" ]
4
2021-07-16T04:11:50.000Z
2022-02-09T13:51:26.000Z
src/data/musdb_amss/audio_deeffect.py
ws-choi/AMSS-Net
9e906f64365526dbb184340ac9565ac8bc32f830
[ "MIT" ]
null
null
null
src/data/musdb_amss/audio_deeffect.py
ws-choi/AMSS-Net
9e906f64365526dbb184340ac9565ac8bc32f830
[ "MIT" ]
1
2022-01-11T07:20:30.000Z
2022-01-11T07:20:30.000Z
import random from itertools import permutations, combinations import numpy as np from src.amss.amss_desc.abstract import Selective_Audio_Editing from src.amss.amss_desc.sound_effects import SndFx from src.data.musdb_amss.audio_effect import effects_dict_ijcai from src.utils.functions import normalize targets = ['vo...
37.6
103
0.670878
4b03e92b48e0377cfb262d8bf9668351410096f2
2,974
py
Python
tests/granular/test_sentences.py
EpcLoler/nlp_profiler
bf609457866faf4c4f8e9b57ef2b2e07227cf8e9
[ "Apache-2.0" ]
221
2020-09-06T14:07:37.000Z
2022-03-26T08:18:24.000Z
tests/granular/test_sentences.py
EpcLoler/nlp_profiler
bf609457866faf4c4f8e9b57ef2b2e07227cf8e9
[ "Apache-2.0" ]
57
2020-09-12T13:55:36.000Z
2022-01-21T01:14:37.000Z
tests/granular/test_sentences.py
EpcLoler/nlp_profiler
bf609457866faf4c4f8e9b57ef2b2e07227cf8e9
[ "Apache-2.0" ]
37
2020-09-06T17:05:32.000Z
2022-02-22T10:04:43.000Z
import numpy as np import pytest from nlp_profiler.constants import NaN from nlp_profiler.granular_features.sentences import gather_sentences, count_sentences # noqa text_with_emojis = "I love ⚽ very much 😁" text_with_emojis_ends_with_period = "I love ⚽ very much 😁." text_with_a_number = '2833047 people live in th...
32.326087
95
0.596503
9f96edd90b779a5cba20a6f39e5275774325a1aa
5,084
py
Python
magenta/models/performance_rnn/performance_rnn_train.py
brycecr/magenta
24c14ca346506f31d789db35bb1b0173b7d97ce6
[ "Apache-2.0" ]
null
null
null
magenta/models/performance_rnn/performance_rnn_train.py
brycecr/magenta
24c14ca346506f31d789db35bb1b0173b7d97ce6
[ "Apache-2.0" ]
null
null
null
magenta/models/performance_rnn/performance_rnn_train.py
brycecr/magenta
24c14ca346506f31d789db35bb1b0173b7d97ce6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Magenta 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 ...
43.084746
80
0.632376
aabc56777febd4479fcd752e2986b0ee322904eb
145,934
py
Python
glance_docker/glance/tests/functional/v2/test_images.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "Apache-2.0" ]
null
null
null
glance_docker/glance/tests/functional/v2/test_images.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "Apache-2.0" ]
null
null
null
glance_docker/glance/tests/functional/v2/test_images.py
tobegit3hub/dockerized-software
3781bc1145b6fbb8d5fa2e2eaeaa3aa138a69632
[ "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...
43.876729
79
0.58756
754cf7b85e0defb27ca35cc6fc7a98a014e9aba2
2,736
py
Python
models/old_models/convtwonet.py
WatChMaL/CNN
2e14397bca6ced2fdfeab406e3c28561bb3af384
[ "CNRI-Python", "RSA-MD" ]
3
2019-05-10T01:38:07.000Z
2021-09-06T16:30:18.000Z
models/old_models/convtwonet.py
WatChMaL/VAE
2e14397bca6ced2fdfeab406e3c28561bb3af384
[ "CNRI-Python", "RSA-MD" ]
3
2019-05-11T02:44:53.000Z
2019-05-24T18:37:58.000Z
models/old_models/convtwonet.py
WatChMaL/CNN
2e14397bca6ced2fdfeab406e3c28561bb3af384
[ "CNRI-Python", "RSA-MD" ]
8
2019-05-06T22:39:39.000Z
2020-11-29T17:15:50.000Z
""" convtwonet.py PyTorch implementation of the ConvtwoNet as a classifier for IWCD detector response The model uses only convolutional layers in the architecture removing all max pooling layers from the KazuNet. Author : Abhishek . """ # PyTorch imports import torch.nn as nn # ConvNet class class ConvtwoNet(nn.Mo...
31.090909
110
0.555556
0e5247129ac0a04f4127ac571540eff71fda8b63
2,834
py
Python
avionix_airflow/kubernetes/airflow/airflow_worker_pod_template.py
zbrookle/avionix_airflow
a9b4665ce7699bcee7252a3f10d588a57c1f32c4
[ "BSD-3-Clause" ]
5
2020-08-31T07:33:47.000Z
2022-01-19T09:03:09.000Z
avionix_airflow/kubernetes/airflow/airflow_worker_pod_template.py
zbrookle/avionix_airflow
a9b4665ce7699bcee7252a3f10d588a57c1f32c4
[ "BSD-3-Clause" ]
20
2020-07-28T23:39:22.000Z
2020-10-06T20:21:32.000Z
avionix_airflow/kubernetes/airflow/airflow_worker_pod_template.py
zbrookle/avionix_airflow
a9b4665ce7699bcee7252a3f10d588a57c1f32c4
[ "BSD-3-Clause" ]
1
2021-09-27T14:48:41.000Z
2021-09-27T14:48:41.000Z
from typing import List from avionix.kube.core import ConfigMap, Container from yaml import dump from avionix_airflow.kubernetes.airflow.airflow_containers import AirflowWorker from avionix_airflow.kubernetes.airflow.airflow_options import AirflowOptions from avionix_airflow.kubernetes.airflow.airflow_pods import Air...
34.144578
86
0.638673
f9a1cce4a81728731652f924807b9a2543bbd329
44,313
py
Python
tests/test_modeling_prophetnet.py
gp201/transformers
89f2781e87e92b04303f7f128107718e44e755ed
[ "Apache-2.0" ]
2
2020-11-03T22:52:22.000Z
2021-11-09T10:29:16.000Z
tests/test_modeling_prophetnet.py
gp201/transformers
89f2781e87e92b04303f7f128107718e44e755ed
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_prophetnet.py
gp201/transformers
89f2781e87e92b04303f7f128107718e44e755ed
[ "Apache-2.0" ]
2
2021-05-25T19:59:13.000Z
2022-02-28T18:11:12.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team, The Microsoft Research team. # # 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 # # ...
39.671441
695
0.657392
3802abd6becd72782d1a192202de61a6f0a56c75
16,888
py
Python
tests/test_main.py
ioggstream/datamodel-code-generator
74e9139a1d74e186a61026c323c5ee9c66413e59
[ "MIT" ]
null
null
null
tests/test_main.py
ioggstream/datamodel-code-generator
74e9139a1d74e186a61026c323c5ee9c66413e59
[ "MIT" ]
null
null
null
tests/test_main.py
ioggstream/datamodel-code-generator
74e9139a1d74e186a61026c323c5ee9c66413e59
[ "MIT" ]
null
null
null
import shutil from pathlib import Path from tempfile import TemporaryDirectory import pytest from _pytest.capture import CaptureFixture from _pytest.tmpdir import TempdirFactory from freezegun import freeze_time from datamodel_code_generator.__main__ import Exit, main DATA_PATH: Path = Path(__file__).parent / 'data'...
29.017182
87
0.532627
80c952d4cabd38050c5325687fec001b0b1da706
1,059
py
Python
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/rangeslider/_yaxis.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/rangeslider/_yaxis.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/rangeslider/_yaxis.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class YaxisValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="yaxis", parent_name="layout.xaxis.rangeslider", **kwargs ): super(YaxisValidator, self).__init__( plotly_name=plotly_name, parent_n...
35.3
83
0.556185
abd06ee2acfc8408c3945ea78bb6d4210cf8c97b
10,791
py
Python
eleanor/update.py
orionlee/eleanor
bd5b8cdc6d80bda9ebab2b464f07aab24bc93f7f
[ "MIT" ]
null
null
null
eleanor/update.py
orionlee/eleanor
bd5b8cdc6d80bda9ebab2b464f07aab24bc93f7f
[ "MIT" ]
null
null
null
eleanor/update.py
orionlee/eleanor
bd5b8cdc6d80bda9ebab2b464f07aab24bc93f7f
[ "MIT" ]
null
null
null
import os from urllib.request import urlopen from datetime import datetime import math from astropy.coordinates import SkyCoord from astropy import units as u from astroquery.mast import Tesscut from astropy.io import fits import numpy as np import sys import requests from bs4 import BeautifulSoup eleanorpath = os.pat...
35.264706
132
0.549995
d4da447061cace964384dbef3d7c786352fd9d2f
1,227
py
Python
app/mod_auth/controllers.py
kelvinchot/FaceRecognitionBackend
c83f8959b2792511174cfa233d8c2b852f26db74
[ "MIT" ]
2
2019-11-26T17:56:32.000Z
2019-12-07T08:09:27.000Z
app/mod_auth/controllers.py
kelvinchot/FaceRecognitionBackend
c83f8959b2792511174cfa233d8c2b852f26db74
[ "MIT" ]
null
null
null
app/mod_auth/controllers.py
kelvinchot/FaceRecognitionBackend
c83f8959b2792511174cfa233d8c2b852f26db74
[ "MIT" ]
1
2020-10-27T07:20:50.000Z
2020-10-27T07:20:50.000Z
# Import flask dependencies from flask import Blueprint, request, render_template, \ flash, g, session, redirect, url_for # Import password / encryption helper tools from werkzeug import check_password_hash, generate_password_hash # Import the database object from the main app module from app import...
29.214286
75
0.699267
3f5f874b8758e7ba20a2c53d4b42214e5eb72219
9,066
py
Python
tests/test_unit_hashlist.py
andrelucas/hsync
91f207c8fc419c773555bec355d0b0da35061044
[ "BSD-3-Clause" ]
5
2015-03-23T23:17:42.000Z
2017-03-31T16:14:29.000Z
tests/test_unit_hashlist.py
andrelucas/hsync
91f207c8fc419c773555bec355d0b0da35061044
[ "BSD-3-Clause" ]
null
null
null
tests/test_unit_hashlist.py
andrelucas/hsync
91f207c8fc419c773555bec355d0b0da35061044
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015, Andre Lucas # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this...
34.603053
78
0.561769
332aff550905f023565c7ba112e205772380baaf
1,808
py
Python
src/cmdline/config.py
rca/cmdline
ecc42b1efe98528d4b4a73b42199852870371bdd
[ "Apache-2.0" ]
null
null
null
src/cmdline/config.py
rca/cmdline
ecc42b1efe98528d4b4a73b42199852870371bdd
[ "Apache-2.0" ]
3
2016-08-30T09:45:59.000Z
2020-03-31T00:51:16.000Z
src/cmdline/config.py
rca/cmdline
ecc42b1efe98528d4b4a73b42199852870371bdd
[ "Apache-2.0" ]
2
2016-07-02T19:19:04.000Z
2018-01-24T03:32:30.000Z
import inspect import os import sys CONFIG_ROOT = 'CMDLINE_CONFIG_ROOT' def find_config_root(path=sys.argv[0]): """ Finds config root relative to the given file path """ dirname = os.path.dirname(path) lastdirname = None while dirname != lastdirname: config_root = os.path.join(dirnam...
27.393939
82
0.63219
8a07da81d0b4847561b64b3ec402578ac9525ef0
1,490
py
Python
openfe/tests/dev/serialization_test_templates.py
OpenFreeEnergy/openfe
f2423ed2e4444a0824ff9b560e23b420c4997c6f
[ "MIT" ]
14
2022-01-24T22:01:19.000Z
2022-03-31T04:58:35.000Z
openfe/tests/dev/serialization_test_templates.py
OpenFreeEnergy/openfe
f2423ed2e4444a0824ff9b560e23b420c4997c6f
[ "MIT" ]
109
2022-01-24T18:57:05.000Z
2022-03-31T20:13:07.000Z
openfe/tests/dev/serialization_test_templates.py
OpenFreeEnergy/openfe
f2423ed2e4444a0824ff9b560e23b420c4997c6f
[ "MIT" ]
4
2022-01-24T18:45:54.000Z
2022-02-21T06:28:24.000Z
#!/usr/bin/env python # This script creates several files used in testing setup serialization: # # * openfe/tests/data/multi_molecule.sdf # * openfe/tests/data/serialization/ethane_template.sdf # * openfe/tests/data/serialization/network_template.graphml # # The two serialization templates need manual editing to repla...
28.653846
76
0.757718
0d7758610466286a05198a4d6f05b7488a107e50
519
py
Python
boxplot_metrics.py
IamAbhilashPathak/CNERG
b9e3e52ad72773f79c53a2c6134767cc4a66f542
[ "MIT" ]
null
null
null
boxplot_metrics.py
IamAbhilashPathak/CNERG
b9e3e52ad72773f79c53a2c6134767cc4a66f542
[ "MIT" ]
null
null
null
boxplot_metrics.py
IamAbhilashPathak/CNERG
b9e3e52ad72773f79c53a2c6134767cc4a66f542
[ "MIT" ]
1
2018-08-25T06:42:41.000Z
2018-08-25T06:42:41.000Z
import collections as cl import matplotlib.pyplot as plt import numpy as np import sys import os http = [] quic = [] x = ["http","quic"] y = [http,quic] count = 0 with open("QOE_metrics_new", "r") as data: for line in data: p = line.split() if (count == 0): http.append(float(p[3])) ...
16.741935
42
0.589595
7994154e02da34272f40540230dc8fee4e068919
1,828
py
Python
tests/test_miner_monitor.py
ployt0/server_monitor
835e48ed317b4b069ebd66675ca2d1b3120770c0
[ "MIT" ]
null
null
null
tests/test_miner_monitor.py
ployt0/server_monitor
835e48ed317b4b069ebd66675ca2d1b3120770c0
[ "MIT" ]
null
null
null
tests/test_miner_monitor.py
ployt0/server_monitor
835e48ed317b4b069ebd66675ca2d1b3120770c0
[ "MIT" ]
null
null
null
import datetime from unittest.mock import patch, sentinel, Mock from generalised_functions import ResultHolder, ErrorHandler, DAY_TIME_FMT from miner_monitor import CheckResult, interrog_routine, display_opt_int_list @patch("miner_monitor.format_ipv4", return_value="yarp!") def test_CheckResult(mock_format_ipv4): ...
46.871795
98
0.739606
a186cf9d5ec94d40c4a4adede25bda48ff6e06e2
69,814
py
Python
mpf/tests/test_SegmentDisplay.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
null
null
null
mpf/tests/test_SegmentDisplay.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
null
null
null
mpf/tests/test_SegmentDisplay.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
null
null
null
from unittest.mock import patch, call, ANY, Mock from mpf.core.rgb_color import RGBColor from mpf.devices.segment_display.text_stack_entry import TextStackEntry from mpf.devices.segment_display.transitions import NoTransition, PushTransition, CoverTransition, UncoverTransition, \ WipeTransition, TransitionRunner, ...
61.782301
165
0.59564
db9cd2a0e00d445922681d3adf118e58888365c5
32,159
py
Python
fatf/utils/distances.py
perellonieto/fat-forensics
0fd975ec743c5f44fc29bb2a499a2c1067bdbeff
[ "BSD-3-Clause" ]
null
null
null
fatf/utils/distances.py
perellonieto/fat-forensics
0fd975ec743c5f44fc29bb2a499a2c1067bdbeff
[ "BSD-3-Clause" ]
null
null
null
fatf/utils/distances.py
perellonieto/fat-forensics
0fd975ec743c5f44fc29bb2a499a2c1067bdbeff
[ "BSD-3-Clause" ]
null
null
null
""" The :mod:`fatf.utils.distances` module holds a variety of distance metrics. The distance metrics and tools implemented in this module are mainly used for the :class:`fatf.utils.models.models.KNN` model implementation, to measure distance (and similarity) of data points for various functions in this package as well...
37.135104
79
0.636898
245a97a05f9379bbc3872dbea94d61612ac97b95
276
py
Python
settings.py
nickderobertis/ufrc
9fedd37afafb69dce12d7931c6f4968a844b7e9f
[ "MIT" ]
null
null
null
settings.py
nickderobertis/ufrc
9fedd37afafb69dce12d7931c6f4968a844b7e9f
[ "MIT" ]
11
2022-01-12T23:18:20.000Z
2022-03-31T03:33:14.000Z
settings.py
nickderobertis/ufrc
9fedd37afafb69dce12d7931c6f4968a844b7e9f
[ "MIT" ]
null
null
null
from typing import Final from pydantic import BaseSettings class Settings(BaseSettings): username: str password: str uid: int group_name: str class Config: env_file = ".env" env_prefix = "UFRC_" SETTINGS: Final[Settings] = Settings()
15.333333
38
0.663043
39ea0b27ca23925c7b0e613fafd05091698adc5e
783
py
Python
ingestion/src/metadata/generated/schema/type/collectionDescriptor.py
MGoode1/OpenMetadata
1a226d50e879f2d00d2eb9e474fecd1c7c1a7a31
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/generated/schema/type/collectionDescriptor.py
MGoode1/OpenMetadata
1a226d50e879f2d00d2eb9e474fecd1c7c1a7a31
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/generated/schema/type/collectionDescriptor.py
MGoode1/OpenMetadata
1a226d50e879f2d00d2eb9e474fecd1c7c1a7a31
[ "Apache-2.0" ]
null
null
null
# generated by datamodel-codegen: # filename: schema/type/collectionDescriptor.json # timestamp: 2021-08-23T15:40:00+00:00 from __future__ import annotations from typing import Optional from pydantic import AnyUrl, BaseModel, Field from . import profile class CollectionInfo(BaseModel): name: Optional[str...
27.964286
88
0.734355
d4f7441a424cb4e778af47d73debc67fe656000c
1,949
py
Python
src/Freshpaper.py
pratik2709/freshpaper
cd5e1c89405c832baeebb1692887525023d9e114
[ "BSD-3-Clause" ]
null
null
null
src/Freshpaper.py
pratik2709/freshpaper
cd5e1c89405c832baeebb1692887525023d9e114
[ "BSD-3-Clause" ]
null
null
null
src/Freshpaper.py
pratik2709/freshpaper
cd5e1c89405c832baeebb1692887525023d9e114
[ "BSD-3-Clause" ]
null
null
null
import logging import sys import click from Constants import BING_IMAGE_DESCRIPTION, NASA_IMAGE_DESCRIPTION, IMAGE_SOURCES from src.DownloadUtils import DownloadUtils from src.SystemUtils import SystemUtils from src.WallpaperUtils import WallpaperUtils try: # for python3 from urllib.request import urlopen, u...
30.453125
91
0.704464
02b87647ad196e01fb685a7e48e9f4dca9f7ddd4
388
py
Python
from minha_classe import pessoa.py
marcosmercurio/Ola-Mundo
d5452336a3d83c2d43a8f3c222aa93fcbce845a0
[ "MIT" ]
null
null
null
from minha_classe import pessoa.py
marcosmercurio/Ola-Mundo
d5452336a3d83c2d43a8f3c222aa93fcbce845a0
[ "MIT" ]
null
null
null
from minha_classe import pessoa.py
marcosmercurio/Ola-Mundo
d5452336a3d83c2d43a8f3c222aa93fcbce845a0
[ "MIT" ]
null
null
null
from minha_classe import pessoa nome = str(input("Digite um nome: ")) idade = int(input("Digite a idade: ")) altura = float(input("Digite a altura: ")) peso = float(input("Digite o peso: ")) p1 = pessoa (nome, idade, altura, peso) imc = peso / altura **2 print('- -' *28 ) print("Dados da Pessoa:") print('- -' *28 ...
24.25
46
0.613402
da52a0a2eb0fbbfab4a94fb3515f505d1238b947
1,934
py
Python
test_naucse_render/test_notebook.py
Kobzol/naucse_render
20509c2b9f20fb727116325a847df2e428a430b9
[ "MIT" ]
3
2019-01-19T02:56:21.000Z
2019-01-21T12:41:54.000Z
test_naucse_render/test_notebook.py
Kobzol/naucse_render
20509c2b9f20fb727116325a847df2e428a430b9
[ "MIT" ]
23
2019-01-29T14:18:32.000Z
2022-02-15T13:37:56.000Z
test_naucse_render/test_notebook.py
Kobzol/naucse_render
20509c2b9f20fb727116325a847df2e428a430b9
[ "MIT" ]
5
2019-01-18T13:17:13.000Z
2021-12-01T13:47:10.000Z
from textwrap import dedent from pathlib import Path import click import pygments import pytest from naucse_render.notebook import convert_notebook FIXTURES = Path(__file__).parent / 'fixtures' @pytest.fixture(scope='module') def _notebook(): path = FIXTURES / 'notebook.ipynb' with open(path) as f: ...
27.239437
74
0.654085
4bfe6f6f8111c937be158db0a258777893493dda
3,123
py
Python
server/tests-py/test_webhook.py
devrsi0n/graphql-engine
5726852c5414d9a0bcb1b50b439a964438ce0ae4
[ "Apache-2.0", "MIT" ]
1
2019-10-31T19:50:02.000Z
2019-10-31T19:50:02.000Z
server/tests-py/test_webhook.py
devrsi0n/graphql-engine
5726852c5414d9a0bcb1b50b439a964438ce0ae4
[ "Apache-2.0", "MIT" ]
2
2021-11-15T17:04:34.000Z
2021-11-15T23:04:32.000Z
server/tests-py/test_webhook.py
devrsi0n/graphql-engine
5726852c5414d9a0bcb1b50b439a964438ce0ae4
[ "Apache-2.0", "MIT" ]
null
null
null
from datetime import datetime, timedelta import math import json import time import base64 import ruamel.yaml as yaml import pytest from test_subscriptions import init_ws_conn from context import PytestConf if not PytestConf.config.getoption('--hge-webhook'): pytest.skip('--hge-webhook is missing, skipping webho...
37.178571
103
0.682357
d14afd2621ffb4e6482e06c7a393c4c8c1d4ffd1
39,451
py
Python
smarthome.py
jpch/Domoticz-Google-Assistant
f020f87aa84d780a5b4421fe0bf207fa440b554a
[ "Apache-2.0" ]
null
null
null
smarthome.py
jpch/Domoticz-Google-Assistant
f020f87aa84d780a5b4421fe0bf207fa440b554a
[ "Apache-2.0" ]
null
null
null
smarthome.py
jpch/Domoticz-Google-Assistant
f020f87aa84d780a5b4421fe0bf207fa440b554a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import hashlib import os import re import subprocess import sys import threading from collections.abc import Mapping from itertools import product import requests import trait from auth import * from const import (DOMOTICZ_TO_GOOGLE_TYPES, ERR_FUNCTION_NOT_SUPPORTED, ERR_PROTOCOL_ERROR, ERR_D...
42.374866
253
0.568934
6c513039f259aac405df0c2c0c72b73097582a38
7,911
py
Python
tests/test_security_oauth2.py
dmig/fastapi
497e5e6257a282162a435b4d37f82d567fe73195
[ "MIT" ]
null
null
null
tests/test_security_oauth2.py
dmig/fastapi
497e5e6257a282162a435b4d37f82d567fe73195
[ "MIT" ]
1
2021-07-24T15:25:13.000Z
2021-07-24T15:25:13.000Z
tests/test_security_oauth2.py
dmig/fastapi
497e5e6257a282162a435b4d37f82d567fe73195
[ "MIT" ]
1
2020-04-19T17:43:43.000Z
2020-04-19T17:43:43.000Z
import pytest from fastapi import Depends, FastAPI, Security from fastapi.security import OAuth2, OAuth2PasswordRequestFormStrict from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() reusable_oauth2 = OAuth2( flows={ "password": { "tokenUrl": "/token", ...
31.644
96
0.447857
4cf03d4c7c5f7a5d4e2a37a112027954a7e6b867
45
py
Python
pycoin/tx/TxOut.py
genitrust/pycoin
b0daefdd69fa0400cc48ae16f923f03d366db7b4
[ "MIT" ]
null
null
null
pycoin/tx/TxOut.py
genitrust/pycoin
b0daefdd69fa0400cc48ae16f923f03d366db7b4
[ "MIT" ]
null
null
null
pycoin/tx/TxOut.py
genitrust/pycoin
b0daefdd69fa0400cc48ae16f923f03d366db7b4
[ "MIT" ]
1
2020-05-20T09:53:27.000Z
2020-05-20T09:53:27.000Z
from pycoin.coins.bitcoin.TxOut import TxOut
22.5
44
0.844444
23c3b84b641859eaaf7fb8053426b35186e7c0f4
24,437
py
Python
cvpysdk/metricsreport.py
kevinjojeejoseph/cvpysdk
29d82fe6e8f552940534c508cfdbf2c14d16cde3
[ "Apache-2.0" ]
21
2020-09-09T07:26:05.000Z
2022-02-27T19:05:42.000Z
cvpysdk/metricsreport.py
kevinjojeejoseph/cvpysdk
29d82fe6e8f552940534c508cfdbf2c14d16cde3
[ "Apache-2.0" ]
43
2020-07-29T07:27:21.000Z
2022-01-31T12:44:19.000Z
cvpysdk/metricsreport.py
kevinjojeejoseph/cvpysdk
29d82fe6e8f552940534c508cfdbf2c14d16cde3
[ "Apache-2.0" ]
14
2020-08-12T16:43:30.000Z
2021-12-06T01:59:41.000Z
# -*- coding: utf-8 -*- # -------------------------------------------------------------------------- # Copyright Commvault Systems, 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 # # ...
38.362637
99
0.623767
29fe24f12e62d17c7c04a8ecc76191b16be3481b
4,426
py
Python
reservoirpy/welllogspy/tracks/oilshowtrack.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
16
2020-05-07T01:57:04.000Z
2021-11-27T12:45:59.000Z
reservoirpy/welllogspy/tracks/oilshowtrack.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
null
null
null
reservoirpy/welllogspy/tracks/oilshowtrack.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
5
2020-05-12T07:28:24.000Z
2021-12-10T21:24:59.000Z
import matplotlib.pyplot as plt import matplotlib as mpl import pandas as pd import numpy as np def oilshowtrack(df: pd.DataFrame, oilshow: str = None, lims: list = None, dtick: bool = False, fill: bool = True, ax=None, ...
32.072464
120
0.542024