hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
5bd26c35c2a3693f265a5d23b4d28e4f91b66661
24,235
py
Python
digen/benchmark.py
perib/digen
36b30f347a1f95561e2567796671eab1126511da
[ "MIT" ]
null
null
null
digen/benchmark.py
perib/digen
36b30f347a1f95561e2567796671eab1126511da
[ "MIT" ]
null
null
null
digen/benchmark.py
perib/digen
36b30f347a1f95561e2567796671eab1126511da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (c) 2020 Patryk Orzechowski | Epistasis Lab | University of Pennsylvania DIGEN was developed at the University of Pennsylvania by Patryk Orzechowski (patryk.orzechowski@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and a...
42.074653
148
0.594883
828d308b0a069a863ae8d82d6398df86eb03a656
4,538
py
Python
homeassistant/components/yale_smart_alarm/config_flow.py
marcelblijleven/core
6d13466f8a9b157609227046e5ee542d1a261d0f
[ "Apache-2.0" ]
1
2021-07-31T21:08:49.000Z
2021-07-31T21:08:49.000Z
homeassistant/components/yale_smart_alarm/config_flow.py
marcelblijleven/core
6d13466f8a9b157609227046e5ee542d1a261d0f
[ "Apache-2.0" ]
58
2021-01-04T08:20:32.000Z
2022-03-31T06:05:13.000Z
homeassistant/components/yale_smart_alarm/config_flow.py
marcelblijleven/core
6d13466f8a9b157609227046e5ee542d1a261d0f
[ "Apache-2.0" ]
1
2021-04-04T22:03:57.000Z
2021-04-04T22:03:57.000Z
"""Adds config flow for Yale Smart Alarm integration.""" from __future__ import annotations import voluptuous as vol from yalesmartalarmclient.client import AuthenticationError, YaleSmartAlarmClient from homeassistant import config_entries from homeassistant.const import CONF_NAME, CONF_PASSWORD, CONF_USERNAME import...
34.907692
87
0.602248
bdcad064726831a1ce9dae6be82e0cb4de99b74c
640
py
Python
aridanalysis/error_strings.py
UBC-MDS/DSCI524_Group8
564c0f1371fde677a212d2d9bcf83d172ccc6a7b
[ "MIT" ]
1
2021-05-23T01:41:24.000Z
2021-05-23T01:41:24.000Z
aridanalysis/error_strings.py
UBC-MDS/aridanalysis_py
564c0f1371fde677a212d2d9bcf83d172ccc6a7b
[ "MIT" ]
37
2021-03-05T10:04:03.000Z
2021-03-26T18:48:14.000Z
aridanalysis/error_strings.py
UBC-MDS/aridanalysis_py
564c0f1371fde677a212d2d9bcf83d172ccc6a7b
[ "MIT" ]
2
2021-05-23T01:41:31.000Z
2021-07-05T17:32:59.000Z
# flake8: noqa INVALID_DATAFRAME = "ERROR: INVALID DATAFRAME INPUT" EMPTY_DATAFRAME = "ERROR: EMPTY DATAFRAME INPUT" RESPONSE_NOT_FOUND = "ERROR: RESPONSE SELECTION NOT PRESENT IN DATAFRAME" INVALID_RESPONSE_DATATYPE = "ERROR: INVALID RESPONSE DATATYPE" INVALID_REGULARIZATION_INPUT ...
58.181818
83
0.717188
b10d35df4260ba8609352e1e8698d09311dd81e3
903
py
Python
tests/MyGame/Example/Any.py
chi-w-ng/flatbuffers
e2b26ee19b3f680bbebf65c9c87ddff492cd25fd
[ "Apache-2.0" ]
16,870
2015-01-01T14:57:29.000Z
2022-03-31T21:56:17.000Z
tests/MyGame/Example/Any.py
chi-w-ng/flatbuffers
e2b26ee19b3f680bbebf65c9c87ddff492cd25fd
[ "Apache-2.0" ]
6,363
2015-01-01T04:41:50.000Z
2022-03-31T23:36:52.000Z
tests/MyGame/Example/Any.py
chi-w-ng/flatbuffers
e2b26ee19b3f680bbebf65c9c87ddff492cd25fd
[ "Apache-2.0" ]
3,324
2015-01-02T12:42:10.000Z
2022-03-31T10:57:27.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: Example class Any(object): NONE = 0 Monster = 1 TestSimpleTableWithEnum = 2 MyGame_Example2_Monster = 3 def AnyCreator(unionType, table): from flatbuffers.table import Table if not isinstance(table, Table): ...
34.730769
114
0.734219
e37abedda59bb1dd581aa04f1d67aff3fa9e3d1d
13,681
py
Python
signals/PeakSignal.py
SengerM/signals
2aa32a83dad4a04e4d63c8ee58daf5c1a2b02931
[ "MIT" ]
null
null
null
signals/PeakSignal.py
SengerM/signals
2aa32a83dad4a04e4d63c8ee58daf5c1a2b02931
[ "MIT" ]
null
null
null
signals/PeakSignal.py
SengerM/signals
2aa32a83dad4a04e4d63c8ee58daf5c1a2b02931
[ "MIT" ]
null
null
null
from .Signal import Signal import numpy as np from scipy import interpolate, integrate import warnings from scipy.stats import median_abs_deviation class PeakSignal(Signal): """Class intended to deal with 'single peak signals', i.e. a signal that is 'zero zero PEAK zero zero'.""" @property def peak_start_index(se...
43.431746
265
0.709817
f1b8d1c71bb84c444070e9d37e5ea10465233a25
2,880
py
Python
volatility/framework/plugins/linux/lsof.py
orchechik/volatility3
99a536e57e908850a656f8aed6262d56f60e4bdc
[ "Linux-OpenIB" ]
null
null
null
volatility/framework/plugins/linux/lsof.py
orchechik/volatility3
99a536e57e908850a656f8aed6262d56f60e4bdc
[ "Linux-OpenIB" ]
null
null
null
volatility/framework/plugins/linux/lsof.py
orchechik/volatility3
99a536e57e908850a656f8aed6262d56f60e4bdc
[ "Linux-OpenIB" ]
null
null
null
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # """A module containing a collection of plugins that produce data typically found in Linux's /proc file system.""" import logging from...
48
106
0.580903
576a03b88945397fdbdd0010dab7c02cebaf5cf4
32,887
py
Python
zuul.d/octavia/tests/unit/common/sample_configs/sample_configs.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
zuul.d/octavia/tests/unit/common/sample_configs/sample_configs.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
zuul.d/octavia/tests/unit/common/sample_configs/sample_configs.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 OpenStack Foundation # # 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...
36.868834
80
0.588895
1aaccb3dde6cd02c323d3e61ad1bc49aac627118
2,624
py
Python
data/p4VQE/R4/benchmark/startQiskit_Class644.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class644.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class644.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=15 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
28.215054
118
0.637195
f046c4e220c55ae653e07b2b9db9f3019507473f
609
py
Python
home/forms.py
Engerrs/ckan.org
a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158
[ "BSD-3-Clause" ]
null
null
null
home/forms.py
Engerrs/ckan.org
a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158
[ "BSD-3-Clause" ]
null
null
null
home/forms.py
Engerrs/ckan.org
a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158
[ "BSD-3-Clause" ]
null
null
null
from allauth.account.forms import SignupForm from django import forms class CkanorgSignupForm(SignupForm): first_name = forms.CharField( max_length=30, label='First Name', widget=forms.TextInput(attrs={'placeholder': 'First Name'})) last_name = forms.CharField( max_length=30,...
30.45
68
0.655172
0c372b4704388c6acfe140bfde3aa8e2768678a9
2,017
py
Python
networks/larflow/models/layer_utils.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
2
2020-07-09T19:34:03.000Z
2021-06-21T23:09:23.000Z
networks/larflow/models/layer_utils.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
networks/larflow/models/layer_utils.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import sparseconvnet as scn def residual_block(m, ninputchs, noutputchs, leakiness=0.01, dimensions=2): """ Residual Modulae Block intention is to append to a sequence module (m) produce output of [identity,3x3+3x3] then add together inputs ------ m [scn...
33.616667
99
0.654933
d410395b91ac61a9fd126dc454e3c98488a0b110
112
py
Python
leetcode/arrays/squares-of-a-sorted-array.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
1
2019-02-11T13:29:32.000Z
2019-02-11T13:29:32.000Z
leetcode/arrays/squares-of-a-sorted-array.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
1
2019-02-11T15:26:36.000Z
2019-02-11T15:26:36.000Z
leetcode/arrays/squares-of-a-sorted-array.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
null
null
null
class Solution: def sortedSquares(self, A: List[int]) -> List[int]: return sorted([num**2 for num in A])
22.4
53
0.651786
c0de3727e1168aa42a8648b9ba4a8b0e5a7b0197
2,864
py
Python
Face_Recognition/face_recognition_live.py
sion9262/HouseOfHope
c19e0f9518225447a28590b6731865538ceef212
[ "MIT" ]
1
2021-03-30T03:17:41.000Z
2021-03-30T03:17:41.000Z
Face_Recognition/face_recognition_live.py
sion9262/HouseOfHope
c19e0f9518225447a28590b6731865538ceef212
[ "MIT" ]
6
2020-10-12T14:03:15.000Z
2020-12-06T00:03:13.000Z
Face_Recognition/face_recognition_live.py
sion9262/HouseOfHope
c19e0f9518225447a28590b6731865538ceef212
[ "MIT" ]
1
2020-10-12T13:59:14.000Z
2020-10-12T13:59:14.000Z
import cv2 import RPi.GPIO as GPIO # RPi.GPIO 라이브러리를 GPIO로 사용 from time import sleep # time 라이브러리의 sleep함수 사용 servoPin = 12 # 서보 핀 SERVO_MAX_DUTY = 12 # 서보의 최대(180도) 위치의 주기 SERVO_MIN_DUTY = 3 # 서보의 최소(0도) 위치의 주기 GPIO.setmode(GPIO.BOARD) # GPIO 설정 GPIO.setup(servoPin, GPIO.OUT) # 서보핀 출력으로 설정 servo = GPIO....
18.597403
111
0.605098
98cc6c5aec7ee1a30b34d3afadee9415393ac1b0
311
py
Python
Ene-Jun-2021/perez-sanchez-jose-jahir/Segundo Parcial/Ejercicio-3/app/app.py
jarmarj/DAS_Sistemas
36c876673e7abae503cc137c3f66585a0e45ed79
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2021/perez-sanchez-jose-jahir/Segundo Parcial/Ejercicio-3/app/app.py
jarmarj/DAS_Sistemas
36c876673e7abae503cc137c3f66585a0e45ed79
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2021/perez-sanchez-jose-jahir/Segundo Parcial/Ejercicio-3/app/app.py
jarmarj/DAS_Sistemas
36c876673e7abae503cc137c3f66585a0e45ed79
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import redis import json redis_client = redis.Redis(host='redis', port=6379) with open('monk-data.json') as contenido: data = json.load(contenido) for dato in data: key =dato.get('id'),dato.get('first_name'),dato.get('last_name') redis_client.set(key,dato) print(redis_client.keys())
23.923077
69
0.684887
b095f560a9eca184727e641960df598195af6498
6,995
py
Python
configs/masktrackrcnn_ytvos/masktrackrcnn_r50_fpn_2x.py
Exely/masktrackrcnn-mmdet2.0
f181daa4bfcc15792cffecae7628167948335078
[ "Apache-2.0" ]
6
2021-06-30T07:40:56.000Z
2021-12-14T15:48:49.000Z
configs/masktrackrcnn_ytvos/masktrackrcnn_r50_fpn_2x.py
Exely/masktrackrcnn-mmdet2.0
f181daa4bfcc15792cffecae7628167948335078
[ "Apache-2.0" ]
6
2021-07-05T07:43:42.000Z
2022-01-06T07:31:01.000Z
configs/masktrackrcnn_ytvos/masktrackrcnn_r50_fpn_2x.py
Exely/masktrackrcnn-mmdet2.0
f181daa4bfcc15792cffecae7628167948335078
[ "Apache-2.0" ]
4
2021-07-17T07:33:38.000Z
2021-12-15T16:18:29.000Z
model = dict( type='MaskRCNN', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), norm_eval=True, style='pytorch'),...
33.151659
112
0.561401
8cd09d4b4b574cb6ceca9121eda5d824b76c143a
526
py
Python
pages/templatetags/pages_tags.py
WebCampZg/conference-web
76ccae83924fdcd040d9280db5cf3a249d668606
[ "BSD-3-Clause" ]
4
2015-03-03T17:48:14.000Z
2019-02-27T20:28:42.000Z
pages/templatetags/pages_tags.py
WebCampZg/conference-web
76ccae83924fdcd040d9280db5cf3a249d668606
[ "BSD-3-Clause" ]
104
2015-02-25T18:09:15.000Z
2019-06-21T10:02:53.000Z
pages/templatetags/pages_tags.py
WebCampZg/conference-web
76ccae83924fdcd040d9280db5cf3a249d668606
[ "BSD-3-Clause" ]
9
2015-03-01T18:59:14.000Z
2019-06-10T06:48:45.000Z
from django import template from usergroups.models import UserGroup register = template.Library() TAG_USERGROUPS = "<!-- usergroups -->" @register.filter() def pages_substitute(content): """ Substitute tags in pages source. """ if TAG_USERGROUPS in content: usergroups = UserGroup.objects.f...
23.909091
83
0.690114
2707b5a560a657c00fcb215a84d91d066580fbd5
3,814
py
Python
apps/user/views.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
apps/user/views.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
apps/user/views.py
mrf-foundation/ckios_v1
3556a99ba5e01f00e137fd124903ace77d2cba28
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required # Import User UpdateForm, ProfileUpdatForm from .forms import UserRegisterForm, UserUpdateForm, EditProfileForm, ProfileForm from .models import Profile, UpdateProfileForm from dja...
34.990826
102
0.615627
9e5a3b6d0ebf22556ed910a6a92f4cbc560a3774
58
py
Python
Reverse-and-complement-nucleic-acid-sequences-(DNA-RNA)-using-Python/task_1.py
AnuragAnalog/Guided-Projects-Coursera
938749ca3ef4529021b9323161be5d48b4dd26a9
[ "Apache-2.0" ]
1
2021-04-11T17:04:58.000Z
2021-04-11T17:04:58.000Z
Reverse-and-complement-nucleic-acid-sequences-(DNA-RNA)-using-Python/task_1.py
AnuragAnalog/Guided-Projects-Coursera
938749ca3ef4529021b9323161be5d48b4dd26a9
[ "Apache-2.0" ]
null
null
null
Reverse-and-complement-nucleic-acid-sequences-(DNA-RNA)-using-Python/task_1.py
AnuragAnalog/Guided-Projects-Coursera
938749ca3ef4529021b9323161be5d48b4dd26a9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This is a comment x = 5 y = 12
9.666667
23
0.5
7ae2c74eef123afd9bc8f25456f2b96bc88bfe9e
27,267
py
Python
ironic/tests/unit/conductor/test_base_manager.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
350
2015-01-02T09:35:49.000Z
2022-03-28T09:25:59.000Z
ironic/tests/unit/conductor/test_base_manager.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
7
2015-05-04T16:12:41.000Z
2021-08-31T12:27:27.000Z
ironic/tests/unit/conductor/test_base_manager.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
333
2015-01-06T09:09:22.000Z
2022-02-20T08:11:40.000Z
# 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 # d...
44.408795
79
0.614442
e13d84d27be907d544982d7c696e231b4b13754f
32,169
py
Python
vip_hci/pca/svd.py
Lewis-Picker/VIP
494190d124dd19e3494b0825b4c82c37d8207074
[ "MIT" ]
2
2017-02-10T02:02:17.000Z
2018-02-16T16:07:24.000Z
vip_hci/pca/svd.py
Lewis-Picker/VIP
494190d124dd19e3494b0825b4c82c37d8207074
[ "MIT" ]
null
null
null
vip_hci/pca/svd.py
Lewis-Picker/VIP
494190d124dd19e3494b0825b4c82c37d8207074
[ "MIT" ]
2
2020-07-18T19:31:03.000Z
2022-01-24T21:11:20.000Z
#! /usr/bin/env python """ Module with functions for computing SVDs. """ __author__ = 'Carlos Alberto Gomez Gonzalez' __all__ = ['SVDecomposer'] import warnings try: import cupy no_cupy = False except ImportError: msg = "Cupy not found. Do you have a GPU? Consider setting up a CUDA " msg += "environm...
39.568266
97
0.585533
5e2e406e26498dc87791d6827e3eb7304b2e6d7f
900
py
Python
var/spack/repos/builtin/packages/py-jaraco-functools/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-09-15T23:55:48.000Z
2019-09-15T23:55:48.000Z
var/spack/repos/builtin/packages/py-jaraco-functools/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-jaraco-functools/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2017-01-21T17:19:32.000Z
2017-01-21T17:19:32.000Z
# Copyright 2013-2019 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 PyJaracoFunctools(PythonPackage): """Functools like those found in stdlib""" homepage...
37.5
95
0.692222
1c3521323cf7d57dc8b2b240d95a181b90cc3144
1,188
py
Python
src/recognizeDigit.py
RsTaK/Sudoku
8daa0a06906ce61d9a71586a8d28a3931ca4e5e3
[ "MIT" ]
2
2020-01-22T14:32:40.000Z
2021-12-23T20:42:52.000Z
src/recognizeDigit.py
RsTaK/Sudoku
8daa0a06906ce61d9a71586a8d28a3931ca4e5e3
[ "MIT" ]
4
2020-11-13T18:54:24.000Z
2022-02-10T02:10:00.000Z
src/recognizeDigit.py
RsTaK/Sudoku
8daa0a06906ce61d9a71586a8d28a3931ca4e5e3
[ "MIT" ]
1
2020-01-22T14:02:50.000Z
2020-01-22T14:02:50.000Z
from keras.models import load_model import cv2 import pickle import keras.backend as K import numpy as np from src.model_path import MODEL_PATH '''def predict(self, cell): model = load_model('./model/Model.h5') f = K.function([model.layers[0].input, K.learning_phase()],[model.layers[-1].output]) rescaled_cell = ...
27
87
0.705387
b42d502295720ab8ca93e796c6c6925a38f6705c
2,411
py
Python
alchemyjsonschema/custom/format.py
mrichar1/alchemyjsonschema
cee81f707b3ebb64e72fd555b9118c76cf127caf
[ "MIT" ]
null
null
null
alchemyjsonschema/custom/format.py
mrichar1/alchemyjsonschema
cee81f707b3ebb64e72fd555b9118c76cf127caf
[ "MIT" ]
null
null
null
alchemyjsonschema/custom/format.py
mrichar1/alchemyjsonschema
cee81f707b3ebb64e72fd555b9118c76cf127caf
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import re from jsonschema._format import _checks_drafts, FormatChecker, _draft_checkers import calendar from datetime import date, time from ..compat import string_types """ this is custom format """ time_rx = re.compile(r"(\d{2}):(\d{2}):(\d{2})(\.\d+)?(Z|([+\-])(\d{2}):(\d{2}))?") date_rx = re...
24.85567
83
0.616757
1c0e623ae0474cb9f6dc4ca8ade7f61f33481776
3,807
py
Python
test/functional/wallet_encryption.py
INFAQCOIN/INFAQ
487de82c26135eb8ac93c9393e7fdb29bbc2822c
[ "MIT" ]
1
2022-01-18T14:48:23.000Z
2022-01-18T14:48:23.000Z
test/functional/wallet_encryption.py
martin-braun/INFAQ
fca6db067b8079fbedf4e9160180424c95470fed
[ "MIT" ]
null
null
null
test/functional/wallet_encryption.py
martin-braun/INFAQ
fca6db067b8079fbedf4e9160180424c95470fed
[ "MIT" ]
1
2022-01-18T14:48:28.000Z
2022-01-18T14:48:28.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Wallet encryption""" import time from test_framework.test_framework import infaqcoinTestFramewor...
43.758621
138
0.70528
61325edb08cafce8e4f411337f491e1c40aa1fd0
80
py
Python
html5&css3/Aulas/ex002/teste.py
Joey-Resende/Estudando-htlm5-e-css3
224306df9bd64c3cb88e313702881642c74352b9
[ "MIT" ]
null
null
null
html5&css3/Aulas/ex002/teste.py
Joey-Resende/Estudando-htlm5-e-css3
224306df9bd64c3cb88e313702881642c74352b9
[ "MIT" ]
null
null
null
html5&css3/Aulas/ex002/teste.py
Joey-Resende/Estudando-htlm5-e-css3
224306df9bd64c3cb88e313702881642c74352b9
[ "MIT" ]
null
null
null
teste = int(input('Digite seu nome: ')) print(f'Seu nome e bem bonito {teste}')
26.666667
39
0.675
d1788137294d70c937f20c94d3340c73d32cff35
386
py
Python
package/diana/utils/gateways/file_handlers/text_file.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
15
2019-02-12T23:26:09.000Z
2021-12-21T08:53:58.000Z
package/diana/utils/gateways/file_handlers/text_file.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
2
2019-01-23T21:13:12.000Z
2019-06-28T15:45:51.000Z
package/diana/utils/gateways/file_handlers/text_file.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
6
2019-01-23T20:22:50.000Z
2022-02-03T03:27:04.000Z
import os import attr from .file_handler import FileHandler @attr.s class TextFileHandler(FileHandler): def put(self, fn: str, data: str): fp = self.get_path(fn) # logger = logging.getLogger(self.name) if not os.path.exists( os.path.dirname(fp) ): os.makedirs(os.path.dirname...
20.315789
53
0.611399
70cb7cc29bd7067f286960d5e88eef1730f36795
9,074
py
Python
GramAddict/core/storage.py
philip-ulrich/insomniac-fork
9f0fe6e7c6cdcb690c1711faaa7df194d36172b1
[ "MIT" ]
2
2020-10-29T20:07:03.000Z
2020-10-29T21:10:07.000Z
GramAddict/core/storage.py
philip-ulrich/insomniac-fork
9f0fe6e7c6cdcb690c1711faaa7df194d36172b1
[ "MIT" ]
1
2020-10-29T13:27:00.000Z
2020-10-29T21:04:30.000Z
GramAddict/core/storage.py
GramAddict/gramaddict-bot
9f0fe6e7c6cdcb690c1711faaa7df194d36172b1
[ "MIT" ]
null
null
null
import json import logging import os import sys from datetime import datetime, timedelta from enum import Enum, unique from typing import Optional, Union from atomicwrites import atomic_write logger = logging.getLogger(__name__) ACCOUNTS = "accounts" REPORTS = "reports" FILENAME_HISTORY_FILTER_USERS = "history_filte...
35.584314
102
0.610976
197b76f8f58edb22b149804f828bcd52aa93649d
6,454
py
Python
pyro/contrib/autoname/scoping.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
10
2020-03-18T14:41:25.000Z
2021-07-04T08:49:57.000Z
pyro/contrib/autoname/scoping.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
19
2018-10-30T13:45:31.000Z
2019-09-27T14:16:57.000Z
pyro/contrib/autoname/scoping.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
5
2020-06-21T23:40:35.000Z
2021-11-09T16:18:42.000Z
""" ``pyro.contrib.autoname.scoping`` contains the implementation of :func:`pyro.contrib.autoname.scope`, a tool for automatically appending a semantically meaningful prefix to names of sample sites. """ import functools from pyro.poutine.messenger import Messenger from pyro.poutine.runtime import effectful class Na...
34.698925
92
0.596529
7024fa5453f357ec6c1753d40656b9074a9dd51f
5,980
py
Python
tests/Mongo/ModelDemo.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
29
2019-05-22T08:08:34.000Z
2021-11-16T08:15:10.000Z
tests/Mongo/ModelDemo.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
4
2019-05-20T08:34:07.000Z
2019-09-11T11:26:57.000Z
tests/Mongo/ModelDemo.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
5
2019-05-20T09:15:49.000Z
2021-09-04T19:08:59.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- """model类""" __author__ = '' from tests.mysqlDemo.BaseModel import BaseModel class ModelDemo1(BaseModel): __database__ = 'VnTrader_Log_Db' # 表名 __tablename__ = '20190226' # 表名 __create_time__ = None # 插入时间字段 如果该字段为None create_time则不会自动添加 __upd...
44.626866
231
0.60301
e208a89d3a607c1889c7f869cb2397b8346e0a31
6,991
py
Python
.venv/lib/python3.8/site-packages/clikit/api/io/io.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
1
2020-08-07T16:09:57.000Z
2020-08-07T16:09:57.000Z
.venv/lib/python3.8/site-packages/clikit/api/io/io.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/clikit/api/io/io.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
null
null
null
from typing import Optional from clikit.api.formatter import Formatter from .input import Input from .output import Output class IO(Formatter): """ Provides methods to access the console input and output. """ def __init__( self, input, output, error_output ): # type: (Input, Output, Ou...
30.264069
87
0.597196
a0e10056329ff2e3f1991d872d961b5596ef247e
5,034
py
Python
revitAPI/viewRemoveCropRegionShape.py
sixtysecondrevit/dynamoPython
dfb4b001800ebf9ab308510db40cfc5a5a953fee
[ "MIT" ]
114
2018-07-17T17:47:11.000Z
2022-03-08T09:33:39.000Z
revitAPI/viewRemoveCropRegionShape.py
sixtysecondrevit/dynamoPython
dfb4b001800ebf9ab308510db40cfc5a5a953fee
[ "MIT" ]
28
2018-07-18T10:43:37.000Z
2020-11-24T06:08:18.000Z
revitAPI/viewRemoveCropRegionShape.py
sixtysecondrevit/dynamoPython
dfb4b001800ebf9ab308510db40cfc5a5a953fee
[ "MIT" ]
56
2018-07-17T17:57:28.000Z
2022-03-26T12:30:39.000Z
""" VIEW REMOVE CROP REGION SHAPE """ __author__ = 'Sol Amour - amoursol@gmail.com' __twitter__ = '@solamour' __version__ = '1.0.0' # Importing Reference Modules import clr # CLR ( Common Language Runtime Module ) clr.AddReference("RevitServices") # Adding the RevitServices.dll special Dynamo # module to deal with R...
45.763636
86
0.754271
bf45de095669be58131e758d7b5e796ba65da186
4,661
py
Python
conditional.py
LLNL/fastcam
99cefe37528014247319468cf05f54fef259d3bf
[ "BSD-3-Clause" ]
25
2020-01-27T23:31:29.000Z
2022-03-30T08:23:02.000Z
conditional.py
LLNL/fastcam
99cefe37528014247319468cf05f54fef259d3bf
[ "BSD-3-Clause" ]
1
2020-12-17T10:27:10.000Z
2020-12-17T10:27:10.000Z
conditional.py
LLNL/fastcam
99cefe37528014247319468cf05f54fef259d3bf
[ "BSD-3-Clause" ]
5
2020-04-02T21:53:14.000Z
2021-01-27T11:51:12.000Z
''' BSD 3-Clause License Copyright (c) 2020, Lawrence Livermore National Laboratory All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright not...
38.204918
120
0.642781
e906030224fce4ee5b021be2a1a3c63e95a0bd3c
3,265
py
Python
djangoresume/settings.py
nfoos/django-resume
70fe6a2541358708d6973868750a82e854a14fe4
[ "MIT" ]
11
2015-03-31T21:36:45.000Z
2022-02-18T18:59:17.000Z
djangoresume/settings.py
nfoos/django-resume
70fe6a2541358708d6973868750a82e854a14fe4
[ "MIT" ]
2
2018-02-15T13:45:47.000Z
2018-07-07T14:45:02.000Z
djangoresume/settings.py
nfoos/django-resume
70fe6a2541358708d6973868750a82e854a14fe4
[ "MIT" ]
13
2015-06-07T05:20:44.000Z
2021-02-11T12:18:22.000Z
""" Django settings for djangoresume project. Generated by 'django-admin startproject' using Django 1.10.1. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ impo...
26.12
91
0.695559
c49d1a8bf60e3fdc13e4565f7eab6b73862232df
577
py
Python
test/test_del_group.py
200312/python_training
623cfd967d999849aac5d3130823fba8638bc289
[ "Apache-2.0" ]
null
null
null
test/test_del_group.py
200312/python_training
623cfd967d999849aac5d3130823fba8638bc289
[ "Apache-2.0" ]
null
null
null
test/test_del_group.py
200312/python_training
623cfd967d999849aac5d3130823fba8638bc289
[ "Apache-2.0" ]
null
null
null
from model.group import Group import random def test_delete_some_group(app, db, check_ui): if len(db.get_group_list()) == 0: app.group.create(Group(name="test")) old_groups = db.get_group_list() group = random.choice(old_groups) app.group.delete_group_by_id(group.id) new_groups = db.get_g...
33.941176
113
0.710572
c26e2acfc4598da2503f41da041329bc56a16a6e
3,771
py
Python
annotations/simplify_annotations.py
chrhenning/image_text_relation
8d09483b48babe9bf90ca15a8cd67e389a0bd00c
[ "Apache-2.0" ]
null
null
null
annotations/simplify_annotations.py
chrhenning/image_text_relation
8d09483b48babe9bf90ca15a8cd67e389a0bd00c
[ "Apache-2.0" ]
null
null
null
annotations/simplify_annotations.py
chrhenning/image_text_relation
8d09483b48babe9bf90ca15a8cd67e389a0bd00c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # This script takes the input for the SC and MI classifier (which is then used to generate the TFRecord Files) # simplifies the annotations by omitting MI label 1, 6 and 7 as described in chapter 4.2.3.1 of the thesis. Label 1 # is ommited as there is no annotated sample representing it and becau...
39.28125
134
0.661098
37c7e9c3c823675c1a47d2e915cab77fb1dec479
4,743
py
Python
anomaly_detection/utils/preprocessing/create_folds/camelyon16.py
ninatu/anomaly_detection
6fa35f3fd35976ce2b857801d288e17f454241b9
[ "Apache-2.0" ]
22
2020-10-21T07:59:33.000Z
2022-03-18T08:07:49.000Z
anomaly_detection/utils/preprocessing/create_folds/camelyon16.py
ninatu/anomaly_detection
6fa35f3fd35976ce2b857801d288e17f454241b9
[ "Apache-2.0" ]
2
2020-10-26T05:19:39.000Z
2021-09-21T18:16:02.000Z
anomaly_detection/utils/preprocessing/create_folds/camelyon16.py
ninatu/anomaly_detection
6fa35f3fd35976ce2b857801d288e17f454241b9
[ "Apache-2.0" ]
7
2020-11-19T12:32:29.000Z
2022-03-06T21:02:30.000Z
import os import numpy as np import pandas as pd import re from sklearn.model_selection import KFold import argparse N_TUMOR_SLIDES_FOR_VALIDATION = 4 PATCH_NAME_PAT = re.compile('(?P<image_name>.*)_(?P<crop_type>.*)_x_(?P<x>\d+)_y_(?P<y>\d+)_w_(?P<w>\d+)_h_(?P<h>\d+)') def _filter_filenames(slides, filenames): ...
46.5
119
0.706937
9c8abd9f2ab62dba5912f43ad4cc201627c30fb2
2,777
py
Python
src/imitation/rewards/serialize.py
dreamfyrian/imitation
682bc4b919baf57bdd959ac646caba21d92cdf71
[ "MIT" ]
438
2019-04-11T22:02:03.000Z
2022-03-30T05:17:19.000Z
src/imitation/rewards/serialize.py
dreamfyrian/imitation
682bc4b919baf57bdd959ac646caba21d92cdf71
[ "MIT" ]
397
2019-03-22T18:24:10.000Z
2022-03-29T23:08:05.000Z
src/imitation/rewards/serialize.py
dreamfyrian/imitation
682bc4b919baf57bdd959ac646caba21d92cdf71
[ "MIT" ]
106
2019-04-11T22:02:08.000Z
2022-03-28T14:12:20.000Z
"""Load serialized reward functions of different types.""" from typing import Callable import numpy as np import torch as th from stable_baselines3.common.vec_env import VecEnv from imitation.rewards import common from imitation.util import registry, util # TODO(sam): I suspect this whole file can be replaced with ...
30.516484
85
0.658624
97f04cbfbea51f0e8c496093f5fea06cbd8fa872
643
py
Python
test/programytest/processors/pre/test_demojize.py
cdoebler1/AIML2
ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a
[ "MIT" ]
345
2016-11-23T22:37:04.000Z
2022-03-30T20:44:44.000Z
test/programytest/processors/pre/test_demojize.py
MikeyBeez/program-y
00d7a0c7d50062f18f0ab6f4a041068e119ef7f0
[ "MIT" ]
275
2016-12-07T10:30:28.000Z
2022-02-08T21:28:33.000Z
test/programytest/processors/pre/test_demojize.py
VProgramMist/modified-program-y
f32efcafafd773683b3fe30054d5485fe9002b7d
[ "MIT" ]
159
2016-11-28T18:59:30.000Z
2022-03-20T18:02:44.000Z
import unittest from programy.bot import Bot from programy.config.bot.bot import BotConfiguration from programy.context import ClientContext from programy.processors.pre.demojize import DemojizePreProcessor from programytest.client import TestClient class DemoizeTests(unittest.TestCase): def setUp(self): ...
27.956522
92
0.746501
5717593d847a39f9a4abde8e75215409379f0e21
19,616
py
Python
reversion_compare/views.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
reversion_compare/views.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
8
2015-12-28T18:56:19.000Z
2019-04-01T17:33:48.000Z
reversion_compare/views.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
# coding: utf-8 """ Admin extensions for django-reversion-compare :copyleft: 2012 by the django-reversion-compare team, see AUTHORS for more details. :license: GNU GPL v3 or above, see LICENSE for more details. """ import logging from django import template from django.shortcuts import render from django...
35.536232
125
0.620055
f4e1d05ab3b500bab54e4762cb2f93dfc73209a8
1,616
py
Python
bus1Topo.py
sayonsom/Canvass
e59cd68f26722144abc5caf2d7ae1e7389c39ad1
[ "MIT" ]
9
2018-01-29T10:53:25.000Z
2021-02-21T19:35:23.000Z
bus1Topo.py
cyberange-dev0ps/Canvass
e59cd68f26722144abc5caf2d7ae1e7389c39ad1
[ "MIT" ]
1
2019-06-04T14:43:34.000Z
2021-07-09T08:35:13.000Z
bus1Topo.py
cyberange-dev0ps/Canvass
e59cd68f26722144abc5caf2d7ae1e7389c39ad1
[ "MIT" ]
12
2017-05-04T23:39:10.000Z
2021-09-25T17:05:00.000Z
#!/usr/bin/python """ Custom Smart Substation Communication Topology ---------------------------------- Model built using Sayon (a MIT License Software). ---------------------------------- W A R N I N G: ---------------------------------- --> Please make sure you know Mininet Python API very well before editing this f...
26.491803
97
0.672649
7924ff3e637aa98a856b8c8fd3b26535036699a6
2,136
py
Python
examples/semantic_indexing/ann_util.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/semantic_indexing/ann_util.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/semantic_indexing/ann_util.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# 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...
35.6
113
0.728933
61812894ddd30c9ed2927d6421d39676738a78f2
210
py
Python
tests/unittest/test_mod/test_sys_simulation/__init__.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
5,263
2016-07-20T10:41:10.000Z
2022-03-29T08:24:34.000Z
tests/unittest/test_mod/test_sys_simulation/__init__.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
572
2016-07-28T07:51:02.000Z
2022-02-09T15:28:03.000Z
tests/unittest/test_mod/test_sys_simulation/__init__.py
terencehk/rqalpha
349e6a0a8e45449646acd6063cdec06df3bc1171
[ "Apache-2.0" ]
1,769
2016-07-20T11:11:55.000Z
2022-03-31T10:11:38.000Z
import os def load_tests(loader, standard_tests, pattern): this_dir = os.path.dirname(__file__) standard_tests.addTests(loader.discover(start_dir=this_dir, pattern=pattern)) return standard_tests
26.25
81
0.780952
40bb7f79eaf0753d6b3f702245d6e3a5dfb042ee
127,691
py
Python
lib/googleappengine/python/google/appengine/tools/dev_appserver.py
mtktauseef/wordpresstoblogger
151cc2e1b6c7f4f835dc51dfb8f50a1b0d5caa74
[ "Apache-2.0" ]
null
null
null
lib/googleappengine/python/google/appengine/tools/dev_appserver.py
mtktauseef/wordpresstoblogger
151cc2e1b6c7f4f835dc51dfb8f50a1b0d5caa74
[ "Apache-2.0" ]
null
null
null
lib/googleappengine/python/google/appengine/tools/dev_appserver.py
mtktauseef/wordpresstoblogger
151cc2e1b6c7f4f835dc51dfb8f50a1b0d5caa74
[ "Apache-2.0" ]
null
null
null
#!/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...
33.200988
114
0.669272
b7d4e63a4efb33c15327804e792caa706440c590
6,520
py
Python
salt/states/netntp.py
alexjennings/salt
921cfe1fe40f37471ebb58fa6577d72b0d6b77d1
[ "Apache-2.0" ]
null
null
null
salt/states/netntp.py
alexjennings/salt
921cfe1fe40f37471ebb58fa6577d72b0d6b77d1
[ "Apache-2.0" ]
null
null
null
salt/states/netntp.py
alexjennings/salt
921cfe1fe40f37471ebb58fa6577d72b0d6b77d1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Network NTP =============== Configure NTP peers on the device via a salt proxy. :codeauthor: Mircea Ulinic <mircea@cloudflare.com> & Jerome Fleury <jf@cloudflare.com> :maturity: new :depends: napalm :platform: linux Dependencies ------------ - :doc:`napalm ntp management module (s...
30.46729
120
0.466871
e56b058a7b15a6e68b95dee1dd09e56debac0c35
3,537
py
Python
scripts/ance/encode_corpus_msmarco_doc.py
keleog/pyserini
3cd6b7ee8e77d699726756938fac0714c10ad0a9
[ "Apache-2.0" ]
451
2019-11-02T03:13:38.000Z
2022-03-31T22:12:53.000Z
scripts/ance/encode_corpus_msmarco_doc.py
keleog/pyserini
3cd6b7ee8e77d699726756938fac0714c10ad0a9
[ "Apache-2.0" ]
568
2019-11-18T21:52:44.000Z
2022-03-31T21:03:13.000Z
scripts/ance/encode_corpus_msmarco_doc.py
keleog/pyserini
3cd6b7ee8e77d699726756938fac0714c10ad0a9
[ "Apache-2.0" ]
187
2019-11-22T15:27:54.000Z
2022-03-26T17:19:07.000Z
# # Pyserini: Reproducible IR research with sparse and dense representations # # 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...
40.193182
117
0.655075
732d3ebe14e52c8e69f50a651a4c817f7655d3c5
185
py
Python
cride/circles/apps.py
Hernandiaz035/CRide
6ed47b7d76afd7c70081dd9722227b61a68d46b9
[ "MIT" ]
null
null
null
cride/circles/apps.py
Hernandiaz035/CRide
6ed47b7d76afd7c70081dd9722227b61a68d46b9
[ "MIT" ]
null
null
null
cride/circles/apps.py
Hernandiaz035/CRide
6ed47b7d76afd7c70081dd9722227b61a68d46b9
[ "MIT" ]
null
null
null
"""Circles App.""" # Django from django.apps import AppConfig class CirclesAppConfig(AppConfig): """Circles Appconfig""" name = 'cride.circles' verbose_name = 'Circles'
15.416667
34
0.681081
38b98522ba2f58eb13ea732a06ffa74f438b4707
4,990
py
Python
sdk/python/pulumi_azure_nextgen/network/v20191101/get_route.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20191101/get_route.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20191101/get_route.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
37.518797
142
0.67014
ea4ae40aaf554902ab62981837dc833893680275
3,136
py
Python
Config Tool/page/examples/rework_progress_bar/main.py
FrauBluher/PMSM
acb806ea23705ecc8ea29d8a23c3fb10c3b61e19
[ "MIT" ]
51
2015-01-17T16:08:08.000Z
2022-01-02T05:06:25.000Z
Config Tool/page/examples/rework_progress_bar/main.py
hhintoglu/PMSM
acb806ea23705ecc8ea29d8a23c3fb10c3b61e19
[ "MIT" ]
null
null
null
Config Tool/page/examples/rework_progress_bar/main.py
hhintoglu/PMSM
acb806ea23705ecc8ea29d8a23c3fb10c3b61e19
[ "MIT" ]
39
2016-06-18T05:43:14.000Z
2022-03-16T13:19:15.000Z
#! /usr/bin/env python # # Generated by PAGE version 4.2 # In conjunction with Tcl version 8.6 # Jan. 21, 2014 06:35:03 AM import sys try: from Tkinter import * except ImportError: from tkinter import * try: import ttk py3 = 0 except ImportError: import tkinter.ttk as ttk py3 = 1 import m...
28.509091
73
0.652742
82cc467366648dd52cc9ded65cc21f46e0da1437
41,156
py
Python
sdk/python/pulumi_nomad/external_volume.py
pulumi/pulumi-nomad
00cc556d40bc1895f9ce10cb221fd21d1ef15350
[ "ECL-2.0", "Apache-2.0" ]
3
2021-07-25T19:12:40.000Z
2022-03-17T17:52:35.000Z
sdk/python/pulumi_nomad/external_volume.py
pulumi/pulumi-nomad
00cc556d40bc1895f9ce10cb221fd21d1ef15350
[ "ECL-2.0", "Apache-2.0" ]
18
2021-11-10T15:49:13.000Z
2022-03-31T15:36:18.000Z
sdk/python/pulumi_nomad/external_volume.py
pulumi/pulumi-nomad
00cc556d40bc1895f9ce10cb221fd21d1ef15350
[ "ECL-2.0", "Apache-2.0" ]
1
2021-07-25T19:12:49.000Z
2021-07-25T19:12:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
46.662132
200
0.659685
9977bb9ef57f531ee4663b1f2668ced79e8e6f99
1,906
py
Python
tinkering/nlp/nlp_processing.py
Darthone/Informed-Finance-Canary
1fe398c1c157ca09c591be95e6a2f317ad1add8c
[ "MIT" ]
1
2018-03-07T08:27:48.000Z
2018-03-07T08:27:48.000Z
tinkering/nlp/nlp_processing.py
Darthone/Informed-Finance-Canary
1fe398c1c157ca09c591be95e6a2f317ad1add8c
[ "MIT" ]
null
null
null
tinkering/nlp/nlp_processing.py
Darthone/Informed-Finance-Canary
1fe398c1c157ca09c591be95e6a2f317ad1add8c
[ "MIT" ]
null
null
null
import nltk import math from nltk.corpus import state_union, stopwords from nltk.tokenize import word_tokenize from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.decomposition import TruncatedSVD import pandas as pd #State of the Union Addresses train_text = open("GM1.txt") train_text2 = open("G...
26.472222
81
0.766527
02187dae6fed9d0eb27598ae17db1bd7ea496228
152
py
Python
Desafios/MODULO 1/Desafio 07.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
Desafios/MODULO 1/Desafio 07.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
Desafios/MODULO 1/Desafio 07.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
n1 = float(input('Digite a primeira nota: ')) n2 = float(input('Digite a segunda nota:')) media = (n1 + n2) / 2 print('A sua média é {}.'.format(media))
38
45
0.638158
1a18b1158dd639799bb07df0f7e36bd065c6e649
1,166
py
Python
.history/my_classes/ScopesClosuresAndDecorators/Closures_20210711172600.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/Closures_20210711172600.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/Closures_20210711172600.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Closuers Free variables and closures Remember: Functions defined inside another function can access the outer (nonLocal) variables """ def outer(): x = 'python' / this x refers to the one in outer's scope', this nonlocal variable x is called a free varia...
32.388889
132
0.560034
890f1edd22585740ec2499c79f8b455849a8181e
459
py
Python
Processsos Estagio/camelCase.py
ArthurGini/EstudosPython
905e1227fa66fe29feb411dbb8d1ce1b75a98bd6
[ "MIT" ]
1
2019-12-03T02:39:17.000Z
2019-12-03T02:39:17.000Z
Processsos Estagio/camelCase.py
ArthurGini/EstudosPython
905e1227fa66fe29feb411dbb8d1ce1b75a98bd6
[ "MIT" ]
null
null
null
Processsos Estagio/camelCase.py
ArthurGini/EstudosPython
905e1227fa66fe29feb411dbb8d1ce1b75a98bd6
[ "MIT" ]
null
null
null
import re def CamelCase(str): str = re.sub('[^a-zA-Z0-9\.]', '', str) print(str) list_words = str.split(" ") aux = "" for index, word in enumerate(list_words): print(index) print(word) if index == 0: aux = aux + word.lower() else: aux = aux = word.title() #aux = aux +...
15.827586
50
0.566449
44b6dd155c3eba59c4932b7896824559247df8b1
5,795
py
Python
deps/mrtaskman/packages/launch/android_launch.py
mims2707/bite-project
d6ce4e97fcf0ce666ec92498ff2c2b77c6fe80db
[ "Apache-2.0" ]
11
2015-05-27T04:07:32.000Z
2021-05-24T11:55:59.000Z
deps/mrtaskman/packages/launch/android_launch.py
mims2707/bite-project
d6ce4e97fcf0ce666ec92498ff2c2b77c6fe80db
[ "Apache-2.0" ]
1
2017-12-14T05:25:34.000Z
2017-12-14T05:25:34.000Z
deps/mrtaskman/packages/launch/android_launch.py
katmoon/bite-project
d6ce4e97fcf0ce666ec92498ff2c2b77c6fe80db
[ "Apache-2.0" ]
5
2016-03-31T13:27:39.000Z
2019-02-25T01:18:24.000Z
#!/usr/bin/python """Executes Android Launch test over adb to attached Android device.""" __author__ = 'jeff.carollo@gmail.com (Jeff Carollo)' import datetime import logging import os import re import subprocess import sys import time from tasklib import apklib ADB_COMMAND = apklib.ADB_COMMAND LAUNCH_COMMAND = (A...
32.740113
98
0.636238
8da68522b504d386d32594ed439db20f5ceb50d5
4,731
py
Python
examples/FrictionValidationCases/rolling_friction_initial_velocity.py
tp5uiuc/PyElastica
37db35137b198d1c0756e058ec1635a3675fab22
[ "MIT" ]
null
null
null
examples/FrictionValidationCases/rolling_friction_initial_velocity.py
tp5uiuc/PyElastica
37db35137b198d1c0756e058ec1635a3675fab22
[ "MIT" ]
1
2022-01-06T11:30:20.000Z
2022-02-07T07:11:22.000Z
examples/FrictionValidationCases/rolling_friction_initial_velocity.py
tp5uiuc/PyElastica
37db35137b198d1c0756e058ec1635a3675fab22
[ "MIT" ]
null
null
null
__doc__ = """Rolling friction validation, for detailed explanation refer to Gazzola et. al. R. Soc. 2018 section 4.1.4 and Appendix G """ import numpy as np import sys # FIXME without appending sys.path make it more generic sys.path.append("../../") from elastica import * from examples.FrictionValidationCases.frict...
31.54
106
0.692877
217302c9c1ea5e1db1a2bc3fd40a88d0ea1b3efc
1,049
py
Python
splunk_connect_for_snmp/common/hummanbool.py
polarG/splunk-connect-for-snmp
d1e85675edd5caa5bad9114d1611411e15cec063
[ "Apache-2.0" ]
null
null
null
splunk_connect_for_snmp/common/hummanbool.py
polarG/splunk-connect-for-snmp
d1e85675edd5caa5bad9114d1611411e15cec063
[ "Apache-2.0" ]
null
null
null
splunk_connect_for_snmp/common/hummanbool.py
polarG/splunk-connect-for-snmp
d1e85675edd5caa5bad9114d1611411e15cec063
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
23.311111
74
0.616778
1457132ef6ceb9be2329ebf040dc42697704eb68
1,334
py
Python
src/mur/admin.py
lyy289065406/py-register
b76b190e19d221e2901aa0f1034289adae2a6b0b
[ "MIT" ]
1
2021-12-27T01:45:09.000Z
2021-12-27T01:45:09.000Z
src/mur/admin.py
lyy289065406/py-gen-mur
b76b190e19d221e2901aa0f1034289adae2a6b0b
[ "MIT" ]
null
null
null
src/mur/admin.py
lyy289065406/py-gen-mur
b76b190e19d221e2901aa0f1034289adae2a6b0b
[ "MIT" ]
1
2021-12-27T00:16:13.000Z
2021-12-27T00:16:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------- import random import string from ._public import * def read_machine_code() : ''' 管理员场景: 读取用户提供的机器码 [return] 机器码 ''' return read(MACHINE_CODE_PATH) def gen_user_code(days=3, crypt=CRYPT, to_file=True)...
23
75
0.606447
6840a03cabae0d89ef78aa444e94222af506c1f6
967
py
Python
ifrc/urls.py
IFRCGo/ifrcgo_react
bfd8572daeb492b0659543be58152626f613a7f4
[ "MIT" ]
null
null
null
ifrc/urls.py
IFRCGo/ifrcgo_react
bfd8572daeb492b0659543be58152626f613a7f4
[ "MIT" ]
null
null
null
ifrc/urls.py
IFRCGo/ifrcgo_react
bfd8572daeb492b0659543be58152626f613a7f4
[ "MIT" ]
null
null
null
"""ifrc URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
35.814815
80
0.671148
88bf31be2920b6ec7390cf1c30b08cd48a52c06e
6,670
py
Python
filters.py
Shamairu/leb-master
5efaf9c5914e3d387388ff6a43a3dc21b5505dfc
[ "Apache-2.0" ]
null
null
null
filters.py
Shamairu/leb-master
5efaf9c5914e3d387388ff6a43a3dc21b5505dfc
[ "Apache-2.0" ]
null
null
null
filters.py
Shamairu/leb-master
5efaf9c5914e3d387388ff6a43a3dc21b5505dfc
[ "Apache-2.0" ]
1
2020-06-26T21:39:33.000Z
2020-06-26T21:39:33.000Z
#!/usr/bin/env python # # Copyright 2016 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...
28.262712
94
0.590255
b30649decc1f7af9e2a404dfa0afe60cabf05de8
2,387
py
Python
nebula_meta/nebula_meta/variable.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
2
2019-03-17T04:03:08.000Z
2019-05-01T09:42:23.000Z
nebula_meta/nebula_meta/variable.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
null
null
null
nebula_meta/nebula_meta/variable.py
threathunterX/python_lib
e2d4052de04c82cb7bccd08042f28db824cab442
[ "Apache-2.0" ]
4
2019-06-24T05:47:24.000Z
2020-09-29T05:00:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import json from .util import text, unicode_dict __author__ = "nebula" class Variable(object): def __init__(self, app, name, key, timestamp, value, property_values): self._app = text(app) self._name = text(name)...
23.401961
102
0.611227
1711ee35182f6e88029cca8d7407fffc22b7c3d5
427
py
Python
sqlpuzzle/_backends/postgresql.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
8
2015-03-19T11:25:32.000Z
2020-09-02T11:30:10.000Z
sqlpuzzle/_backends/postgresql.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
7
2015-03-23T14:34:28.000Z
2022-02-21T12:36:01.000Z
sqlpuzzle/_backends/postgresql.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
4
2018-11-28T21:59:27.000Z
2020-01-05T01:50:08.000Z
import binascii from .sql import SqlBackend __all__ = ('PostgreSqlBackend',) class PostgreSqlBackend(SqlBackend): name = 'PostgreSQL' supports_full_join = True supports_on_conflict_do_update = True @classmethod def boolean(cls, value): return 'true' if value else 'false' @classmet...
20.333333
75
0.679157
a5604962087b9c22f878317af2623c75bb92246e
38
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/quic/__init__.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/quic/__init__.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/quic/__init__.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
__all__ = ['quicparam', 'quicprofile']
38
38
0.710526
817b9709538d7d271dd6620a1df0432b3c489191
6,295
py
Python
src/utils.py
EojinRho/trpo
bfcb9632b9dcd28cdb92f40e989f5d78571c9d45
[ "MIT" ]
null
null
null
src/utils.py
EojinRho/trpo
bfcb9632b9dcd28cdb92f40e989f5d78571c9d45
[ "MIT" ]
null
null
null
src/utils.py
EojinRho/trpo
bfcb9632b9dcd28cdb92f40e989f5d78571c9d45
[ "MIT" ]
null
null
null
""" Logging and Data Scaling Utilities Written by Patrick Coady (pat-coady.github.io) """ import numpy as np import json import os import shutil import glob import csv class Scaler(object): """ Generate scale and offset based on running mean and stddev along axis=0 offset = running mean scale = ...
34.779006
128
0.549643
1528961c80f92672b75cbad0a8e8784a71c3384d
16,995
py
Python
azurelinuxagent/common/rdma.py
peterd3270/WALinuxAgent
68c333ed80b6428a51f7b7e7c49605a47de1176e
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/rdma.py
peterd3270/WALinuxAgent
68c333ed80b6428a51f7b7e7c49605a47de1176e
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/rdma.py
peterd3270/WALinuxAgent
68c333ed80b6428a51f7b7e7c49605a47de1176e
[ "Apache-2.0" ]
null
null
null
# Windows Azure Linux Agent # # Copyright 2016 Microsoft Corporation # # 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 ...
41.050725
125
0.631774
eeb8c4f7582fd393e47374292984d42057da74de
8,492
py
Python
FGG/dataset/graph_builder.py
RunOrVeith/FGG
ff761a82692bd13f19add3b0478cc32f71b63a33
[ "Apache-2.0" ]
3
2019-09-06T00:27:06.000Z
2019-10-28T08:51:18.000Z
FGG/dataset/graph_builder.py
RunOrVeith/FGG
ff761a82692bd13f19add3b0478cc32f71b63a33
[ "Apache-2.0" ]
null
null
null
FGG/dataset/graph_builder.py
RunOrVeith/FGG
ff761a82692bd13f19add3b0478cc32f71b63a33
[ "Apache-2.0" ]
null
null
null
import enum from typing import Union, Optional import itertools import warnings import numpy as np import networkx as nx from scipy.spatial import distance from FGG.dataset.tracks import TrackCollection from FGG.dataset.split_strategy import SplitStrategy from FGG.metrics.evaluation import GraphMetrics @enum.unique...
44.694737
117
0.670631
f823793de9fb82f2d5c6e39b5cc640746ebe1bd9
16,607
py
Python
tabun_stat/tabun_stat/datasource/base.py
andreymal/stuff
33f9c7c80efc29b29fb0e14116eb641f53e45ccc
[ "MIT" ]
9
2017-12-07T21:28:07.000Z
2020-10-11T17:29:55.000Z
tabun_stat/tabun_stat/datasource/base.py
andreymal/stuff
33f9c7c80efc29b29fb0e14116eb641f53e45ccc
[ "MIT" ]
null
null
null
tabun_stat/tabun_stat/datasource/base.py
andreymal/stuff
33f9c7c80efc29b29fb0e14116eb641f53e45ccc
[ "MIT" ]
3
2019-10-11T10:07:05.000Z
2020-01-27T21:05:15.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import Optional, Iterable, List, Dict, Any __all__ = ['DataNotFound', 'BaseDataSource'] class DataNotFound(Exception): pass class BaseDataSource: def destroy(self) -> None: pass def _filter_object(self, type: str, obj: Dict[str, Any]...
42.256997
130
0.584151
982e6e1f317079970922f9ec03b3dc2961b54346
21,102
py
Python
vsts/vsts/service_hooks/v4_1/service_hooks_client.py
dhilmathy/azure-devops-python-api
d16026911f93361becb52d2f1c124d5c3e8a82e7
[ "MIT" ]
null
null
null
vsts/vsts/service_hooks/v4_1/service_hooks_client.py
dhilmathy/azure-devops-python-api
d16026911f93361becb52d2f1c124d5c3e8a82e7
[ "MIT" ]
37
2020-04-27T07:45:19.000Z
2021-04-05T07:27:15.000Z
vsts/vsts/service_hooks/v4_1/service_hooks_client.py
dhilmathy/azure-devops-python-api
d16026911f93361becb52d2f1c124d5c3e8a82e7
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
53.020101
172
0.616198
a3406189699b31e88ee4145d075ade91efa85aec
77,182
py
Python
stage/test_directory_origin.py
anubandhan/datacollector-tests
301c024c66d68353735256b262b681dd05ba16cc
[ "Apache-2.0" ]
null
null
null
stage/test_directory_origin.py
anubandhan/datacollector-tests
301c024c66d68353735256b262b681dd05ba16cc
[ "Apache-2.0" ]
1
2019-04-24T11:06:38.000Z
2019-04-24T11:06:38.000Z
stage/test_directory_origin.py
anubandhan/datacollector-tests
301c024c66d68353735256b262b681dd05ba16cc
[ "Apache-2.0" ]
2
2019-05-24T06:34:37.000Z
2020-03-30T11:48:18.000Z
# Copyright 2017 StreamSets Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
45.294601
135
0.687453
d376bfb81eb157e7ba39f5837d94123798a0a29b
4,716
py
Python
src/solarpi/solarpi.py
dprossel/solarPi
865e3db70500bab19293f222cd0c7f085e73dcf2
[ "MIT" ]
null
null
null
src/solarpi/solarpi.py
dprossel/solarPi
865e3db70500bab19293f222cd0c7f085e73dcf2
[ "MIT" ]
null
null
null
src/solarpi/solarpi.py
dprossel/solarPi
865e3db70500bab19293f222cd0c7f085e73dcf2
[ "MIT" ]
null
null
null
import abc import datetime import rx from rx.core.typing import Observable import rx.operators as ops from influxdb_client import Point, InfluxDBClient, WriteOptions import sdm_modbus from dataclasses import dataclass from abc import ABC import serial import threading @dataclass class InfluxDbParams: """Contains...
34.933333
117
0.640797
79c4d1f8738ba3c7207c5f5d11c8052d3a1bfcd6
9,621
py
Python
run.py
isabellaenriquez/pokemon-battle-logic
0a003c72d436f9215b9353216f9b562643a9e27b
[ "MIT" ]
null
null
null
run.py
isabellaenriquez/pokemon-battle-logic
0a003c72d436f9215b9353216f9b562643a9e27b
[ "MIT" ]
null
null
null
run.py
isabellaenriquez/pokemon-battle-logic
0a003c72d436f9215b9353216f9b562643a9e27b
[ "MIT" ]
1
2021-01-07T00:07:20.000Z
2021-01-07T00:07:20.000Z
from nnf import Var, true, false from lib204 import Encoding from random import randint num_pokemon = 3 # number of pokemon each party has foe = [] # the foe's party of pokemon player = [] # the player's party of pokemon # different pokemon types types = ["fire", "water", "grass", "electric", "ice", "ground", "flying...
45.814286
219
0.619166
20752292af252943638dadd582a081ca7db87fa1
2,125
py
Python
addons/syscalls/syscallinfo.py
Kileak/OTA-Challenge-Bot
aa3663be856e45a6969c9d3b9c141a514d66752d
[ "MIT" ]
null
null
null
addons/syscalls/syscallinfo.py
Kileak/OTA-Challenge-Bot
aa3663be856e45a6969c9d3b9c141a514d66752d
[ "MIT" ]
null
null
null
addons/syscalls/syscallinfo.py
Kileak/OTA-Challenge-Bot
aa3663be856e45a6969c9d3b9c141a514d66752d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import collections import os class SyscallTable: def __init__(self, filename): self.source = filename self.entries = collections.OrderedDict() self.parse_table(filename) def getEntryDict(self, parts, identifiers): entry = collections.OrderedDict() ...
23.611111
65
0.571765
7f310d2031fcc6eb7bc45815610a08b9d46f41cd
3,820
py
Python
runtime/perf.py
LinuxGit/tidb-insight
95b685e543127eda6a29016553cc00f1473e4f4b
[ "Apache-2.0" ]
null
null
null
runtime/perf.py
LinuxGit/tidb-insight
95b685e543127eda6a29016553cc00f1473e4f4b
[ "Apache-2.0" ]
null
null
null
runtime/perf.py
LinuxGit/tidb-insight
95b685e543127eda6a29016553cc00f1473e4f4b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Collect stack trace with `perf` # # TODO: - switch to perf entire system or only given process(es) # - set time of perf record, default to 10s import logging from os import path from utils import util from utils import fileopt from utils.measurement import MeasurementBase class Perf...
35.045872
85
0.520419
8c10cd0e9922859bf3bad2015587fc0a6b2ba5da
3,743
py
Python
python/paddle/fluid/tests/unittests/test_auto_checkpoint_multiple.py
Huangheyl/Paddle
a1b640bc66a5cc9583de503e7406aeba67565e8d
[ "Apache-2.0" ]
8
2019-06-16T12:36:11.000Z
2021-03-05T05:33:21.000Z
python/paddle/fluid/tests/unittests/test_auto_checkpoint_multiple.py
zlsh80826/Paddle
c560a7d57aad990f374ebadd330351f18e2ca65f
[ "Apache-2.0" ]
1
2020-09-10T09:05:52.000Z
2020-09-10T09:06:22.000Z
python/paddle/fluid/tests/unittests/test_auto_checkpoint_multiple.py
zlsh80826/Paddle
c560a7d57aad990f374ebadd330351f18e2ca65f
[ "Apache-2.0" ]
25
2019-12-07T02:14:14.000Z
2021-12-30T06:16:30.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 appli...
35.990385
93
0.687417
a6b67bc2f60bc3709558c9310839bb812f0c1362
20,116
py
Python
reco_utils/recommender/deeprec/models/dkn.py
myknotruby/recommenders
d4a41de4e10cf0fa4db7f4e5c4d6bccc6629e201
[ "MIT" ]
3
2021-06-22T02:12:38.000Z
2021-11-25T02:39:52.000Z
reco_utils/recommender/deeprec/models/dkn.py
myknotruby/recommenders
d4a41de4e10cf0fa4db7f4e5c4d6bccc6629e201
[ "MIT" ]
null
null
null
reco_utils/recommender/deeprec/models/dkn.py
myknotruby/recommenders
d4a41de4e10cf0fa4db7f4e5c4d6bccc6629e201
[ "MIT" ]
2
2021-11-14T13:36:48.000Z
2022-03-02T18:09:20.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import numpy as np import tensorflow as tf from reco_utils.recommender.deeprec.models.base_model import BaseModel __all__ = ["DKN"] class DKN(BaseModel): """DKN model (Deep Knowledge-Aware Network) :Citation: ...
41.561983
126
0.547673
7f319b40dd14137b81f9f1182826d67df37d6c09
5,437
py
Python
google-datacatalog-apache-atlas-connector/tests/google/datacatalog_connectors/apache_atlas/apache_atlas2datacatalog_cli_test.py
skadinyo/datacatalog-connectors-hive
4239faf72f5c9a7d55b8538c8ddc556cd6071c6d
[ "Apache-2.0" ]
19
2020-04-27T21:55:47.000Z
2022-03-22T19:45:14.000Z
google-datacatalog-apache-atlas-connector/tests/google/datacatalog_connectors/apache_atlas/apache_atlas2datacatalog_cli_test.py
skadinyo/datacatalog-connectors-hive
4239faf72f5c9a7d55b8538c8ddc556cd6071c6d
[ "Apache-2.0" ]
12
2020-05-28T14:48:29.000Z
2022-01-15T17:52:09.000Z
google-datacatalog-apache-atlas-connector/tests/google/datacatalog_connectors/apache_atlas/apache_atlas2datacatalog_cli_test.py
mesmacosta/datacatalog-connectors-hive
ab7e49fbef8599dd9053c2260b261ce01f510a47
[ "Apache-2.0" ]
15
2020-05-03T17:25:51.000Z
2022-01-11T22:10:35.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
38.835714
77
0.608792
ff5aef2e9933f0776b7e2c9889a40eb4b4da5712
1,012
py
Python
r2s/extensions/abstract.py
Kokan/Rest2Syslog
69838495e5eb0049ca3dc679dfc12d8026f3e567
[ "Apache-2.0" ]
null
null
null
r2s/extensions/abstract.py
Kokan/Rest2Syslog
69838495e5eb0049ca3dc679dfc12d8026f3e567
[ "Apache-2.0" ]
null
null
null
r2s/extensions/abstract.py
Kokan/Rest2Syslog
69838495e5eb0049ca3dc679dfc12d8026f3e567
[ "Apache-2.0" ]
null
null
null
from abc import ABC,abstractmethod class R2SAPIAdaptor(ABC): def __init__(self): super().__init__() @abstractmethod def fetchItems(self, page_num): """Implement a call to a specific API to fetch items (single page) Return value should be a touple of: isFull, response_json where...
28.111111
114
0.634387
6fed6f525271440d0df9186e8aba3045c12d2c67
2,457
py
Python
backend/pyrogram/types/input_media/input_media_photo.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/types/input_media/input_media_photo.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/types/input_media/input_media_photo.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
41.644068
112
0.678877
b5667b6e99a25d8b9bc10f31e57185e963d2735f
798
py
Python
app/routes/options.py
PaperDevil/bottle-skill-template
69ca2f4e946e1cb1b748fa4b0d3fd78299ce1ed8
[ "Apache-2.0" ]
null
null
null
app/routes/options.py
PaperDevil/bottle-skill-template
69ca2f4e946e1cb1b748fa4b0d3fd78299ce1ed8
[ "Apache-2.0" ]
null
null
null
app/routes/options.py
PaperDevil/bottle-skill-template
69ca2f4e946e1cb1b748fa4b0d3fd78299ce1ed8
[ "Apache-2.0" ]
null
null
null
""" options.py - Configuring CORS and headers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ from os import getenv from bottle import hook, route, response _allow_origin = getenv('ALLOW_ORIGIN', '*') _allow_methods = getenv('ALLOW_METHODS', 'GET, POST, PATCH, DELETE') _allow_headers = getenv('ALLOW_HEADERS', '*...
29.555556
69
0.674185
e38168ab8934b42719a7e97f579f66389fda0ce3
3,585
py
Python
pretrain_data.py
BUAAw-ML/KE-OPT
d957798ccd62b8e98ab2bbed9562c50bd5f772f9
[ "MIT" ]
null
null
null
pretrain_data.py
BUAAw-ML/KE-OPT
d957798ccd62b8e98ab2bbed9562c50bd5f772f9
[ "MIT" ]
null
null
null
pretrain_data.py
BUAAw-ML/KE-OPT
d957798ccd62b8e98ab2bbed9562c50bd5f772f9
[ "MIT" ]
null
null
null
import argparse from collections import defaultdict import json import math import os from os.path import exists, join from time import time, sleep import lmdb import torch from torch.utils.data import DataLoader, ConcatDataset from torch.nn import functional as F from torch.nn.utils import clip_grad_norm_ from tqdm ...
38.138298
99
0.692887
1a36169f796d511ef8b177da249a907d38b8ef23
4,551
py
Python
app/user/tests/test_user_api.py
vivek28111992/python-project
80cce4c1ca42c7ad5cabeedd4d4d2cf37d03e83a
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
vivek28111992/python-project
80cce4c1ca42c7ad5cabeedd4d4d2cf37d03e83a
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
vivek28111992/python-project
80cce4c1ca42c7ad5cabeedd4d4d2cf37d03e83a
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params...
33.463235
81
0.70468
8c790f0dbb4d81b408276df7fbdf4f5924a798a9
7,868
py
Python
pyon/core/governance/conversation/test/test_fsm_processing.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
2
2015-06-09T16:07:09.000Z
2015-07-28T10:06:31.000Z
pyon/core/governance/conversation/test/test_fsm_processing.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
3
2020-07-22T15:14:55.000Z
2021-12-13T19:35:06.000Z
pyon/core/governance/conversation/test/test_fsm_processing.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'rn710' import os, inspect from pyon.core.governance.conversation.core.transition import TransitionFactory from pyon.core.governance.conversation.core.local_type import LocalType from pyon.core.governance.conversation.core.fsm import ExceptionFSM, ExceptionFailAssertion from pyon.core.governance.conversati...
47.113772
572
0.665735
31bbc5d2a06d56d7d7e4e82b0cdc2dfd37b3166a
19,200
py
Python
fiftyone/utils/eval/detection.py
williamcorsel/fiftyone
22e34e91deb1d2e2fe6316ec81714e0c55015523
[ "Apache-2.0" ]
null
null
null
fiftyone/utils/eval/detection.py
williamcorsel/fiftyone
22e34e91deb1d2e2fe6316ec81714e0c55015523
[ "Apache-2.0" ]
null
null
null
fiftyone/utils/eval/detection.py
williamcorsel/fiftyone
22e34e91deb1d2e2fe6316ec81714e0c55015523
[ "Apache-2.0" ]
null
null
null
""" Detection evaluation. | Copyright 2017-2022, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ import itertools import logging import numpy as np import fiftyone.core.evaluation as foe import fiftyone.core.fields as fof import fiftyone.core.labels as fol import fiftyone.core.utils as fou import fiftyon...
34.408602
95
0.618698
1ed88c180e74ace750556227c7b1bc3b265c6193
776
py
Python
src/sagemaker/sklearn/__init__.py
pengk19/sagemaker-python-sdk
0866a304fea44522fd1e3b6c4509cd05dda064dd
[ "Apache-2.0" ]
1
2019-10-06T14:03:07.000Z
2019-10-06T14:03:07.000Z
src/sagemaker/sklearn/__init__.py
pengk19/sagemaker-python-sdk
0866a304fea44522fd1e3b6c4509cd05dda064dd
[ "Apache-2.0" ]
null
null
null
src/sagemaker/sklearn/__init__.py
pengk19/sagemaker-python-sdk
0866a304fea44522fd1e3b6c4509cd05dda064dd
[ "Apache-2.0" ]
1
2019-10-06T10:53:30.000Z
2019-10-06T10:53:30.000Z
# Copyright 2018 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 acc...
43.111111
80
0.76933
ec1df24b7a0d0bf3e8517810be8b0590ad82c19f
580
py
Python
migrations/versions/eba13c37bbf0_add_comments.py
mutalisk999/Flog
5d836e26967b39faebdf2d5a2c558316bf93221b
[ "MIT" ]
1
2020-08-24T03:39:52.000Z
2020-08-24T03:39:52.000Z
migrations/versions/eba13c37bbf0_add_comments.py
mutalisk999/Flog
5d836e26967b39faebdf2d5a2c558316bf93221b
[ "MIT" ]
null
null
null
migrations/versions/eba13c37bbf0_add_comments.py
mutalisk999/Flog
5d836e26967b39faebdf2d5a2c558316bf93221b
[ "MIT" ]
null
null
null
"""Add Feedback Revision ID: eba13c37bbf0 Revises: 597e79657a6d Create Date: 2020-08-04 16:23:24.102806 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "eba13c37bbf0" down_revision = "597e79657a6d" branch_labels = None depends_on = None def ...
20
66
0.653448
369cf76a5e2bf56b72977ee58de394b71b271d97
52,885
py
Python
tests/components/mqtt/test_init.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
null
null
null
tests/components/mqtt/test_init.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
null
null
null
tests/components/mqtt/test_init.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
null
null
null
"""The tests for the MQTT component.""" from datetime import datetime, timedelta import json import ssl import unittest import pytest import voluptuous as vol from homeassistant.components import mqtt, websocket_api from homeassistant.components.mqtt import debug_info from homeassistant.components.mqtt.discovery impo...
35.902919
90
0.629063
62c24eb52672c79548e7f48dc4d653a9e8bcf90f
3,549
py
Python
cogs/inventory.py
xPolar/WumpusHack
370be4c1cf47a61a298e789fc596a3a08721fe10
[ "MIT" ]
3
2021-03-03T23:50:07.000Z
2022-03-01T02:46:04.000Z
cogs/inventory.py
xPolar/WumpusHack
370be4c1cf47a61a298e789fc596a3a08721fe10
[ "MIT" ]
null
null
null
cogs/inventory.py
xPolar/WumpusHack
370be4c1cf47a61a298e789fc596a3a08721fe10
[ "MIT" ]
1
2022-03-01T02:46:07.000Z
2022-03-01T02:46:07.000Z
""" MIT License Copyright (c) 2019 xPolar 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, merge, publish, distri...
38.576087
150
0.656241
f2d9093fe68a004f0aedc1501c24fc0a055f3a78
293
py
Python
src/main.py
Truta446/cardapio-digital-python-printer
5e69e445e5fb1b5a73837f27ef9e7f88c2c4efa9
[ "MIT" ]
null
null
null
src/main.py
Truta446/cardapio-digital-python-printer
5e69e445e5fb1b5a73837f27ef9e7f88c2c4efa9
[ "MIT" ]
null
null
null
src/main.py
Truta446/cardapio-digital-python-printer
5e69e445e5fb1b5a73837f27ef9e7f88c2c4efa9
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api from flask_cors import CORS from resources import Printing app = Flask(__name__) CORS(app) api = Api(app) api.add_resource(Printing, '/print') if __name__ == "__main__": app.run(host='0.0.0.0', port=5000, debug=True)
19.533333
51
0.703072
c889a41616e5b74bd0aed4dd7147a5acbee57635
7,765
py
Python
hccpy/misc_scripts/data_validation.py
gma-coretechs/hccpy
59d23e91a927f8c90ffadb067e9d804b5505d503
[ "Apache-2.0" ]
null
null
null
hccpy/misc_scripts/data_validation.py
gma-coretechs/hccpy
59d23e91a927f8c90ffadb067e9d804b5505d503
[ "Apache-2.0" ]
null
null
null
hccpy/misc_scripts/data_validation.py
gma-coretechs/hccpy
59d23e91a927f8c90ffadb067e9d804b5505d503
[ "Apache-2.0" ]
null
null
null
from itertools import chain import logging import sys from pyspark.sql import functions as f from pyspark.sql.session import SparkSession from pyspark.sql.window import Window from pyspark.sql.types import ArrayType, StringType spark = SparkSession.builder.getOrCreate() spark.conf.set("spark.sql.execution.arrow.enabl...
64.173554
431
0.665551
cfcaa48ee45f4dee82f7e96ecddeda1a6ec61c25
866
py
Python
expandAttr.py
mar-esther23/random-python
74bddf69aeb4efc3013181c397c71bebb01fb049
[ "MIT" ]
null
null
null
expandAttr.py
mar-esther23/random-python
74bddf69aeb4efc3013181c397c71bebb01fb049
[ "MIT" ]
null
null
null
expandAttr.py
mar-esther23/random-python
74bddf69aeb4efc3013181c397c71bebb01fb049
[ "MIT" ]
null
null
null
def expandAttr(attr, wildcard='*'): ''' attr is a list of 0, 1, * converts * to 0 and 1 and creates new attractors ''' n = attr.count(wildcard) expanded = [attr] while n > 0: add = [] for e in expanded: index = e.index(wildcard) e0 = e[:] ...
24.055556
62
0.501155
77ea1042f49ebdacb699e348e37733e7cfec6add
4,217
py
Python
libcloud/__init__.py
r2ronoha/libcloud
1524a4c54d79284f1172b32e0d9598ec8b47eda1
[ "Apache-2.0" ]
null
null
null
libcloud/__init__.py
r2ronoha/libcloud
1524a4c54d79284f1172b32e0d9598ec8b47eda1
[ "Apache-2.0" ]
null
null
null
libcloud/__init__.py
r2ronoha/libcloud
1524a4c54d79284f1172b32e0d9598ec8b47eda1
[ "Apache-2.0" ]
1
2019-08-05T10:12:02.000Z
2019-08-05T10:12:02.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 use ...
32.945313
79
0.677496
a2f67e18bf2888336c501d3871251ff063283ee4
19
py
Python
projects/apscheduler/test.py
fleimgruber/python
2e735762c73651cffc027ca850b2a58d87d54b49
[ "Unlicense" ]
25
2021-10-30T19:54:59.000Z
2022-03-29T06:11:02.000Z
projects/apscheduler/test.py
fleimgruber/python
2e735762c73651cffc027ca850b2a58d87d54b49
[ "Unlicense" ]
21
2021-10-19T01:09:38.000Z
2022-03-24T16:08:53.000Z
projects/apscheduler/test.py
fleimgruber/python
2e735762c73651cffc027ca850b2a58d87d54b49
[ "Unlicense" ]
3
2022-01-25T20:25:13.000Z
2022-03-08T02:58:50.000Z
import apscheduler
9.5
18
0.894737
c80b17aa616fde48d65581d00c4e8fa293aa1f96
1,063
py
Python
setup.py
KeepSafe/content-validator
30e59100f3251aee20b3165d42fceba15a3f5ede
[ "Apache-2.0" ]
1
2018-04-25T19:42:47.000Z
2018-04-25T19:42:47.000Z
setup.py
KeepSafe/content-validator
30e59100f3251aee20b3165d42fceba15a3f5ede
[ "Apache-2.0" ]
12
2015-07-21T11:01:53.000Z
2021-03-31T18:53:35.000Z
setup.py
KeepSafe/content-validator
30e59100f3251aee20b3165d42fceba15a3f5ede
[ "Apache-2.0" ]
2
2016-11-05T04:25:35.000Z
2018-04-25T19:42:49.000Z
import os from setuptools import setup, find_packages version = '0.6.1' def read(f): return open(os.path.join(os.path.dirname(__file__), f)).read().strip() install_requires = [ 'aiohttp >=3, <3.4', 'Markdown', 'parse >=1, <2', 'beautifulsoup4 >=4, <5', 'lxml >=3', ] setup( name='conte...
27.973684
117
0.665099
3dd6ac5056f8367e3b6ab84e7e565251ba93f03e
5,086
py
Python
tests/test_note_formatter.py
RhetTbull/evernote-backup
0decb5aa0f7537817b10d7fa51cf7a279304e991
[ "MIT" ]
54
2021-05-03T15:38:34.000Z
2022-03-31T13:08:13.000Z
tests/test_note_formatter.py
RhetTbull/evernote-backup
0decb5aa0f7537817b10d7fa51cf7a279304e991
[ "MIT" ]
13
2021-05-19T00:02:47.000Z
2022-03-05T20:04:26.000Z
tests/test_note_formatter.py
RhetTbull/evernote-backup
0decb5aa0f7537817b10d7fa51cf7a279304e991
[ "MIT" ]
10
2021-05-15T22:58:33.000Z
2022-03-27T15:05:00.000Z
from datetime import datetime from evernote.edam.type.ttypes import ( Data, Note, NoteAttributes, Resource, ResourceAttributes, ) from evernote_backup import note_formatter_util from evernote_backup.note_formatter import NoteFormatter test_note_data = Note( guid="7473cb3f-411e-4545-9df4-5eb73...
26.910053
89
0.651396
932792f01d89ecc02458c1d6989c0325db4352fb
6,123
py
Python
src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_account_commands.py
Rajwanshi/azure-cli
32ca1e31cf7ce3c92c68c64069365c697d10c981
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_account_commands.py
Rajwanshi/azure-cli
32ca1e31cf7ce3c92c68c64069365c697d10c981
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_account_commands.py
Rajwanshi/azure-cli
32ca1e31cf7ce3c92c68c64069365c697d10c981
[ "MIT" ]
1
2020-12-22T00:28:33.000Z
2020-12-22T00:28:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
57.224299
229
0.67075
b648cfe2aaeb4858fe272c216b5f80755ad1b296
879
py
Python
test/test_mesh.py
pyeprog/shapely_ext
5f3712a37bf577711f2f1e794c53cd885eee2684
[ "MIT" ]
3
2020-05-23T16:27:43.000Z
2020-11-17T02:13:15.000Z
test/test_mesh.py
pyeprog/shapely_ext
5f3712a37bf577711f2f1e794c53cd885eee2684
[ "MIT" ]
null
null
null
test/test_mesh.py
pyeprog/shapely_ext
5f3712a37bf577711f2f1e794c53cd885eee2684
[ "MIT" ]
null
null
null
from unittest import TestCase from shapely.geometry import box, Polygon, Point from shapely_ext.mesh import TriMesher class Test(TestCase): def setUp(self) -> None: self.mesher_11 = TriMesher(interpolate_distance=11) self.mesher_5 = TriMesher(interpolate_distance=5) def test_generate_tri_me...
32.555556
73
0.68942
72bf6d7b88c60f47618ad4997f3a28d2da917595
3,648
py
Python
utils.py
anschwa/foodprint
3acc5377053a9eb48912e4712517457c491950bb
[ "MIT" ]
null
null
null
utils.py
anschwa/foodprint
3acc5377053a9eb48912e4712517457c491950bb
[ "MIT" ]
null
null
null
utils.py
anschwa/foodprint
3acc5377053a9eb48912e4712517457c491950bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sqlite3 class DataBase: def __init__(self, db_file): self.db_file = db_file self.rows = [("lamb", "meat", 39.2, 10400, "red", "red"), ("beef", "meat", 27, 15400, "red", "red"), ("pork", "meat", 12.1, 6000, "yellow", "yellow"...
39.225806
79
0.462445
2c95743bbcdb36cab8512651d64d1538d511aabd
11,247
py
Python
poetry/factory.py
hongquan/poetry
d12f6421b1c34067e3968ddec2d821ae7f316af7
[ "MIT" ]
null
null
null
poetry/factory.py
hongquan/poetry
d12f6421b1c34067e3968ddec2d821ae7f316af7
[ "MIT" ]
null
null
null
poetry/factory.py
hongquan/poetry
d12f6421b1c34067e3968ddec2d821ae7f316af7
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals import shutil from typing import Dict from typing import List from typing import Optional from clikit.api.io.io import IO from .config.config import Config from .config.file_config_source import FileConfigSource from .io.null_io import N...
34.289634
95
0.56824
54a72313491ee8f177ce3cf8a0eba068c74bd2a8
25,488
py
Python
sklearn/manifold/_spectral_embedding.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
2
2022-03-16T17:33:38.000Z
2022-03-17T11:50:21.000Z
sklearn/manifold/_spectral_embedding.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
9
2022-03-12T22:36:34.000Z
2022-03-27T06:47:36.000Z
sklearn/manifold/_spectral_embedding.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
1
2020-02-16T05:40:12.000Z
2020-02-16T05:40:12.000Z
"""Spectral Embedding.""" # Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Wei LI <kuantkid@gmail.com> # License: BSD 3 clause import warnings import numpy as np from scipy import sparse from scipy.linalg import eigh from scipy.sparse.linalg import eigsh from scipy.sparse.csgraph import connected_...
37.928571
88
0.630728
22b694fe859e0e5f21e418d0bc0a50c5c4defb9f
6,366
py
Python
tests/test_ops_binary.py
evelynfay/ngraph-onnx
a5ba2745ee6151c98255bb736ef5f116ce0c1e3c
[ "Apache-2.0" ]
null
null
null
tests/test_ops_binary.py
evelynfay/ngraph-onnx
a5ba2745ee6151c98255bb736ef5f116ce0c1e3c
[ "Apache-2.0" ]
null
null
null
tests/test_ops_binary.py
evelynfay/ngraph-onnx
a5ba2745ee6151c98255bb736ef5f116ce0c1e3c
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2018-2019 Intel Corporation # # 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.apa...
42.724832
109
0.587496
e42a5f908630b86bc60a162c009b1a054d8dbddc
6,962
py
Python
main.py
vaibhavkrkm/Cookie-Clicker-Remake
1438cd7a56defaa50af49b6ccbfc2e50f2b18df6
[ "MIT" ]
null
null
null
main.py
vaibhavkrkm/Cookie-Clicker-Remake
1438cd7a56defaa50af49b6ccbfc2e50f2b18df6
[ "MIT" ]
null
null
null
main.py
vaibhavkrkm/Cookie-Clicker-Remake
1438cd7a56defaa50af49b6ccbfc2e50f2b18df6
[ "MIT" ]
null
null
null
import pygame from sys import exit as EXIT def QUIT(): pygame.quit() EXIT() def save_cookies(clicked_cookies, clicked_cookies_best): if(clicked_cookies > clicked_cookies_best): clicked_cookies_best = clicked_cookies with open("cookies_highscore.data", "w") as f: f.write(str(clicked_cookies_best)) def lo...
41.195266
277
0.729963
d0335851d1af28b114341c203539110722fa086b
6,376
py
Python
CalibTracker/SiStripChannelGain/test/testSSTGain_PCL_FromRECO_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
CalibTracker/SiStripChannelGain/test/testSSTGain_PCL_FromRECO_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
CalibTracker/SiStripChannelGain/test/testSSTGain_PCL_FromRECO_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
# Auto generated configuration file # with command line options: stepALCA --datatier ALCARECO --conditions auto:run2_data -s ALCA:PromptCalibProdSiStripGains --eventcontent ALCARECO -n 1000 --dasquery=file dataset=/ZeroBias/Run2016C-SiStripCalMinBias-18Apr2017-v1/ALCARECO run=276243 --no_exec import FWCore.ParameterSet...
47.93985
257
0.592378