hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
3462de93ffe8f19f0c9efe50a5a6ce38ccc6d111
7,587
py
Python
tensorflow_model_analysis/metrics/metric_types_test.py
rtg0795/model-analysis
0f73989a2dfe1e56548f1ccd0001d98846f89e05
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/metrics/metric_types_test.py
rtg0795/model-analysis
0f73989a2dfe1e56548f1ccd0001d98846f89e05
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/metrics/metric_types_test.py
rtg0795/model-analysis
0f73989a2dfe1e56548f1ccd0001d98846f89e05
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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, ...
34.330317
80
0.544352
b299f2229dd00075dac1371cbb46f3f89bb80111
45,731
py
Python
tests/contract/test_resource_client.py
sungkkim/cloudformation-cli
0e0f72b574ba10f36bdaffdd4e1cf4359f37815c
[ "Apache-2.0" ]
null
null
null
tests/contract/test_resource_client.py
sungkkim/cloudformation-cli
0e0f72b574ba10f36bdaffdd4e1cf4359f37815c
[ "Apache-2.0" ]
null
null
null
tests/contract/test_resource_client.py
sungkkim/cloudformation-cli
0e0f72b574ba10f36bdaffdd4e1cf4359f37815c
[ "Apache-2.0" ]
null
null
null
# fixture and parameter have the same name # pylint: disable=redefined-outer-name,protected-access import logging import time from io import StringIO from unittest.mock import ANY, patch import pytest from rpdk.core.boto_helpers import LOWER_CAMEL_CRED_KEYS from rpdk.core.contract.interface import Action, HandlerErro...
32.711731
94
0.638845
ce2a33210551930a79b6698d6ff6b72b7531a126
225,571
py
Python
src/genie/libs/parser/iosxe/show_wireless.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_wireless.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_wireless.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Any, Optional, Or # ========================================== # Schema for: # * 'show wireless profile policy detailed {policy_name}' # ========================================== class ShowWirelessProfilePolicyDetaile...
47.111738
246
0.527555
227717328be04d6cd5052aad2de68d65d2da7ef9
248
py
Python
api/user_api/api/serializers.py
pradita101/mitrais_test
ae4ab6f4f791b194b8d35481b6a4c25b067ed1e6
[ "MIT" ]
null
null
null
api/user_api/api/serializers.py
pradita101/mitrais_test
ae4ab6f4f791b194b8d35481b6a4c25b067ed1e6
[ "MIT" ]
null
null
null
api/user_api/api/serializers.py
pradita101/mitrais_test
ae4ab6f4f791b194b8d35481b6a4c25b067ed1e6
[ "MIT" ]
null
null
null
from rest_framework import serializers from user_api.models import Users class UserSerializer(serializers.ModelSerializer): class Meta: model = Users fields = ['firstname', 'lastname', 'email', 'mobile', 'gender', 'datebirth']
31
84
0.71371
43dc1165166af7bea76b5d9f8ff2973535429e43
1,423
py
Python
tests/fixtures/conftest.py
jennur/invenio-rdm-records
06cf273446a97cf2b037d24f1619a869974dcb30
[ "MIT" ]
null
null
null
tests/fixtures/conftest.py
jennur/invenio-rdm-records
06cf273446a97cf2b037d24f1619a869974dcb30
[ "MIT" ]
null
null
null
tests/fixtures/conftest.py
jennur/invenio-rdm-records
06cf273446a97cf2b037d24f1619a869974dcb30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # Copyright (C) 2021 Northwestern University. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Test fixtures for application vocabulary fixtures.""" import...
25.872727
77
0.710471
ba3ad3cb0c5d56947a7e0312decade3a4d952732
2,849
py
Python
sef_dr/similarity.py
passalis/sef
cf5387e9e5198542522eb8d2784685233e1266ac
[ "MIT" ]
31
2017-07-09T09:14:17.000Z
2021-04-21T00:21:13.000Z
sef_dr/similarity.py
passalis/sef
cf5387e9e5198542522eb8d2784685233e1266ac
[ "MIT" ]
null
null
null
sef_dr/similarity.py
passalis/sef
cf5387e9e5198542522eb8d2784685233e1266ac
[ "MIT" ]
2
2018-08-03T13:49:16.000Z
2020-07-21T09:32:42.000Z
# License: MIT License https://github.com/passalis/sef/blob/master/LICENSE.txt from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import torch from torch.autograd import Variable from sklearn.metrics.pairwise import pairwise_distances def mean_data_distance(data): ...
26.137615
107
0.648298
354921e9e04b18c14ee82a3689a74a384b950474
33,545
py
Python
python/pyspark/ml/evaluation.py
bxji/spark
f893a19c4cf62dd13bf179de75af6feb677c4154
[ "Apache-2.0" ]
1
2015-04-29T02:32:47.000Z
2015-04-29T02:32:47.000Z
python/pyspark/ml/evaluation.py
nssalian/spark
7c14f177eb5b52d491f41b217926cc8ca5f0ce4c
[ "Apache-2.0" ]
1
2022-02-22T11:44:30.000Z
2022-02-27T05:01:19.000Z
python/pyspark/ml/evaluation.py
nssalian/spark
7c14f177eb5b52d491f41b217926cc8ca5f0ce4c
[ "Apache-2.0" ]
1
2021-06-17T03:34:44.000Z
2021-06-17T03:34:44.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
36.741512
99
0.601997
de84adf616b3dcdc081299e3ba3652a46a869446
704
py
Python
.eggs/docutils-0.14-py2.7.egg/EGG-INFO/scripts/rst2html4.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
5
2020-01-03T15:54:22.000Z
2022-01-12T14:53:26.000Z
.eggs/docutils-0.14-py2.7.egg/EGG-INFO/scripts/rst2html4.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
1
2020-04-17T09:08:38.000Z
2020-04-17T15:55:37.000Z
.eggs/docutils-0.14-py2.7.egg/EGG-INFO/scripts/rst2html4.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
1
2021-05-04T09:18:22.000Z
2021-05-04T09:18:22.000Z
#!python # $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing (X)HTML. The output conforms to XHTML 1.0 transitional and almost to HTML 4.01 transi...
26.074074
78
0.741477
91fcd9d73c862e5ac0f42c088878e0bc04c8345b
3,051
py
Python
lego/apps/articles/migrations/0002_auto_20170828_1020.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
45
2017-10-24T12:09:06.000Z
2021-11-03T21:21:03.000Z
lego/apps/articles/migrations/0002_auto_20170828_1020.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
980
2017-10-24T12:29:07.000Z
2022-03-31T04:04:31.000Z
lego/apps/articles/migrations/0002_auto_20170828_1020.py
wahello/lego
a0b02f3abc997fe96326e9c9c05b49847170041b
[ "MIT" ]
23
2018-04-11T16:34:22.000Z
2021-11-23T12:28:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-28 10:20 from __future__ import unicode_literals import django.db.models.deletion from django.conf import settings from django.db import migrations, models import lego.apps.files.models class Migration(migrations.Migration): initial = True de...
31.132653
88
0.540151
bf06f4c76e76e45dd1c65cd39eb281d14a0979dc
2,830
py
Python
tests/aequilibrae/project/test_network_triggers.py
Art-Ev/aequilibrae
9f438278e09c875717779bfcc99bf7ba75ed1372
[ "MIT" ]
82
2018-07-18T09:58:21.000Z
2022-03-30T15:36:25.000Z
tests/aequilibrae/project/test_network_triggers.py
Art-Ev/aequilibrae
9f438278e09c875717779bfcc99bf7ba75ed1372
[ "MIT" ]
197
2018-06-30T07:01:46.000Z
2022-03-30T06:30:43.000Z
tests/aequilibrae/project/test_network_triggers.py
Art-Ev/aequilibrae
9f438278e09c875717779bfcc99bf7ba75ed1372
[ "MIT" ]
29
2018-07-16T18:10:39.000Z
2022-03-30T15:36:26.000Z
from unittest import TestCase import sqlite3 from tempfile import gettempdir import os import uuid from shutil import copytree from aequilibrae.project import Project from aequilibrae.project.project_creation import remove_triggers, add_triggers from ...data import siouxfalls_project from shapely.geometry import LineSt...
39.859155
107
0.663958
b4fe37dce735dddb3d17c6dd7b3fb6259dfa4916
1,873
py
Python
pirates/creature/Monkey.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/creature/Monkey.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/creature/Monkey.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.creature.Monkey from pandac.PandaModules import * from direct.directnotify import DirectNotifyGlobal from pirates.creature.Creat...
49.289474
225
0.616658
fd78248c7a6b0b0f9567d6bdc59816766a950003
3,136
py
Python
train_baseline_only_core.py
k402xxxcenxxx/TetrisBattle
1cba803958c3856b138a3eadd94554f5a32651b2
[ "MIT" ]
null
null
null
train_baseline_only_core.py
k402xxxcenxxx/TetrisBattle
1cba803958c3856b138a3eadd94554f5a32651b2
[ "MIT" ]
null
null
null
train_baseline_only_core.py
k402xxxcenxxx/TetrisBattle
1cba803958c3856b138a3eadd94554f5a32651b2
[ "MIT" ]
null
null
null
from TetrisBattle.envs.tetris_env import TetrisSingleEnv import gym import numpy as np import pickle from stable_baselines.common.policies import MlpPolicy from stable_baselines import PPO2 from stable_baselines.common import make_vec_env from stable_baselines.common.callbacks import BaseCallback from stable_baselin...
35.235955
145
0.711097
4711ff7f31d3e8cc3cd07b6ceb7a172cd3ee9570
37,243
py
Python
src/controller/python/test/test_scripts/base.py
Arkq/connectedhomeip
5148b5d00154f272e0fd250140dd94fbd33c958e
[ "Apache-2.0" ]
2
2022-03-29T12:17:41.000Z
2022-03-30T13:25:20.000Z
src/controller/python/test/test_scripts/base.py
Arkq/connectedhomeip
5148b5d00154f272e0fd250140dd94fbd33c958e
[ "Apache-2.0" ]
2
2022-02-21T11:04:41.000Z
2022-03-17T11:44:48.000Z
src/controller/python/test/test_scripts/base.py
Arkq/connectedhomeip
5148b5d00154f272e0fd250140dd94fbd33c958e
[ "Apache-2.0" ]
2
2021-12-02T09:08:00.000Z
2021-12-03T07:31:44.000Z
# # Copyright (c) 2021 Project CHIP 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 # # ...
44.231591
174
0.628682
72bfd4c2c8a6e08fb8fa92f7036d27fbcb80f90c
620
py
Python
setup.py
multiplechoice/sqlalchemy-mappings
b96854f20bbae72f34d63da2816fac6add345077
[ "MIT" ]
null
null
null
setup.py
multiplechoice/sqlalchemy-mappings
b96854f20bbae72f34d63da2816fac6add345077
[ "MIT" ]
51
2018-06-18T13:57:08.000Z
2022-03-01T17:42:09.000Z
setup.py
multiplechoice/sqlalchemy-mappings
b96854f20bbae72f34d63da2816fac6add345077
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('requirements.txt') as requirements: setup( name='multiplechoice.mappings', version='1.0.0', packages=find_packages(exclude=['tests']), install_requires=requirements.read().splitlines(), url='https://github.com/multiplech...
36.470588
75
0.664516
1a7f8e1ec44e0c4bf7b3e2340097a051f528da0e
3,005
py
Python
Code/gfpnanoforAlaScan.py
wells-wood-research/oshea-j-interface-engineering-2021
b2a47275268eb6afbed55e34c5a6a4098f01e2d8
[ "MIT" ]
null
null
null
Code/gfpnanoforAlaScan.py
wells-wood-research/oshea-j-interface-engineering-2021
b2a47275268eb6afbed55e34c5a6a4098f01e2d8
[ "MIT" ]
null
null
null
Code/gfpnanoforAlaScan.py
wells-wood-research/oshea-j-interface-engineering-2021
b2a47275268eb6afbed55e34c5a6a4098f01e2d8
[ "MIT" ]
null
null
null
#Make output directories import os os.mkdir("final") os.mkdir("gfp") os.mkdir("nano") def gfpnanoforAlaScan(first_of_nano, last_of_nano, location_of_cage, pcAA): for s in range(1,21): #Take final frame with open(f"simulation_{s:02d}/npt_production_{s:02d}.pdb","r") as inf: start = 0 ...
63.93617
384
0.565724
458e0fb9fdbbdab4d2a3b46502ef70540a67213a
42
py
Python
gicd/__init__.py
zmarffy/gicd
6c359da61da2f443218ce18809c5b6c94388275f
[ "MIT" ]
null
null
null
gicd/__init__.py
zmarffy/gicd
6c359da61da2f443218ce18809c5b6c94388275f
[ "MIT" ]
null
null
null
gicd/__init__.py
zmarffy/gicd
6c359da61da2f443218ce18809c5b6c94388275f
[ "MIT" ]
null
null
null
from .api import * __version__ = "3.0.0"
10.5
21
0.642857
304d20d467b369d509a485b5de62f1926b5a131c
76
py
Python
katas/005/main.py
ismaAXILLEAS/calculate-monthly-instalment
a7a42c812d240a212171ee99324c8dee2aefc457
[ "MIT" ]
null
null
null
katas/005/main.py
ismaAXILLEAS/calculate-monthly-instalment
a7a42c812d240a212171ee99324c8dee2aefc457
[ "MIT" ]
null
null
null
katas/005/main.py
ismaAXILLEAS/calculate-monthly-instalment
a7a42c812d240a212171ee99324c8dee2aefc457
[ "MIT" ]
null
null
null
if __name__ == '__main__': product_price = input('Type product price: ')
38
49
0.684211
57250906b512235e90a93126cfb0ca2a4df52458
908
py
Python
Sockets/server.py
hyegibang/MouseRemote
8b8367eb7915913cc381ed702afdd0e0c59eb84f
[ "CC-BY-3.0" ]
null
null
null
Sockets/server.py
hyegibang/MouseRemote
8b8367eb7915913cc381ed702afdd0e0c59eb84f
[ "CC-BY-3.0" ]
null
null
null
Sockets/server.py
hyegibang/MouseRemote
8b8367eb7915913cc381ed702afdd0e0c59eb84f
[ "CC-BY-3.0" ]
null
null
null
""" Jonathan Zerez, Hyegi Bang Softdes, Spring 2018 """ import socket def start_server(PORT = 6969): """ This script sets up a server socket running on the local machine. It returns the connection info of the first machine that connects with it. """ #Initialize the host to the local machine. H...
27.515152
78
0.6663
fe5f164f8799db7d0d659ea9521efe81b952b90a
7,089
py
Python
dyc/methods/MethodFormatter.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
dyc/methods/MethodFormatter.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
dyc/methods/MethodFormatter.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
""" File for classes that handles the actual business logic of the application. Here is the the place where the actual reading, parsing and validation of the files happens. """ import sys import copy import click from ..utils import ( BlankFormatter, convert_indent, add_start_end, ) class MethodFormatter:...
33.757143
175
0.569615
168d5132ef5211076592158cbb83cdfd8caa1841
240
py
Python
get_rate_data/clear_fx-trade.py
andesm/fx-system-trade
aa74723767e9180dbdec6961dcace89c7b2ab30a
[ "MIT" ]
1
2019-07-15T11:39:42.000Z
2019-07-15T11:39:42.000Z
get_rate_data/clear_fx-trade.py
andesm/fx-system-trade
aa74723767e9180dbdec6961dcace89c7b2ab30a
[ "MIT" ]
null
null
null
get_rate_data/clear_fx-trade.py
andesm/fx-system-trade
aa74723767e9180dbdec6961dcace89c7b2ab30a
[ "MIT" ]
1
2020-10-27T11:55:21.000Z
2020-10-27T11:55:21.000Z
import pymongo import time client = pymongo.MongoClient('openshift.flg.jp', 30017) db = client.fx db.fxsetting_log.drop() db.result_backtest.drop() db.result_trade_sim.drop() db.trade_practice.drop() db.trade_practice_weekly.drop()
17.142857
55
0.770833
e310fcf1a9afce51b13f927c58f839e307e3b7d1
2,023
py
Python
docker-images/taigav2/taiga-back/taiga/events/signal_handlers.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/taiga/events/signal_handlers.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-back/taiga/events/signal_handlers.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
34.288136
76
0.748393
564d6e15b5d763dda2359592810147eb854b1d15
4,713
py
Python
tensorflow_examples/lite/model_maker/core/task/audio_classifier_test.py
RebelTat/examples
2666bdf783d54e42a343babf028b0423ac181f6b
[ "Apache-2.0" ]
3
2021-05-04T20:00:41.000Z
2021-09-14T08:56:05.000Z
tensorflow_examples/lite/model_maker/core/task/audio_classifier_test.py
RebelTat/examples
2666bdf783d54e42a343babf028b0423ac181f6b
[ "Apache-2.0" ]
null
null
null
tensorflow_examples/lite/model_maker/core/task/audio_classifier_test.py
RebelTat/examples
2666bdf783d54e42a343babf028b0423ac181f6b
[ "Apache-2.0" ]
1
2021-06-14T15:59:14.000Z
2021-06-14T15:59:14.000Z
# Copyright 2020 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...
35.43609
80
0.701676
0ae2c9a4c0e3022e25c35b3947cee6d7de7bd63c
17,227
py
Python
command_line/import_xds.py
JBlaschke/dials
83fbc79864411b67933bd9708bc2d5f7d8f0859b
[ "BSD-3-Clause" ]
null
null
null
command_line/import_xds.py
JBlaschke/dials
83fbc79864411b67933bd9708bc2d5f7d8f0859b
[ "BSD-3-Clause" ]
null
null
null
command_line/import_xds.py
JBlaschke/dials
83fbc79864411b67933bd9708bc2d5f7d8f0859b
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import os from cctbx import sgtbx from dxtbx.model import Crystal from dxtbx.model.experiment_list import ExperimentListFactory from iotbx.xds import integrate_hkl, spot_xds from libtbx.phil import parse from rstbx.cftbx.coordinate_frame_helpers import ...
37.45
88
0.586986
60800be6d3acf6f235a7257bbbfd64c738ec9b43
49,948
py
Python
tests/test_modeling_bart.py
leogao2/transformers
850197d888375135157cfcf3d795007849420e07
[ "Apache-2.0" ]
1
2020-06-15T02:31:12.000Z
2020-06-15T02:31:12.000Z
tests/test_modeling_bart.py
leogao2/transformers
850197d888375135157cfcf3d795007849420e07
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_bart.py
leogao2/transformers
850197d888375135157cfcf3d795007849420e07
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 Huggingface # # 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 ...
68.515775
7,208
0.716605
7c3437faad869c41e1bb261f459c23568e2cc966
2,487
py
Python
Components/multichoice/models.py
iamTanTan/E-Learning_Lab_Spring_2021
e426ba982cc5044510eb1d8b80b377cb0bd5407a
[ "MIT" ]
2
2021-01-29T22:35:28.000Z
2021-05-13T23:35:54.000Z
Components/multichoice/models.py
iamTanTan/E-Learning_Lab_Spring_2021
e426ba982cc5044510eb1d8b80b377cb0bd5407a
[ "MIT" ]
8
2021-03-19T11:24:23.000Z
2022-03-12T00:57:13.000Z
Components/multichoice/models.py
iamTanTan/E-Learning_Lab_Spring_2021
e426ba982cc5044510eb1d8b80b377cb0bd5407a
[ "MIT" ]
1
2021-09-11T15:00:09.000Z
2021-09-11T15:00:09.000Z
from __future__ import unicode_literals from six import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from django.db import models from Components.quiz.models import Question ANSWER_ORDER_OPTIONS = ( ('content', _('Content')), ('random', _('Random')), ('none', _('None...
31.884615
98
0.600724
ddd611c432a9e6079abb9385abe2cd986872305e
4,302
py
Python
stinfmodel_fast/evaluate.py
clinicalml/structuredinference
ad2a00b90092ba69d52fe8306ce7136d98f195c4
[ "MIT" ]
273
2016-09-30T03:20:59.000Z
2022-03-31T15:13:56.000Z
stinfmodel_fast/evaluate.py
clinicalml/structuredinference
ad2a00b90092ba69d52fe8306ce7136d98f195c4
[ "MIT" ]
5
2016-10-31T17:12:40.000Z
2019-01-08T20:31:51.000Z
stinfmodel_fast/evaluate.py
clinicalml/structuredinference
ad2a00b90092ba69d52fe8306ce7136d98f195c4
[ "MIT" ]
70
2016-09-30T03:21:05.000Z
2022-03-15T08:32:40.000Z
from theano import config import numpy as np import time """ Functions for evaluating a DKF object """ def infer(dkf, dataset, mask): """ Posterior Inference using recognition network Returns: z,mu,logcov (each a 3D tensor) Remember to multiply each by the mask of the dataset before using the latent varia...
38.410714
126
0.609019
ae144fd6c7cd8b70b95facc57fa2989ca2caf469
7,424
py
Python
flax/plotting/check_plots.py
grayfallstown/flax-blockchain
58351afec41f78e031507d98b000db2087c2c13f
[ "Apache-2.0" ]
null
null
null
flax/plotting/check_plots.py
grayfallstown/flax-blockchain
58351afec41f78e031507d98b000db2087c2c13f
[ "Apache-2.0" ]
null
null
null
flax/plotting/check_plots.py
grayfallstown/flax-blockchain
58351afec41f78e031507d98b000db2087c2c13f
[ "Apache-2.0" ]
null
null
null
import logging from collections import Counter from pathlib import Path from time import time from typing import Dict, List from blspy import G1Element from chiapos import Verifier from flax.plotting.plot_tools import find_duplicate_plot_IDs, get_plot_filenames, load_plots, parse_plot_info from flax.util.config impor...
43.670588
116
0.602909
bcff5e547b53f8010266298c33c4dca0cab25a7d
1,964
py
Python
ee250/lab02/grovepi_sensors.py
usc-ee250-spring2021/lab02-liu-jocel
687373199f1910334601cc77586860c48a2593eb
[ "MIT" ]
null
null
null
ee250/lab02/grovepi_sensors.py
usc-ee250-spring2021/lab02-liu-jocel
687373199f1910334601cc77586860c48a2593eb
[ "MIT" ]
null
null
null
ee250/lab02/grovepi_sensors.py
usc-ee250-spring2021/lab02-liu-jocel
687373199f1910334601cc77586860c48a2593eb
[ "MIT" ]
null
null
null
""" EE 250L Lab 02: GrovePi Sensors Jocelyn Liu Insert Github repository link here. """ """python3 interpreters in Ubuntu (and other linux distros) will look in a default set of directories for modules when a program tries to `import` one. Examples of some default directories are (but not limited to): /usr/lib...
32.196721
90
0.699084
250eb053cd685899838da0b46a3fddd383893f01
503
py
Python
test/test_pymaspi_loan_acu_nonbank_byindustry.py
laisee/pymasapi
608898d6ef1a6684be53b3c9b3e6e598a9712591
[ "MIT" ]
null
null
null
test/test_pymaspi_loan_acu_nonbank_byindustry.py
laisee/pymasapi
608898d6ef1a6684be53b3c9b3e6e598a9712591
[ "MIT" ]
null
null
null
test/test_pymaspi_loan_acu_nonbank_byindustry.py
laisee/pymasapi
608898d6ef1a6684be53b3c9b3e6e598a9712591
[ "MIT" ]
null
null
null
import pytest import pymasapi.client as client class Test_Loan_ByIndustry: def setup_class(cls): cls.c = client.Client() def teardown_method(cls): cls.c = None @pytest.mark.parametrize("period,limit", [("m", 5), ("y", 5)]) def test_loan_acu_nonbank_byindustry(cls, period, limit): ...
29.588235
66
0.667992
cc096594ca1e2863cb40000727798547f3363424
547
py
Python
Lesson 1 Introduction and Efficieny/02.show.py
hadibakalim/data_structures_algorithms
f99be0ac094b891ac86382c0a4ae946350f1973a
[ "MIT" ]
1
2019-04-11T15:35:03.000Z
2019-04-11T15:35:03.000Z
Lesson 1 Introduction and Efficieny/02.show.py
hadibakalim/data_structures_algorithms
f99be0ac094b891ac86382c0a4ae946350f1973a
[ "MIT" ]
null
null
null
Lesson 1 Introduction and Efficieny/02.show.py
hadibakalim/data_structures_algorithms
f99be0ac094b891ac86382c0a4ae946350f1973a
[ "MIT" ]
null
null
null
# Write a function called "show_excitement" where the string # "I am super excited for this course!" is returned exactly # 5 times, where each sentence is separated by a single space. # Return the string with "return". # You can only have the string once in your code. # Don't just copy/paste it 5 times into a single va...
26.047619
62
0.66362
2caf244feea73e017312a09e2565c5198ad8fb3c
2,902
py
Python
build/toolchain/host/lib/scons-2.3.1/SCons/Tool/rpcgen.py
juanesf/hyperion_openwrt_mt7620
a29624e1ca03c37517b043956b55064b6021c7b4
[ "MIT" ]
8
2016-08-11T16:27:15.000Z
2021-08-10T06:20:09.000Z
build/toolchain/host/lib/scons-2.3.1/SCons/Tool/rpcgen.py
juanesf/hyperion_openwrt_mt7620
a29624e1ca03c37517b043956b55064b6021c7b4
[ "MIT" ]
5
2016-09-14T22:48:31.000Z
2017-03-16T18:42:17.000Z
build/toolchain/host/lib/scons-2.3.1/SCons/Tool/rpcgen.py
juanesf/hyperion_openwrt_mt7620
a29624e1ca03c37517b043956b55064b6021c7b4
[ "MIT" ]
6
2015-07-08T20:31:37.000Z
2022-03-18T01:33:27.000Z
"""SCons.Tool.rpcgen Tool-specific initialization for RPCGEN tools. Three normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 20...
40.873239
119
0.699862
35795168710406b02ded678749b10b148060affa
1,166
py
Python
spark_auto_mapper_fhir/value_sets/document_mode.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/value_sets/document_mode.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/document_mode.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
29.897436
84
0.740995
0daa0fb80c471e47fb77217e0ae63acc3741225a
746
py
Python
src/pcc-master/chapter_20/learning_log_django_2.1/learning_logs/urls.py
chris-kuo/elements_of_programming_interview
8947980fdf60dfbb577600052b33d37f782216b5
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
src/pcc-master/chapter_20/learning_log_django_2.1/learning_logs/urls.py
chris-kuo/elements_of_programming_interview
8947980fdf60dfbb577600052b33d37f782216b5
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
PYTHON/Python-Arquivos_txt/CURSO_EXTENSIVO_PYTHON/chapter_20/learning_log_django_2.1/learning_logs/urls.py
angrycaptain19/Estudos
bbdc6a7399635312da272a62639157132bcff4a0
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
"""Defines url patterns for learning_logs.""" from django.conf.urls import url from django.urls import path from . import views app_name = 'learning_logs' urlpatterns = [ # Home page. path('', views.index, name='index'), # Show all topics. path('topics/', views.topics, name='topics'), #...
26.642857
76
0.646113
a893ba0ef2abefe16c85a7183cafe40d2b115aea
281
py
Python
pycaishen/user_programs/Zipline/bundles/extension.py
spyamine/pycaishen3
33f756fd0ad2bd05eb0d21fd4e7e8573e317a6a9
[ "Apache-2.0" ]
1
2019-06-17T10:17:30.000Z
2019-06-17T10:17:30.000Z
pycaishen/user_programs/Zipline/bundles/extension.py
spyamine/pycaishen3
33f756fd0ad2bd05eb0d21fd4e7e8573e317a6a9
[ "Apache-2.0" ]
null
null
null
pycaishen/user_programs/Zipline/bundles/extension.py
spyamine/pycaishen3
33f756fd0ad2bd05eb0d21fd4e7e8573e317a6a9
[ "Apache-2.0" ]
null
null
null
""" to put in ./zipline/extension.py """ from zipline.data.bundles import register from zipline.data.bundles.google import google_equities equities2 = { 'JSE:ADR', } register( 'my-google-equities-bundle', # name this whatever you like google_equities(equities2), )
17.5625
63
0.718861
6990847aa62ea99e8e0a2f0c58755ae88e2e35d9
10,882
py
Python
indy_client/test/conftest.py
evernym/sovrin-node
a319766ebeb08b3b50f637781fc118036e51fdd8
[ "Apache-2.0" ]
1
2018-07-05T19:34:29.000Z
2018-07-05T19:34:29.000Z
indy_client/test/conftest.py
evernym/indy-node
a319766ebeb08b3b50f637781fc118036e51fdd8
[ "Apache-2.0" ]
null
null
null
indy_client/test/conftest.py
evernym/indy-node
a319766ebeb08b3b50f637781fc118036e51fdd8
[ "Apache-2.0" ]
1
2021-06-06T15:48:30.000Z
2021-06-06T15:48:30.000Z
import os import logging import base58 from anoncreds.protocol.utils import randomString from plenum.common.member.member import Member from plenum.common.txn_util import get_payload_data from plenum.test.pool_transactions.helper import sdk_add_new_nym from plenum.common.keygen_utils import initLocalKeys from plenum...
32.975758
115
0.733781
608303a71dc51ee89038c486b05f5022c22fcc4f
10,110
py
Python
terra_sdk/protobuf/ibc/applications/transfer/v1/tx_pb2.py
sejalsahni/terra.py
0fd84969441c58427a21448520697c3ab3ec2d0c
[ "MIT" ]
24
2021-05-30T05:48:33.000Z
2021-10-07T04:47:15.000Z
terra_sdk/protobuf/ibc/applications/transfer/v1/tx_pb2.py
sejalsahni/terra.py
0fd84969441c58427a21448520697c3ab3ec2d0c
[ "MIT" ]
18
2021-05-30T09:05:26.000Z
2021-10-17T07:12:12.000Z
terra_sdk/protobuf/ibc/applications/transfer/v1/tx_pb2.py
sejalsahni/terra.py
0fd84969441c58427a21448520697c3ab3ec2d0c
[ "MIT" ]
10
2021-02-11T00:56:04.000Z
2021-05-27T08:37:49.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ibc/applications/transfer/v1/tx.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflec...
36.236559
1,056
0.660336
cc580388160c93cfa4b965c448486fab169455a8
4,046
py
Python
alipay/aop/api/response/MybankPaymentTradeNormalpayOrderQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
1
2022-03-07T06:11:10.000Z
2022-03-07T06:11:10.000Z
alipay/aop/api/response/MybankPaymentTradeNormalpayOrderQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/MybankPaymentTradeNormalpayOrderQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
1
2021-10-05T03:01:09.000Z
2021-10-05T03:01:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class MybankPaymentTradeNormalpayOrderQueryResponse(AlipayResponse): def __init__(self): super(MybankPaymentTradeNormalpayOrderQueryResponse, self).__init__() self._amount ...
29.75
118
0.658675
3abe0c7fa7034b29900b75c5b2f1f48d75ac1a06
1,904
py
Python
ShakenOL_Floquet/setup.py
gsinuco/FloquetEffectiveHamiltonian
3f77f1388bd45cd8f42339a85a85ea29f004d7dc
[ "MIT" ]
2
2021-05-01T12:42:26.000Z
2021-10-12T16:02:15.000Z
ShakenOL_Floquet/setup.py
gsinuco/FloquetEffectiveHamiltonian
3f77f1388bd45cd8f42339a85a85ea29f004d7dc
[ "MIT" ]
null
null
null
ShakenOL_Floquet/setup.py
gsinuco/FloquetEffectiveHamiltonian
3f77f1388bd45cd8f42339a85a85ea29f004d7dc
[ "MIT" ]
null
null
null
"""A setuptools based setup module for ShakenOL-Floquet""" #!/usr/bin/env python # -*- coding: utf-8 -*- from codecs import open from os import path from setuptools import setup, find_packages import versioneer here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as...
31.213115
126
0.659664
b5ead0d47ae4c2d03d20e3eac75b72cabecd668c
5,953
py
Python
test/__init__.py
rahmonov/urllib3
5662feb4602d8d16d62cc17fde1f09a339a4d864
[ "MIT" ]
null
null
null
test/__init__.py
rahmonov/urllib3
5662feb4602d8d16d62cc17fde1f09a339a4d864
[ "MIT" ]
null
null
null
test/__init__.py
rahmonov/urllib3
5662feb4602d8d16d62cc17fde1f09a339a4d864
[ "MIT" ]
null
null
null
import warnings import sys import errno import functools import logging import socket import ssl import os import pytest try: import brotli except ImportError: brotli = None from urllib3.exceptions import HTTPWarning from urllib3.packages import six from urllib3.util import ssl_ # We need a host that will no...
28.080189
88
0.63783
3a265c32863f77c15db3efee3110cb981a79a338
6,938
py
Python
src/robot/parsing/lexer/lexer.py
bhirsz/robotframework
d62ee5091ed932aee8fc12ae5e340a5b19288f05
[ "ECL-2.0", "Apache-2.0" ]
2
2020-11-12T14:02:01.000Z
2021-01-06T03:54:44.000Z
src/robot/parsing/lexer/lexer.py
bhirsz/robotframework
d62ee5091ed932aee8fc12ae5e340a5b19288f05
[ "ECL-2.0", "Apache-2.0" ]
63
2020-03-04T17:31:39.000Z
2022-03-01T09:12:16.000Z
src/robot/parsing/lexer/lexer.py
bhirsz/robotframework
d62ee5091ed932aee8fc12ae5e340a5b19288f05
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-23T03:44:31.000Z
2020-11-23T03:44:31.000Z
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
37.502703
78
0.634765
c0c68595bbc207991673f3437d3c3b54d377c498
25
py
Python
Library/grpc/_grpcio_metadata.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
Library/grpc/_grpcio_metadata.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
Library/grpc/_grpcio_metadata.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
__version__ = """1.8.3"""
25
25
0.56
fb7dc780e55461cf8b8c5c75dca0c85aac5e4741
1,412
py
Python
generator_validator_cpf/validator_cpf.py
lucaswilliamgomes/Learning_python
6e121cf3e819c5f67e10a08efe5cd2386da31453
[ "MIT" ]
2
2020-06-21T04:59:50.000Z
2020-06-21T20:19:23.000Z
generator_validator_cpf/validator_cpf.py
lucaswilliamgomes/Learning_python
6e121cf3e819c5f67e10a08efe5cd2386da31453
[ "MIT" ]
null
null
null
generator_validator_cpf/validator_cpf.py
lucaswilliamgomes/Learning_python
6e121cf3e819c5f67e10a08efe5cd2386da31453
[ "MIT" ]
null
null
null
def onze_caracteres(): if len (cpf) != 11: return False else: return True def validacao (cpf): x = 0 soma1 = 0 digito1 = 0 # Digito 1 for d in range(10,1,-1): soma1 += (d * int(cpf[x])) x += 1 x = 0 digito1 = 11 - (soma1 % 11) if digito1 > 9: ...
19.611111
148
0.502833
68c992e8a80f46d4c5d69faf2cfbcee852ec6986
761
py
Python
var/spack/repos/builtin/packages/orfm/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/orfm/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/orfm/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Orfm(AutotoolsPackage): """A simple and not slow open reading frame (ORF) caller. No bells...
36.238095
89
0.718791
1b7dfca3eac52bf5d6b4853062a14dbc183ef6ab
85,523
py
Python
numpy/core/numeric.py
aarchiba/numpy
d750cba93436f20d5457daec5ad5d5ffb65f22bd
[ "BSD-3-Clause" ]
1
2021-01-06T21:28:45.000Z
2021-01-06T21:28:45.000Z
numpy/core/numeric.py
mingrammer/numpy
c4924a73b348545238fab661543f61cc6631e087
[ "BSD-3-Clause" ]
null
null
null
numpy/core/numeric.py
mingrammer/numpy
c4924a73b348545238fab661543f61cc6631e087
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, absolute_import, print_function import sys import warnings import collections from numpy.core import multiarray from . import umath from .umath import (invert, sin, UFUNC_BUFSIZE_DEFAULT, ERR_IGNORE, ERR_WARN, ERR_RAISE, ERR_CALL, ERR_PRINT, ERR_LOG, ...
29.572268
94
0.579984
b4198f2ab0bdbb450a61cfaafbc1bb595b968cf2
7,212
py
Python
benchmarks/f3_wrong_hints/scaling_nonlinear_software/8-19_32.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_nonlinear_software/8-19_32.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_nonlinear_software/8-19_32.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet, Tuple import pysmt.typing as types from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
34.018868
81
0.521631
139ffadb660f9432276aa3f0e6f7b1eb598854cb
3,666
py
Python
sktime/transformers/series_as_features/tests/test_PCATransformer.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-10-05T12:17:41.000Z
2020-10-19T08:57:50.000Z
sktime/transformers/series_as_features/tests/test_PCATransformer.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/transformers/series_as_features/tests/test_PCATransformer.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2022-02-14T18:19:01.000Z
2022-02-14T18:19:01.000Z
import numpy as np import pandas as pd import pytest from sklearn.decomposition import PCA from sktime.exceptions import NotFittedError from sktime.transformers.series_as_features.pca import PCATransformer from sktime.utils.data_container import detabularize from sktime.utils.data_container import get_time_index from ...
33.633028
79
0.677305
481720b68df379f187ceac9ef20182cc6a042d39
1,063
py
Python
pymisp/exceptions.py
DragonDev1906/PyMISP
5c72dc9c33b4ae850d40ff06dfb05c27f3e80e5d
[ "BSD-2-Clause" ]
1
2021-08-03T09:01:41.000Z
2021-08-03T09:01:41.000Z
pymisp/exceptions.py
DragonDev1906/PyMISP
5c72dc9c33b4ae850d40ff06dfb05c27f3e80e5d
[ "BSD-2-Clause" ]
null
null
null
pymisp/exceptions.py
DragonDev1906/PyMISP
5c72dc9c33b4ae850d40ff06dfb05c27f3e80e5d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- class PyMISPError(Exception): def __init__(self, message): super(PyMISPError, self).__init__(message) self.message = message class NewEventError(PyMISPError): pass class UpdateEventError(PyMISPError): pass class NewAttributeError(PyMISPError): pass class...
15.185714
89
0.731891
409a54c377f900455e51565b54a1b89bff3804b8
123
py
Python
apps/room/admin.py
anyiv/Kuropoly-Team-DC
727a614884272ff521d141193c58d4a54c15be03
[ "MIT" ]
1
2021-04-11T13:51:07.000Z
2021-04-11T13:51:07.000Z
apps/room/admin.py
anyiv/Kuropoly-Team-DC
727a614884272ff521d141193c58d4a54c15be03
[ "MIT" ]
null
null
null
apps/room/admin.py
anyiv/Kuropoly-Team-DC
727a614884272ff521d141193c58d4a54c15be03
[ "MIT" ]
null
null
null
from django.contrib import admin from apps.room.models import Room # Register your models here. admin.site.register(Room)
20.5
33
0.804878
25b87ed6e9f8c47a62d17b673d29837e90be0d3e
3,264
py
Python
video_structure/hyperparameters.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
video_structure/hyperparameters.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
video_structure/hyperparameters.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
26.754098
75
0.731618
fe216214db15859f0bbdf795b29588305626326d
891
py
Python
ipde/solvers/multi_boundary/poisson.py
dbstein/ipde
834e16a617f47a3eabe3307ba151d5b7db527b30
[ "Apache-2.0" ]
2
2019-10-17T15:29:38.000Z
2021-02-19T20:01:34.000Z
ipde/solvers/multi_boundary/poisson.py
dbstein/ipde
834e16a617f47a3eabe3307ba151d5b7db527b30
[ "Apache-2.0" ]
null
null
null
ipde/solvers/multi_boundary/poisson.py
dbstein/ipde
834e16a617f47a3eabe3307ba151d5b7db527b30
[ "Apache-2.0" ]
null
null
null
import numpy as np from .scalar import ScalarSolver from ..internals.poisson import PoissonHelper from ...utilities import affine_transformation class PoissonSolver(ScalarSolver): def __init__(self, ebdyc, solver_type='spectral', AS_list=None): # check that ebdyc has bumps defined # if not ebdyc.bu...
40.5
107
0.681257
ad9a036bab43e6f69a1696e0bc4b6f4e2be7a725
12,547
py
Python
tests/regression_tests/test_dafoam_aerostruct.py
kejacobson/mphys-1
7a3bca37b51a404f0f56aec54113f27c525f1dd8
[ "Apache-2.0" ]
null
null
null
tests/regression_tests/test_dafoam_aerostruct.py
kejacobson/mphys-1
7a3bca37b51a404f0f56aec54113f27c525f1dd8
[ "Apache-2.0" ]
null
null
null
tests/regression_tests/test_dafoam_aerostruct.py
kejacobson/mphys-1
7a3bca37b51a404f0f56aec54113f27c525f1dd8
[ "Apache-2.0" ]
null
null
null
# --- Python 3.8 --- """ @File : test_dafoam_aerostruct.py @Time : 2021/12/17 @Author : Bernardo Pacini @Desc : DAFoam aerostructural regression tests used to test if the output produced by MPHYS has changed """ # === Standard Python modules === import os import unittest # === External P...
37.121302
120
0.517096
2000262281c3c94552adc51ac3989084292a1e61
14,153
py
Python
electrumsv/gui/qt/password_dialog.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
1
2019-07-04T03:35:32.000Z
2019-07-04T03:35:32.000Z
electrumsv/gui/qt/password_dialog.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
null
null
null
electrumsv/gui/qt/password_dialog.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2013 ecdsa@github # # 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 li...
36.012723
96
0.644881
36839e433a951b92366dae5f781c8de4e6701dc6
3,774
py
Python
freeworld-syncer.py
hroncok/freeworld-syncer
aa1540cc8db3305567ff595693360f005129ccca
[ "CC0-1.0" ]
1
2018-09-27T19:35:01.000Z
2018-09-27T19:35:01.000Z
freeworld-syncer.py
hroncok/freeworld-syncer
aa1540cc8db3305567ff595693360f005129ccca
[ "CC0-1.0" ]
null
null
null
freeworld-syncer.py
hroncok/freeworld-syncer
aa1540cc8db3305567ff595693360f005129ccca
[ "CC0-1.0" ]
1
2019-08-23T21:23:59.000Z
2019-08-23T21:23:59.000Z
import sys import click from syncer.koji import koji_builds, latest_complete_builds, compare_evr from syncer.koji import FEDORA_KOJI, FUSION_KOJI from syncer.git import clone_or_reset, git_merge, sources_magic, squash FEDORA_PKGNAME = 'chromium' SUFFIX = 'freeworld' FUSION_PKGNAME = f'{FEDORA_PKGNAME}-{SUFFIX}' d...
32.534483
77
0.662692
9ec5ea13b7544f56f57ae46cc00b25a2eb2e2b19
2,217
py
Python
backend/homeserve_29239/urls.py
crowdbotics-apps/homeserve-29239
9529d6bc5293ad540de17bf113aa18fd04c51120
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/homeserve_29239/urls.py
crowdbotics-apps/homeserve-29239
9529d6bc5293ad540de17bf113aa18fd04c51120
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/homeserve_29239/urls.py
crowdbotics-apps/homeserve-29239
9529d6bc5293ad540de17bf113aa18fd04c51120
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""homeserve_29239 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='home') Cla...
35.190476
87
0.713126
9d17bee1bd5021aeb914fe7f1e6249491e1a2e77
365
py
Python
node/__init__.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
18
2021-11-30T04:02:13.000Z
2022-03-24T12:33:57.000Z
node/__init__.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
1
2022-02-04T17:07:38.000Z
2022-02-04T17:07:38.000Z
node/__init__.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
5
2022-01-31T05:28:13.000Z
2022-03-08T17:25:31.000Z
from enum import IntEnum def patch_pydantic(): from pydantic.validators import _VALIDATORS, enum_member_validator, int_validator, strict_int_validator assert _VALIDATORS[0][0] is IntEnum assert _VALIDATORS[0][1] == [int_validator, enum_member_validator] _VALIDATORS[0] = (IntEnum, [strict_int_validator...
30.416667
107
0.783562
df65ea0e340c6d1dfcd3c96aa5e1a8aab2620138
576
py
Python
tests/test_parser/test_utils.py
pysalt/e2e-test
692339dee485df330f623aa0c05954494586c5ad
[ "MIT" ]
null
null
null
tests/test_parser/test_utils.py
pysalt/e2e-test
692339dee485df330f623aa0c05954494586c5ad
[ "MIT" ]
null
null
null
tests/test_parser/test_utils.py
pysalt/e2e-test
692339dee485df330f623aa0c05954494586c5ad
[ "MIT" ]
null
null
null
from pathlib import Path from adctest.parser.utils import Utils, RelativeImportPath class TestUtils: def test_get_class_name_from_file_name(self): file_name = Path('aside-nav.component.html') expected_name = 'AsideNavComponent' assert expected_name == Utils.get_class_name_from_file_name...
27.428571
78
0.743056
49f17e7b024463845213bbcdad494d817a6fb621
6,055
py
Python
myuw/dao/grad.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
18
2015-02-04T01:09:11.000Z
2021-11-25T03:10:39.000Z
myuw/dao/grad.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
2,323
2015-01-15T19:45:10.000Z
2022-03-21T19:57:06.000Z
myuw/dao/grad.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
9
2015-01-15T19:29:26.000Z
2022-02-11T04:51:23.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This class encapsulates the interactions with the Grad School request resource. """ import logging from datetime import date, datetime, timedelta from uw_grad.degree import get_degree_by_syskey from uw_grad.committee import get...
30.124378
79
0.65384
fb0a29351a94ed8c7c24c4741bfe95990d8f2160
2,981
py
Python
core/tests/test_utils/test_memoize.py
gregmbi/polyaxon
8f24089fa9cb5df28fc7b70aec27d6d23ee81e8d
[ "Apache-2.0" ]
null
null
null
core/tests/test_utils/test_memoize.py
gregmbi/polyaxon
8f24089fa9cb5df28fc7b70aec27d6d23ee81e8d
[ "Apache-2.0" ]
null
null
null
core/tests/test_utils/test_memoize.py
gregmbi/polyaxon
8f24089fa9cb5df28fc7b70aec27d6d23ee81e8d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
33.122222
74
0.64475
39d2bd829bb521626f9fbb8408abd43b11ea3a3a
3,536
py
Python
neutron/tests/unit/extensions/foxinsocks.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/extensions/foxinsocks.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/extensions/foxinsocks.py
mihaibroc/neutron
dfb7c826d0846970bac00003cea98c9f6bd8f0b8
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation. # 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 req...
33.046729
79
0.611143
dbb31ca848abba0f43a9bf323e471c60ac1d4f28
776
py
Python
src/util.py
ed3766/consume-api-python-demo
b7ae62c4c555a9af4347690aee1f1f507e82f923
[ "MIT" ]
7
2019-05-26T10:26:56.000Z
2021-02-27T09:15:02.000Z
src/util.py
ltpitt/consume-api-python-demo
b7ae62c4c555a9af4347690aee1f1f507e82f923
[ "MIT" ]
2
2019-06-06T04:39:27.000Z
2020-11-24T08:31:01.000Z
src/util.py
ltpitt/consume-api-python-demo
b7ae62c4c555a9af4347690aee1f1f507e82f923
[ "MIT" ]
11
2019-05-26T10:27:02.000Z
2021-03-03T23:12:33.000Z
import urllib.request, urllib.response import datetime, json class Util: # The current def today_str() -> str: return str(datetime.date.today()) # Call a GET request on the URL and return a string def get(url: str) -> bytes: with urllib.request.urlopen(url) as response: return response.read() # Ca...
22.823529
53
0.698454
9c07c18c84e4ce07cf48b93ba479b0dcd86c3d32
5,329
py
Python
modules/audio_coding/audio_network_adaptor/parse_ana_dump.py
wnpllrzodiac/webrtc_code_mirror
0e7b3a9dadc64266eba82b0fc1265b36b7794839
[ "BSD-3-Clause" ]
344
2016-07-03T11:45:20.000Z
2022-03-19T16:54:10.000Z
modules/audio_coding/audio_network_adaptor/parse_ana_dump.py
wnpllrzodiac/webrtc_code_mirror
0e7b3a9dadc64266eba82b0fc1265b36b7794839
[ "BSD-3-Clause" ]
59
2020-08-24T09:17:42.000Z
2022-02-27T23:33:37.000Z
modules/audio_coding/audio_network_adaptor/parse_ana_dump.py
wnpllrzodiac/webrtc_code_mirror
0e7b3a9dadc64266eba82b0fc1265b36b7794839
[ "BSD-3-Clause" ]
278
2016-04-26T07:37:12.000Z
2022-01-24T10:09:44.000Z
#!/usr/bin/python2 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All...
35.526667
79
0.598048
77bad56f56a01b88ab7af34a3573bcbe1c80bb90
616
py
Python
test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.333333
94
0.616883
c74ccac93a2c492657e468d1fc90091a12c09439
543
py
Python
pacote-download/ex(1-100)/ex017.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
pacote-download/ex(1-100)/ex017.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
pacote-download/ex(1-100)/ex017.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
'''Faça um programa que leia o comprimento do cateto oposto e do cateto adjacente de um triângulo retângulo. Calcule e mostre o comprimento da hipotenusa''' import math co=float(input('Qual valor do cateto oposto? ')) ca=float(input('Qual valor do cateto adjascente? ')) hi=math.hypot(co,ca) print('o comprimento da hipo...
45.25
156
0.718232
e1e662ece8f58983c9ce163402e660de08feafe3
2,105
py
Python
nifti_gridview/ngv_io/writer.py
alabamagan/NIfTI-gridview
79d6501f78374555b85d52248b380241db53d3ab
[ "MIT" ]
2
2020-11-26T06:49:13.000Z
2020-11-26T15:40:20.000Z
nifti_gridview/ngv_io/writer.py
alabamagan/NIfTI-gridview
79d6501f78374555b85d52248b380241db53d3ab
[ "MIT" ]
null
null
null
nifti_gridview/ngv_io/writer.py
alabamagan/NIfTI-gridview
79d6501f78374555b85d52248b380241db53d3ab
[ "MIT" ]
null
null
null
import numpy as np import os import cv2 import gc from ngv_model import draw_grid_wrapper, NGV_Logger class writer(object): def __init__(self, data_loader, seg_loaders, draw_worker, outdir, **kwargs): assert isinstance(draw_worker, draw_grid_wrapper), "Incorrect type." self._data_loader = data_loa...
33.951613
105
0.615202
2f4617f4f52b14a23922abff3677b53508bd6405
541
py
Python
runner/action/feature/feature_categorical.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/action/feature/feature_categorical.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/action/feature/feature_categorical.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
from runner.action.feature.feature import Feature from runner.action.set.categorical import Categorical class FeatureCategorical(Feature): """Categorical feature Alias for Feature with set.Categorical first sub action Args: choices (list): list of choices route (str): route to value (see...
28.473684
59
0.674677
ce84e15c2d7ee04faa75a73719d026e3286de10d
14,038
py
Python
python/ccxt/async_support/coinspot.py
ebarti/ccxt
da2770a5ec3fa6b18e789f202cdebdab71925f64
[ "MIT" ]
1
2022-02-23T23:06:27.000Z
2022-02-23T23:06:27.000Z
python/ccxt/async_support/coinspot.py
ebarti/ccxt
da2770a5ec3fa6b18e789f202cdebdab71925f64
[ "MIT" ]
null
null
null
python/ccxt/async_support/coinspot.py
ebarti/ccxt
da2770a5ec3fa6b18e789f202cdebdab71925f64
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors impor...
42.668693
163
0.468015
79649ac66acd4175d9fffce5d6477e60c5a8424e
439
py
Python
examples/downloading_data.py
foxglove/py-data-platform
d5012652ac3ddab57ccfb85efdb6b7e05f135656
[ "Apache-2.0" ]
null
null
null
examples/downloading_data.py
foxglove/py-data-platform
d5012652ac3ddab57ccfb85efdb6b7e05f135656
[ "Apache-2.0" ]
11
2022-02-21T15:43:53.000Z
2022-03-29T12:14:41.000Z
examples/downloading_data.py
foxglove/py-data-platform
d5012652ac3ddab57ccfb85efdb6b7e05f135656
[ "Apache-2.0" ]
null
null
null
import datetime from datetime import datetime, timedelta from foxglove_data_platform.client import Client token = "<YOUR API TOKEN HERE>" device_id = "<YOUR DEVICE ID>" client = Client(token=token) data = client.download_data( device_id=device_id, start=datetime.now() - timedelta(hours=3), end=datetime.n...
24.388889
49
0.719818
ed17c08565c6a7f4f3553b489d83c8be10729488
1,143
py
Python
pyfmm/__init__.py
vegardkv/pyfmm
1137b995893a2bd65419e719616306a731752b29
[ "MIT" ]
5
2018-01-12T22:02:36.000Z
2021-12-06T00:07:45.000Z
pyfmm/__init__.py
vegardkv/pyfmm
1137b995893a2bd65419e719616306a731752b29
[ "MIT" ]
null
null
null
pyfmm/__init__.py
vegardkv/pyfmm
1137b995893a2bd65419e719616306a731752b29
[ "MIT" ]
1
2021-02-09T18:15:34.000Z
2021-02-09T18:15:34.000Z
# MIT License # # Copyright (c) 2016 Vegard Kvernelv # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
47.625
80
0.779528
682b7f841ae7bf91c766140fe7b0efac93c928fd
838
py
Python
jasperserverlib/core/resource_service_param.py
saguas/jasperserverlib
c65efc939faff1cf94e6f35855fc16e4fff627b0
[ "MIT" ]
null
null
null
jasperserverlib/core/resource_service_param.py
saguas/jasperserverlib
c65efc939faff1cf94e6f35855fc16e4fff627b0
[ "MIT" ]
null
null
null
jasperserverlib/core/resource_service_param.py
saguas/jasperserverlib
c65efc939faff1cf94e6f35855fc16e4fff627b0
[ "MIT" ]
null
null
null
class ResourceServiceParameter(object): ''' When true, all nested resources will be given as full descriptors. The default behavior, false, has all nested resources given as references. For more information, see Local Resources. Type/Value: true|false ''' EXPANDED = "expanded" ''' B...
36.434783
92
0.698091
286b111f7047618c6717853131e6f766b5420ef0
30,302
py
Python
rin/modules/pcrclanbattle/clanbattle/cmdv2.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
rin/modules/pcrclanbattle/clanbattle/cmdv2.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
rin/modules/pcrclanbattle/clanbattle/cmdv2.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
""" PCR会战管理命令 v2 猴子也会用的会战管理 命令设计遵循以下原则: - 中文:降低学习成本 - 唯一:There should be one-- and preferably only one --obvious way to do it. - 耐草:参数不规范时尽量执行 """ import os from datetime import datetime, timedelta from typing import List from matplotlib import pyplot as plt try: import ujson as json except: import json fro...
35.733491
126
0.609564
275dd659a2b70c21ca9eef27aa5ff676ad624441
5,524
py
Python
AzFunSFCCIngestion/__init__.py
daspiker/SFCC-Data-Connector
34584b8710c7c4a9cfd433c7a32539a5d2987b58
[ "MIT" ]
null
null
null
AzFunSFCCIngestion/__init__.py
daspiker/SFCC-Data-Connector
34584b8710c7c4a9cfd433c7a32539a5d2987b58
[ "MIT" ]
null
null
null
AzFunSFCCIngestion/__init__.py
daspiker/SFCC-Data-Connector
34584b8710c7c4a9cfd433c7a32539a5d2987b58
[ "MIT" ]
null
null
null
import requests import datetime import dateutil import logging import gzip import io import csv import time import os import sys import json import hashlib import hmac import base64 import pysftp from threading import Thread from io import StringIO import azure.functions as func sentinel_customer_id = os.environ.get(...
36.342105
154
0.658038
237585d876bd2c361c45e23982feb84890a30706
908
py
Python
setup.py
LaudateCorpus1/libconda
28d77a7506f76cbf537c1f0ddc947384cab15415
[ "BSD-3-Clause" ]
3
2018-01-05T20:27:44.000Z
2018-10-22T22:58:39.000Z
setup.py
conda/libconda
28d77a7506f76cbf537c1f0ddc947384cab15415
[ "BSD-3-Clause" ]
7
2016-07-22T15:21:20.000Z
2019-04-30T11:41:38.000Z
setup.py
LaudateCorpus1/libconda
28d77a7506f76cbf537c1f0ddc947384cab15415
[ "BSD-3-Clause" ]
9
2017-05-05T17:52:05.000Z
2021-08-23T05:42:10.000Z
# (c) 2012-2015 Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. from distutils.core import setup setup( name='libconda', version='4.0.10', auth...
29.290323
69
0.615639
92056e605f4a7c8a9f9092e762c405e24763ee02
2,293
py
Python
mabel/data/readers/internals/threaded_reader.py
mabel-dev/mabel
ee1fdfcfe5fb87d2c5ce4f24b4b7113478ba1b8a
[ "Apache-2.0" ]
null
null
null
mabel/data/readers/internals/threaded_reader.py
mabel-dev/mabel
ee1fdfcfe5fb87d2c5ce4f24b4b7113478ba1b8a
[ "Apache-2.0" ]
287
2021-05-14T21:25:26.000Z
2022-03-30T12:02:51.000Z
mabel/data/readers/internals/threaded_reader.py
gva-jjoyce/mabel
eb99e02d0287b851e65ad9a75b5f4188805d4ec9
[ "Apache-2.0" ]
1
2021-04-29T18:18:20.000Z
2021-04-29T18:18:20.000Z
import queue import threading from ...formats import dictset def threaded_reader(items_to_read: list, blob_list, reader): """ Speed up reading sets of files - such as multiple days worth of log-per-day files. Each file is read in a separate thread, up to 8 threads, reading a single file using thi...
31.847222
80
0.623201
0070bd050c5382af799e595058a897914c300f4e
15,671
py
Python
ico/tests/contracts/test_uncapped_flatprice.py
miohtama/Smart-Contracts
8892e85d1c75994871a0fa14eb8c03016db39d88
[ "Apache-2.0" ]
1,148
2017-03-28T08:41:32.000Z
2019-01-26T13:39:39.000Z
ico/tests/contracts/test_uncapped_flatprice.py
miohtama/Smart-Contracts
8892e85d1c75994871a0fa14eb8c03016db39d88
[ "Apache-2.0" ]
117
2017-03-31T07:31:22.000Z
2019-01-14T16:14:49.000Z
ico/tests/contracts/test_uncapped_flatprice.py
miohtama/Smart-Contracts
8892e85d1c75994871a0fa14eb8c03016db39d88
[ "Apache-2.0" ]
494
2017-03-30T23:11:45.000Z
2019-01-29T17:41:37.000Z
"""Uncapped ICO.""" import pytest from eth_utils import to_wei from eth_tester.exceptions import TransactionFailed from web3 import Web3 from populus.chain import TesterChain from web3.contract import Contract from ico.tests.utils import time_travel from ico.state import CrowdsaleState @pytest.fixture def ico(unca...
39.473552
180
0.721524
70b51298768819f7dfb66f2614735a703e7b0ec6
3,195
py
Python
Blender 2.91/2.91/scripts/addons/mesh_tiny_cad/E2F.py
calculusrobotics/RNNs-for-Bayesian-State-Estimation
2aacf86d2e447e10c840b4926d4de7bc5e46d9bc
[ "MIT" ]
1
2020-07-20T15:41:58.000Z
2020-07-20T15:41:58.000Z
release/scripts/addons/mesh_tiny_cad/E2F.py
ringsce/Rings3D
8059d1e2460fc8d6f101eff8e695f68a99f6671d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/addons/mesh_tiny_cad/E2F.py
ringsce/Rings3D
8059d1e2460fc8d6f101eff8e695f68a99f6671d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is distrib...
31.019417
99
0.679812
d725dcdd4a36acee91603efb4fa011ae314b25a6
2,982
py
Python
lib/modules/powershell/collection/keylogger.py
wisdark/Empire
a6621d188fa5c6d146c8ee02c7b64784e9f36411
[ "BSD-3-Clause" ]
1
2021-02-03T05:27:53.000Z
2021-02-03T05:27:53.000Z
lib/modules/powershell/collection/keylogger.py
wisdark/Empire
a6621d188fa5c6d146c8ee02c7b64784e9f36411
[ "BSD-3-Clause" ]
null
null
null
lib/modules/powershell/collection/keylogger.py
wisdark/Empire
a6621d188fa5c6d146c8ee02c7b64784e9f36411
[ "BSD-3-Clause" ]
1
2020-07-12T21:26:12.000Z
2020-07-12T21:26:12.000Z
from __future__ import print_function from builtins import object from builtins import str from lib.common import helpers class Module(object): def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Get-KeyStrokes', 'Author': ['@obscuresec', '@mattifestation', '@harmj...
31.0625
220
0.54326
6ec474d1d094513d93743926e60ecb08d5c63e14
15,983
py
Python
src/finetune_mutag.py
HKUST-KnowComp/NeuralSubIsoCnt
7d1deef8e49af90122ea0ad099dec1de390927b6
[ "MIT" ]
28
2020-06-20T14:45:27.000Z
2022-02-18T06:54:53.000Z
src/finetune_mutag.py
HKUST-KnowComp/NeuralSubIsoCnt
7d1deef8e49af90122ea0ad099dec1de390927b6
[ "MIT" ]
5
2020-08-04T04:11:17.000Z
2021-05-27T13:11:22.000Z
src/finetune_mutag.py
HKUST-KnowComp/NeuralSubIsoCnt
7d1deef8e49af90122ea0ad099dec1de390927b6
[ "MIT" ]
5
2020-08-25T05:02:18.000Z
2021-07-16T06:31:31.000Z
import torch import os import numpy as np import dgl import logging import datetime import math import sys import gc import re import subprocess import json import torch.nn.functional as F import warnings from functools import partial from collections import OrderedDict from torch.utils.data import DataLoader try: ...
51.558065
163
0.640681
3b6b4e83743b645e717f82848f353b9b4b131495
93,790
py
Python
src_main/codegen_x86.py
leedoowon/MTraceCheck
3c6906eb38579f6151c6f04159705a346adb25cc
[ "Apache-2.0" ]
3
2018-04-02T08:24:19.000Z
2021-01-08T03:19:19.000Z
src_main/codegen_x86.py
leedoowon/MTraceCheck
3c6906eb38579f6151c6f04159705a346adb25cc
[ "Apache-2.0" ]
null
null
null
src_main/codegen_x86.py
leedoowon/MTraceCheck
3c6906eb38579f6151c6f04159705a346adb25cc
[ "Apache-2.0" ]
1
2017-11-20T08:42:16.000Z
2017-11-20T08:42:16.000Z
#!/usr/bin/python ########################################################################## # # MTraceCheck # Copyright 2017 The Regents of the University of Michigan # Doowon Lee and Valeria Bertacco # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
50.262594
221
0.567097
e54e5c48da14c9c5c060a09af4327683bb85b15d
240
py
Python
sharpy/plans/acts/zerg/__init__.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
sharpy/plans/acts/zerg/__init__.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
sharpy/plans/acts/zerg/__init__.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
from .zerg_unit import ZergUnit from .morph_townhall import MorphHive, MorphLair from .auto_overlord import AutoOverLord from .morph_units import MorphOverseer, MorphRavager, MorphBroodLord from .morph_greater_spire import MorphGreaterSpire
48
68
0.875
c551458d44d472391f608693f34d7f99e5c0ac4d
611
py
Python
my_flask/app/__init__.py
eleksbai/my_studies
6bed611ac081b4bc53ce40853f25169bd7c09701
[ "MIT" ]
null
null
null
my_flask/app/__init__.py
eleksbai/my_studies
6bed611ac081b4bc53ce40853f25169bd7c09701
[ "MIT" ]
null
null
null
my_flask/app/__init__.py
eleksbai/my_studies
6bed611ac081b4bc53ce40853f25169bd7c09701
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from ..config import config bootstrap = Bootstrap() mail = Mail() moment = Moment() db = SQLAlchemy() def create_app(config_name): app = Flask(__name__...
21.821429
47
0.756137
63d20ce93321a91e50cf38ee4c90dda5f438c6a8
6,192
py
Python
render_utils.py
cerealcommas/mashgraphics
ac17781736e64cf7b9b2601fd10e8772ebc7b306
[ "MIT" ]
null
null
null
render_utils.py
cerealcommas/mashgraphics
ac17781736e64cf7b9b2601fd10e8772ebc7b306
[ "MIT" ]
null
null
null
render_utils.py
cerealcommas/mashgraphics
ac17781736e64cf7b9b2601fd10e8772ebc7b306
[ "MIT" ]
null
null
null
#!/usr/bin/env python import codecs from datetime import datetime import json import time import urllib import subprocess from flask import Markup, g, render_template, request from slimit import minify from smartypants import smartypants from jinja2 import contextfunction, Template import app_config import copytext ...
26.461538
112
0.589309
674dbdaabec6c2016b44bae42d9f8f985d5dee03
6,635
py
Python
script.py
Dan149/UselessContentCreator
90a78604faf63100ca158d43c04982b536469e25
[ "MIT" ]
null
null
null
script.py
Dan149/UselessContentCreator
90a78604faf63100ca158d43c04982b536469e25
[ "MIT" ]
null
null
null
script.py
Dan149/UselessContentCreator
90a78604faf63100ca158d43c04982b536469e25
[ "MIT" ]
null
null
null
import data from os import system as term import os import time import random import secrets import string import pathlib import json from fpdf import FPDF def clear(): if os.name == "nt": term("cls") else: term("clear") def exit(): print("\nRemoving pycache...") [p.unlink() for p in pathli...
30.717593
120
0.5685
78e095236a32660d1b480a69d177b598e8e4dd6a
2,819
py
Python
venv/Lib/site-packages/pyrogram/raw/types/password_kdf_algo_sha256_sha256_pbkdf2_hmacsha512iter100000_sha256_mod_pow.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/password_kdf_algo_sha256_sha256_pbkdf2_hmacsha512iter100000_sha256_mod_pow.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/password_kdf_algo_sha256_sha256_pbkdf2_hmacsha512iter100000_sha256_mod_pow.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
32.402299
116
0.615112
6a3c79a7a13d727e281cad8a3c7f96da16a6dd33
3,301
py
Python
hooks/webkitpy/common/prettypatch_unittest.py
nizovn/luna-sysmgr
48b7e2546e81d6ad1604353f2e5ab797a7d1667c
[ "Apache-2.0" ]
15
2015-05-25T19:28:05.000Z
2021-05-03T09:21:22.000Z
WebKit/Tools/Scripts/webkitpy/common/prettypatch_unittest.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
2
2017-07-25T09:37:22.000Z
2017-08-04T07:18:56.000Z
WebKit/Tools/Scripts/webkitpy/common/prettypatch_unittest.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
7
2019-01-30T08:56:04.000Z
2021-11-19T16:14:54.000Z
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
39.297619
82
0.693729
23907f48d2ccf5afa084e4ec57a4e2c1af263192
3,250
py
Python
ucsmsdk/mometa/lsboot/LsbootSanCatSanImagePath.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/lsboot/LsbootSanCatSanImagePath.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/lsboot/LsbootSanCatSanImagePath.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for LsbootSanCatSanImagePath ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class LsbootSanCatSanImagePathConsts(): LUN_UNSPECIFIED = "unspecified"...
55.084746
359
0.645538
8b1ad497c611546191447108c55c543e99786091
335
py
Python
src/afterpay/exceptions/invalid_headers.py
nyneava/afterpay-python
ec9f9230ce321a2d9876ac93f222c24ffe7eee1a
[ "MIT" ]
null
null
null
src/afterpay/exceptions/invalid_headers.py
nyneava/afterpay-python
ec9f9230ce321a2d9876ac93f222c24ffe7eee1a
[ "MIT" ]
null
null
null
src/afterpay/exceptions/invalid_headers.py
nyneava/afterpay-python
ec9f9230ce321a2d9876ac93f222c24ffe7eee1a
[ "MIT" ]
null
null
null
from afterpay.exceptions.afterpay_error import AfterpayError class InvalidHeadersError(AfterpayError): """ The request included an Accept header for something other than application/json or */*, or; The request did not include a Content-Type header, or its value was anything other than application/json. ...
37.222222
109
0.758209
a804a1bbdbc10ca026c4222a3536120a4ba777b7
3,906
py
Python
packages/robotControl/scripts/blocklyDaemon.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
2
2021-01-15T13:27:19.000Z
2021-08-04T08:40:52.000Z
packages/robotControl/scripts/blocklyDaemon.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
null
null
null
packages/robotControl/scripts/blocklyDaemon.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
5
2018-05-01T10:39:31.000Z
2022-03-25T03:02:35.000Z
# Copyright 2020 Jan Feitsma (Falcons) # SPDX-License-Identifier: Apache-2.0 import cherrypy import multiprocessing import os import time import signal import falconspy class Root(object): def __init__(self): self.executorProcesses = {} @cherrypy.expose def cmd(self, robotNr, pythoncode): ...
31.756098
112
0.549155
56142c148ca17c80dfa9354e4cf40743c289d7e2
364
py
Python
hanbai/hanbai/migrations/0005_remove_itemization_previous_vehicle_price.py
Checkroth/kurumahanbai
d7ab0a59161e104cc4701cb6ed3138f394999b9f
[ "MIT" ]
null
null
null
hanbai/hanbai/migrations/0005_remove_itemization_previous_vehicle_price.py
Checkroth/kurumahanbai
d7ab0a59161e104cc4701cb6ed3138f394999b9f
[ "MIT" ]
null
null
null
hanbai/hanbai/migrations/0005_remove_itemization_previous_vehicle_price.py
Checkroth/kurumahanbai
d7ab0a59161e104cc4701cb6ed3138f394999b9f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-04-06 11:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hanbai', '0004_itemization_previous_vehicle_price'), ] operations = [ migrations.RemoveField( model_name='itemization', name...
20.222222
62
0.631868
0a126240f434271e47835c99adab37102d0e07bd
2,793
py
Python
spacy/tests/lang/tt/test_tokenizer.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
5
2019-04-19T06:27:29.000Z
2019-12-02T13:30:47.000Z
spacy/tests/lang/tt/test_tokenizer.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
null
null
null
spacy/tests/lang/tt/test_tokenizer.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
2
2019-04-19T06:27:18.000Z
2019-10-04T12:39:15.000Z
# coding: utf8 from __future__ import unicode_literals import pytest INFIX_HYPHEN_TESTS = [ ("Явым-төшем күләме.", "Явым-төшем күләме .".split()), ("Хатын-кыз киеме.", "Хатын-кыз киеме .".split()) ] PUNC_INSIDE_WORDS_TESTS = [ ("Пассаҗир саны - 2,13 млн — кеше/көндә (2010), 783,9 млн. кеше/елд...
36.75
81
0.635875
faf17ba03686b933ffc703cf912e525640f621f8
1,925
py
Python
src/fidesops/schemas/connection_configuration/connection_secrets_saas.py
autosuggested/fidesops
a399abbc39e8fc528bc31d1bd3f0419c3379e6f3
[ "Apache-2.0" ]
null
null
null
src/fidesops/schemas/connection_configuration/connection_secrets_saas.py
autosuggested/fidesops
a399abbc39e8fc528bc31d1bd3f0419c3379e6f3
[ "Apache-2.0" ]
null
null
null
src/fidesops/schemas/connection_configuration/connection_secrets_saas.py
autosuggested/fidesops
a399abbc39e8fc528bc31d1bd3f0419c3379e6f3
[ "Apache-2.0" ]
null
null
null
import abc from typing import Any, Dict, Type from pydantic import BaseModel, Extra, root_validator, create_model from fidesops.schemas.saas.saas_config import SaaSConfig class SaaSSchema(BaseModel, abc.ABC): """ Abstract base schema for updating SaaS connection configuration secrets. Fields are added dur...
32.627119
86
0.662338
adcf220cc7f43792e9946888d2820bfebc75cd42
1,567
py
Python
jsk_recognition/jsk_pcl_ros/scripts/plane_time_ensync_for_recognition.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
jsk_recognition/jsk_pcl_ros/scripts/plane_time_ensync_for_recognition.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
jsk_recognition/jsk_pcl_ros/scripts/plane_time_ensync_for_recognition.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy PKG='jsk_pcl_ros' import imp ## import message_filters try: imp.find_module(PKG) except: import roslib;roslib.load_manifest(PKG) from sensor_msgs.msg import PointCloud2 from jsk_recognition_msgs.msg import PolygonArray, ModelCoefficientsArray def input_polygons_cb(msg): ...
34.822222
94
0.773452
0945a2595728f5c030997c03d7c8cacf0159b7cf
55
py
Python
sample.py
kbpyman/wizcoin
26efe48cc0e74414e397af28f1405bc05a05478e
[ "MIT" ]
null
null
null
sample.py
kbpyman/wizcoin
26efe48cc0e74414e397af28f1405bc05a05478e
[ "MIT" ]
null
null
null
sample.py
kbpyman/wizcoin
26efe48cc0e74414e397af28f1405bc05a05478e
[ "MIT" ]
null
null
null
sample.py print("okay") print("now this is changed")
9.166667
28
0.690909
90bb487d7cf99eb5a3bda1a6a24f8820cfd06ee0
6,656
py
Python
clientlib/transform_utils.py
mesakh123/carla-client
a4b0e74d6741ad77a46725dc65cc0c3f69497941
[ "MIT" ]
1
2022-01-06T09:34:19.000Z
2022-01-06T09:34:19.000Z
clientlib/transform_utils.py
mesakh123/carla-client
a4b0e74d6741ad77a46725dc65cc0c3f69497941
[ "MIT" ]
1
2022-01-06T09:35:56.000Z
2022-01-06T15:47:11.000Z
clientlib/transform_utils.py
mesakh123/carla-client
a4b0e74d6741ad77a46725dc65cc0c3f69497941
[ "MIT" ]
1
2022-01-06T15:47:29.000Z
2022-01-06T15:47:29.000Z
import numpy as np import carla from .sensor_utils import _baseCustomSensor __all__ = [ 'world_to_sensor', 'sensor_to_world', 'sensor_to_sensor', 'vehicle_bbox_to_sensor', 'vehicle_bboxes_to_sensor', 'vehicle_bbox_to_world', 've...
35.031579
78
0.70628
eb4809ab8c62083c72023dbc2095313a06e7360a
1,932
py
Python
do_like_javac/capture/mvn.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
do_like_javac/capture/mvn.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
do_like_javac/capture/mvn.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015 - present Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD style license found in the # LICENSE_Facebook file in the root directory of this source tree. An # additional grant of patent rights can be found in the PATENTS_Facebook file # in the same directory. imp...
32.745763
77
0.60352
079595ca556d0936f7b5a9aaf34fa99f86754ff9
878
py
Python
tests/days/Day19Test.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
tests/days/Day19Test.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
tests/days/Day19Test.py
IstvanOri/adventofcode-2020
28c1203fd8f7e1863c8322e60161a32848d9a55b
[ "Apache-2.0" ]
null
null
null
import unittest from ac2020.days.Day19 import Day19 class Day19Test(unittest.TestCase): def test_empty_input(self): day = Day19() day._set_input('') self.assertEqual('0', day.part1()) self.assertEqual('0', day.part2()) def test_correct_input(self): day = Day19() ...
46.210526
474
0.791572
bd16f39be67de2d031db0c9bac4ea37685aa9667
6,513
py
Python
simscale_sdk/models/frequency_list.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/frequency_list.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/frequency_list.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class FrequencyList(object): """NOTE: This class is auto generated by...
32.565
292
0.630585
a56172e02a8cf26c2eacce097dfa85b240ee71bc
443
py
Python
data/scripts/templates/object/mobile/vehicle/shared_vehicle_base.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/vehicle/shared_vehicle_base.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/vehicle/shared_vehicle_base.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/vehicle/shared_vehicle_base.iff" result.attribute_template_id = 9 re...
26.058824
66
0.726862
1bdc5059187b4f8196a1cc0ed56bfa9b27975665
953
py
Python
dependencies/amitools-0.1.0/amitools/fs/blkdev/HDFBlockDevice.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
dependencies/amitools-0.1.0/amitools/fs/blkdev/HDFBlockDevice.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
dependencies/amitools-0.1.0/amitools/fs/blkdev/HDFBlockDevice.py
limi/AGSImager
d3771800308e61a7a07df4a9b361e5bd5ba9e409
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from .BlockDevice import BlockDevice from .DiskGeometry import DiskGeometry from .ImageFile import ImageFile import os.path import os class HDFBlockDevice(BlockDevice): def __init__(self, hdf_file, read_only=False, block_size=512, fobj=Non...
28.029412
75
0.752361
97f7ae797b0bc0db31240eba7d17ebe18282ce11
4,807
py
Python
pytest_bdd/gherkin_terminal_reporter.py
timgates42/pytest-bdd
c6b7134e59550bd7442f0569ce7cb5ea592400b2
[ "MIT" ]
null
null
null
pytest_bdd/gherkin_terminal_reporter.py
timgates42/pytest-bdd
c6b7134e59550bd7442f0569ce7cb5ea592400b2
[ "MIT" ]
null
null
null
pytest_bdd/gherkin_terminal_reporter.py
timgates42/pytest-bdd
c6b7134e59550bd7442f0569ce7cb5ea592400b2
[ "MIT" ]
1
2022-01-06T17:50:28.000Z
2022-01-06T17:50:28.000Z
import re from _pytest.terminal import TerminalReporter from .parser import STEP_PARAM_RE def add_options(parser): group = parser.getgroup("terminal reporting", "reporting", after="general") group._addoption( "--gherkin-terminal-reporter", action="store_true", dest="gherkin_terminal_...
41.08547
109
0.588725
b0ff5753ab071ad8f449b9d62ea097a8a95a6722
854
py
Python
isi_sdk_7_2/test/test_nfs_aliases.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_7_2/test/test_nfs_aliases.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_7_2/test/test_nfs_aliases.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 2 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_7_2 from isi...
20.829268
79
0.688525