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
b6d690e712f0a644fe121b59f8720b3b3e616285
3,489
py
Python
opml_feedy.py
admwrd/opml-feedy
370e9d8ee7d0071302962ac47151760d8f33ac69
[ "MIT" ]
null
null
null
opml_feedy.py
admwrd/opml-feedy
370e9d8ee7d0071302962ac47151760d8f33ac69
[ "MIT" ]
2
2021-09-01T02:28:05.000Z
2021-09-01T05:23:22.000Z
opml_feedy.py
admwrd/opml-feedy
370e9d8ee7d0071302962ac47151760d8f33ac69
[ "MIT" ]
null
null
null
import os import re import stat import sys # SCRIPT RELATED FEED_FILE_NAME = "feed.sh" SHELL_SHEBANG = "#!/bin/bash" FEED_DL_APP = "youtube-dl" # FEED FIELDS FEED_FIELD_TITLE = "title" FEED_FIELD_XML_URL = "xmlUrl" # IGNORED FIELDS FEED_FIELD_TEXT = "text" FEED_FIELD_TYPE = "type" FEED_FIELD_HTML_URL = "htmlUrl" cla...
30.876106
86
0.660075
67d5797baed8b25ca9976abc22ce845ac0b72a73
3,067
py
Python
sympy/calculus/tests/test_codomain.py
kumarkrishna/sympy
a91ba26c6d639980a4b3351a443548c629447cf9
[ "BSD-3-Clause" ]
null
null
null
sympy/calculus/tests/test_codomain.py
kumarkrishna/sympy
a91ba26c6d639980a4b3351a443548c629447cf9
[ "BSD-3-Clause" ]
null
null
null
sympy/calculus/tests/test_codomain.py
kumarkrishna/sympy
a91ba26c6d639980a4b3351a443548c629447cf9
[ "BSD-3-Clause" ]
null
null
null
from sympy import Symbol, S, oo from sympy.calculus.codomain import codomain from sympy.sets.sets import Interval, FiniteSet, Complement, Union def test_codomain(): x = Symbol('x', real=True) assert codomain(x, Interval(-1, 1), x) == Interval(-1, 1) assert codomain(x, Interval(0, 1, True, True), x) == \ ...
55.763636
91
0.574503
4b6e7b5af78d2a7d84c2b34b5fb12f57451aca09
7,069
py
Python
module/svm_ecg.py
ErwinPaniuraCondori/ECG_PCA_100
6fd02a9201967ba8b37e31fbc37203e4c13a2ecb
[ "MIT" ]
null
null
null
module/svm_ecg.py
ErwinPaniuraCondori/ECG_PCA_100
6fd02a9201967ba8b37e31fbc37203e4c13a2ecb
[ "MIT" ]
null
null
null
module/svm_ecg.py
ErwinPaniuraCondori/ECG_PCA_100
6fd02a9201967ba8b37e31fbc37203e4c13a2ecb
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os, sys # sys.path.append("..") import pywt import pywt.data import numpy as np import matplotlib.pyplot as plt import pandas as pd from scipy import signal import peakutils from sklearn.decomposition im...
44.740506
169
0.575046
abb3bed1faa57164a02cdc8ddc26def7166a6132
1,548
py
Python
setup.py
akuzminsky/twindb-mysql-backup
35755f18efb372dd05f856ca4732fba796de2549
[ "Apache-2.0" ]
null
null
null
setup.py
akuzminsky/twindb-mysql-backup
35755f18efb372dd05f856ca4732fba796de2549
[ "Apache-2.0" ]
null
null
null
setup.py
akuzminsky/twindb-mysql-backup
35755f18efb372dd05f856ca4732fba796de2549
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages del os.link with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() with open('requirements.txt') as f: requirements = f...
29.207547
61
0.640181
1032f0fbed66b5f6986e2d19c852eb31bd998e4f
3,156
py
Python
tasks/workflow-failed/task.py
quetcodesfire/cirrus
198757360d195f39d532cdca4e3ab9452af53e12
[ "Apache-2.0" ]
14
2020-10-01T16:20:01.000Z
2022-01-04T09:54:43.000Z
tasks/workflow-failed/task.py
quetcodesfire/cirrus
198757360d195f39d532cdca4e3ab9452af53e12
[ "Apache-2.0" ]
27
2020-10-07T18:38:15.000Z
2022-03-21T12:19:33.000Z
tasks/workflow-failed/task.py
quetcodesfire/cirrus
198757360d195f39d532cdca4e3ab9452af53e12
[ "Apache-2.0" ]
1
2021-01-21T08:55:30.000Z
2021-01-21T08:55:30.000Z
import boto3 import json from os import getenv from cirruslib import Catalog, StateDB, get_task_logger # envvars FAILED_TOPIC_ARN = getenv('CIRRUS_FAILED_TOPIC_ARN', None) # boto3 clients SNS_CLIENT = boto3.client('sns') LOG_CLIENT = boto3.client('logs') # Cirrus state database statedb = StateDB() def get_error_f...
32.204082
108
0.567174
b0a3447f09e3a58ee9f878c087bb2e3953278b74
1,845
py
Python
src/python/dart/service/mutex.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
18
2016-03-03T19:10:21.000Z
2021-07-14T22:37:35.000Z
src/python/dart/service/mutex.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
62
2016-04-11T15:17:23.000Z
2017-09-08T17:18:53.000Z
src/python/dart/service/mutex.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
15
2016-03-03T15:38:34.000Z
2019-03-27T19:33:08.000Z
from datetime import datetime, timedelta from functools import wraps from retrying import retry from sqlalchemy.orm.exc import StaleDataError, NoResultFound from dart.context.database import db from dart.model.exception import DartLockTimeoutException from dart.model.mutex import MutexState from dart.model.orm import...
29.758065
116
0.675339
e238275669b605b659a45e489b4c817bc3d89e23
3,139
py
Python
tests/pdk/finfet/test_canvas.py
kkunal1408/ALIGN-public
51ab942d393f19346bc179b991d42b4e35285e08
[ "BSD-3-Clause" ]
119
2019-05-14T18:44:34.000Z
2022-03-17T01:01:02.000Z
tests/pdk/finfet/test_canvas.py
kkunal1408/ALIGN-public
51ab942d393f19346bc179b991d42b4e35285e08
[ "BSD-3-Clause" ]
717
2019-04-03T15:36:35.000Z
2022-03-31T21:56:47.000Z
tests/pdk/finfet/test_canvas.py
kkunal1408/ALIGN-public
51ab942d393f19346bc179b991d42b4e35285e08
[ "BSD-3-Clause" ]
34
2019-04-01T21:21:27.000Z
2022-03-21T09:46:57.000Z
import pathlib from align.pdk.finfet import CanvasPDK from align.primitive.default import DefaultCanvas from align.cell_fabric import Pdk import align.pdk.finfet try: from .utils import compare_with_golden, export_to_viewer except BaseException: from utils import compare_with_golden, export_to_viewer layers_j...
29.895238
130
0.548582
b11ec49a0b869e1a2e64a8bb388b6b24ed3bf9f2
36
py
Python
skbonus/preprocessing/__init__.py
Garve/scikit-bonus
46c985c6f2c0b371b031977592b23cf0e28c46e3
[ "BSD-3-Clause" ]
8
2021-02-04T13:54:43.000Z
2021-12-26T16:50:31.000Z
skbonus/preprocessing/__init__.py
JoshuaC3/scikit-bonus
3300427e7ada4c03937b4714dd1bc3033d1c1fff
[ "BSD-3-Clause" ]
3
2021-03-01T15:27:21.000Z
2021-07-31T16:14:27.000Z
skbonus/preprocessing/__init__.py
JoshuaC3/scikit-bonus
3300427e7ada4c03937b4714dd1bc3033d1c1fff
[ "BSD-3-Clause" ]
2
2021-02-13T20:16:48.000Z
2021-04-07T07:29:06.000Z
"""Module for preprocessing data."""
36
36
0.722222
2801aa32379465d44f21e9c5ad2d1ddfe2030db1
907
py
Python
4 - manipulating dataframes with pandas/Extracting and transforming data/using apply to transform a column.py
Baidaly/datacamp-samples
09b3e253ec2c503df936298fedc3902413c987b0
[ "MIT" ]
null
null
null
4 - manipulating dataframes with pandas/Extracting and transforming data/using apply to transform a column.py
Baidaly/datacamp-samples
09b3e253ec2c503df936298fedc3902413c987b0
[ "MIT" ]
null
null
null
4 - manipulating dataframes with pandas/Extracting and transforming data/using apply to transform a column.py
Baidaly/datacamp-samples
09b3e253ec2c503df936298fedc3902413c987b0
[ "MIT" ]
null
null
null
''' The .apply() method can be used on a pandas DataFrame to apply an arbitrary Python function to every element. In this exercise you'll take daily weather data in Pittsburgh in 2013 obtained from Weather Underground. A function to convert degrees Fahrenheit to degrees Celsius has been written for you. Your job is to...
47.736842
234
0.76957
6b0c410201ae3f36a892561a32a9cf5f7049b7a1
319
py
Python
setup.py
billdback/stringer
ec3ffae01f0a9419a150739968206cbc4ef99763
[ "MIT" ]
null
null
null
setup.py
billdback/stringer
ec3ffae01f0a9419a150739968206cbc4ef99763
[ "MIT" ]
null
null
null
setup.py
billdback/stringer
ec3ffae01f0a9419a150739968206cbc4ef99763
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='stringer', version='0.1', description='This package is a test package for structuring packages.', author='William D Back', author_email='billback@mac.com', license='MIT', packages=find_packages(), zip_safe=False )
26.583333
77
0.658307
669d83572df64600408808c7657a1e4e07da1232
5,018
py
Python
hodl_cli/cli.py
landakram/hodl
522a25abc8c4b76fa639feebc667aa8495df6847
[ "MIT" ]
13
2017-06-22T20:06:20.000Z
2019-02-17T09:40:36.000Z
hodl_cli/cli.py
landakram/hodl
522a25abc8c4b76fa639feebc667aa8495df6847
[ "MIT" ]
1
2018-01-15T15:19:39.000Z
2018-02-06T07:01:10.000Z
hodl_cli/cli.py
landakram/hodl
522a25abc8c4b76fa639feebc667aa8495df6847
[ "MIT" ]
5
2017-06-22T20:20:45.000Z
2018-06-27T05:44:35.000Z
import datetime import os from decimal import Decimal import click import cbpro from hodl_cli.app import HodlApp @click.command(context_settings=dict(help_option_names=['-h', '--help'])) @click.option( '--deposit-account', '-n', default='', help='Name string used to filter multiple bank accounts. I...
33.231788
331
0.676963
be3da8daf9e6f43294624336bb11951112f31504
1,597
py
Python
homeassistant/components/axis/diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/axis/diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/axis/diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Diagnostics support for Axis.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_MAC, CONF_PASSWORD, CONF_UNIQUE_ID, CONF_USERNAME from homeassistan...
34.717391
88
0.715091
b553d55bdb22c0223a79e831e308a63fb49c84d9
2,644
py
Python
QMO/models.py
IBM/QMO
42c65a1b0449e3b403f704c271d47f62c5fd7c77
[ "Apache-2.0" ]
9
2021-12-30T22:30:38.000Z
2022-03-14T17:20:05.000Z
QMO/models.py
IBM/QMO
42c65a1b0449e3b403f704c271d47f62c5fd7c77
[ "Apache-2.0" ]
null
null
null
QMO/models.py
IBM/QMO
42c65a1b0449e3b403f704c271d47f62c5fd7c77
[ "Apache-2.0" ]
2
2022-02-13T23:43:26.000Z
2022-03-04T08:49:14.000Z
from abc import ABC, abstractmethod import os.path as osp from cddd.inference import InferenceModel import numpy as np from rdkit import Chem import torch class Model(ABC): """Basic encoder-decoder model abstract base class. Attributes: decode_failure_count (float): Running tally of invalid decoded s...
30.390805
79
0.568079
5b403a86bad814d01f3efdc48c04d9086ceb7b05
27,418
py
Python
tests/contrib/operators/test_dataproc_operator.py
jacky-nirvana/incubator-airflow
2318cea74d4f71fba353eaca9bb3c4fd3cdb06c0
[ "Apache-2.0" ]
1
2019-05-16T02:21:21.000Z
2019-05-16T02:21:21.000Z
tests/contrib/operators/test_dataproc_operator.py
jacky-nirvana/incubator-airflow
2318cea74d4f71fba353eaca9bb3c4fd3cdb06c0
[ "Apache-2.0" ]
1
2018-07-08T10:39:07.000Z
2018-07-08T10:39:07.000Z
tests/contrib/operators/test_dataproc_operator.py
jacky-nirvana/incubator-airflow
2318cea74d4f71fba353eaca9bb3c4fd3cdb06c0
[ "Apache-2.0" ]
1
2021-02-02T02:45:25.000Z
2021-02-02T02:45:25.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
40.922388
103
0.611678
57a3f2fc902bcca50043167033448d6eeb3df5fb
3,630
py
Python
server_proto/signalserver.py
oboforty/ricochat
f54883a303737d50af369ebfdf8641d5c0af110e
[ "MIT" ]
null
null
null
server_proto/signalserver.py
oboforty/ricochat
f54883a303737d50af369ebfdf8641d5c0af110e
[ "MIT" ]
null
null
null
server_proto/signalserver.py
oboforty/ricochat
f54883a303737d50af369ebfdf8641d5c0af110e
[ "MIT" ]
null
null
null
import secrets import socketserver import threading ENCODING = 'ascii' class SignalingServer(socketserver.ThreadingTCPServer): allow_reuse_address = True max_packet_size = 2048 def __init__(self, bundle, server_address): self.bundle = bundle # uid -> addr, socket self.connections...
31.842105
108
0.555372
dd82ae4ee5e55eb8242f76d2f34d1cc1aa2c3888
702
py
Python
cli_bdd/core/steps/base.py
fionn/cli-bdd
77852405c571324efca5f7483cd31e94d00a5985
[ "MIT" ]
null
null
null
cli_bdd/core/steps/base.py
fionn/cli-bdd
77852405c571324efca5f7483cd31e94d00a5985
[ "MIT" ]
null
null
null
cli_bdd/core/steps/base.py
fionn/cli-bdd
77852405c571324efca5f7483cd31e94d00a5985
[ "MIT" ]
null
null
null
class StepBase: type_ = None # given, when, then sentence = None func_name = None def build_step_func(self): raise NotImplementedError() def get_table(self): raise NotImplementedError() def get_text(self): raise NotImplementedError() def get_scenario_context(se...
21.9375
67
0.615385
86cb0779fb98e539ef8e3922b9a111662ad42805
583
py
Python
Euler6.py
Kykyp3/ProjectEuler-Task6
db11b88125905826b9efc9c0bc109f0a9f06e88a
[ "Unlicense" ]
null
null
null
Euler6.py
Kykyp3/ProjectEuler-Task6
db11b88125905826b9efc9c0bc109f0a9f06e88a
[ "Unlicense" ]
null
null
null
Euler6.py
Kykyp3/ProjectEuler-Task6
db11b88125905826b9efc9c0bc109f0a9f06e88a
[ "Unlicense" ]
null
null
null
# Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. sum_squares = 0 squares_sum = 0 sum = 0 for i in range(1,101,1): sum_squares += i**2 print(sum_squares) for i in range(1,101,1): sum += i print("Число i:{}".format(i)) p...
29.15
121
0.658662
486c000dc5ab6506c3623743e824ba983f6d8fcd
125,678
py
Python
ocs_ci/helpers/helpers.py
ramkiperiy/ocs-ci
128f408a9b6efe211cb2f51e742392de12807a3b
[ "MIT" ]
null
null
null
ocs_ci/helpers/helpers.py
ramkiperiy/ocs-ci
128f408a9b6efe211cb2f51e742392de12807a3b
[ "MIT" ]
null
null
null
ocs_ci/helpers/helpers.py
ramkiperiy/ocs-ci
128f408a9b6efe211cb2f51e742392de12807a3b
[ "MIT" ]
null
null
null
""" Helper functions file for OCS QE """ import base64 import random import datetime import hashlib import json import logging import os import re import statistics import tempfile import threading import time import inspect from concurrent.futures import ThreadPoolExecutor from itertools import cycle from subprocess i...
33.45169
119
0.645865
d70f247e2daef85ca5e7359a40515b1e302cde7b
7,546
py
Python
routines/Python/bigdiff.py
martinberoiz/DIA
2d73dba5ebdfb70d16a65d7b28ed7e2e1ffbc04e
[ "MIT" ]
17
2017-11-13T18:34:02.000Z
2022-01-04T03:09:31.000Z
routines/Python/bigdiff.py
martinberoiz/DIA
2d73dba5ebdfb70d16a65d7b28ed7e2e1ffbc04e
[ "MIT" ]
3
2018-04-17T14:50:28.000Z
2019-02-14T22:08:17.000Z
routines/Python/bigdiff.py
martinberoiz/DIA
2d73dba5ebdfb70d16a65d7b28ed7e2e1ffbc04e
[ "MIT" ]
8
2018-04-17T16:08:19.000Z
2020-09-03T22:13:21.000Z
#this program will run the difference image analysis #if you use this code, please cite Oelkers et al. 2015, AJ, 149, 50, Alard & Lupton 1998, Alard et al. 2000, Miller et al. 2008 and Oelkers & Stassun 2018 #import the relevant libraries for basic tools import numpy import scipy from scipy import stats import scipy...
35.59434
155
0.680493
73ba138827da6fb4494616786017edc6546d09f1
540
py
Python
hydralit/loading_app.py
peter-ealu/hydralit
a5d091dd2c9492846e0ff928277352ab61070d10
[ "Apache-2.0" ]
1
2021-10-09T10:25:42.000Z
2021-10-09T10:25:42.000Z
hydralit/loading_app.py
nzagaspard/hydralit
a5d091dd2c9492846e0ff928277352ab61070d10
[ "Apache-2.0" ]
null
null
null
hydralit/loading_app.py
nzagaspard/hydralit
a5d091dd2c9492846e0ff928277352ab61070d10
[ "Apache-2.0" ]
null
null
null
import streamlit as st from hydralit.app_template import HydraHeadApp class LoadingApp(HydraHeadApp): def run(self,app_target): try: with st.spinner("🔨 now beating your request into submission...."): app_target.run() except Exception as e: st.image...
30
128
0.633333
8a05ef6695bfda478c4ff8317ef8602ff2f6352a
2,948
py
Python
optuna/testing/sampler.py
xuzijian629/optuna
cf03adeedc59013661e13fd8ed3763a7ac00ae8d
[ "MIT" ]
1
2020-07-28T10:13:27.000Z
2020-07-28T10:13:27.000Z
optuna/testing/sampler.py
belldandyxtq/optuna
3bb255136b5606fff1e01a0bd4dda1e85c7c21ed
[ "MIT" ]
1
2020-07-14T01:48:01.000Z
2020-07-14T01:53:39.000Z
optuna/testing/sampler.py
belldandyxtq/optuna
3bb255136b5606fff1e01a0bd4dda1e85c7c21ed
[ "MIT" ]
null
null
null
from typing import Any from typing import Dict import optuna from optuna import distributions from optuna.distributions import BaseDistribution class DeterministicRelativeSampler(optuna.samplers.BaseSampler): def __init__( self, relative_search_space: Dict[str, BaseDistribution], relative_params: Dict[st...
34.682353
99
0.692334
6a4299ad6b2ccff6d24c4bcdcbd1b5fa869a4369
3,956
py
Python
test/tornado_tests/test_motor_son_manipulator.py
arthurdarcet/motor
13bc0d548ec3d0c70a585647c70d3223451ab0f8
[ "Apache-2.0" ]
1
2018-01-12T10:06:43.000Z
2018-01-12T10:06:43.000Z
test/tornado_tests/test_motor_son_manipulator.py
arthurdarcet/motor
13bc0d548ec3d0c70a585647c70d3223451ab0f8
[ "Apache-2.0" ]
null
null
null
test/tornado_tests/test_motor_son_manipulator.py
arthurdarcet/motor
13bc0d548ec3d0c70a585647c70d3223451ab0f8
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2015 MongoDB, 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 writin...
33.811966
78
0.654702
630b6622866dd532332480dcc54c2678158e46e0
914
py
Python
lorawan/tests.py
BFH-E1D-2015-2016/iotdemo
3440517401b8ef45cc1d3fa8c455671e743d706b
[ "MIT" ]
null
null
null
lorawan/tests.py
BFH-E1D-2015-2016/iotdemo
3440517401b8ef45cc1d3fa8c455671e743d706b
[ "MIT" ]
1
2019-11-06T08:24:26.000Z
2019-11-06T08:24:26.000Z
lorawan/tests.py
BFH-E1D-2015-2016/iotdemo
3440517401b8ef45cc1d3fa8c455671e743d706b
[ "MIT" ]
1
2019-03-27T14:48:36.000Z
2019-03-27T14:48:36.000Z
from django.test import TestCase from lorawan.models import Device def populate_db_with_devices(names): status = ["OK", "WARNING", "ERROR"] for counter, name in enumerate(names): device = Device() device.DevEUI = "{:016X}".format(counter) device.name = name device.status = st...
28.5625
70
0.643326
2e9359c9341ae59b66c7e74b2a5083ca5ba257a5
23,334
py
Python
lingcod/common/utils.py
google-code-export/marinemap
b7d58db11720637845b6a83bf70435c32c5af531
[ "BSD-3-Clause" ]
3
2017-06-09T20:44:58.000Z
2017-12-26T12:09:21.000Z
lingcod/common/utils.py
underbluewaters/marinemap
c001e16615caa2178c65ca0684e1b6fd56d3f93d
[ "BSD-3-Clause" ]
null
null
null
lingcod/common/utils.py
underbluewaters/marinemap
c001e16615caa2178c65ca0684e1b6fd56d3f93d
[ "BSD-3-Clause" ]
3
2016-11-30T13:41:56.000Z
2019-05-07T17:07:12.000Z
import os from django.contrib.gis.geos import Point, LinearRing, fromstr from math import pi, sin, tan, sqrt, pow from django.conf import settings from django.db import connection from django.core.cache import cache from lingcod.common.models import KmlCache import zipfile import re import logging import insp...
37.3344
301
0.617639
ad2fab8780f1b28dafaebf5ccd6b59b801ae23b5
393
py
Python
Introduction/class.py
Desting96/Python
9086219d5a4110cfaa6ceb176061e225fb102e9b
[ "MIT" ]
null
null
null
Introduction/class.py
Desting96/Python
9086219d5a4110cfaa6ceb176061e225fb102e9b
[ "MIT" ]
null
null
null
Introduction/class.py
Desting96/Python
9086219d5a4110cfaa6ceb176061e225fb102e9b
[ "MIT" ]
null
null
null
class Cars: color = "" brand = "" year = 0 countrycar = "" def __init__(self, color, brand, year, countrycar): self.color = color self.brand = brand self.year = year self.countrycar = countrycar class Person(Cars): name = "" years = 0 country = "" pers...
18.714286
55
0.569975
383704319ad8aa140ceaf8dcccaebbea5ad0c7f1
19,607
py
Python
tests/runtests.py
Aryamanz29/docker-openwisp
a440bce4c4a691efa4fa539a78e135096d45c558
[ "BSD-3-Clause" ]
null
null
null
tests/runtests.py
Aryamanz29/docker-openwisp
a440bce4c4a691efa4fa539a78e135096d45c558
[ "BSD-3-Clause" ]
null
null
null
tests/runtests.py
Aryamanz29/docker-openwisp
a440bce4c4a691efa4fa539a78e135096d45c558
[ "BSD-3-Clause" ]
null
null
null
import os import subprocess import time import unittest from urllib import error as urlerror from urllib import request from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.chrome.options import Options as ChromiumOptions from selenium.webdriver.common.by...
44.15991
111
0.622941
8818b7036b6e9e2c3daef53065909115449e78a4
1,812
py
Python
src/test.py
snaka0213/python-GPT
6c1d145276ddb94b17021de6cc1844d026276802
[ "MIT" ]
null
null
null
src/test.py
snaka0213/python-GPT
6c1d145276ddb94b17021de6cc1844d026276802
[ "MIT" ]
null
null
null
src/test.py
snaka0213/python-GPT
6c1d145276ddb94b17021de6cc1844d026276802
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import numpy as np from multiprocessing import Pool import settings from scripts.train import Train from scripts.predict import Predict from scripts.validate import Validate from scripts.file_reader import FileReader from scripts.inverted_index import InvertedIndex from scri...
29.225806
90
0.653422
31666351abcd5b6a47b13289dac02234e9820110
6,219
py
Python
nets/bn_ops.py
illidanlab/SplitMix
4297aa01a90101792bfb482fd96a61f51766d97a
[ "MIT" ]
7
2022-03-15T23:27:57.000Z
2022-03-30T06:15:45.000Z
nets/bn_ops.py
illidanlab/SplitMix
4297aa01a90101792bfb482fd96a61f51766d97a
[ "MIT" ]
null
null
null
nets/bn_ops.py
illidanlab/SplitMix
4297aa01a90101792bfb482fd96a61f51766d97a
[ "MIT" ]
1
2022-03-22T11:28:36.000Z
2022-03-22T11:28:36.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as func from torch.nn.modules.batchnorm import _NormBase from .dual_bn import DualNormLayer # BN modules class _MockBatchNorm(_NormBase): def __init__(self, num_features, eps=1e-5, momentum=0.1, affine=True, track_r...
42.59589
123
0.587554
26c3452f3fd4f098557f3aa188f81890bc972060
3,137
py
Python
examples/reaction_roles.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
examples/reaction_roles.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
examples/reaction_roles.py
AryamanSrii/PyDiscord
3366d20e2725672ae7e6b29335119cac1aee76f9
[ "MIT" ]
null
null
null
# This example requires the 'members' privileged intents import pydiscord class MyClient(pydiscord.Client): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.role_message_id = 0 # ID of the message that can be reacted to to add/remove a role. self.emoji_to_role ...
35.647727
113
0.613962
e5c1d515d5bc20c1c7c628275ad21244298ddf93
8,655
py
Python
e2e/export/export_runs.py
msleprosy/cloud-pipeline
bccc2b196fad982380efc37a1c3785098bec6c85
[ "Apache-2.0" ]
126
2019-03-22T19:40:38.000Z
2022-02-16T13:01:44.000Z
e2e/export/export_runs.py
msleprosy/cloud-pipeline
bccc2b196fad982380efc37a1c3785098bec6c85
[ "Apache-2.0" ]
1,189
2019-03-25T10:39:27.000Z
2022-03-31T12:50:33.000Z
e2e/export/export_runs.py
msleprosy/cloud-pipeline
bccc2b196fad982380efc37a1c3785098bec6c85
[ "Apache-2.0" ]
62
2019-03-22T22:09:49.000Z
2022-03-08T12:05:56.000Z
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # 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...
46.037234
168
0.517851
e088cd192926a5a7282270a1d17dfb7da15a2811
1,315
py
Python
chainerrl/env.py
belldandyxtq/chainerrl
28ceaf5485177f3d7b9d6874c224f4d23508c6da
[ "MIT" ]
2
2020-05-20T06:15:20.000Z
2020-05-20T06:15:27.000Z
chainerrl/env.py
WhenTheyCry96/chainerrl
0f32aae2855dbb6288ae628be6271739ced6c42c
[ "MIT" ]
null
null
null
chainerrl/env.py
WhenTheyCry96/chainerrl
0f32aae2855dbb6288ae628be6271739ced6c42c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from future import standard_library from future.utils import with_metaclass standard_library.install_aliases() # NOQA from abc import ABCMeta from abc import abstractmet...
23.482143
75
0.691255
5b93815b257fc1863dff282b3a823b17f3c53536
518
py
Python
phabricator/setup.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
phabricator/setup.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
phabricator/setup.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT from setuptools import setup, find_packages setup(name='phabricator-rapid7-plugin', version='1.0.0', description='Phabricator is a suite of open source tools for peer code review, task management, and project communication', author='rapid7', author_email...
34.533333
129
0.689189
0550c50649e64c28708b2958ec801b32f2dba941
1,456
py
Python
aliyun-python-sdk-aliyuncvc/aliyunsdkaliyuncvc/request/v20191030/ListMembersRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-aliyuncvc/aliyunsdkaliyuncvc/request/v20191030/ListMembersRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-aliyuncvc/aliyunsdkaliyuncvc/request/v20191030/ListMembersRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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...
38.315789
82
0.770604
3ca6375d1a90ae2583fe72cc6bfb53e93b1cfc4b
769
gyp
Python
node_modules/pigpio/binding.gyp
esjx/homebridge-esjx
ef8ec37b2644105b76b1421ff96511e290d0cb70
[ "Apache-2.0" ]
882
2015-11-01T20:10:19.000Z
2022-03-31T03:10:30.000Z
node_modules/pigpio/binding.gyp
esjx/homebridge-esjx
ef8ec37b2644105b76b1421ff96511e290d0cb70
[ "Apache-2.0" ]
134
2015-11-17T03:14:55.000Z
2021-12-07T22:06:35.000Z
node_modules/pigpio/binding.gyp
esjx/homebridge-esjx
ef8ec37b2644105b76b1421ff96511e290d0cb70
[ "Apache-2.0" ]
107
2016-08-22T20:23:53.000Z
2022-02-21T08:43:16.000Z
{ "targets": [{ "target_name": "pigpio", "conditions": [[ 'OS == "linux"', { "conditions": [[ '"<!((which pigpiod 2>/dev/null) || echo not_found)" != "not_found"', { "include_dirs" : [ "<!(node -e \"require('nan')\")" ], "sources": [ ...
22.617647
81
0.302991
7dbca3d4d8a234b4efbb3bb8c931960d1b5ad155
1,921
py
Python
hargreaves/utils/har2md.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
hargreaves/utils/har2md.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
hargreaves/utils/har2md.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
import argparse import logging from pathlib import Path from requests_tracker.renderers import HAR2MarkdownRenderer """ Use this script to convert a browser pre-recorded HAR log file into a MD (markdown) file when analysing a certain customer journey. More details here: https://github.com/eladeon/requests-tracker-pyt...
32.016667
116
0.674649
f74b2331ae6f54a214f05ad65cf9982eab7c2c8c
397
py
Python
tests/internal/network_performance/test_network_performance_high_auto.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
tests/internal/network_performance/test_network_performance_high_auto.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
tests/internal/network_performance/test_network_performance_high_auto.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
1
2021-12-15T11:58:22.000Z
2021-12-15T11:58:22.000Z
# Testing module network_performance.high import pytest import ec2_compare.internal.network_performance.high def test_get_internal_data_network_performance_high_get_instances_list(): assert len(ec2_compare.internal.network_performance.high.get_instances_list()) > 0 def test_get_internal_data_network_performance_hig...
39.7
84
0.866499
4d89d7c873d1858fd823477a5419f4f94df720bc
2,644
py
Python
quentem_mechenex/routine.py
VHchavez/HF_and_MP2
e4377afa9b5b08582732ed6075649bc52c4c998c
[ "BSD-3-Clause" ]
null
null
null
quentem_mechenex/routine.py
VHchavez/HF_and_MP2
e4377afa9b5b08582732ed6075649bc52c4c998c
[ "BSD-3-Clause" ]
null
null
null
quentem_mechenex/routine.py
VHchavez/HF_and_MP2
e4377afa9b5b08582732ed6075649bc52c4c998c
[ "BSD-3-Clause" ]
null
null
null
""" routine.py HF and MP2 in python, with optimized Fock build in C++ wrapped with PYBIND11 Handles the primary functions """ import numpy as np import quentem_mechenex.mp2 as mp2 import quentem_mechenex.mp2_no_hf as mp2_no_hf import quentem_mechenex.hartree_fock as hf import quentem_mechenex.noble_gas_model as noble_...
41.968254
129
0.754539
d75f9146dd69b5b82cdeb70befbf1e52fe006073
20,741
py
Python
jenkins_jobs/modules/properties.py
maxandersen/jenkins-job-builder
a3aef64855f68c0b23af8061d8a43d0f98a95f5a
[ "Apache-2.0" ]
null
null
null
jenkins_jobs/modules/properties.py
maxandersen/jenkins-job-builder
a3aef64855f68c0b23af8061d8a43d0f98a95f5a
[ "Apache-2.0" ]
null
null
null
jenkins_jobs/modules/properties.py
maxandersen/jenkins-job-builder
a3aef64855f68c0b23af8061d8a43d0f98a95f5a
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Hewlett-Packard Development Company, L.P. # # 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...
35.035473
79
0.636469
a437e96992c61015e98640427c2368f5dfda6699
2,848
py
Python
src/main/resources/selenium/RemoteScriptRetriever.py
peterlcole/xlr-selenium-plugin
67e95bdf9ff10c098902be7ae68e8b4ce43f49b3
[ "MIT" ]
null
null
null
src/main/resources/selenium/RemoteScriptRetriever.py
peterlcole/xlr-selenium-plugin
67e95bdf9ff10c098902be7ae68e8b4ce43f49b3
[ "MIT" ]
null
null
null
src/main/resources/selenium/RemoteScriptRetriever.py
peterlcole/xlr-selenium-plugin
67e95bdf9ff10c098902be7ae68e8b4ce43f49b3
[ "MIT" ]
null
null
null
# # Copyright 2019 XEBIALABS # # 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, distribute, subli...
50.857143
462
0.685744
d2e097c7b8db841f8f5b564a51935763b4bf9f5d
1,921
py
Python
models/model_factory.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
null
null
null
models/model_factory.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
null
null
null
models/model_factory.py
icicle4/TranSTAM
3dfda76cc507b3a3a4b25fbecab7df65fd8cab4d
[ "Apache-2.0" ]
null
null
null
import torch from models import TranSTAM, TranSTAMCal from models.loss import SetCriterion, PosNegBalanceListCriterion def build_model(args): criterion = SetCriterion() if args.model == "tran_stam": model = TranSTAM.PEMOT( history_window_size=args.track_history_len, trac...
39.204082
88
0.661114
6c54b16c1f95d3696833e6019ebebafd1e895b39
478
py
Python
src/sage/misc/attached_files.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/misc/attached_files.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/misc/attached_files.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T12:20:37.000Z
2020-07-24T12:20:37.000Z
""" Deprecated attach module TESTS:: sage: import sage.misc.attached_files sage: sage.misc.attached_files.load_attach_mode() doctest:...: DeprecationWarning: Importing load_attach_mode from here is deprecated. If you need to use it, please import it directly from sage.repl.attach See http://trac....
28.117647
126
0.740586
f4e13f6d2b1101cdb6d2e1d3d7c4ac249e279d59
18,247
py
Python
pipelines/lcov_to_cobertura/lcov_cobertura.py
ryanbodrug/coaches_board
c9757678aaf373482f36c538bdf93775941b3c21
[ "MIT" ]
null
null
null
pipelines/lcov_to_cobertura/lcov_cobertura.py
ryanbodrug/coaches_board
c9757678aaf373482f36c538bdf93775941b3c21
[ "MIT" ]
null
null
null
pipelines/lcov_to_cobertura/lcov_cobertura.py
ryanbodrug/coaches_board
c9757678aaf373482f36c538bdf93775941b3c21
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2011-2022 Eric Wendelin # # This is free software, licensed under the Apache License, Version 2.0, # available in the accompanying LICENSE.txt file. """ Converts lcov line coverage output to Cobertura-compatible XML for CI """ import re import sys import os import time...
42.140878
108
0.534115
d5a3268d4a1cc306929c82f23f704906c07c2918
2,047
py
Python
test/test_summaries.py
CAVED123/Tensorforce
823177f77f9047b1e71eccfffc08315ed1636878
[ "Apache-2.0" ]
null
null
null
test/test_summaries.py
CAVED123/Tensorforce
823177f77f9047b1e71eccfffc08315ed1636878
[ "Apache-2.0" ]
null
null
null
test/test_summaries.py
CAVED123/Tensorforce
823177f77f9047b1e71eccfffc08315ed1636878
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Tensorforce Team. 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 la...
37.218182
91
0.672203
95116d734ac8d25c3b0b23266c8c7f3aedf727c0
1,272
py
Python
spirit/topic/admin/views.py
igorshevk/oknoname
0828504afb8fdae5f5e85040bec1d95cb27ce471
[ "MIT" ]
1
2022-01-09T19:53:55.000Z
2022-01-09T19:53:55.000Z
spirit/topic/admin/views.py
igorshevk/oknoname
0828504afb8fdae5f5e85040bec1d95cb27ce471
[ "MIT" ]
null
null
null
spirit/topic/admin/views.py
igorshevk/oknoname
0828504afb8fdae5f5e85040bec1d95cb27ce471
[ "MIT" ]
1
2022-02-15T16:56:49.000Z
2022-02-15T16:56:49.000Z
# -*- coding: utf-8 -*- from django.shortcuts import render from djconfig import config from ...core.utils.paginator import yt_paginate from ...core.utils.decorators import administrator_required from ..models import Topic from spirit.topic.models import Profile @administrator_required def _index(request, queryset...
25.959184
102
0.696541
07b782df6995b781421cb3829965f62ac63aad98
2,401
py
Python
Part_2_intermediate/mod_4/lesson_9/homework_1/shop/order.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_2_intermediate/mod_4/lesson_9/homework_1/shop/order.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_2_intermediate/mod_4/lesson_9/homework_1/shop/order.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
from shop.discount_policy import DiscountPolicy from shop.order_element import OrderElement class Order: MAX_ELEMENTS = 5 def __init__(self, client_first_name, client_last_name, order_elements=None, discount_policy=None): self.client_first_name = client_first_name self.client_last_name = clie...
34.3
112
0.668888
326b26cfd500bc5aa80029499bb48d00f427b056
28,778
py
Python
rpython/jit/metainterp/optimizeopt/unroll.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/jit/metainterp/optimizeopt/unroll.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/jit/metainterp/optimizeopt/unroll.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
null
null
null
import sys from rpython.jit.metainterp.history import TargetToken, JitCellToken, Const from rpython.jit.metainterp.inliner import Inliner from rpython.jit.metainterp.optimize import InvalidLoop from rpython.jit.metainterp.optimizeopt.generalize import KillHugeIntBounds from rpython.jit.metainterp.optimizeopt.optimizer...
43.537065
132
0.609945
de828144c5137f57add568115ff9a7993b0ab737
2,413
py
Python
using_API_to_check_if_ISS_is_above/main.py
M4rkopolo/API_SMTP_venv
b5a9f442d3125007844510338ffa6d00d060abaf
[ "MIT" ]
null
null
null
using_API_to_check_if_ISS_is_above/main.py
M4rkopolo/API_SMTP_venv
b5a9f442d3125007844510338ffa6d00d060abaf
[ "MIT" ]
null
null
null
using_API_to_check_if_ISS_is_above/main.py
M4rkopolo/API_SMTP_venv
b5a9f442d3125007844510338ffa6d00d060abaf
[ "MIT" ]
null
null
null
import requests from datetime import datetime import smtplib import time import os MY_LAT = 54.516842 # my latitude MY_LONG = 18.541941 # my longitude PASSWORD = os.environ.get("PASSWORD") EMAIL = os.environ.get("EMAIL") def is_iss_overhead(): response = requests.get(url="http://api.open-notify.org/iss-now.json"...
42.333333
164
0.573145
de1573535179739e7288fa35c87f040f5f579bbf
12,190
py
Python
tests/python/pants_test/tasks/test_execution_graph.py
AHassanSOS/pants
fe3d9834c0e2d78bb252604d6572ffd3b7ac5226
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/tasks/test_execution_graph.py
AHassanSOS/pants
fe3d9834c0e2d78bb252604d6572ffd3b7ac5226
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/tasks/test_execution_graph.py
AHassanSOS/pants
fe3d9834c0e2d78bb252604d6572ffd3b7ac5226
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import re import unittest from collections import defaultdict from pants.backend.jvm.tasks.jvm_compile.execution_graph import (ExecutionFailure, ExecutionGraph, ...
38.454259
99
0.592699
2a3bb6cba1dae2dfc6913f49f9acc511a1964201
5,828
py
Python
client_mining_p/blockchain.py
phil7j/Blockchain
e9e79813ed6aa1eb8de26c7f31a0d4bae48568f9
[ "MIT" ]
null
null
null
client_mining_p/blockchain.py
phil7j/Blockchain
e9e79813ed6aa1eb8de26c7f31a0d4bae48568f9
[ "MIT" ]
5
2019-12-05T02:28:47.000Z
2022-02-18T16:28:23.000Z
client_mining_p/blockchain.py
phil7j/Blockchain
e9e79813ed6aa1eb8de26c7f31a0d4bae48568f9
[ "MIT" ]
null
null
null
import hashlib import json from time import time from uuid import uuid4 from flask import Flask, jsonify, request class Blockchain(object): def __init__(self): self.chain = [] self.current_transactions = [] # Create the genesis block self.new_block(previous_hash='===============',...
36.886076
77
0.61582
1e2f32f7b4a30ee1a1a87c8135cd026bb67745d3
2,299
py
Python
infoblox_netmri/api/remote/models/vlan_network_explorer_summaries_summary_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/vlan_network_explorer_summaries_summary_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/vlan_network_explorer_summaries_summary_grid_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class VlanNetworkExplorerSummariesSummaryGridRemote(RemoteModel): """ | ``VlanID:`` none | ``attribute type:`` string | ``VlanMemberID:`` none | ``attribute type:`` string |...
21.091743
65
0.4689
a993ed4711a9bf8ec8271dba8566a2f714116eea
2,087
py
Python
didcomm/secrets/secrets_util.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
8
2021-09-04T19:28:18.000Z
2021-12-22T16:00:18.000Z
didcomm/secrets/secrets_util.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
4
2021-07-27T23:44:33.000Z
2021-10-13T13:29:39.000Z
didcomm/secrets/secrets_util.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
7
2021-07-22T08:19:13.000Z
2022-01-04T14:46:38.000Z
import json from typing import Dict, Tuple from authlib.common.encoding import json_dumps from authlib.jose import OKPKey from didcomm.common.types import ( VerificationMethodType, VerificationMaterial, VerificationMaterialFormat, ) from didcomm.errors import DIDCommValueError from didcomm.secrets.secrets...
30.246377
83
0.716818
5aeaebfcdaf1a811f840a7c9132b0e9e5cdde197
6,401
py
Python
src/ptlib/core/task.py
jfw225/ptlib
a78ef707ed09aa9c1f1b1157a20e3d9d3fb04c4d
[ "MIT" ]
1
2022-01-06T07:04:43.000Z
2022-01-06T07:04:43.000Z
src/ptlib/core/task.py
jfw225/ptlib
a78ef707ed09aa9c1f1b1157a20e3d9d3fb04c4d
[ "MIT" ]
null
null
null
src/ptlib/core/task.py
jfw225/ptlib
a78ef707ed09aa9c1f1b1157a20e3d9d3fb04c4d
[ "MIT" ]
null
null
null
from typing import Iterable import numpy as np from ptlib.core.job import Job, Job from ptlib.errors import WorkerCreationError, WorkerStartError from ptlib.core.queue import Queue from ptlib.core.worker import Worker class EmptyTask: def _kill_workers(): pass class Task: """ Template class for...
28.448889
100
0.569442
a590e5d4fd4ed91318e795833fd03683062dd712
7,625
py
Python
keras_retinanet/avaliarAP/csv_generator.py
EnzoSalvadori/keras-retinanet-install
524cd1529cb0793f2668d52873098596c447147c
[ "Apache-2.0" ]
null
null
null
keras_retinanet/avaliarAP/csv_generator.py
EnzoSalvadori/keras-retinanet-install
524cd1529cb0793f2668d52873098596c447147c
[ "Apache-2.0" ]
null
null
null
keras_retinanet/avaliarAP/csv_generator.py
EnzoSalvadori/keras-retinanet-install
524cd1529cb0793f2668d52873098596c447147c
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2018 yhenon (https://github.com/yhenon/) Copyright 2017-2018 Fizyr (https://fizyr.com) 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-...
33.738938
139
0.610754
77ea54078014d25543f71be1f7fb4afedb135dff
840
py
Python
psono/restapi/serializers/membership_decline.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
48
2018-04-19T15:50:58.000Z
2022-01-23T15:58:11.000Z
psono/restapi/serializers/membership_decline.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
9
2018-09-13T14:56:18.000Z
2020-01-17T16:44:33.000Z
psono/restapi/serializers/membership_decline.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
11
2019-09-20T11:53:47.000Z
2021-07-18T22:41:31.000Z
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers, exceptions from ..fields import UUIDField from ..models import User_Group_Membership class MembershipDeclineSerializer(serializers.Serializer): membership_id = UUIDField(required=True) def validate(self, attrs: ...
35
135
0.733333
b6d78426ab5beb97039670ae4e77cd67a64a53b2
2,272
py
Python
setup.py
clindatsci/dicomweb-python-client
db4db782532108188142cfbfd97b3937102fa2a0
[ "MIT" ]
30
2018-04-05T03:32:47.000Z
2019-10-24T13:49:20.000Z
setup.py
clindatsci/dicomweb-python-client
db4db782532108188142cfbfd97b3937102fa2a0
[ "MIT" ]
9
2018-09-04T10:04:06.000Z
2019-10-31T12:17:00.000Z
setup.py
herrmannlab/dicomweb-client
110fd75ac278718b4a80ad55518894218df7c5db
[ "MIT" ]
12
2018-08-23T23:52:42.000Z
2019-08-05T05:42:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import re import setuptools from pathlib import Path root_directory = Path(__file__).parent readme_filepath = root_directory.joinpath('README.md') long_description = readme_filepath.read_text() with io.open('src/dicomweb_client/__init__.py', 'rt', encoding='utf...
32.457143
76
0.602553
e7896066ab7ca21f03911c865c1a74b3e9d41c89
20,417
py
Python
sdk/python/pulumi_azure_native/datalakeanalytics/v20151001preview/get_account.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datalakeanalytics/v20151001preview/get_account.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datalakeanalytics/v20151001preview/get_account.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...
44.676149
751
0.693687
6892e0dedad214ce7b20d597770f4f4ea56af1a2
2,147
py
Python
mmdet3d/core/evaluation/evaluation_3d/metrics/average_translation_error_class.py
SimonDoll/mmdetection3d
742e325dc8a31ef1d6775bb592076de973eeccb8
[ "Apache-2.0" ]
1
2021-04-15T12:29:57.000Z
2021-04-15T12:29:57.000Z
mmdet3d/core/evaluation/evaluation_3d/metrics/average_translation_error_class.py
SimonDoll/mmdetection3d
742e325dc8a31ef1d6775bb592076de973eeccb8
[ "Apache-2.0" ]
null
null
null
mmdet3d/core/evaluation/evaluation_3d/metrics/average_translation_error_class.py
SimonDoll/mmdetection3d
742e325dc8a31ef1d6775bb592076de973eeccb8
[ "Apache-2.0" ]
null
null
null
import numpy as np from mmdet3d.core.bbox import LiDARInstance3DBoxes from .numeric_class_metric import NumericClassMetric class AverageTranslationErrorPerClass(NumericClassMetric): """Calculates the average translation error per class""" def __init__(self, similarity_threshold=0.5, reversed_score=False): ...
32.044776
83
0.619003
3e1721d5176aa7626661f094da603faae907c870
289
py
Python
optimizer/replaymemory/transition.py
lgasyou/spark-scheduler-configuration-optimizer
05c0ea9411db642c7c7e675a6949ffcc6814947a
[ "MIT" ]
1
2019-11-26T08:10:52.000Z
2019-11-26T08:10:52.000Z
optimizer/replaymemory/transition.py
lgasyou/spark-scheduler-configuration-optimizer
05c0ea9411db642c7c7e675a6949ffcc6814947a
[ "MIT" ]
1
2019-12-24T06:40:07.000Z
2019-12-24T06:40:07.000Z
optimizer/replaymemory/transition.py
lgasyou/spark-scheduler-configuration-optimizer
05c0ea9411db642c7c7e675a6949ffcc6814947a
[ "MIT" ]
2
2019-08-28T15:10:10.000Z
2019-11-26T08:10:36.000Z
from collections import namedtuple import torch from optimizer.hyperparameters import STATE_SHAPE Transition = namedtuple('Transition', ('timestep', 'state', 'action', 'reward', 'nonterminal')) blank_trans = Transition(0, torch.zeros(*STATE_SHAPE, dtype=torch.float32), None, 0, False)
32.111111
95
0.771626
99031ae9cde5593dadcdb969bae27b998a45ec8c
816
py
Python
AoC_Tag 03a.py
Gravitar64/Advent-of-Code-2019
bc51f984600440ef55e6203739362f3f3be29ec8
[ "MIT" ]
2
2021-03-01T23:27:36.000Z
2021-03-01T23:27:58.000Z
AoC_Tag 03a.py
Gravitar64/Advent-of-Code-2019
bc51f984600440ef55e6203739362f3f3be29ec8
[ "MIT" ]
null
null
null
AoC_Tag 03a.py
Gravitar64/Advent-of-Code-2019
bc51f984600440ef55e6203739362f3f3be29ec8
[ "MIT" ]
1
2019-12-30T18:18:16.000Z
2019-12-30T18:18:16.000Z
from Vector import Vec central_port = Vec(1,1) directions = {'R': Vec(1,0), 'L': Vec(-1,0), 'U': Vec(0,1), 'D':Vec(0,-1)} wires = [] with open("tag03.txt") as f: for line in f: wires.append(line.strip().split(",")) positionen = [] for wire in wires: position = central_port pos_wire = {} count_steps = 0 ...
22.054054
74
0.647059
77be846901d35c0d5f9f9d913f9143ffda2a03b5
962
py
Python
ermaket/models/model_er1_user_is_assigned_to_task.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/models/model_er1_user_is_assigned_to_task.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/models/model_er1_user_is_assigned_to_task.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
# This file was generated automatically and will be overwritten # with next generation. Make changes with caution import sqlalchemy as sa from ermaket.models.base import Base __all__ = ['Er1UserIsAssignedToTask'] class Er1UserIsAssignedToTask(Base): __tablename__ = 'user_is_assigned_to_task' __table_args__...
24.05
63
0.58316
8e6b69668cc0ed5bde2e4a9b439a4d250d79491c
2,947
py
Python
test_anagrams.py
gpfreitas/anagrams_2015
da72e7e1a606c7faf472b939a119031d476ef579
[ "BSD-2-Clause" ]
1
2016-01-14T22:36:12.000Z
2016-01-14T22:36:12.000Z
test_anagrams.py
gpfreitas/anagrams_2015
da72e7e1a606c7faf472b939a119031d476ef579
[ "BSD-2-Clause" ]
null
null
null
test_anagrams.py
gpfreitas/anagrams_2015
da72e7e1a606c7faf472b939a119031d476ef579
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest import doctest import anagrams import sys import os import shlex import subprocess def load_tests(loader, tests, ignore): """Loads the tests in the documentation of anagrams.py""" tests.addTests(doctest.DocTestSuite(anagrams)) return tests c...
33.873563
79
0.628436
ff3e522b0dbdcadc88e1f8502eccd6c1c0cad20f
1,179
py
Python
extract_vcf_rows/extract_rows.py
glenwilson/variant_analysis
0c26e9e16352817af20bbce0c759fff30b4054e5
[ "MIT" ]
1
2018-11-06T21:41:14.000Z
2018-11-06T21:41:14.000Z
extract_vcf_rows/extract_rows.py
glenwilson/variant_analysis
0c26e9e16352817af20bbce0c759fff30b4054e5
[ "MIT" ]
null
null
null
extract_vcf_rows/extract_rows.py
glenwilson/variant_analysis
0c26e9e16352817af20bbce0c759fff30b4054e5
[ "MIT" ]
null
null
null
#!/usr/bin/python #this program calculates the difference in lengths of #regions given in each row of csv file for all variants #given at command line import sys import csv import re inputlist= sys.argv inputlist.pop(0) #Open file with windows, win = open('windows.csv', 'r') wincsv = csv.reader(win, delimiter='\t...
26.2
105
0.592027
1a12b3ce9ca7660e442eec5e6439b747c0c7ee39
48,342
py
Python
tests/test_html.py
natbat/datasette
86aefc39c5aca01b00dbc57ba386a6743c21fb46
[ "Apache-2.0" ]
null
null
null
tests/test_html.py
natbat/datasette
86aefc39c5aca01b00dbc57ba386a6743c21fb46
[ "Apache-2.0" ]
null
null
null
tests/test_html.py
natbat/datasette
86aefc39c5aca01b00dbc57ba386a6743c21fb46
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup as Soup from .fixtures import ( # noqa app_client, app_client_shorter_time_limit, app_client_two_attached_databases, app_client_with_hash, make_app_client, METADATA, ) import json import pathlib import pytest import re import textwrap import urllib.parse def test...
36.930481
165
0.602664
55c0d586e8825d92dab1fd7415867bebe907abe4
1,726
py
Python
os_android_files_injector/app_files_injector.py
osfunapps/os-android-files-injector-py
403ea8d6530cab39f5fafb6443e3dc972b5ae991
[ "MIT" ]
1
2019-07-11T10:10:27.000Z
2019-07-11T10:10:27.000Z
os_android_files_injector/app_files_injector.py
osfunapps/os-android-files-injector-py
403ea8d6530cab39f5fafb6443e3dc972b5ae991
[ "MIT" ]
null
null
null
os_android_files_injector/app_files_injector.py
osfunapps/os-android-files-injector-py
403ea8d6530cab39f5fafb6443e3dc972b5ae991
[ "MIT" ]
null
null
null
import os_tools.logger_handler as lh import os_android_files_injector.modules.app_files_injector_boilerplate as bp ################################################################################## # # this module meant to inject android app files into a designated android project. # #################################...
37.521739
131
0.653534
308476e9c2c3d13eb0110a1e3cc1ed56556a491d
55,958
py
Python
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' 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")...
53.1415
213
0.508274
438b2148eb721b99d378d7835f7101fbac3c95a7
3,133
py
Python
homeassistant/auth/providers/legacy_api_password.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/auth/providers/legacy_api_password.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/auth/providers/legacy_api_password.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
""" Support Legacy API password auth provider. It will be removed when auth system production ready """ from __future__ import annotations from collections.abc import Mapping import hmac from typing import Any, cast import voluptuous as vol from homeassistant.core import callback from homeassistant.data_entry_flow ...
29.280374
82
0.673476
405a497f9bcc31e1da89c2e8b07ecd0020850184
33,684
py
Python
api.py
ethanhorrigan/changelater
0a8b05991a3daeb64a05eadac5763fe0dc8bee96
[ "Apache-2.0" ]
null
null
null
api.py
ethanhorrigan/changelater
0a8b05991a3daeb64a05eadac5763fe0dc8bee96
[ "Apache-2.0" ]
24
2020-01-26T19:14:20.000Z
2020-02-29T16:36:31.000Z
api.py
ethanhorrigan/changelater
0a8b05991a3daeb64a05eadac5763fe0dc8bee96
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, jsonify from flask_restful import Resource, Api from sqlalchemy import create_engine from json import dumps from flask_cors import CORS from sqlalchemy import exists from sqlalchemy.orm import sessionmaker from riotwatcher import RiotWatcher, ApiError import json import bcrypt import p...
35.795962
186
0.602185
49b12b8e23ebeb81cc099b98de62d4b0855aa4e6
4,341
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_model.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
1
2022-02-23T20:33:43.000Z
2022-02-23T20:33:43.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_model.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
7
2021-11-24T21:53:41.000Z
2022-03-22T19:29:41.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_model.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
1
2022-02-19T21:56:04.000Z
2022-02-19T21:56:04.000Z
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import re # noqa: F401 import sys # noqa: F401 import typing import urllib3 from urllib3._collections import HTTPHeaderDict from petstore_api import api_client, exceptions import decimal # noqa: F401 from ...
26.631902
103
0.671965
a5259611b3c3ec7f741bc40d3e12a880c9ef2dfd
6,836
py
Python
bot/llama_bot_db.py
llama-bot/llama-bot
00b2f38623e82289249443f13066f04df9996702
[ "MIT" ]
4
2021-08-08T02:53:31.000Z
2022-01-13T13:42:58.000Z
bot/llama_bot_db.py
llama-bot/llama-bot
00b2f38623e82289249443f13066f04df9996702
[ "MIT" ]
21
2021-09-22T08:45:17.000Z
2022-03-05T12:45:32.000Z
bot/llama_bot_db.py
llama-bot/llama-bot
00b2f38623e82289249443f13066f04df9996702
[ "MIT" ]
null
null
null
from typing import Literal, Union import firebase_admin.firestore from google.cloud.firestore_v1.client import Client from google.cloud.firestore_v1.collection import CollectionReference from google.cloud.firestore_v1.types import WriteResult class LlamaBotDB: """ Firestore interface for the llama bot. M...
39.062857
130
0.570217
fbf082fdca06ceb1a35fe29eecd4ec0255e6cdbf
803
py
Python
bmi-calculator-kg-m.py
cmlohr/small-python-projects
1de340e898f5cd7e712bc5562f16b73bb1f42bd0
[ "MIT" ]
null
null
null
bmi-calculator-kg-m.py
cmlohr/small-python-projects
1de340e898f5cd7e712bc5562f16b73bb1f42bd0
[ "MIT" ]
null
null
null
bmi-calculator-kg-m.py
cmlohr/small-python-projects
1de340e898f5cd7e712bc5562f16b73bb1f42bd0
[ "MIT" ]
1
2020-12-03T23:59:42.000Z
2020-12-03T23:59:42.000Z
print("################################") print("##### BMI CALCULATOR #####") print("################################") print("##### Coded by @Cmlohr #####") print("################################") print(" ") height = input("enter your height in m: ") weight = input("enter yo...
26.766667
43
0.523039
54fa0394fc149f4f40090649429ac852200cebef
190
py
Python
scikits/statsmodels/tsa/interp/__init__.py
escheffel/statsmodels
bc70147c4c7ea00b6ac7256bbaf107902983c189
[ "BSD-3-Clause" ]
2
2017-01-05T22:44:37.000Z
2018-04-26T08:34:00.000Z
scikits/statsmodels/tsa/interp/__init__.py
changhiskhan/statsmodels
af26395e8b75b112ae7b3099532aefd8d002b8ca
[ "BSD-3-Clause" ]
null
null
null
scikits/statsmodels/tsa/interp/__init__.py
changhiskhan/statsmodels
af26395e8b75b112ae7b3099532aefd8d002b8ca
[ "BSD-3-Clause" ]
null
null
null
import warnings warnings.warn('scikits.statsmodels namespace is deprecated and will be ' 'removed in 0.5, please use statsmodels instead') from statsmodels.tsa.interp import *
38
72
0.747368
439c713cbb1a8c1b8828969690dc07078094b087
12,698
py
Python
gym_pybullet_drones/control/DSLPIDControl.py
takepiyo/drone_sim_pybullet
5f97fdb927910e1910c81c3f89584d5baa6322f7
[ "MIT" ]
null
null
null
gym_pybullet_drones/control/DSLPIDControl.py
takepiyo/drone_sim_pybullet
5f97fdb927910e1910c81c3f89584d5baa6322f7
[ "MIT" ]
null
null
null
gym_pybullet_drones/control/DSLPIDControl.py
takepiyo/drone_sim_pybullet
5f97fdb927910e1910c81c3f89584d5baa6322f7
[ "MIT" ]
null
null
null
import math import numpy as np import pybullet as p from scipy.spatial.transform import Rotation from gym_pybullet_drones.control.BaseControl import BaseControl from gym_pybullet_drones.envs.BaseAviary import DroneModel, BaseAviary class DSLPIDControl(BaseControl): """PID control class for Crazyflies. Based...
43.337884
113
0.514963
02d0b92f580c7291d279cba59cddf4fcd6eebbb5
1,370
py
Python
pyscf/prop/rotational_gtensor/test/test_rhf.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
4
2021-03-01T03:46:02.000Z
2022-03-14T05:34:33.000Z
pyscf/prop/rotational_gtensor/test/test_rhf.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/prop/rotational_gtensor/test/test_rhf.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
34.25
74
0.634307
ee4b88d4d9bbc11c1bef2ae6a9d197fb6afa3f4a
8,878
py
Python
homeassistant/components/prometheus.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
3
2019-01-31T13:41:37.000Z
2020-05-20T14:22:18.000Z
homeassistant/components/prometheus.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
5
2021-02-08T20:32:11.000Z
2022-01-13T01:19:23.000Z
homeassistant/components/prometheus.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
1
2021-05-31T08:13:56.000Z
2021-05-31T08:13:56.000Z
""" Support for Prometheus metrics export. For more details about this component, please refer to the documentation at https://home-assistant.io/components/prometheus/ """ import logging import voluptuous as vol from aiohttp import web from homeassistant.components.climate import ATTR_CURRENT_TEMPERATURE from homeas...
32.40146
77
0.619622
70b26ac34257cf29af564ed602841abc4a4b96b8
273
py
Python
demo/errors.py
galenguyer/flask-demo
38f7f1cff95708a7a687b56214f39ed9e51ae5f0
[ "MIT" ]
null
null
null
demo/errors.py
galenguyer/flask-demo
38f7f1cff95708a7a687b56214f39ed9e51ae5f0
[ "MIT" ]
null
null
null
demo/errors.py
galenguyer/flask-demo
38f7f1cff95708a7a687b56214f39ed9e51ae5f0
[ "MIT" ]
null
null
null
from demo import app from flask import request, jsonify @app.errorhandler(400) def _error_400(error): return jsonify({"error": "bad request", "details": str(error)}), 400 @app.errorhandler(404) def _error_404(error): return jsonify({"error": "not found"}), 404
21
72
0.70696
5d61879ac2e8313c7a81df03263870520736d27d
594
py
Python
tests/windows_packages/__init__.py
PublicStuff/PerfKitBenchmarker
ff77e5594e4407443b5dcb1a8986f21c0c4c9c44
[ "Apache-2.0" ]
null
null
null
tests/windows_packages/__init__.py
PublicStuff/PerfKitBenchmarker
ff77e5594e4407443b5dcb1a8986f21c0c4c9c44
[ "Apache-2.0" ]
null
null
null
tests/windows_packages/__init__.py
PublicStuff/PerfKitBenchmarker
ff77e5594e4407443b5dcb1a8986f21c0c4c9c44
[ "Apache-2.0" ]
1
2015-08-10T14:55:08.000Z
2015-08-10T14:55:08.000Z
# Copyright 2015 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 agr...
42.428571
74
0.765993
80ccd7e653bf3655ee84b0246e1de697194e67d6
2,376
py
Python
share/regulate/steps/deduplicate.py
CenterForOpenScience/SHARE
c7715af2881f6fa23197d4e7c381d90169a90ed1
[ "Apache-2.0" ]
87
2015-01-06T18:24:45.000Z
2021-08-08T07:59:40.000Z
share/regulate/steps/deduplicate.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
442
2015-01-01T19:16:01.000Z
2022-03-30T21:10:26.000Z
share/regulate/steps/deduplicate.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
67
2015-03-10T16:32:58.000Z
2021-11-12T16:33:41.000Z
from share.regulate.steps import GraphStep class Deduplicate(GraphStep): """Look for duplicate nodes and merge/discard them Example config (YAML): ```yaml - namespace: share.regulate.steps.graph name: deduplicate ``` """ MAX_MERGES = 100 # map from concrete type...
33.464789
76
0.569865
46738b153b05520f34c54b1ca0f0f6827a8253f7
621
py
Python
check_buttons.py
Labbbbas/tkinter_py
bf388625bd5890434375884e30c84a2d4f771d1c
[ "MIT" ]
null
null
null
check_buttons.py
Labbbbas/tkinter_py
bf388625bd5890434375884e30c84a2d4f771d1c
[ "MIT" ]
null
null
null
check_buttons.py
Labbbbas/tkinter_py
bf388625bd5890434375884e30c84a2d4f771d1c
[ "MIT" ]
null
null
null
import tkinter as tk def Mostrar(): mensaje = '' if intchk1.get() == 1: mensaje += ' Manzana' if intchk2.get() == 1: mensaje += '\nPera' else: mensaje += '\nNo olvide comprar pera' labelMessage.config(text=mensaje) ventana = tk.Tk() intchk1 = tk.IntVar() intchk2 = tk....
17.742857
71
0.648953
03791a9f03ad48ba402cfffa8a5d137bded4b9f0
2,449
py
Python
questions/68528179/main.py
xGreat/stackoverflow
b9a404a5c93eb764dc58a57484d7b86dc5016579
[ "MIT" ]
302
2017-03-04T00:05:23.000Z
2022-03-28T22:51:29.000Z
questions/68528179/main.py
xGreat/stackoverflow
b9a404a5c93eb764dc58a57484d7b86dc5016579
[ "MIT" ]
30
2017-12-02T19:26:43.000Z
2022-03-28T07:40:36.000Z
questions/68528179/main.py
xGreat/stackoverflow
b9a404a5c93eb764dc58a57484d7b86dc5016579
[ "MIT" ]
388
2017-07-04T16:53:12.000Z
2022-03-18T22:20:19.000Z
import os import re import sys from pathlib import Path from PySide2.QtCore import ( Property, QCoreApplication, QDir, QObject, Qt, QTranslator, QUrl, Signal, Slot, ) from PySide2.QtGui import QGuiApplication, QStandardItem, QStandardItemModel from PySide2.QtQml import QQmlApplicati...
28.476744
77
0.678236
b7c1e4a06a82dab029067b0b4a0d1b3f3feef4e0
12,151
py
Python
azdev/operations/setup.py
marstr/azure-cli-dev-tools
8b82b1867a425a9a017868c6c1aef2f4bb5aa62b
[ "MIT" ]
null
null
null
azdev/operations/setup.py
marstr/azure-cli-dev-tools
8b82b1867a425a9a017868c6c1aef2f4bb5aa62b
[ "MIT" ]
null
null
null
azdev/operations/setup.py
marstr/azure-cli-dev-tools
8b82b1867a425a9a017868c6c1aef2f4bb5aa62b
[ "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. # ----------------------------------------------------------------------------- im...
40.503333
114
0.589746
ed0cb474049fd6564d0becdbffe987a09ead1be7
42,792
py
Python
line2/models/chatrooms.py
j4p/JeBB
2bc1915170ad99e95f383733909aa47d00496ecd
[ "MIT" ]
7
2019-02-25T05:56:09.000Z
2020-07-29T03:18:30.000Z
line2/models/chatrooms.py
winbotscript/JeBB
63cab9259fe22a10d91bf20e277a83b49ae8ab4f
[ "MIT" ]
1
2020-12-17T09:46:04.000Z
2020-12-17T09:46:04.000Z
line2/models/chatrooms.py
winbotscript/JeBB
63cab9259fe22a10d91bf20e277a83b49ae8ab4f
[ "MIT" ]
7
2018-04-06T14:56:47.000Z
2020-06-15T15:15:10.000Z
from line2.models.types import Type, ChatroomType from line2.utils import Lock, IsEmpty, Acquire from threading import Condition from time import time, sleep from traceback import format_exc, print_exc, print_stack from random import randint rObjQueue = [] rObjCond = Condition() rObjLock = Lock() def QueueRObj(user):...
34.846906
206
0.512199
9c551d4d6fd34ae95e6ec73f2449d53d2b14b84e
332
py
Python
Back-end/iot_smart_home/home_cntrl/migrations/0003_remove_house_devices.py
sepahanit/IOT-SMARTHOME-IUT
9a86ea8fff870ea147c6efd60745e19a289d0d4e
[ "MIT" ]
1
2022-01-29T22:57:26.000Z
2022-01-29T22:57:26.000Z
Back-end/iot_smart_home/home_cntrl/migrations/0003_remove_house_devices.py
erfanbahrami/iot-smart-home-api
068c5ee077e9b3a1cb0969009e80405a26d2021b
[ "MIT" ]
null
null
null
Back-end/iot_smart_home/home_cntrl/migrations/0003_remove_house_devices.py
erfanbahrami/iot-smart-home-api
068c5ee077e9b3a1cb0969009e80405a26d2021b
[ "MIT" ]
2
2022-01-27T09:15:19.000Z
2022-01-30T20:57:43.000Z
# Generated by Django 3.2.7 on 2021-12-18 16:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('home_cntrl', '0002_alter_house_devices'), ] operations = [ migrations.RemoveField( model_name='house', name='devices', ...
18.444444
51
0.596386
354cef8fdc7e47c636fb0dc8db5517ba5218d637
502
py
Python
Darlington/phase1/python Basic 1/day 12 solution/qtn8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase1/python Basic 1/day 12 solution/qtn8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase1/python Basic 1/day 12 solution/qtn8.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
# program to find path refers to a file or directory when you encounter a path name. import os.path for file in [ __file__, os.path.dirname(__file__), '/', './broken_link']: print('File :', file) print('Absolute :', os.path.isabs(file)) print('Is File? :', os.path.isfile(file)) print('Is D...
41.833333
84
0.609562
c19b0fe629a94549b6e184807ae07e83d04d0231
1,125
py
Python
minos/vcf_file_split_deletions.py
oxfordfun/minos
e7165f1a398b1003e82a8aa00480ef5cd65fa834
[ "MIT" ]
14
2018-01-25T15:20:42.000Z
2022-03-25T07:57:19.000Z
minos/vcf_file_split_deletions.py
oxfordfun/minos
e7165f1a398b1003e82a8aa00480ef5cd65fa834
[ "MIT" ]
41
2018-01-25T15:47:13.000Z
2021-11-04T10:30:21.000Z
minos/vcf_file_split_deletions.py
oxfordfun/minos
e7165f1a398b1003e82a8aa00480ef5cd65fa834
[ "MIT" ]
11
2018-01-25T15:11:32.000Z
2021-11-04T08:59:55.000Z
from cluster_vcf_records import vcf_file_read class VcfFileSplitDeletions: def __init__( self, infile, outfile_small_vars, outfile_long_deletions, min_large_ref_length=50, ): self.infile = infile self.outfile_small_vars = outfile_small_vars self....
34.090909
79
0.616
50196f88692b35920975b4050ad747b2abd0036f
24,265
py
Python
Bio/Align/stockholm.py
BatoolMM/biopython
92bbd7840c3b3f2a742b6186ce5bd0d901d4e43e
[ "BSD-3-Clause" ]
null
null
null
Bio/Align/stockholm.py
BatoolMM/biopython
92bbd7840c3b3f2a742b6186ce5bd0d901d4e43e
[ "BSD-3-Clause" ]
null
null
null
Bio/Align/stockholm.py
BatoolMM/biopython
92bbd7840c3b3f2a742b6186ce5bd0d901d4e43e
[ "BSD-3-Clause" ]
1
2022-03-03T21:45:02.000Z
2022-03-03T21:45:02.000Z
# Copyright 2006-2016 by Peter Cock. All rights reserved. # Copyright 2021 by Michiel de Hoon. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been ...
41.620926
125
0.554502
ad99428acaf9b0963070b75d28832216de54eb06
923
py
Python
deploy-board/deploy_board/webapp/helpers/groups_helper.py
nickdechant/teletraan
c2adc7668766f3daea2d16e33ce7cf0b75d9ac78
[ "Apache-2.0" ]
null
null
null
deploy-board/deploy_board/webapp/helpers/groups_helper.py
nickdechant/teletraan
c2adc7668766f3daea2d16e33ce7cf0b75d9ac78
[ "Apache-2.0" ]
null
null
null
deploy-board/deploy_board/webapp/helpers/groups_helper.py
nickdechant/teletraan
c2adc7668766f3daea2d16e33ce7cf0b75d9ac78
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pinterest, 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...
35.5
74
0.739978
835ed7ce555c2ef2b95f5e50cad28f6960801038
8,559
py
Python
simplex.py
ssongna/sastbx_module_scitbx
f7634dd32bf565ea596759b9430b274997b0a331
[ "BSD-3-Clause-LBNL" ]
null
null
null
simplex.py
ssongna/sastbx_module_scitbx
f7634dd32bf565ea596759b9430b274997b0a331
[ "BSD-3-Clause-LBNL" ]
null
null
null
simplex.py
ssongna/sastbx_module_scitbx
f7634dd32bf565ea596759b9430b274997b0a331
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from scitbx.array_family import flex from libtbx.utils import Sorry from libtbx.test_utils import approx_equal class simplex_opt(object): """ Python implementaion of Nelder-Mead Simplex method The first publication is By JA Nelder and R. Mead: A simplex method for function min...
33.69685
119
0.657553
72e94ed4b4c9163dcc5e71df779926e777f33f61
633
py
Python
api/migrations/0007_auto_20180624_1634.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
43
2018-05-23T10:03:40.000Z
2021-09-02T15:55:52.000Z
api/migrations/0007_auto_20180624_1634.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
141
2018-05-24T16:03:12.000Z
2021-04-30T23:47:59.000Z
api/migrations/0007_auto_20180624_1634.py
nikochiko/server
299953687be7adbd35df608b288546c8df90371c
[ "MIT" ]
77
2018-06-13T13:51:31.000Z
2021-06-16T16:10:18.000Z
# Generated by Django 2.0.5 on 2018-06-24 16:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0006_feedback_type'), ] operations = [ migrations.AddField( model_name='cityfact', name='source_text', ...
24.346154
69
0.575039
054ac407871c231ba147cb6c75ff09abed632082
26,910
py
Python
spritstat/tests/test_services.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
1
2022-01-30T10:50:14.000Z
2022-01-30T10:50:14.000Z
spritstat/tests/test_services.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
47
2022-02-02T22:07:28.000Z
2022-03-30T13:53:37.000Z
spritstat/tests/test_services.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
null
null
null
from dataclasses import dataclass from datetime import datetime, timedelta from allauth.account.signals import user_signed_up from django.conf import settings from django.contrib import auth from django.contrib.sessions.backends.db import SessionStore from django.contrib.sessions.models import Session from django.core...
40.527108
88
0.659903
ac5ec6a0883cb8b007fc0d8be335c5b3c0f84ba3
1,230
py
Python
c7n/resources/sfn.py
ticketmaster/cloud-custodian
0da3866f70f858895af228cc08706d0909a2a324
[ "Apache-2.0" ]
null
null
null
c7n/resources/sfn.py
ticketmaster/cloud-custodian
0da3866f70f858895af228cc08706d0909a2a324
[ "Apache-2.0" ]
4
2017-02-02T17:08:23.000Z
2017-05-25T19:33:19.000Z
c7n/resources/sfn.py
ticketmaster/cloud-custodian
0da3866f70f858895af228cc08706d0909a2a324
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Capital One Services, 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...
36.176471
82
0.726016
820de09449d8eaf5f934625408aae81a24320870
244
py
Python
propms/property_management_solution/doctype/meter_reading/meter_reading.py
asoral/PropMS
c5af308c37d13b1c17622f32113fb62b8cf44244
[ "MIT" ]
null
null
null
propms/property_management_solution/doctype/meter_reading/meter_reading.py
asoral/PropMS
c5af308c37d13b1c17622f32113fb62b8cf44244
[ "MIT" ]
null
null
null
propms/property_management_solution/doctype/meter_reading/meter_reading.py
asoral/PropMS
c5af308c37d13b1c17622f32113fb62b8cf44244
[ "MIT" ]
1
2021-04-29T04:39:41.000Z
2021-04-29T04:39:41.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Aakvatech and contributors # For license information, please see license.txt from __future__ import unicode_literals from frappe.model.document import Document class MeterReading(Document): pass
24.4
49
0.778689
b93afa8b3ac34109a2ae06454c0da09ce739efe0
667
py
Python
manage.py
georgiawang5332/prodmanager
5dbff0789deb0c4f696149345ded3e338c6f59ec
[ "MIT" ]
null
null
null
manage.py
georgiawang5332/prodmanager
5dbff0789deb0c4f696149345ded3e338c6f59ec
[ "MIT" ]
null
null
null
manage.py
georgiawang5332/prodmanager
5dbff0789deb0c4f696149345ded3e338c6f59ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'prodmanager.settings') try: from django.core.management import execute_from_command_line except ...
29
75
0.68066
42032f8bf93cb60a983bfa52197b87b23c9c5f84
21,138
py
Python
qiskit/ignis/verification/quantum_volume/fitters.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
182
2019-02-19T22:52:42.000Z
2022-02-28T05:48:07.000Z
qiskit/ignis/verification/quantum_volume/fitters.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
384
2019-02-19T21:30:18.000Z
2021-12-02T21:13:34.000Z
qiskit/ignis/verification/quantum_volume/fitters.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
203
2019-02-19T21:06:27.000Z
2022-03-02T14:16:50.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
35.94898
98
0.59192
ab761811a560cb7ca8126369fe156809b6e83324
13,936
py
Python
samtranslator/model/apigateway.py
sankmane/serverless-application-model
e7c411787f060cf1eb00c84787effadd27b77972
[ "Apache-2.0" ]
1
2019-10-29T19:31:09.000Z
2019-10-29T19:31:09.000Z
samtranslator/model/apigateway.py
sankmane/serverless-application-model
e7c411787f060cf1eb00c84787effadd27b77972
[ "Apache-2.0" ]
null
null
null
samtranslator/model/apigateway.py
sankmane/serverless-application-model
e7c411787f060cf1eb00c84787effadd27b77972
[ "Apache-2.0" ]
1
2020-07-22T00:03:42.000Z
2020-07-22T00:03:42.000Z
from re import match from samtranslator.model import PropertyType, Resource from samtranslator.model.exceptions import InvalidResourceException from samtranslator.model.types import is_type, one_of, is_str from samtranslator.model.intrinsics import ref, fnSub from samtranslator.translator import logical_id_generator f...
41.6
120
0.664538
519c23fe8e3b3c0269551f07221c346a01314cb4
374
py
Python
gaia-sdk-python/gaia_sdk/http/response/FileRemoved.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
null
null
null
gaia-sdk-python/gaia_sdk/http/response/FileRemoved.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
10
2019-11-14T07:55:47.000Z
2022-02-26T19:36:45.000Z
gaia-sdk-python/gaia_sdk/http/response/FileRemoved.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
2
2020-05-12T11:09:53.000Z
2020-12-25T14:03:04.000Z
class FileRemoved: dictionary: dict def __init__(self, dictionary: dict): self.dictionary = dictionary def __eq__(self, other): return self.dictionary == other.dictionary def __repr__(self): return {'dictionary': self.dictionary} @property def file_existed(self) -> bo...
23.375
50
0.657754
bac2a8849adc9221afdb1c822a2ae3cb4cf87a89
2,487
py
Python
balloon_learning_environment/env/balloon/pressure_range_builder_test.py
taodav/balloon-learning-environment
4beb45f52ab7127a4c051df25894738420e8e691
[ "Apache-2.0" ]
null
null
null
balloon_learning_environment/env/balloon/pressure_range_builder_test.py
taodav/balloon-learning-environment
4beb45f52ab7127a4c051df25894738420e8e691
[ "Apache-2.0" ]
null
null
null
balloon_learning_environment/env/balloon/pressure_range_builder_test.py
taodav/balloon-learning-environment
4beb45f52ab7127a4c051df25894738420e8e691
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment 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 require...
35.528571
79
0.781665
f88aadf2574aa7c4e0f4a6fa0c7ee154cc721570
674
py
Python
House_Price/test.py
a22057916w/Kaggle
93197c83b4c2a00399295feec75f5aede6fb6992
[ "MIT" ]
null
null
null
House_Price/test.py
a22057916w/Kaggle
93197c83b4c2a00399295feec75f5aede6fb6992
[ "MIT" ]
null
null
null
House_Price/test.py
a22057916w/Kaggle
93197c83b4c2a00399295feec75f5aede6fb6992
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os absolutepath = os.path.abspath(__file__) fileDirectory = os.path.dirname(absolutepath) print(absolutepath) print(fileDirectory) train = pd.read_csv(os.path.join(fileDirectory, "train.csv")) #print(type(train.shape)) #print(train.shape) df = pd.DataFrame({'col1': [1,...
25.923077
110
0.660237
8e3d7864b6b2ca81a9ce9576696b44bbb43ff71d
1,557
py
Python
0348_design_tic_tac_toe.py
subwaymatch/leetcode
2592ba2e55682fd54d0060c5b1ff1b8469ba7916
[ "MIT" ]
null
null
null
0348_design_tic_tac_toe.py
subwaymatch/leetcode
2592ba2e55682fd54d0060c5b1ff1b8469ba7916
[ "MIT" ]
null
null
null
0348_design_tic_tac_toe.py
subwaymatch/leetcode
2592ba2e55682fd54d0060c5b1ff1b8469ba7916
[ "MIT" ]
null
null
null
class TicTacToe: def __init__(self, n: int): """ Initialize your data structure here. """ self.n = n self.count = { 1: { "rows": [0] * n, "cols": [0] * n, "diag1": 0, "diag2": 0 }, ...
28.309091
156
0.444444
45e047d8ee666c8d753b172511bf5857e6b6ee15
1,766
py
Python
week6-class/digitFreq.py
A1fus/programmingWithPython
6b81a3818e54f365dc4e44b610670ac96093555a
[ "Apache-2.0" ]
null
null
null
week6-class/digitFreq.py
A1fus/programmingWithPython
6b81a3818e54f365dc4e44b610670ac96093555a
[ "Apache-2.0" ]
1
2019-11-06T23:20:00.000Z
2019-11-12T12:31:14.000Z
week6-class/digitFreq.py
A1fus/programmingWithPython
6b81a3818e54f365dc4e44b610670ac96093555a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 12/11/2019 at 12:50 @author: Alfie Bowman """ def digit_freq(s): """Loads a list of integers as a string and prints the frequency of each digit. Parameters ---------- s : str A string of integers, each number seperated by a single comma. """ ...
23.546667
78
0.45017
db836abac5f3aa9650823781fe08176cf1882af8
170
py
Python
allauth/socialaccount/providers/eveonline/urls.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2020-07-26T17:21:16.000Z
2020-07-26T17:21:16.000Z
allauth/socialaccount/providers/eveonline/urls.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
allauth/socialaccount/providers/eveonline/urls.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2022-02-01T17:19:28.000Z
2022-02-01T17:19:28.000Z
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import EveOnlineProvider urlpatterns = default_urlpatterns(EveOnlineProvider)
34
75
0.882353