hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
e2c2694c299d4cbc5539c1ed1698c657e667dc8d
1,504
py
Python
tests/pages/inputs/date_selector_page.py
rescbr/aws-device-farm-appium-python-tests-for-ios-sample-app
e006bfc830fa2dc27fe5ba630b662cd022a837c4
[ "Apache-2.0" ]
9
2018-02-18T23:24:43.000Z
2022-03-24T09:39:45.000Z
tests/pages/inputs/date_selector_page.py
rescbr/aws-device-farm-appium-python-tests-for-ios-sample-app
e006bfc830fa2dc27fe5ba630b662cd022a837c4
[ "Apache-2.0" ]
null
null
null
tests/pages/inputs/date_selector_page.py
rescbr/aws-device-farm-appium-python-tests-for-ios-sample-app
e006bfc830fa2dc27fe5ba630b662cd022a837c4
[ "Apache-2.0" ]
6
2017-06-12T17:59:46.000Z
2017-11-07T14:25:11.000Z
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0 # # or in the "license" file accompan...
34.181818
88
0.698138
8bd448c5b4b436def859016e7201e8a689b0abd2
2,415
py
Python
ci/deploy/deploy_util.py
sungchun12/materialize
7282293960368019d583163b2f06545b1379c0a1
[ "MIT" ]
1
2021-09-05T03:07:46.000Z
2021-09-05T03:07:46.000Z
ci/deploy/deploy_util.py
sungchun12/materialize
7282293960368019d583163b2f06545b1379c0a1
[ "MIT" ]
101
2020-04-21T05:44:38.000Z
2022-03-27T22:22:56.000Z
ci/deploy/deploy_util.py
mjibson/materialize
09309bcdc3719642b45b3d1e214e5b5427d3a4c6
[ "MIT" ]
null
null
null
# Copyright Materialize, Inc. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed ...
31.363636
82
0.645963
b1a109f382367e4c6f0f29a1bfffe9988f685dce
87
py
Python
website/home/models/__init__.py
SebastiaanZ/minigigscyclingteam
6c8c4f7ae41a5b01a551c592dc81fd37fd4f686e
[ "MIT" ]
null
null
null
website/home/models/__init__.py
SebastiaanZ/minigigscyclingteam
6c8c4f7ae41a5b01a551c592dc81fd37fd4f686e
[ "MIT" ]
9
2020-01-25T12:24:43.000Z
2022-03-12T00:18:38.000Z
website/home/models/__init__.py
SebastiaanZ/minigigscyclingteam
6c8c4f7ae41a5b01a551c592dc81fd37fd4f686e
[ "MIT" ]
null
null
null
"""Home app models module.""" from .article import Article __all__ = [ Article, ]
12.428571
29
0.655172
4f4a5de51c1fd94365daefb1f9e45dc9ba54a2b2
1,465
py
Python
padog/__init__.py
explore2019-hub/py-apple-quadruped-robot
52061e0772e53ae4c3f9c59bd65f85c703278f14
[ "Apache-2.0" ]
null
null
null
padog/__init__.py
explore2019-hub/py-apple-quadruped-robot
52061e0772e53ae4c3f9c59bd65f85c703278f14
[ "Apache-2.0" ]
null
null
null
padog/__init__.py
explore2019-hub/py-apple-quadruped-robot
52061e0772e53ae4c3f9c59bd65f85c703278f14
[ "Apache-2.0" ]
null
null
null
''' Copyright Deng (ream_d@yeah.net) Py-apple dog project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
30.520833
256
0.659386
c16404f6961b888c0766d9ddeee9bafa846c6975
5,714
py
Python
francoralite/apps/francoralite_api/tests/test_collection_location.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
2
2021-07-26T08:29:26.000Z
2021-07-26T08:29:27.000Z
francoralite/apps/francoralite_api/tests/test_collection_location.py
lluc/telemeta-integration
c2fb116471235674eae597abac84a7113e0f7c82
[ "BSD-3-Clause" ]
167
2018-10-20T14:34:46.000Z
2021-06-01T10:40:55.000Z
francoralite/apps/francoralite_api/tests/test_collection_location.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
1
2021-06-06T12:16:49.000Z
2021-06-06T12:16:49.000Z
# -*- coding: utf-8 -*- # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # Authors: Luc LEGER / Coopérative ARTEFACTS <artefacts.lle@gmail.com> """ CollectionLocation tests """ import factory import pytest import sys i...
32.282486
78
0.648407
77f14437f1de7c59cd16b4703afc24d0d677464a
8,887
py
Python
tests/test_types/test_array.py
dtcaciuc/nitrous
9ed63c13dbdc1b8b1880e49bbcc6fa442612fe71
[ "MIT" ]
1
2020-11-27T04:08:49.000Z
2020-11-27T04:08:49.000Z
tests/test_types/test_array.py
dtcaciuc/nitrous
9ed63c13dbdc1b8b1880e49bbcc6fa442612fe71
[ "MIT" ]
null
null
null
tests/test_types/test_array.py
dtcaciuc/nitrous
9ed63c13dbdc1b8b1880e49bbcc6fa442612fe71
[ "MIT" ]
null
null
null
import unittest import ctypes from nitrous.module import module from nitrous.function import function from nitrous.types import Long from nitrous.types.array import Array, FastSlice, Slice, Any try: import numpy as np except ImportError: np = None class ArrayTestsBase(object): def setUp(self): ...
29.137705
92
0.528637
05410767bddd3b97f797542989fa9e2e3f51cf82
11,122
py
Python
h2o-bindings/bin/custom/python/gen_isolationforest.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
1
2020-10-21T05:09:23.000Z
2020-10-21T05:09:23.000Z
h2o-bindings/bin/custom/python/gen_isolationforest.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
1
2020-05-10T15:33:07.000Z
2020-05-10T15:33:07.000Z
h2o-bindings/bin/custom/python/gen_isolationforest.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
1
2020-04-17T13:06:26.000Z
2020-04-17T13:06:26.000Z
def update_param(name, param): if name == 'stopping_metric': param['values'] = ['AUTO', 'anomaly_score'] return param return None # param untouched doc = dict( __class__=""" Builds an Isolation Forest model. Isolation Forest algorithm samples the training frame and in each iteration buil...
48.356522
149
0.620572
75309e3ecb73eedca957a0c7b984afd6d35e707b
6,744
py
Python
examples/pwr_run/checkpointing/socket_short/max_pwr/job24.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/socket_short/max_pwr/job24.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/socket_short/max_pwr/job24.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
30.515837
118
0.702995
a232aa97a2e0fd1037bf7a88f6341a5155e66c5c
4,148
py
Python
CONUS/Cloud_Cover/analysis_cloud_coverage_at_altitude.py
peterdsharpe/Wind_Analysis
7df9c34b0a355a3405ea6cecede0641e86b5b3ac
[ "MIT" ]
1
2021-09-18T21:59:40.000Z
2021-09-18T21:59:40.000Z
CONUS/Cloud_Cover/analysis_cloud_coverage_at_altitude.py
peterdsharpe/Wind_Analysis
7df9c34b0a355a3405ea6cecede0641e86b5b3ac
[ "MIT" ]
null
null
null
CONUS/Cloud_Cover/analysis_cloud_coverage_at_altitude.py
peterdsharpe/Wind_Analysis
7df9c34b0a355a3405ea6cecede0641e86b5b3ac
[ "MIT" ]
1
2020-09-11T15:21:23.000Z
2020-09-11T15:21:23.000Z
import numpy as np from scipy import interpolate try: from .process_data import data except ImportError: from process_data import data import matplotlib.pyplot as plt from matplotlib import style, ticker import seaborn as sns from labellines import labelLines from scipy import stats sns.set() # style.use("se...
25.292683
90
0.627049
54a29eb33112ed55dc59387dcce2c245f166091d
2,619
py
Python
zerver/management/commands/realm_emoji.py
Supermanu/zulip
26f6d708c2e30cfe50d9d61031edb759e8117596
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/realm_emoji.py
Supermanu/zulip
26f6d708c2e30cfe50d9d61031edb759e8117596
[ "Apache-2.0" ]
15
2020-06-05T18:44:15.000Z
2022-03-11T23:26:03.000Z
zerver/management/commands/realm_emoji.py
Supermanu/zulip
26f6d708c2e30cfe50d9d61031edb759e8117596
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from argparse import RawTextHelpFormatter from typing import Any from argparse import ArgumentParser from django.core.management.base import BaseCommand, CommandParser from zerver.lib.actions import check_add_realm_emoji, do_remove_realm_emo...
37.956522
89
0.601756
21b822d4a5b2c98457465adc77513245e9c9b241
1,722
py
Python
SimpleCV/examples/manipulation/RotationExample.py
tpltnt/SimpleCV
9fd75457cce5fd111c4d251b1076b9447fa4f1a2
[ "BSD-3-Clause" ]
8
2016-12-11T20:28:03.000Z
2022-02-11T21:15:26.000Z
SimpleCV/examples/manipulation/RotationExample.py
tpltnt/SimpleCV
9fd75457cce5fd111c4d251b1076b9447fa4f1a2
[ "BSD-3-Clause" ]
19
2016-11-24T20:28:18.000Z
2017-03-18T16:40:40.000Z
SimpleCV/examples/manipulation/RotationExample.py
tpltnt/SimpleCV
9fd75457cce5fd111c4d251b1076b9447fa4f1a2
[ "BSD-3-Clause" ]
3
2016-11-27T22:29:08.000Z
2019-12-04T00:35:32.000Z
#!/usr/bin/python ''' This example shows how to perform various rotations and warps on images and put back into a display. ''' from __future__ import print_function print(__doc__) from SimpleCV import * font_size = 30 sleep_for = 3 #seconds to sleep for draw_color = Color.RED while True: image = Image("orson_we...
33.764706
168
0.706156
5b09b78a2e90288352d2716e81db8fb76d190794
227
py
Python
ConvModel/encoder/mobilenet.py
YuHe0108/cvmodule
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
[ "Apache-2.0" ]
null
null
null
ConvModel/encoder/mobilenet.py
YuHe0108/cvmodule
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
[ "Apache-2.0" ]
null
null
null
ConvModel/encoder/mobilenet.py
YuHe0108/cvmodule
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf import tensorflow.keras as keras from tensorflow.keras import layers from tensorflow.keras import backend as K from tensorflow.keras.applications import mobilenet, mobilenet_v2
18.916667
66
0.792952
33623606afbebfe3218ef05708fe92919f260645
1,896
py
Python
tests/cli/test_stack_purge.py
cdk-comp/WordOps
d1f0ccc7202d43c90ee7640f7acd4b7c3c158ee1
[ "MIT" ]
1
2019-07-13T10:25:15.000Z
2019-07-13T10:25:15.000Z
tests/cli/test_stack_purge.py
umahmadx/WordOps
f7360687f379bdd711c51b746dfa358317a880bd
[ "MIT" ]
null
null
null
tests/cli/test_stack_purge.py
umahmadx/WordOps
f7360687f379bdd711c51b746dfa358317a880bd
[ "MIT" ]
2
2021-01-02T07:49:51.000Z
2022-03-26T15:58:50.000Z
from wo.utils import test from wo.cli.main import get_test_app class CliTestCaseStack(test.WOTestCase): def test_wo_cli(self): self.app.setup() self.app.run() self.app.close() def test_wo_cli_stack_purge_web(self): self.app = get_test_app(argv=['stack', 'purge', '--web']) ...
29.169231
72
0.589135
ed9ae4ab4cc9cdc9b9ffea0e6cbb02e1e45fb600
2,823
py
Python
run_this_image_mnist1.py
PopGalacticHistory/imagewalker
dd151d0698472aebdde0487a364c56fed048bb61
[ "MIT" ]
2
2021-04-28T13:33:45.000Z
2021-11-09T14:31:09.000Z
run_this_image_mnist1.py
PopGalacticHistory/imagewalker
dd151d0698472aebdde0487a364c56fed048bb61
[ "MIT" ]
null
null
null
run_this_image_mnist1.py
PopGalacticHistory/imagewalker
dd151d0698472aebdde0487a364c56fed048bb61
[ "MIT" ]
1
2021-03-07T13:25:59.000Z
2021-03-07T13:25:59.000Z
from image_env_mnist1 import Image_env1 from RL_brain_b import DeepQNetwork import numpy as np import time BMP_MODE = True def my_print_array(a): uu='' for ii in range(a.shape[0]): for jj in range(a.shape[1]): uu +=a[ii,jj] uu += '\n' print(uu) def run_img(): s...
34.851852
158
0.533475
53546e716e272cc655ca3d990044816ff06ab903
12,085
py
Python
trees/redblacktree.py
shivam3009/fun-with-algorithms
e297701fd37d51abc51d4ed5e5e2a14689c2af15
[ "MIT" ]
null
null
null
trees/redblacktree.py
shivam3009/fun-with-algorithms
e297701fd37d51abc51d4ed5e5e2a14689c2af15
[ "MIT" ]
null
null
null
trees/redblacktree.py
shivam3009/fun-with-algorithms
e297701fd37d51abc51d4ed5e5e2a14689c2af15
[ "MIT" ]
null
null
null
""" # Structure of a red black tree 1. A node is either red or black. 2. The root is black. 3. All leaves are black. 4. If a node is red, then both its children are black. 5. Every path from a given node to a leaf node has the same number of black nodes. """ class Node: """ Implementaion of red black tree n...
31.30829
78
0.484154
d0d6d173ffa3714962402acbaf084d32bd6b26b8
8
py
Python
asd asd as d/asd asd asd/asd.py
admin-greyatom/test-test
dba262d0e546f297d7f29de771fde47f74c369a4
[ "MIT" ]
null
null
null
asd asd as d/asd asd asd/asd.py
admin-greyatom/test-test
dba262d0e546f297d7f29de771fde47f74c369a4
[ "MIT" ]
null
null
null
asd asd as d/asd asd asd/asd.py
admin-greyatom/test-test
dba262d0e546f297d7f29de771fde47f74c369a4
[ "MIT" ]
null
null
null
as dasd
4
7
0.75
25c7e020603146ea6d1e068e0ee914845c60b5b6
991
py
Python
code/utils.py
MindMimicLabs/model-template
a1000a51ec9e9d9483677713b1a08af9748a76f9
[ "MIT" ]
null
null
null
code/utils.py
MindMimicLabs/model-template
a1000a51ec9e9d9483677713b1a08af9748a76f9
[ "MIT" ]
null
null
null
code/utils.py
MindMimicLabs/model-template
a1000a51ec9e9d9483677713b1a08af9748a76f9
[ "MIT" ]
null
null
null
import pathlib from typeguard import typechecked # makes sure our parameters are good @typechecked def assert_folder_is_readable(folder: pathlib.Path) -> None: if not folder.exists(): raise FileNotFoundError(str(folder)) elif not folder.is_dir(): raise NotADirectoryError(str(folder)) @typecheck...
31.967742
61
0.705348
bd796a20d90edb458cd9fcc8f4283ea985445d24
4,676
py
Python
sdk/yapily/models/other_residency_type.py
yapily/yapily-sdk-python
c09930c44e8795e270e2846a2c0fb783200df76a
[ "MIT" ]
11
2018-05-18T14:38:49.000Z
2021-09-08T13:24:37.000Z
sdk/yapily/models/other_residency_type.py
yapily/yapily-sdk-python
c09930c44e8795e270e2846a2c0fb783200df76a
[ "MIT" ]
5
2019-10-23T15:06:33.000Z
2021-08-03T21:18:50.000Z
sdk/yapily/models/other_residency_type.py
yapily/yapily-sdk-python
c09930c44e8795e270e2846a2c0fb783200df76a
[ "MIT" ]
8
2019-04-27T00:02:18.000Z
2021-11-21T02:54:12.000Z
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 The version of the OpenAPI document: 1.154.0 Generated by: https://openapi-generator.tech """ import pprint impor...
27.028902
158
0.576775
b6e5db511e6dce419ab99aa952b672cf6d3075b8
3,870
py
Python
app/recipe/tests/test_tags_api.py
jflan91/Recipe-API
2967814628134e74dfed9812c7c0ab98fd2e5860
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
jflan91/Recipe-API
2967814628134e74dfed9812c7c0ab98fd2e5860
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
jflan91/Recipe-API
2967814628134e74dfed9812c7c0ab98fd2e5860
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag, Recipe from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class ...
30.472441
71
0.624806
8dbf641c5494bd53a25f00da7ac5c7e49b85b6cd
2,083
py
Python
tests/test_document_smart_insert.py
p32929/mongoengine_mate-project
960e947c4cfbbf4c0ccc34d296a2517d6abd28d4
[ "MIT" ]
6
2020-01-06T07:39:30.000Z
2021-09-16T04:10:57.000Z
tests/test_document_smart_insert.py
p32929/mongoengine_mate-project
960e947c4cfbbf4c0ccc34d296a2517d6abd28d4
[ "MIT" ]
null
null
null
tests/test_document_smart_insert.py
p32929/mongoengine_mate-project
960e947c4cfbbf4c0ccc34d296a2517d6abd28d4
[ "MIT" ]
1
2022-03-08T03:41:11.000Z
2022-03-08T03:41:11.000Z
# -*- coding: utf-8 -*- import pytest import sys from pymongo.database import Database import mongoengine from mongoengine_mate import ExtendedDocument py_ver = "%s.%s" % (sys.version_info.major, sys.version_info.minor) user_col_name = "user_%s" % py_ver class User(ExtendedDocument): user_id = mongoengine.IntF...
23.942529
82
0.663946
c3063a20bd3c373b438ffd5a9a032deda7c12b88
62
py
Python
Snippets/code-gym-1/fifty_to_sixty.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
Snippets/code-gym-1/fifty_to_sixty.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
Snippets/code-gym-1/fifty_to_sixty.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
count = 50 while count <= 60: print(count) count += 1
12.4
18
0.564516
b618c87565f8e6fc4f443bc57c9aaf17fe53786c
5,402
py
Python
moodle/mod/lesson/lesson.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
moodle/mod/lesson/lesson.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
moodle/mod/lesson/lesson.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
from typing import List, Optional from moodle import MoodleWarning, ResponsesFactory from moodle.attr import dataclass, field @dataclass class File: """File Args: filename (Optional[str]): File name. filepath (Optional[str]): File path. filesize (Optional[int]): File size. fil...
37.776224
107
0.682525
999cb728eef9f11df6936359f2166c9102c8f9f2
3,511
py
Python
oauth2client/contrib/xsrfutil.py
GFXpulse/oauth2client
411b4a97e1a652bc3ef20cab87ea9cc6c9d292e7
[ "Apache-2.0" ]
null
null
null
oauth2client/contrib/xsrfutil.py
GFXpulse/oauth2client
411b4a97e1a652bc3ef20cab87ea9cc6c9d292e7
[ "Apache-2.0" ]
null
null
null
oauth2client/contrib/xsrfutil.py
GFXpulse/oauth2client
411b4a97e1a652bc3ef20cab87ea9cc6c9d292e7
[ "Apache-2.0" ]
1
2019-11-13T12:39:17.000Z
2019-11-13T12:39:17.000Z
# Copyright 2014 the Melange 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 wr...
34.087379
92
0.690971
b950168cccb4a2ded47e872a5d48f262581e99d9
3,457
py
Python
utils.py
paolo-05/discord-bot-dashboard-python
108735bd0a838295800c14360176bbd5924606cc
[ "Apache-2.0" ]
null
null
null
utils.py
paolo-05/discord-bot-dashboard-python
108735bd0a838295800c14360176bbd5924606cc
[ "Apache-2.0" ]
null
null
null
utils.py
paolo-05/discord-bot-dashboard-python
108735bd0a838295800c14360176bbd5924606cc
[ "Apache-2.0" ]
null
null
null
import requests import config def get_token(code: str): data = { 'client_id': config.CLIENT_ID, 'client_secret': config.CLIENT_SECRET, 'grant_type': 'authorization_code', 'code': code, 'redirect_uri': config.REDIRECT_URI, 'scope': 'identify guilds' } headers...
31.144144
262
0.633497
faa82d01c3c35fc32f00ba7526999c67015a65f7
4,459
py
Python
trainer.py
rogerhcheng/tiny-faces-pytorch
959ca952c30ea78b04d6b84088b027faea600cac
[ "MIT" ]
154
2018-08-30T01:27:52.000Z
2022-03-21T12:09:55.000Z
trainer.py
sa-y-an/tiny-faces-pytorch
a3fc6223d01c0589c45e04d62f613af2876c3695
[ "MIT" ]
24
2018-09-11T12:09:03.000Z
2022-01-13T00:49:47.000Z
trainer.py
sa-y-an/tiny-faces-pytorch
a3fc6223d01c0589c45e04d62f613af2876c3695
[ "MIT" ]
44
2018-08-09T05:49:14.000Z
2022-01-24T18:11:20.000Z
from pathlib import Path import numpy as np import torch from torch.nn import functional as nnfunc from torchvision import transforms from models.utils import get_bboxes from utils.nms import nms def print_state(idx, epoch, size, loss_cls, loss_reg): if epoch >= 0: message = "Epoch: [{0}][{1}/{2}]\t".fo...
30.965278
89
0.610675
26cf066ce618fab0bf5d22d891146df28c25192c
2,130
py
Python
basic/18-web3py/scripts/5_use_openzeppelin_dynamic_mintable_contract.py
defiAnalysis/Dapp-Learning
7401815cb6c8528c39b24a703ff74702607e8f7f
[ "MIT" ]
4
2021-07-21T12:19:38.000Z
2022-01-01T13:52:35.000Z
basic/18-web3py/scripts/5_use_openzeppelin_dynamic_mintable_contract.py
defiAnalysis/Dapp-Learning
7401815cb6c8528c39b24a703ff74702607e8f7f
[ "MIT" ]
null
null
null
basic/18-web3py/scripts/5_use_openzeppelin_dynamic_mintable_contract.py
defiAnalysis/Dapp-Learning
7401815cb6c8528c39b24a703ff74702607e8f7f
[ "MIT" ]
null
null
null
import json from web3 import Web3 def main(): w3 = Web3(Web3.HTTPProvider('http://127.0.0.1:8545')) with open('./build/contracts/MyTokenMintable2.json', 'r') as fr: erc20_json_dict = json.load(fr) my_contract = w3.eth.contract(abi=erc20_json_dict['abi'], bytecode=erc20_json_dict['bytecode']) ...
45.319149
177
0.69108
d4e7ebcbd9a355bbc4cb210343321c164b3ff445
1,987
py
Python
netflix_notify/management/commands/sync_titles.py
mikeengland/netflix-notify
7c49f171e62680a6882822a4f57346cd3cc3f828
[ "Apache-2.0" ]
1
2017-06-07T11:46:46.000Z
2017-06-07T11:46:46.000Z
netflix_notify/management/commands/sync_titles.py
mikeengland/netflix-notify
7c49f171e62680a6882822a4f57346cd3cc3f828
[ "Apache-2.0" ]
null
null
null
netflix_notify/management/commands/sync_titles.py
mikeengland/netflix-notify
7c49f171e62680a6882822a4f57346cd3cc3f828
[ "Apache-2.0" ]
null
null
null
import logging from django.core.management.base import BaseCommand from netflix_notify.enums import Regions from netflix_notify.models import (Title, SyncLog) from netflix_notify.scraper import Scraper logger = logging.getLogger(__name__) class Command(BaseCommand): help = 'S...
38.211538
102
0.558631
50f6c7a40e8b73361d9f6c01f20f63aebc1c9b56
1,826
py
Python
profile.py
AvinashSingh786/SRedS
1ff1cebc78502359f41bd48d40b17a9aaa80d0e0
[ "MIT" ]
2
2021-07-08T14:12:36.000Z
2022-02-18T00:42:55.000Z
profile.py
AvinashSingh786/SRedS
1ff1cebc78502359f41bd48d40b17a9aaa80d0e0
[ "MIT" ]
1
2021-03-01T05:15:04.000Z
2021-03-01T05:15:04.000Z
profile.py
AvinashSingh786/SRedS
1ff1cebc78502359f41bd48d40b17a9aaa80d0e0
[ "MIT" ]
null
null
null
# profile.py import time import os import psutil import inspect def elapsed_since(start): #return time.strftime("%H:%M:%S", time.gmtime(time.time() - start)) elapsed = time.time() - start if elapsed < 1: return str(round(elapsed*1000,2)) + "ms" if elapsed < 60: return str(round(elapsed...
31.482759
71
0.575027
daec12a95e26d66876b0502566898361d1a1751e
338
py
Python
OtavioMiranda/POO/agregacao/main.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
1
2021-01-01T14:46:28.000Z
2021-01-01T14:46:28.000Z
OtavioMiranda/POO/agregacao/main.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
null
null
null
OtavioMiranda/POO/agregacao/main.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
null
null
null
from classe_s import CarrinhoDeCompras, Produto carrinho = CarrinhoDeCompras() p1 = Produto('Camiseta', 50) p2 = Produto('Iphone', 5000) p3 = Produto('Caneca', 15) carrinho.lista_produtos() carrinho.inserir_produto(p1) carrinho.inserir_produto(p2) carrinho.inserir_produto(p3) carrinho.lista_produtos() print(carri...
18.777778
47
0.781065
27405470e4bb5df1d9400c8d739dbc5583877222
90,637
py
Python
t2t_bert/utils/tensor2tensor/utils/t2t_model.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
34
2018-12-19T01:00:57.000Z
2021-03-26T09:36:37.000Z
t2t_bert/utils/tensor2tensor/utils/t2t_model.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
11
2018-12-25T03:37:59.000Z
2021-08-25T14:43:58.000Z
t2t_bert/utils/tensor2tensor/utils/t2t_model.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
9
2018-12-27T08:00:44.000Z
2020-06-08T03:05:14.000Z
# coding=utf-8 # Copyright 2019 The Tensor2Tensor 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...
38.9
84
0.661397
567e60a09bd6eb96948b4529e2d3879907145186
2,860
py
Python
freezer_api/api/v1/clients.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
freezer_api/api/v1/clients.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
freezer_api/api/v1/clients.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
""" (c) Copyright 2014,2015 Hewlett-Packard Development Company, L.P. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
34.457831
73
0.658392
ad2127d4dc5efaff717d33c78733f3088590c4b8
12,902
py
Python
advancedmovieselection/src/MoviePreview.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
advancedmovieselection/src/MoviePreview.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
advancedmovieselection/src/MoviePreview.py
wedebe/enigma2-plugins
58e1897866ad65294283970e96e5f2841c3cb6e2
[ "OLDAP-2.3" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Advanced Movie Selection for Dreambox-Enigma2 # # The plugin is developed on the basis from a lot of single plugins (thx for the code @ all) # Coded by JackDaniel and cmikula (c)2011 # Support: www.i-have-a-dreambox.com # # This plugin is licensed under the Creative Comm...
41.352564
200
0.626027
e5d6e9021b9ec926bdf0e1662011facda64c92b0
1,032
py
Python
scripts/bed_intersect_basewise.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
null
null
null
scripts/bed_intersect_basewise.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
null
null
null
scripts/bed_intersect_basewise.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Find regions of first bed file that overlap regions in a second bed file. This program performs a base-by-base intersection, so only runs of bases that are covered in both of the inputs will be output. usage: %prog bed_file_1 bed_file_2 """ from __future__ import print_function import sys f...
24
78
0.690891
590d2e3dccc5897abbd119b24cbc0af54031ce34
4,899
py
Python
ProjectApplication/comments/migrations/0020_proposalevaluationattachment_proposalevaluationattachmentcategory_proposalevaluationcomment_proposal.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-07-29T10:00:11.000Z
2022-02-19T11:00:34.000Z
ProjectApplication/comments/migrations/0020_proposalevaluationattachment_proposalevaluationattachmentcategory_proposalevaluationcomment_proposal.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
471
2019-09-20T14:37:28.000Z
2022-03-25T14:16:34.000Z
ProjectApplication/comments/migrations/0020_proposalevaluationattachment_proposalevaluationattachmentcategory_proposalevaluationcomment_proposal.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-03-15T12:42:47.000Z
2022-02-15T18:06:52.000Z
# Generated by Django 3.0.3 on 2020-03-04 12:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import storages.backends.s3boto3 class Migration(migrations.Migration): dependencies = [ ('evaluation', '0010_file_name_processed_on_save'), ...
65.32
269
0.66238
bf256a29fc79849bc718b139efccf803235a4380
203
py
Python
Chapter-1/ex2-flask.py
gulkotapriyanka955/SoftwareEngineeringLab
afbb97b11164d045930e8b3fc6bb1e2f2310256f
[ "MIT" ]
null
null
null
Chapter-1/ex2-flask.py
gulkotapriyanka955/SoftwareEngineeringLab
afbb97b11164d045930e8b3fc6bb1e2f2310256f
[ "MIT" ]
null
null
null
Chapter-1/ex2-flask.py
gulkotapriyanka955/SoftwareEngineeringLab
afbb97b11164d045930e8b3fc6bb1e2f2310256f
[ "MIT" ]
null
null
null
#Basic Flask Code from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World' if __name__ == '__main__': app.run(host='0.0.0.0', port=8080, debug = True)
22.555556
52
0.674877
5d68002b5eb83d771193a85c73f2d8d138b2b350
3,776
py
Python
contrib/macdeploy/custom_dsstore.py
cryptopool-builders/Streamies
330a802c3000bbbb91c81bc45ad7415ba2b8825f
[ "MIT" ]
1
2020-04-02T08:26:57.000Z
2020-04-02T08:26:57.000Z
contrib/macdeploy/custom_dsstore.py
cryptopool-builders/Streamies
330a802c3000bbbb91c81bc45ad7415ba2b8825f
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
cryptopool-builders/Streamies
330a802c3000bbbb91c81bc45ad7415ba2b8825f
[ "MIT" ]
1
2021-02-19T02:01:17.000Z
2021-02-19T02:01:17.000Z
#!/usr/bin/env python # Copyright (c) 2013-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from __future__ import division,print_function,unicode_literals import biplist from ds_store import DSStore...
61.901639
1,817
0.727489
81257e7b0c19de38204646702445f3ab93bb2341
4,143
py
Python
xlsform_prj/settings.py
yanokwa/odk-xlsform-online
597a24a2e97eda7b1336da3195f96f924adec321
[ "Apache-2.0" ]
7
2018-04-25T16:46:59.000Z
2020-02-07T05:06:26.000Z
xlsform_prj/settings.py
yanokwa/odk-xlsform-online
597a24a2e97eda7b1336da3195f96f924adec321
[ "Apache-2.0" ]
8
2018-01-16T19:22:47.000Z
2020-03-28T22:20:27.000Z
xlsform_prj/settings.py
yanokwa/odk-xlsform-online
597a24a2e97eda7b1336da3195f96f924adec321
[ "Apache-2.0" ]
7
2018-05-14T04:00:43.000Z
2020-02-29T18:46:22.000Z
""" Django settings for xlsform_prj project. Generated by 'django-admin startproject' using Django 1.11.2. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
25.732919
91
0.647357
332f16510b16c794b2df31b03f6dc2ba9502a834
447
py
Python
pictogram/__main__.py
Alquimista/pictogram
57943e9679db0e26edfb60cfe2a88c56bbfc469a
[ "MIT" ]
null
null
null
pictogram/__main__.py
Alquimista/pictogram
57943e9679db0e26edfb60cfe2a88c56bbfc469a
[ "MIT" ]
null
null
null
pictogram/__main__.py
Alquimista/pictogram
57943e9679db0e26edfb60cfe2a88c56bbfc469a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import sys import pictogram def main(args=None): """The main routine.""" if args is None: args = sys.argv[1:] print("This is the main routine.") print("It should do something interesting.") # Do argument...
19.434783
68
0.64877
ea01c4cdaa7306f5b34e64f19b58e4ee7f56597d
1,217
py
Python
01_basic/revolving/revolving.py
kaityo256/yamagata2022
435deb3210b1eb0191364570b378656c31cc23e5
[ "CC-BY-4.0" ]
1
2022-01-19T15:33:23.000Z
2022-01-19T15:33:23.000Z
01_basic/revolving/revolving.py
kaityo256/yamagata2022
435deb3210b1eb0191364570b378656c31cc23e5
[ "CC-BY-4.0" ]
null
null
null
01_basic/revolving/revolving.py
kaityo256/yamagata2022
435deb3210b1eb0191364570b378656c31cc23e5
[ "CC-BY-4.0" ]
null
null
null
def show_schedule(balance, y_rate, payment): m_rate = y_rate / 12.0 i = 0 total = 0 while balance > 0: i = i + 1 interest = int(balance * m_rate) pay = payment - interest if balance < pay: pay = balance total += pay total += interest ba...
26.456522
80
0.548891
60fff9ab162c424f8146b3404013470ae5bc2304
26,991
py
Python
leafmap/toolbar.py
Kikehulk/leafmap
998654ad364a4e2b7048ef517306301756c2b9f9
[ "MIT" ]
null
null
null
leafmap/toolbar.py
Kikehulk/leafmap
998654ad364a4e2b7048ef517306301756c2b9f9
[ "MIT" ]
null
null
null
leafmap/toolbar.py
Kikehulk/leafmap
998654ad364a4e2b7048ef517306301756c2b9f9
[ "MIT" ]
null
null
null
"""Module for dealing with the toolbar. """ import math import os import ipyevents import ipyleaflet import ipywidgets as widgets from ipyleaflet import TileLayer, WidgetControl from IPython.core.display import display from ipyfilechooser import FileChooser from .common import * def tool_template(m=None): """Gene...
32.363309
122
0.561928
68f9dff706b7e95c4d31b87de4a90d59f1d58d14
583
py
Python
2020_11_Cooper_Type/pattern_example_recording.py
benkiel/python_workshops
9483c1fd5f7dd87e595289efb7376e1b81ff5ede
[ "MIT" ]
6
2018-03-24T17:31:51.000Z
2021-11-18T06:02:09.000Z
2020_11_Cooper_Type/pattern_example_recording.py
benkiel/python_workshops
9483c1fd5f7dd87e595289efb7376e1b81ff5ede
[ "MIT" ]
null
null
null
2020_11_Cooper_Type/pattern_example_recording.py
benkiel/python_workshops
9483c1fd5f7dd87e595289efb7376e1b81ff5ede
[ "MIT" ]
null
null
null
from random import random size(1000, 1000) step = 20 margin = 4 xRange = range(0, width(), step) yRange = range(0, height(), step) xRange2 = range(0, width(), step*4) yRange2 = range(0, height(), step*4) # Drawing def module(x, y, w, h): fill(0) rect(x, y, w, h) def module2(x, y, w, h): fill(1,0,1) r...
15.342105
36
0.552316
e80fd8c45e9ad9c442f19619434ab1794decf946
223
py
Python
test.py
centurio1987/testexercise
bca5c4db42331576f10370c7e042671674d4ad39
[ "MIT" ]
null
null
null
test.py
centurio1987/testexercise
bca5c4db42331576f10370c7e042671674d4ad39
[ "MIT" ]
null
null
null
test.py
centurio1987/testexercise
bca5c4db42331576f10370c7e042671674d4ad39
[ "MIT" ]
null
null
null
list = [8, 4, 5, 6, 7] for i in range(len(list)): a = list[i] for j in range(i, -1, -1): if a < list[j]: list[j + 1] = list[j] list[j] = a else: pass print(list)
18.583333
33
0.399103
a60fd4d1cdc1cb42b20a7ad47c2bc364ffb1f687
4,116
py
Python
examples/nlp/lasertagger/official_lasertagger/score_lib.py
yidong72/NeMo
8e703fba0aa7368be1a44e641e59346ca786a6dc
[ "Apache-2.0" ]
null
null
null
examples/nlp/lasertagger/official_lasertagger/score_lib.py
yidong72/NeMo
8e703fba0aa7368be1a44e641e59346ca786a6dc
[ "Apache-2.0" ]
null
null
null
examples/nlp/lasertagger/official_lasertagger/score_lib.py
yidong72/NeMo
8e703fba0aa7368be1a44e641e59346ca786a6dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ============================================================================= # Copyright (c) 2020 NVIDIA. 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 ...
39.576923
116
0.659135
d123f18c3e5aec2e6eb81f01ab3299bd146cf447
1,369
py
Python
tests/test_cli.py
EndlessTrax/pgn-to-sqlite
e5fa0a64b7595a10ce91bec27a3561d6904f0de4
[ "MIT" ]
8
2021-04-20T20:53:32.000Z
2022-02-04T11:14:31.000Z
tests/test_cli.py
EndlessTrax/pgn-to-sqlite
e5fa0a64b7595a10ce91bec27a3561d6904f0de4
[ "MIT" ]
1
2021-04-14T22:36:45.000Z
2021-04-15T01:06:21.000Z
tests/test_cli.py
EndlessTrax/pgn-to-sqlite
e5fa0a64b7595a10ce91bec27a3561d6904f0de4
[ "MIT" ]
null
null
null
import requests from click.testing import CliRunner from pgn_to_sqlite.cli import build_pgn_dict, convert_to_snake_case, cli def test_snake_case_conversion(): result = convert_to_snake_case("SpamSpam") assert result == "spam_spam" def test_build_png_dict_from_chess_dotcom(): with open("tests/game_files/...
29.76087
84
0.696129
39ff3334e1ce8c6107bdb0529937d408370698a4
546
py
Python
app/api/DAO/user_addressDAO.py
EljakimHerrewijnen/Project_5-6
219893588220eff4004efb09e755d0b864f56392
[ "MIT" ]
null
null
null
app/api/DAO/user_addressDAO.py
EljakimHerrewijnen/Project_5-6
219893588220eff4004efb09e755d0b864f56392
[ "MIT" ]
null
null
null
app/api/DAO/user_addressDAO.py
EljakimHerrewijnen/Project_5-6
219893588220eff4004efb09e755d0b864f56392
[ "MIT" ]
null
null
null
from app.api.database import Database # Add adress to user def Create(postal_code, house_number, username): db = Database() sql = { "postal_code" : postal_code, "house_number" : house_number, "username" : username } return db.insert("user_address", sql) # Remove adress from use...
28.736842
48
0.677656
6cf95d756c269d5c8c7806ca9bb38b8927ebb72e
2,858
py
Python
paddlespeech/server/engine/engine_factory.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
1,379
2021-11-10T02:42:21.000Z
2022-03-31T13:34:25.000Z
paddlespeech/server/engine/engine_factory.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
268
2021-11-10T14:07:34.000Z
2022-03-31T02:25:20.000Z
paddlespeech/server/engine/engine_factory.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
296
2021-11-15T02:37:11.000Z
2022-03-31T12:14:46.000Z
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
50.140351
91
0.682995
f520e0521852384219979cd37a86a78dbeeec799
7,676
py
Python
commands/maf_processing/python/createUniProt_ISOForm1_Sequence_File.py
cancerregulome/gidget
6c9e9a37f9992267c7505c7a396ff7e2638599ab
[ "MIT" ]
3
2016-02-22T21:29:23.000Z
2020-09-19T07:38:21.000Z
commands/maf_processing/python/createUniProt_ISOForm1_Sequence_File.py
cancerregulome/gidget
6c9e9a37f9992267c7505c7a396ff7e2638599ab
[ "MIT" ]
1
2015-01-16T02:33:59.000Z
2015-01-16T02:33:59.000Z
commands/maf_processing/python/createUniProt_ISOForm1_Sequence_File.py
cancerregulome/gidget
6c9e9a37f9992267c7505c7a396ff7e2638599ab
[ "MIT" ]
2
2015-12-27T08:40:12.000Z
2021-03-01T06:30:23.000Z
import sys import traceback import re import linecache __author__ = 'xshu' # global variables unprocessedIDs = [] iso12PosInFileMapping = {} def showHelp(): print\ ''' This program updates gene2uniprot by adding more mappings with the records combined from uni_sprot and uni_trembl dat files (downloa...
39.772021
137
0.582074
6342ebce761008a22354c2d191759f826cd92020
38,800
py
Python
src/commands.py
rzr/Limnoria
42f9e7667bc513c61d68bb4733b5632e959e8968
[ "BSD-3-Clause" ]
null
null
null
src/commands.py
rzr/Limnoria
42f9e7667bc513c61d68bb4733b5632e959e8968
[ "BSD-3-Clause" ]
null
null
null
src/commands.py
rzr/Limnoria
42f9e7667bc513c61d68bb4733b5632e959e8968
[ "BSD-3-Clause" ]
null
null
null
### # Copyright (c) 2002-2005, Jeremiah Fincher # Copyright (c) 2009-2010,2015, James McCoy # 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 a...
34.185022
84
0.601701
3cfa4c056d405d5018dca69a752b649cfd779995
668
py
Python
test/test_nn/test_nonlinear/test_log_softmax.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
null
null
null
test/test_nn/test_nonlinear/test_log_softmax.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
null
null
null
test/test_nn/test_nonlinear/test_log_softmax.py
alexandru-dinu/PRML
acd823e098df67abe0306a70225e7539f8edda40
[ "MIT" ]
1
2019-06-22T20:56:02.000Z
2019-06-22T20:56:02.000Z
import unittest import numpy as np import prml.nn as nn class TestLogSoftmax(unittest.TestCase): def test_forward(self): npx = np.random.randn(5, 3) npy = np.log(np.exp(npx) / np.exp(npx).sum(axis=-1, keepdims=True)) self.assertTrue(np.allclose(npy, nn.log_softmax(npx).value)) def t...
24.740741
75
0.615269
363235539fcc6adef52af3a0174ced5b274d27f5
2,170
py
Python
setup.py
desbma/pyfastcopy
a572042afd8f7f3b761db45aa9ab56e236983211
[ "PSF-2.0" ]
13
2016-02-09T09:26:59.000Z
2021-12-28T19:51:08.000Z
setup.py
desbma/pyfastcopy
a572042afd8f7f3b761db45aa9ab56e236983211
[ "PSF-2.0" ]
1
2016-07-31T14:50:54.000Z
2016-07-31T17:21:49.000Z
setup.py
desbma/pyfastcopy
a572042afd8f7f3b761db45aa9ab56e236983211
[ "PSF-2.0" ]
1
2016-07-31T14:50:12.000Z
2016-07-31T14:50:12.000Z
#!/usr/bin/env python3 import os import re import sys import time from setuptools import find_packages, setup with open(os.path.join("pyfastcopy", "__init__.py"), "rt") as f: version = re.search("__version__ = \"([^\"]+)\"", f.read()).group(1) requirements = [] if not hasattr(os, "sendfile") and not sys.platform...
37.413793
90
0.593548
4f25fd12e8dc3c286cce0080dc796283bf024b14
496
py
Python
hostelmanager/wsgi.py
rc4594/Dbms
57a160fd4339a884b1ce4ef75fe8489f6ff30fa2
[ "MIT" ]
null
null
null
hostelmanager/wsgi.py
rc4594/Dbms
57a160fd4339a884b1ce4ef75fe8489f6ff30fa2
[ "MIT" ]
null
null
null
hostelmanager/wsgi.py
rc4594/Dbms
57a160fd4339a884b1ce4ef75fe8489f6ff30fa2
[ "MIT" ]
null
null
null
""" WSGI config for hostelmanager project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANG...
24.8
78
0.806452
7b75fb41fc86b988ccc3a36793feeb098037aa0c
60
py
Python
oebb/__init__.py
HerrHofrat/oebb
6cc0bb4d369d2715ecf4d9dc28fc00f2d493a8e4
[ "MIT" ]
null
null
null
oebb/__init__.py
HerrHofrat/oebb
6cc0bb4d369d2715ecf4d9dc28fc00f2d493a8e4
[ "MIT" ]
null
null
null
oebb/__init__.py
HerrHofrat/oebb
6cc0bb4d369d2715ecf4d9dc28fc00f2d493a8e4
[ "MIT" ]
null
null
null
"""Module to parse gearbest site""" from .oebb import OeBB
15
35
0.716667
217318a2cf00bb8bbf672a4d1c022b8a468be232
6,469
py
Python
generators/cppcookie.py
jeremyong/xpp
f70dd8bb50944ab64ab902d9d8ab555599249dc1
[ "MIT" ]
8
2015-03-03T08:49:33.000Z
2018-05-05T21:01:12.000Z
generators/cppcookie.py
jeremyong/xpp
f70dd8bb50944ab64ab902d9d8ab555599249dc1
[ "MIT" ]
11
2016-08-31T14:54:11.000Z
2018-10-14T21:19:41.000Z
generators/cppcookie.py
jeremyong/xpp
f70dd8bb50944ab64ab902d9d8ab555599249dc1
[ "MIT" ]
10
2016-08-31T08:30:17.000Z
2019-03-24T22:47:38.000Z
from utils import _n, _ext, _n_item, get_namespace _templates = {} _templates['void_cookie_function'] = \ '''\ %s\ void %s_checked(Connection && c%s) {%s\ xpp::generic::check<Connection, xpp::%s::error::dispatcher>( std::forward<Connection>(c), %s_checked(std::forward<Connection>(c)%s)); } %s\ void %s(...
31.866995
96
0.547071
ba1f31c6751fe0d8407d1ed4035ed8cebe0b81e4
990
py
Python
simplemooc/simplemooc/accounts/urls.py
eduardormonteiro/DjangoSimpleMOOC
c59d4ca2432d36c5ff9cc76028e84237ac840a28
[ "MIT" ]
null
null
null
simplemooc/simplemooc/accounts/urls.py
eduardormonteiro/DjangoSimpleMOOC
c59d4ca2432d36c5ff9cc76028e84237ac840a28
[ "MIT" ]
null
null
null
simplemooc/simplemooc/accounts/urls.py
eduardormonteiro/DjangoSimpleMOOC
c59d4ca2432d36c5ff9cc76028e84237ac840a28
[ "MIT" ]
null
null
null
from django.urls import path, include from datetime import datetime # from django.contrib.auth import views #login, logout from django.conf import settings from django.conf.urls.static import static from django.contrib.auth.views import LoginView, LogoutView, PasswordChangeView from simplemooc.accounts import forms, vi...
35.357143
79
0.648485
f74eca7e77859726f4fb38addd1950435509cd67
1,428
py
Python
froide/accesstoken/migrations/0001_initial.py
OpendataCH/froide
8136bac0d8caa56f9cfc7ba15480be987280e55d
[ "MIT" ]
null
null
null
froide/accesstoken/migrations/0001_initial.py
OpendataCH/froide
8136bac0d8caa56f9cfc7ba15480be987280e55d
[ "MIT" ]
null
null
null
froide/accesstoken/migrations/0001_initial.py
OpendataCH/froide
8136bac0d8caa56f9cfc7ba15480be987280e55d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-11-09 15:29 from __future__ import unicode_literals import uuid import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ...
27.461538
88
0.460784
11ce73c248a3559230b2ef9340ca09e093a1100e
868
py
Python
ceph_medic/__init__.py
alfredodeza/ceph-doctor
cf48c26636091eb11c4c00e09089680ce72b26bc
[ "MIT" ]
21
2017-06-27T15:20:33.000Z
2021-09-30T21:50:31.000Z
ceph_medic/__init__.py
alfredodeza/ceph-doctor
cf48c26636091eb11c4c00e09089680ce72b26bc
[ "MIT" ]
86
2017-06-21T20:10:13.000Z
2021-10-30T00:04:05.000Z
ceph_medic/__init__.py
alfredodeza/ceph-doctor
cf48c26636091eb11c4c00e09089680ce72b26bc
[ "MIT" ]
22
2017-08-07T14:34:39.000Z
2021-04-07T05:15:26.000Z
from collections import namedtuple class UnloadedConfig(object): """ This class is used as the default value for config.ceph so that if a configuration file is not successfully loaded then it will give a nice error message when values from the config are used. """ def __init__(self, error=None...
33.384615
134
0.65553
04645a915493ec73aaa1b3237c0dda29c27e4b69
3,352
py
Python
applications/popart/resnext_inference/get_model.py
xihuaiwen/chinese_bert
631afbc76c40b0ac033be2186e717885246f446c
[ "MIT" ]
null
null
null
applications/popart/resnext_inference/get_model.py
xihuaiwen/chinese_bert
631afbc76c40b0ac033be2186e717885246f446c
[ "MIT" ]
null
null
null
applications/popart/resnext_inference/get_model.py
xihuaiwen/chinese_bert
631afbc76c40b0ac033be2186e717885246f446c
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. import torch import torch.onnx import urllib.request import pretrainedmodels import os import onnx import argparse """ Downloads the model in Pytorch format and converts to ONNX. Creates copies with different (micro) batch size dimensions. """ def get_model(opts): path = "{}/{}/"...
31.92381
144
0.672733
0e75a8b6a65d8b9bf96d85751a9638c781e1b91e
7,093
py
Python
kubernetes/client/models/v1beta2_deployment.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
1
2019-02-17T15:28:39.000Z
2019-02-17T15:28:39.000Z
kubernetes/client/models/v1beta2_deployment.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta2_deployment.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
29.677824
281
0.602848
bf94810dca21d4a24581c9e0148e430822dbcbd4
6,724
py
Python
decision_trees/own_parfit/plot.py
sudorudu/decision_tree
b50ffcb87a60471b0e31b6c80b0964eeb53ad365
[ "MIT" ]
6
2018-02-26T11:47:51.000Z
2021-11-30T13:36:08.000Z
decision_trees/own_parfit/plot.py
sudorudu/decision_tree
b50ffcb87a60471b0e31b6c80b0964eeb53ad365
[ "MIT" ]
1
2018-08-09T12:59:42.000Z
2018-08-09T12:59:42.000Z
decision_trees/own_parfit/plot.py
sudorudu/decision_tree
b50ffcb87a60471b0e31b6c80b0964eeb53ad365
[ "MIT" ]
5
2017-10-31T02:32:23.000Z
2018-12-12T09:09:08.000Z
import matplotlib.pyplot as plt import matplotlib.colorbar as cb import numpy as np import warnings warnings.filterwarnings("ignore", category=DeprecationWarning) warnings.filterwarnings("ignore", category=UserWarning) __all__ = ["plot1DGrid", "plot2DGrid", "plot3DGrid", "plotScores"] def plot1DGrid(scores, paramsT...
41.251534
116
0.653629
d715b57722882c6d8c2dfffed427a69d92ab287d
327
py
Python
atividades/ex103.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex103.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex103.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
def ficha(n = '<desconhecido>', g = 0): print(f'O jogador {n} fez {g} gols') nome = str(input('Digite o nome do jogador: ')) gols = str(input('Digite o numero de gols: ')) if gols.isnumeric(): gols = int(gols) else: gols = 0 if nome.strip() == '': ficha('<desconhecido>', gols) else: ficha(nome,...
18.166667
47
0.590214
cb9cd0d52d10d5f9111d6013cfc32649afb0128b
858
py
Python
blog_api/tests.py
maiconwa/crispy-eureka
8b3c575516582b71b71686c4aec04ce4e18745a1
[ "MIT" ]
null
null
null
blog_api/tests.py
maiconwa/crispy-eureka
8b3c575516582b71b71686c4aec04ce4e18745a1
[ "MIT" ]
null
null
null
blog_api/tests.py
maiconwa/crispy-eureka
8b3c575516582b71b71686c4aec04ce4e18745a1
[ "MIT" ]
null
null
null
from urllib import response from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from blog.models import Post, Category class PostTests(APITestCase): def test_view_posts(self): url = reverse('blog_api:listcreate') response = sel...
35.75
80
0.664336
332aa372eeaa5a02980a86d3fdb56c7b529476de
6,340
py
Python
scripts/label_image.py
MaciejDurski/FaceRecognitionServ
4c297195ba8f1a353cfdcadef4284093a9c1577c
[ "Apache-2.0" ]
null
null
null
scripts/label_image.py
MaciejDurski/FaceRecognitionServ
4c297195ba8f1a353cfdcadef4284093a9c1577c
[ "Apache-2.0" ]
null
null
null
scripts/label_image.py
MaciejDurski/FaceRecognitionServ
4c297195ba8f1a353cfdcadef4284093a9c1577c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.849741
90
0.664353
0d06c53b6c47d2001290579cd959cd8567bbdb67
3,919
py
Python
test/test_services.py
Birjot-Bala/OSRS-Discord-Bot
311d567e18ec586afd9101a263c185a78a7951f5
[ "MIT" ]
3
2021-04-16T05:30:08.000Z
2022-02-17T14:39:25.000Z
test/test_services.py
Birjot-Bala/OSRS-Discord-Bot
311d567e18ec586afd9101a263c185a78a7951f5
[ "MIT" ]
2
2022-02-02T15:47:38.000Z
2022-02-02T15:56:27.000Z
test/test_services.py
Birjot-Bala/OSRS-Discord-Bot
311d567e18ec586afd9101a263c185a78a7951f5
[ "MIT" ]
1
2021-05-14T21:48:14.000Z
2021-05-14T21:48:14.000Z
# test_services.py # contains tests for services.py import pytest import requests import json import osrs_discord_bot.services as se from requests.exceptions import Timeout class MockAPI: def __init__(self, requests_mock): self.mock_base_url = requests_mock.get('https://test.com') ...
33.784483
81
0.634601
1e2e32cbfce75a4f2c0a788b0876ab11abf6bb9c
12,306
py
Python
Lib/encodings/tis_620.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/encodings/tis_620.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/encodings/tis_620.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
""" Python Character Mapping Codec tis_620 generated z 'python-mappings/TIS-620.TXT' przy gencodec.py. """#" zaimportuj codecs ### Codec APIs klasa Codec(codecs.Codec): def encode(self,input,errors='strict'): zwróć codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='st...
39.954545
102
0.51609
b35e2728abab075927f1cfc0f91272fa61fbd664
2,925
py
Python
data/task_scripts/main/task01008.py
aallaire91/phyre
ee882194c12bae5561c25ec65f95a7c0944f8129
[ "Apache-2.0" ]
432
2019-08-15T15:45:43.000Z
2022-02-26T23:13:34.000Z
data/task_scripts/main/task01008.py
aallaire91/phyre
ee882194c12bae5561c25ec65f95a7c0944f8129
[ "Apache-2.0" ]
38
2019-09-06T15:39:03.000Z
2022-03-12T00:11:25.000Z
data/task_scripts/main/task01008.py
aallaire91/phyre
ee882194c12bae5561c25ec65f95a7c0944f8129
[ "Apache-2.0" ]
69
2019-08-16T02:08:41.000Z
2022-01-27T23:23:03.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 ...
32.865169
74
0.610256
9f3ab7511d249718b7b1578cf6d6f33f71ebc509
5,850
py
Python
Part1/HSI_LiDAR/HoustonDataset.py
efkandurakli/Graduation-Project1
fd2cba89929da2cef49ec67214b54c310b57ce01
[ "MIT" ]
1
2019-12-18T08:16:55.000Z
2019-12-18T08:16:55.000Z
Part1/HSI_LiDAR/HoustonDataset.py
efkandurakli/Graduation-Project1
fd2cba89929da2cef49ec67214b54c310b57ce01
[ "MIT" ]
null
null
null
Part1/HSI_LiDAR/HoustonDataset.py
efkandurakli/Graduation-Project1
fd2cba89929da2cef49ec67214b54c310b57ce01
[ "MIT" ]
null
null
null
hsi_image_file_path = "drive/Undergraduate_Project/HoustonDataset/HSI_DATA.tif" lidar_image_file_path = "drive/Undergraduate_Project/HoustonDataset/LiDAR_DATA.tif" train_file_path = "drive/Undergraduate_Project/HoustonDataset/train.txt" test_file_path = "drive/Undergraduate_Project/HoustonDataset/test.txt" from o...
33.238636
113
0.594188
a186b9ba77962023c5b6396cec11cb317080eed6
14,812
py
Python
tests/gradients/test_gradient_transform.py
ral9000/pennylane
0afbd155d044730af546c6d90cef9d01f931632d
[ "Apache-2.0" ]
null
null
null
tests/gradients/test_gradient_transform.py
ral9000/pennylane
0afbd155d044730af546c6d90cef9d01f931632d
[ "Apache-2.0" ]
null
null
null
tests/gradients/test_gradient_transform.py
ral9000/pennylane
0afbd155d044730af546c6d90cef9d01f931632d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Xanadu Quantum Technologies 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 applicabl...
37.785714
101
0.570348
e122a8a285a84878389ab7f8ea78acb9e3337947
1,114
py
Python
wordpress/komand_wordpress/actions/delete_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
wordpress/komand_wordpress/actions/delete_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
wordpress/komand_wordpress/actions/delete_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: REASSIGNEE = "reassignee" USERNAME = "username" class Output: SUCCESS = "success" class DeleteUserInput(komand.Input): schema = json.loads(""" { "type": "object", "title": "Variables", "properties": { ...
17.68254
57
0.552065
fad05997b7c8c8c83c22c1ddd185e7ade8e0adf0
2,250
py
Python
1335/Minimum Difficulty of a Job Schedule.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
1335/Minimum Difficulty of a Job Schedule.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
1335/Minimum Difficulty of a Job Schedule.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
""" timecomplexity = O(dj^2) this is a dynamic programming question. dp [i][j] the minimum difficulty about 1 to i days to construct 1to j jobs the function for this dp problem is dp[i][j] = min(dp[i][j],max(dp[i-1][x-1],maxd)) maxd is the max difficult job between x to j for x in range(j,i-1,-1) maxd = max(maxd,j...
22.058824
115
0.563556
8f47e7904df551e83e8076c5348fe0de113a356b
991
py
Python
lib/pysgpp/extensions/datadriven/uq/learner/builder/InterpolantSpecificationDescriptor.py
valentjn/thesis
65a0eb7d5f7488aac93882959e81ac6b115a9ea8
[ "CC0-1.0" ]
4
2022-01-15T19:50:36.000Z
2022-01-15T20:16:10.000Z
lib/pysgpp/extensions/datadriven/uq/learner/builder/InterpolantSpecificationDescriptor.py
valentjn/thesis
65a0eb7d5f7488aac93882959e81ac6b115a9ea8
[ "CC0-1.0" ]
null
null
null
lib/pysgpp/extensions/datadriven/uq/learner/builder/InterpolantSpecificationDescriptor.py
valentjn/thesis
65a0eb7d5f7488aac93882959e81ac6b115a9ea8
[ "CC0-1.0" ]
null
null
null
class InterpolantSpecificationDescriptor(object): """ TrainingSpecification Descriptor helps to implement fluid interface pattern on Python it encapsulates functionality concerning creation of the training specification """ def __init__(self): """ Constructor @param buil...
30.96875
79
0.650858
e5f78392740479478176bf8dc6c2c6a5e36f6ed8
1,645
py
Python
tests/stories/convert-all.py
livingbio/web-stories-wp
94a6173abeb50c9c8e67fb979fa0a24791af5b3b
[ "Apache-2.0" ]
null
null
null
tests/stories/convert-all.py
livingbio/web-stories-wp
94a6173abeb50c9c8e67fb979fa0a24791af5b3b
[ "Apache-2.0" ]
59
2020-05-26T10:52:48.000Z
2020-06-18T06:09:52.000Z
tests/stories/convert-all.py
livingbio/web-stories-wp
94a6173abeb50c9c8e67fb979fa0a24791af5b3b
[ "Apache-2.0" ]
null
null
null
import os import glob import json import random def samples(): return glob.glob("./tests/stories/*/*.json") def load(ifilename): with open(ifilename) as ifile: data = json.load(ifile) layout = None for i, page in enumerate(data["pages"]): if i == 0: layou...
24.552239
108
0.558663
41cfc7c970a4ac72b521849400e212ce25da1357
9,752
py
Python
tests/scripts/thread-cert/Cert_6_4_02_RealmLocal.py
dismirlian/openthread
726f793609e11d8f14358cd04385a72a86d1fe74
[ "BSD-3-Clause" ]
2
2019-07-12T13:19:40.000Z
2019-07-15T13:39:04.000Z
tests/scripts/thread-cert/Cert_6_4_02_RealmLocal.py
dismirlian/openthread
726f793609e11d8f14358cd04385a72a86d1fe74
[ "BSD-3-Clause" ]
14
2020-04-21T19:36:36.000Z
2021-01-15T01:39:59.000Z
tests/scripts/thread-cert/Cert_6_4_02_RealmLocal.py
dismirlian/openthread
726f793609e11d8f14358cd04385a72a86d1fe74
[ "BSD-3-Clause" ]
1
2021-01-21T13:50:22.000Z
2021-01-21T13:50:22.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
38.243137
83
0.606337
b541e15fd1f8d39b62f9506e7fd65b62709a3c05
15,969
py
Python
references/cpsc2019/CPSC0436_qrs9079_hr9377/train_code/YOLO_1d_HR_4h_loss_ava.py
busyyang/torch_ecg
031d90a32b8a1e202364efe1e5a19a9ba1f0a726
[ "MIT" ]
null
null
null
references/cpsc2019/CPSC0436_qrs9079_hr9377/train_code/YOLO_1d_HR_4h_loss_ava.py
busyyang/torch_ecg
031d90a32b8a1e202364efe1e5a19a9ba1f0a726
[ "MIT" ]
null
null
null
references/cpsc2019/CPSC0436_qrs9079_hr9377/train_code/YOLO_1d_HR_4h_loss_ava.py
busyyang/torch_ecg
031d90a32b8a1e202364efe1e5a19a9ba1f0a726
[ "MIT" ]
null
null
null
import torch.nn as nn import torch import torch.nn.functional as F import numpy as np import math # from torchsummary import summary def layer_1(in_channel,out_channel): layer = nn.Sequential( nn.Conv1d(in_channel,out_channel,16,stride=2,padding=7), nn.BatchNorm1d(out_channel), nn.ReLU(True...
35.966216
182
0.49809
301a165bb4f4ff1ba5e02fda7b4e2e6ffc34e481
1,205
py
Python
demo/deep_learning/base/data_loader_factory.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
1
2018-12-09T06:09:29.000Z
2018-12-09T06:09:29.000Z
demo/deep_learning/base/data_loader_factory.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
demo/deep_learning/base/data_loader_factory.py
jihuacao/Putil
b753fc94bea4cbda00f483681c55f0e9f54adef2
[ "Apache-2.0" ]
null
null
null
# conding=utf-8 import Putil.base.logger as plog logger = plog.PutilLogConfig('data_loader_factory').logger() logger.setLevel(plog.DEBUG) data_loader_factory_logger = logger.getChild('data_loader_factory') data_loader_factory_logger.setLevel(plog.DEBUG) from Putil.demo.deep_learning.base import data_loader as standard...
38.870968
107
0.724481
fe3dc911cdb33f3f0ad3a65c0d7c7f9369edd80d
4,064
py
Python
src/third_party/wiredtiger/test/3rdparty/extras-0.0.3/extras/__init__.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
4
2018-02-06T01:53:12.000Z
2018-02-20T01:47:36.000Z
src/third_party/wiredtiger/test/3rdparty/extras-0.0.3/extras/__init__.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/3rdparty/extras-0.0.3/extras/__init__.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
3
2018-02-06T01:53:18.000Z
2021-07-28T09:48:15.000Z
# Copyright (c) 2010-2012 extras developers. See LICENSE for details. """Extensions to the Python standard library.""" import sys __all__ = [ 'safe_hasattr', 'try_import', 'try_imports', ] # same format as sys.version_info: "A tuple containing the five components of # the version number...
38.339623
82
0.663878
0cf2e63382c3656f8242a0afa93c269430e30a07
1,818
py
Python
nikola/plugins/command/orphans.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
null
null
null
nikola/plugins/command/orphans.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
null
null
null
nikola/plugins/command/orphans.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
1
2021-07-07T11:32:42.000Z
2021-07-07T11:32:42.000Z
# -*- coding: utf-8 -*- # Copyright © 2012-2020 Roberto Alsina, Chris Warrick and others. # 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...
36.36
77
0.738174
570e8abe2137f6d7e6130d535ca22bf2cca814e4
10,984
py
Python
deepcell_retinamask/layers/retinanet_test.py
vanvalenlab/deepcell-retinamask
c922d4d836e881270da8b43c420c60d365883639
[ "Apache-2.0" ]
null
null
null
deepcell_retinamask/layers/retinanet_test.py
vanvalenlab/deepcell-retinamask
c922d4d836e881270da8b43c420c60d365883639
[ "Apache-2.0" ]
2
2021-11-26T11:18:44.000Z
2022-01-21T11:29:41.000Z
deepcell_retinamask/layers/retinanet_test.py
vanvalenlab/deepcell-retinamask
c922d4d836e881270da8b43c420c60d365883639
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2021 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
32.40118
80
0.545794
27e6f828d84ba7dfcac70775d74e8c8c60102f10
24,586
py
Python
visgraph/graphcore.py
6un9-h0-Dan/vivisect
b0f10cad6796c914df2d88fae56647a172b8c1b7
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-23T19:23:17.000Z
2020-12-23T19:23:17.000Z
visgraph/graphcore.py
6un9-h0-Dan/vivisect
b0f10cad6796c914df2d88fae56647a172b8c1b7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
visgraph/graphcore.py
6un9-h0-Dan/vivisect
b0f10cad6796c914df2d88fae56647a172b8c1b7
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-23T19:23:58.000Z
2020-12-23T19:23:58.000Z
''' Graphcore contains all the base graph manipulation objects. ''' import os import json import itertools import threading import collections from binascii import hexlify from exc import * import visgraph.pathcore as vg_pathcore def guid(size=16): return hexlify(os.urandom(size)) def zdict(): return collec...
28.958775
88
0.528675
86cdb88a17c8a80d189d809536aba06639c18fdb
2,871
py
Python
LYOCR/lyocr.py
lstoryzx/LYOCR
adf1239be3bebb4cbccac8034577ef03b89d4d76
[ "MIT" ]
2
2021-03-12T06:50:53.000Z
2021-03-16T05:29:31.000Z
LYOCR/lyocr.py
lstoryzx/LYOCR
adf1239be3bebb4cbccac8034577ef03b89d4d76
[ "MIT" ]
1
2021-03-12T08:09:05.000Z
2021-03-16T05:33:35.000Z
LYOCR/lyocr.py
lstoryzx/LYOCR
adf1239be3bebb4cbccac8034577ef03b89d4d76
[ "MIT" ]
1
2021-09-25T07:20:38.000Z
2021-09-25T07:20:38.000Z
# -*- coding:utf8 -*- import json import tkinter as tk from tkinter import Toplevel, ttk from tkinter.constants import BOTH, CENTER, E, LEFT, NE, NW, RIGHT, W, X, Y import apikeysetting as aks import frame_one import frame_two import frame_three import frame_qr import os #初始化配置文件 aks.initializejson() #用于存放表格的文件夹 if no...
29.90625
207
0.724486
23b2bdeeda40279baf162ef144cdf7bc6d3016af
2,237
py
Python
PYTHON/projects/scraper/scrapy crawler py/quotetutorial/quotetutorial/pipelines.py
Zed-M/dzcode.talk
7da4e0e83aa58597f30a61384370c3ae41926894
[ "Unlicense" ]
12
2019-04-22T10:16:54.000Z
2022-01-08T02:44:19.000Z
PYTHON/projects/scraper/scrapy crawler py/quotetutorial/quotetutorial/pipelines.py
Zed-M/dzcode.talk
7da4e0e83aa58597f30a61384370c3ae41926894
[ "Unlicense" ]
null
null
null
PYTHON/projects/scraper/scrapy crawler py/quotetutorial/quotetutorial/pipelines.py
Zed-M/dzcode.talk
7da4e0e83aa58597f30a61384370c3ae41926894
[ "Unlicense" ]
3
2019-05-14T11:24:42.000Z
2019-08-08T16:13:09.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html import sqlite3 class QuotetutorialPipeline(object): def process_item(self, item, spider): return item # -*- c...
28.316456
93
0.573983
2256bf24c6c2e4370450c9f74747468ee00e7dc9
430
py
Python
website/models.py
trianglefraternitymtu/slack-bridge
63f4cdc6cd13fbb96ca6734da98a5a2a4bc44709
[ "MIT" ]
2
2018-09-22T03:10:40.000Z
2019-04-24T14:57:30.000Z
website/models.py
trianglefraternitymtu/slack-bridge
63f4cdc6cd13fbb96ca6734da98a5a2a4bc44709
[ "MIT" ]
13
2017-05-08T12:27:46.000Z
2019-04-24T14:59:04.000Z
website/models.py
trianglefraternitymtu/slack-bridge
63f4cdc6cd13fbb96ca6734da98a5a2a4bc44709
[ "MIT" ]
null
null
null
from django.db import models class Team(models.Model): team_id = models.CharField(max_length=10, primary_key=True) bot_id = models.CharField(max_length=12) app_access_token = models.CharField(max_length=128) bot_access_token = models.CharField(max_length=128) class SharedChannel(models.Model): lo...
35.833333
66
0.772093
f4f46c1c875395e02704a415a6aa8c2eac476aed
145
py
Python
examples/docs_snippets_crag/docs_snippets_crag_tests/concepts_tests/io_management_tests/test_output_config.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets_crag/docs_snippets_crag_tests/concepts_tests/io_management_tests/test_output_config.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets_crag/docs_snippets_crag_tests/concepts_tests/io_management_tests/test_output_config.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
1
2021-11-30T21:40:46.000Z
2021-11-30T21:40:46.000Z
from docs_snippets_crag.concepts.io_management.output_config import execute_with_config def test_execute_pipeline(): execute_with_config()
24.166667
87
0.855172
e927808dfc0246fe6e535614f0f967b44e33050c
1,139
py
Python
src/main.py
sistemasnegros/pydownloader
2759d66ba2684460e751284c2f7be19cd34d5bb8
[ "MIT" ]
1
2019-09-23T22:28:55.000Z
2019-09-23T22:28:55.000Z
src/main.py
sistemasnegros/pydownloader
2759d66ba2684460e751284c2f7be19cd34d5bb8
[ "MIT" ]
null
null
null
src/main.py
sistemasnegros/pydownloader
2759d66ba2684460e751284c2f7be19cd34d5bb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging # load file config .cfg from lib_sysblack.lib_config import load_config from lib_sysblack.lib_csv import parser_cvs from constans import NAME_FILE_LOG_PATH, NAME_FILE_CONFIG_PATH, NAME_FILE_CSV_PATH from generic import GenericConfig from downloader import Downloader from re...
21.903846
110
0.681299
188f6738b2e74ff026a9a220f210c74a6ec5ed19
2,554
py
Python
star-wars-analysis/match_csv_yarn2/match_csv_yarn2.py
GeneralMisquoti/star-wars-prequels-dialogues
6d64bdb5e8a11badaf658ad21fc64459b574ce70
[ "MIT" ]
null
null
null
star-wars-analysis/match_csv_yarn2/match_csv_yarn2.py
GeneralMisquoti/star-wars-prequels-dialogues
6d64bdb5e8a11badaf658ad21fc64459b574ce70
[ "MIT" ]
1
2020-06-23T20:51:32.000Z
2020-06-24T10:20:29.000Z
star-wars-analysis/match_csv_yarn2/match_csv_yarn2.py
GeneralMisquoti/star-wars-prequels-dialogues
6d64bdb5e8a11badaf658ad21fc64459b574ce70
[ "MIT" ]
null
null
null
import logging from time import strftime from pathlib import Path from .utils.file_json import JsonFile from .utils.file_csv import CsvFile from .utils.overrides import Overrides, GlobalOverride from .utils.gaps import DetectGaps HERE = Path(__file__).parent # Logging LOGGING_DIR = HERE / "logs" if not LOGGING_DIR....
33.168831
113
0.713391
8c3c7550301dcd150ebce34f77ba0d20788df124
817
py
Python
src/evo/death.py
feagi/feagi
598abbe294b5d9cd7ff34861fa6568ba899b2ab8
[ "Apache-2.0" ]
1
2022-03-17T08:27:11.000Z
2022-03-17T08:27:11.000Z
src/evo/death.py
feagi/feagi
598abbe294b5d9cd7ff34861fa6568ba899b2ab8
[ "Apache-2.0" ]
1
2022-02-10T16:30:35.000Z
2022-02-10T16:33:21.000Z
src/evo/death.py
feagi/feagi
598abbe294b5d9cd7ff34861fa6568ba899b2ab8
[ "Apache-2.0" ]
1
2022-02-07T22:15:54.000Z
2022-02-07T22:15:54.000Z
# Copyright 2016-2022 The FEAGI 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 applic...
28.172414
80
0.634027
9539b4f4e523b4f9c0783bf61aa74131aff8569f
1,352
py
Python
test/test_closed_indices.py
yumimobi/graylog.py
3118f4a49c91c2cbbd660523b0ab99e56fbfd861
[ "Apache-2.0" ]
10
2016-09-27T08:13:22.000Z
2018-09-04T13:15:42.000Z
test/test_closed_indices.py
yumimobi/graylog.py
3118f4a49c91c2cbbd660523b0ab99e56fbfd861
[ "Apache-2.0" ]
1
2019-08-28T16:16:09.000Z
2019-08-28T16:16:09.000Z
test/test_closed_indices.py
yumimobi/graylog.py
3118f4a49c91c2cbbd660523b0ab99e56fbfd861
[ "Apache-2.0" ]
5
2016-11-03T07:45:18.000Z
2021-08-19T14:21:49.000Z
# coding: utf-8 """ No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.1.1+01d50e5 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you m...
25.509434
104
0.714497
b2e73d3cf9726ab3c8655037cc5e1928faa79dd2
2,452
py
Python
scripts/piazza_api/piazza.py
ee16b/courserobot
73eecffca1b1f4a5cdf1408035553d43fcee6c29
[ "MIT", "BSD-3-Clause" ]
null
null
null
scripts/piazza_api/piazza.py
ee16b/courserobot
73eecffca1b1f4a5cdf1408035553d43fcee6c29
[ "MIT", "BSD-3-Clause" ]
null
null
null
scripts/piazza_api/piazza.py
ee16b/courserobot
73eecffca1b1f4a5cdf1408035553d43fcee6c29
[ "MIT", "BSD-3-Clause" ]
null
null
null
from .rpc import PiazzaRPC from .network import Network class Piazza(object): """Unofficial Client for Piazza's Internal API :type piazza_rpc: :class:`PiazzaRPC` """ def __init__(self, piazza_rpc=None): self._rpc_api = piazza_rpc if piazza_rpc else None def user_login(self, email=None, p...
32.263158
93
0.619902
cd8f2cf908ee798cddf9d8fde67fe35ae5407dc4
19,963
py
Python
multiple_pseuodo.py
aliayub7/EEC
ffb65e6701f5316b69c1ef3c3c130f00b73a18da
[ "MIT" ]
6
2021-05-25T03:21:07.000Z
2021-11-18T13:38:10.000Z
multiple_pseuodo.py
aliayub7/EEC
ffb65e6701f5316b69c1ef3c3c130f00b73a18da
[ "MIT" ]
null
null
null
multiple_pseuodo.py
aliayub7/EEC
ffb65e6701f5316b69c1ef3c3c130f00b73a18da
[ "MIT" ]
1
2021-05-25T12:07:49.000Z
2021-05-25T12:07:49.000Z
import numpy as np import sys import os import time import pickle from PIL import Image from copy import deepcopy import random from sklearn.model_selection import train_test_split import json #from multiprocessing import Pool as cpu_pool import torch import torch.nn as nn import torch.optim as optim import torchvisio...
50.796438
172
0.676502
23e031889660646a919a64f48d5b58321b03e7a0
638
py
Python
examples/venv10/bin/rst2html.py
OpenPrecincts/verification
83a4486729ddae20b48c81e8c230f41fc28b31ce
[ "MIT" ]
6
2020-06-17T14:41:48.000Z
2022-01-31T03:48:14.000Z
examples/venv10/bin/rst2html.py
OpenPrecincts/verification
83a4486729ddae20b48c81e8c230f41fc28b31ce
[ "MIT" ]
null
null
null
examples/venv10/bin/rst2html.py
OpenPrecincts/verification
83a4486729ddae20b48c81e8c230f41fc28b31ce
[ "MIT" ]
null
null
null
#!/Users/baxterdemers/verification/examples/venv10/bin/python3 # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # 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 HTML. """ try: import loca...
26.583333
78
0.744514
2d7732ed182eb878f86fdc4c5b0cf683870c6448
7,192
py
Python
fatf/utils/metrics/tests/test_metrics_metrics.py
perellonieto/fat-forensics
0fd975ec743c5f44fc29bb2a499a2c1067bdbeff
[ "BSD-3-Clause" ]
null
null
null
fatf/utils/metrics/tests/test_metrics_metrics.py
perellonieto/fat-forensics
0fd975ec743c5f44fc29bb2a499a2c1067bdbeff
[ "BSD-3-Clause" ]
null
null
null
fatf/utils/metrics/tests/test_metrics_metrics.py
perellonieto/fat-forensics
0fd975ec743c5f44fc29bb2a499a2c1067bdbeff
[ "BSD-3-Clause" ]
null
null
null
""" Holds custom distance functions used for FAT-Forensics examples and testing. """ # Author: Kacper Sokol <k.sokol@bristol.ac.uk> # License: new BSD import numpy as np import pytest import fatf.utils.metrics.metrics as fumm CMA = np.array([[1, 1, 1], [1, 2, 1], [1, 1, 1]]) CMA_BIN = np.array([[3, 11], [7, 5]]) d...
33.142857
76
0.695217
9c13652a492fba32d7331efd9994b61a7c8648cb
1,027
py
Python
old_experiments/generate_test_files.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
null
null
null
old_experiments/generate_test_files.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
null
null
null
old_experiments/generate_test_files.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
2
2021-10-03T14:51:38.000Z
2021-11-10T02:54:26.000Z
from .extract_params import ParamLoader from .generate_random_filter import generate_random_directions import os def generate_test_file(base_folder, outfile, x_window, y_window, xpos, ypos): extension = "."+outfile.split(".")[-1] base_paraloader = ParamLoader(os.path.join(base_folder, "base_params"+extension))...
44.652174
116
0.741967
a6f2db8b0a5afe9f71fe31118f784308b7a9e651
723
py
Python
pair-finder/pair_finder/pipeline/steps/download_pull_request_info.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
18
2019-12-27T06:53:39.000Z
2022-03-03T03:05:35.000Z
pair-finder/pair_finder/pipeline/steps/download_pull_request_info.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
13
2020-01-10T17:11:38.000Z
2021-12-13T20:34:38.000Z
pair-finder/pair_finder/pipeline/steps/download_pull_request_info.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
10
2020-01-10T17:36:57.000Z
2021-09-13T19:51:43.000Z
from typing import Any from typing import Dict from typing import Optional from bugswarm.common import log from ...model.pull_request import PullRequest from .step import Step class DownloadPullRequestInfo(Step): def process(self, data: Dict[str, PullRequest], context: dict) -> Optional[Any]: repo = con...
25.821429
84
0.650069
6724691fdf7654f81dc976442eef90b6a6f1e062
599
py
Python
myApp.py
mounirboulwafa/Hello_Medium
98919e93c981c5b324b36efbc9d33216bb228df8
[ "Apache-2.0" ]
2
2020-11-09T19:44:34.000Z
2021-05-29T05:12:57.000Z
myApp.py
mounirboulwafa/Hello_Medium
98919e93c981c5b324b36efbc9d33216bb228df8
[ "Apache-2.0" ]
null
null
null
myApp.py
mounirboulwafa/Hello_Medium
98919e93c981c5b324b36efbc9d33216bb228df8
[ "Apache-2.0" ]
1
2021-08-12T04:52:46.000Z
2021-08-12T04:52:46.000Z
import tkinter from tkinter import messagebox window = tkinter.Tk() window.title(" My Python Application") window.geometry("400x300") window.iconbitmap(default='images\\myicon.ico') window.resizable(0, 0) def show_hello(): messagebox.showinfo('Hello Medium', ' Hello Medium') myimage = tkinter.PhotoImage(file="...
23.038462
69
0.741235
7ed30214a3f6063d2c5b0f6f6aa64a04aba0c9a9
5,697
py
Python
starthinker/task/bigquery/run.py
quan/starthinker
4e392415d77affd4a3d91165d1141ab38efd3b8b
[ "Apache-2.0" ]
1
2020-12-04T17:13:35.000Z
2020-12-04T17:13:35.000Z
starthinker/task/bigquery/run.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
starthinker/task/bigquery/run.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2020 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/l...
39.020548
144
0.579428
b0139cdddebeae1323f98d5a7945d810f770a406
319
py
Python
hydra_plugins/meta_blocks_experiment_searchpath_plugin/meta_blocks_experiment_searchpath_plugin.py
alshedivat/meta-blocks
6f6d93dfaab75766e8afdf9eb2fad17dc79218f2
[ "BSD-3-Clause" ]
124
2020-04-10T00:55:19.000Z
2022-03-12T13:11:01.000Z
hydra_plugins/meta_blocks_experiment_searchpath_plugin/meta_blocks_experiment_searchpath_plugin.py
meteozay/meta-blocks
6f6d93dfaab75766e8afdf9eb2fad17dc79218f2
[ "BSD-3-Clause" ]
2
2020-04-10T17:28:42.000Z
2020-05-12T16:07:38.000Z
hydra_plugins/meta_blocks_experiment_searchpath_plugin/meta_blocks_experiment_searchpath_plugin.py
meteozay/meta-blocks
6f6d93dfaab75766e8afdf9eb2fad17dc79218f2
[ "BSD-3-Clause" ]
8
2020-04-11T04:40:47.000Z
2021-02-17T23:52:21.000Z
from hydra._internal.config_search_path import ConfigSearchPath from hydra.plugins import SearchPathPlugin class MetaBlocksExperimentSearchPathPlugin(SearchPathPlugin): def manipulate_search_path(self, search_path: ConfigSearchPath): search_path.append("meta-blocks", "pkg://meta_blocks.experiment.conf")
39.875
78
0.827586
b9572db192d357b8981ebc4eb1ae466dbd7a5b32
7,938
py
Python
docs/conf.py
davidwrq/medrecords
7dd91d3be9c8c3fe2c9a31906486b5041b30e526
[ "MIT" ]
null
null
null
docs/conf.py
davidwrq/medrecords
7dd91d3be9c8c3fe2c9a31906486b5041b30e526
[ "MIT" ]
null
null
null
docs/conf.py
davidwrq/medrecords
7dd91d3be9c8c3fe2c9a31906486b5041b30e526
[ "MIT" ]
null
null
null
# medrecords documentation build configuration file, created by # sphinx-quickstart. # # 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 # autogenerated file. # # All configuration values have a default; values that a...
31.007813
80
0.695767
a0c15d493a58076760e4b51f3f3fd57e67b846a2
734
py
Python
web/migrations/0011_auto_20191120_2343.py
nonomal/oh-my-rss
68b9284e0acaf44ea389d675b71949177f9f3256
[ "MIT" ]
270
2019-09-05T05:51:19.000Z
2022-03-12T18:26:13.000Z
web/migrations/0011_auto_20191120_2343.py
virtual-emperor/oh-my-rss
3e04899aba4dec27026f67e44193ca8f1eca616a
[ "MIT" ]
6
2019-09-06T03:52:47.000Z
2021-04-10T06:21:14.000Z
web/migrations/0011_auto_20191120_2343.py
virtual-emperor/oh-my-rss
3e04899aba4dec27026f67e44193ca8f1eca616a
[ "MIT" ]
37
2019-09-06T05:13:24.000Z
2022-01-21T08:05:33.000Z
# Generated by Django 2.2.4 on 2019-11-20 15:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0010_auto_20191104_2022'), ] operations = [ migrations.AlterField( model_name='article', name='status', ...
30.583333
150
0.585831
c70e08810f6ee4f8196a0f391c946a514268a0f8
460
py
Python
plotly/validators/scattergl/error_x/_color.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/scattergl/error_x/_color.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/scattergl/error_x/_color.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='color', parent_name='scattergl.error_x', **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=paren...
28.75
76
0.632609
1d5239d11632ab497bcfb3f909b6f8167e1917fb
1,587
py
Python
src/utils/IdealGraphVisualizer/ServerCompiler/src/main/resources/com/sun/hotspot/igv/servercompiler/filters/extract-colors.py
1690296356/jdk
eaf668d1510c28d51e26c397b582b66ebdf7e263
[ "Apache-2.0" ]
null
null
null
src/utils/IdealGraphVisualizer/ServerCompiler/src/main/resources/com/sun/hotspot/igv/servercompiler/filters/extract-colors.py
1690296356/jdk
eaf668d1510c28d51e26c397b582b66ebdf7e263
[ "Apache-2.0" ]
null
null
null
src/utils/IdealGraphVisualizer/ServerCompiler/src/main/resources/com/sun/hotspot/igv/servercompiler/filters/extract-colors.py
1690296356/jdk
eaf668d1510c28d51e26c397b582b66ebdf7e263
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the...
37.785714
78
0.720227
232bc7f1cd9c126422394a8903d8a1d292e9440f
1,672
py
Python
tools/api/permissions_by_hand.py
yang-guangliang/android_guard
704fea36d796d5fbda2badf2237fc9dba74c3a96
[ "Apache-2.0" ]
3
2015-10-23T13:36:07.000Z
2021-07-22T23:30:41.000Z
tools/api/permissions_by_hand.py
yang-guangliang/android_guard
704fea36d796d5fbda2badf2237fc9dba74c3a96
[ "Apache-2.0" ]
null
null
null
tools/api/permissions_by_hand.py
yang-guangliang/android_guard
704fea36d796d5fbda2badf2237fc9dba74c3a96
[ "Apache-2.0" ]
1
2015-10-31T08:38:25.000Z
2015-10-31T08:38:25.000Z
PERMISSIONS_BY_HAND = { "SEND_SMS": { "android.telephony.SmsManager": [ ["F", "getDefault()", "static SmsManager"], ["F", "sendDataMessage(java.lang.String, java.lang.String, short, bytecollections.deque(), PendingIntent, PendingIntent)", "void"], ...
49.176471
230
0.587919