hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
081e5fd01e1b1dfb4d18889c89be93442771a8e2
7,291
py
Python
src/wavestate/iirrational/annotate/markdown.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/annotate/markdown.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/annotate/markdown.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
27.307116
88
0.566452
081e6eb95bf3371202bb90146292dd723e97ce96
3,251
py
Python
chapter05/02_Blackjack_MCP_OffP.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
1
2022-03-01T11:48:55.000Z
2022-03-01T11:48:55.000Z
chapter05/02_Blackjack_MCP_OffP.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
null
null
null
chapter05/02_Blackjack_MCP_OffP.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
null
null
null
''' 02_Blackjack_MCP_OffP.py : Application of an off-policy Monte-Carlo method for Blackjack prediction problem (Figure 5.1) Cem Karaoguz, 2020 MIT License ''' import numpy as np import pylab as pl from mpl_toolkits.mplot3d import Axes3D from IRL.environments.Gambler import Blackjack from IRL.agents.MonteCarlo impo...
31.872549
122
0.677638
081e7cc0ef0ce6cd98e769344cc14aeca02c6185
1,804
py
Python
lhotse/dataset/speech_synthesis.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
1
2021-01-05T07:33:35.000Z
2021-01-05T07:33:35.000Z
lhotse/dataset/speech_synthesis.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
null
null
null
lhotse/dataset/speech_synthesis.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from typing import Dict, List, Optional import torch from torch.utils.data import Dataset from lhotse.cut import CutSet from lhotse.utils import Pathlike EPS = 1e-8 class SpeechSynthesisDataset(Dataset): """ The PyTorch Dataset for the speech synthesis task. Each item in this d...
27.333333
101
0.59867
081e98855edd55b4e3acf8d3f4086fdee7e6cb75
667
py
Python
ros2_ws/src/perception/vis_odo/setup.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
null
null
null
ros2_ws/src/perception/vis_odo/setup.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
2
2021-07-05T14:50:09.000Z
2021-09-14T15:21:11.000Z
ros2_ws/src/perception/vis_odo/setup.py
FastSense/metalbot
063c897a16129d9aa88c2c7c52bdf6547af894e4
[ "MIT" ]
null
null
null
from setuptools import setup package_name = 'vis_odo' setup( name=package_name, version='0.0.0', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['package.xml']), ], install...
24.703704
55
0.61919
081ea56236fb68abaf1d0b01c8e87de9399f9e8f
1,038
py
Python
experiment_configs/cifar10/ensembles/train_ensemble_members.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
105
2021-03-30T06:03:44.000Z
2022-03-03T15:50:41.000Z
experiment_configs/cifar10/ensembles/train_ensemble_members.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
3
2021-07-16T04:46:25.000Z
2022-01-29T04:47:26.000Z
experiment_configs/cifar10/ensembles/train_ensemble_members.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
12
2021-03-23T17:24:43.000Z
2022-03-26T11:43:12.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2020 Apple Inc. All Rights Reserved. # import os import sys sys.path.append(os.path.abspath(".")) from args import args from main import main as run if __name__ == "__main__": for seed in range(3): args.seed = seed args.label_noise...
25.95
80
0.605973
081ed10bb6220393e15ea0a55260043e37d04375
5,269
py
Python
docs/conf.py
wassemalward/pyGeoStatistics
25cd4b74855ddb5763d87388502424a9742d37ce
[ "MIT" ]
1
2019-09-05T12:43:30.000Z
2019-09-05T12:43:30.000Z
docs/conf.py
kwinkunks/pyGeoStatistics
295c4d23b7be960fec5220f77e9e299e70d731dd
[ "MIT" ]
null
null
null
docs/conf.py
kwinkunks/pyGeoStatistics
295c4d23b7be960fec5220f77e9e299e70d731dd
[ "MIT" ]
3
2021-01-13T05:45:18.000Z
2021-12-03T13:35:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath('..')) # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. # # needs_sphinx = '1.0' # Add any Sphinx extension module na...
29.768362
78
0.673562
081ef33765e7cbeb9ba5255ee98856cdac11c024
22,643
py
Python
tests/test_hypersphere.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
tests/test_hypersphere.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
tests/test_hypersphere.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
""" Unit tests for the Hypersphere. """ import scipy.special import tests.helper as helper import geomstats.backend as gs import geomstats.tests from geomstats.geometry.hypersphere import Hypersphere MEAN_ESTIMATION_TOL = 1e-6 KAPPA_ESTIMATION_TOL = 1e-2 ONLINE_KMEANS_TOL = 2e-2 class TestHypersphereMethods(geomst...
38.377966
79
0.602085
081ef5ed105e5fa81bcc1fbdbc7d7c131cd1897d
12,084
py
Python
budget-rnn/src/utils/tfutils.py
tejaskannan/ml-models
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
1
2021-06-28T15:40:41.000Z
2021-06-28T15:40:41.000Z
budget-rnn/src/utils/tfutils.py
tejaskannan/ml-models
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
5
2021-03-04T19:42:15.000Z
2022-02-10T05:46:15.000Z
budget-rnn/src/utils/tfutils.py
tejaskannan/budget-rnn
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from typing import Dict, Optional, List, Callable, Union, Tuple from collections import namedtuple from functools import partial from utils.constants import SMALL_NUMBER, BIG_NUMBER def get_optimizer(name: str, learning_rate: float, learning_rate_decay: float, global_step: tf.Variable, decay_...
43.003559
166
0.636544
081f3c05ab01e85196a6f35add3cc57b387b4469
4,422
py
Python
tests/test_binaries.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
tests/test_binaries.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
tests/test_binaries.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
1
2021-07-12T01:14:03.000Z
2021-07-12T01:14:03.000Z
import unittest import sys import shutil import tempfile import os import hashlib import subprocess import time #logging.basicConfig(filename = "test.log", # format = "%(asctime)s: %(name)s:%(levelname)s: %(message)s", # level = logging.DEBUG) class IntegrationTest(unittest.TestCase): ...
41.327103
119
0.563772
081f6d8bfffef9574a612486953dbd362df5814e
8,304
py
Python
dnacentersdk/models/validators/v1_2_10/jsd_db9f997f4e59aec1.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v1_2_10/jsd_db9f997f4e59aec1.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v1_2_10/jsd_db9f997f4e59aec1.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Create and Provision SSID data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 restrictio...
28.634483
78
0.363801
081f74d02cad7ab4cc6f4e3eb29b2fe500b5858a
382
py
Python
Cloud-Scale_Text_Classification_with_CNNs_on_Azure/data/download_amazon_review_polarity.py
NunoEdgarGFlowHub/sciblog_support
5ef38b935ad45edd1cf01b92b5184282b4ee25fa
[ "BSD-3-Clause" ]
668
2016-11-27T13:12:40.000Z
2022-02-18T09:12:19.000Z
Cloud-Scale_Text_Classification_with_CNNs_on_Azure/data/download_amazon_review_polarity.py
mohamedndiaye/sciblog_support
0d5b956bacbd40d1a1fc07582aba728abfb59f54
[ "BSD-3-Clause" ]
99
2016-11-01T08:18:44.000Z
2021-02-25T06:16:39.000Z
Cloud-Scale_Text_Classification_with_CNNs_on_Azure/data/download_amazon_review_polarity.py
mohamedndiaye/sciblog_support
0d5b956bacbd40d1a1fc07582aba728abfb59f54
[ "BSD-3-Clause" ]
185
2016-11-29T11:11:33.000Z
2022-03-31T09:14:41.000Z
# Download dataset import sys import os current_path = os.path.dirname(os.path.abspath(__file__)) root_path = current_path.rsplit('solutions')[0] sys.path.insert(0,root_path) from solutions.utils.python_utils import download_file url = 'https://mxnetstorage.blob.core.windows.net/public/nlp/amazon_review_polarity_csv.t...
29.384615
95
0.798429
081f881a05b60cba241847f665ba27da0ec3e3e3
1,032
py
Python
roots/test_cli.py
TomRegan/roots_legacy
cf145d80b526b7142f869eb5d869a27c3d7bb1eb
[ "Apache-2.0" ]
null
null
null
roots/test_cli.py
TomRegan/roots_legacy
cf145d80b526b7142f869eb5d869a27c3d7bb1eb
[ "Apache-2.0" ]
null
null
null
roots/test_cli.py
TomRegan/roots_legacy
cf145d80b526b7142f869eb5d869a27c3d7bb1eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2015 Tom Regan # # 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...
27.891892
74
0.732558
081f99291a27e826b09f5bfc6df65577ffb91666
8,034
py
Python
scan/test/fetch/link_finders/test_data/test_find_implicit_links.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/test/fetch/link_finders/test_data/test_find_implicit_links.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/test/fetch/link_finders/test_data/test_find_implicit_links.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
26.959732
79
0.55539
081fb6b8724df60796a880507b39e65fa9054df2
2,086
py
Python
.leetcode/717.1-bit-and-2-bit-characters.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/717.1-bit-and-2-bit-characters.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/717.1-bit-and-2-bit-characters.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=717 lang=python3 # # [717] 1-bit and 2-bit Characters # # https://leetcode.com/problems/1-bit-and-2-bit-characters/description/ # # algorithms # Easy (46.28%) # Likes: 626 # Dislikes: 1604 # Total Accepted: 96.5K # Total Submissions: 208.2K # Testcase Example: '[1,0,0]' # # We have two spec...
17.982759
79
0.583893
082049ca17f70b19795947997e8804a0584be1fc
1,597
py
Python
otp/web/SettingsMgr.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
otp/web/SettingsMgr.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
otp/web/SettingsMgr.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from direct.directnotify.DirectNotifyGlobal import directNotify from otp.web.SettingsMgrBase import SettingsMgrBase class SettingsMgr(DistributedObjectGlobal, SettingsMgrBase): notify = directNotify.newCategory('SettingsMgr') def a...
39.925
103
0.711334
08205ffa68d760e7780dcc7e4d8db8524be7e454
3,218
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/updates/get_channel_difference.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/updates/get_channel_difference.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/updates/get_channel_difference.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...
33.873684
165
0.612181
08206cd365b7696cec42bc954cb260648c4c443d
18,242
py
Python
EOD_api/EOD_api.py
webclinic017/time-series-pipeline
5ac418b91e395a48cba397f95d25d221adfff9bd
[ "MIT" ]
3
2021-08-28T10:55:12.000Z
2021-12-01T20:42:38.000Z
EOD_api/EOD_api.py
webclinic017/time-series-pipeline
5ac418b91e395a48cba397f95d25d221adfff9bd
[ "MIT" ]
null
null
null
EOD_api/EOD_api.py
webclinic017/time-series-pipeline
5ac418b91e395a48cba397f95d25d221adfff9bd
[ "MIT" ]
1
2021-09-26T16:07:24.000Z
2021-09-26T16:07:24.000Z
import json import concurrent.futures from datetime import timedelta from datetime import datetime as dt from abc import ABCMeta, abstractmethod from inspect import getcallargs import pandas as pd pd.options.mode.chained_assignment = "raise" def assert_arguments_in(args_to_check, allowed_values): def inner(f): ...
43.641148
232
0.544184
0820a50fe973f2682fca8477da4161785e92ac10
2,426
py
Python
test/unit/optimizer/test_optimiser_utils.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
358
2020-06-11T09:34:53.000Z
2022-03-31T12:56:22.000Z
test/unit/optimizer/test_optimiser_utils.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
467
2020-06-11T13:49:45.000Z
2022-03-31T14:19:48.000Z
test/unit/optimizer/test_optimiser_utils.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
48
2020-07-13T14:50:45.000Z
2022-03-26T09:37:13.000Z
from copy import deepcopy from deap import tools from fedot.core.optimisers.utils.multi_objective_fitness import MultiObjFitness from fedot.core.optimisers.utils.pareto import ParetoFront as FedotParetoFront from fedot.core.optimisers.utils.population_utils import is_equal_archive from test.unit.pipelines.test_node_c...
43.321429
106
0.738252
0820bea210507e0bd43c68da1cec87c3e615bf86
36,377
py
Python
google/appengine/tools/devappserver2/cli_parser.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/devappserver2/cli_parser.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/devappserver2/cli_parser.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
2
2019-01-13T07:58:35.000Z
2020-11-04T04:55:35.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.573714
93
0.695055
0820e74af40479d6fdfe46dd35ec69ddd19e8411
15,744
py
Python
tests/test_matrix.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
108
2015-08-21T10:39:22.000Z
2022-03-04T22:10:49.000Z
tests/test_matrix.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
60
2015-07-21T22:55:52.000Z
2022-03-24T21:20:00.000Z
tests/test_matrix.py
ghuls/weblogo
7eab5d1b8a8ec38786fa426af84bd77950835524
[ "MIT" ]
40
2015-08-04T00:18:23.000Z
2021-12-30T13:41:54.000Z
#!/usr/bin/env python import unittest from io import StringIO import numpy as np from weblogo import data from weblogo.matrix import AlphabeticArray, Motif, SubMatrix from weblogo.seq import Alphabet, protein_alphabet, unambiguous_protein_alphabet from . import data_stream class test_AlphabeticArray(unittest.Test...
44.727273
94
0.397929
08214d7df7a7c87b41b3d69b21b9bff73d411543
32,714
py
Python
ht/conv_external.py
CalebBell/ht
3b95f9cfff30c8c0272443d523a484977eedbf0d
[ "MIT" ]
118
2016-01-04T07:46:23.000Z
2022-03-29T14:12:59.000Z
ht/conv_external.py
CalebBell/ht
3b95f9cfff30c8c0272443d523a484977eedbf0d
[ "MIT" ]
4
2017-06-27T08:01:02.000Z
2020-10-06T14:18:46.000Z
ht/conv_external.py
CalebBell/ht
3b95f9cfff30c8c0272443d523a484977eedbf0d
[ "MIT" ]
22
2016-04-20T06:17:35.000Z
2022-03-07T01:40:25.000Z
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal...
34.508439
146
0.632787
082189e40b76605c39e9f7ff9e0ea85616c81086
1,954
py
Python
fffw/encoding/codecs.py
tumb1er/fffw
6e0e51c22aecfdb12044ef51521857a790c1fc16
[ "MIT" ]
null
null
null
fffw/encoding/codecs.py
tumb1er/fffw
6e0e51c22aecfdb12044ef51521857a790c1fc16
[ "MIT" ]
null
null
null
fffw/encoding/codecs.py
tumb1er/fffw
6e0e51c22aecfdb12044ef51521857a790c1fc16
[ "MIT" ]
null
null
null
from dataclasses import field, dataclass from typing import NoReturn from fffw.encoding import outputs from fffw.graph import base from fffw.graph.meta import VIDEO, AUDIO, StreamType __all__ = [ 'AudioCodec', 'VideoCodec', 'Copy', ] class VideoCodec(outputs.Codec): """ Base class for describing...
26.767123
75
0.610542
0821b909dc7535938fac7928fd11517a9ff6f36e
12,382
py
Python
homeassistant/helpers/device_registry.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
4
2016-12-23T10:36:36.000Z
2021-04-22T12:38:16.000Z
homeassistant/helpers/device_registry.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/helpers/device_registry.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2020-02-17T07:44:24.000Z
2020-02-17T07:44:24.000Z
"""Provide a way to connect entities belonging to one device.""" from asyncio import Event from collections import OrderedDict import logging from typing import Any, Dict, List, Optional, cast import uuid import attr from homeassistant.core import callback from homeassistant.loader import bind_hass from .typing impo...
31.667519
88
0.597884
0821fb18cd1c151fd2e720af5832e1a4466fd169
3,091
py
Python
src/the_tale/the_tale/portal/conf.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/portal/conf.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/portal/conf.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() SITE_SECTIONS = ((re.compile(r'^/$'), 'index'), (re.compile(r'^/search.*$'), 'search'), (re.compile(r'^/chat.*$'), 'chat'), (re.compile(r'^/news.*$'), 'news'), (re.compile(r'^/forum.*$'), 'forum'), ...
51.516667
123
0.422841
0821fc2474453949be9f8b6ec26627e51bffb791
3,935
py
Python
articlee/article/routes.py
danielemingolla/BLOG_WEBAPP_FLASK
19eaad5a674ac255723e0118f5d80eefd5cb08b8
[ "MIT" ]
1
2019-09-10T14:11:40.000Z
2019-09-10T14:11:40.000Z
articlee/article/routes.py
danielemingolla/BLOG_WEBAPP_FLASK
19eaad5a674ac255723e0118f5d80eefd5cb08b8
[ "MIT" ]
7
2019-09-11T21:17:01.000Z
2022-01-13T01:38:40.000Z
articlee/article/routes.py
danielemingolla/ARTICLEES_WEBAPP_FLASK
19eaad5a674ac255723e0118f5d80eefd5cb08b8
[ "MIT" ]
null
null
null
import lxml.html from articlee import db from flask_wtf import FlaskForm from articlee.models import Articles from articlee.main.utility import is_logged_in from wtforms import StringField, TextAreaField from wtforms.validators import DataRequired, Length from flask import render_template, flash, redirect, url_for, ses...
37.122642
172
0.690216
082207e7f2233926c5e10e70529aa52c928f88f2
912
py
Python
tests/example.py
haynajjar/invoice2data
ce03ab2b799a2060d53257a5f45e1b07812f85bb
[ "MIT" ]
null
null
null
tests/example.py
haynajjar/invoice2data
ce03ab2b799a2060d53257a5f45e1b07812f85bb
[ "MIT" ]
null
null
null
tests/example.py
haynajjar/invoice2data
ce03ab2b799a2060d53257a5f45e1b07812f85bb
[ "MIT" ]
null
null
null
from invoice2data import extract_data from invoice2data.input import pdftotext, tesseract4, pdfminer_wrapper import os import pkg_resources import logging # Reduce log level of various modules logging.getLogger('chardet').setLevel(logging.WARNING) logging.getLogger('pdfminer').setLevel(logging.WARNING) de...
31.448276
95
0.724781
0822327132479362ca08616627d2f1507d5a3c9a
15,008
py
Python
sunpy/net/fido_factory.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/fido_factory.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/fido_factory.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
""" This module provides the `Fido <sunpy.net.fido_factory.UnifiedDownloaderFactory>` instance of `sunpy.net.fido_factory.UnifiedDownloaderFactory` it also provides the `~sunpy.net.fido_factory.UnifiedResponse` class which `Fido.search <sunpy.net.fido_factory.UnifiedDownloaderFactory.search>` returns and the `~sunpy.ne...
35.479905
114
0.608609
08229ae4e15e88b68eec5ffc2633bc06d126445c
275
py
Python
tools/migrations/0015_tool_created_date.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/migrations/0015_tool_created_date.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/migrations/0015_tool_created_date.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-16 09:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tools', '0014_auto_20180112_1429'), ]
19.642857
48
0.683636
0822a6d4be41727669497867c524ef72eafe3ea5
4,222
py
Python
Transformer/transformer_perplexity.py
Azmarie/COVID-Doctor-Chatbot
e516fc9b722713b450b73c6c1d004977b2e265b1
[ "MIT" ]
null
null
null
Transformer/transformer_perplexity.py
Azmarie/COVID-Doctor-Chatbot
e516fc9b722713b450b73c6c1d004977b2e265b1
[ "MIT" ]
null
null
null
Transformer/transformer_perplexity.py
Azmarie/COVID-Doctor-Chatbot
e516fc9b722713b450b73c6c1d004977b2e265b1
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch.utils.data import TensorDataset, DataLoader import numpy as np from transformers import AdamW, get_linear_schedule_with_warmup from transformers_model import transformers_model import fire import time import os # uses allennlp modules from allennlp.nn import uti...
32.476923
101
0.612743
0822b00ce6a977d715b4b02d362fc4bb828f5dd0
1,083
py
Python
Text/tests/examples/finetune_youtube_last.py
Navjeet-AIT/CHAT-SENTIMENT-ANALYSIS
f49682c7d973c4a966093ed6517fd28b5ce79bc2
[ "MIT" ]
1
2021-09-10T13:59:45.000Z
2021-09-10T13:59:45.000Z
Text/tests/examples/finetune_youtube_last.py
Navjeet-AIT/CHAT-SENTIMENT-ANALYSIS
f49682c7d973c4a966093ed6517fd28b5ce79bc2
[ "MIT" ]
6
2019-12-16T21:57:35.000Z
2022-02-10T00:14:27.000Z
Text/tests/examples/finetune_youtube_last.py
Navjeet-AIT/CHAT-SENTIMENT-ANALYSIS
f49682c7d973c4a966093ed6517fd28b5ce79bc2
[ "MIT" ]
1
2021-04-28T11:22:49.000Z
2021-04-28T11:22:49.000Z
"""Finetuning example. Trains the Text model on the SS-Youtube dataset, using the 'last' finetuning method and the accuracy metric. The 'last' method does the following: 0) Load all weights except for the softmax layer. Do not add tokens to the vocabulary and do not extend the embedding layer. 1) Freeze all layers...
29.27027
74
0.740536
0822c0080e2bc156ea5fbf47cba9dd99fd5b7617
7,967
py
Python
tcgen/cardcanvas.py
a-hisame/testplay-card-generator
a24eded0b5f56686e98187082d9e2f888fda5477
[ "MIT" ]
2
2018-07-06T21:59:57.000Z
2018-07-07T14:16:25.000Z
tcgen/cardcanvas.py
a-hisame/testplay-card-generator
a24eded0b5f56686e98187082d9e2f888fda5477
[ "MIT" ]
2
2018-07-09T15:11:49.000Z
2018-07-18T13:40:43.000Z
tcgen/cardcanvas.py
a-hisame/testplay-card-generator
a24eded0b5f56686e98187082d9e2f888fda5477
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Card Rendering Engine Implementation ''' import sys import os from PIL import Image, ImageDraw, ImageFont, ImageOps from . import staticdata __FONT_PATH = staticdata.staticfile_path(dict( bold=os.path.join('fonts', 'NotoSansCJKjp-Bold.ttf'), plain=os.path.join('...
41.494792
93
0.547383
0822c2b43a6cf9eab6e350d0fa30a5f106f86501
2,561
py
Python
Courses/Udacity/CS101/Lesson_2_Problem_Set_(Optional_2)/03-10_Row_Abacus/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Courses/Udacity/CS101/Lesson_2_Problem_Set_(Optional_2)/03-10_Row_Abacus/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Courses/Udacity/CS101/Lesson_2_Problem_Set_(Optional_2)/03-10_Row_Abacus/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
######################################################################### # 10-row School abacus # by # Michael H ######################################################################### # Description partially extracted from from wikipedia # # Aroun...
30.855422
73
0.436158
0822c438aa9b6cc7bfc84cfb93f53755bdc79a06
428
py
Python
stockscore/tests/conftest.py
jackmoody11/stockscore
629d1685418d72b6ad9e7a3c0399d53774ab7aed
[ "MIT" ]
54
2018-10-10T01:47:32.000Z
2022-03-18T16:41:26.000Z
stockscore/tests/conftest.py
jackmoody11/stockscore
629d1685418d72b6ad9e7a3c0399d53774ab7aed
[ "MIT" ]
53
2018-08-14T23:29:48.000Z
2021-03-31T19:55:46.000Z
stockscore/tests/conftest.py
jackmoody11/stockScores
629d1685418d72b6ad9e7a3c0399d53774ab7aed
[ "MIT" ]
16
2018-10-12T21:05:23.000Z
2022-01-21T09:08:44.000Z
import pytest def pytest_addoption(parser): parser.addoption( "--runslow", action="store_true", default=False, help="run slow tests" ) def pytest_collection_modifyitems(config, items): if config.getoption("--runslow"): return skip_slow = pytest.mark.skip(reason="need --runslow option...
25.176471
78
0.663551
0822f12d9d1b43979251d7fab3d77f9758645d19
8,409
py
Python
docs/conf.py
MartijnBraam/wifite-ng
fac0c70f7e262ca64f9fcc875ff68c2c8de9459b
[ "BSD-3-Clause" ]
1
2019-04-08T03:18:34.000Z
2019-04-08T03:18:34.000Z
docs/conf.py
MartijnBraam/wifite-ng
fac0c70f7e262ca64f9fcc875ff68c2c8de9459b
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
MartijnBraam/wifite-ng
fac0c70f7e262ca64f9fcc875ff68c2c8de9459b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # ...
30.578182
76
0.715424
0822fa1d141e107649962ee570d2fae957421789
22,627
py
Python
src/python/pants/base/exception_sink.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/exception_sink.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/base/exception_sink.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import datetime import faulthandler import logging import os import signal import sys import threading import traceback from contextlib import contextmanager from typing import Callable, I...
40.477639
102
0.735581
08230959672469e50271acc85dd10994d38243ab
343
py
Python
api/src/opentrons/protocols/api_support/definitions.py
soroushjp/opentrons
f7e82834417630d5e6c90ed452de35d80eb1be8a
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocols/api_support/definitions.py
soroushjp/opentrons
f7e82834417630d5e6c90ed452de35d80eb1be8a
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocols/api_support/definitions.py
soroushjp/opentrons
f7e82834417630d5e6c90ed452de35d80eb1be8a
[ "Apache-2.0" ]
null
null
null
from .types import APIVersion MAX_SUPPORTED_VERSION = APIVersion(2, 9) #: The maximum supported protocol API version in this release V2_MODULE_DEF_VERSION = APIVersion(2, 3) #: The first API version in which we prefer the v2 module defs MIN_SUPPORTED_VERSION = APIVersion(2, 0) #: The minimum supported protocol API v...
31.181818
62
0.793003
082322983844a65c026b94eeeb72895e5b264cd3
4,714
py
Python
celery/serialization.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/serialization.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/serialization.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
import inspect import sys import types from copy import deepcopy import pickle as pypickle try: import cPickle as cpickle except ImportError: cpickle = None if sys.version_info < (2, 6): # cPickle is broken in Python <= 2.5. # It unsafely and incorrectly uses relative instead of absolute imports, ...
28.227545
78
0.638311
082325f4262acc1941a6fc51268118e2bdfac149
2,699
py
Python
immutable_collection/collection.py
djtaylor/python-immutable-collection
2248c3169f03556782d292d2bd9c17f2310c9c2f
[ "MIT" ]
1
2018-07-25T14:58:48.000Z
2018-07-25T14:58:48.000Z
immutable_collection/collection.py
djtaylor/python-immutable-collection
2248c3169f03556782d292d2bd9c17f2310c9c2f
[ "MIT" ]
null
null
null
immutable_collection/collection.py
djtaylor/python-immutable-collection
2248c3169f03556782d292d2bd9c17f2310c9c2f
[ "MIT" ]
null
null
null
import re import json from collections import namedtuple def merge_dict(a, b, path=None): """ Merge two dictionaries together. Do not overwrite duplicate keys. :param a: The first dictionary :type a: dict :param b: The second dictionary :type b: dict :param path...
29.021505
90
0.543164
0823313863fb32d10104fb511357d815ac67c564
592
py
Python
myeongsoo/pseudo/dkt/scheduler.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
myeongsoo/pseudo/dkt/scheduler.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
myeongsoo/pseudo/dkt/scheduler.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
from torch.optim.lr_scheduler import ReduceLROnPlateau from transformers import get_linear_schedule_with_warmup def get_scheduler(optimizer, args): if args.scheduler == 'plateau': scheduler = ReduceLROnPlateau(optimizer, patience=10, factor=0.5, mode='max', verbose=True) elif args.scheduler == 'line...
42.285714
99
0.646959
08233ee46fc0514037107671b2bb37a1385e714f
3,909
py
Python
src/clusto/drivers/locations/racks/basicrack.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
src/clusto/drivers/locations/racks/basicrack.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
src/clusto/drivers/locations/racks/basicrack.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
from clusto.drivers.base import Location, Device, Driver class BasicRack(Location): """ Basic rack driver. """ _clusto_type = "rack" _driver_name = "basicrack" _properties = {'minu':1, 'maxu':45} def _ensure_rack_u(self, rackU): if not isinstance(rackU, int) ...
31.780488
92
0.5165
082356da86d2e110ee3163915d0d500f84c10b69
9,009
py
Python
0900-hp/hplip-3.21.12/toolbox.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/toolbox.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/toolbox.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # (c) Copyright 2003-2015 HP Development Company, L.P. # # 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 # (a...
30.85274
137
0.565657
08235a55ca9ae3939c6c2acde779f89d3b94c348
277
py
Python
apps/annotations/translation.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
7
2020-02-20T13:24:40.000Z
2022-01-28T19:36:04.000Z
apps/annotations/translation.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
15
2020-04-28T13:09:02.000Z
2021-11-03T15:21:24.000Z
apps/annotations/translation.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
4
2020-02-20T13:48:30.000Z
2021-03-19T00:33:34.000Z
from modeltranslation.translator import translator, TranslationOptions from .models import Annotation class AnnotationTranslationOptions(TranslationOptions): fields = ('subject', 'short_message', 'message') translator.register(Annotation, AnnotationTranslationOptions)
27.7
70
0.830325
0823a5c63630f956b5b9e7f8ef08d136fb351fad
16,457
py
Python
projects/DensePose/densepose/evaluation/evaluator.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/DensePose/densepose/evaluation/evaluator.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/DensePose/densepose/evaluation/evaluator.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. import contextlib import copy import io import itertools import logging import numpy as np import os from collections import OrderedDict from typing import Dict, Iterable, List, Optional import pycocotools.mask as mask_utils import torch from p...
38.99763
98
0.652245
0823a5e2b7f0bd7e75f4295cf333ec8af7ab71a5
57
py
Python
platon/tools/__init__.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/tools/__init__.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/tools/__init__.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
from .pytest_platon import ( deployer, linker, )
11.4
28
0.649123
0823eef4205bc6a5833807f5f0093026fb89e1fb
710
py
Python
beep/tests/test_secrets_manager.py
BruisVanVlijmen2020/beep
f695e474db8b114ecf360f363ab6691b2a2d8e07
[ "Apache-2.0" ]
null
null
null
beep/tests/test_secrets_manager.py
BruisVanVlijmen2020/beep
f695e474db8b114ecf360f363ab6691b2a2d8e07
[ "Apache-2.0" ]
null
null
null
beep/tests/test_secrets_manager.py
BruisVanVlijmen2020/beep
f695e474db8b114ecf360f363ab6691b2a2d8e07
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Toyota Research Institute. All rights reserved. """Unit tests related to Splicing files""" import os import unittest from beep import ENVIRONMENT from beep.config import config from beep.utils.secrets_manager import secret_accessible, get_secret, event_setup TEST_DIR = os.path.dirname(__file__) TEST_...
28.4
81
0.722535
0823f1498475c5fd37851b81d1b47bc484918601
2,798
py
Python
pytorch/fastpitch/data_functions.py
ningchaoar/portfolio-examples
bacbbbcc3f20e89648c91141156f091de4eef651
[ "MIT" ]
5
2021-11-26T03:54:26.000Z
2022-03-18T01:15:05.000Z
pytorch/fastpitch/data_functions.py
ningchaoar/portfolio-examples
bacbbbcc3f20e89648c91141156f091de4eef651
[ "MIT" ]
8
2021-12-11T11:08:29.000Z
2022-03-30T10:50:55.000Z
pytorch/fastpitch/data_functions.py
ningchaoar/portfolio-examples
bacbbbcc3f20e89648c91141156f091de4eef651
[ "MIT" ]
5
2021-11-29T07:55:08.000Z
2022-03-21T06:38:51.000Z
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. 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...
49.964286
82
0.709793
0824052b9b676dccfdd4ed7b25472ceb6695af47
291
py
Python
openstack-dashboard/openstack_dashboard/dashboards/project/hybrid/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/hybrid/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/hybrid/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
import json import logging from django.http import HttpResponse from horizon.views import APIView from horizon import exceptions class IndexView(APIView): template_name = 'project/hybrid/index.html' def get_data(self, request, context, *args, **kwargs): return context
19.4
58
0.752577
082409264b0c0c6b69a0c7982775bd242fb031ec
5,995
py
Python
data.py
geometrikal/IIC-1
6b337670d58fcb5c34b6ec34236ea2ed472e1d92
[ "MIT" ]
null
null
null
data.py
geometrikal/IIC-1
6b337670d58fcb5c34b6ec34236ea2ed472e1d92
[ "MIT" ]
null
null
null
data.py
geometrikal/IIC-1
6b337670d58fcb5c34b6ec34236ea2ed472e1d92
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import tensorflow_datasets as tfds from parser import * from filenames_dataset import FilenamesDataset from image_dataset import ImageDataset from tf_generator import TFGenerator def mnist_x(x_orig, mdl_input_dims, is_training): # rescale to [0, 1] x_orig = tf.cast...
37.236025
116
0.617181
082410fb7184028042ddcb788c440becc5cab916
2,695
py
Python
tools/giws/setup.py
sguazt/dcsxx-testbed
e7210f0c7f54256d5bf0c90297e0c4f9eaf82da0
[ "Apache-2.0" ]
null
null
null
tools/giws/setup.py
sguazt/dcsxx-testbed
e7210f0c7f54256d5bf0c90297e0c4f9eaf82da0
[ "Apache-2.0" ]
null
null
null
tools/giws/setup.py
sguazt/dcsxx-testbed
e7210f0c7f54256d5bf0c90297e0c4f9eaf82da0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -u # Copyright or Copr. INRIA/Scilab - Sylvestre LEDRU # # Sylvestre LEDRU - <sylvestre.ledru@inria.fr> <sylvestre@ledru.info> # # This software is a computer program whose purpose is to generate C++ wrapper # for Java objects/methods. # # This software is governed by the CeCILL license under French ...
42.777778
88
0.758071
082416db959065416f61b8c4d16d43c7f0017f0b
7,614
py
Python
simulations/20220610/run_favites_singularity_with_inputs.py
breecummins/social_sampling_in_epidemics
9f3f580f525c0df6a6518658b11c7a81db8e19b3
[ "MIT" ]
null
null
null
simulations/20220610/run_favites_singularity_with_inputs.py
breecummins/social_sampling_in_epidemics
9f3f580f525c0df6a6518658b11c7a81db8e19b3
[ "MIT" ]
null
null
null
simulations/20220610/run_favites_singularity_with_inputs.py
breecummins/social_sampling_in_epidemics
9f3f580f525c0df6a6518658b11c7a81db8e19b3
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ''' FAVITES: FrAmework for VIral Transmission and Evolution Simulation ''' import argparse import os from glob import glob from os import chdir,getcwd,makedirs,remove from os.path import abspath,expanduser,isdir,isfile from shutil import copyfile,move,rmtree from subprocess import call,check_out...
46.711656
184
0.695429
08244d200094e36aa7f65a080f2d50403a331027
2,832
bzl
Python
src/shared/parameter/parameter.bzl
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/shared/parameter/parameter.bzl
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/shared/parameter/parameter.bzl
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
def _generate_cpp_dynamic_parameters_impl(ctx): output_header = ctx.outputs.generated_parameter_header output_source = ctx.outputs.generated_parameter_source args = ctx.actions.args() args.add("--output_header", output_header) args.add("--output_source", output_source) # Retrieve paths to the ...
36.307692
114
0.705155
08249eea32b66a4115ab23636a1fe17b8d061ce3
380
py
Python
Python/dict.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
Python/dict.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
Python/dict.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
colors = ['red', 'yellow', 'green', 'yellow', 'blue'] # get default values to a dictionary, without checking(for a KeyError) if the # key is present d = dict() for color in colors: d[color] = d.get(color, 0) + 1 print d # same using defaultdict from collections import defaultdict dd = defaultdict(int) for col...
18.095238
77
0.676316
0824c802cb7ff30861f702c6bdfdc7f235430a3a
2,453
py
Python
datalad/customremotes/main.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/customremotes/main.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/customremotes/main.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # ### ### ### ...
30.6625
87
0.625764
0824d0b7abcd6ecdba1c8828eea2691d8e3b897b
41
py
Python
interpolML/interpolML/model/__init__.py
MiguelMque/interpolML
980d55583285ba1d289de69b5c05c65fc34097f5
[ "MIT" ]
null
null
null
interpolML/interpolML/model/__init__.py
MiguelMque/interpolML
980d55583285ba1d289de69b5c05c65fc34097f5
[ "MIT" ]
null
null
null
interpolML/interpolML/model/__init__.py
MiguelMque/interpolML
980d55583285ba1d289de69b5c05c65fc34097f5
[ "MIT" ]
null
null
null
from interpolML.model.model import Model
20.5
40
0.853659
0824da5fc5b502fd5e95bf5d13fdd6dc7beb4582
5,779
py
Python
book/chap17/onramp/setrun.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
book/chap17/onramp/setrun.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
book/chap17/onramp/setrun.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
""" Module to set up run time parameters for Clawpack. The values set in the function setrun are then written out to data files that will be read in by the Fortran code. """ import os from pyclaw import data #------------------------------ def setrun(claw_pkg='classic'): #------------------------------ ...
27.917874
79
0.545423
0824ee85596b3863018b5c872045f20b3f267c1a
904
py
Python
rosbuild_ws/src/behavior_manager/build/catkin_generated/generate_cached_setup.py
Boberito25/ButlerBot
959f961bbc8c43be0ccb533dd2e2af5c55b0cc2a
[ "BSD-3-Clause" ]
null
null
null
rosbuild_ws/src/behavior_manager/build/catkin_generated/generate_cached_setup.py
Boberito25/ButlerBot
959f961bbc8c43be0ccb533dd2e2af5c55b0cc2a
[ "BSD-3-Clause" ]
1
2015-06-08T19:55:40.000Z
2015-06-08T19:55:40.000Z
rosbuild_ws/src/behavior_manager/build/catkin_generated/generate_cached_setup.py
Boberito25/ButlerBot
959f961bbc8c43be0ccb533dd2e2af5c55b0cc2a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import argparse import os import stat import sys # find the import relatively if available to work before installing catkin or overlaying installed version if os.path.exists(os.path.join('/opt/ros/groovy/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.path.insert(0, os.pat...
43.047619
115
0.785398
0824f221cdf2c4162d9c0e12073c8df99d9307f4
11,460
py
Python
src/openapi_client/model/id16_read_only_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
6
2022-01-03T07:07:18.000Z
2022-03-21T08:13:49.000Z
src/openapi_client/model/id16_read_only_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-02T13:01:05.000Z
2022-02-10T12:01:17.000Z
src/openapi_client/model/id16_read_only_nullable.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-10T11:53:55.000Z
2022-02-10T11:53:55.000Z
""" Nozbe Teams API Nozbe Teams API specification # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@nozbe.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiT...
39.930314
110
0.552531
0825092b98eb93ba0726b12f0d80fee50cd8f13b
2,371
py
Python
webhook_telegram_bot/plugins/bitbucket/handlers.py
toolen/webhook-telegram-bot
c2ef4e7a6cf0f78c0341d3d645e516440596569f
[ "MIT" ]
null
null
null
webhook_telegram_bot/plugins/bitbucket/handlers.py
toolen/webhook-telegram-bot
c2ef4e7a6cf0f78c0341d3d645e516440596569f
[ "MIT" ]
1
2022-02-01T18:18:28.000Z
2022-02-01T18:18:28.000Z
webhook_telegram_bot/plugins/bitbucket/handlers.py
toolen/webhook-telegram-bot
c2ef4e7a6cf0f78c0341d3d645e516440596569f
[ "MIT" ]
null
null
null
"""This file contains Bitbucket request handlers.""" import json import logging from typing import Optional, cast from aiohttp import web from aiohttp.web_request import Request from webhook_telegram_bot.database.exceptions import ChatNotFound from webhook_telegram_bot.database.models import Chat, Webhook from webhoo...
33.871429
85
0.675664
08250c36e5d6a9b20e12789e4030e315e4770882
22,992
py
Python
Lib/test/test_urllib2_localnet.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_urllib2_localnet.py
idobatter/cpython
c7b03e7b57cedccb77e37f65f9bbcb82050c2bb5
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_urllib2_localnet.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
#!/usr/bin/env python3 import os import email import urllib.parse import urllib.request import http.server import unittest import hashlib from test import support threading = support.import_module('threading') try: import ssl except ImportError: ssl = None here = os.path.dirname(__file__) # Self-signed cert f...
38.25624
83
0.591858
08252ae9fb5cdfe22c02455152c18425cc13b4c4
436
py
Python
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/compat.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/compat.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/compat.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
try: from urllib.parse import urljoin except ImportError: from urlparse import urljoin try: import cPickle as pickle except ImportError: import pickle from pip._vendor.requests.packages.urllib3.response import HTTPResponse from pip._vendor.requests.packages.urllib3.util import is_fp_clo...
20.761905
72
0.731651
08254e724f4c3c8cac54ceef757ec7656469e6cc
1,652
py
Python
tasks/quickstart/quickstart.py
btb/python-samples
6ebd2b6391ab036e6645f89c2065738677b6dd4a
[ "Apache-2.0" ]
null
null
null
tasks/quickstart/quickstart.py
btb/python-samples
6ebd2b6391ab036e6645f89c2065738677b6dd4a
[ "Apache-2.0" ]
null
null
null
tasks/quickstart/quickstart.py
btb/python-samples
6ebd2b6391ab036e6645f89c2065738677b6dd4a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.714286
74
0.697337
08257dc7666599b33fabac7c1d9cc06728c38552
1,860
py
Python
datasets/augmentation.py
Chris10M/Lip2Speech
81a57364054c7fbbede7c6de15861e49d53419d0
[ "MIT" ]
3
2022-01-19T22:14:14.000Z
2022-03-23T04:21:57.000Z
datasets/augmentation.py
Chris10M/Lip2Speech
81a57364054c7fbbede7c6de15861e49d53419d0
[ "MIT" ]
1
2021-10-05T18:09:59.000Z
2021-10-05T18:09:59.000Z
datasets/augmentation.py
Chris10M/Lip2Speech
81a57364054c7fbbede7c6de15861e49d53419d0
[ "MIT" ]
3
2021-10-16T05:40:45.000Z
2022-03-18T06:05:49.000Z
import cv2 import numpy as np import torch import torch.nn as nn import torchvision.transforms.functional as TF class FaceAugmentation(nn.Module): def __init__(self, p=0.5): super(FaceAugmentation, self).__init__() self.p = p def forward(self, faces): if torch.rand(1) < self.p: ...
28.615385
140
0.567204
08259a139734194fcdb7b7adc5bbd552581b529c
42,922
py
Python
sfepy/solvers/ls.py
MarcusAndreasSvensson/sfepy
2702311ebb0693160fca5955a2a755b24aef58cb
[ "BSD-3-Clause" ]
null
null
null
sfepy/solvers/ls.py
MarcusAndreasSvensson/sfepy
2702311ebb0693160fca5955a2a755b24aef58cb
[ "BSD-3-Clause" ]
null
null
null
sfepy/solvers/ls.py
MarcusAndreasSvensson/sfepy
2702311ebb0693160fca5955a2a755b24aef58cb
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import time import hashlib import numpy as nm import warnings import scipy.sparse as sps import six from six.moves import range warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports from sfepy.solvers...
34.895935
86
0.556568
0825a73a423acad7051ba6ca4df73e2c2ed55f54
1,236
py
Python
exercises_algorithms_data_structures_big_o/algorithms_exercise/Algorithm 6 - Max and Min in a Unsorted Array/Max and Min in Unsorted Array.py
JMarcan/robot_motion_planning_maze
945799f604e57c604a3f5c2c124b70a05ad02b68
[ "MIT" ]
null
null
null
exercises_algorithms_data_structures_big_o/algorithms_exercise/Algorithm 6 - Max and Min in a Unsorted Array/Max and Min in Unsorted Array.py
JMarcan/robot_motion_planning_maze
945799f604e57c604a3f5c2c124b70a05ad02b68
[ "MIT" ]
1
2020-08-31T07:09:13.000Z
2020-08-31T16:38:59.000Z
exercises_algorithms_data_structures_big_o/algorithms_exercise/Algorithm 6 - Max and Min in a Unsorted Array/Max and Min in Unsorted Array.py
JMarcan/robot_motion_planning_maze
945799f604e57c604a3f5c2c124b70a05ad02b68
[ "MIT" ]
null
null
null
def get_min_max(ints): """ Return a tuple(min, max) out of list of unsorted integers. Time Complexity O(n) Space Complexity O(1) Args: ints(list): list of integers containing one or more integers """ # Test that ints is an not empty array if len(ints) == 0: return ...
26.297872
67
0.563916
0825bee1d762aa164f92e80534dae0c9e5880052
3,057
py
Python
robotMap.py
Raptacon/Robot-2020
460e135f2346bd18da89c3d4cba91de0373cd4d8
[ "MIT" ]
3
2019-12-12T16:55:25.000Z
2020-02-25T02:10:23.000Z
robotMap.py
Raptacon/Robot-2020
460e135f2346bd18da89c3d4cba91de0373cd4d8
[ "MIT" ]
62
2020-01-04T22:36:32.000Z
2021-01-15T23:19:14.000Z
robotMap.py
Raptacon/Robot-2020
460e135f2346bd18da89c3d4cba91de0373cd4d8
[ "MIT" ]
4
2019-12-05T02:24:22.000Z
2020-01-18T02:34:18.000Z
from utils import configMapper from wpilib import XboxController class RobotMap(): """ Robot map gathers all the hard coded values needed to interface with hardware into a single location """ def __init__(self): """intilize the robot map""" configFile, configPath = configMapper.find...
32.870968
86
0.69807
0825cf13ea1e495df42808383d3d60017df50c6d
131
py
Python
terrascript/data/stackpath/stackpath.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/stackpath/stackpath.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/stackpath/stackpath.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/stackpath/stackpath.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:27:49 UTC) __all__ = []
21.833333
73
0.755725
0825d8fc6bea008532fd7428236dfb569f2a471e
22,090
py
Python
tensorflow/python/kernel_tests/diag_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/kernel_tests/diag_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/diag_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.212687
80
0.547125
0825f5d6b987b4b23099ceb5a7d1039652f58993
30,661
py
Python
pipedream-fork/runtime/communication.py
animeshtrivedi/surf-ml
73102c69f303d5b289841e6116a607561e36595c
[ "Apache-2.0" ]
9
2020-10-21T11:40:51.000Z
2021-09-25T07:50:22.000Z
pipedream-fork/runtime/communication.py
animeshtrivedi/surf-ml
73102c69f303d5b289841e6116a607561e36595c
[ "Apache-2.0" ]
null
null
null
pipedream-fork/runtime/communication.py
animeshtrivedi/surf-ml
73102c69f303d5b289841e6116a607561e36595c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import threading import torch import torch.distributed as dist import sys import threadsafe_counter import threadsafe_queue from datetime import timedelta #added to source NCCL='nccl' GLOO='gloo' class CommunicationHandler(object):...
43.002805
145
0.607156
08260f4ea502b509eee5539c02818369a0159324
3,018
py
Python
pylib/xbdemolib/qt/binding.py
feenes/simplexbsamples
65da2e8ce3c7ff4d0ec01919d233a7acd3d47150
[ "MIT" ]
null
null
null
pylib/xbdemolib/qt/binding.py
feenes/simplexbsamples
65da2e8ce3c7ff4d0ec01919d233a7acd3d47150
[ "MIT" ]
null
null
null
pylib/xbdemolib/qt/binding.py
feenes/simplexbsamples
65da2e8ce3c7ff4d0ec01919d233a7acd3d47150
[ "MIT" ]
null
null
null
#!/usr/bin/env python # ############################################################################ # Copyright : (C) 2014 by Teledomic. All rights reserved # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal...
41.342466
79
0.600729
082635923982ceee866f865c1781bde58a230fe8
1,631
py
Python
setup.py
kjnh10/saspy
6d0e1dbc0933b9561394550f6ce42b0a31f9426d
[ "Apache-2.0" ]
1
2019-09-18T04:36:52.000Z
2019-09-18T04:36:52.000Z
setup.py
kjnh10/saspy
6d0e1dbc0933b9561394550f6ce42b0a31f9426d
[ "Apache-2.0" ]
null
null
null
setup.py
kjnh10/saspy
6d0e1dbc0933b9561394550f6ce42b0a31f9426d
[ "Apache-2.0" ]
1
2019-09-18T04:36:53.000Z
2019-09-18T04:36:53.000Z
#!/usr/bin/env python # # Copyright SAS Institute # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.979167
145
0.632741
08266d0fbbdba4abec4ae74db4cc1440d6e241ec
1,559
py
Python
trinity/utils/queues.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
14
2020-08-24T18:23:31.000Z
2021-11-04T14:11:04.000Z
trinity/utils/queues.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
19
2020-08-25T15:57:05.000Z
2021-07-07T00:49:45.000Z
trinity/utils/queues.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
7
2020-08-24T22:53:02.000Z
2022-03-28T18:51:48.000Z
from asyncio import ( # noqa: F401 Queue, ) from typing import ( Tuple, TypeVar, ) from eth_utils import ( ValidationError, ) TQueueItem = TypeVar('TQueueItem') async def queue_get_batch( queue: 'Queue[TQueueItem]', max_results: int = None) -> Tuple[TQueueItem, ...]: """ Wai...
29.415094
100
0.673509
0826856743c468a683a6ad66ced3212c2ea08b24
5,764
py
Python
batchglm/unit_test/glm_all/test_acc_sizefactors_glm_all.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
batchglm/unit_test/glm_all/test_acc_sizefactors_glm_all.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
batchglm/unit_test/glm_all/test_acc_sizefactors_glm_all.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
from typing import List import unittest import logging import batchglm.api as glm from batchglm.models.base_glm import _Estimator_GLM from .external import Test_AccuracySizeFactors_GLM, _Test_AccuracySizeFactors_GLM_Estim glm.setup_logging(verbosity="WARNING", stream="STDOUT") logger = logging.getLogger(__name__) ...
34.51497
115
0.647467
082693979c45280b6919f33be0bb9959e0589f9d
9,560
py
Python
sdk/python/kfp/components/_python_to_graph_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
sdk/python/kfp/components/_python_to_graph_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
sdk/python/kfp/components/_python_to_graph_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2019 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
44.465116
163
0.701674
0826961760994df5efd550172cb07ea30e60578e
1,162
py
Python
python/ray/rllib/offline/io_context.py
bmorier/ray
0aadf11c10e11245229023eeee15019866bf33ec
[ "Apache-2.0" ]
1
2020-12-07T14:55:45.000Z
2020-12-07T14:55:45.000Z
python/ray/rllib/offline/io_context.py
mengjin001/ray
0aa74fb1fd387ee5840e060f615b26f20788eee6
[ "Apache-2.0" ]
null
null
null
python/ray/rllib/offline/io_context.py
mengjin001/ray
0aa74fb1fd387ee5840e060f615b26f20788eee6
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from ray.rllib.offline.input_reader import SamplerInput from ray.rllib.utils.annotations import PublicAPI @PublicAPI class IOContext(object): """Attributes to pass to input / output class const...
29.794872
78
0.682444
0826e92a2550602e2f8dad97a5d58bd85aea5f61
105,783
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/api/networking_v1beta1_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/api/networking_v1beta1_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/api/networking_v1beta1_api.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401...
70.054967
1,390
0.698071
0827064d8c948651a6540d7222975396bd9822d7
11,696
py
Python
datasets/mmdet_tusimple/mmdet/ops/bbox_dis/bbox_dis.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
datasets/mmdet_tusimple/mmdet/ops/bbox_dis/bbox_dis.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
datasets/mmdet_tusimple/mmdet/ops/bbox_dis/bbox_dis.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
import torch def cal_S(points): """ #计算N个四边形的面积 points:torch.Tensor() with shape (N, 4, 2) """ x = points[..., 0] y = points[..., 1] x1 = x.roll(1, dims = 1) y1 = y.roll(1, dims = 1) # y1 = y[:, [1, 2, 3, 0]] # x1 = x[:, [1, 2, 3, 0]] return torch.sum((y*x1 - x*y1 )/2, 1...
39.248322
136
0.537021
08271a0f612b70b046ba0b877b3c1181d87a4e8b
1,673
py
Python
CS234/src/assignment2/starter_code/q5_train_atari_nature.py
aquadrop/assignments
144abc3bb1b6194f39502a71d897f8d40194fb79
[ "MIT" ]
3
2018-04-04T07:30:20.000Z
2018-04-04T08:52:38.000Z
CS234/src/assignment2/starter_code/q5_train_atari_nature.py
aquadrop/assignments
144abc3bb1b6194f39502a71d897f8d40194fb79
[ "MIT" ]
null
null
null
CS234/src/assignment2/starter_code/q5_train_atari_nature.py
aquadrop/assignments
144abc3bb1b6194f39502a71d897f8d40194fb79
[ "MIT" ]
null
null
null
import gym from assignment2.starter_code.utils.preprocess import greyscale from assignment2.starter_code.utils.wrappers import PreproWrapper, MaxAndSkipEnv from assignment2.starter_code.q1_schedule import LinearExploration, LinearSchedule from assignment2.starter_code.q3_nature import NatureQN from assignment2...
38.022727
86
0.745368
08271ccf6d05289c6e401bc1267a0e20287fab99
1,631
py
Python
src/python/pants/option/optionable_test.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/option/optionable_test.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/option/optionable_test.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import unittest from pants.option.optionable import Optionable class OptionableTest(unittest.TestCase): def test_optionable(self) -> None: class NoScope(Optionable): ...
27.644068
73
0.638872
08273c92b6b826f66e672986f0adf7df717c0dd3
5,749
py
Python
st2client/tests/unit/test_formatters.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2client/tests/unit/test_formatters.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2client/tests/unit/test_formatters.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
39.108844
99
0.671421
08276eaa8c851968c176a4314bd965a39072a649
501
py
Python
aurora/bag_transfer/rights/urls.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
null
null
null
aurora/bag_transfer/rights/urls.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
null
null
null
aurora/bag_transfer/rights/urls.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from bag_transfer.rights.views import ( RightsAPIAdminView, RightsDetailView, RightsManageView, ) app_name = 'rights' urlpatterns = [ url(r"^add/$", RightsManageView.as_view(), name="add"), url(r"^(?P<pk>\d+)/$", RightsDetailView.as_view(), name="detail"),...
27.833333
88
0.630739
082774081699dc594f405e5479feab812193ed57
6,218
py
Python
CLEVER/process_log.py
minimario/CNN-Cert
0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c
[ "Apache-2.0" ]
54
2020-09-09T12:43:43.000Z
2022-03-17T17:31:19.000Z
robustness/CLEVER/process_log.py
Justobe/DRTest
85c3c9b2a46cafa7184130f2596c5f9eb3b20bff
[ "MIT" ]
9
2019-04-26T15:33:21.000Z
2022-02-17T13:20:47.000Z
robustness/CLEVER/process_log.py
Justobe/DRTest
85c3c9b2a46cafa7184130f2596c5f9eb3b20bff
[ "MIT" ]
20
2018-07-30T05:54:35.000Z
2022-03-31T07:08:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ process_log.py process log files generated by clever.py Copyright (C) 2017-2018, IBM Corp. Copyright (C) 2017, Lily Weng <twweng@mit.edu> and Huan Zhang <ecezhang@ucdavis.edu> This program is licenced under the Apache 2.0 licence, contained in the L...
37.684848
180
0.526214
0827ca246d93dc51ecef66237eb7196ef587c643
5,123
py
Python
pkg/processor/language/_language.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/processor/language/_language.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/processor/language/_language.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
import logging from pkg._exception import ValidationFailedException from pkg.command.azcli_cmd import AzCliCommand from pkg.constant import Constant from pkg.creator._config._azure_fn_config_creator import FunctionAppConfigCreator from pkg.creator._creator import Creator from pkg.creator.type._creator_type import Crea...
46.572727
106
0.741753
0827de61da1a4887086032b128beacee3e397e4f
898
py
Python
setup.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
setup.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
setup.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys from setuptools import setup, find_packages if sys.version_info < (3, 6): sys.exit('Sorry, Python < 3.6 is not supported') # http://stackoverflow.com/questions/6344076/differences-between-distribute-distutils-setuptools-and-distutils2 # how to get version info into the project e...
29.933333
111
0.690423
0827e802fb113d13e258379f5f37bc9a4390d74a
1,660
py
Python
repost/api/routes/auth.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
9
2020-02-03T11:17:06.000Z
2021-06-15T13:20:34.000Z
repost/api/routes/auth.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
40
2020-02-03T11:23:59.000Z
2020-05-19T08:05:41.000Z
repost/api/routes/auth.py
pckv/fastapi-backend
0f561528086ac3fdcabbf9efeac888421eeb66de
[ "MIT" ]
1
2020-03-11T02:47:40.000Z
2020-03-11T02:47:40.000Z
"""Router for authorization.""" from base64 import b64decode from fastapi import APIRouter, Depends, HTTPException, status, Header from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from repost import crud, config from repost.api.resolvers import get_db from repost.api.schemas i...
44.864865
104
0.753614
0827ffa4101b033c4670c865ce2b5357ba86f724
2,283
py
Python
docs/examples/advertising.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
198
2016-08-04T05:45:38.000Z
2022-02-17T08:30:58.000Z
docs/examples/advertising.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
13
2018-02-04T14:16:16.000Z
2020-10-09T02:16:24.000Z
docs/examples/advertising.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
57
2016-08-08T04:24:04.000Z
2022-01-24T08:43:02.000Z
from blesuite.connection_manager import BLEConnectionManager import blesuite.utils.gap_utils as gap_utils import gevent import time with BLEConnectionManager(0, "peripheral") as connection_manager: local_name = "Name Foo2" complete_name = "Foo4" # generate integer representation of advertisement data fla...
43.075472
111
0.744634
08280ac7cea27dad5bc39836138edc22d06e71ec
168
py
Python
tests/test_modeling_enc_t5.py
monologg/EncT5
7008110d6a8ffcb09f3d71881d6d9c647bc384e3
[ "Apache-2.0" ]
34
2022-01-22T06:50:55.000Z
2022-03-21T09:00:47.000Z
tests/test_modeling_enc_t5.py
monologg/EncT5
7008110d6a8ffcb09f3d71881d6d9c647bc384e3
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_enc_t5.py
monologg/EncT5
7008110d6a8ffcb09f3d71881d6d9c647bc384e3
[ "Apache-2.0" ]
null
null
null
from enc_t5 import EncT5ForSequenceClassification def test_load_model_enc_t5(): EncT5ForSequenceClassification.from_pretrained("patrickvonplaten/t5-tiny-random")
28
85
0.857143
08281db560b554c4bd85022d15978af79421c75e
4,748
py
Python
scraper/graph/graph.py
zli117/Web-Scraper
328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7
[ "MIT" ]
1
2019-03-08T10:46:52.000Z
2019-03-08T10:46:52.000Z
scraper/graph/graph.py
zli117/Web-Scraper
328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7
[ "MIT" ]
null
null
null
scraper/graph/graph.py
zli117/Web-Scraper
328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7
[ "MIT" ]
null
null
null
import importlib import json from typing import Any, Dict, List, Optional, Tuple from scraper.graph.base_objects import Edge, EntityType, NodeBase, Url class Graph: """ The Graph structure """ def __init__(self): self._nodes: List[NodeBase] = [] self._edges: List[Edge] = [] s...
29.128834
78
0.542755
08283167c3858ec02e805a487ec3a227b8ceb4c4
2,602
py
Python
app/tests/test_auth.py
jmusila/Questioner-v2
54110d8233311862ccfadb32b5ced557c33c4a0f
[ "MIT" ]
1
2019-02-13T10:02:16.000Z
2019-02-13T10:02:16.000Z
app/tests/test_auth.py
jmusila/Questioner-v2
54110d8233311862ccfadb32b5ced557c33c4a0f
[ "MIT" ]
6
2019-01-21T19:18:14.000Z
2019-01-24T19:46:40.000Z
app/tests/test_auth.py
jonathanmusila/Questioner-v2
54110d8233311862ccfadb32b5ced557c33c4a0f
[ "MIT" ]
null
null
null
import unittest import json #local imports from .base_test import Settings login_url = "/api/v2/auth/login" signup_url = "/api/v2/auth/signup" class TestUser(Settings): register ={ "lastname": "musila", "firstname": "jonathan", "email": "test@gmail.com", "password": "123jo...
34.236842
106
0.603766
08284bd3a117f9b5108d404b7313631c1c2fc806
5,329
py
Python
pca9685/app.py
lvaylet/diy-robocars
d0962a1f086b59416948df7ddd0f1f1e89cd7a1b
[ "Apache-2.0" ]
null
null
null
pca9685/app.py
lvaylet/diy-robocars
d0962a1f086b59416948df7ddd0f1f1e89cd7a1b
[ "Apache-2.0" ]
null
null
null
pca9685/app.py
lvaylet/diy-robocars
d0962a1f086b59416948df7ddd0f1f1e89cd7a1b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Use the Adafruit PCA9685 PWM controller library to steer the wheels of the RC car from left to right. """ import logging import os import time import Adafruit_PCA9685 import serial import helpers # region Logging logging_level = logging.DEBUG if 'DEBUG' in os.env...
40.067669
119
0.646087
082855999acd781bf471a5ed953726e17e1dd249
2,481
gyp
Python
testing/android/on_device_instrumentation.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
27
2016-04-27T01:02:03.000Z
2021-12-13T08:53:19.000Z
testing/android/on_device_instrumentation.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
2
2017-03-09T09:00:50.000Z
2017-09-21T15:48:20.000Z
testing/android/on_device_instrumentation.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
17
2016-04-27T02:06:39.000Z
2019-12-18T08:07:00.000Z
# Copyright 2015 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. { 'conditions': [ ['OS=="android"', { 'variables' : { 'driver_apk_name': 'OnDeviceInstrumentationDriver', 'driver_apk_path': '<(P...
30.62963
93
0.457074
08285702373f416298a3b1cc1e12ffa613d8ed39
2,829
py
Python
test3/test_PythonQueryParser.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
5
2017-03-17T04:35:39.000Z
2021-04-06T07:20:04.000Z
test3/test_PythonQueryParser.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
test3/test_PythonQueryParser.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
1
2018-02-19T13:17:14.000Z
2018-02-19T13:17:14.000Z
# ==================================================================== # 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 re...
37.223684
105
0.662425
082866135dd7ddc33145e3d48ea5a93ae1868776
1,602
py
Python
findContinuousSequence.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
1
2019-08-29T01:12:47.000Z
2019-08-29T01:12:47.000Z
findContinuousSequence.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
findContinuousSequence.py
passionzhan/LeetCode
c4d33b64b9da15ca7a9b0d41e645d86a697694fe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @project : LeetCode @File : findContinuousSequence.py @Contact : 9824373@qq.com @Desc : 输入一个正整数 target ,输出所有和为 target 的连续正整数序列(至少含有两个数)。 序列内的数字由小到大排列,不同序列按照首个数字从小到大排列。   示例 1: 输入:target = 9 输出:[[2,3,4],[4,5]] 示例 2: ...
24.272727
84
0.443196
08287f8821194784c84dcb6ef135ee47840c891c
3,643
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_epd/mcp_sram.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_epd/mcp_sram.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_epd/mcp_sram.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2018 Dean Miller for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_epd.mcp_sram` - Adafruit MCP SRAM - sram driver ==================================================================================== CircuitPython driver for Microchip SRAM chips * Author(s): Dean Miller "...
33.118182
84
0.606368
0828a4b103c79770b846fde6611b26596f6ab168
5,590
py
Python
method/write.py
jingslaw/ab-crystal-library
aa60bbc79b3f1fb023dbf1cf9e6dac4517a5feaf
[ "MIT" ]
9
2019-04-20T15:41:27.000Z
2021-12-31T13:19:59.000Z
method/write.py
jingslaw/ab-crystal-library
aa60bbc79b3f1fb023dbf1cf9e6dac4517a5feaf
[ "MIT" ]
null
null
null
method/write.py
jingslaw/ab-crystal-library
aa60bbc79b3f1fb023dbf1cf9e6dac4517a5feaf
[ "MIT" ]
null
null
null
############################### # This file is part of PyLaDa. # # Copyright (C) 2013 National Renewable Energy Lab # # PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit # large numbers of jobs on supercomputers. It provides a python interface to physical input, suc...
41.102941
103
0.605009
0828ba5ef39b60881376a5688b68c1171f671bc3
2,847
py
Python
software/authbox/gpio_buzzer.py
brianredbeard/makerspace-auth
79fab40be5455e29f5d596a44d0c4978f9112109
[ "Apache-2.0" ]
1
2019-05-29T17:02:09.000Z
2019-05-29T17:02:09.000Z
software/authbox/gpio_buzzer.py
brianredbeard/makerspace-auth
79fab40be5455e29f5d596a44d0c4978f9112109
[ "Apache-2.0" ]
null
null
null
software/authbox/gpio_buzzer.py
brianredbeard/makerspace-auth
79fab40be5455e29f5d596a44d0c4978f9112109
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2018 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...
28.757576
81
0.682473
0828caba7c07b48d4ffd4dcf6b330bb2056541fe
1,908
py
Python
merger.py
odissei-data/py_semantic_enrichment
46d5df05b83910fbb1814f333588c97444bfad3b
[ "MIT" ]
null
null
null
merger.py
odissei-data/py_semantic_enrichment
46d5df05b83910fbb1814f333588c97444bfad3b
[ "MIT" ]
null
null
null
merger.py
odissei-data/py_semantic_enrichment
46d5df05b83910fbb1814f333588c97444bfad3b
[ "MIT" ]
null
null
null
from SPARQLWrapper import SPARQLWrapper, JSON from main import main import googletrans def translator(xml): stdict = xml stdict_translated = dict() translator = googletrans.Translator() for key, value in stdict.items(): if 'lang' in key: language = value[0] else: ...
28.909091
82
0.568658
082901470f7f9fd744ff392da559a32e14744e58
34,167
py
Python
pypeit/spectrographs/lbt_mods.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/spectrographs/lbt_mods.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/spectrographs/lbt_mods.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Module for LBT/MODS specific methods. .. include:: ../include/links.rst """ import glob import numpy as np from astropy.io import fits from pypeit import msgs from pypeit import telescopes from pypeit import io from pypeit.core import framematch from pypeit.par import pypeitpar from pypeit.spectrographs import sp...
38.476351
117
0.572219
08290a65443dbd7eb930d5cab0fb08a4ce8b1bfb
1,006
py
Python
components/contrib/_converters/ApacheParquet/from_CSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/contrib/_converters/ApacheParquet/from_CSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/contrib/_converters/ApacheParquet/from_CSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
from kfp.components import InputPath, OutputPath, create_component_from_func def convert_csv_to_apache_parquet( data_path: InputPath('CSV'), output_data_path: OutputPath('ApacheParquet'), ): '''Converts CSV table to Apache Parquet. [Apache Parquet](https://parquet.apache.org/) Annotations: ...
32.451613
166
0.698807
08290b5b8b7bd930c816198402753d66fb8b1692
1,933
py
Python
model/pspnet2/cil.pspnet2.R50/split_train_val.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
model/pspnet2/cil.pspnet2.R50/split_train_val.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
model/pspnet2/cil.pspnet2.R50/split_train_val.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
2
2020-07-31T14:40:49.000Z
2020-07-31T17:52:30.000Z
import os import numpy as np import argparse import glob parser = argparse.ArgumentParser() parser.add_argument('--trainall', default=False, action='store_true') parser.add_argument('-v', '--verbose', default=True, action='store_true') parser.add_argument('-s', '--size', default=0.9, action='store', type=int) args = ...
27.225352
80
0.638386
08290e54fc97b5d2146d9ed10ab256c35d286b20
16,245
py
Python
trame/__init__.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
trame/__init__.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
trame/__init__.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
import os import sys import inspect from pywebvue import App from trame.utils.version import get_version __version__ = get_version() NEXT_TRIGGER_ID = 0 TRIGGER_MAP = {} NEXT_APP_ID = 0 APPS = {} APP_STACK = [] APP = None BASE_DIRECTORY = None def base_directory(): global BASE_DIRECTORY if BASE_DIRECTOR...
28.252174
139
0.582333