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
482ea0a161cdbb09806cf189e208eac0a2a8a8de
3,614
py
Python
halo-third-party-sdk-model/halo_third_party_sdk_model/body.py
amzn/halo-third-party-sdk-for-python
a1e096d6e516e0e5fb5ad84e08dfd079a4b38e36
[ "Apache-2.0" ]
3
2021-07-10T08:25:10.000Z
2022-01-21T19:10:21.000Z
halo-third-party-sdk-model/halo_third_party_sdk_model/body.py
QPC-database/halo-third-party-sdk-for-python
a1e096d6e516e0e5fb5ad84e08dfd079a4b38e36
[ "Apache-2.0" ]
null
null
null
halo-third-party-sdk-model/halo_third_party_sdk_model/body.py
QPC-database/halo-third-party-sdk-for-python
a1e096d6e516e0e5fb5ad84e08dfd079a4b38e36
[ "Apache-2.0" ]
2
2021-07-10T08:25:12.000Z
2021-12-06T01:59:28.000Z
# coding: utf-8 # # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
32.854545
98
0.612064
3316c8da0bac66d42b67de3c2ef9b8db24fdb92e
1,833
py
Python
tests/unit/test_counter.py
ska-telescope/tango-example
62705a22d1560cf23ebc976a7611e25acc17da44
[ "Apache-2.0", "BSD-3-Clause" ]
2
2018-12-06T21:11:28.000Z
2019-10-05T17:45:25.000Z
tests/unit/test_counter.py
ska-telescope/tango-example
62705a22d1560cf23ebc976a7611e25acc17da44
[ "Apache-2.0", "BSD-3-Clause" ]
7
2019-05-15T23:56:52.000Z
2021-05-19T14:18:53.000Z
tests/unit/test_counter.py
ska-telescope/tango-example
62705a22d1560cf23ebc976a7611e25acc17da44
[ "Apache-2.0", "BSD-3-Clause" ]
1
2019-07-09T04:41:42.000Z
2019-07-09T04:41:42.000Z
# -*- coding: utf-8 -*- # pylint: disable=redefined-outer-name """ Some simple unit tests of the Counter device, exercising the device from the same host as the tests by using a DeviceTestContext. """ import logging import time import pytest import tango from tango.test_utils import DeviceTestContext from ska_tango_e...
23.5
73
0.688489
8b79ebeec3284c27db7adf069fbc3e9ae071b8ae
3,121
py
Python
cards/migrations/0001_initial.py
Etskh/card-creator
8dcf3044ecfc4c41fa865dcbcacf0327844d2364
[ "MIT" ]
null
null
null
cards/migrations/0001_initial.py
Etskh/card-creator
8dcf3044ecfc4c41fa865dcbcacf0327844d2364
[ "MIT" ]
16
2017-02-08T21:49:34.000Z
2017-03-13T06:32:56.000Z
cards/migrations/0001_initial.py
Etskh/card-creator
8dcf3044ecfc4c41fa865dcbcacf0327844d2364
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-01 17:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
42.753425
149
0.576097
c7e4dbc3a2d00e9b8d716a2c825aeb92edd35b4f
1,549
py
Python
tests/test_categorical.py
Strabes/helpers
810a45e15227a2c07a7e24554a2a244795ffa012
[ "BSD-3-Clause" ]
null
null
null
tests/test_categorical.py
Strabes/helpers
810a45e15227a2c07a7e24554a2a244795ffa012
[ "BSD-3-Clause" ]
14
2021-02-14T20:03:18.000Z
2021-04-28T12:55:32.000Z
tests/test_categorical.py
Strabes/helpers
810a45e15227a2c07a7e24554a2a244795ffa012
[ "BSD-3-Clause" ]
null
null
null
import pytest import pandas as pd import numpy as np from dsutils.transformers._categorical_binners import * @pytest.fixture def example_data(): return(pd.DataFrame( {'x':['a','a','b','c','b','a','a'], 'y':['a','b','c','d','e','a','b']} )) @pytest.fixture def example_data_na(): return(pd.DataFr...
30.372549
86
0.588767
6ce0c08c1e6e927137497e3c539c78d58aa1b959
22,052
py
Python
finley/test/python/run_pasoSolversOnFinley.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
null
null
null
finley/test/python/run_pasoSolversOnFinley.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
finley/test/python/run_pasoSolversOnFinley.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
34.510172
86
0.655768
e9b5c0886982b949812b4b3099d8936331c126fc
4,625
py
Python
renormalizer/lib/bipartite_matching/bipartite_matching.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
27
2019-09-02T08:35:01.000Z
2022-02-22T08:18:02.000Z
renormalizer/lib/bipartite_matching/bipartite_matching.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
54
2019-08-30T12:18:39.000Z
2022-03-20T13:23:07.000Z
renormalizer/lib/bipartite_matching/bipartite_matching.py
shuaigroup/Renormalizer
963d52efdaa247320e781a96b64d41c9cadf6f0e
[ "Apache-2.0" ]
6
2019-09-10T03:25:28.000Z
2021-11-20T18:41:58.000Z
# -*- coding: utf-8 -*- # Bipartie vertex cover # Bipartie maximum matching # https://github.com/jilljenn/tryalgo/ # jill-jenn vie et christoph durr - 2014-2018 # adapted by jjren from scipy.sparse import csr_matrix from scipy.sparse.csgraph import maximum_bipartite_matching import numpy as np def augment(u, bigraph...
35.852713
82
0.572757
46837d4c18bec07f45a463993a33143b1ebe4e55
4,147
py
Python
vistrails/db/versions/v0_9_4/translate/v0_9_5.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
1
2015-05-11T16:46:49.000Z
2015-05-11T16:46:49.000Z
vistrails/db/versions/v0_9_4/translate/v0_9_5.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
null
null
null
vistrails/db/versions/v0_9_4/translate/v0_9_5.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
null
null
null
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
47.125
100
0.677598
78f5a8ce9ad28469019af8e3963719b35ee61805
2,000
py
Python
ci_test.py
weissi/swift-docker
c5dd5e013de66da930cf1b9804797dbae11e8f9c
[ "Apache-2.0" ]
1
2020-05-15T12:04:44.000Z
2020-05-15T12:04:44.000Z
ci_test.py
weissi/swift-docker
c5dd5e013de66da930cf1b9804797dbae11e8f9c
[ "Apache-2.0" ]
null
null
null
ci_test.py
weissi/swift-docker
c5dd5e013de66da930cf1b9804797dbae11e8f9c
[ "Apache-2.0" ]
1
2019-08-23T23:05:34.000Z
2019-08-23T23:05:34.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ci_test - Build all Dockerfiles -*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2019 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/L...
27.39726
78
0.6245
0b1bd539d1fb0a3ef0aecc53bffef6b95d1f4808
397
py
Python
consensus_simple/statistic_collector.py
TihonkovSergey/pytorch_resnet_cifar10
a596f3333e1f0066455465019fe15a35c6d01f55
[ "BSD-2-Clause" ]
null
null
null
consensus_simple/statistic_collector.py
TihonkovSergey/pytorch_resnet_cifar10
a596f3333e1f0066455465019fe15a35c6d01f55
[ "BSD-2-Clause" ]
null
null
null
consensus_simple/statistic_collector.py
TihonkovSergey/pytorch_resnet_cifar10
a596f3333e1f0066455465019fe15a35c6d01f55
[ "BSD-2-Clause" ]
2
2020-12-13T21:58:24.000Z
2021-04-24T22:45:25.000Z
from model_statistics import ModelStatistics class StatisticCollector(ModelStatistics): def __init__(self, token, logger, save_path=None): super().__init__(token, save_path) self.logger = logger def add(self, key, val): super().add(key, val) self.logger.info('StatisticCollecto...
30.538462
99
0.670025
af72b574fe72ee4c8358f45bc68cab6e0fbd8e9d
8,123
py
Python
composer/workflows/bq_notify.py
glasnt/python-docs-samples
9869d47937b45840072485f86248438efa1c955d
[ "Apache-2.0" ]
1
2022-02-27T09:47:15.000Z
2022-02-27T09:47:15.000Z
composer/workflows/bq_notify.py
mayura1996/python-docs-samples
7f1fb1b26d1a268b8150a75367b9fd7a42cc1f64
[ "Apache-2.0" ]
7
2020-06-08T15:47:54.000Z
2020-08-12T22:59:39.000Z
composer/workflows/bq_notify.py
mayura1996/python-docs-samples
7f1fb1b26d1a268b8150a75367b9fd7a42cc1f64
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.957944
102
0.68583
25ba063552a6fbb60b30032dd37fe51a77e791c3
5,573
py
Python
contrib/seeds/makeseeds.py
diyathrajapakshe/bethel-core
9f272d635da18b91582dbbb2ba47cfce1a1fc9ca
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
diyathrajapakshe/bethel-core
9f272d635da18b91582dbbb2ba47cfce1a1fc9ca
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
diyathrajapakshe/bethel-core
9f272d635da18b91582dbbb2ba47cfce1a1fc9ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 337600 # These are hosts that have been observed to be behaving strangely (e.g. # aggressively connecting to every node). SUSPICIOUS_HOSTS = set([ "130.211.129.106", "178.63.107.226", "83.81.1...
32.782353
186
0.560022
cedc2e0f2b7f93c76997067dd5397ada5c68c18b
5,693
py
Python
adslib/constants.py
yantisj/ads-db
2a2cf9b1998431d275ddacf92997a981ce39b6d7
[ "Apache-2.0" ]
3
2022-03-10T07:56:13.000Z
2022-03-24T21:45:09.000Z
adslib/constants.py
yantisj/ads-db
2a2cf9b1998431d275ddacf92997a981ce39b6d7
[ "Apache-2.0" ]
null
null
null
adslib/constants.py
yantisj/ads-db
2a2cf9b1998431d275ddacf92997a981ce39b6d7
[ "Apache-2.0" ]
null
null
null
# Constants for main program # Stop API Call's after threshold reached (reset when process reloads) MAX_API_COUNT = 1000 AEROAPI_BASE_URL = "https://aeroapi.flightaware.com/aeroapi" STATIC_CALL_SIGNS = [ "DAL", "SWA", "RPA", "UAL", "AAL", "JBU", "FFT", "MXY", "NKS", "JIA", ...
27.770732
77
0.312313
47101dd415a8e5e7040ffe6a46510be6186d820f
19,739
py
Python
tests/components/group/test_init.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
2
2020-08-29T07:24:56.000Z
2020-10-27T21:47:35.000Z
tests/components/group/test_init.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
6
2021-02-08T20:25:50.000Z
2022-03-11T23:27:53.000Z
tests/components/group/test_init.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
3
2018-09-14T07:34:09.000Z
2018-09-29T12:57:10.000Z
"""The tests for the Group components.""" # pylint: disable=protected-access import asyncio from collections import OrderedDict import unittest from unittest.mock import patch from homeassistant.setup import setup_component, async_setup_component from homeassistant.const import ( STATE_ON, STATE_OFF, STATE_HOME, S...
40.615226
79
0.644815
a23962524e029da5c566c1144f58c7a98c629a5a
1,325
py
Python
tests/tests/correctness/EPLAnalytics/Streaming_Calculations/Sum/Sum_cor_006/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
3
2019-09-02T18:21:22.000Z
2020-04-17T16:34:57.000Z
tests/tests/correctness/EPLAnalytics/Streaming_Calculations/Sum/Sum_cor_006/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
tests/tests/correctness/EPLAnalytics/Streaming_Calculations/Sum/Sum_cor_006/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
# $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an...
44.166667
343
0.716981
349cfdc56a627ad236474fb40efec7253802a93f
1,399
py
Python
map_money.py
hridaydutta123/Bitcluster
a888ee40d592963c76d7d6a2cfce1baa834b26e8
[ "MIT" ]
102
2016-07-19T22:40:16.000Z
2021-12-15T22:15:50.000Z
map_money.py
hridaydutta123/Bitcluster
a888ee40d592963c76d7d6a2cfce1baa834b26e8
[ "MIT" ]
19
2016-07-24T18:18:46.000Z
2020-02-04T12:56:58.000Z
map_money.py
hridaydutta123/Bitcluster
a888ee40d592963c76d7d6a2cfce1baa834b26e8
[ "MIT" ]
36
2016-07-21T18:24:27.000Z
2022-03-17T03:29:01.000Z
import sys from crawler.money_crawler import MoneyCrawler from settings import settings def start(start_block_id, end_block_id): mapper = MoneyCrawler() block_id = start_block_id try: while block_id <= end_block_id and mapper.crawl_block(block_id): if settings.deb...
30.413043
118
0.566833
59cd2345d931ef61cd147d797e5c6f83240499b0
2,654
py
Python
k8s_secretgen/cli.py
awkspace/k8s-secretgen
fbed870eb8918fb4b15aeb15b1ed5cf6ddcb0596
[ "MIT" ]
1
2021-10-30T18:46:28.000Z
2021-10-30T18:46:28.000Z
k8s_secretgen/cli.py
awkspace/k8s-secretgen
fbed870eb8918fb4b15aeb15b1ed5cf6ddcb0596
[ "MIT" ]
null
null
null
k8s_secretgen/cli.py
awkspace/k8s-secretgen
fbed870eb8918fb4b15aeb15b1ed5cf6ddcb0596
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import string import yaml from secrets import choice from kubernetes import client, config from kubernetes.client.exceptions import ApiException from base64 import b64encode def main(): parser = argparse.ArgumentParser() parser.add_argument('--file', '-f', default='.k8s...
27.936842
76
0.542577
c423da51df24361f55166a281fa5ac26aad25974
6,544
py
Python
ind.py
ErmakovEgor/lab22
c2707a11b08fb881d78084d3e5bb2a59060e2784
[ "MIT" ]
null
null
null
ind.py
ErmakovEgor/lab22
c2707a11b08fb881d78084d3e5bb2a59060e2784
[ "MIT" ]
null
null
null
ind.py
ErmakovEgor/lab22
c2707a11b08fb881d78084d3e5bb2a59060e2784
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- config: utf-8 -*- # Вариант 12. Использовать словарь, содержащий следующие ключи: фамилия, имя; номер телефона; # дата рождения (список из трех чисел). Написать программу, выполняющую следующие # действия: ввод с клавиатуры данных в список, состоящий из словарей заданной структуры; ...
32.557214
110
0.602384
0b954c9b912d1571d03c7473fc4a49de86a9093d
5,791
py
Python
pydoc/documentation.py
Shivankthakur/Rhythm-Search-Engine-for-song-lyrics
560382b115b71d04b7ab8a828793537a8a93e3de
[ "MIT" ]
null
null
null
pydoc/documentation.py
Shivankthakur/Rhythm-Search-Engine-for-song-lyrics
560382b115b71d04b7ab8a828793537a8a93e3de
[ "MIT" ]
null
null
null
pydoc/documentation.py
Shivankthakur/Rhythm-Search-Engine-for-song-lyrics
560382b115b71d04b7ab8a828793537a8a93e3de
[ "MIT" ]
null
null
null
def tokenize_sentence(sentence): ''' Tokenize a string and remove punctuations Parameters: sentence(string) Returns: tokens_list_without_punct(list of strings) ''' sentence=sentence.lower() tokenizer=TreebankWordTokenizer() tokens_list_with_punct = tokenizer.tokenize(sentence....
27.57619
104
0.623208
b5581c9e5f2ee21b5a372f75ef470ad7de8a79e2
1,525
py
Python
setup.py
nickerso/Biosimulations_CellML_DockerSimulator
7486efdeb195d908d93eca818607f25224895d5f
[ "MIT" ]
null
null
null
setup.py
nickerso/Biosimulations_CellML_DockerSimulator
7486efdeb195d908d93eca818607f25224895d5f
[ "MIT" ]
null
null
null
setup.py
nickerso/Biosimulations_CellML_DockerSimulator
7486efdeb195d908d93eca818607f25224895d5f
[ "MIT" ]
null
null
null
import setuptools try: import pkg_utils except ImportError: import subprocess import sys subprocess.check_call( [sys.executable, "-m", "pip", "install", "pkg_utils"]) import pkg_utils import os name = '<my_simulator>' dirname = os.path.dirname(__file__) # get package metadata md = pkg_util...
31.770833
89
0.672131
7106208d60334958d7f32c8b4625dd031cca920e
1,862
py
Python
setup.py
zefciu/ralph_pricing
f3c9e23b36331ec0ab464afd08fcab5f96921c1e
[ "Apache-2.0" ]
null
null
null
setup.py
zefciu/ralph_pricing
f3c9e23b36331ec0ab464afd08fcab5f96921c1e
[ "Apache-2.0" ]
null
null
null
setup.py
zefciu/ralph_pricing
f3c9e23b36331ec0ab464afd08fcab5f96921c1e
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- import os import sys from setuptools import setup, find_packages assert sys.version_info >= (2, 7), "Python 2.7+ required." current_dir = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(current_dir, 'README.rst')) as readme_file: with open(os.path.join(current_dir, 'CH...
32.666667
74
0.630505
174aa082ccf3f6714419c339aa2005cf0c9e5653
2,917
py
Python
src/bruuuh.py
BubaDubaKuba/sergey
0b316a34d6be1c926426abd7b8be549e5771b04b
[ "MIT" ]
null
null
null
src/bruuuh.py
BubaDubaKuba/sergey
0b316a34d6be1c926426abd7b8be549e5771b04b
[ "MIT" ]
null
null
null
src/bruuuh.py
BubaDubaKuba/sergey
0b316a34d6be1c926426abd7b8be549e5771b04b
[ "MIT" ]
null
null
null
#Meet Robo: your friend #import necessary libraries import io import random import string # to process standard python strings import warnings import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity import warnings warnings.filterwarnings('...
32.411111
105
0.690778
5d0af29b3ecd8044922d2add8d2cc369cf18b028
10,450
py
Python
nicos_mlz/refsans/setups/special/monitor-monitor02.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/refsans/setups/special/monitor-monitor02.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/refsans/setups/special/monitor-monitor02.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# coding: utf-8 # created by Martin Haese, Tel FRM 10763 # last version by Gaetano Mangiapia, Tel 54839 on Jan 09th 2020 # to call it # ssh -X refsans@refsansctrl01 oder 02 # cd /refsanscontrol/src/nicos-core # INSTRUMENT=nicos_mlz.refsans bin/nicos-monitor -S monitor_chopper description = 'Optic Collimation and Sli...
45.633188
92
0.567368
f5271c23ffd8d7c79faf326b6aee0f2aa53d0560
444
py
Python
tests/test_pprint.py
imanashoorii/zibal-zeep
9ff7b229b0759597823da41d1dbf48c6e7b5b383
[ "MIT" ]
null
null
null
tests/test_pprint.py
imanashoorii/zibal-zeep
9ff7b229b0759597823da41d1dbf48c6e7b5b383
[ "MIT" ]
null
null
null
tests/test_pprint.py
imanashoorii/zibal-zeep
9ff7b229b0759597823da41d1dbf48c6e7b5b383
[ "MIT" ]
null
null
null
from zibalzeep.xsd import printer def test_dict(): pprint = printer.PrettyPrinter() data = { "foo": "bar", "foo_2": "bar", "foo_3": "bar", "foo_4": {"foo": "1", "bar": {"bala": "qwe"}, "x": [1, 2, 3, 4], "y": []}, } pprint.pformat(data) def test_list(): pprint = p...
23.368421
82
0.5
9d7d2f828da5cdea5390a3b6b3c6eb2f56bc23a6
1,673
py
Python
ksteta3pi/PotentialBackgrounds/MC_12_11134060_MagDown.py
Williams224/davinci-scripts
730642d2ff13543eca4073a4ce0932631195de56
[ "MIT" ]
null
null
null
ksteta3pi/PotentialBackgrounds/MC_12_11134060_MagDown.py
Williams224/davinci-scripts
730642d2ff13543eca4073a4ce0932631195de56
[ "MIT" ]
null
null
null
ksteta3pi/PotentialBackgrounds/MC_12_11134060_MagDown.py
Williams224/davinci-scripts
730642d2ff13543eca4073a4ce0932631195de56
[ "MIT" ]
null
null
null
#-- GAUDI jobOptions generated on Fri Jul 24 16:57:12 2015 #-- Contains event types : #-- 11134060 - 16 files - 274137 events - 79.11 GBytes #-- Extra information about the data processing phases: from Gaudi.Configuration import * from GaudiConf import IOHelper IOHelper('ROOT').inputFiles(['LFN:/lhcb/MC/2012/AL...
61.962963
113
0.806336
b2364089d578489c29e4e0e7b81c78b82fcb0ebb
1,113
py
Python
yt/frontends/rockstar/tests/test_outputs.py
danielgrassinger/yt_new_frontend
5f91d2fb8721c4c5da0af543a6256ed979cd9fc9
[ "BSD-3-Clause-Clear" ]
1
2021-11-29T21:59:06.000Z
2021-11-29T21:59:06.000Z
yt/frontends/rockstar/tests/test_outputs.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2016-04-05T22:30:14.000Z
2016-04-05T22:30:14.000Z
yt/frontends/rockstar/tests/test_outputs.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2020-12-05T05:51:09.000Z
2020-12-05T05:51:09.000Z
""" Rockstar frontend tests using rockstar_halos dataset """ #----------------------------------------------------------------------------- # Copyright (c) 2015, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this s...
27.146341
78
0.63522
3d94c7b3a20e423883fe95e60e0c2ee34589fab9
667
py
Python
manage.py
crogar/MyPassVault
b76811f5362e7b0e922a0869f237a223db2b8331
[ "Unlicense" ]
1
2021-09-16T19:23:16.000Z
2021-09-16T19:23:16.000Z
manage.py
crogar/MyPassVault
b76811f5362e7b0e922a0869f237a223db2b8331
[ "Unlicense" ]
null
null
null
manage.py
crogar/MyPassVault
b76811f5362e7b0e922a0869f237a223db2b8331
[ "Unlicense" ]
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', 'mypassvault.settings') try: from django.core.management import execute_from_command_line except ...
29
75
0.68066
e9589bdc52c6cbb6bb74658a0065bb03859f103a
1,443
py
Python
setup.py
erodner/SMAC3
8c87264817d3f53089bacd464b60f19a6784d290
[ "BSD-3-Clause" ]
null
null
null
setup.py
erodner/SMAC3
8c87264817d3f53089bacd464b60f19a6784d290
[ "BSD-3-Clause" ]
null
null
null
setup.py
erodner/SMAC3
8c87264817d3f53089bacd464b60f19a6784d290
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import json import os from setuptools import setup import codecs with open('requirements.txt') as fh: requirements = [line.strip() for line in fh.readlines()] with open('extras_require.json') as fh: extras_require = json.load(fh) extras_require['all'] = set(sum(extras_require.values(...
34.357143
98
0.654886
1fbab29427ab485ce0457e99a1993bb9a903bdb4
3,389
py
Python
pycaret/containers/base_container.py
hanaseleb/pycaret
1fe6e1a6bee642351c4b6064d769f97294713f48
[ "MIT" ]
5,541
2019-12-30T13:24:46.000Z
2022-03-31T19:21:37.000Z
pycaret/containers/base_container.py
hanaseleb/pycaret
1fe6e1a6bee642351c4b6064d769f97294713f48
[ "MIT" ]
1,616
2019-11-23T20:08:30.000Z
2022-03-31T20:18:21.000Z
pycaret/containers/base_container.py
hanaseleb/pycaret
1fe6e1a6bee642351c4b6064d769f97294713f48
[ "MIT" ]
1,471
2019-11-23T20:21:48.000Z
2022-03-31T12:07:39.000Z
# Module: containers.base_container # Author: Antoni Baum (Yard1) <antoni.baum@protonmail.com> # License: MIT import inspect from typing import Dict, Any import pycaret.internal.utils class BaseContainer: """ Base container class, for easier definition of containers. Ensures consistent format before bein...
28.478992
96
0.596341
5c0d751a01bcc579e29c3d70910b4a1f8a688e98
1,225
py
Python
WEB(BE)/database/users_crud.py
crisis513/CLOUD_WEB_ArmyScheduler_Youngs
e51e8e0b27f4ace14f466566ff0e150a24013282
[ "MIT" ]
3
2021-10-05T04:16:08.000Z
2021-11-10T03:58:28.000Z
WEB(BE)/database/users_crud.py
crisis513/CLOUD_WEB_ArmyScheduler_Youngs
e51e8e0b27f4ace14f466566ff0e150a24013282
[ "MIT" ]
null
null
null
WEB(BE)/database/users_crud.py
crisis513/CLOUD_WEB_ArmyScheduler_Youngs
e51e8e0b27f4ace14f466566ff0e150a24013282
[ "MIT" ]
3
2021-09-18T12:55:27.000Z
2021-11-18T13:12:14.000Z
import motor.motor_asyncio from bson import ObjectId from decouple import config from .database_helper import user_helper MONGO_DETAILS = config('MONGO_DETAILS') client = motor.motor_asyncio.AsyncIOMotorClient(MONGO_DETAILS) database = client.army_scheduler_db users_collection = database.get_collection('Users') a...
26.630435
73
0.718367
3962c2681b489da7a72ccdd4d2a6bac04c0043ef
2,819
py
Python
tests/utils.py
positiveblue/lightning
1fb9a078b620a65a2802bc8b1303970914cfb4cb
[ "MIT" ]
1
2021-10-31T05:15:00.000Z
2021-10-31T05:15:00.000Z
tests/utils.py
positiveblue/lightning
1fb9a078b620a65a2802bc8b1303970914cfb4cb
[ "MIT" ]
null
null
null
tests/utils.py
positiveblue/lightning
1fb9a078b620a65a2802bc8b1303970914cfb4cb
[ "MIT" ]
1
2021-10-31T05:14:28.000Z
2021-10-31T05:14:28.000Z
from pyln.testing.utils import TEST_NETWORK, SLOW_MACHINE, TIMEOUT, VALGRIND, DEVELOPER, DEPRECATED_APIS # noqa: F401 from pyln.testing.utils import env, only_one, wait_for, write_config, TailableProc, sync_blockheight, wait_channel_quiescent, get_tx_p2wsh_outnum # noqa: F401 EXPERIMENTAL_FEATURES = env("EXPERIMENT...
36.61039
159
0.655906
47d0e978b53ec64629d8617404981eb7c6b670e1
294
py
Python
bookmarks/models.py
flowfree/sample-django-app
be0c0cb8a886820f45b6012b90f0043eecdbe929
[ "MIT" ]
null
null
null
bookmarks/models.py
flowfree/sample-django-app
be0c0cb8a886820f45b6012b90f0043eecdbe929
[ "MIT" ]
null
null
null
bookmarks/models.py
flowfree/sample-django-app
be0c0cb8a886820f45b6012b90f0043eecdbe929
[ "MIT" ]
null
null
null
from django.db import models class Bookmark(models.Model): title = models.CharField(max_length=255) url = models.URLField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return self.title
24.5
56
0.72449
b1cafb0fe401e5990f0c281d0a657499e4258f7e
68
py
Python
view/widgets/field.py
pyfection/battleship
a1d8cb58e84acd45a4f795ee4d04fc7e9cdd4927
[ "MIT" ]
1
2021-11-17T02:16:15.000Z
2021-11-17T02:16:15.000Z
view/widgets/field.py
pyfection/battleship
a1d8cb58e84acd45a4f795ee4d04fc7e9cdd4927
[ "MIT" ]
null
null
null
view/widgets/field.py
pyfection/battleship
a1d8cb58e84acd45a4f795ee4d04fc7e9cdd4927
[ "MIT" ]
null
null
null
from kivy.uix.button import Button class Field(Button): pass
9.714286
34
0.720588
7535ed7daeba0eddd36fca23c77761b9a829acc9
265
py
Python
tests/artificial/transf_Fisher/trend_LinearTrend/cycle_0/ar_/test_artificial_1024_Fisher_LinearTrend_0__100.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Fisher/trend_LinearTrend/cycle_0/ar_/test_artificial_1024_Fisher_LinearTrend_0__100.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Fisher/trend_LinearTrend/cycle_0/ar_/test_artificial_1024_Fisher_LinearTrend_0__100.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 0, transform = "Fisher", sigma = 0.0, exog_count = 100, ar_order = 0);
37.857143
165
0.732075
947aa7732baa6ed8dd9a7b1e959706871194f51e
6,568
py
Python
tests/core/test_app_context.py
rohankumardubey/pdpipe
b27efa278eb29afdab740e0b53c2da6378a39897
[ "MIT" ]
null
null
null
tests/core/test_app_context.py
rohankumardubey/pdpipe
b27efa278eb29afdab740e0b53c2da6378a39897
[ "MIT" ]
null
null
null
tests/core/test_app_context.py
rohankumardubey/pdpipe
b27efa278eb29afdab740e0b53c2da6378a39897
[ "MIT" ]
null
null
null
"""Testing application context..""" import pickle from random import randint import pandas as pd import pytest from pdpipe.core import ( PdPipelineStage, AdHocStage, PdPipeline ) from pdpipe.basic_stages import ColDrop from pdpipe.util import out_of_place_col_insert from pdpipe.core import PdpApplication...
27.481172
65
0.633983
cf1639613b3372791f10f9bd4333bc3d02a55827
3,430
py
Python
examples/cormorant/train_qm9.py
everyday847/atom3d
96afeeca65f940bba46a55959daf80093c9fec04
[ "MIT" ]
null
null
null
examples/cormorant/train_qm9.py
everyday847/atom3d
96afeeca65f940bba46a55959daf80093c9fec04
[ "MIT" ]
null
null
null
examples/cormorant/train_qm9.py
everyday847/atom3d
96afeeca65f940bba46a55959daf80093c9fec04
[ "MIT" ]
null
null
null
# # Cormorant QM9 training script # from https://github.com/risilab/cormorant/blob/master/examples/train_qm9.py # import logging import torch from cormorant.data.collate import collate_fn from cormorant.data.utils import initialize_datasets from cormorant.engine import Engine from cormorant.engine import init_argpars...
39.425287
140
0.662099
82d3bf20d24a7242ee1a6bbb6e59efe9a3797d16
2,259
py
Python
backend/cliffordspottery_32759/urls.py
crowdbotics-apps/cliffordspottery-32759
f79f3f88aa16b000accc94113fe6db5f3f737efd
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/cliffordspottery_32759/urls.py
crowdbotics-apps/cliffordspottery-32759
f79f3f88aa16b000accc94113fe6db5f3f737efd
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/cliffordspottery_32759/urls.py
crowdbotics-apps/cliffordspottery-32759
f79f3f88aa16b000accc94113fe6db5f3f737efd
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""cliffordspottery_32759 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='hom...
35.857143
87
0.718459
9342b1a44d643a32fd6340ac68c897aff6c88738
33
py
Python
08_String/Step06/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
08_String/Step06/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
08_String/Step06/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
n = input().split() print(len(n))
16.5
19
0.606061
92749c30f4796330f7d1278377bd1f6e4a791b75
685
py
Python
tests/test_convert_value_class.py
zacharyburnett/TypePigeon
1e0b50c24f4bf3450b34c2d5afd5c628498df7bb
[ "MIT" ]
null
null
null
tests/test_convert_value_class.py
zacharyburnett/TypePigeon
1e0b50c24f4bf3450b34c2d5afd5c628498df7bb
[ "MIT" ]
null
null
null
tests/test_convert_value_class.py
zacharyburnett/TypePigeon
1e0b50c24f4bf3450b34c2d5afd5c628498df7bb
[ "MIT" ]
null
null
null
from enum import Enum import pytest from typepigeon import convert_value class ValueTest: def __init__(self, value: int): self.value = value def __eq__(self, other: 'ValueTest') -> bool: return self.value == other.value class EnumerationTest(Enum): test_1 = 'test_1' def test_convert...
20.757576
55
0.69635
88d0f0d7335e43fcd3bc669d561dd4a280c48fbc
2,094
py
Python
service/FrequencySummarizer.py
Ginxo/ml-techarticles-classifier
8294309d2ab7dbc065a5d1f0c777755ca606a0ab
[ "Apache-2.0" ]
null
null
null
service/FrequencySummarizer.py
Ginxo/ml-techarticles-classifier
8294309d2ab7dbc065a5d1f0c777755ca606a0ab
[ "Apache-2.0" ]
null
null
null
service/FrequencySummarizer.py
Ginxo/ml-techarticles-classifier
8294309d2ab7dbc065a5d1f0c777755ca606a0ab
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from heapq import nlargest from domain.TechArticlesConstants import TECH_LABEL, NON_TECH_LABEL, ENGLISH_STOP_WORDS class FrequencySummarizer: def __init__(self, min_cut=0.1, max_cut=0.9): self._min_cut = min_cut self._max_cut = max_cut self._stopwords =...
41.88
118
0.657116
228c55608a7e97dc53fe4859228f760475c505df
3,831
py
Python
spark_auto_mapper_fhir/backbone_elements/substance_polymer_starting_material.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/backbone_elements/substance_polymer_starting_material.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/backbone_elements/substance_polymer_starting_material.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from typing import Optional, TYPE_CHECKING from spark_auto_mapper_fhir.fhir_types.boolean import FhirBoolean from spark_auto_mapper_fhir.fhir_types.list import FhirList from spark_auto_mapper_fhir.fhir_types.string import FhirString from spark_auto_mapper_fhir.extensions.extension_ba...
41.193548
115
0.712086
20b0473cc2b324d341701c7caf103554c93c0c39
2,732
py
Python
astro/casa/uvaddsub.py
liweitianux/atoolbox
88d85c80d025e0fd6b7c8fad155dc3a1cdc8b992
[ "MIT" ]
4
2016-05-28T02:14:39.000Z
2019-07-10T06:58:33.000Z
astro/casa/uvaddsub.py
liweitianux/atoolbox
88d85c80d025e0fd6b7c8fad155dc3a1cdc8b992
[ "MIT" ]
1
2020-06-15T04:06:40.000Z
2020-06-15T04:06:40.000Z
astro/casa/uvaddsub.py
liweitianux/atoolbox
88d85c80d025e0fd6b7c8fad155dc3a1cdc8b992
[ "MIT" ]
3
2018-11-27T12:34:35.000Z
2020-08-20T01:03:48.000Z
#!casa-script # -*- mode: python -*- # # Copyright (c) 2017 Aaron LI <aly@aaronly.me> # MIT License # """ Copy the first MeasurementSet as the output MeasurementSet, and subtract/add the DATA from the second MeasurementSet. NOTE: The output MeasurementSet DATA column is altered directly. """ import sys import argpar...
29.695652
75
0.605783
959d77eb3c7761da18029a47581c57784470571e
38,891
py
Python
test/test_player.py
mglukhovsky/beets
889e30c056a609cf71c8c8200259520230545222
[ "MIT" ]
null
null
null
test/test_player.py
mglukhovsky/beets
889e30c056a609cf71c8c8200259520230545222
[ "MIT" ]
null
null
null
test/test_player.py
mglukhovsky/beets
889e30c056a609cf71c8c8200259520230545222
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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 t...
37.685078
79
0.568589
cf815f7c3734bc453e6d4967e353877d1ac21669
569
py
Python
tastore/__init__.py
Tas-Kit/tastore
81524aa143683d2e661dd68b5a341f2a20c519c9
[ "Apache-2.0" ]
null
null
null
tastore/__init__.py
Tas-Kit/tastore
81524aa143683d2e661dd68b5a341f2a20c519c9
[ "Apache-2.0" ]
null
null
null
tastore/__init__.py
Tas-Kit/tastore
81524aa143683d2e661dd68b5a341f2a20c519c9
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate db = SQLAlchemy() migrate = Migrate() def create_app(): app = Flask(__name__) # Load common settings app.config.from_object('settings') # Register blueprints from .views import register_blueprints ...
19.62069
47
0.695958
38b03a3f65ba23ab0f79ef4d970b2455a170ed19
3,747
py
Python
step7/src/logic/BeaconsCommandSet.py
pip-services-samples/sample-beacons-python
a117054b1029a6284b9eb304f232088bb997456c
[ "MIT" ]
null
null
null
step7/src/logic/BeaconsCommandSet.py
pip-services-samples/sample-beacons-python
a117054b1029a6284b9eb304f232088bb997456c
[ "MIT" ]
null
null
null
step7/src/logic/BeaconsCommandSet.py
pip-services-samples/sample-beacons-python
a117054b1029a6284b9eb304f232088bb997456c
[ "MIT" ]
1
2020-08-03T13:12:26.000Z
2020-08-03T13:12:26.000Z
# -*- coding: utf-8 -*- """ step7.logic.BeaconsCommandSet ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BeaconsCommandSet class :copyright: Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ from pip_services3_commons.commands import...
43.569767
115
0.705898
28cdcc8d37c3348692801e8cbbcb3996c093ab9e
81
py
Python
plugins/microsoft_atp/komand_microsoft_atp/actions/get_file_id_from_alert_id/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/microsoft_atp/komand_microsoft_atp/actions/get_file_id_from_alert_id/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/microsoft_atp/komand_microsoft_atp/actions/get_file_id_from_alert_id/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import GetFileIdFromAlertId
27
40
0.802469
ff59f3aac0bcb752c62292c1783a21515af5dd07
16,414
py
Python
sympy/physics/control/tests/test_control_plots.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/physics/control/tests/test_control_plots.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/physics/control/tests/test_control_plots.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
from sympy.core.numbers import I from sympy.core.symbol import Dummy from sympy.functions.elementary.complexes import (Abs, arg) from sympy.functions.elementary.exponential import log from sympy.abc import s, p, a from sympy.external import import_module from sympy.physics.control.control_plots import \ (pol...
54.896321
129
0.709394
dee0e3c764907859f25bd4ccaff065abc7fdf211
9,190
py
Python
Tests/Marketplace/zip_packs.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Tests/Marketplace/zip_packs.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Tests/Marketplace/zip_packs.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import argparse import json import os import shutil import sys import logging from packaging.version import Version from zipfile import ZipFile from Tests.Marketplace.marketplace_constants import IGNORED_FILES, PACKS_FULL_PATH from Tests.scripts.utils.log_util import install_logging from demisto_sdk.commands.common.too...
39.612069
117
0.647987
42baa083188a914538e0da55cf0f41223aea1a41
419
py
Python
corehq/sql_accessors/migrations/0046_livequery_sql.py
dannyroberts/commcare-hq
4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598
[ "BSD-3-Clause" ]
null
null
null
corehq/sql_accessors/migrations/0046_livequery_sql.py
dannyroberts/commcare-hq
4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598
[ "BSD-3-Clause" ]
null
null
null
corehq/sql_accessors/migrations/0046_livequery_sql.py
dannyroberts/commcare-hq
4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-06-28 14:58 from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations from corehq.sql_db.operations import noop_migration class Migration(migrations.Migration): dependencies = [ ('sql_acce...
20.95
59
0.718377
9ac6414c4e1bb80d7cdfc33952a42be729b69a94
11,097
py
Python
idrh-workshop-code/idrhworkshopcode.py
menzenski/python-tools
350a1e8c7d74e16086a2733edfc7d710c15a2cdd
[ "CC-BY-4.0" ]
3
2015-04-11T00:42:16.000Z
2015-10-05T00:21:01.000Z
idrh-workshop-code/idrhworkshopcode.py
menzenski/python-tools
350a1e8c7d74e16086a2733edfc7d710c15a2cdd
[ "CC-BY-4.0" ]
null
null
null
idrh-workshop-code/idrhworkshopcode.py
menzenski/python-tools
350a1e8c7d74e16086a2733edfc7d710c15a2cdd
[ "CC-BY-4.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- ########## ## idrhworkshopcode.py Version 1.0 (2015-02-16) ## ## Code for the workshop "Introduction to Natural Language Processing ## with Python and the Natural Language Toolkit" ## ## Original author: Matthew Menzenski (menzenski@ku.edu) ## ## License: CC-BY-4.0 ( http...
35.228571
408
0.61386
f718504c718d307f86f64b15bbb585f07e359260
1,681
py
Python
source/sam_spot_bot_function/app.py
liangfu/spot-tagging-bot-for-digital-assets
81b2a960a87da988904250b1f605e052e7e2c7a8
[ "Apache-2.0" ]
19
2020-08-26T02:29:55.000Z
2022-01-21T15:26:31.000Z
source/sam_spot_bot_function/app.py
liangfu/spot-tagging-bot-for-digital-assets
81b2a960a87da988904250b1f605e052e7e2c7a8
[ "Apache-2.0" ]
2
2020-09-02T07:22:26.000Z
2020-11-17T06:41:20.000Z
source/sam_spot_bot_function/app.py
liangfu/spot-tagging-bot-for-digital-assets
81b2a960a87da988904250b1f605e052e7e2c7a8
[ "Apache-2.0" ]
6
2020-09-14T06:56:59.000Z
2021-10-20T14:46:36.000Z
import boto3 import json import os from sam_spot_bot_create_job.bot_dao import BotDao # Global variables are reused across execution contexts (if available) session = boto3.Session() def lambda_handler(event, context): """ Sample json in API request body - { "name": name, "fi...
27.112903
70
0.56395
bf7cd5e19978561dde05c3b9948c22d362ab831e
40,365
py
Python
tests/scancode/test_cli.py
doc22940/scancode-toolk
588b9a9411730e99d763d715ae9f38575744aaee
[ "Apache-2.0", "CC0-1.0" ]
1
2020-06-24T16:03:52.000Z
2020-06-24T16:03:52.000Z
tests/scancode/test_cli.py
doc22940/scancode-toolk
588b9a9411730e99d763d715ae9f38575744aaee
[ "Apache-2.0", "CC0-1.0" ]
1
2021-06-02T02:54:43.000Z
2021-06-02T02:54:43.000Z
tests/scancode/test_cli.py
hwpplayers/scancode-toolkit
72850bd57a1a841e5a6a6e4120223a00c4189046
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# # Copyright (c) 2018 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
43.403226
144
0.713217
61ff76aa3f702a9d28857befe68e59095d7c4efa
1,664
py
Python
venv/Lib/site-packages/sklearn/tests/test_min_dependencies_readme.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/sklearn/tests/test_min_dependencies_readme.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/sklearn/tests/test_min_dependencies_readme.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
"""Tests for the minimum dependencies in the README.rst file.""" import os import re import platform from pathlib import Path import pytest import sklearn from sklearn._min_dependencies import dependent_packages from sklearn.utils.fixes import parse_version def test_min_dependencies_readme(): # ...
31.396226
85
0.618389
b664e87814b97496c82bdff5bf4f964d0eb11020
7,339
py
Python
color.py
alexandergiles/tmm
5cdf2c1ec70d5f09ab4922193d7b5855f9803807
[ "MIT" ]
102
2015-03-01T22:10:57.000Z
2022-03-18T08:24:22.000Z
color.py
alexandergiles/tmm
5cdf2c1ec70d5f09ab4922193d7b5855f9803807
[ "MIT" ]
10
2015-03-29T12:41:32.000Z
2022-02-16T16:41:48.000Z
color.py
alexandergiles/tmm
5cdf2c1ec70d5f09ab4922193d7b5855f9803807
[ "MIT" ]
70
2015-03-28T05:48:33.000Z
2022-03-31T00:09:41.000Z
# -*- coding: utf-8 -*- """ Functions to calculate the color of a multilayer thin film under reflected light. A perfect mirror will look white, because we imagine seeing the white light source ("illuminant") reflected in it. A half-reflective mirror will be gray, a non-reflective surface will be black, etc. See tm...
41.937143
126
0.666576
2be5f6ce6d720a73d4553aad8c78acd6ea62f388
40,455
py
Python
research/object_detection/meta_architectures/ssd_meta_arch.py
linbojin/models
15b333606ac5b1077bf53d65d5ce40d421f90c5b
[ "Apache-2.0" ]
10
2019-03-22T13:15:17.000Z
2021-12-30T12:03:46.000Z
research/object_detection/meta_architectures/ssd_meta_arch.py
linbojin/models
15b333606ac5b1077bf53d65d5ce40d421f90c5b
[ "Apache-2.0" ]
10
2020-01-28T22:51:40.000Z
2022-03-11T23:52:31.000Z
ros/src/tl_detector/light_classification/object_detection/meta_architectures/ssd_meta_arch.py
chapola/CarND-Capstone-T3
9331a6545ba1665d79fd8d79809b2f00fe8d5263
[ "MIT" ]
43
2018-12-28T15:01:44.000Z
2022-02-15T06:23:05.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...
46.234286
80
0.700779
2753072ed018365a0d2244e5bd7d694f9fdf89d0
144
py
Python
pyramid_rest_route/__init__.py
rickmak/pyramid_resources
b497704e23916989ef690cfb1c729fa94bd2266d
[ "MIT" ]
null
null
null
pyramid_rest_route/__init__.py
rickmak/pyramid_resources
b497704e23916989ef690cfb1c729fa94bd2266d
[ "MIT" ]
null
null
null
pyramid_rest_route/__init__.py
rickmak/pyramid_resources
b497704e23916989ef690cfb1c729fa94bd2266d
[ "MIT" ]
2
2015-07-14T06:59:53.000Z
2019-05-28T08:50:35.000Z
from .route import add_rest_route from .view import RestView def includeme(config): config.add_directive('add_rest_route', add_rest_route)
24
58
0.805556
fc97c8835837d759243f6c1b66ff404c44287929
4,759
py
Python
neuralmonkey/encoders/facebook_conv.py
orangeGoran/neuralmonkey-experiments
192efdcc60cfc2d15cc3f0e4461ce3234b4da6fc
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/encoders/facebook_conv.py
orangeGoran/neuralmonkey-experiments
192efdcc60cfc2d15cc3f0e4461ce3234b4da6fc
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/encoders/facebook_conv.py
orangeGoran/neuralmonkey-experiments
192efdcc60cfc2d15cc3f0e4461ce3234b4da6fc
[ "BSD-3-Clause" ]
null
null
null
"""From the paper Convolutional Sequence to Sequence Learning. http://arxiv.org/abs/1705.03122 """ import tensorflow as tf import numpy as np from typeguard import check_argument_types from neuralmonkey.model.model_part import ModelPart, FeedDict, InitializerSpecs from neuralmonkey.logging import log from neuralmonk...
37.472441
79
0.647615
42ef9661dd8f61f85d23afacd5103ee792ae9b81
841
py
Python
setup.py
mayotq/blockchain_explorer_clt
2df1473d6653f8fbdcbb457c9239ed8a09d290f0
[ "MIT" ]
null
null
null
setup.py
mayotq/blockchain_explorer_clt
2df1473d6653f8fbdcbb457c9239ed8a09d290f0
[ "MIT" ]
null
null
null
setup.py
mayotq/blockchain_explorer_clt
2df1473d6653f8fbdcbb457c9239ed8a09d290f0
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages #python3 setup.py sdist bdist_wheel #twine upload dist/blockcat-0.0.1* VERSION = '0.4.3' setup(name='blockcat', version=VERSION, description="a tiny blockchain explorer supporting different blockchains", long_description='just enjoy', classifiers=[...
30.035714
95
0.648038
72eba3e4caaf4ace9478f1e784c651f49d27d896
22,060
py
Python
awpa/pgen2/tokenize.py
pombredanne/awpa
507a82e74c7053a6c8dce009488d99c8309c9c82
[ "MIT" ]
null
null
null
awpa/pgen2/tokenize.py
pombredanne/awpa
507a82e74c7053a6c8dce009488d99c8309c9c82
[ "MIT" ]
null
null
null
awpa/pgen2/tokenize.py
pombredanne/awpa
507a82e74c7053a6c8dce009488d99c8309c9c82
[ "MIT" ]
null
null
null
# Part of the awpa package: https://github.com/habnabit/awpa # See LICENSE for copyright. # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation. # All rights reserved. """Tokenization help for Python programs. generate_tokens(readline) is a generator that breaks a stream of text into Python t...
37.013423
91
0.51029
a03a4a4f951e4437c4d540c3a7f77207e6ce218b
2,044
py
Python
games/planetization/bots/python3/my_bot.py
matjazp/planet-lia
ecb293d6d3c6719f133c7e543df5ae07f445d8c2
[ "Apache-2.0" ]
13
2019-09-10T15:12:06.000Z
2022-02-27T17:19:05.000Z
games/planetization/bots/python3/my_bot.py
matjazp/planet-lia
ecb293d6d3c6719f133c7e543df5ae07f445d8c2
[ "Apache-2.0" ]
91
2019-09-10T15:24:54.000Z
2019-11-24T18:59:30.000Z
games/planetization/bots/python3/my_bot.py
matjazp/planet-lia
ecb293d6d3c6719f133c7e543df5ae07f445d8c2
[ "Apache-2.0" ]
5
2019-09-21T07:50:04.000Z
2019-11-11T10:55:56.000Z
import asyncio import random from core.bot import Bot from core.networking_client import connect from core.enums import * # Example Python3 bot implementation for Planetization game. class MyBot(Bot): # Called only once before the match starts. It holds the # data that you may need to setup your bot. de...
40.078431
101
0.65998
1b65a19bba4469e3732fffdf2127283052a0b351
1,280
py
Python
tests/synthdefs/test_synthdefs_SynthDef___str__.py
butayama/supriya
0c197324ecee4232381221880d1f40e109bb756c
[ "MIT" ]
191
2015-11-13T02:28:42.000Z
2022-03-29T10:26:44.000Z
tests/synthdefs/test_synthdefs_SynthDef___str__.py
butayama/supriya
0c197324ecee4232381221880d1f40e109bb756c
[ "MIT" ]
130
2016-01-04T16:59:02.000Z
2022-02-26T15:37:20.000Z
tests/synthdefs/test_synthdefs_SynthDef___str__.py
butayama/supriya
0c197324ecee4232381221880d1f40e109bb756c
[ "MIT" ]
22
2016-05-04T10:32:16.000Z
2022-02-26T19:22:45.000Z
import uqbar.strings import supriya.synthdefs import supriya.ugens def test_multi_value_parameters(): with supriya.synthdefs.SynthDefBuilder(amp=0.1, freqs=[300, 400], out=0) as builder: sines = supriya.ugens.SinOsc.ar(frequency=builder["freqs"]) sines = supriya.ugens.Mix.new(sines) sines...
34.594595
88
0.523438
74e301d90ff29c63e921fbb51bb70c3ecd9208ed
4,837
py
Python
grr/gui/api_auth_manager.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
grr/gui/api_auth_manager.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
1
2018-05-08T21:15:51.000Z
2018-05-08T21:15:51.000Z
grr/gui/api_auth_manager.py
panhania/grr
fe16a7311a528e31fe0e315a880e98273b8df960
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """API Authorization Manager.""" import logging import yaml from grr import config from grr.gui import api_call_router from grr.lib import registry from grr.server.authorization import auth_manager class Error(Exception): """Base class for auth manager exception.""" class InvalidAPIAuth...
29.138554
80
0.675212
25ea9bcb795ff9b3bfa684e926345441047dfc80
468
py
Python
sis-api/swagger_server/encoder.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
sis-api/swagger_server/encoder.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
sis-api/swagger_server/encoder.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
from dataclasses import is_dataclass from connexion.apps.flask_app import FlaskJSONEncoder from core.utils.serialization import serialize from swagger_server.models.base_model_ import Model as SwaggerModel class JSONEncoder(FlaskJSONEncoder): include_nulls = True def default(self, o): if is_datacla...
27.529412
67
0.769231
0a8c22ceb8dd4102c2aee44d93c075ab2b778966
15,082
py
Python
fixedeffect/fe/did.py
rphilipzhang/FixedEffectModel
017a6f555fff44392d33e45e26c406d02ddde109
[ "BSD-3-Clause" ]
null
null
null
fixedeffect/fe/did.py
rphilipzhang/FixedEffectModel
017a6f555fff44392d33e45e26c406d02ddde109
[ "BSD-3-Clause" ]
null
null
null
fixedeffect/fe/did.py
rphilipzhang/FixedEffectModel
017a6f555fff44392d33e45e26c406d02ddde109
[ "BSD-3-Clause" ]
null
null
null
from ..utils.DemeanDataframe import demean_dataframe from ..utils.FormTransfer import form_transfer from ..utils.CalDf import cal_df from ..utils.CalFullModel import cal_fullmodel from ..utils.WaldTest import waldtest from ..utils.OLSFixed import OLSFixed from ..utils.ClusterErr import clustered_error, is_nested,min_cl...
37.610973
126
0.559541
87bff167eb3ade4a59c80822d4b665cd6863b103
5,797
py
Python
refactorings/pullup_constructor.py
sinashk78/CodART
9be426f3925d95a7e719cbc42e3a45fabcfea451
[ "MIT" ]
1
2021-10-10T23:56:49.000Z
2021-10-10T23:56:49.000Z
refactorings/pullup_constructor.py
pouorix/CodART
84b35a5a14e583d88319d7f6c2de8dc3b3dc83b2
[ "MIT" ]
null
null
null
refactorings/pullup_constructor.py
pouorix/CodART
84b35a5a14e583d88319d7f6c2de8dc3b3dc83b2
[ "MIT" ]
1
2021-08-21T11:25:49.000Z
2021-08-21T11:25:49.000Z
""" ## Introduction When subclasses grow and get developed separately, your code may have constructors that perform similar work. Pull up constructor refactoring removes the repetitive method from subclasses and moves it to a superclass. ## Pre and Post Conditions ### Pre Conditions: 1. The source package, class an...
44.937984
130
0.601863
d20446e4c638e725b905573a6d925c6f8ad93d05
4,536
py
Python
bob/db/ijbc/driver.py
bioidiap/bob.db.ijbc
347321c8a6bd610f9ab9fb8f115a6576c65b2807
[ "BSD-3-Clause" ]
null
null
null
bob/db/ijbc/driver.py
bioidiap/bob.db.ijbc
347321c8a6bd610f9ab9fb8f115a6576c65b2807
[ "BSD-3-Clause" ]
null
null
null
bob/db/ijbc/driver.py
bioidiap/bob.db.ijbc
347321c8a6bd610f9ab9fb8f115a6576c65b2807
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 : """Commands this database can respond to. """ import os import sys import pkg_resources from bob.db.base.driver import Interface as BaseInterface def checkfiles(args): """Checks existence of files based on your criteria""" from .query import Database ...
35.162791
319
0.611332
c4ee58f61bebe1aa310d232a55085c6b20ee55d0
19,736
py
Python
data/dataset.py
haverford-cs/cs360-project-vjmoriarty
b05c041aeb8fe6e7cb21c4e02865337f1709c3d8
[ "MIT" ]
null
null
null
data/dataset.py
haverford-cs/cs360-project-vjmoriarty
b05c041aeb8fe6e7cb21c4e02865337f1709c3d8
[ "MIT" ]
3
2021-08-25T15:03:44.000Z
2022-02-10T03:25:23.000Z
data/dataset.py
haverford-cs/cs360-project-vjmoriarty
b05c041aeb8fe6e7cb21c4e02865337f1709c3d8
[ "MIT" ]
1
2020-12-17T23:21:41.000Z
2020-12-17T23:21:41.000Z
""" Dataset related functions. Authors: Vincent Yu Date: 11/28/2020 """ import os import pickle import numpy as np import pandas as pd import tensorflow as tf from data.info import population_by_state, nearest_states from models.settings import update_dset from utils.utils import correct_datetime # COVID data csv p...
37.664122
80
0.566021
5fb89911776c9bf68889c1003a204c66ef230909
1,050
py
Python
rl_coach/tests/test_checkpoint.py
jl45621/coach
9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084
[ "Apache-2.0" ]
2
2019-03-05T09:30:38.000Z
2019-08-15T08:10:59.000Z
rl_coach/tests/test_checkpoint.py
jl45621/coach
9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084
[ "Apache-2.0" ]
null
null
null
rl_coach/tests/test_checkpoint.py
jl45621/coach
9a895a1ac73aff44b2e6eb8e4d01e8ec35ceb084
[ "Apache-2.0" ]
null
null
null
import os import pytest import tempfile from rl_coach import checkpoint @pytest.mark.unit_test def test_get_checkpoint_state(): files = ['4.test.ckpt.ext', '2.test.ckpt.ext', '3.test.ckpt.ext', '1.test.ckpt.ext', 'prefix.10.test.ckpt.ext'] with tempfile.TemporaryDirectory() as temp_dir: [open(os.path...
42
115
0.691429
1eab67dc20e229f1ec6f78d2cd962a2fc700635b
9,729
py
Python
test/test_fcm_plugin.py
linkmauve/apprise
76700bfa1ddcb2812d9ed14dfa7736125bcd346e
[ "MIT" ]
4,764
2018-02-02T18:17:06.000Z
2022-03-31T20:41:13.000Z
test/test_fcm_plugin.py
linkmauve/apprise
76700bfa1ddcb2812d9ed14dfa7736125bcd346e
[ "MIT" ]
504
2017-11-26T15:56:14.000Z
2022-03-31T22:38:49.000Z
test/test_fcm_plugin.py
linkmauve/apprise
76700bfa1ddcb2812d9ed14dfa7736125bcd346e
[ "MIT" ]
217
2018-05-22T14:29:20.000Z
2022-03-28T06:24:46.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Chris Caron <lead2gold@gmail.com> # All rights reserved. # # This code is licensed under the MIT License. # # 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 th...
31.898361
79
0.675609
ea1df8c680999387c634d093288d294c776c8c40
10,207
py
Python
ryu/services/protocols/bgp/operator/views/base.py
qqqqqqww/ryu
1c008060fa3dab51c3a59c1485a7529b13cf0dd1
[ "Apache-2.0" ]
975
2015-01-03T02:30:13.000Z
2020-05-07T14:01:48.000Z
ryu/services/protocols/bgp/operator/views/base.py
DiegoRossiMafioletti/ryu
6f906e72c92e10bd0264c9b91a2f7bb85b97780c
[ "Apache-2.0" ]
66
2020-05-22T21:55:42.000Z
2022-03-31T12:35:04.000Z
ryu/services/protocols/bgp/operator/views/base.py
DiegoRossiMafioletti/ryu
6f906e72c92e10bd0264c9b91a2f7bb85b97780c
[ "Apache-2.0" ]
763
2015-01-01T03:38:43.000Z
2020-05-06T15:46:09.000Z
""" This module's purpose is to enable us to present internals of objects in well-defined way to operator. To do this we can define "views" on some objects. View is a definition of how to present object and relations to other objects which also have their views defined. By using views we can avoid making all interesti...
32.819936
79
0.647399
7b21322110919882eaab4884a106efb1f892dfed
6,351
py
Python
tests/test_logs.py
HearthSim/python-hslog
fd44f10947029b9821a8f9c3ab2cf4362b05eac4
[ "MIT" ]
40
2017-07-02T21:28:31.000Z
2022-03-30T07:41:37.000Z
tests/test_logs.py
HearthSim/python-hslog
fd44f10947029b9821a8f9c3ab2cf4362b05eac4
[ "MIT" ]
9
2017-08-27T13:13:32.000Z
2022-01-24T17:10:38.000Z
tests/test_logs.py
HearthSim/python-hslog
fd44f10947029b9821a8f9c3ab2cf4362b05eac4
[ "MIT" ]
15
2017-07-17T11:38:10.000Z
2021-08-07T18:56:31.000Z
import pytest from hearthstone.enums import FormatType, GameType from hslog import LogParser, packets from hslog.exceptions import MissingPlayerData from hslog.export import EntityTreeExporter, FriendlyPlayerExporter from hslog.packets import TagChange from hslog.player import InconsistentPlayerIdError from .conftest...
27.855263
92
0.790112
acac3061b562abf28c82fc92fe297d8f13637d47
2,950
py
Python
src/fairyimage/color.py
Sillte/fairyimage
1b84136984d392b187712333064da707e42bbb6e
[ "MIT" ]
null
null
null
src/fairyimage/color.py
Sillte/fairyimage
1b84136984d392b187712333064da707e42bbb6e
[ "MIT" ]
null
null
null
src/fairyimage/color.py
Sillte/fairyimage
1b84136984d392b187712333064da707e42bbb6e
[ "MIT" ]
null
null
null
""" Color Class. As for channel values, there are two way of ranges. * [0, 1] * [0, 255] Fairies attempt to guess which format you try to specify, though handling of 1 may become wrong. Internally, ``alpha`` is kept in [0, 1] and RGB are kept in [0, 255]. """ from collections.abc import Sequence import json cl...
27.830189
96
0.574237
f4c42af7cb4609e0287f9565148d096143520135
566
py
Python
contrib/gunicorn.py
feiynagly/netbox
d364bbbaa6ee4f2a19015d07dd0de855628befb4
[ "Apache-2.0" ]
1
2021-06-29T06:19:21.000Z
2021-06-29T06:19:21.000Z
contrib/gunicorn.py
feiynagly/netbox
d364bbbaa6ee4f2a19015d07dd0de855628befb4
[ "Apache-2.0" ]
2
2021-09-08T00:50:06.000Z
2022-01-13T01:06:14.000Z
contrib/gunicorn.py
feiynagly/netbox
d364bbbaa6ee4f2a19015d07dd0de855628befb4
[ "Apache-2.0" ]
1
2021-05-11T07:10:44.000Z
2021-05-11T07:10:44.000Z
command = '/usr/bin/gunicorn' pythonpath = '/home/netbox/netbox' user = 'root' # The IP address (typically localhost) and port that the Netbox WSGI process should listen on bind = '127.0.0.1:8080' # Number of gunicorn workers to spawn. This should typically be 2n+1, where # n is the number of CPU cores present. worke...
26.952381
93
0.75265
34222a1b4a9db716b2a5cf3a7164386166694afc
1,466
py
Python
mqtt-mongo-sample/mqtt_client/src/models/UserManager.py
ImAFK/iSTrack
4cb3037b9f2ae9c58ffd477efcdbf11b553f073f
[ "MIT" ]
2
2020-06-29T15:04:42.000Z
2020-07-26T10:44:43.000Z
mqtt-mongo-sample/mqtt_client/src/models/UserManager.py
ImAFK/iSTrack
4cb3037b9f2ae9c58ffd477efcdbf11b553f073f
[ "MIT" ]
3
2020-06-16T04:09:31.000Z
2021-05-11T18:41:29.000Z
mqtt-mongo-sample/mqtt_client/src/models/UserManager.py
ImAFK/iSTrack
4cb3037b9f2ae9c58ffd477efcdbf11b553f073f
[ "MIT" ]
null
null
null
from mongoengine import * from models.user import User import os from dotenv import load_dotenv # Get the path to the directory this file is in BASEDIR = os.path.abspath(os.path.dirname(__file__),) PATH = os.path.join(BASEDIR, '..','.env') # Connect the path with your '.env' file name load_dotenv(PATH) class UserMana...
28.192308
78
0.613915
218a84b24852234167bbfa910642f2539767ca78
37,634
py
Python
homeassistant/components/knx/schema.py
skynetua/core
e5e1e7b7e04288c18b119764ad3ad3b7123d22c2
[ "Apache-2.0" ]
1
2021-12-04T17:27:32.000Z
2021-12-04T17:27:32.000Z
homeassistant/components/knx/schema.py
skynetua/core
e5e1e7b7e04288c18b119764ad3ad3b7123d22c2
[ "Apache-2.0" ]
49
2020-10-15T06:46:51.000Z
2022-03-31T06:02:58.000Z
homeassistant/components/knx/schema.py
skynetua/core
e5e1e7b7e04288c18b119764ad3ad3b7123d22c2
[ "Apache-2.0" ]
null
null
null
"""Voluptuous schemas for the KNX integration.""" from __future__ import annotations from abc import ABC from collections import OrderedDict from typing import Any, ClassVar, Final import voluptuous as vol from xknx import XKNX from xknx.devices.climate import SetpointShiftMode from xknx.dpt import DPTBase, DPTNumeri...
39.490031
112
0.65098
60830b3827d5c1a333382e33fbb481669471f7d7
1,988
py
Python
examples/ad_manager/v202008/user_team_association_service/get_all_user_team_associations.py
bx2/googleads-python-lib
72481b1dd05266a760034ef853596e014cc48805
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v202008/user_team_association_service/get_all_user_team_associations.py
bx2/googleads-python-lib
72481b1dd05266a760034ef853596e014cc48805
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v202008/user_team_association_service/get_all_user_team_associations.py
bx2/googleads-python-lib
72481b1dd05266a760034ef853596e014cc48805
[ "Apache-2.0" ]
1
2021-06-23T09:15:34.000Z
2021-06-23T09:15:34.000Z
#!/usr/bin/env python # # Copyright 2016 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 requir...
37.509434
80
0.731388
01f734beb8fdaaceca6307771804b3dfd9e5e7c1
18,989
py
Python
tests/python/unittest/test_target_codegen_vulkan.py
huanmei9/tvm
4df5512ef03224261d47870747773b40b5b0c94f
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
3
2021-05-08T17:04:39.000Z
2021-07-11T17:40:54.000Z
tests/python/unittest/test_target_codegen_vulkan.py
delldu/tvm
d9ec031ec33e046044fd9521f02ed63213ad07b8
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tests/python/unittest/test_target_codegen_vulkan.py
delldu/tvm
d9ec031ec33e046044fd9521f02ed63213ad07b8
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
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 u...
33.788256
99
0.606404
f6c419984506287e78025bc7e8d28562ccb32e66
1,029
py
Python
voting_server.py
turtle11311/fault-tolerance-pr1
1b363fdcbecffd0dafda1558eec2205ef9c6467f
[ "MIT" ]
null
null
null
voting_server.py
turtle11311/fault-tolerance-pr1
1b363fdcbecffd0dafda1558eec2205ef9c6467f
[ "MIT" ]
null
null
null
voting_server.py
turtle11311/fault-tolerance-pr1
1b363fdcbecffd0dafda1558eec2205ef9c6467f
[ "MIT" ]
null
null
null
from concurrent import futures import logging import grpc import voting_pb2 import voting_pb2_grpc class Voting(voting_pb2_grpc.eVotingServicer): def PreAuth(self, request, context): return voting_pb2.Challenge(value=b'00001') def Auth(self, request, context): return voting_pb2.AuthToken(valu...
31.181818
154
0.734694
6808e1af5f07e9615f504bf8922e28899edc6a8e
8,233
py
Python
resources/test/test_Utils.py
Spoil001/plugin.video.telekom-sport
b2458efdcda679b75859f2686dd7b29ac67198c2
[ "MIT" ]
5
2017-11-03T07:55:02.000Z
2019-07-11T12:21:03.000Z
resources/test/test_Utils.py
Spoil001/plugin.video.telekom-sport
b2458efdcda679b75859f2686dd7b29ac67198c2
[ "MIT" ]
6
2017-08-12T05:13:48.000Z
2018-11-01T13:42:08.000Z
resources/test/test_Utils.py
Spoil001/plugin.video.telekom-sport
b2458efdcda679b75859f2686dd7b29ac67198c2
[ "MIT" ]
5
2017-11-02T14:45:28.000Z
2020-07-07T05:11:49.000Z
# -*- coding: utf-8 -*- # Module: Utils # Author: asciidisco # Created on: 24.07.2017 # License: MIT https://goo.gl/xF5sC4 """Tests for the `Utils` module""" import unittest import mock from resources.lib.Utils import Utils from resources.lib.Constants import Constants from resources.test.mocks.MockAddon import MockA...
39.581731
107
0.639378
a73c10c6b6bea545e04a373f90d3cbe4594aba2f
1,445
py
Python
scripts/pullout.py
yuskyamada/EDMAN
542ac53fcc95a70824191da0b392f67c38a310e6
[ "MIT" ]
null
null
null
scripts/pullout.py
yuskyamada/EDMAN
542ac53fcc95a70824191da0b392f67c38a310e6
[ "MIT" ]
null
null
null
scripts/pullout.py
yuskyamada/EDMAN
542ac53fcc95a70824191da0b392f67c38a310e6
[ "MIT" ]
1
2019-11-01T00:40:18.000Z
2019-11-01T00:40:18.000Z
import sys import signal import argparse from edman import DB # from edman import DB, JsonManager from action import Action # Ctrl-Cを押下された時の対策 signal.signal(signal.SIGINT, lambda sig, frame: sys.exit('\n')) # コマンドライン引数処理 parser = argparse.ArgumentParser( description='特定コレクション内のembデータの特定のキーに対してref化を行うスクリプト') parse...
28.333333
88
0.671972
3047fed620de745b1e69c62274a759f10affd58e
41,273
py
Python
test/run_test.py
vladap2013/pytorch
30367773056de95e006107d82ddaa3db5eeaa05a
[ "Intel" ]
1
2021-06-17T13:02:45.000Z
2021-06-17T13:02:45.000Z
test/run_test.py
vladap2013/pytorch
30367773056de95e006107d82ddaa3db5eeaa05a
[ "Intel" ]
null
null
null
test/run_test.py
vladap2013/pytorch
30367773056de95e006107d82ddaa3db5eeaa05a
[ "Intel" ]
null
null
null
#!/usr/bin/env python import argparse import copy from datetime import datetime import json import modulefinder import os import shutil import signal import subprocess import sys import tempfile import torch from torch.utils import cpp_extension from torch.testing._internal.common_utils import TEST_WITH_ROCM, shell, ...
37.692237
121
0.662734
b8abb48bd897b4d88df0706b2f6f3159eb723f31
2,276
py
Python
notebooks/trttest.py
bunderhi/torch2trt
fa5e31e742a0f0c9a9ee38909a6fa56bb07ba96d
[ "MIT" ]
null
null
null
notebooks/trttest.py
bunderhi/torch2trt
fa5e31e742a0f0c9a9ee38909a6fa56bb07ba96d
[ "MIT" ]
null
null
null
notebooks/trttest.py
bunderhi/torch2trt
fa5e31e742a0f0c9a9ee38909a6fa56bb07ba96d
[ "MIT" ]
null
null
null
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% import torch import torch2trt import matplotlib.pyplot as plt import cv2 # %% # Load the jetracer trained model model = torch.load('/models/run10/weights.pt') # %% model = model.cuda().eval().half() # %% class ModelWrapper...
22.097087
115
0.674868
ac87dcc5c2c90555e62c4f63f0a05c9f5b4a6862
2,576
py
Python
bulletin_board_bot/services/alchemy/scripts/insert_test_data.py
t3m8ch/bulletin-board-bot
c76dd041fdfc6de55f96cd88bc7cf16a2aae30a6
[ "MIT" ]
null
null
null
bulletin_board_bot/services/alchemy/scripts/insert_test_data.py
t3m8ch/bulletin-board-bot
c76dd041fdfc6de55f96cd88bc7cf16a2aae30a6
[ "MIT" ]
null
null
null
bulletin_board_bot/services/alchemy/scripts/insert_test_data.py
t3m8ch/bulletin-board-bot
c76dd041fdfc6de55f96cd88bc7cf16a2aae30a6
[ "MIT" ]
null
null
null
import asyncio import random from time import sleep from sqlalchemy import insert from sqlalchemy.ext.asyncio import create_async_engine from bulletin_board_bot.config import cfg from bulletin_board_bot.services.alchemy import AdTable text = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. " \ "Aene...
43.661017
88
0.688276
8e9edab55baf8aefd2f3a6657e415e3e5cd2bc7a
1,765
py
Python
python/paddle/fluid/tests/unittests/test_lgamma_op.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/fluid/tests/unittests/test_lgamma_op.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
1
2022-01-28T07:23:22.000Z
2022-01-28T07:23:22.000Z
python/paddle/fluid/tests/unittests/test_lgamma_op.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
29.915254
80
0.675921
f8463e44697bee6e1a60afb05ee803b4dea8ef40
4,425
py
Python
ceilometer/collector.py
rackerlabs/instrumented-ceilometer
6ac5215ac0476120d9c99adcabc9cad0d32963da
[ "Apache-2.0" ]
null
null
null
ceilometer/collector.py
rackerlabs/instrumented-ceilometer
6ac5215ac0476120d9c99adcabc9cad0d32963da
[ "Apache-2.0" ]
null
null
null
ceilometer/collector.py
rackerlabs/instrumented-ceilometer
6ac5215ac0476120d9c99adcabc9cad0d32963da
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2012-2013 eNovance <licensing@enovance.com> # # Author: Julien Danjou <julien@danjou.info> # # 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 # # h...
38.146552
78
0.632316
8b2c8a94e002172ee19a81f8d12f0e595717f8d9
73,775
py
Python
website_elements_v4.py
Tejas-Haritsa-vk/Covid_Forecasts_Heroku_App
9ec5b882b8435a9d9a7ea4a372a57989992e000c
[ "MIT" ]
null
null
null
website_elements_v4.py
Tejas-Haritsa-vk/Covid_Forecasts_Heroku_App
9ec5b882b8435a9d9a7ea4a372a57989992e000c
[ "MIT" ]
null
null
null
website_elements_v4.py
Tejas-Haritsa-vk/Covid_Forecasts_Heroku_App
9ec5b882b8435a9d9a7ea4a372a57989992e000c
[ "MIT" ]
null
null
null
import pandas as pd import plotly.graph_objects as go def embbed_graph(region): updatemenus = list([ dict(active=0, buttons=list([ dict(label = 'Confirmed Cases-Cumilative', method = 'update', args = [{'visible': [True, True, True, True, True, True, True, Fal...
45.260736
670
0.681288
b964c4153b11faca5a4b0d1c80e485466fc115e3
1,464
py
Python
fobi_custom/plugins/form_elements/fields/intercept/employment/forms.py
datamade/just-spaces
cc2b7d1518e5da65a403413d39a309fa3e2ac122
[ "MIT" ]
6
2019-04-09T06:52:31.000Z
2021-08-31T04:31:59.000Z
fobi_custom/plugins/form_elements/fields/intercept/employment/forms.py
datamade/just-spaces
cc2b7d1518e5da65a403413d39a309fa3e2ac122
[ "MIT" ]
176
2019-01-11T21:05:50.000Z
2021-03-16T17:04:13.000Z
fobi_custom/plugins/form_elements/fields/intercept/employment/forms.py
datamade/just-spaces
cc2b7d1518e5da65a403413d39a309fa3e2ac122
[ "MIT" ]
1
2019-05-10T15:30:25.000Z
2019-05-10T15:30:25.000Z
from django import forms from django.utils.translation import ugettext_lazy as _ from fobi.base import BaseFormFieldPluginForm, get_theme from ...utils import choices_to_help_text from ..forms import EMPLOYMENT_CHOICES theme = get_theme(request=None, as_instance=True) class EmploymentForm(forms.Form, BaseFormFiel...
29.28
77
0.628415
6513185dd712d15e7461aaf0a278e51cf56a04dc
3,675
py
Python
core/platform/taskqueue/cloud_taskqueue_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
2
2020-03-28T18:32:45.000Z
2021-02-07T18:29:31.000Z
core/platform/taskqueue/cloud_taskqueue_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
1
2021-01-06T06:00:08.000Z
2021-01-07T02:00:21.000Z
core/platform/taskqueue/cloud_taskqueue_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
1
2022-02-14T22:03:53.000Z
2022-02-14T22:03:53.000Z
# coding: utf-8 # # Copyright 2020 The Oppia 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 requi...
37.121212
79
0.697687
3b1525c938d6f0dabbdceec6571cd91719e02952
560
py
Python
floodsystem/analysis.py
impulseCoolKid/jm-nat-
ac89851c02368d2fba236acb41665203b071a6f4
[ "MIT" ]
null
null
null
floodsystem/analysis.py
impulseCoolKid/jm-nat-
ac89851c02368d2fba236acb41665203b071a6f4
[ "MIT" ]
null
null
null
floodsystem/analysis.py
impulseCoolKid/jm-nat-
ac89851c02368d2fba236acb41665203b071a6f4
[ "MIT" ]
1
2022-01-30T20:59:35.000Z
2022-01-30T20:59:35.000Z
import datetime import matplotlib import numpy as np import matplotlib import matplotlib.pyplot as plt #for task2F def polyfit(dates, levels, p): # converts dates into floats, # where the floats are the time in days since the year 0001 x = matplotlib.dates.date2num(dates) y = levels # Using shi...
24.347826
65
0.698214
b8d92dce226f144d8bf26bfa9d127db39222553a
23,540
py
Python
jupytext/cell_reader.py
FlorianWetschoreck/jupytext
65e1d47bfe655fdfdea31d4c60ae0c429e750414
[ "MIT" ]
null
null
null
jupytext/cell_reader.py
FlorianWetschoreck/jupytext
65e1d47bfe655fdfdea31d4c60ae0c429e750414
[ "MIT" ]
null
null
null
jupytext/cell_reader.py
FlorianWetschoreck/jupytext
65e1d47bfe655fdfdea31d4c60ae0c429e750414
[ "MIT" ]
null
null
null
"""Read notebook cells from their text representation""" import re from nbformat.v4.nbbase import new_code_cell, new_raw_cell, new_markdown_cell from .languages import _SCRIPT_EXTENSIONS try: from sphinx_gallery.notebook import rst2md except ImportError: rst2md = None from .cell_metadata import is_active, js...
37.845659
120
0.608241
3ba1553a87f21433a688e9dce86e6aeb9bbb0f01
749
py
Python
corehq/form_processor/migrations/0077_null_properties.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/form_processor/migrations/0077_null_properties.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/form_processor/migrations/0077_null_properties.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
# Generated by Django 1.11.16 on 2018-11-27 23:02 from django.db import migrations from corehq.sql_db.operations import RawSQLMigration from corehq.sql_db.migrations import partitioned migrator = RawSQLMigration(('corehq', 'blobs', 'sql_templates'), {}) @partitioned class Migration(migrations.Migration): depe...
24.966667
68
0.626168
6600f3842bde4766b5181d06c172807ce479456a
27,256
py
Python
cloudburst/server/benchmarks/retwis.py
akazad/cloudburst
eb5290cd87ceba91296a2debb67e6bd86335f7e1
[ "Apache-2.0" ]
null
null
null
cloudburst/server/benchmarks/retwis.py
akazad/cloudburst
eb5290cd87ceba91296a2debb67e6bd86335f7e1
[ "Apache-2.0" ]
null
null
null
cloudburst/server/benchmarks/retwis.py
akazad/cloudburst
eb5290cd87ceba91296a2debb67e6bd86335f7e1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 U.C. Berkeley RISE Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
40.082353
114
0.568609
8af8a6b6fe003aa0e08be0b63212c5ce0a5a127c
41,392
py
Python
sympy/geometry/line.py
minrk/sympy
1cc6e3837b8ed20ba52ea97298f31aa08b43c508
[ "BSD-3-Clause" ]
null
null
null
sympy/geometry/line.py
minrk/sympy
1cc6e3837b8ed20ba52ea97298f31aa08b43c508
[ "BSD-3-Clause" ]
null
null
null
sympy/geometry/line.py
minrk/sympy
1cc6e3837b8ed20ba52ea97298f31aa08b43c508
[ "BSD-3-Clause" ]
null
null
null
"""Line-like geometrical entities. Contains -------- LinearEntity Line Ray Segment """ from sympy.core import S, C, sympify, Dummy from sympy.functions.elementary.trigonometric import _pi_coeff as pi_coeff from sympy.core.numbers import Float, Rational from sympy.simplify import simplify from sympy.solvers import sol...
29.087843
148
0.487486
3c0d9e5ea3ef9a831871ae0fa7123e7889e8bb07
564
py
Python
search/search.py
shirinyamani/Algorithms
30275d0c981d75b10423ce6d5fbe663f8b529987
[ "MIT" ]
1
2022-03-26T18:54:19.000Z
2022-03-26T18:54:19.000Z
search/search.py
shirinyamani/Algorithms
30275d0c981d75b10423ce6d5fbe663f8b529987
[ "MIT" ]
null
null
null
search/search.py
shirinyamani/Algorithms
30275d0c981d75b10423ce6d5fbe663f8b529987
[ "MIT" ]
null
null
null
#Linear Search def linear(arr, val): for i in range(len(arr)): if arr[i] == val: return i return -1 #Binary Search def binary(arr, left, right , val): if right >= left: mid = left + (right - left) // 2 if arr[mid] == val: return mid elif ar...
18.193548
48
0.494681
1740a1dd49cf344cf598c8b95a5b3e8f94cc0adb
2,042
py
Python
tests/test_response_outputs.py
ericnchen/aws-lambda-latex
5084d9508f55ab7f254f821916a8ef10d189f541
[ "MIT" ]
null
null
null
tests/test_response_outputs.py
ericnchen/aws-lambda-latex
5084d9508f55ab7f254f821916a8ef10d189f541
[ "MIT" ]
null
null
null
tests/test_response_outputs.py
ericnchen/aws-lambda-latex
5084d9508f55ab7f254f821916a8ef10d189f541
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import base64 import json import pathlib import zipfile import pytest from lambdalatex import ( get_latexmk_command, get_pdf_processor_flag, parse_body, parse_input, ) def test_parse_body_returns_dict_when_given_a_json_str(): # This is what we get when calling from the RE...
30.939394
90
0.770813
341dedbf33aaa7c16f08b0d494e3dcd0669e4af3
6,590
py
Python
docs/conf.py
chenkangyang/mmaction2
5ba44b4ae45bfd26ffdd5def8510f33fc20fde11
[ "Apache-2.0" ]
1
2022-03-16T13:17:06.000Z
2022-03-16T13:17:06.000Z
docs/conf.py
chenkangyang/mmaction2
5ba44b4ae45bfd26ffdd5def8510f33fc20fde11
[ "Apache-2.0" ]
null
null
null
docs/conf.py
chenkangyang/mmaction2
5ba44b4ae45bfd26ffdd5def8510f33fc20fde11
[ "Apache-2.0" ]
1
2022-01-15T09:14:57.000Z
2022-01-15T09:14:57.000Z
# Copyright (c) OpenMMLab. All rights reserved. # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -----------------------...
32.623762
79
0.500303
399cf28a38451909c65495e08390ed45958df0e5
688
py
Python
blog/middlewares.py
00wendi00/blog-project
8c0b6a0fdb172af7fc2c9aef69127be81ce592f0
[ "MIT" ]
2
2019-04-28T11:56:57.000Z
2020-12-25T03:48:25.000Z
blog/middlewares.py
00wendi00/blog-project
8c0b6a0fdb172af7fc2c9aef69127be81ce592f0
[ "MIT" ]
7
2020-06-05T18:43:41.000Z
2022-02-10T10:44:41.000Z
blog/middlewares.py
00wendi00/blog-project
8c0b6a0fdb172af7fc2c9aef69127be81ce592f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : middlewares.py # @Author: Wade Cheung # @Date : 2019/12/7 # @Desc : 黑名单返回404 import logging from django.http import Http404 from django.utils.deprecation import MiddlewareMixin from blog.models import Blacklist from blog.utils.utils import getIP class Blac...
25.481481
73
0.652616
fc065b4ababf3de1f4d57ba1c1f3d7e71e8aadaf
14,235
py
Python
AppiumLibrary/keywords/_applicationmanagement.py
wilda17/robotframework-appiumlibrary
809da4f3cd434163ba42ea5f08cf7e429147c849
[ "Apache-2.0" ]
1
2020-03-20T04:01:56.000Z
2020-03-20T04:01:56.000Z
AppiumLibrary/keywords/_applicationmanagement.py
wilda17/robotframework-appiumlibrary
809da4f3cd434163ba42ea5f08cf7e429147c849
[ "Apache-2.0" ]
null
null
null
AppiumLibrary/keywords/_applicationmanagement.py
wilda17/robotframework-appiumlibrary
809da4f3cd434163ba42ea5f08cf7e429147c849
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import robot import inspect from appium import webdriver from AppiumLibrary.utils import ApplicationCache from .keywordgroup import KeywordGroup ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) class _ApplicationManagementKeywords(KeywordGroup):...
38.266129
248
0.608711
8cafe1d7e2c8f776611c6e71c26c323b003e5481
2,200
py
Python
app/core/migrations/0001_initial.py
kagabof/recipe-app-api
b67e904ce2b6164406dcdc6fe030fb8cf5f1f436
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
kagabof/recipe-app-api
b67e904ce2b6164406dcdc6fe030fb8cf5f1f436
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
kagabof/recipe-app-api
b67e904ce2b6164406dcdc6fe030fb8cf5f1f436
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-04-30 21:48 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
48.888889
266
0.615
263c794948203717315aaab4f19efdc9ef6ec0da
3,611
py
Python
rave/bootstrap/__init__.py
rave-engine/rave
0eeb956363f4d7eda92350775d7d386550361273
[ "BSD-2-Clause" ]
5
2015-03-18T01:19:56.000Z
2020-10-23T12:44:47.000Z
rave/bootstrap/__init__.py
rave-engine/rave
0eeb956363f4d7eda92350775d7d386550361273
[ "BSD-2-Clause" ]
null
null
null
rave/bootstrap/__init__.py
rave-engine/rave
0eeb956363f4d7eda92350775d7d386550361273
[ "BSD-2-Clause" ]
null
null
null
""" rave bootstrap system. The bootstrap system allows rave to be, as the name implies, bootstrapped using various means. Bootstrapping is done in two stages: the global engine bootstrap, and the game-specific bootstrap. The engine is bootstrapped using rave.bootstrap.bootstrap_engine(), the game using rave.bootstrap....
41.034091
131
0.741069
cbd73f9e9ccce21e00920e03ce4df0d6bf70a0d3
1,133
py
Python
prettyprinting/baseprinter.py
bornobob/ModelChecking
f49d7077e32d3a699d199289349c88ff18206382
[ "MIT" ]
2
2020-02-19T21:07:10.000Z
2020-02-19T21:39:56.000Z
prettyprinting/baseprinter.py
bornobob/ModelChecking
f49d7077e32d3a699d199289349c88ff18206382
[ "MIT" ]
9
2020-02-26T13:16:21.000Z
2020-04-01T09:55:40.000Z
prettyprinting/baseprinter.py
bornobob/ModelChecking
f49d7077e32d3a699d199289349c88ff18206382
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt class PrettyPrint: """ Base class for pretty printers. Pretty printers must override the _pretty_print function. """ def _pretty_print(self): """ The pretty print function must be overriden and sets up the pretty printing. The pretty printin...
29.051282
74
0.601942