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
b9792aaefc85c0b127b76e6415b188054e8619c1
4,402
py
Python
test/functional/merkle_blocks.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
test/functional/merkle_blocks.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
test/functional/merkle_blocks.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The GFC coin bt developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test gettxoutproof and verifytxoutproof RPCs.""" from test_framework.test_framework import BitcoinTestF...
51.186047
140
0.683099
66ae8bcd4ae9ae32e098a0f12994c9a728a67114
3,745
py
Python
chul/filters.py
Jenks18/mfl_api
ecbb8954053be06bbcac7e1132811d73534c78d9
[ "MIT" ]
19
2015-04-16T09:37:08.000Z
2022-02-10T11:50:30.000Z
chul/filters.py
Jenks18/mfl_api
ecbb8954053be06bbcac7e1132811d73534c78d9
[ "MIT" ]
125
2015-03-26T14:05:49.000Z
2020-05-14T08:16:50.000Z
chul/filters.py
Jenks18/mfl_api
ecbb8954053be06bbcac7e1132811d73534c78d9
[ "MIT" ]
39
2015-04-15T09:17:33.000Z
2022-03-28T18:08:16.000Z
import django_filters from django.db.models import Q from distutils.util import strtobool from .models import ( CommunityHealthUnit, CommunityHealthWorker, CommunityHealthWorkerContact, Status, CommunityHealthUnitContact, CHUService, CHURating, ChuUpdateBuffer ) from common.filters.f...
31.208333
74
0.73725
84db43d40c527d5188e018ec2a222dc81e2021f6
2,545
py
Python
chorderator/utils/pipeline.py
billyblu2000/Chorderator
6e5e077da649966e872dbd1494f3606a23937e8b
[ "MIT" ]
7
2021-04-12T08:17:10.000Z
2022-01-30T05:55:25.000Z
chorderator/utils/pipeline.py
billyblu2000/Chorderator
6e5e077da649966e872dbd1494f3606a23937e8b
[ "MIT" ]
null
null
null
chorderator/utils/pipeline.py
billyblu2000/Chorderator
6e5e077da649966e872dbd1494f3606a23937e8b
[ "MIT" ]
null
null
null
from ..chords.ChordProgression import read_progressions from .excp import handle_exception from .utils import Logging, pickle_read, combine_ins class Pipeline: def __init__(self, pipeline): self.meta = None self.melo = None self.final_output = None self.final_output_log = None ...
34.863014
97
0.576031
9f45fb0494e57243b1c60bb75e69410362d57269
4,623
py
Python
toykoin/tests/test_block.py
fakecoinbase/giacomocaironislashtoykoin
cd5c891819338479eab50bc83bf7cf867394ed5a
[ "MIT" ]
null
null
null
toykoin/tests/test_block.py
fakecoinbase/giacomocaironislashtoykoin
cd5c891819338479eab50bc83bf7cf867394ed5a
[ "MIT" ]
null
null
null
toykoin/tests/test_block.py
fakecoinbase/giacomocaironislashtoykoin
cd5c891819338479eab50bc83bf7cf867394ed5a
[ "MIT" ]
null
null
null
from toykoin.core.tx import TxIn, TxOut, Tx, OutPoint from toykoin.core.script import Script from toykoin.core.block import Block, BlockHeader, RevBlock from toykoin.core.utils import generate_merkle_root import pytest def test_valid_serialization_1(): tx_in = TxIn(OutPoint("ff" * 32, 0), Script()) tx_out =...
32.104167
467
0.658447
d5afffe3d88fc35314d0dcbc8576f72efde80cf9
1,207
py
Python
Greedy/55_Jump_Game.py
hren-ron/LeetCode
3ba2766f8e6ad2bfb5c9686b362f000824e78474
[ "Apache-2.0" ]
null
null
null
Greedy/55_Jump_Game.py
hren-ron/LeetCode
3ba2766f8e6ad2bfb5c9686b362f000824e78474
[ "Apache-2.0" ]
null
null
null
Greedy/55_Jump_Game.py
hren-ron/LeetCode
3ba2766f8e6ad2bfb5c9686b362f000824e78474
[ "Apache-2.0" ]
null
null
null
''' Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine if you are able to reach the last index. Example 1: Input: [2,3,1,1,4] Output: true Explanation: Jump 1 step from index...
26.23913
102
0.597349
b2dab487ea9550fb54485637a426376eee75c1fa
5,472
py
Python
database/test_mongo_connector.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
1
2020-06-29T17:25:44.000Z
2020-06-29T17:25:44.000Z
database/test_mongo_connector.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
database/test_mongo_connector.py
timburbank/openrvdas
ba77d3958075abd21ff94a396e4a97879962ac0c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import logging import random import sys import time import unittest import warnings sys.path.append('.') from logger.utils.das_record import DASRecord from logger.utils.nmea_parser import NMEAParser try: from database.settings import MONGO_ENABLED from database.mongo_connector import Mong...
37.479452
129
0.658991
4e91fcf120f0a34f063a1ff4554eefaf3f0dfe4a
22,338
py
Python
pandapower/pypower/pips.py
hmaschke/pandapower-1
2e93969050d3d468ce57f73d358e97fabc6e5141
[ "BSD-3-Clause" ]
2
2019-11-01T11:01:41.000Z
2022-02-07T12:55:55.000Z
pandapower/pypower/pips.py
hmaschke/pandapower-1
2e93969050d3d468ce57f73d358e97fabc6e5141
[ "BSD-3-Clause" ]
null
null
null
pandapower/pypower/pips.py
hmaschke/pandapower-1
2e93969050d3d468ce57f73d358e97fabc6e5141
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 1996-2015 PSERC. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Copyright (c) 2016-2022 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), K...
40.032258
97
0.51155
52ff354ba84b6edb439bd73cb831c5c618d0dcda
5,995
py
Python
tests/test_create_post.py
gc-plp/reddit-moderator-bot
7fe7003002ec2605004608752a9cc60d76a16e84
[ "Unlicense" ]
5
2019-02-28T05:35:52.000Z
2022-01-05T09:39:51.000Z
tests/test_create_post.py
gc-plp/reddit-moderator-bot
7fe7003002ec2605004608752a9cc60d76a16e84
[ "Unlicense" ]
5
2019-12-20T11:29:43.000Z
2020-03-14T15:00:39.000Z
tests/test_create_post.py
gc-plp/reddit-moderator-bot
7fe7003002ec2605004608752a9cc60d76a16e84
[ "Unlicense" ]
1
2022-01-05T09:39:53.000Z
2022-01-05T09:39:53.000Z
import pytest import modbot.input.test as test TEST_SUBREDDIT = "testsub123" @pytest.fixture def create_bot(): test.create_bot(TEST_SUBREDDIT) def test_create_post(create_bot): # Test basic commands test.get_reddit().inbox.add_message( "mod1", "/create_post --subreddit=testsub123 --stic...
24.569672
110
0.637531
b09d9b508d3e5793a830b4b57d452963756cdea9
861
py
Python
tests/application/test_utils.py
racedisparityaudit/rd_cms
a12f0e3f5461cc41eed0077ed02e11efafc5dd76
[ "MIT" ]
1
2021-10-06T13:48:36.000Z
2021-10-06T13:48:36.000Z
tests/application/test_utils.py
racedisparityaudit/ethnicity-facts-and-figures-publisher
63a3bd5618a04b2b853868aae35d54730077f14c
[ "MIT" ]
116
2018-11-02T17:20:47.000Z
2022-02-09T11:06:22.000Z
tests/application/test_utils.py
racedisparityaudit/rd_cms
a12f0e3f5461cc41eed0077ed02e11efafc5dd76
[ "MIT" ]
2
2018-11-09T16:47:35.000Z
2020-04-09T13:06:48.000Z
from application.utils import get_csv_data_for_download def test_adds_quotes(): csv_with_no_quotes = "./tests/test_data/csv_with_no_quotes.csv" csv_with_quotes = '"Ethnicity","Value"\n"Black","10"\n"White","12.2"\n' assert get_csv_data_for_download(csv_with_no_quotes) == csv_with_quotes def test_only_...
37.434783
117
0.770035
94beef65234943b029426211598f6812ba54786b
11,110
py
Python
tempest/api/workloadmgr/upgrade/test_before_upgrade.py
deepanshusagar/tempest
910919eef3e5dea089a82e4074e85704bb8f7a2b
[ "Apache-2.0" ]
null
null
null
tempest/api/workloadmgr/upgrade/test_before_upgrade.py
deepanshusagar/tempest
910919eef3e5dea089a82e4074e85704bb8f7a2b
[ "Apache-2.0" ]
null
null
null
tempest/api/workloadmgr/upgrade/test_before_upgrade.py
deepanshusagar/tempest
910919eef3e5dea089a82e4074e85704bb8f7a2b
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 IBM Corp. # # 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 t...
52.654028
162
0.616832
8bfe838ed33b811e0ec6e8c39e6327f50af49fa7
31
py
Python
QueryLMS/__init__.py
txoof/querylms
b3c0bb587d76bf71cccf647292a4e286f0e0f7d5
[ "MIT" ]
null
null
null
QueryLMS/__init__.py
txoof/querylms
b3c0bb587d76bf71cccf647292a4e286f0e0f7d5
[ "MIT" ]
null
null
null
QueryLMS/__init__.py
txoof/querylms
b3c0bb587d76bf71cccf647292a4e286f0e0f7d5
[ "MIT" ]
1
2021-10-09T16:20:59.000Z
2021-10-09T16:20:59.000Z
from .QueryLMS import QueryLMS
15.5
30
0.83871
09ff00ba28d02b47e4ecfc59b00889baa9bd04e8
1,206
py
Python
src/the_tale/the_tale/game/exceptions.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/exceptions.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/exceptions.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class GameError(utils_exceptions.TheTaleError): MSG = 'game error' class HeroAlreadyRegisteredError(GameError): MSG = 'Hero with id "%(hero_id)d" has already registerd in storage, probably on initialization step' class RemoveActionFromMiddleError(GameError): ...
28.714286
143
0.729685
877dcacdb511a9b55a5d5fd65c0b7333c78af524
1,687
py
Python
tests/test_scipts.py
pozytywnie/webapp-health-monitor
c90486d1ba0e079bc03b197e693c2b85a0038ae4
[ "MIT" ]
null
null
null
tests/test_scipts.py
pozytywnie/webapp-health-monitor
c90486d1ba0e079bc03b197e693c2b85a0038ae4
[ "MIT" ]
20
2015-01-08T09:22:05.000Z
2021-06-05T20:36:49.000Z
tests/test_scipts.py
pozytywnie/webapp-health-monitor
c90486d1ba0e079bc03b197e693c2b85a0038ae4
[ "MIT" ]
1
2015-07-21T10:08:24.000Z
2015-07-21T10:08:24.000Z
from unittest import TestCase from webapp_health_monitor.scripts import _webapp_health_monitor from webapp_health_monitor import verificators_register try: from unittest import mock except ImportError: import mock class WebbappHealthMonitorTest(TestCase): @mock.patch('sys.stderr') @mock.patch('sys.st...
39.232558
72
0.698281
a91fff607051bca97143c8d904f54c6e4917ed0c
4,232
py
Python
nicos_mlz/poli/devices/magnet.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "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/poli/devices/magnet.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos_mlz/poli/devices/magnet.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "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 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
39.185185
79
0.600898
fe822764296a3ab8c1095f4d77aa6784b0d59c75
3,479
py
Python
tools/generate_taint_models/tests/get_graphql_sources_test.py
fabiomassimo/pyre-check
e2f2be7c14a4125d19158b265aebcc666fdd0600
[ "MIT" ]
1
2020-08-12T14:33:46.000Z
2020-08-12T14:33:46.000Z
tools/generate_taint_models/tests/get_graphql_sources_test.py
fabiomassimo/pyre-check
e2f2be7c14a4125d19158b265aebcc666fdd0600
[ "MIT" ]
null
null
null
tools/generate_taint_models/tests/get_graphql_sources_test.py
fabiomassimo/pyre-check
e2f2be7c14a4125d19158b265aebcc666fdd0600
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe import os # noqa import unittest from typing import Callable from unittest.mock import patch from graphql.type import ( GraphQL...
35.865979
91
0.698189
37002220078a4021cf64eb26826129a2f2d84490
10,311
py
Python
hexmachina/parametrization.py
dnkrtz/hexmachina
4f1ec7407fb903efe2c1d3d38874eb114611d072
[ "MIT" ]
21
2017-10-29T20:04:53.000Z
2022-02-11T10:08:02.000Z
hexmachina/parametrization.py
dnkrtz/hexmachina
4f1ec7407fb903efe2c1d3d38874eb114611d072
[ "MIT" ]
3
2017-08-20T11:08:33.000Z
2018-04-30T16:53:42.000Z
hexmachina/parametrization.py
dnkrtz/hexmachina
4f1ec7407fb903efe2c1d3d38874eb114611d072
[ "MIT" ]
11
2017-07-29T05:33:59.000Z
2021-07-01T09:22:17.000Z
''' File: parametrization.py License: MIT Author: Aidan Kurtz Created: 25/08/2016 Python Version: 3.5 ======================== Hexahedral parametrization based on the discrete 3D frame field. (This module is currently broken) ''' import bisect import numpy as np from scipy import sparse...
35.802083
83
0.580545
479385722967fd418f39099dd82df3396be4d6c9
30,965
py
Python
cinder/tests/unit/volume/test_image.py
alexisries/openstack-cinder
7cc6e45c5ddb8bf771bdb01b867628e41761ae11
[ "Apache-2.0" ]
1
2018-09-02T11:13:23.000Z
2018-09-02T11:13:23.000Z
cinder/tests/unit/volume/test_image.py
alexisries/openstack-cinder
7cc6e45c5ddb8bf771bdb01b867628e41761ae11
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/test_image.py
alexisries/openstack-cinder
7cc6e45c5ddb8bf771bdb01b867628e41761ae11
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
43.126741
79
0.617342
f1f7e3941d8eba5551c3b8c9e9c17125b601b93c
1,669
py
Python
Fig6_S7/Siegel_testSet/fastUTR_predict.py
vagarwal87/saluki_paper
3aa4e56a19bbbf87ac9f5f0a251098cf749ad6bc
[ "Apache-2.0" ]
null
null
null
Fig6_S7/Siegel_testSet/fastUTR_predict.py
vagarwal87/saluki_paper
3aa4e56a19bbbf87ac9f5f0a251098cf749ad6bc
[ "Apache-2.0" ]
null
null
null
Fig6_S7/Siegel_testSet/fastUTR_predict.py
vagarwal87/saluki_paper
3aa4e56a19bbbf87ac9f5f0a251098cf749ad6bc
[ "Apache-2.0" ]
null
null
null
import os, sys import argparse, json, h5py, time import numpy as np import tensorflow as tf from basenji import dataset from basenji import dna_io import pandas as pd try: import rnann except: from basenji import rnann if tf.__version__[0] == '1': tf.compat.v1.enable_eager_execution() MAXLEN = 12288 ##########...
29.803571
79
0.72139
f8dd04f1ea96f3156afab92483d20bbd37f617ca
28,769
py
Python
Adelphi Academic Calendar/skill/skill_env/Lib/site.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
null
null
null
Adelphi Academic Calendar/skill/skill_env/Lib/site.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
null
null
null
Adelphi Academic Calendar/skill/skill_env/Lib/site.py
EnriqueGambra/Amazon-Alexa-Skill
198ed51bef555eee006041fef0bcbf5c955142d5
[ "MIT" ]
1
2019-10-11T17:15:20.000Z
2019-10-11T17:15:20.000Z
"""Append module search paths for third-party packages to sys.path. **************************************************************** * This module is automatically imported during initialization. * **************************************************************** In earlier versions of Python (up to 1.5a3), scripts or...
34.661446
119
0.602419
86de7156826e200201aea54ff4c78654279bf7d5
1,472
py
Python
edbdeploy/spec/aws_rds.py
vincentp7212/postgres-deployment
ea0ed0e06a4eb99cc28600398eddcf2320778113
[ "BSD-3-Clause" ]
58
2020-02-24T21:02:50.000Z
2022-03-28T14:51:56.000Z
edbdeploy/spec/aws_rds.py
vincentp7212/postgres-deployment
ea0ed0e06a4eb99cc28600398eddcf2320778113
[ "BSD-3-Clause" ]
108
2020-09-18T12:53:44.000Z
2022-02-02T09:02:31.000Z
edbdeploy/spec/aws_rds.py
vincentp7212/postgres-deployment
ea0ed0e06a4eb99cc28600398eddcf2320778113
[ "BSD-3-Clause" ]
47
2020-03-04T15:51:01.000Z
2022-02-27T13:48:05.000Z
from . import DefaultAWSSpec from . import SpecValidator RDSSpec = { 'postgres_server': { 'instance_type': SpecValidator( type='choice', choices=[ 'db.t3.micro', 'db.r5.xlarge', 'db.r5.2xlarge', 'db.r5.4xlarge', 'db.r5.8xlarge' ], ...
24.533333
63
0.452446
acb6a679e922f5cf6daff92959433ac7d1e0bbdc
568
py
Python
01_basics/03_advanced_expressions/01_basic_indexing.py
johny-c/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
711
2015-01-10T05:39:21.000Z
2022-03-15T23:45:45.000Z
01_basics/03_advanced_expressions/01_basic_indexing.py
dachylong/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
2
2016-06-13T06:46:58.000Z
2017-04-14T08:21:20.000Z
01_basics/03_advanced_expressions/01_basic_indexing.py
dachylong/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
371
2015-01-16T01:31:41.000Z
2022-03-15T11:37:30.000Z
# Fill in the TODOs in this exercise, then run the script to see if your # solution works. import numpy as np import theano.tensor as T def increment_odd(x): """ x: a Theano vector Returns: y: a Theano vector equal to x, but with all odd-numbered elements incremented by 1. """ raise NotImp...
25.818182
72
0.644366
ae367bed8e4720393022a5edd561bcdd948a5b82
18,030
py
Python
appengine/components/tools/gae.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/tools/gae.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/tools/gae.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Wrapper around GAE SDK tools to simplify working with multi module apps.""" __version__ = '1.2' import atexit import co...
33.764045
80
0.694842
9b4deb821f14684f3d5053f246f6ded8c47bb717
4,281
py
Python
chart_serializer.py
ConnorWhalen/wendletrap
7b7135f4eee0d9fbb1e711a60b1693e3ed53ba05
[ "MIT" ]
1
2021-07-19T23:44:46.000Z
2021-07-19T23:44:46.000Z
chart_serializer.py
ConnorWhalen/wendletrap
7b7135f4eee0d9fbb1e711a60b1693e3ed53ba05
[ "MIT" ]
null
null
null
chart_serializer.py
ConnorWhalen/wendletrap
7b7135f4eee0d9fbb1e711a60b1693e3ed53ba05
[ "MIT" ]
null
null
null
from copy import deepcopy import midi_parser STAR_POWER_LANE = 8 def serialize_file(file_data, charts_data): """ Write chart file notes.chart and ini file song.ini. file_data is: { title: str artist: str genre: str author: str offset_secs: float sample_start_secs: float album: str ye...
28.54
117
0.668535
09eb3e6dc6aae230da59a2ea972721b97e5fc5eb
644
py
Python
Day20_21/scoreboard.py
MHKomeili/100DaysofCode
a5799011a43f777ddc5ac9e649aa27291313b62b
[ "MIT" ]
null
null
null
Day20_21/scoreboard.py
MHKomeili/100DaysofCode
a5799011a43f777ddc5ac9e649aa27291313b62b
[ "MIT" ]
null
null
null
Day20_21/scoreboard.py
MHKomeili/100DaysofCode
a5799011a43f777ddc5ac9e649aa27291313b62b
[ "MIT" ]
null
null
null
from turtle import Turtle ALIGNMENT = "center" FONT = ('Courier', 20 , 'normal') class Scoreboard(Turtle): def __init__(self): super().__init__() self.color('orange') self.penup() self.goto(x=0, y=270) self.score = 0 self.update_scoreboard() def update_scorebo...
22.206897
70
0.590062
2004f96882e3835081a152ed139b7bdad4e83b97
2,318
py
Python
payments/price_feed.py
SatSale/SatSale
b10ba265af1c028602c977fc6d65b5e76ea6f868
[ "MIT" ]
5
2022-03-18T22:01:52.000Z
2022-03-27T09:17:18.000Z
payments/price_feed.py
SatSale/SatSale
b10ba265af1c028602c977fc6d65b5e76ea6f868
[ "MIT" ]
8
2022-03-17T01:41:13.000Z
2022-03-31T20:48:38.000Z
payments/price_feed.py
SatSale/SatSale
b10ba265af1c028602c977fc6d65b5e76ea6f868
[ "MIT" ]
1
2022-03-30T05:13:47.000Z
2022-03-30T05:13:47.000Z
import requests import logging import config def get_currency_provider(currency, currency_provider): # Define some currency_provider-specific settings if currency_provider == "COINDESK": return { "price_feed": "https://api.coindesk.com/v1/bpi/currentprice.json", "result_root":...
32.194444
124
0.608714
7964d878fc54bb52d22576efd4eb15da5f7e8522
9,559
py
Python
simpletransformers/ner/ner_utils.py
hjc3613/simpletransformers
bce58639f3fa8f45f445b053b5aaae428c3c5429
[ "Apache-2.0" ]
null
null
null
simpletransformers/ner/ner_utils.py
hjc3613/simpletransformers
bce58639f3fa8f45f445b053b5aaae428c3c5429
[ "Apache-2.0" ]
null
null
null
simpletransformers/ner/ner_utils.py
hjc3613/simpletransformers
bce58639f3fa8f45f445b053b5aaae428c3c5429
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
34.886861
117
0.620253
7cd1ff4a4cf35dd69911611422be856309b8643b
1,884
py
Python
Core/mailer.py
AdrMXR/PhishMailer
66831c9933969a83ec311ca16a6e0672f1545675
[ "MIT" ]
7
2020-07-04T02:57:03.000Z
2022-01-02T03:13:31.000Z
Core/mailer.py
Ranjithkumar567/PhishMailer-Templates
66831c9933969a83ec311ca16a6e0672f1545675
[ "MIT" ]
null
null
null
Core/mailer.py
Ranjithkumar567/PhishMailer-Templates
66831c9933969a83ec311ca16a6e0672f1545675
[ "MIT" ]
1
2020-07-01T07:35:07.000Z
2020-07-01T07:35:07.000Z
import smtplib import os import getpass import sys import ssl from email.mime.text import MIMEText from email.utils import formataddr from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email import encoders from email.mime.text import MIMEText red = ("\033[1;31;40m") green =...
29.904762
85
0.553079
249ee9e538dc766282847c151aed3454862c64ca
19,420
py
Python
netbox/netbox/settings.py
Megzo/netbox
f8a21da9f034b31d7b91587cc6a295bbc4d9edea
[ "Apache-2.0" ]
null
null
null
netbox/netbox/settings.py
Megzo/netbox
f8a21da9f034b31d7b91587cc6a295bbc4d9edea
[ "Apache-2.0" ]
null
null
null
netbox/netbox/settings.py
Megzo/netbox
f8a21da9f034b31d7b91587cc6a295bbc4d9edea
[ "Apache-2.0" ]
null
null
null
import logging import os import platform import socket import warnings from django.contrib.messages import constants as messages from django.core.exceptions import ImproperlyConfigured # # Environment setup # VERSION = '2.7.7-dev' # Hostname HOSTNAME = platform.node() # Set the base directory two levels up BASE_D...
32.693603
119
0.723223
7cd3feb7a77ef6f24b4fdc02f708000dd8710a32
676
py
Python
pracgram/users/migrations/0003_auto_20180520_2058.py
lowosiriskgn/pracgram
db33b7969636628b2f562fb6ebd17c18f40c34e4
[ "MIT" ]
1
2018-07-15T05:03:50.000Z
2018-07-15T05:03:50.000Z
pracgram/users/migrations/0003_auto_20180520_2058.py
lowosiriskgn/pracgram
db33b7969636628b2f562fb6ebd17c18f40c34e4
[ "MIT" ]
null
null
null
pracgram/users/migrations/0003_auto_20180520_2058.py
lowosiriskgn/pracgram
db33b7969636628b2f562fb6ebd17c18f40c34e4
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-20 11:58 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20180520_2002'), ] operations = [ migrations.AddField( model_name='user', ...
27.04
104
0.631657
cfaafee00f1bf4feef74750275638a94fa2dcb10
4,722
gyp
Python
third_party/libpng/libpng.gyp
dimitrilongo/mod_pagespeed
d0d3bc51aa4feddf010b7085872c64cc46b5aae0
[ "Apache-2.0" ]
2
2019-11-02T07:54:17.000Z
2020-04-16T09:26:51.000Z
third_party/libpng/libpng.gyp
dimitrilongo/mod_pagespeed
d0d3bc51aa4feddf010b7085872c64cc46b5aae0
[ "Apache-2.0" ]
12
2017-03-14T18:26:11.000Z
2021-10-01T15:33:50.000Z
third_party/libpng/libpng.gyp
dimitrilongo/mod_pagespeed
d0d3bc51aa4feddf010b7085872c64cc46b5aae0
[ "Apache-2.0" ]
1
2020-04-16T09:28:30.000Z
2020-04-16T09:28:30.000Z
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'conditions': [ [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { # Link to system .so since we already use it du...
30.464516
78
0.448115
888c5eea5fb7b921f878194b9481451a6a1df23b
1,716
py
Python
StudArt/tests/core/views/test_EditSelfEmailAPIView.py
YuriyLisovskiy/OOA_Team_X-A
f8a977f5f498e33c69df1ed503d1e44d5f5b99a5
[ "MIT" ]
null
null
null
StudArt/tests/core/views/test_EditSelfEmailAPIView.py
YuriyLisovskiy/OOA_Team_X-A
f8a977f5f498e33c69df1ed503d1e44d5f5b99a5
[ "MIT" ]
10
2020-11-06T08:37:02.000Z
2020-12-09T23:08:25.000Z
StudArt/tests/core/views/test_EditSelfEmailAPIView.py
YuriyLisovskiy/OOA_Team_X-A
f8a977f5f498e33c69df1ed503d1e44d5f5b99a5
[ "MIT" ]
1
2021-09-16T10:56:02.000Z
2021-09-16T10:56:02.000Z
import json from django.urls import reverse from rest_framework import status from rest_framework.test import force_authenticate from rest_framework_simplejwt.state import User from core.views import EditSelfEmailAPIView from tests.common import APIFactoryTestCase class EditSelfEmailAPITestCase(APIFactoryTestCase):...
32.377358
78
0.759324
036199067b824c864bceb452a3f8697d53c50fa4
1,656
py
Python
src/plugins/PythonFileIO/PythonFileIO/__init__.py
webgme/bindings
985ea14d159f3001bc831a464c2d60d5f970333e
[ "MIT" ]
null
null
null
src/plugins/PythonFileIO/PythonFileIO/__init__.py
webgme/bindings
985ea14d159f3001bc831a464c2d60d5f970333e
[ "MIT" ]
15
2018-10-30T19:02:54.000Z
2021-04-01T10:52:29.000Z
src/plugins/PythonFileIO/PythonFileIO/__init__.py
webgme/bindings
985ea14d159f3001bc831a464c2d60d5f970333e
[ "MIT" ]
4
2019-09-27T20:21:50.000Z
2021-04-21T00:49:26.000Z
""" This is where the implementation of the plugin code goes. The PythonFileIO-class is imported from both run_plugin.py and run_debug.py """ import sys import logging import os from webgme_bindings import PluginBase # Setup a logger logger = logging.getLogger('PythonFileIO') logger.setLevel(logging.INFO) handler = lo...
36
104
0.705314
b96ad3630aa50e4bfd7f5a745ece9723346bd97b
1,048
py
Python
psh/tools/basic.py
m-boniecki/phoenix-rtos-tests
3650fe1c04d676d371059abccdc60004b7d830b1
[ "BSD-3-Clause" ]
null
null
null
psh/tools/basic.py
m-boniecki/phoenix-rtos-tests
3650fe1c04d676d371059abccdc60004b7d830b1
[ "BSD-3-Clause" ]
null
null
null
psh/tools/basic.py
m-boniecki/phoenix-rtos-tests
3650fe1c04d676d371059abccdc60004b7d830b1
[ "BSD-3-Clause" ]
null
null
null
# Phoenix-RTOS # # phoenix-rtos-tests # # basic tools for psh related tests # # Copyright 2021 Phoenix Systems # Author: Jakub Sarzyński # # This file is part of Phoenix-RTOS. # # %LICENSE% # import pexpect def run_psh(p): p.send('psh\r\n') p.expect(r'psh(\r+)\n') def assert_only_prompt(p): # Expect a...
20.54902
72
0.640267
1e557326a5ef2e59513468c21f78739304911b88
12,950
py
Python
mrjob/tools/emr/create_cluster.py
etiennebatise/mrjob
2803b7310afc72d986752aa816c9d48ae4632f95
[ "Apache-2.0" ]
null
null
null
mrjob/tools/emr/create_cluster.py
etiennebatise/mrjob
2803b7310afc72d986752aa816c9d48ae4632f95
[ "Apache-2.0" ]
null
null
null
mrjob/tools/emr/create_cluster.py
etiennebatise/mrjob
2803b7310afc72d986752aa816c9d48ae4632f95
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2013 Yelp and Contributors # Copyright 2015-2016 Yelp # # 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...
48.501873
78
0.606255
78e627a8240939f14630abba139c80cc9a8d33ca
3,173
py
Python
cropduster/widgets.py
pbs/django-cropduster
de4bd375421c29bb80653a01aaf263f1a9e6e626
[ "BSD-2-Clause" ]
null
null
null
cropduster/widgets.py
pbs/django-cropduster
de4bd375421c29bb80653a01aaf263f1a9e6e626
[ "BSD-2-Clause" ]
null
null
null
cropduster/widgets.py
pbs/django-cropduster
de4bd375421c29bb80653a01aaf263f1a9e6e626
[ "BSD-2-Clause" ]
null
null
null
from django.forms import HiddenInput, Media from django.template import Context, loader from django.core.urlresolvers import reverse from cropduster.models import SizeSet, Image as CropDusterImage, ImageRegistry from django.contrib.contenttypes.models import ContentType class AdminCropdusterWidget(HiddenInput): ...
34.11828
118
0.610463
46dec656ca405f0e028d43bd735e47e5d13994d3
5,417
py
Python
fedml_api/distributed/fedavg_gRPC/FedAvgServerManager.py
WingFeiTsang/FedML_New
755d8fc63ce08df4dc3eef326aa7693e94262c7e
[ "Apache-2.0" ]
null
null
null
fedml_api/distributed/fedavg_gRPC/FedAvgServerManager.py
WingFeiTsang/FedML_New
755d8fc63ce08df4dc3eef326aa7693e94262c7e
[ "Apache-2.0" ]
null
null
null
fedml_api/distributed/fedavg_gRPC/FedAvgServerManager.py
WingFeiTsang/FedML_New
755d8fc63ce08df4dc3eef326aa7693e94262c7e
[ "Apache-2.0" ]
null
null
null
import logging import os, signal import sys import time from .message_define import MyMessage from .utils import transform_tensor_to_list, post_complete_message_to_sweep_process, transform_list_to_tensor sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "../../../"))) sys.path.insert(0, os.path.abspath(os....
52.086538
138
0.685619
a7ceb826207444e2fd17af6552b060ed9eb31c38
1,945
py
Python
tests/unit/etl_remote.py
sharabeshj/course-editor-test
9af15d10ef1f039fdf5758134a7cb72384ccf3f5
[ "Apache-2.0" ]
1
2021-01-06T17:58:30.000Z
2021-01-06T17:58:30.000Z
tests/unit/etl_remote.py
priyankagohil/coursebuilder-assessment
559e867a2a846dd773471c6bc76cf6005a57098f
[ "Apache-2.0" ]
27
2016-08-31T19:04:46.000Z
2016-09-29T00:22:32.000Z
tests/unit/etl_remote.py
priyankagohil/coursebuilder-assessment
559e867a2a846dd773471c6bc76cf6005a57098f
[ "Apache-2.0" ]
null
null
null
# 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 ...
34.122807
78
0.731105
3a8239eb39bf2492eb1d5d42b270a5787e497d27
164,810
py
Python
tensorflow/lite/python/lite_v2_test.py
Nickmeagan70/tensorflow
6bfedde8466daced9f40a0e11840f5ce274abc7d
[ "Apache-2.0" ]
7
2022-03-04T21:14:47.000Z
2022-03-22T23:07:39.000Z
tensorflow/lite/python/lite_v2_test.py
Nickmeagan70/tensorflow
6bfedde8466daced9f40a0e11840f5ce274abc7d
[ "Apache-2.0" ]
1
2022-03-08T18:28:46.000Z
2022-03-08T18:37:20.000Z
tensorflow/lite/python/lite_v2_test.py
Nickmeagan70/tensorflow
6bfedde8466daced9f40a0e11840f5ce274abc7d
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2019 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 # ...
41.243744
96
0.695631
1b8efba30539a9d1440df27644567346e0fc689a
2,959
py
Python
python/geopandas.py
mapattacker/cheatsheets
e25bec531fdd06e01b39d6c55b11226ba26dac5b
[ "MIT" ]
7
2017-10-18T22:42:42.000Z
2021-02-17T08:47:11.000Z
python/geopandas.py
mapattacker/cheatsheets
e25bec531fdd06e01b39d6c55b11226ba26dac5b
[ "MIT" ]
null
null
null
python/geopandas.py
mapattacker/cheatsheets
e25bec531fdd06e01b39d6c55b11226ba26dac5b
[ "MIT" ]
5
2019-12-16T20:07:27.000Z
2022-01-31T20:23:49.000Z
# https://github.com/jorisvandenbossche/geopandas-tutorial # https://github.com/geopandas/geopandas # http://geopandas.org/index.html # Installation, create a virtual env conda create -n geopandas source activate geopandas # activate vm conda install -c conda-forge geopandas conda install jupyter geopandas # for usin...
25.730435
94
0.664414
8a33b57e9d13fe62f056a866ca28a6aac3bef786
9,622
py
Python
homeassistant/helpers/script.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
1
2019-04-22T06:05:09.000Z
2019-04-22T06:05:09.000Z
homeassistant/helpers/script.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
null
null
null
homeassistant/helpers/script.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
1
2021-09-20T01:52:31.000Z
2021-09-20T01:52:31.000Z
"""Helpers to execute scripts.""" import logging from itertools import islice from typing import Optional, Sequence import voluptuous as vol from homeassistant.core import HomeAssistant, Context, callback from homeassistant.const import CONF_CONDITION, CONF_TIMEOUT from homeassistant.exceptions import TemplateError ...
36.037453
77
0.590002
a6750c566cebd318a96ba4cab6d91c60c097d597
116
py
Python
literacy/__init__.py
tonyfast/literacy
c1713a1e2f0aa68fe190a33c73d6a97eccf2ee1e
[ "BSD-3-Clause" ]
13
2016-04-10T19:11:11.000Z
2021-01-25T00:22:23.000Z
literacy/__init__.py
tonyfast/literacy
c1713a1e2f0aa68fe190a33c73d6a97eccf2ee1e
[ "BSD-3-Clause" ]
5
2017-09-25T16:08:36.000Z
2017-10-18T03:26:22.000Z
literacy/__init__.py
tonyfast/literacy
c1713a1e2f0aa68fe190a33c73d6a97eccf2ee1e
[ "BSD-3-Clause" ]
1
2016-04-13T00:08:52.000Z
2016-04-13T00:08:52.000Z
from .literate import load_ipython_extension, unload_ipython_extension from . import literate from . import template
38.666667
70
0.862069
cafdb267580b60695b0805c0ea65811218bb7872
1,884
py
Python
Lexicographer/orchestration_fields_generator.py
GaryHughes/Swift.Fix
48cc96ee626073d4c653417e3fe174e8a8697526
[ "MIT" ]
null
null
null
Lexicographer/orchestration_fields_generator.py
GaryHughes/Swift.Fix
48cc96ee626073d4c653417e3fe174e8a8697526
[ "MIT" ]
null
null
null
Lexicographer/orchestration_fields_generator.py
GaryHughes/Swift.Fix
48cc96ee626073d4c653417e3fe174e8a8697526
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os def generate_orchestration_fields(prefix, orchestration, outdir, namespace): filename = '{}Fields.swift'.format(prefix) path = os.path.join(outdir, filename) print('regenerating ' + path) sorted_fields = sorted(orchestration.fields_by_tag.values(), key=lambda x: int(x.id))...
49.578947
107
0.494692
abdd1ade96559e0a9f0023800421b47840f21caa
2,524
py
Python
lastversion/GitLabRepoSession.py
dvershinin/whatversion
72341917136c35cde24fa12c92c9616abc65e7f3
[ "BSD-2-Clause" ]
null
null
null
lastversion/GitLabRepoSession.py
dvershinin/whatversion
72341917136c35cde24fa12c92c9616abc65e7f3
[ "BSD-2-Clause" ]
null
null
null
lastversion/GitLabRepoSession.py
dvershinin/whatversion
72341917136c35cde24fa12c92c9616abc65e7f3
[ "BSD-2-Clause" ]
null
null
null
import logging import os from dateutil import parser from .ProjectHolder import ProjectHolder log = logging.getLogger(__name__) class GitLabRepoSession(ProjectHolder): DEFAULT_HOSTNAME = 'gitlab.com' # Domains gitlab.example.com SUBDOMAIN_INDICATOR = "gitlab" def __init__(self, repo, hostname): ...
36.57971
109
0.573296
a06000d5987a36e62dfb47374a0975dbe6592e7a
844
py
Python
examples/Spark-ETL+XGBoost/utility/python/com/nvidia/spark/examples/main.py
gerashegalov/spark-rapids-examples
b487413ed37bde2791ada67557a4742e54711261
[ "Apache-2.0" ]
23
2021-08-17T15:20:10.000Z
2022-03-04T02:31:07.000Z
examples/Spark-ETL+XGBoost/utility/python/com/nvidia/spark/examples/main.py
gerashegalov/spark-rapids-examples
b487413ed37bde2791ada67557a4742e54711261
[ "Apache-2.0" ]
85
2021-08-18T06:30:07.000Z
2022-03-30T23:21:19.000Z
examples/Spark-ETL+XGBoost/utility/python/com/nvidia/spark/examples/main.py
gerashegalov/spark-rapids-examples
b487413ed37bde2791ada67557a4742e54711261
[ "Apache-2.0" ]
23
2021-08-18T01:17:10.000Z
2022-02-17T03:23:11.000Z
# # Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
38.363636
74
0.768957
ac3f2df30380baa1477aab4ea7b4925d0944bdef
13,039
py
Python
src/p_detector/network.py
SummerOf15/tiny-instance-segmentation
bfb3f3403a4637d97763443e56841acda9405498
[ "Apache-2.0" ]
null
null
null
src/p_detector/network.py
SummerOf15/tiny-instance-segmentation
bfb3f3403a4637d97763443e56841acda9405498
[ "Apache-2.0" ]
null
null
null
src/p_detector/network.py
SummerOf15/tiny-instance-segmentation
bfb3f3403a4637d97763443e56841acda9405498
[ "Apache-2.0" ]
null
null
null
""" This file defines network functions and classes. """ import logging import math import torch.nn as nn import torchvision import os import numpy as np import torch import torch.distributed as dist import torch.nn.functional as F from torchvision.models.detection import FasterRCNN from torchvision.models.detection.b...
42.334416
118
0.647672
30e98cefc5873b648485473bc717e8f015e9de69
450
py
Python
lesson3/lesson3_task3.py
nekdfl/GB-python-developer
ca3f34bac2a92a930779f89357941bfa9634b3d4
[ "MIT" ]
null
null
null
lesson3/lesson3_task3.py
nekdfl/GB-python-developer
ca3f34bac2a92a930779f89357941bfa9634b3d4
[ "MIT" ]
null
null
null
lesson3/lesson3_task3.py
nekdfl/GB-python-developer
ca3f34bac2a92a930779f89357941bfa9634b3d4
[ "MIT" ]
null
null
null
""" Реализовать функцию my_func(), которая принимает три позиционных аргумента, и возвращает сумму наибольших двух аргументов. """ def my_func(num1, num2, num3): pass varlist = [num1, num2, num3] sumarg1 = max(varlist) varlist.pop(varlist.index(sumarg1)) sumarg2 = max(varlist) res = sumarg1 +...
17.307692
122
0.648889
995512e7250d77eb19a0a6abaf6d612f085c741b
4,234
py
Python
DQMOffline/L1Trigger/test/runDQMOffline_L1TMuonEfficiency_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQMOffline/L1Trigger/test/runDQMOffline_L1TMuonEfficiency_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQMOffline/L1Trigger/test/runDQMOffline_L1TMuonEfficiency_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import FWCore.ParameterSet.Config as cms process = cms.Process("L1TDQMOffline") import os import sys import commands process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load("DQMServices.Core.DQM_cfg") process.load('DQMOffline.Configuration.DQMOffline_cff') process.load('Configuratio...
51.012048
116
0.775862
e15d4ac73a8e49a7987dd8bb889e7760ed138b5b
401
py
Python
deprecated/tests/mock/schedule.py
nloadholtes/python-cloudbackup-sdk
1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6
[ "Apache-2.0" ]
4
2015-02-10T14:28:12.000Z
2016-12-26T22:52:07.000Z
deprecated/tests/mock/schedule.py
nloadholtes/python-cloudbackup-sdk
1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6
[ "Apache-2.0" ]
17
2015-01-22T21:58:36.000Z
2018-01-25T19:47:43.000Z
deprecated/tests/mock/schedule.py
nloadholtes/python-cloudbackup-sdk
1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6
[ "Apache-2.0" ]
9
2015-01-26T19:25:45.000Z
2018-11-01T20:14:12.000Z
from rcbu.common.schedule import ScheduleFrequency def schedule(freq, interval=None, weekday=None, hour=None, minute=None, period=None): return { 'Frequency': ScheduleFrequency.to_api(freq), 'StartTimeMinute': minute, 'StartTimeHour': hour, 'StartTimeAmPm'...
26.733333
52
0.618454
55f54dc20d27a18ed57e93941269b3927402f2bd
2,059
py
Python
module/user/usersmadmingroup.py
arvin-chou/mc
b82305a4a91fe6150caa5423205a0798f3815724
[ "MIT" ]
null
null
null
module/user/usersmadmingroup.py
arvin-chou/mc
b82305a4a91fe6150caa5423205a0798f3815724
[ "MIT" ]
null
null
null
module/user/usersmadmingroup.py
arvin-chou/mc
b82305a4a91fe6150caa5423205a0798f3815724
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sqlalchemy import Table, Column, Integer, String, \ MetaData, ForeignKey, ForeignKeyConstraint, UniqueConstraint from sqlalchemy.orm import relationship, backref from config.config import db, metadata from schema.users import User from schema.admingroup import AdminGroup __tablena...
40.372549
80
0.679456
603b5066d3d84d003ca19d6730f8a8654b66dbe7
10,289
py
Python
tag_remote/tag_remote.py
jkchen2/JshBot-plugins
b5999fecf0df067e34673ff193dcfbf8c7e2fde2
[ "MIT" ]
1
2021-08-09T19:28:49.000Z
2021-08-09T19:28:49.000Z
tag_remote/tag_remote.py
jkchen2/JshBot-plugins
b5999fecf0df067e34673ff193dcfbf8c7e2fde2
[ "MIT" ]
null
null
null
tag_remote/tag_remote.py
jkchen2/JshBot-plugins
b5999fecf0df067e34673ff193dcfbf8c7e2fde2
[ "MIT" ]
2
2017-07-14T00:15:54.000Z
2019-03-02T09:46:21.000Z
import asyncio import random import json import discord from jshbot import utilities, configurations, plugins, logger, data from jshbot.exceptions import BotException, ConfiguredBotException from jshbot.commands import ( Command, SubCommand, Shortcut, ArgTypes, Attachment, Arg, Opt, MessageTypes, Response) __vers...
38.973485
99
0.662649
5155b18769e1fb5e3833c647164931ee4bc4c6de
2,545
py
Python
DjangoBlog/urls.py
ch3czjl/dianputuoguan
e5915462ae13655cb5ff9afb8b1588cc7eac92d7
[ "MIT" ]
null
null
null
DjangoBlog/urls.py
ch3czjl/dianputuoguan
e5915462ae13655cb5ff9afb8b1588cc7eac92d7
[ "MIT" ]
9
2021-03-19T03:54:59.000Z
2022-03-12T00:31:13.000Z
DjangoBlog/urls.py
ch3czjl/dianputuoguan
e5915462ae13655cb5ff9afb8b1588cc7eac92d7
[ "MIT" ]
null
null
null
"""DjangoBlog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
41.721311
106
0.711198
31b5bb65f4089c47a605718ec8a39fc66acb97bf
8,672
py
Python
library/os_network.py
pgraziano/ursula
b70ccc4a6bda2830559b99991025ee275301c121
[ "MIT" ]
193
2015-01-27T13:47:49.000Z
2022-01-14T23:05:15.000Z
library/os_network.py
pgraziano/ursula
b70ccc4a6bda2830559b99991025ee275301c121
[ "MIT" ]
1,812
2015-01-01T01:26:39.000Z
2019-04-22T19:33:11.000Z
library/os_network.py
pgraziano/ursula
b70ccc4a6bda2830559b99991025ee275301c121
[ "MIT" ]
258
2015-01-23T17:09:44.000Z
2020-08-26T19:41:14.000Z
#!/usr/bin/python # Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy <benno@ansible.com> # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either vers...
34.27668
91
0.618427
2b4f83ee3434ecc89ad5956ed72b0675b3a844e7
132
py
Python
_version.py
agile-geoscience/seisplot
4afaea9d6825873ed99311a70778ebc5a4f17299
[ "Apache-2.0" ]
87
2016-01-21T00:52:47.000Z
2022-02-16T21:08:53.000Z
_version.py
agile-geoscience/seisplot
4afaea9d6825873ed99311a70778ebc5a4f17299
[ "Apache-2.0" ]
41
2016-01-22T14:01:17.000Z
2020-05-18T12:48:46.000Z
_version.py
agilescientific/seisplot
5d489950c0065de8c36ee48a0c79bc3e908bf87b
[ "Apache-2.0" ]
46
2016-01-21T11:03:00.000Z
2022-01-10T06:08:33.000Z
# -*- coding: utf-8 -*- """ Version. Doing it this way provides for access in setup.py and via __version__ """ __version__ = "0.4"
16.5
69
0.659091
216d6a345f7ccd177e4da0e692644c2e45d9c0ee
2,394
py
Python
src/normatrix/plugged/nested_branches.py
Saverio976/NorMatrix
a26b2d3814990b126c9f8b40cacd6d62b4e82ac5
[ "MIT" ]
6
2022-01-11T16:53:37.000Z
2022-03-20T23:27:04.000Z
src/normatrix/plugged/nested_branches.py
Saverio976/NorMatrix
a26b2d3814990b126c9f8b40cacd6d62b4e82ac5
[ "MIT" ]
7
2022-01-07T18:37:32.000Z
2022-03-03T21:49:31.000Z
src/normatrix/plugged/nested_branches.py
Saverio976/NorMatrix
a26b2d3814990b126c9f8b40cacd6d62b4e82ac5
[ "MIT" ]
4
2022-01-07T18:03:17.000Z
2022-03-20T18:45:14.000Z
try: from normatrix.source.file_parser import CFileParse from normatrix.source.config import TypeLine from normatrix.source.custom_regex import re_sub except ModuleNotFoundError: from src.normatrix.source.file_parser import CFileParse from src.normatrix.source.config import TypeLine from src.nor...
40.576271
97
0.606516
b5b7eccb207d53a4c3281dfa6414afdca1d0d5dc
566
py
Python
venv/Lib/site-packages/nipype/interfaces/semtools/filtering/__init__.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/interfaces/semtools/filtering/__init__.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/interfaces/semtools/filtering/__init__.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
# -*- coding: utf-8 -*- from .denoising import UnbiasedNonLocalMeans from .featuredetection import ( GenerateSummedGradientImage, CannySegmentationLevelSetImageFilter, DilateImage, TextureFromNoiseImageFilter, FlippedDifference, ErodeImage, GenerateBrainClippedImage, NeighborhoodMedian, ...
24.608696
44
0.761484
c595b3bbcc9893b7b68e623ab61ad59c27acea48
1,793
py
Python
concurrent_rps.py
aszychlinski/scrapbook
a5cba667a4a5eec6719b36c41c9722cf278f74a2
[ "MIT" ]
null
null
null
concurrent_rps.py
aszychlinski/scrapbook
a5cba667a4a5eec6719b36c41c9722cf278f74a2
[ "MIT" ]
null
null
null
concurrent_rps.py
aszychlinski/scrapbook
a5cba667a4a5eec6719b36c41c9722cf278f74a2
[ "MIT" ]
null
null
null
from random import choice from time import time from concurrent.futures import ThreadPoolExecutor class RPSPlayer: figures = ['rock', 'paper', 'scissors'] def __init__(self, name: str, preference: str): self.name = name self.score = 0 self.preference = preference self.last_ch...
31.45614
86
0.668154
90c9e6f0fbc593947541bbc2fc6e755d046134f8
14,226
py
Python
tests/components/integration/test_sensor.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
3
2019-10-02T04:40:26.000Z
2020-02-16T13:19:08.000Z
tests/components/integration/test_sensor.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
1,016
2019-06-18T21:27:47.000Z
2020-03-06T11:09:58.000Z
tests/components/integration/test_sensor.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
1
2021-12-10T10:33:28.000Z
2021-12-10T10:33:28.000Z
"""The tests for the integration sensor platform.""" from datetime import timedelta from unittest.mock import patch from homeassistant.components.sensor import SensorDeviceClass, SensorStateClass from homeassistant.const import ( ATTR_UNIT_OF_MEASUREMENT, ENERGY_KILO_WATT_HOUR, ENERGY_WATT_HOUR, POWER_...
32.854503
88
0.634332
45b2e6bb7b7409e7571806d70172dec83ad9f011
48,233
py
Python
accelbyte_py_sdk/api/platform/models/payment_order.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/platform/models/payment_order.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
accelbyte_py_sdk/api/platform/models/payment_order.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # justice-platform-service (4.10.0) # pylint: disabl...
41.014456
240
0.564945
aee855d93f7871033c902c466ebfda82ea548236
3,624
py
Python
test/test_report_open_shift_aws_storage_inventory_all_of.py
chargio/using-koku-api-test
2f41fd83ab730705352b116b7a6e05ae3d9a8ebd
[ "MIT" ]
1
2020-03-18T11:32:09.000Z
2020-03-18T11:32:09.000Z
test/test_report_open_shift_aws_storage_inventory_all_of.py
chargio/using-koku-api-test
2f41fd83ab730705352b116b7a6e05ae3d9a8ebd
[ "MIT" ]
null
null
null
test/test_report_open_shift_aws_storage_inventory_all_of.py
chargio/using-koku-api-test
2f41fd83ab730705352b116b7a6e05ae3d9a8ebd
[ "MIT" ]
null
null
null
# coding: utf-8 """ Cost Management The API for Project Koku and OpenShift cost management. You can find out more about Cost Management at [https://github.com/project-koku/](https://github.com/project-koku/). # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-gener...
39.824176
330
0.532285
502ccb0fb3d822e9581af338f0bfa3ec69540aa9
1,742
py
Python
popmon/hist/filling/__init__.py
lnxpy/popmon
b0a05001ccca189648cfd861533573d1ecb5acff
[ "MIT" ]
null
null
null
popmon/hist/filling/__init__.py
lnxpy/popmon
b0a05001ccca189648cfd861533573d1ecb5acff
[ "MIT" ]
null
null
null
popmon/hist/filling/__init__.py
lnxpy/popmon
b0a05001ccca189648cfd861533573d1ecb5acff
[ "MIT" ]
null
null
null
# Copyright (c) 2020 ING Wholesale Banking Advanced Analytics # # 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, mo...
45.842105
82
0.741102
b21076c69b802e57779b4db96b235cc1bed322de
29,709
py
Python
pybleau/app/ui/dataframe_analyzer_model_view.py
KBIbiopharma/pybleau
5cdfce603ad29af874f74f0f527adc6b4c9066e8
[ "MIT" ]
4
2020-02-27T22:38:29.000Z
2021-05-03T05:32:11.000Z
pybleau/app/ui/dataframe_analyzer_model_view.py
KBIbiopharma/pybleau
5cdfce603ad29af874f74f0f527adc6b4c9066e8
[ "MIT" ]
85
2020-02-04T21:57:14.000Z
2021-05-03T14:29:40.000Z
pybleau/app/ui/dataframe_analyzer_model_view.py
KBIbiopharma/pybleau
5cdfce603ad29af874f74f0f527adc6b4c9066e8
[ "MIT" ]
1
2020-02-20T00:45:09.000Z
2020-02-20T00:45:09.000Z
import logging from copy import copy import numpy as np import pandas as pd import traitsui from app_common.pyface.ui.extra_file_dialogs import request_csv_file from app_common.std_lib.filepath_utils import open_file from app_common.std_lib.logging_utils import ACTION_LEVEL from app_common.traitsui.common_traitsui_gro...
38.334194
128
0.619004
c4d7e4f334cdd6121d3777b5d69eb76ad658c709
3,857
py
Python
plenum/test/view_change/test_view_change_after_back_to_quorum_with_disconnected_primary.py
cam-parra/indy-plenum
a891defac546488c6ec2f4a12d23894742d1427f
[ "Apache-2.0" ]
null
null
null
plenum/test/view_change/test_view_change_after_back_to_quorum_with_disconnected_primary.py
cam-parra/indy-plenum
a891defac546488c6ec2f4a12d23894742d1427f
[ "Apache-2.0" ]
null
null
null
plenum/test/view_change/test_view_change_after_back_to_quorum_with_disconnected_primary.py
cam-parra/indy-plenum
a891defac546488c6ec2f4a12d23894742d1427f
[ "Apache-2.0" ]
null
null
null
import pytest from plenum.server.view_change.view_changer import ViewChanger from plenum.test.helper import checkViewNoForNodes, waitForViewChange, sdk_send_random_and_check, view_change_timeout from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data from plenum.test.pool_transactions.helper import...
46.46988
117
0.655432
8f1a41b0e7a6fe554429f4b4cc797321daf47813
1,793
py
Python
docs/names/examples/gethostbyname.py
mathieui/twisted
35546d2b50742a32edba54719ce3e752dc50dd2a
[ "MIT", "Unlicense" ]
1
2019-02-08T18:37:42.000Z
2019-02-08T18:37:42.000Z
docs/names/examples/gethostbyname.py
mathieui/twisted
35546d2b50742a32edba54719ce3e752dc50dd2a
[ "MIT", "Unlicense" ]
5
2020-06-05T18:16:39.000Z
2022-01-13T00:45:49.000Z
docs/names/examples/gethostbyname.py
mathieui/twisted
35546d2b50742a32edba54719ce3e752dc50dd2a
[ "MIT", "Unlicense" ]
1
2021-12-13T10:46:13.000Z
2021-12-13T10:46:13.000Z
#!/usr/bin/env python # -*- test-case-name: twisted.names.test.test_examples -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Print the IP address for a given hostname. eg python gethostbyname.py www.google.com This script does a host lookup using the default Twisted Names resolver, ...
23.285714
71
0.677078
49ee43b2c2ae9da4bbe42ad722ea106cc936f1fd
532
py
Python
cride/circles/urls.py
sgg10/cride
e241028430656c54aa0133a173efad656cab233d
[ "MIT" ]
null
null
null
cride/circles/urls.py
sgg10/cride
e241028430656c54aa0133a173efad656cab233d
[ "MIT" ]
null
null
null
cride/circles/urls.py
sgg10/cride
e241028430656c54aa0133a173efad656cab233d
[ "MIT" ]
null
null
null
"""Circle urls.""" # Django from django.urls import path, include # Django REST Framework from rest_framework.routers import DefaultRouter # Views from .views import circles as circles_views from .views import memberships as membership_views router = DefaultRouter() router.register(r'circles', circles_views.CircleV...
23.130435
75
0.763158
ddc9c9e688ef40153ac61aa5609e26c467f7ebf4
5,460
py
Python
src/zenmake/zm/buildconf/select.py
pustotnik/zenmake
0c089b35d2dcfd1825440c2561fc57e79e7383f0
[ "BSD-3-Clause" ]
2
2019-10-14T05:05:34.000Z
2022-03-28T04:55:00.000Z
src/zenmake/zm/buildconf/select.py
pustotnik/zenmake
0c089b35d2dcfd1825440c2561fc57e79e7383f0
[ "BSD-3-Clause" ]
42
2020-08-25T07:59:32.000Z
2021-11-15T03:12:29.000Z
src/zenmake/zm/buildconf/select.py
pustotnik/zenmake
0c089b35d2dcfd1825440c2561fc57e79e7383f0
[ "BSD-3-Clause" ]
1
2021-08-13T13:59:51.000Z
2021-08-13T13:59:51.000Z
# coding=utf-8 # """ Copyright (c) 2020, Alexander Magola. All rights reserved. license: BSD 3-Clause License, see LICENSE for more details. """ import os from zm.constants import PLATFORM, KNOWN_PLATFORMS, HOST_OS, DISTRO_INFO, CPU_ARCH from zm.utils import toList from zm.error import ZenMakeLogicError, ZenMakeCo...
31.022727
84
0.655495
9598ab944ce39d838f8e635bd5f862970bac42a2
306
py
Python
lib/ops/__init__.py
BarneyQiao/pcl.pytorch
4e0280e5e1470f705e620eda26f881d627c5016c
[ "MIT" ]
233
2019-05-10T07:17:42.000Z
2022-03-30T09:24:16.000Z
lib/ops/__init__.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
78
2019-05-10T21:10:47.000Z
2022-03-29T13:57:32.000Z
lib/ops/__init__.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
57
2019-05-10T07:17:37.000Z
2022-03-24T04:43:24.000Z
# This file is added for back-compatibility. Thus, downstream codebase # could still use and import mmdet.ops. # yapf: disable from mmcv.ops import (RoIPool, RoIAlign, roi_pool, roi_align, nms, soft_nms) # yapf: enable __all__ = [ 'RoIPool', 'RoIAlign', 'roi_pool', 'roi_align', 'nms', 'soft_nms' ]
25.5
76
0.712418
e1558e195fdb00baebb28c928d814deb9fd9ea0e
54
py
Python
python/metaparticle_pkg/__init__.py
radu-matei/metaparticle-package
5c1640db16079aea02f738d37612a6b68fc10bc0
[ "MIT" ]
null
null
null
python/metaparticle_pkg/__init__.py
radu-matei/metaparticle-package
5c1640db16079aea02f738d37612a6b68fc10bc0
[ "MIT" ]
null
null
null
python/metaparticle_pkg/__init__.py
radu-matei/metaparticle-package
5c1640db16079aea02f738d37612a6b68fc10bc0
[ "MIT" ]
null
null
null
from metaparticle_pkg.containerize import Containerize
54
54
0.925926
fad94b857b0d7082616495124cb995176ad5665d
5,897
py
Python
archive/script_check_quote.py
mit-ll/MIT-keylime
b530e931aab74b32d375e4bb611767e297f06ace
[ "BSD-2-Clause" ]
2
2020-04-02T07:19:41.000Z
2020-05-06T16:05:48.000Z
scripts/script_check_quote.py
bu3alwa/keylime
02305afa2e917554e54c2c5a2f150dc2c25dd290
[ "BSD-2-Clause" ]
null
null
null
scripts/script_check_quote.py
bu3alwa/keylime
02305afa2e917554e54c2c5a2f150dc2c25dd290
[ "BSD-2-Clause" ]
1
2019-11-06T22:48:52.000Z
2019-11-06T22:48:52.000Z
#!/usr/bin/env python ''' DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited. This material is based upon work supported by the Assistant Secretary of Defense for Research and Engineering under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions, findings, conclu...
33.890805
191
0.690012
ee7fe7948b1b9c62fff333542904390bfac6dd68
3,448
py
Python
code/datasets/unreal_DTU.py
simon-donne/defusr
fa4275070af4024eea128e99d7c6df2358d129a5
[ "MIT" ]
65
2019-04-08T20:24:01.000Z
2021-09-22T22:16:13.000Z
code/datasets/unreal_DTU.py
simon-donne/defusr
fa4275070af4024eea128e99d7c6df2358d129a5
[ "MIT" ]
4
2019-07-22T05:30:27.000Z
2020-05-27T05:36:52.000Z
code/datasets/unreal_DTU.py
simon-donne/defusr
fa4275070af4024eea128e99d7c6df2358d129a5
[ "MIT" ]
13
2019-05-01T22:22:06.000Z
2021-09-24T07:19:13.000Z
from datasets.DTU import DTUAdapter import torch from local_config import base_data_folder import os class UnrealDTUAdapter(DTUAdapter): """Adapter for a homebrew Unreal Engine version of the DTU MVS dataset.""" datapath = os.path.join(base_data_folder, 'unrealDTU/') nr_views = 49 def _set_default_...
33.475728
109
0.588457
d366dfba204d90d86f535a62fce06a6c5a2bb2f5
163
py
Python
textract/parsers/psv_parser.py
Pandaaaa906/textract
cee75460d3d43f0aa6f4967c6ccf069ee79fc560
[ "MIT" ]
1,950
2015-01-01T18:30:11.000Z
2022-03-30T21:06:41.000Z
textract/parsers/psv_parser.py
Pandaaaa906/textract
cee75460d3d43f0aa6f4967c6ccf069ee79fc560
[ "MIT" ]
322
2015-01-05T09:54:45.000Z
2022-03-28T17:47:15.000Z
textract/parsers/psv_parser.py
Pandaaaa906/textract
cee75460d3d43f0aa6f4967c6ccf069ee79fc560
[ "MIT" ]
470
2015-01-14T11:51:42.000Z
2022-03-23T07:05:46.000Z
from .csv_parser import Parser as BaseParser class Parser(BaseParser): """Extract text from pipe separated values files (.psv). """ delimiter = '|'
18.111111
60
0.674847
6855b9fafaac9e59c5f9cb4766f7c008e043d67a
4,462
py
Python
models/noise2true_trainer.py
P0lyFish/noise2-series
a21ad1b7cb20e44161393156efd7dcdab729b4a3
[ "MIT" ]
4
2021-01-05T05:27:36.000Z
2022-01-07T12:39:54.000Z
models/noise2true_trainer.py
P0lyFish/noise2-series
a21ad1b7cb20e44161393156efd7dcdab729b4a3
[ "MIT" ]
null
null
null
models/noise2true_trainer.py
P0lyFish/noise2-series
a21ad1b7cb20e44161393156efd7dcdab729b4a3
[ "MIT" ]
null
null
null
import logging from collections import OrderedDict import torch import torch.nn as nn from torch.nn.parallel import DataParallel, DistributedDataParallel import models.lr_scheduler as lr_scheduler from .base_trainer import BaseTrainer from models.loss import CharbonnierLoss from models.unet import Unet logger = loggi...
36.876033
79
0.476916
3d5e559d72ec0809a49a8f17168a7276ccf681bd
10,344
py
Python
utils.py
denisyarats/exorl
a3fb07a420939280aa0918150923dcca7e82bf2a
[ "MIT" ]
23
2022-02-08T20:28:47.000Z
2022-03-31T11:00:25.000Z
utils.py
denisyarats/exorl
a3fb07a420939280aa0918150923dcca7e82bf2a
[ "MIT" ]
1
2022-03-10T04:45:19.000Z
2022-03-10T04:45:19.000Z
utils.py
denisyarats/exorl
a3fb07a420939280aa0918150923dcca7e82bf2a
[ "MIT" ]
null
null
null
import random import re import time import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from omegaconf import OmegaConf from torch import distributions as pyd from torch.distributions.utils import _standard_normal class eval_mode: def __init__(self, *models): ...
32.325
137
0.554234
e08d6fc696bfe8b30c58792e7acff54143e8c262
216
py
Python
finished/edabit/very_easy/sum_polygon_angles.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
8
2021-05-29T23:30:12.000Z
2021-09-24T03:25:44.000Z
finished/edabit/very_easy/sum_polygon_angles.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
null
null
null
finished/edabit/very_easy/sum_polygon_angles.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
6
2021-06-02T14:20:24.000Z
2021-08-19T00:49:26.000Z
# Return the total sum of internal angles (in degrees) def sum_polygon(n: int) -> int: return (n - 2) * 180 # sum_polygon_lambda = lambda n: (n - 2) * 180 if __name__ == "__main__": print(sum_polygon(24))
21.6
54
0.648148
657c7fc7206fcedc644bb2f16e5959db0eeedf24
79
py
Python
table/apps.py
sainioan/extractiontool
9908b7ff1915b00a5721405a48b13d941442e1dd
[ "MIT" ]
2
2021-05-18T17:25:06.000Z
2021-05-28T04:24:16.000Z
table/apps.py
sainioan/extractiontool
9908b7ff1915b00a5721405a48b13d941442e1dd
[ "MIT" ]
38
2021-01-20T09:38:37.000Z
2021-05-15T13:10:05.000Z
table/apps.py
sainioan/extractiontool
9908b7ff1915b00a5721405a48b13d941442e1dd
[ "MIT" ]
3
2021-01-20T13:18:31.000Z
2021-02-25T13:34:49.000Z
from django.apps import AppConfig class Table(AppConfig): name = 'table'
13.166667
33
0.721519
e5cf9f4d971d4fa3cfc5c6849c0ae1589426effe
720
py
Python
ampa/voting/forms.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
ampa/voting/forms.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
ampa/voting/forms.py
jordiprats/django-ampa
b8e9d6076c32caa8bdc11094362ddccb12d95f8c
[ "Apache-2.0" ]
null
null
null
from django.forms import ModelForm from django import forms from voting.models import * class ElectionForm(forms.ModelForm): class Meta: model = Election fields = (['titol', 'html_message', 'multianswer', 'anonymous']) labels = { 'titol': 'Titol', 'html_message': '...
27.692308
72
0.551389
8da196dbb664c95e975ea97ba4e6c0183872e776
6,071
py
Python
code/svm.py
lahrie/Ensemble_Twitter_Analysis
a661c7b20cd491e454faf18240f3c7f5779d2829
[ "MIT" ]
11
2021-07-15T13:21:26.000Z
2022-01-28T03:27:24.000Z
code/svm.py
lahrie/FINAL_EXAM-Ensemble_Twitter_Analysis
a661c7b20cd491e454faf18240f3c7f5779d2829
[ "MIT" ]
null
null
null
code/svm.py
lahrie/FINAL_EXAM-Ensemble_Twitter_Analysis
a661c7b20cd491e454faf18240f3c7f5779d2829
[ "MIT" ]
7
2021-06-27T16:37:47.000Z
2022-02-25T03:59:07.000Z
from sklearn import svm import utils import random import numpy as np from scipy.sparse import lil_matrix from sklearn.feature_extraction.text import TfidfTransformer # Performs classification using SVM. FREQ_DIST_FILE = '../train-processed-freqdist.pkl' BI_FREQ_DIST_FILE = '../train-processed-freqdist-bi.pkl' TRAIN_...
37.245399
134
0.620985
2f7929f0768c9ed6588b5ebf9accbf8963e5c4aa
45,222
py
Python
env/lib/python3.7/site-packages/sklearn/feature_extraction/tests/test_text.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
25
2019-03-08T01:03:03.000Z
2022-02-14T17:38:32.000Z
env/lib/python3.7/site-packages/sklearn/feature_extraction/tests/test_text.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
9
2020-09-25T22:32:02.000Z
2022-02-09T23:45:10.000Z
env/lib/python3.7/site-packages/sklearn/feature_extraction/tests/test_text.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
# -*- coding: utf-8 -*- from collections.abc import Mapping import re import warnings import pytest from scipy import sparse from sklearn.feature_extraction.text import strip_tags from sklearn.feature_extraction.text import strip_accents_unicode from sklearn.feature_extraction.text import strip_accents_ascii from sk...
36.004777
79
0.671576
2375aed0fc5649289cbc077e2320ecbfe21ba664
160
py
Python
3.5/scrapy_plus/middlewares/__init__.py
feel-easy/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
1
2019-02-28T10:16:00.000Z
2019-02-28T10:16:00.000Z
3.5/scrapy_plus/middlewares/__init__.py
wasalen/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
null
null
null
3.5/scrapy_plus/middlewares/__init__.py
wasalen/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
null
null
null
# THE WINTER IS COMING! the old driver will be driving who was a man of the world! # -*- coding: utf-8 -*- python 3.6.7, create time is 18-11-30 上午11:32 GMT+8
40
82
0.68125
ee3e43aa04d9354394cd77ace006e633e4d0f79c
4,345
py
Python
scripts/experiments-evaluation/network_evaluation.py
gomerudo/nas-rl2
3fddf42603ec54d9d157df8515881a1469ed5eb3
[ "MIT" ]
5
2020-05-24T21:05:26.000Z
2021-09-27T21:05:02.000Z
scripts/experiments-evaluation/network_evaluation.py
gomerudo/nas-rl2
3fddf42603ec54d9d157df8515881a1469ed5eb3
[ "MIT" ]
null
null
null
scripts/experiments-evaluation/network_evaluation.py
gomerudo/nas-rl2
3fddf42603ec54d9d157df8515881a1469ed5eb3
[ "MIT" ]
4
2020-09-18T16:24:15.000Z
2022-03-15T08:58:17.000Z
"""Train a network specified in Neural Structure Code (NSC) for 100 epochs. It relies on the NetEvaluation class from the NasGym. The network has to be manually specified in this file (line 30). Given a network in NSC code, we build a TensorFlow network with every convolution layer using 32 -> 64 -> 128 ... filters. ...
30.173611
78
0.643728
be378ab80b57131d1ffec21bf02dd3f1bb0e2efa
4,656
py
Python
PROJ/LEVY/American_Options/Script_BermudanOptions.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
PROJ/LEVY/American_Options/Script_BermudanOptions.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
null
null
null
PROJ/LEVY/American_Options/Script_BermudanOptions.py
mattslezak-shell/PROJ_Option_Pricing_Matlab
6105bd00ba3471802180c122fdf81e90833a91c4
[ "MIT" ]
1
2022-01-07T15:31:45.000Z
2022-01-07T15:31:45.000Z
# Generated with SMOP 0.41-beta try: from smop.libsmop import * except ImportError: raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None # Script_BermudanOptions.m ################################################################## ### Bermudan OPTION PRICER ...
32.333333
106
0.515679
b871d4938a36e48d54617e789e515582788b8dfc
2,782
py
Python
gpvdm_gui/gui/ribbon_solar.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
12
2016-09-13T08:58:13.000Z
2022-01-17T07:04:52.000Z
gpvdm_gui/gui/ribbon_solar.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
3
2017-11-11T12:33:02.000Z
2019-03-08T00:48:08.000Z
gpvdm_gui/gui/ribbon_solar.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
6
2019-01-03T06:17:12.000Z
2022-01-01T15:59:00.000Z
# -*- coding: utf-8 -*- # # General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall # model for 1st, 2nd and 3rd generation solar cells. # Copyright (C) 2008-2022 Roderick C. I. MacKenzie r.c.i.mackenzie at googlemail.com # # https://www.gpvdm.com # # This program is free ...
29.284211
148
0.75018
70800fe42d8cd0f23d619c4a439ac3b5114fe985
3,933
py
Python
demos/Learning_Rate_Decay/Demo_applications/no_decay_lr_comparison_application.py
tdml13/NiftyNet
b35fa19ca307e81d229e2fe8269a417724833da2
[ "Apache-2.0" ]
1,403
2017-08-30T11:49:45.000Z
2022-03-31T11:44:05.000Z
demos/Learning_Rate_Decay/Demo_applications/no_decay_lr_comparison_application.py
tdml13/NiftyNet
b35fa19ca307e81d229e2fe8269a417724833da2
[ "Apache-2.0" ]
360
2017-10-03T15:33:53.000Z
2021-03-17T06:27:38.000Z
demos/Learning_Rate_Decay/Demo_applications/no_decay_lr_comparison_application.py
tdml13/NiftyNet
b35fa19ca307e81d229e2fe8269a417724833da2
[ "Apache-2.0" ]
464
2017-09-13T20:56:32.000Z
2022-02-11T20:33:47.000Z
import tensorflow as tf from niftynet.application.segmentation_application import \ SegmentationApplication from niftynet.engine.application_factory import OptimiserFactory from niftynet.engine.application_variables import CONSOLE from niftynet.engine.application_variables import TF_SUMMARIES from niftynet.layer.l...
45.732558
78
0.653699
0c9a15a17abcfd47f7f90f27a16bf2d28ca51b5b
267
py
Python
termitolib/loans/forms.py
dmrib/termitolib
bca3c93758256114ccce0c81be29284cde003cf0
[ "MIT" ]
1
2017-11-24T21:38:19.000Z
2017-11-24T21:38:19.000Z
termitolib/loans/forms.py
dmrib/termitolib
bca3c93758256114ccce0c81be29284cde003cf0
[ "MIT" ]
3
2021-09-07T23:49:45.000Z
2022-02-10T12:56:39.000Z
termitolib/loans/forms.py
dmrib/termitolib
bca3c93758256114ccce0c81be29284cde003cf0
[ "MIT" ]
2
2017-07-28T22:38:44.000Z
2017-08-04T01:09:10.000Z
from django import forms from .models import Loan from books.models import Book class LoanForm(forms.ModelForm): code = forms.CharField(label='Book Code') class Meta: model = Loan fields = [ 'to', ]
19.071429
46
0.561798
51d23978ba94c123b947db9269fb00d3771d7f5b
10,089
py
Python
intersight/model/virtualization_memory_capacity_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/virtualization_memory_capacity_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/virtualization_memory_capacity_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
52.546875
1,678
0.639508
75444f58b28f4be4500e7f9f49d20cd8ecd290f7
9,928
py
Python
profiles/serializers.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
profiles/serializers.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
profiles/serializers.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
""" Serializers for user profiles """ from django.db import transaction from rest_framework.exceptions import ValidationError from rest_framework.serializers import ( IntegerField, ModelSerializer, SerializerMethodField, ) from profiles.models import ( Education, Employment, Profile, ) def up...
31.417722
105
0.612812
36f4cbf85564e86accaef75867f8490be2421d15
2,691
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/ha/reload/nxos/n7k/reload.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/ha/reload/nxos/n7k/reload.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/ha/reload/nxos/n7k/reload.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
'''NXOS implementation for Reload triggers''' # import python import logging # import pyats from pyats import aetest from pyats.utils.objects import R # Genie Libs from genie.libs.sdk.libs.utils.mapping import Mapping from genie.libs.sdk.triggers.ha.ha import TriggerReloadFabric log = logging.getLogger(__name__) #...
41.4
106
0.544036
a0763a98c618cb9cc4d8396a8ec620f0b5858e54
1,819
py
Python
mysite/polls/views.py
bhagvank/pythonConstructs
eb6b3bb2dca0b859c4e78188f70dadc933b8ce40
[ "Apache-2.0" ]
null
null
null
mysite/polls/views.py
bhagvank/pythonConstructs
eb6b3bb2dca0b859c4e78188f70dadc933b8ce40
[ "Apache-2.0" ]
null
null
null
mysite/polls/views.py
bhagvank/pythonConstructs
eb6b3bb2dca0b859c4e78188f70dadc933b8ce40
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import get_object_or_404, render # Create your views here. from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse from django.views import generic from django.utils import timezone from .models import Question, Choice class IndexView(generic.ListView): te...
33.072727
82
0.693238
c4859c58515d357235489e974cae9960b5a18b03
3,921
py
Python
script.module.uncoded/lib/resources/lib/modules/log_utils.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:37:15.000Z
2019-03-05T09:37:15.000Z
script.module.uncoded/lib/resources/lib/modules/log_utils.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
script.module.uncoded/lib/resources/lib/modules/log_utils.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
""" tknorris shared module Copyright (C) 2016 tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
32.675
163
0.625096
89e9617c39da0fdfd9a3cc92cbd3097cf2acdac8
2,604
py
Python
life_3D/bio_sim_3d.py
BrainAnnex/life123
8547d6800c5fc99183c8b98068e27a414fa77705
[ "MIT" ]
null
null
null
life_3D/bio_sim_3d.py
BrainAnnex/life123
8547d6800c5fc99183c8b98068e27a414fa77705
[ "MIT" ]
null
null
null
life_3D/bio_sim_3d.py
BrainAnnex/life123
8547d6800c5fc99183c8b98068e27a414fa77705
[ "MIT" ]
null
null
null
import numpy as np class BioSim3D: """ Note: for at least the time being, this class doesn't get instantiated """ ##################### # Class variables # ##################### n_cells_x = 0 # Number of x-direction spacial compartments (bins) used in the simulation n_cells_y...
44.135593
108
0.545315
178e7871ba2f51c4422b07f6e8f7e92fcdc7c9a2
8,887
py
Python
app.py
Suiname/DDCC
083d5a81127d9df6cf4279106ed59dee247a8bdc
[ "MIT" ]
null
null
null
app.py
Suiname/DDCC
083d5a81127d9df6cf4279106ed59dee247a8bdc
[ "MIT" ]
null
null
null
app.py
Suiname/DDCC
083d5a81127d9df6cf4279106ed59dee247a8bdc
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request import requests import os import re # get username and password from env variables username = os.environ.get('GITHUB_USER') password = os.environ.get('GITHUB_PASS') app = Flask(__name__) def create_response(): """Format Response JSON, referred to as result throughout. ...
37.978632
79
0.56442
8659ecaaf1177c8b4b393b695d3dd5c4af9b5f44
3,327
py
Python
custom-interfaces/video-segmentation-beaverdam/annotator/models.py
stungkit/labelbox
9ac7364cd2dcf9071615dd86802295eb50e5af7d
[ "Apache-2.0" ]
1,345
2018-01-07T07:06:19.000Z
2020-02-26T21:54:33.000Z
custom-interfaces/video-segmentation-beaverdam/annotator/models.py
stungkit/labelbox
9ac7364cd2dcf9071615dd86802295eb50e5af7d
[ "Apache-2.0" ]
135
2018-01-21T21:02:03.000Z
2019-03-12T16:09:02.000Z
custom-interfaces/video-segmentation-beaverdam/annotator/models.py
stungkit/labelbox
9ac7364cd2dcf9071615dd86802295eb50e5af7d
[ "Apache-2.0" ]
214
2018-01-22T06:05:21.000Z
2020-02-25T02:13:44.000Z
from django.db import models from django.contrib.staticfiles import finders class Label(models.Model): """The classes available for workers to choose from for each object.""" id = models.AutoField(primary_key=True) name = models.CharField(blank=True, max_length=100, unique=True, help_text="Name of...
43.207792
238
0.662158
bc81094504d97815f995ed7477856e8b65b4de44
228
py
Python
backend/build_migration/users/urls.py
witold-gren/django-migration
be068f43fd2fb55247ebe50dc0631a51234c8f50
[ "MIT" ]
1
2020-08-25T18:39:10.000Z
2020-08-25T18:39:10.000Z
backend/build_migration/users/urls.py
witold-gren/django-migration
be068f43fd2fb55247ebe50dc0631a51234c8f50
[ "MIT" ]
null
null
null
backend/build_migration/users/urls.py
witold-gren/django-migration
be068f43fd2fb55247ebe50dc0631a51234c8f50
[ "MIT" ]
null
null
null
from django.conf.urls import url from rest_framework import routers from build_migration.users import views app_name = "users" router = routers.DefaultRouter() router.register("", views.UserViewSet) urlpatterns = router.urls
20.727273
39
0.802632
44a1025ec98e22332996edd90cb41c21cdd48c10
6,116
py
Python
src/tests/control/test_search.py
MaxRink/pretix
f561ece9d1591673a495a6226db812e809ab3aec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/control/test_search.py
MaxRink/pretix
f561ece9d1591673a495a6226db812e809ab3aec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/control/test_search.py
MaxRink/pretix
f561ece9d1591673a495a6226db812e809ab3aec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import datetime from decimal import Decimal from django.utils.timezone import now from tests.base import SoupTest from pretix.base.models import ( Event, InvoiceAddress, Item, Order, OrderPosition, Organizer, Team, User, ) class OrderSearchTest(SoupTest): def setUp(self): super().setUp() sel...
41.324324
104
0.630641
ae34c3db25895600b3648a0695479a50ff19a368
1,264
py
Python
server/products/migrations/0008_review.py
jinsub1999/django_react_bootstrap
7b77a93f046da25445ff7088709c5aaac3bda412
[ "MIT" ]
1
2021-08-28T12:09:50.000Z
2021-08-28T12:09:50.000Z
server/products/migrations/0008_review.py
jinsub1999/django_react_bootstrap
7b77a93f046da25445ff7088709c5aaac3bda412
[ "MIT" ]
null
null
null
server/products/migrations/0008_review.py
jinsub1999/django_react_bootstrap
7b77a93f046da25445ff7088709c5aaac3bda412
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-31 10:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('products', '0007_auto_20...
42.133333
150
0.651108
713973d30a027a6f6ef3ba60ce211069d1d95b45
34,658
py
Python
bagpipe/bgp/tests/test_tracker_worker.py
ThomasHeinlein/bagpipe-bgp
f196da35b00925a0743b38243773e528fc5b122f
[ "Apache-2.0" ]
null
null
null
bagpipe/bgp/tests/test_tracker_worker.py
ThomasHeinlein/bagpipe-bgp
f196da35b00925a0743b38243773e528fc5b122f
[ "Apache-2.0" ]
null
null
null
bagpipe/bgp/tests/test_tracker_worker.py
ThomasHeinlein/bagpipe-bgp
f196da35b00925a0743b38243773e528fc5b122f
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # encoding: utf-8 # Copyright 2014 Orange # # 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 # # Un...
44.835705
79
0.638006
891acfbd928c941b9341bbf7248314b930ce2c48
879
py
Python
pava/implementation/natives/java/security/cert/X509CertSelector.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
4
2017-03-30T16:51:16.000Z
2020-10-05T12:25:47.000Z
pava/implementation/natives/java/security/cert/X509CertSelector.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
null
null
null
pava/implementation/natives/java/security/cert/X509CertSelector.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
null
null
null
def add_native_methods(clazz): def setSubjectAlternativeNames__java_util_Collection_java_util_List______(a0, a1): raise NotImplementedError() def addSubjectAlternativeName__int__java_lang_String__(a0, a1, a2): raise NotImplementedError() def addSubjectAlternativeName__int__byte____(a0, a1,...
46.263158
151
0.840728
cdc6592f90e4af1fe9ff791fc27c05449f711560
2,624
py
Python
python/ql/test/library-tests/frameworks/twisted/taint_test.py
timoles/codeql
2d24387e9e300bf03be35694816b1e76ae88a50c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/test/library-tests/frameworks/twisted/taint_test.py
timoles/codeql
2d24387e9e300bf03be35694816b1e76ae88a50c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/test/library-tests/frameworks/twisted/taint_test.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
from twisted.web.resource import Resource from twisted.web.server import Request class MyTaintTest(Resource): def getChild(self, path, request): # $ requestHandler ensure_tainted(path, request) # $ tainted def render(self, request): # $ requestHandler ensure_tainted(request) # $ tainted d...
36.957746
102
0.582317
8b02b481535d5b23f7417cb1da7af063191932bd
82,903
py
Python
hoomd/data.py
atravitz/hoomd-blue
54762a4ec1925efa89be8f48001e676d5c4ffb52
[ "BSD-3-Clause" ]
null
null
null
hoomd/data.py
atravitz/hoomd-blue
54762a4ec1925efa89be8f48001e676d5c4ffb52
[ "BSD-3-Clause" ]
null
null
null
hoomd/data.py
atravitz/hoomd-blue
54762a4ec1925efa89be8f48001e676d5c4ffb52
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2019 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. # Maintainer: joaander R""" Access system configuration data. Code in the data package provides high-level access to all of the particle, bond and other data tha...
35.068951
192
0.633258
4cd0a3fb09213bfa3ec2dd29679258926e534793
1,818
py
Python
bloguers/recomendations/migrations/0001_initial.py
CamiloGato/web-empresarial-simple
5d4aafed7aea1a580c82adfcd2102888aa983522
[ "Apache-2.0" ]
null
null
null
bloguers/recomendations/migrations/0001_initial.py
CamiloGato/web-empresarial-simple
5d4aafed7aea1a580c82adfcd2102888aa983522
[ "Apache-2.0" ]
4
2020-06-06T01:09:35.000Z
2022-03-12T00:10:37.000Z
bloguers/recomendations/migrations/0001_initial.py
CamiloGato/web-empresarial-simple
5d4aafed7aea1a580c82adfcd2102888aa983522
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2020-01-06 23:50 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField...
40.4
141
0.573157
edc872431158cbe21611262d6c1be1dbca72ebbe
1,606
py
Python
profiles_api/serializers.py
nomadbard916/beginner-django-rest-api
ab1169b1c0dcfa860f0cfb45ced34b39df717e15
[ "MIT" ]
null
null
null
profiles_api/serializers.py
nomadbard916/beginner-django-rest-api
ab1169b1c0dcfa860f0cfb45ced34b39df717e15
[ "MIT" ]
7
2020-06-06T01:56:25.000Z
2022-02-10T11:44:24.000Z
profiles_api/serializers.py
nomadbard916/beginner-django-rest-api
ab1169b1c0dcfa860f0cfb45ced34b39df717e15
[ "MIT" ]
null
null
null
from rest_framework import serializers # from rest_framework.serializers import ModelSerializer from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializes a name field for testing our APIView""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serial...
30.884615
71
0.643836