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
b9673ca75497919d0aa53e58bccaac8afdb626a7
3,233
py
Python
acquire-glonass-l3ocd.py
wumouyan/GNSS-SDR-Python
61292c2ba151724538808663e2a6d0b048635401
[ "MIT" ]
68
2015-06-23T17:30:06.000Z
2022-03-29T22:06:54.000Z
acquire-glonass-l3ocd.py
wumouyan/GNSS-SDR-Python
61292c2ba151724538808663e2a6d0b048635401
[ "MIT" ]
4
2018-03-01T05:14:36.000Z
2021-12-05T11:07:39.000Z
acquire-glonass-l3ocd.py
wumouyan/GNSS-SDR-Python
61292c2ba151724538808663e2a6d0b048635401
[ "MIT" ]
43
2015-06-26T10:27:05.000Z
2022-03-30T02:47:09.000Z
#!/usr/bin/env python import optparse import numpy as np import scipy.signal import scipy.fftpack as fft import gnsstools.glonass.l3ocd as l3ocd import gnsstools.nco as nco import gnsstools.io as io import gnsstools.util as util # # Acquisition search # def search(x,prn,doppler_search,ms): fs = 3*10230000.0 n ...
30.790476
153
0.689143
c71520861da923e2ff8122c4645232633bcf8e6a
97
py
Python
training_codes/biophys2lifmodel_lr/run_lr2_g8_8_test500ms_inh_lif_syn_z109.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
training_codes/biophys2lifmodel_lr/run_lr2_g8_8_test500ms_inh_lif_syn_z109.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
training_codes/biophys2lifmodel_lr/run_lr2_g8_8_test500ms_inh_lif_syn_z109.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
import start0 as start start.run_simulation('config_lr2_g8_8_test500ms_inh_lif_syn_z109.json')
19.4
71
0.865979
27e2caa1b8ee0dd5b60546d0a397dc6811d015dc
41,519
py
Python
controllers/building.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
controllers/building.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
controllers/building.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Buildings Assessments module Data model from: http://www.atcouncil.org/products/downloadable-products/placards Postearthquake Safety Evaluation of Buildings: ATC-20 http://www.atcouncil.org/pdfs/rapid.pdf This is actually based on the New Zealand variant: http://eden.sahanafoundation.o...
46.183537
362
0.50666
5de792e1aad705a526ef21275ab1410061e75aa0
394
py
Python
3day/Quiz01_2.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
3day/Quiz01_2.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
3day/Quiz01_2.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
# Quiz01_2.py items = {"콜라":1000,"사이다":900,"씨그램":500,"우유":700,"활명수":800} print("=== 음료 자판기 입니다 ====") print("[콜라][사이다][씨그램][우유][활명수] 중 선택") print("복수 선택 시 --> 예) 사이다,우유 ") # 선택목록 item, 가격 price item = input() # 사이다,우유 items2 = item.strip().split(',') prices = [p for i,p in items.items() if i in items2] price =...
15.153846
58
0.563452
fbd18191d9ab6d542b5db5fc91abfc17ab30a46e
10,595
py
Python
fa/Automato.py
wesbdss/AutomatosFinitos
efbd140e511b409139311fa7010388d114fdf096
[ "MIT" ]
null
null
null
fa/Automato.py
wesbdss/AutomatosFinitos
efbd140e511b409139311fa7010388d114fdf096
[ "MIT" ]
null
null
null
fa/Automato.py
wesbdss/AutomatosFinitos
efbd140e511b409139311fa7010388d114fdf096
[ "MIT" ]
null
null
null
import os #Nome: Wesley Benício #Trabalho de LFA #------funções------ def listArq(nome):#procura os arquivos lista = os.listdir() for x in lista: if x == nome: return x def traduzFunTransiNFA():#transforma uma tabela de transição NFA em Função de transição em DFA ini = None ...
29.929379
118
0.488438
eaaef3b00d6a5c565cf71b665f6b9fe427725adf
99,866
py
Python
zappa/cli.py
DomainGroupOSS/Zappa
5a1f8e98141aef84e64e72e938d86f03454e0f70
[ "MIT" ]
null
null
null
zappa/cli.py
DomainGroupOSS/Zappa
5a1f8e98141aef84e64e72e938d86f03454e0f70
[ "MIT" ]
1
2021-03-25T23:39:25.000Z
2021-03-25T23:39:25.000Z
zappa/cli.py
DomainGroupOSS/Zappa
5a1f8e98141aef84e64e72e938d86f03454e0f70
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Zappa CLI Deploy arbitrary Python programs as serverless Zappa applications. """ from __future__ import unicode_literals from __future__ import division from past.builtins import basestring from builtins import input, bytes import argcomplete import argparse import...
42.084282
197
0.560942
8210f27732be381e884c7df84b93448d917d4e49
3,706
py
Python
python/tvm/relay/backend/graph_runtime_codegen.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
9
2019-12-17T08:03:54.000Z
2022-01-19T02:34:23.000Z
python/tvm/relay/backend/graph_runtime_codegen.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
2
2020-09-14T09:18:25.000Z
2020-09-24T03:28:18.000Z
python/tvm/relay/backend/graph_runtime_codegen.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
3
2020-10-04T20:30:18.000Z
2022-01-24T18:03:52.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.849462
80
0.685915
db3275888711dbd012dfce80b7fe25f976a308ae
2,089
py
Python
samples/test/various_io_types_test.py
TheDutchDevil/pipelines
a5ba3f0fcd98ffd60f98bce964927ab63382d5d7
[ "Apache-2.0" ]
null
null
null
samples/test/various_io_types_test.py
TheDutchDevil/pipelines
a5ba3f0fcd98ffd60f98bce964927ab63382d5d7
[ "Apache-2.0" ]
null
null
null
samples/test/various_io_types_test.py
TheDutchDevil/pipelines
a5ba3f0fcd98ffd60f98bce964927ab63382d5d7
[ "Apache-2.0" ]
null
null
null
# 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, ...
45.413043
186
0.742939
ca0f4faa5c59f8c8f6608d0be5399c8f3c4559d2
3,550
py
Python
django_database/storefront/settings.py
SyedArsalanAmin/webdev
28fd7fc6c865588604c9e965a4416c7e0eb4a1c8
[ "MIT" ]
null
null
null
django_database/storefront/settings.py
SyedArsalanAmin/webdev
28fd7fc6c865588604c9e965a4416c7e0eb4a1c8
[ "MIT" ]
null
null
null
django_database/storefront/settings.py
SyedArsalanAmin/webdev
28fd7fc6c865588604c9e965a4416c7e0eb4a1c8
[ "MIT" ]
null
null
null
""" Django settings for storefront project. Generated by 'django-admin startproject' using Django 3.2.12. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pat...
24.825175
91
0.688732
b3ad77b99f28196ebfa2d4c3fc38944afa801460
5,576
py
Python
consumers/python/tweet_analytics.py
cuong24/docker-kafka-cassandra
14c3c25e45cf1ed2da40c3fd7b2f7012e811a77d
[ "MIT" ]
null
null
null
consumers/python/tweet_analytics.py
cuong24/docker-kafka-cassandra
14c3c25e45cf1ed2da40c3fd7b2f7012e811a77d
[ "MIT" ]
null
null
null
consumers/python/tweet_analytics.py
cuong24/docker-kafka-cassandra
14c3c25e45cf1ed2da40c3fd7b2f7012e811a77d
[ "MIT" ]
2
2021-07-21T13:42:16.000Z
2021-07-31T04:31:04.000Z
import nltk import os from nltk.stem.wordnet import WordNetLemmatizer from nltk.corpus import twitter_samples, stopwords from nltk.tag import pos_tag from nltk.tokenize import word_tokenize from nltk import FreqDist, classify, NaiveBayesClassifier from sklearn.model_selection import train_test_split import pickle from ...
34.419753
106
0.697991
205f23bcdc33d660c64d782a3a97e97a9c032ec1
36,835
py
Python
tests/unit/faucet/test_valve_config.py
cglewis/faucet
9e4cfc79d580c8a4a70a21a1dc6e2ec7ee0fc0aa
[ "Apache-2.0" ]
393
2017-09-21T11:00:03.000Z
2022-03-31T09:46:28.000Z
tests/unit/faucet/test_valve_config.py
proteanblank/faucet
3acbc1cb788c1854b7d290a1a050c7ee082a0b3e
[ "Apache-2.0" ]
1,363
2017-09-17T21:54:43.000Z
2022-03-29T20:49:42.000Z
tests/unit/faucet/test_valve_config.py
cglewis/faucet
9e4cfc79d580c8a4a70a21a1dc6e2ec7ee0fc0aa
[ "Apache-2.0" ]
146
2017-09-18T02:33:35.000Z
2022-01-13T07:21:12.000Z
#!/usr/bin/env python3 """Unit tests run as PYTHONPATH=../../.. python3 ./test_valve.py.""" # pylint: disable=too-many-lines # Copyright (C) 2015 Research and Innovation Advanced Network New Zealand Ltd. # Copyright (C) 2015--2019 The Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); #...
28.620824
103
0.554337
ae6aacbaf3401e19dc03a1ec3921cb85dbf2d3a9
3,614
py
Python
rfft/experiment.py
msamogh/rrr
ff0ed176a54e488a4498662335d9d3085296c16b
[ "MIT" ]
1
2018-05-09T04:42:14.000Z
2018-05-09T04:42:14.000Z
rfft/experiment.py
msamogh/rrr
ff0ed176a54e488a4498662335d9d3085296c16b
[ "MIT" ]
11
2019-12-16T20:57:00.000Z
2022-03-11T23:20:25.000Z
rfft/experiment.py
msamogh/rrr
ff0ed176a54e488a4498662335d9d3085296c16b
[ "MIT" ]
1
2018-10-08T16:46:40.000Z
2018-10-08T16:46:40.000Z
import os import pickle from abc import ABCMeta from abc import abstractmethod from enum import Enum class ExperimentType(Enum): IMAGE = 1 TEXT = 2 TABULAR = 3 class Dataset(Enum): TRAIN = 1 TEST = 2 class ExperimentStatus(object): def __init__(self, initialized=Fa...
26.77037
91
0.614001
491c7a02069324304d4ca643ddeb12306ccd3619
2,807
py
Python
crowd_integration/utils.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
crowd_integration/utils.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
crowd_integration/utils.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
import json import logging from django.conf import settings import requests from requests import HTTPError from requests.auth import HTTPBasicAuth logger = logging.getLogger('kompassi') AUTH = HTTPBasicAuth( settings.KOMPASSI_CROWD_APPLICATION_NAME, settings.KOMPASSI_CROWD_APPLICATION_PASSWORD, ) HEADERS...
21.105263
86
0.627004
9a6dca42c705169dccbf31c338995256af437bcb
8,971
py
Python
rl_algorithms/common/abstract/distributed_logger.py
medipixel/reinforcement_learning_examples
c5f7d1d60dcefb3050d75c5c657207183bd8db65
[ "MIT" ]
11
2018-12-18T13:46:48.000Z
2019-02-11T02:03:29.000Z
rl_algorithms/common/abstract/distributed_logger.py
medipixel/rl_baselines
c5f7d1d60dcefb3050d75c5c657207183bd8db65
[ "MIT" ]
35
2019-01-19T06:09:26.000Z
2019-02-11T04:15:44.000Z
rl_algorithms/common/abstract/distributed_logger.py
medipixel/reinforcement_learning_examples
c5f7d1d60dcefb3050d75c5c657207183bd8db65
[ "MIT" ]
null
null
null
"""Base class for loggers use in distributed training. - Author: Chris Yoon - Contact: chris.yoon@medipixel.io """ from abc import ABC, abstractmethod from collections import deque import os import shutil from typing import Dict, List import gym import numpy as np import plotly.graph_objects as go import pyarrow as ...
32.860806
86
0.590012
34ee78f0eb09de4243abf714b06fd56f6a118e1a
52,410
py
Python
applications/StructuralMechanicsApplication/tests/test_constitutive_law.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/StructuralMechanicsApplication/tests/test_constitutive_law.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/StructuralMechanicsApplication/tests/test_constitutive_law.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
import KratosMultiphysics import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication import KratosMultiphysics.KratosUnittest as KratosUnittest from KratosMultiphysics.kratos_utilities import CheckIfApplicationsAvailable if CheckIfApplicationsAvailable("ConstitutiveLawsApplication"): ...
49.677725
607
0.673536
3bec5b5e7f4b296055df1719e93b9d2599472a82
60,246
py
Python
kubernetes/client/apis/storage_v1alpha1_api.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
1
2019-04-14T23:51:35.000Z
2019-04-14T23:51:35.000Z
kubernetes/client/apis/storage_v1alpha1_api.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
kubernetes/client/apis/storage_v1alpha1_api.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os i...
64.296692
1,390
0.652641
49eb92c54d2dec5992906faf0003895412a6f8e2
11,496
py
Python
menpo/transform/test/h_align_test.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
1
2021-04-20T00:36:57.000Z
2021-04-20T00:36:57.000Z
menpo/transform/test/h_align_test.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
1
2019-03-09T16:01:46.000Z
2019-03-09T16:01:46.000Z
menpo/transform/test/h_align_test.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
1
2020-05-01T09:55:57.000Z
2020-05-01T09:55:57.000Z
import numpy as np from numpy.testing import assert_allclose, raises from menpo.shape import PointCloud from menpo.transform import (Affine, AlignmentAffine, Similarity, AlignmentSimilarity, Rotation, AlignmentRotation, Translation, ...
37.203883
79
0.560282
568cf30358df7417820d9ed0508e3ef4b95ec64e
4,883
py
Python
cs15211/PrisonCellsAfterNDays.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/PrisonCellsAfterNDays.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/PrisonCellsAfterNDays.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/prison-cells-after-n-days/' # Time: O() # Space: O() # # Description: Leetcode # 957. Prison Cells After N Days # # There are 8 prison cells in a row, and each cell is either occupied or vacant. # # Each day, whether the cell is occupied or vacant changes according to the fo...
27.587571
105
0.5171
10c4b2d29f9bfe72969dddcaaafa11bb08ab6d12
2,224
py
Python
libs/ConfigHelpers.py
loi219/RootTheBox
e17d5420b71d313d6f5f5e69e3f83defb34578a6
[ "Apache-2.0" ]
2
2020-04-19T18:50:40.000Z
2020-09-19T18:37:10.000Z
libs/ConfigHelpers.py
loi219/RootTheBox
e17d5420b71d313d6f5f5e69e3f83defb34578a6
[ "Apache-2.0" ]
null
null
null
libs/ConfigHelpers.py
loi219/RootTheBox
e17d5420b71d313d6f5f5e69e3f83defb34578a6
[ "Apache-2.0" ]
1
2020-02-13T12:06:27.000Z
2020-02-13T12:06:27.000Z
import logging import imghdr import hashlib from base64 import b64decode from tornado.options import options from datetime import datetime from past.builtins import basestring from libs.XSSImageCheck import is_xss_image from libs.ValidationError import ValidationError def save_config(): logging.info("Saving cur...
36.459016
86
0.53732
34e55bbdaf8965f9795b02888443f43e232a88cc
2,095
py
Python
setup.py
sethwoodworth/python-prompt-toolkit
dc3223534f224dc3bb37c108f271f57b2fba96d1
[ "BSD-3-Clause" ]
1
2020-03-12T06:45:06.000Z
2020-03-12T06:45:06.000Z
setup.py
sethwoodworth/python-prompt-toolkit
dc3223534f224dc3bb37c108f271f57b2fba96d1
[ "BSD-3-Clause" ]
null
null
null
setup.py
sethwoodworth/python-prompt-toolkit
dc3223534f224dc3bb37c108f271f57b2fba96d1
[ "BSD-3-Clause" ]
1
2019-06-09T23:34:42.000Z
2019-06-09T23:34:42.000Z
#!/usr/bin/env python import os import re from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), "README.rst")) as f: long_description = f.read() def get_version(package): """ Return package version as listed in `__version__` in `__init__.py`. """ path = os...
37.410714
84
0.656802
61647f020901a9446b9dc7ac7641948d548ebd02
32,541
py
Python
syllogistic/2020_bischofberger/modular_models/models/basic_models/psycop.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
null
null
null
syllogistic/2020_bischofberger/modular_models/models/basic_models/psycop.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
11
2020-05-04T09:05:29.000Z
2021-04-08T13:22:34.000Z
syllogistic/2020_bischofberger/modular_models/models/basic_models/psycop.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
12
2020-05-02T09:36:14.000Z
2021-06-22T08:10:45.000Z
# coding=utf-8 import os import random import sys from collections import namedtuple from enum import Enum import ccobra from anytree import AnyNode, LevelOrderIter sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../.."))) from modular_models.util import sylut...
45.703652
134
0.524815
583e61ff639070fb6fe875d64d15c06a9de26980
1,861
py
Python
vk_api/enums.py
dypick/vk_api
718ca74989ceaccb33f268f1afa66c936da700e8
[ "Apache-2.0" ]
5
2020-03-28T23:31:56.000Z
2020-08-01T16:51:58.000Z
vk_api/enums.py
TyFoonCS/vk_api
ae6584d5b8a6b5e2593f60289bfd3be823ef6916
[ "Apache-2.0" ]
1
2021-05-03T19:21:36.000Z
2021-05-03T19:21:36.000Z
vk_api/enums.py
TyFoonCS/vk_api
ae6584d5b8a6b5e2593f60289bfd3be823ef6916
[ "Apache-2.0" ]
4
2020-05-10T06:58:10.000Z
2020-09-03T14:26:49.000Z
# -*- coding: utf-8 -*- """ :authors: python273 :license: Apache License, Version 2.0, see LICENSE file :copyright: (c) 2019 python273 """ from enum import IntEnum class VkUserPermissions(IntEnum): """ Перечисление прав пользователя. Список прав получается побитовым сложением (x | y) каждого права. ...
22.695122
96
0.646964
6fd815cf502aa7cc9aa3d464eb3879a274bd16b9
47,925
py
Python
aesara/scan/basic.py
hs2361/aesara
16f98e4fd69db92e0c2cde9dd97a0d005235deea
[ "BSD-3-Clause" ]
1
2021-11-30T06:38:39.000Z
2021-11-30T06:38:39.000Z
aesara/scan/basic.py
fonnesbeck/aesara
02378861f1a77135f2556018630092a09262ea76
[ "BSD-3-Clause" ]
null
null
null
aesara/scan/basic.py
fonnesbeck/aesara
02378861f1a77135f2556018630092a09262ea76
[ "BSD-3-Clause" ]
null
null
null
__docformat__ = "restructedtext en" __authors__ = ( "Razvan Pascanu " "Frederic Bastien " "James Bergstra " "Pascal Lamblin " "PyMC Developers" ) __copyright__ = "(c) 2010, Universite de Montreal" import logging from collections import OrderedDict import numpy as np import aesara.tensor as aet f...
41.529463
111
0.5971
c78c4b1b218a97eab0f4f481f5404431189560b4
184,513
py
Python
distributed/scheduler.py
dazza-codes/distributed
0bed9fe57fa6c0f9416b337aa816024a6bb31acf
[ "BSD-3-Clause" ]
null
null
null
distributed/scheduler.py
dazza-codes/distributed
0bed9fe57fa6c0f9416b337aa816024a6bb31acf
[ "BSD-3-Clause" ]
null
null
null
distributed/scheduler.py
dazza-codes/distributed
0bed9fe57fa6c0f9416b337aa816024a6bb31acf
[ "BSD-3-Clause" ]
null
null
null
import asyncio from collections import defaultdict, deque, OrderedDict from collections.abc import Mapping, Set from datetime import timedelta from functools import partial from inspect import isawaitable import itertools import json import logging import math from numbers import Number import operator import os import...
33.621173
104
0.541176
77fd0796e0900e303291d107bc164abcee5183fd
3,393
py
Python
lib/surface/compute/instances/simulate_maintenance_event.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/instances/simulate_maintenance_event.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/instances/simulate_maintenance_event.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
37.285714
80
0.724727
79d0d8a9394e36815ae37722447d4cbc3d165c9a
1,664
py
Python
RandomForestParamSearchAbdA/num-estimators_200_min-sample-split_15_max-depth_None_max-leaf-nodes_2_random-state_0_class-weight_balanced.py
aparna-arr/DeepLearningChromatinStructure
f56d36b8fc8b01df407ed7a2526266c4d8e731d4
[ "MIT" ]
3
2021-07-26T02:06:39.000Z
2022-03-20T13:00:25.000Z
RandomForestParamSearchAbdA/num-estimators_200_min-sample-split_15_max-depth_None_max-leaf-nodes_2_random-state_0_class-weight_balanced.py
aparna-arr/DeepLearningChromatinStructure
f56d36b8fc8b01df407ed7a2526266c4d8e731d4
[ "MIT" ]
null
null
null
RandomForestParamSearchAbdA/num-estimators_200_min-sample-split_15_max-depth_None_max-leaf-nodes_2_random-state_0_class-weight_balanced.py
aparna-arr/DeepLearningChromatinStructure
f56d36b8fc8b01df407ed7a2526266c4d8e731d4
[ "MIT" ]
1
2021-06-09T16:04:52.000Z
2021-06-09T16:04:52.000Z
#!/share/software/user/open/python/3.6.1/bin/python3 from src.ModelDriver import * ## MODIFY THESE PARAMS FOR SPECIFIC RUN ### X_train = "/oak/stanford/groups/aboettig/Aparna/NNproject/clean_data/train_5.23.18_unbalanced_unaugmented_xyz.txt" Y_train = "/oak/stanford/groups/aboettig/Aparna/NNproject/clean_data/train_5....
32.627451
116
0.729567
0dff1ffa8d893cebbbf24c5c9c1f17710d008069
9,494
py
Python
uvicore/auth/user_providers/orm.py
uvicore/framework
9c21b85e9e470c6d789899340332a9abd0b26ab1
[ "MIT" ]
11
2021-03-22T22:07:49.000Z
2022-03-08T16:18:33.000Z
uvicore/auth/user_providers/orm.py
uvicore/framework
9c21b85e9e470c6d789899340332a9abd0b26ab1
[ "MIT" ]
12
2021-03-04T05:51:24.000Z
2021-09-22T05:16:18.000Z
uvicore/auth/user_providers/orm.py
uvicore/framework
9c21b85e9e470c6d789899340332a9abd0b26ab1
[ "MIT" ]
2
2021-03-25T14:49:56.000Z
2021-11-17T23:20:29.000Z
import uvicore from uvicore.auth.user_info import UserInfo from uvicore.support.hash import sha1 from uvicore.contracts import UserProvider from uvicore.support.dumper import dump, dd from uvicore.auth.support import password as pwd from uvicore.http.request import HTTPConnection from uvicore.typing import List, Union,...
40.4
107
0.618075
7de927cc4aa7e7a91438826a936d6e4a9a6e5ea9
16,463
py
Python
analysis/tasks/files/treeMaker_cfg.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
3
2020-01-22T08:30:14.000Z
2021-12-27T18:47:43.000Z
analysis/tasks/files/treeMaker_cfg.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
null
null
null
analysis/tasks/files/treeMaker_cfg.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Config file to create jet tagging scale factor trees. """ import os import FWCore.ParameterSet.Config as cms from FWCore.PythonUtilities.LumiList import LumiList from FWCore.ParameterSet.VarParsing import VarParsing try: # create options options = VarParsing("python") # se...
38.286047
164
0.675758
e841df00479b1c669ba48ebe800f21dff788b7fa
1,376
py
Python
zvt/fill_project.py
h521822/zvt
c6bcc2b340406da55d920a411f59ab8d4cc7e76d
[ "MIT" ]
2
2021-02-09T05:55:38.000Z
2021-07-26T00:06:46.000Z
zvt/fill_project.py
h521822/zvt
c6bcc2b340406da55d920a411f59ab8d4cc7e76d
[ "MIT" ]
null
null
null
zvt/fill_project.py
h521822/zvt
c6bcc2b340406da55d920a411f59ab8d4cc7e76d
[ "MIT" ]
1
2021-07-22T02:48:31.000Z
2021-07-22T02:48:31.000Z
# script to auto generate some files from zvt.contract import IntervalLevel from zvt.autocode.generator import gen_exports, gen_kdata_schema from zvt.contract import AdjustType def gen_kdata_schemas(): # 股票行情 gen_kdata_schema(pkg='zvt', providers=['joinquant'], entity_type='stock', levels...
38.222222
108
0.677326
81ed8fbf8f85e20d8ec174b27fdffe59ddbf36f0
6,394
py
Python
api/applications/tests/tests_managing_countries_on_goods_type.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/applications/tests/tests_managing_countries_on_goods_type.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
api/applications/tests/tests_managing_countries_on_goods_type.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework import status from api.applications.models import CountryOnApplication from api.goodstype.models import GoodsType from api.staticdata.countries.helpers import get_country from api.staticdata.statuses.enums import CaseStatusEnum from api.staticdata.statuses.libraries....
41.79085
119
0.686581
add43ac8569be3594e22eb97119a64b8d7a7eeb4
8,663
py
Python
src/aurora/security.py
heminsatya/aurora
cb3e7454450d016b23628f8a74ed4041716bf274
[ "MIT" ]
5
2021-12-27T17:14:42.000Z
2022-02-05T19:09:12.000Z
src/aurora/security.py
heminsatya/aurora
cb3e7454450d016b23628f8a74ed4041716bf274
[ "MIT" ]
null
null
null
src/aurora/security.py
heminsatya/aurora
cb3e7454450d016b23628f8a74ed4041716bf274
[ "MIT" ]
1
2022-01-14T17:32:00.000Z
2022-01-14T17:32:00.000Z
################ # Dependencies # ################ import importlib from os import replace from datetime import datetime, timedelta from .helpers import route_url from flask import make_response, jsonify, render_template, request as flask_request, abort as flask_abort, redirect as flask_redirect, session as flask_sessi...
22.385013
159
0.609027
c1247b34e282848f7587ffee0ac98917ef24300c
45
py
Python
pyVcsa/exceptions.py
ToxicSamN/pyVcsa
b385fac1e2e5c37e77f42caf57149448fd5fa4b6
[ "Apache-2.0" ]
null
null
null
pyVcsa/exceptions.py
ToxicSamN/pyVcsa
b385fac1e2e5c37e77f42caf57149448fd5fa4b6
[ "Apache-2.0" ]
null
null
null
pyVcsa/exceptions.py
ToxicSamN/pyVcsa
b385fac1e2e5c37e77f42caf57149448fd5fa4b6
[ "Apache-2.0" ]
null
null
null
class ValidationError(Exception): pass
9
33
0.733333
8ab43f30476e8d8013912fab4907a7b92fc78a7b
374
py
Python
snmpsim/mltsplit.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
null
null
null
snmpsim/mltsplit.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
null
null
null
snmpsim/mltsplit.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
1
2019-12-16T09:51:38.000Z
2019-12-16T09:51:38.000Z
# # This file is part of snmpsim software. # # Copyright (c) 2010-2017, Ilya Etingof <etingof@gmail.com> # License: http://snmpsim.sf.net/license.html # # Like string.split but first tries to use composite separator as an # escaping aid def split(val, sep): for x in (3, 2, 1): if val.find(sep * x) != -1: ...
24.933333
68
0.639037
158cc0f98ba61faef4edcfeda9a287828ad6bd45
271
py
Python
mundo-2/ex060.py
pablocarracci/cev-python
dd6c2db80be84ec732fc5efd895e11d48d298258
[ "MIT" ]
null
null
null
mundo-2/ex060.py
pablocarracci/cev-python
dd6c2db80be84ec732fc5efd895e11d48d298258
[ "MIT" ]
null
null
null
mundo-2/ex060.py
pablocarracci/cev-python
dd6c2db80be84ec732fc5efd895e11d48d298258
[ "MIT" ]
null
null
null
# Exercício 060 - Cálculo do Fatorial from cev.utils import fatorial x = int(input('Digite um número para calcular seu Fatorial: ')) print(f'Calculando {x}! = ', end='') for n in range(x, 0, -1): print(f'{n} x' if n > 1 else f'{n} =', end=' ') print(fatorial(x))
22.583333
63
0.627306
af65a059452e996c7ef4ef5228138a9f0c0d54ce
3,578
py
Python
tests/pytests/integration/modules/state/test_state_pillar_errors.py
agraul/salt-1
b6665030d91fb7045467b4dc408169d5127aa9be
[ "Apache-2.0" ]
null
null
null
tests/pytests/integration/modules/state/test_state_pillar_errors.py
agraul/salt-1
b6665030d91fb7045467b4dc408169d5127aa9be
[ "Apache-2.0" ]
null
null
null
tests/pytests/integration/modules/state/test_state_pillar_errors.py
agraul/salt-1
b6665030d91fb7045467b4dc408169d5127aa9be
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import textwrap import pytest from saltfactories.utils.functional import StateResult pytestmark = [ pytest.mark.slow_test, ] @pytest.fixture(scope="module") def reset_pillar(salt_call_cli): try: # Run tests yield finally: # Refresh pillar once all tests are do...
27.106061
75
0.626887
713246f8288e0a40ac4e726029c213f3abb498ae
3,370
py
Python
uproot/write/sink/cursor.py
riga/uproot
78de42f849079c35fd05ae22033e56f02492b6c1
[ "BSD-3-Clause" ]
1
2021-03-18T23:33:35.000Z
2021-03-18T23:33:35.000Z
uproot/write/sink/cursor.py
riga/uproot
78de42f849079c35fd05ae22033e56f02492b6c1
[ "BSD-3-Clause" ]
17
2020-01-28T22:33:27.000Z
2021-06-10T21:05:49.000Z
uproot/write/sink/cursor.py
riga/uproot
78de42f849079c35fd05ae22033e56f02492b6c1
[ "BSD-3-Clause" ]
1
2020-04-17T15:33:03.000Z
2020-04-17T15:33:03.000Z
#!/usr/bin/env python # Copyright (c) 2017, DIANA-HEP # 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 # list of...
36.236559
80
0.690208
e3c7aecef7a4c674bbe1a5aa7f9ae7e8c9ce67b2
63
py
Python
BOJ/21000~21999/21500~21599/21591.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/21000~21999/21500~21599/21591.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/21000~21999/21500~21599/21591.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
a,b,c,d=map(int,input().split()) print(int(a>=c+2 and b>=d+2))
21
32
0.587302
12b788b0334802d3dd2355e10dd5f60687580579
5,713
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations/_network_interface_load_balancers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations/_network_interface_load_balancers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations/_network_interface_load_balancers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.82906
196
0.673377
e09227097c5829c808d4310e9ac5f8537d2371a1
7,266
py
Python
tests/test_patch.py
softwarefactory-project/rdopkg
d7d63aa5142a1c00f96ef09d6451935113c9db85
[ "Apache-2.0" ]
12
2017-06-17T03:00:20.000Z
2019-10-21T22:17:42.000Z
tests/test_patch.py
softwarefactory-project/rdopkg
d7d63aa5142a1c00f96ef09d6451935113c9db85
[ "Apache-2.0" ]
85
2017-06-13T09:43:51.000Z
2022-02-10T16:24:48.000Z
tests/test_patch.py
openstack-packages/rdopkg
d7d63aa5142a1c00f96ef09d6451935113c9db85
[ "Apache-2.0" ]
6
2016-05-20T14:54:35.000Z
2017-06-05T14:43:08.000Z
# -*- encoding: utf-8 -*- from __future__ import unicode_literals from rdopkg.cli import rdopkg from rdopkg.utils.git import git, git_branch from rdopkg.utils import log import test_common as common from test_common import DIST_POSTFIX import pytest RPM_AVAILABLE = False try: import rpm # NOQA RPM_AVAILABL...
33.638889
75
0.645472
4e6d3879f0f0c9da8711d6817765b11e4d40512d
2,519
py
Python
setup.py
jordanrossetti/rtv
c6546b8e77463a5606ef56c86e054e248d197080
[ "MIT" ]
null
null
null
setup.py
jordanrossetti/rtv
c6546b8e77463a5606ef56c86e054e248d197080
[ "MIT" ]
null
null
null
setup.py
jordanrossetti/rtv
c6546b8e77463a5606ef56c86e054e248d197080
[ "MIT" ]
2
2018-05-01T21:40:39.000Z
2018-05-02T20:43:35.000Z
import sys import codecs import setuptools from version import __version__ as version install_requires = [ 'beautifulsoup4', 'decorator', 'kitchen', 'requests >=2.4.0', # https://github.com/michael-lazar/rtv/issues/325 'six', ] tests_require = [ 'coveralls', 'pytest>=3.1.0', # Pinned f...
29.290698
79
0.631203
6901c2e2313c58a6c0cf21e64bdbfaf80c672cf8
5,974
py
Python
plugin.video.deccandelight/resources/scrapers/gmala.py
arafathster/kodiworks
8f66814c1ebe0cc4019a81f15d19882eb633d5e2
[ "Apache-2.0" ]
1
2018-11-25T18:08:19.000Z
2018-11-25T18:08:19.000Z
plugin.video.deccandelight/resources/scrapers/gmala.py
arafathster/kodiworks
8f66814c1ebe0cc4019a81f15d19882eb633d5e2
[ "Apache-2.0" ]
null
null
null
plugin.video.deccandelight/resources/scrapers/gmala.py
arafathster/kodiworks
8f66814c1ebe0cc4019a81f15d19882eb633d5e2
[ "Apache-2.0" ]
2
2018-11-04T20:08:04.000Z
2018-12-15T01:03:03.000Z
''' Hindi Geetmala deccandelight plugin Copyright (C) 2016 Gujal This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program ...
39.562914
116
0.534985
aa77d9a78dbe15c7afb44eeb130ca4140c481738
104
py
Python
ncluster/test.py
timotheecour/ncluster
24baf049c2690505bf4dd63ec7d8822edb81b5a9
[ "MIT" ]
34
2018-09-08T15:41:43.000Z
2020-05-15T14:06:45.000Z
ncluster/test.py
timotheecour/ncluster
24baf049c2690505bf4dd63ec7d8822edb81b5a9
[ "MIT" ]
66
2019-05-19T18:46:53.000Z
2019-09-16T00:48:25.000Z
ncluster/test.py
timotheecour/ncluster
24baf049c2690505bf4dd63ec7d8822edb81b5a9
[ "MIT" ]
6
2019-10-01T07:28:52.000Z
2022-02-05T02:45:18.000Z
print("%20s" % ('asdfasdf',)) print(f"{'asdfasdf':>20}") print("%5.2f" % (5.5,)) print(f"{5.5:5.2f}")
14.857143
29
0.509615
2b07a54ba1ae97a97416ed9fcd48c7e51ce29ef6
246
py
Python
wold2/assets.py
blurks/wold2
77272b5ee2e5330d01bfed1363d515c77fefa529
[ "Apache-2.0" ]
15
2016-08-26T17:55:09.000Z
2022-02-03T03:06:34.000Z
wold2/assets.py
blurks/wold2
77272b5ee2e5330d01bfed1363d515c77fefa529
[ "Apache-2.0" ]
2
2018-01-24T15:31:01.000Z
2018-03-12T09:30:45.000Z
wold2/assets.py
blurks/wold2
77272b5ee2e5330d01bfed1363d515c77fefa529
[ "Apache-2.0" ]
6
2015-12-06T22:02:08.000Z
2022-02-02T16:29:32.000Z
import pathlib from clld.web.assets import environment import wold2 environment.append_path( str(pathlib.Path(wold2.__file__).parent.joinpath('static')), url='/wold2:static/') environment.load_path = list(reversed(environment.load_path))
22.363636
86
0.784553
2d80e8c57209b069bb55639664c98bd12040720d
383
py
Python
other/dingding/dingtalk/api/rest/OapiTdpTaskBasicDeleteRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiTdpTaskBasicDeleteRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiTdpTaskBasicDeleteRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2020.12.23 ''' from dingtalk.api.base import RestApi class OapiTdpTaskBasicDeleteRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.microapp_agent_id = None self.operator_userid = None self.task_id = None def getHttpMethod(self): return 'POST' def ge...
22.529412
46
0.75718
a24dbef39498754c27254978908a086eff827487
2,195
py
Python
setup.py
kasimte/fastcore
22b6857c94e638719f100793cd56c3fd12ecc816
[ "Apache-2.0" ]
1
2020-08-23T21:32:34.000Z
2020-08-23T21:32:34.000Z
setup.py
kasimte/fastcore
22b6857c94e638719f100793cd56c3fd12ecc816
[ "Apache-2.0" ]
null
null
null
setup.py
kasimte/fastcore
22b6857c94e638719f100793cd56c3fd12ecc816
[ "Apache-2.0" ]
null
null
null
from pkg_resources import parse_version from configparser import ConfigParser import setuptools assert parse_version(setuptools.__version__)>=parse_version('36.2') # note: all settings are in settings.ini; edit there, not here config = ConfigParser(delimiters=['=']) config.read('settings.ini') cfg = config['DEFAULT'] ...
40.648148
102
0.665604
c40fa15787a01d277a6a2c4473df8c5941638a9e
54,078
py
Python
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/Misc.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
1
2015-04-30T14:18:45.000Z
2015-04-30T14:18:45.000Z
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/Misc.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/Misc.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
## @file # Common routines used by all tools # # Copyright (c) 2007 - 2010, 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 this distribution. The full text of the license m...
34.422661
116
0.583065
722bbdfbb03aa9447a2da5f3e0804a638b51a358
13,382
py
Python
sdk/python/pulumi_azure_native/databoxedge/v20201201/bandwidth_schedule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/databoxedge/v20201201/bandwidth_schedule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/databoxedge/v20201201/bandwidth_schedule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
43.448052
1,376
0.643252
845b4589b0e82129d05ff74eb00dadd9b7a18a60
5,981
py
Python
mercury_engine_data_structures/formats/bmsad.py
Antidote/mercury-engine-data-structures
d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64
[ "MIT" ]
null
null
null
mercury_engine_data_structures/formats/bmsad.py
Antidote/mercury-engine-data-structures
d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64
[ "MIT" ]
null
null
null
mercury_engine_data_structures/formats/bmsad.py
Antidote/mercury-engine-data-structures
d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64
[ "MIT" ]
2
2021-11-07T13:42:13.000Z
2022-01-08T06:00:40.000Z
import construct from construct.core import ( Array, Byte, Const, Construct, Flag, Float32l, Hex, Int16ul, Int32ul, PrefixedArray, Struct, Switch, ) from mercury_engine_data_structures import common_types, type_lib from mercury_engine_data_structures.common_types import Float, StrId, make_dict, make_vector from me...
28.212264
110
0.598562
a0b1cb54ada9b516ae7c1eef2d07132f1b65a8d4
9,942
py
Python
sfa_api/tests/test_jobs.py
SolarArbiter/solarforecastarbiter-api
280800c73eb7cfd49029462b352887e78f1ff91b
[ "MIT" ]
7
2018-12-07T22:05:36.000Z
2020-05-03T03:20:50.000Z
sfa_api/tests/test_jobs.py
SolarArbiter/solarforecastarbiter-api
280800c73eb7cfd49029462b352887e78f1ff91b
[ "MIT" ]
220
2018-11-01T23:33:19.000Z
2021-12-02T21:06:38.000Z
sfa_api/tests/test_jobs.py
SolarArbiter/solarforecastarbiter-api
280800c73eb7cfd49029462b352887e78f1ff91b
[ "MIT" ]
3
2018-10-31T20:55:07.000Z
2021-11-10T22:51:43.000Z
import datetime as dt import tempfile import time import pytest from rq import SimpleWorker from rq.timeouts import JobTimeoutException from rq_scheduler import Scheduler from sfa_api import jobs from sfa_api.utils.queuing import get_queue from sfa_api.conftest import _make_sql_app, _make_nocommit_cursor @pytest....
33.362416
89
0.653188
2f6a06db3b937d09da02ca515c2472b21754b8a8
37,543
py
Python
src/wallet_data_models.py
hlooman/polis-masternode-tool
94fd2c7fa53db81ae8cfdb767808046958532869
[ "MIT" ]
3
2019-10-16T02:17:09.000Z
2020-07-27T16:50:43.000Z
src/wallet_data_models.py
hlooman/polis-masternode-tool
94fd2c7fa53db81ae8cfdb767808046958532869
[ "MIT" ]
null
null
null
src/wallet_data_models.py
hlooman/polis-masternode-tool
94fd2c7fa53db81ae8cfdb767808046958532869
[ "MIT" ]
1
2019-10-21T11:59:27.000Z
2019-10-21T11:59:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: Bertrand256 # Created on: 2018-09 import bisect import datetime import hashlib import logging from PyQt5.QtCore import Qt, QVariant, QModelIndex, QAbstractItemModel, QUrl from PyQt5.QtGui import QColor, QFont, QDesktopServices from PyQt5.QtWidgets import QTreeVie...
42.421469
130
0.54929
b3ed3a9ecfe988764fc3330b33c73f45c9e6b0d2
1,616
py
Python
ats/players_from_different_games_in_same_room_test.py
gomyar/rooms
ba20cb77380f439d60d452d2bc69bd94c9c21c24
[ "MIT" ]
null
null
null
ats/players_from_different_games_in_same_room_test.py
gomyar/rooms
ba20cb77380f439d60d452d2bc69bd94c9c21c24
[ "MIT" ]
null
null
null
ats/players_from_different_games_in_same_room_test.py
gomyar/rooms
ba20cb77380f439d60d452d2bc69bd94c9c21c24
[ "MIT" ]
null
null
null
import unittest from rooms.testutils import * class PlayersFromDifferentGamesInSameRoom(unittest.TestCase): def setUp(self): self.game = RoomsTestRunner(__file__, './test_game_1') #self.game.start_game() self.conn_bob = open_connection() self.conn_ray = open_connection() def...
32.979592
79
0.652847
d4634f2234f3acac354e63852f9f245196c0c209
882
py
Python
2020_05_p2.py
Dementophobia/advent-of-code-2020
ee1fb67d4ec55ed082aa7723c79759310925a85a
[ "MIT" ]
null
null
null
2020_05_p2.py
Dementophobia/advent-of-code-2020
ee1fb67d4ec55ed082aa7723c79759310925a85a
[ "MIT" ]
null
null
null
2020_05_p2.py
Dementophobia/advent-of-code-2020
ee1fb67d4ec55ed082aa7723c79759310925a85a
[ "MIT" ]
null
null
null
from aoc import read_file, timer def calc_seat_id(seat): row_low, row_high = 0, 127 col_low, col_high = 0, 7 for char in seat[:7]: if char == "B": row_low += (row_high - row_low + 1) // 2 else: row_high -= (row_high - row_low + 1) // 2 for char in seat...
26.727273
64
0.53288
7cbf5cd3e37ad65c2f0652f41a469105f9b07254
1,490
py
Python
reconhecimento-facial/treinar_modelo.py
lopes-leonardo/visao-computacional-fatec
a2d4e804b3b3b650797393effa1fd6412515a83b
[ "MIT" ]
null
null
null
reconhecimento-facial/treinar_modelo.py
lopes-leonardo/visao-computacional-fatec
a2d4e804b3b3b650797393effa1fd6412515a83b
[ "MIT" ]
null
null
null
reconhecimento-facial/treinar_modelo.py
lopes-leonardo/visao-computacional-fatec
a2d4e804b3b3b650797393effa1fd6412515a83b
[ "MIT" ]
null
null
null
# COMO USAR # python treinar_modelo.py # Ele espera que você já tenha rodado o arquivo extrai_features.py # Você pode modificar os caminhos de output e input # por meio dos parâmetros opcionais abaixo # Importa o pacotes necessários from sklearn.preprocessing import LabelEncoder from sklearn.svm import SVC import argp...
31.041667
66
0.756376
09936856fbe5b0aa96e01b3b2f3281e9c9d33afb
919
py
Python
bites/bite120.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite120.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite120.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
1
2019-07-16T19:12:52.000Z
2019-07-16T19:12:52.000Z
from functools import wraps def int_args(func): @wraps(func) # complete this decorator def inner(*args): is_ints = [isinstance (i, int) for i in args] if not all(is_ints): raise TypeError("Not an integer") is_greater_than_zero = [i > 0 for i in args] ...
20.422222
53
0.63765
a7d58a7b6382c85e0941c8139d7de65a8e95bafe
7,654
py
Python
src/m3_graphical_accumulating.py
johnsom6/TheAccumulatorPattern
0f9865707ffee6bc2601d3c62272a0d53e4bc56e
[ "MIT" ]
null
null
null
src/m3_graphical_accumulating.py
johnsom6/TheAccumulatorPattern
0f9865707ffee6bc2601d3c62272a0d53e4bc56e
[ "MIT" ]
null
null
null
src/m3_graphical_accumulating.py
johnsom6/TheAccumulatorPattern
0f9865707ffee6bc2601d3c62272a0d53e4bc56e
[ "MIT" ]
null
null
null
""" This module lets you practice one form of the ACCUMULATOR pattern, namely, the "IN GRAPHICS" form which features: -- DRAWING OBJECTS via ACCUMULATING positions and/or sizes, as in: x = x + pixels Additionally, it emphasizes that you must ** DO A CONCRETE EXAMPLE BY HAND ** before you can implement a sol...
36.975845
74
0.510191
b8a5dc061b981a1e797f249b44ef9e821cdf468f
12,368
py
Python
jtyoui/tools/times.py
vanton/Jtyoui
c44d66b038ac5f4e2d75b68b3493d02f7b7b385e
[ "MIT" ]
1
2019-12-24T00:57:47.000Z
2019-12-24T00:57:47.000Z
jtyoui/tools/times.py
liangxioa/Jtyoui
5a584cbf12d644b6c4fb13167d8841a383afbbac
[ "MIT" ]
null
null
null
jtyoui/tools/times.py
liangxioa/Jtyoui
5a584cbf12d644b6c4fb13167d8841a383afbbac
[ "MIT" ]
null
null
null
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2019/4/24 17:29 # @Author: Jtyoui@qq.com from jtyoui.data import chinese_mon_number, add_time from jtyoui.decorators import warns import re import datetime import time import itertools import copy import calendar class StringTime: """解析时间 >>> st = Strin...
37.93865
116
0.420925
f033c648c4fbc044e886a6be4d140ca0d3a738ce
39
py
Python
hello_universe/start.py
jayanthvarma134/hello-universe
ab5453731471c172f41ce63c99487cb05faab998
[ "MIT" ]
null
null
null
hello_universe/start.py
jayanthvarma134/hello-universe
ab5453731471c172f41ce63c99487cb05faab998
[ "MIT" ]
null
null
null
hello_universe/start.py
jayanthvarma134/hello-universe
ab5453731471c172f41ce63c99487cb05faab998
[ "MIT" ]
null
null
null
def call(): print("Hello Universe")
19.5
27
0.641026
4d60cc4f28d12171f6bd467a5e3443020f407089
1,832
py
Python
treasureHunt/models.py
team-den-treasure-island/BackEnd
16c69cddc7863c6ae1d2b8c24d4186ba1f5759ce
[ "MIT" ]
null
null
null
treasureHunt/models.py
team-den-treasure-island/BackEnd
16c69cddc7863c6ae1d2b8c24d4186ba1f5759ce
[ "MIT" ]
10
2019-12-04T23:54:00.000Z
2022-02-10T10:00:24.000Z
treasureHunt/models.py
team-den-treasure-island/BackEnd
16c69cddc7863c6ae1d2b8c24d4186ba1f5759ce
[ "MIT" ]
null
null
null
from django.db import models from uuid import uuid4 # from django.contrib.auth.models import User # Create your models here. class Player(models.Model): id = models.UUIDField(primary_key=True, default=uuid4, editable=False) name = models.CharField(max_length=255, editable=True, unique=True) current_room...
42.604651
83
0.742904
b678c9ae7a4e02e402e1d89d3d8ae262dce2811d
12,733
py
Python
dask/dataframe/io/parquet/utils.py
xavi-ai/dask
5f335e9c383d54bc8f376a8cb153171e1f905e65
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/io/parquet/utils.py
xavi-ai/dask
5f335e9c383d54bc8f376a8cb153171e1f905e65
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/io/parquet/utils.py
xavi-ai/dask
5f335e9c383d54bc8f376a8cb153171e1f905e65
[ "BSD-3-Clause" ]
null
null
null
import re from ....compatibility import string_types class Engine: """ The API necessary to provide a new Parquet reader/writer """ @staticmethod def read_metadata( fs, paths, categories=None, index=None, gather_statistics=None, filters=None, **kwar...
37.230994
88
0.623419
3140f6e4cd43386ee15cc504947417aa9a73c63d
6,031
py
Python
hierarchical_foresight/env/environment.py
kiss2u/google-research
2cd66234656f9e2f4218ed90a2d8aa9cf3139093
[ "Apache-2.0" ]
7
2020-03-15T12:14:07.000Z
2021-12-01T07:01:09.000Z
hierarchical_foresight/env/environment.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
25
2020-07-25T08:53:09.000Z
2022-03-12T00:43:02.000Z
hierarchical_foresight/env/environment.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
4
2021-02-08T10:25:45.000Z
2021-04-17T14:46:26.000Z
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37.228395
80
0.636213
4669f7f40058c12832d206cb76319f9fb59c3a8f
159
py
Python
python/mzcloud/models/schema_retrieve_format.py
benesch/cloud-sdks
21e69b8eacc74d64131fc4d5d543ff0d889c87e4
[ "Apache-2.0" ]
null
null
null
python/mzcloud/models/schema_retrieve_format.py
benesch/cloud-sdks
21e69b8eacc74d64131fc4d5d543ff0d889c87e4
[ "Apache-2.0" ]
null
null
null
python/mzcloud/models/schema_retrieve_format.py
benesch/cloud-sdks
21e69b8eacc74d64131fc4d5d543ff0d889c87e4
[ "Apache-2.0" ]
null
null
null
from enum import Enum class SchemaRetrieveFormat(str, Enum): JSON = "json" YAML = "yaml" def __str__(self) -> str: return str(self.value)
19.875
38
0.63522
8c5b90e088a5b4702cee7786e7bd897243d4d56c
124,201
py
Python
musicbot/bot.py
DeadParticles/fuchsupportbotsystem
7880a3d52c74a4eebcac19edfe24db6115c9bf98
[ "MIT" ]
null
null
null
musicbot/bot.py
DeadParticles/fuchsupportbotsystem
7880a3d52c74a4eebcac19edfe24db6115c9bf98
[ "MIT" ]
null
null
null
musicbot/bot.py
DeadParticles/fuchsupportbotsystem
7880a3d52c74a4eebcac19edfe24db6115c9bf98
[ "MIT" ]
null
null
null
import os import sys import time import shlex import shutil import random import inspect import logging import asyncio import pathlib import traceback import math import re import aiohttp import discord import colorlog from io import BytesIO, StringIO from functools import wraps from textwrap import dedent from datet...
42.916724
219
0.584963
12403f0e25dd71994cf42bc623a51a4b55ac182d
2,395
py
Python
Tree/postorder_traversal.py
AaronOS0/leetcode_solver
9700d9c3ea3e7645a00c2c82bcca06c7fb423403
[ "MIT" ]
null
null
null
Tree/postorder_traversal.py
AaronOS0/leetcode_solver
9700d9c3ea3e7645a00c2c82bcca06c7fb423403
[ "MIT" ]
null
null
null
Tree/postorder_traversal.py
AaronOS0/leetcode_solver
9700d9c3ea3e7645a00c2c82bcca06c7fb423403
[ "MIT" ]
null
null
null
#!/usr/bin/env python from typing import List, Optional from collections import Counter, deque """ Questions: 145. Binary Tree Postorder Traversal 590. N-ary Tree Postorder Traversal """ class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left sel...
23.712871
89
0.552401
2c44af17f295f1f296ccca748d51cd5cd9eccf02
824
py
Python
fest_app/forms.py
prkhrv/Ebullience-2k18
0799a81239d1c1b1b6f8d49eb733f44fc22ff237
[ "MIT" ]
null
null
null
fest_app/forms.py
prkhrv/Ebullience-2k18
0799a81239d1c1b1b6f8d49eb733f44fc22ff237
[ "MIT" ]
null
null
null
fest_app/forms.py
prkhrv/Ebullience-2k18
0799a81239d1c1b1b6f8d49eb733f44fc22ff237
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm,UserChangeForm from .models import CustomUser class CustomUserCreationForm(UserCreationForm): class Meta(UserCreationForm.Meta): model = CustomUser fields = ('username','first_name','last_name','phone','roll','branch',...
34.333333
103
0.678398
dbb7c12df59415fe21c3c70b37a5917c017ab8bf
1,040
py
Python
cc1101/configuration.py
codeandbacon/radio-paella
98bd6829299e528de9c69690206dee51b1372687
[ "MIT" ]
1
2020-05-03T11:37:40.000Z
2020-05-03T11:37:40.000Z
cc1101/configuration.py
codeandbacon/radio-paella
98bd6829299e528de9c69690206dee51b1372687
[ "MIT" ]
null
null
null
cc1101/configuration.py
codeandbacon/radio-paella
98bd6829299e528de9c69690206dee51b1372687
[ "MIT" ]
null
null
null
from micropython import const # registers IOCFG2 = const(0x00) IOCFG1 = const(0x01) IOCFG0 = const(0x02) FIFOTHR = const(0x03) SYNC1 = const(0x04) SYNC0 = const(0x05) PKTLEN = const(0x06) PKTCTRL1 = const(0x07) PKTCTRL0 = const(0x08) ADDR = const(0x09) CHANNR = const(0x0a) FSCTRL1 = const(0x0b) FSCTRL0 = const(0x0c) ...
20.392157
29
0.721154
502c872cabde610f0e004569e0397fc392a91203
5,551
py
Python
utils/utils.py
mi-erasmusmc/Sard
d8228a7c49e2e6f98fbd16d4531cb3fc4b505590
[ "MIT" ]
null
null
null
utils/utils.py
mi-erasmusmc/Sard
d8228a7c49e2e6f98fbd16d4531cb3fc4b505590
[ "MIT" ]
null
null
null
utils/utils.py
mi-erasmusmc/Sard
d8228a7c49e2e6f98fbd16d4531cb3fc4b505590
[ "MIT" ]
null
null
null
import json import numpy as np import seaborn as sns import torch from matplotlib import pyplot as plt from sklearn.metrics import roc_curve, roc_auc_score, precision_recall_curve, auc sns.set_theme() def extract_best_model(directory, metric='val_loss'): """ Extract best model from a directory with checkpoin...
33.041667
122
0.643488
d50c0348467071ff95038defa6df2252d2df3b32
41,502
py
Python
tests/test_forms.py
azmeuk/webtest
ca58f4d1712d87397e84ed30fd87475c6a814d32
[ "MIT" ]
239
2015-01-23T06:19:06.000Z
2022-03-08T10:40:10.000Z
tests/test_forms.py
azmeuk/webtest
ca58f4d1712d87397e84ed30fd87475c6a814d32
[ "MIT" ]
96
2015-01-05T17:16:52.000Z
2022-02-04T17:21:41.000Z
tests/test_forms.py
azmeuk/webtest
ca58f4d1712d87397e84ed30fd87475c6a814d32
[ "MIT" ]
84
2015-01-21T14:07:59.000Z
2022-03-06T08:52:47.000Z
import cgi import os.path import struct import sys import webtest from webob import Request from webtest.debugapp import DebugApp from webtest.compat import to_bytes from webtest.forms import NoValue, Submit, Upload from tests.compat import unittest from tests.compat import u class TestForms(unittest.TestCase): ...
38.932458
78
0.589128
c77238267d66f023e1a89fea1a771831d78b914b
161
py
Python
app_polls/graphql/__types.py
Audiotuete/backend_kassel_api
97bb1f38eea51147660dd2eda052b540293f27a7
[ "MIT" ]
null
null
null
app_polls/graphql/__types.py
Audiotuete/backend_kassel_api
97bb1f38eea51147660dd2eda052b540293f27a7
[ "MIT" ]
null
null
null
app_polls/graphql/__types.py
Audiotuete/backend_kassel_api
97bb1f38eea51147660dd2eda052b540293f27a7
[ "MIT" ]
null
null
null
import graphene from graphene_django import DjangoObjectType #Models from ..models import Poll class PollType(DjangoObjectType): class Meta: model = Poll
17.888889
44
0.795031
8f15354071038386535da464e4ccb514c56dc268
812
py
Python
openpyxl/chart/tests/test_picture.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
openpyxl/chart/tests/test_picture.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
openpyxl/chart/tests/test_picture.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
from __future__ import absolute_import # Copyright (c) 2010-2017 openpyxl import pytest from openpyxl.xml.functions import fromstring, tostring from openpyxl.tests.helper import compare_xml @pytest.fixture def PictureOptions(): from ..picture import PictureOptions return PictureOptions class TestPictureOpt...
23.882353
55
0.662562
fa8b49a021294e8555e979459615b1956d9b2b55
32,375
py
Python
python/paddle/fluid/executor.py
hjchen2/Paddle
6c596a2bb1b000171c8a9df6e5c4a6204670cbce
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/executor.py
hjchen2/Paddle
6c596a2bb1b000171c8a9df6e5c4a6204670cbce
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/executor.py
hjchen2/Paddle
6c596a2bb1b000171c8a9df6e5c4a6204670cbce
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
39.87069
111
0.595181
c2dfdca43153ad69c1438b2038009efcec56337f
3,308
py
Python
cloudnetpy/instruments/lufft.py
saveriogzz/cloudnetpy
baa3ed5f254425c5a9c787556ec652ea659b38ba
[ "MIT" ]
null
null
null
cloudnetpy/instruments/lufft.py
saveriogzz/cloudnetpy
baa3ed5f254425c5a9c787556ec652ea659b38ba
[ "MIT" ]
null
null
null
cloudnetpy/instruments/lufft.py
saveriogzz/cloudnetpy
baa3ed5f254425c5a9c787556ec652ea659b38ba
[ "MIT" ]
null
null
null
"""Module with a class for Lufft chm15k ceilometer.""" from typing import Union, List, Optional import logging import netCDF4 import numpy as np from cloudnetpy.instruments.ceilometer import Ceilometer from cloudnetpy import utils class LufftCeilo(Ceilometer): """Class for Lufft chm15k ceilometer.""" def __in...
39.855422
91
0.633615
e4133acf32e8b08cb79bcd8d609533dd760882b7
6,663
py
Python
test/functional/feature_cltv.py
cryptoBLAST/Ravencoin
b277310f51b6f99d52a30eac5e79df29824765f3
[ "MIT" ]
3
2020-03-31T08:36:54.000Z
2020-11-17T01:59:46.000Z
test/functional/feature_cltv.py
cryptoBLAST/Ravencoin
b277310f51b6f99d52a30eac5e79df29824765f3
[ "MIT" ]
1
2020-09-09T23:23:57.000Z
2020-09-09T23:23:57.000Z
test/functional/feature_cltv.py
cryptoBLAST/Ravencoin
b277310f51b6f99d52a30eac5e79df29824765f3
[ "MIT" ]
2
2019-04-15T10:15:37.000Z
2019-05-02T06:29:29.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017-2018 The Raven Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP65 (CHECKLOCKTIMEVERIFY). Test that the CH...
40.381818
107
0.680774
a76a95360b6309f6b55eebaf920cf2bd7e1475d5
745
py
Python
yacos/model/__init__.py
ComputerSystemsLaboratory/YaCoS
abd5d3c6e227e5c7a563493f7855ebf58ba3de05
[ "Apache-2.0" ]
8
2022-02-03T16:41:01.000Z
2022-02-09T11:29:20.000Z
yacos/model/__init__.py
ComputerSystemsLaboratory/YaCoS
abd5d3c6e227e5c7a563493f7855ebf58ba3de05
[ "Apache-2.0" ]
null
null
null
yacos/model/__init__.py
ComputerSystemsLaboratory/YaCoS
abd5d3c6e227e5c7a563493f7855ebf58ba3de05
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 Anderson Faustino da Silva. 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,...
32.391304
72
0.802685
73b8952b5c049648a4673e723793b1bb15e9bdee
8,276
py
Python
myuw/views/api/base_schedule.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
myuw/views/api/base_schedule.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
myuw/views/api/base_schedule.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import logging import traceback from operator import itemgetter from restclients_core.exceptions import InvalidNetID from myuw.dao.campus_building import get_building_by_code from myuw.dao.canvas import ( get_canvas_active_enrol...
39.222749
79
0.599807
046ae1fbe9ae09acf4d4b5f8c780577d26fe70a6
8,175
py
Python
pipeline/feature-classification/exp-3/selection-extraction/rf/pipeline_classifier_adc.py
DoraSzasz/mp-mri-prostate
bd420534b4b5c464e5bbb4a07eabdc8724831f8a
[ "MIT" ]
12
2017-07-31T07:19:36.000Z
2019-12-15T11:54:57.000Z
pipeline/feature-classification/exp-3/selection-extraction/rf/pipeline_classifier_adc.py
DoraSzasz/mp-mri-prostate
bd420534b4b5c464e5bbb4a07eabdc8724831f8a
[ "MIT" ]
2
2019-04-27T12:07:07.000Z
2020-09-25T15:00:19.000Z
pipeline/feature-classification/exp-3/selection-extraction/rf/pipeline_classifier_adc.py
I2Cvb/mp-mri-prostate
bd420534b4b5c464e5bbb4a07eabdc8724831f8a
[ "MIT" ]
6
2017-07-28T04:46:45.000Z
2020-10-19T06:56:52.000Z
"""This pipeline is intended to make the classification of ADC modality features.""" from __future__ import division import os import numpy as np from sklearn.externals import joblib from sklearn.preprocessing import label_binarize from sklearn.ensemble import RandomForestClassifier from sklearn.feature_selection imp...
40.671642
87
0.672049
b15a546ba7f7aa0f11dc53339ffc30137176c644
16,676
py
Python
tensorflow_probability/python/distributions/finite_discrete_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/finite_discrete_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/finite_discrete_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
40.872549
95
0.656332
8095b07a541d997e0bfd625379d33eb2a72bbe57
5,156
py
Python
IRIS_data_download/IRIS_download_support/obspy/io/gse2/paz.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/io/gse2/paz.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/io/gse2/paz.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
#!/usr/bin/env python # ------------------------------------------------------------------ # Filename: paz.py # Purpose: Python routines for reading GSE poles and zero files # Author: Moritz Beyreuther # Email: moritz.beyreuther@geophysik.uni-muenchen.de # # Copyright (C) 2008-2012 Moritz Beyreuther # -----------...
32.024845
79
0.592126
458d7a13f500718b6e96a4c61476bd6821606582
45,554
py
Python
utils/ops.py
gumbernator/Mongolian-ALPR
e6753c6687e5974873135249e17627891a07c295
[ "Apache-2.0" ]
10
2020-01-12T01:05:32.000Z
2021-03-04T07:25:48.000Z
utils/ops.py
gumbernator/Mongolian-ALPR
e6753c6687e5974873135249e17627891a07c295
[ "Apache-2.0" ]
1
2020-02-17T13:23:32.000Z
2020-06-22T09:47:14.000Z
utils/ops.py
gumbernator/Mongolian-ALPR
e6753c6687e5974873135249e17627891a07c295
[ "Apache-2.0" ]
4
2019-12-25T21:07:25.000Z
2022-01-06T08:13:58.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.52598
80
0.702573
b50bd96b58c92d17812b302e3c8ac32509153506
1,080
py
Python
nipype/interfaces/dipy/tests/test_auto_APMQball.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/dipy/tests/test_auto_APMQball.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
2
2018-04-17T19:18:16.000Z
2020-03-04T22:05:02.000Z
nipype/interfaces/dipy/tests/test_auto_APMQball.py
oesteban/nipype
c14f24eba1da08711bbb894e049ee858ed740096
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..anisotropic_power import APMQball def test_APMQball_inputs(): input_map = dict( b0_thres=dict(usedefault=True, ), in_bval=dict( extensions=None, mandatory=True, ), ...
30
67
0.612037
307735d0ffd35f1d33488d89c2e3b3806b778e0a
1,062
py
Python
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
from django.urls import path from .views.registroUserView import registroUserView from .views.detalleUserView import detalleUserView from .views.ListaInmueblesView import ListaInmueblesView from .views.CrearInmuebleView import CrearInmuebleView from .views.EliminarInmuebleView import EliminarInmuebleView from .views.Li...
39.333333
95
0.795669
9f1a866623e64db4903683df8266024e6dd88344
392
py
Python
ordenacao/insertion_sort.py
italoaalves/projeto-ed-3
8f51792ae140018fabb454005f9995f5c6302d3f
[ "Apache-2.0" ]
null
null
null
ordenacao/insertion_sort.py
italoaalves/projeto-ed-3
8f51792ae140018fabb454005f9995f5c6302d3f
[ "Apache-2.0" ]
null
null
null
ordenacao/insertion_sort.py
italoaalves/projeto-ed-3
8f51792ae140018fabb454005f9995f5c6302d3f
[ "Apache-2.0" ]
null
null
null
def insertionsort(lista): tam = len(lista) for i in range(1, tam): proximo = lista[i] atual = i - 1 while proximo < lista[atual] and atual >= 0: lista[atual + 1] = lista[atual] atual -= 1 lista[atual + 1] = proximo # debug if __name__ == "__main__": ...
19.6
52
0.522959
b6d2a952d070ba2ce7497c950c893fc3790bf8ac
230
py
Python
app/transaction/controller.py
mfurquim/finance-backend
2ef172217a4cb5602d5b8c1ec5605994662e5155
[ "MIT" ]
1
2022-02-18T11:19:22.000Z
2022-02-18T11:19:22.000Z
app/transaction/controller.py
mfurquim/finance-backend
2ef172217a4cb5602d5b8c1ec5605994662e5155
[ "MIT" ]
null
null
null
app/transaction/controller.py
mfurquim/finance-backend
2ef172217a4cb5602d5b8c1ec5605994662e5155
[ "MIT" ]
null
null
null
from app.log_manager import log from datetime import date from .model import TransactionInput def make_transaction(transaction: TransactionInput): log.info(f'calling make_transaction({transaction})') return transaction
23
56
0.804348
acc907547c88080875fac1578410647db53a8423
254
py
Python
ips.py
FernandaMakiHirose/threads-ips
c9071df9b2700b60e7284502673b0b7e4f7fa4a9
[ "MIT" ]
null
null
null
ips.py
FernandaMakiHirose/threads-ips
c9071df9b2700b60e7284502673b0b7e4f7fa4a9
[ "MIT" ]
null
null
null
ips.py
FernandaMakiHirose/threads-ips
c9071df9b2700b60e7284502673b0b7e4f7fa4a9
[ "MIT" ]
null
null
null
import ipaddress ip = '192.168.0.1' endereço = ipaddress.ip_address(ip) print(endereço) ip = '192.168.0.100/32' network = ipaddress.ip_network(ip, strict=False) print(network) # imprime todos os ips da rede for ip in network: print(ip)
19.538462
49
0.692913
1409711e95047b44d73c12c22314cb8ea3a7f32c
2,235
py
Python
pdb2pqr-1.9.0/scons/scons-local-2.3.0/SCons/Platform/os2.py
Acpharis/protein_prep
8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8
[ "BSD-3-Clause" ]
9
2016-08-17T06:52:10.000Z
2020-04-28T04:20:07.000Z
pdb2pqr-1.9.0/scons/scons-local-2.3.0/SCons/Platform/os2.py
Acpharis/protein_prep
8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8
[ "BSD-3-Clause" ]
null
null
null
pdb2pqr-1.9.0/scons/scons-local-2.3.0/SCons/Platform/os2.py
Acpharis/protein_prep
8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8
[ "BSD-3-Clause" ]
1
2021-03-03T23:20:25.000Z
2021-03-03T23:20:25.000Z
"""SCons.Platform.os2 Platform-specific initialization for OS/2 systems. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Platform.Platform() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, ...
37.881356
113
0.69038
a06f4f18d93359062c82de5615040dd21479d387
748
py
Python
django_modules/home/migrations/0002_contact.py
Mehdi6/djangoModules
b6e8fc578933675d0d087e87e1bdc99d12f440c1
[ "MIT" ]
null
null
null
django_modules/home/migrations/0002_contact.py
Mehdi6/djangoModules
b6e8fc578933675d0d087e87e1bdc99d12f440c1
[ "MIT" ]
null
null
null
django_modules/home/migrations/0002_contact.py
Mehdi6/djangoModules
b6e8fc578933675d0d087e87e1bdc99d12f440c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-12-19 19:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.769231
114
0.573529
cdf8fa06763233c748d7ff73194094fd953fc5a5
2,422
py
Python
robot_ws/src/hello_world_robot/nodes/rotate.py
hekmat-shrez/aws-robomaker-sample-application-helloworld
4eb300dc0360b00f419810318c8d0b771c3a728c
[ "MIT-0" ]
null
null
null
robot_ws/src/hello_world_robot/nodes/rotate.py
hekmat-shrez/aws-robomaker-sample-application-helloworld
4eb300dc0360b00f419810318c8d0b771c3a728c
[ "MIT-0" ]
null
null
null
robot_ws/src/hello_world_robot/nodes/rotate.py
hekmat-shrez/aws-robomaker-sample-application-helloworld
4eb300dc0360b00f419810318c8d0b771c3a728c
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python # source: https://get-help.robotigniteacademy.com/t/how-to-stop-your-robot-when-ros-is-shutting-down/225 # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated doc...
32.72973
104
0.687448
f85828093c2183651ed2702f4a656985ac3a79fe
10,534
py
Python
tdcosim/model/psse/psse_model.py
cuihantao/TDcoSim
bc8f26ccc9e32bd47af039f9efcaf0bdc67daddf
[ "BSD-3-Clause" ]
3
2020-03-18T16:40:09.000Z
2021-04-04T23:21:25.000Z
tdcosim/model/psse/psse_model.py
cuihantao/TDcoSim
bc8f26ccc9e32bd47af039f9efcaf0bdc67daddf
[ "BSD-3-Clause" ]
null
null
null
tdcosim/model/psse/psse_model.py
cuihantao/TDcoSim
bc8f26ccc9e32bd47af039f9efcaf0bdc67daddf
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import sys import os pssePath="C:\Program Files (x86)\PTI\PSSE33\PSSBIN" sys.path.append(pssePath) os.environ['PATH']+=';'+pssePath import psspy from tdcosim.global_data import GlobalData class PSSEModel: def __init__(self): # psse self._psspy=psspy psspy.psseinit(0) psspy.report_output(6,...
36.199313
145
0.678944
bac07e0bbd97880bccd6745ad7bdb1e06f16141e
1,701
py
Python
ml-agents/mlagents/trainers/components/reward_signals/reward_signal_factory.py
russellcaughey/ml-agents
493c75bf683d35d512ae6fb57d4a1a332116df15
[ "Apache-2.0" ]
3
2018-09-18T13:40:29.000Z
2019-02-14T07:30:09.000Z
ml-agents/mlagents/trainers/components/reward_signals/reward_signal_factory.py
russellcaughey/ml-agents
493c75bf683d35d512ae6fb57d4a1a332116df15
[ "Apache-2.0" ]
1
2019-09-04T23:13:55.000Z
2019-09-04T23:13:55.000Z
ml-agents/mlagents/trainers/components/reward_signals/reward_signal_factory.py
russellcaughey/ml-agents
493c75bf683d35d512ae6fb57d4a1a332116df15
[ "Apache-2.0" ]
2
2019-09-10T16:05:48.000Z
2020-07-24T20:40:26.000Z
import logging from typing import Any, Dict, Type from mlagents.trainers.trainer import UnityTrainerException from mlagents.trainers.components.reward_signals.reward_signal import RewardSignal from mlagents.trainers.components.reward_signals.extrinsic.signal import ( ExtrinsicRewardSignal, ) from mlagents.trainers...
34.02
88
0.752499
f0f4c79f393762a1301647b6bb693973d7151fd2
589
py
Python
inspire_magpie/errors.py
jstypka/inspire-magpie
7294b9f5347197f59bf7b3f9d164f2ff35a52cef
[ "MIT" ]
1
2017-11-17T17:30:36.000Z
2017-11-17T17:30:36.000Z
inspire_magpie/errors.py
jstypka/inspire-magpie
7294b9f5347197f59bf7b3f9d164f2ff35a52cef
[ "MIT" ]
6
2016-05-03T09:25:19.000Z
2019-03-22T00:45:43.000Z
inspire_magpie/errors.py
jstypka/inspire-magpie
7294b9f5347197f59bf7b3f9d164f2ff35a52cef
[ "MIT" ]
2
2016-04-13T13:53:36.000Z
2016-04-28T14:51:42.000Z
# -*- coding: utf-8 -*- # # This file is part of Inspire-Magpie. # Copyright (c) 2016 CERN # # Inspire-Magpie is a free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for # more details. """Custom exceptions. .. codeauthor:: Jan Aage Lavik <jan.age.lavik@cern...
24.541667
77
0.733447
6b8ba7c1beb7212e0e66263fd62cb8647e3becbc
211
py
Python
setup.py
amit-15/wafer_main
183f7d0ed87f4ca3938900651b50982590bf89fd
[ "MIT" ]
null
null
null
setup.py
amit-15/wafer_main
183f7d0ed87f4ca3938900651b50982590bf89fd
[ "MIT" ]
null
null
null
setup.py
amit-15/wafer_main
183f7d0ed87f4ca3938900651b50982590bf89fd
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='its a wafer project using mlops', author='amit15', license='MIT', )
21.1
50
0.663507
82723c311d3d4df1c03c90856191a41298116377
3,491
py
Python
basenji/stream.py
shtoneyan/basenji
b220dc72069c3d8c250f36cb09799b337daac2fe
[ "Apache-2.0" ]
null
null
null
basenji/stream.py
shtoneyan/basenji
b220dc72069c3d8c250f36cb09799b337daac2fe
[ "Apache-2.0" ]
null
null
null
basenji/stream.py
shtoneyan/basenji
b220dc72069c3d8c250f36cb09799b337daac2fe
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Calico 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 # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
31.45045
81
0.690347
7e60baebf2c5b357432324787fe855aad03450a3
25,502
py
Python
robustness_metrics/common/ops.py
goncaloperes/robustness_metrics
5ee77294432e1265e432b6e84e06e2a5ae2af387
[ "Apache-2.0" ]
383
2020-09-04T08:25:16.000Z
2022-03-25T17:39:19.000Z
robustness_metrics/common/ops.py
goncaloperes/robustness_metrics
5ee77294432e1265e432b6e84e06e2a5ae2af387
[ "Apache-2.0" ]
8
2020-12-09T16:44:10.000Z
2022-02-01T10:08:24.000Z
robustness_metrics/common/ops.py
goncaloperes/robustness_metrics
5ee77294432e1265e432b6e84e06e2a5ae2af387
[ "Apache-2.0" ]
23
2020-12-07T22:53:31.000Z
2022-02-21T03:49:46.000Z
# coding=utf-8 # Copyright 2021 The Robustness Metrics 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 appli...
32.199495
80
0.679437
4393c5abed9947e11b7dd3306f6139678210c99a
1,207
py
Python
Django/View/custom_module/module_naver_API.py
navill/TIL
7656c4fa5cbe271985088d16c91767b6243b4843
[ "MIT" ]
null
null
null
Django/View/custom_module/module_naver_API.py
navill/TIL
7656c4fa5cbe271985088d16c91767b6243b4843
[ "MIT" ]
null
null
null
Django/View/custom_module/module_naver_API.py
navill/TIL
7656c4fa5cbe271985088d16c91767b6243b4843
[ "MIT" ]
null
null
null
import requests """ geo_coding(<str>address) -><json>coordinates: longitude, latitude : 정확한 주소값을 입력할 경우 해당하는 좌표를 반환하는 함수 - naver api road_address(<str>address) -> <json>address: 지번주소, 도로명주소 : 일부 주소를 이용해 상세한 지번 주소와 도로명 주소를 출력 - road address api """ def geo_coding(address): # naver geocoding API - setting nave...
33.527778
128
0.651201
8088ab2c3dff664cdc6e0790d88b2a713eca531c
218
py
Python
ddtrace/contrib/sqlite3/connection.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
5
2020-03-07T01:12:29.000Z
2021-04-21T00:53:19.000Z
ddtrace/contrib/sqlite3/connection.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
4
2019-11-22T20:58:01.000Z
2020-08-17T21:16:13.000Z
ddtrace/contrib/sqlite3/connection.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-03-18T16:29:20.000Z
2020-07-20T16:05:10.000Z
from sqlite3 import Connection from ...utils.deprecation import deprecated @deprecated(message='Use patching instead (see the docs).', version='1.0.0') def connection_factory(*args, **kwargs): return Connection
24.222222
76
0.756881
86cfaa482bb793e38cb44487b6f482a8abeeb045
2,619
py
Python
*_Lambda CS/Week 3 (Binary Trees)/531.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
*_Lambda CS/Week 3 (Binary Trees)/531.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
*_Lambda CS/Week 3 (Binary Trees)/531.py
andremichalowski/CSN1
97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b
[ "MIT" ]
null
null
null
1. PROPERTIES OF A BINARY TREE AND OF "PERFECT TREE": A. WHAT A BINARY TREE MIGHT LOOK LIKE: class BinaryTreeNode: def __init__(self, value): self.value = value self.left = None self.right = None B. NODES NUMBER?: - Equal to the the number of all previous nodes + 1 (??...
29.761364
104
0.588393
36cce59569885e03092fca79245e92aa06cf9d38
5,196
py
Python
sanity.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
sanity.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
sanity.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
from __future__ import print_function import sys class SanityException(Exception): def __init__(self, name, message): self.component_name = name super(Exception, self).__init__(message) def insane(name, message): raise SanityException(name, message) def module_check(name): try: ...
28.23913
106
0.601039
4790c303e902039cba9791b1a0ebf6febea1ff4d
161,092
py
Python
airflow/www/views.py
andrew-nascimento/airflow
a88115ea24a06f8706886a30e4f765aa4346ccc3
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-09-04T02:38:21.000Z
2021-09-04T02:38:21.000Z
airflow/www/views.py
andrew-nascimento/airflow
a88115ea24a06f8706886a30e4f765aa4346ccc3
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/www/views.py
andrew-nascimento/airflow
a88115ea24a06f8706886a30e4f765aa4346ccc3
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # 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...
35.280771
110
0.60304
42c12d3d7be513cb6d59d552b0a6f850c6aec7af
606
py
Python
mycal/attendance/migrations/0005_auto_20201112_2000.py
mjhow4/newattendanceapp
685173631fc7cf7e56923e27f47d405629633386
[ "MIT" ]
null
null
null
mycal/attendance/migrations/0005_auto_20201112_2000.py
mjhow4/newattendanceapp
685173631fc7cf7e56923e27f47d405629633386
[ "MIT" ]
null
null
null
mycal/attendance/migrations/0005_auto_20201112_2000.py
mjhow4/newattendanceapp
685173631fc7cf7e56923e27f47d405629633386
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-13 01:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0004_case_continuance_request'), ] operations = [ migrations.AlterField( model_name='case', name='cont...
25.25
74
0.59736
6c25b396e4b6a97fa4688bf32f76a4b937ca8842
4,122
py
Python
nova/tests/test_crypto.py
armaan/nova
22859fccb95502efcb73ecf2bd827c45c0886bd3
[ "Apache-2.0" ]
1
2021-11-08T10:11:44.000Z
2021-11-08T10:11:44.000Z
nova/tests/test_crypto.py
armaan/nova
22859fccb95502efcb73ecf2bd827c45c0886bd3
[ "Apache-2.0" ]
null
null
null
nova/tests/test_crypto.py
armaan/nova
22859fccb95502efcb73ecf2bd827c45c0886bd3
[ "Apache-2.0" ]
1
2020-05-10T16:36:03.000Z
2020-05-10T16:36:03.000Z
# Copyright 2011 OpenStack 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 required b...
31.227273
78
0.631004
c6a2c487cb2dcd48e3610137e0bf01f21cf00237
4,401
py
Python
rx/core/operators/merge.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
rx/core/operators/merge.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
rx/core/operators/merge.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
from typing import Callable, Optional import rx from rx import from_future from rx.core import Observable from rx.disposable import CompositeDisposable, SingleAssignmentDisposable from rx.internal.concurrency import synchronized from rx.internal.utils import is_future def _merge(*sources: Observable, max_...
34.928571
101
0.578732