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
64c228b63b5583ac0af742fb24d220034b91b3b1
5,040
py
Python
mesonbuild/scripts/gettext.py
loongarch64/meson
673aff3595d04a82d431dc4903c95227481565ca
[ "Apache-2.0" ]
null
null
null
mesonbuild/scripts/gettext.py
loongarch64/meson
673aff3595d04a82d431dc4903c95227481565ca
[ "Apache-2.0" ]
null
null
null
mesonbuild/scripts/gettext.py
loongarch64/meson
673aff3595d04a82d431dc4903c95227481565ca
[ "Apache-2.0" ]
1
2020-12-07T15:37:35.000Z
2020-12-07T15:37:35.000Z
# Copyright 2016 The Meson development team # 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 ...
40
125
0.626389
388612e98d0613abc9fdf403f4d8b0d3f785cc4e
484
py
Python
backend/pharmacy/api/views/__init__.py
FreakStar03/MedAlthea
c11f6239baba9dc9514fc9b88adabfcab05f3d99
[ "BSD-3-Clause" ]
4
2022-01-28T13:05:07.000Z
2022-01-31T12:24:56.000Z
backend/pharmacy/api/views/__init__.py
FreakStar03/MedAlthea
c11f6239baba9dc9514fc9b88adabfcab05f3d99
[ "BSD-3-Clause" ]
6
2022-01-30T11:53:31.000Z
2022-02-02T06:17:30.000Z
backend/pharmacy/api/views/__init__.py
FreakStar03/MedAlthea
c11f6239baba9dc9514fc9b88adabfcab05f3d99
[ "BSD-3-Clause" ]
3
2022-01-28T13:41:03.000Z
2022-01-30T12:23:11.000Z
# pylint: disable=missing-module-docstring # # Copyright (C) 2022 by YadavGulshan@Github, < https://github.com/YadavGulshan >. # # This file is part of < https://github.com/Yadavgulshan/pharmaService > project, # and is released under the "BSD 3-Clause License Agreement". # Please see < https://github.com/YadavGulshan/...
32.266667
82
0.768595
ab57134ffe6fb986ac5e03e42879e3df291303d7
3,932
py
Python
quick_email/builder.py
murrple-1/send-email-python
c32463a785376daf75575e967acd57b1e3cd5587
[ "MIT" ]
1
2018-04-19T13:10:55.000Z
2018-04-19T13:10:55.000Z
quick_email/builder.py
murrple-1/quick-email-python
c32463a785376daf75575e967acd57b1e3cd5587
[ "MIT" ]
null
null
null
quick_email/builder.py
murrple-1/quick-email-python
c32463a785376daf75575e967acd57b1e3cd5587
[ "MIT" ]
null
null
null
import mimetypes import six from email import encoders from email.mime.audio import MIMEAudio from email.mime.base import MIMEBase from email.mime.image import MIMEImage from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.utils import COMMASPACE, parseaddr, formataddr class...
34.491228
161
0.64293
22e64c40e5585649a3a7f9dbecd216028c5aa85c
2,233
py
Python
labml_nn/normalization/weight_standardization/experiment.py
dongfangyixi/annotated_deep_learning_paper_implementations
d4b82dd2d3ff3230b060a2c8332f35158397cfdb
[ "MIT" ]
1
2021-05-23T23:37:09.000Z
2021-05-23T23:37:09.000Z
labml_nn/normalization/weight_standardization/experiment.py
sachdevkartik/nn
a63f8f307ad5eefbcb537c69c63cea15a6208fb9
[ "MIT" ]
null
null
null
labml_nn/normalization/weight_standardization/experiment.py
sachdevkartik/nn
a63f8f307ad5eefbcb537c69c63cea15a6208fb9
[ "MIT" ]
2
2021-06-16T05:56:35.000Z
2021-10-19T07:33:44.000Z
""" --- title: CIFAR10 Experiment to try Weight Standardization and Batch-Channel Normalization summary: > This trains is a VGG net that uses weight standardization and batch-channel normalization to classify CIFAR10 images. --- # CIFAR10 Experiment to try Weight Standardization and Batch-Channel Normalization ""...
29
95
0.647112
a9220e82329e5f66f6f32ef37040654614064f68
258
py
Python
1047.py
Valarr/Uri
807de771b14b0e60d44b23835ad9ee7423c83471
[ "MIT" ]
null
null
null
1047.py
Valarr/Uri
807de771b14b0e60d44b23835ad9ee7423c83471
[ "MIT" ]
null
null
null
1047.py
Valarr/Uri
807de771b14b0e60d44b23835ad9ee7423c83471
[ "MIT" ]
null
null
null
a, d, c ,e = map(int, input().split()) tot = e-d b = c-a if(b<0): b = 24+(b) if(tot<0): tot=60+(tot) b-=1 if(a==c and d==e): print("O JOGO DUROU 24 HORA(S) E 0 MINUTO(S)") else: print("O JOGO DUROU",b,"HORA(S) E",abs(tot),"MINUTO(S)")
19.846154
60
0.507752
937a19131003f6264a14fb427d28f70f038a7235
3,173
py
Python
utils/common.py
magicaltoast/reddit-attractiveness-dataset
4aa127cb64596b88577e06fe3f5e855423e1d83d
[ "MIT" ]
2
2022-02-17T21:40:30.000Z
2022-02-18T00:52:37.000Z
utils/common.py
magicaltoast/reddit-attractiveness-dataset
4aa127cb64596b88577e06fe3f5e855423e1d83d
[ "MIT" ]
null
null
null
utils/common.py
magicaltoast/reddit-attractiveness-dataset
4aa127cb64596b88577e06fe3f5e855423e1d83d
[ "MIT" ]
null
null
null
from psaw import PushshiftAPI from datetime import datetime from queue import Queue from tqdm.auto import tqdm from threading import Thread from praw import Reddit import re import requests import numpy as np import cv2 import numpy as np import json from pathlib import Path from config import REDDIT_AUTH img_ext = se...
24.221374
84
0.587142
62240657bebacdf2f10e51f406f51c5af92de47b
11,679
py
Python
src/oci/devops/models/update_oke_helm_chart_deploy_stage_details.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/devops/models/update_oke_helm_chart_deploy_stage_details.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/devops/models/update_oke_helm_chart_deploy_stage_details.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
39.323232
245
0.706567
b46c7dcf3d3c5ddbba90e21666ffbac8af4a2f4e
74
py
Python
celloracle_streamlit/streamlit_perturb_simulation_app/__init__.py
morris-lab/CellOracle_streamlit
bf784215cafc5f826a9457def897dc22526bad8c
[ "Apache-2.0" ]
null
null
null
celloracle_streamlit/streamlit_perturb_simulation_app/__init__.py
morris-lab/CellOracle_streamlit
bf784215cafc5f826a9457def897dc22526bad8c
[ "Apache-2.0" ]
null
null
null
celloracle_streamlit/streamlit_perturb_simulation_app/__init__.py
morris-lab/CellOracle_streamlit
bf784215cafc5f826a9457def897dc22526bad8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #from . import motif_analysis __all__ = []
6.727273
29
0.554054
03cfdffcf6e5e07138d772292a9527dab0bf3e14
3,395
py
Python
examples/scripts/image_classification/run_enas.py
FeynmanDNA/singa-auto
e96982adc689335a323a5a32d03b23942e01d09f
[ "Apache-2.0" ]
1
2020-05-11T02:19:47.000Z
2020-05-11T02:19:47.000Z
examples/scripts/image_classification/run_enas.py
FeynmanDNA/singa-auto
e96982adc689335a323a5a32d03b23942e01d09f
[ "Apache-2.0" ]
null
null
null
examples/scripts/image_classification/run_enas.py
FeynmanDNA/singa-auto
e96982adc689335a323a5a32d03b23942e01d09f
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.579545
120
0.731075
220fd3ec782e50072ef214b833c5317f2f6d038a
22,865
py
Python
mindspore/python/mindspore/dataset/text/validators.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
1
2021-12-27T13:42:29.000Z
2021-12-27T13:42:29.000Z
mindspore/python/mindspore/dataset/text/validators.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/dataset/text/validators.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
36.819646
120
0.645834
ef88e9106c9629a8f3b5c709a97328e073057876
267
py
Python
ovm/drivers/driver.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
1
2018-03-20T14:54:10.000Z
2018-03-20T14:54:10.000Z
ovm/drivers/driver.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
null
null
null
ovm/drivers/driver.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from six import with_metaclass from abc import ABCMeta class Driver(with_metaclass(ABCMeta)): def __init__(self): self._params = {} def set_params(self, **kargs): self._params.update(kargs)
16.6875
38
0.655431
43391eb4478e68b79d333eb94c4a69b27598c657
746
py
Python
ci/fetch_pysteps_data.py
alexanderhucheerful/pysteps
efa52506bb9aff5076dc52311b72df872b09045f
[ "BSD-3-Clause" ]
1
2021-08-25T03:07:07.000Z
2021-08-25T03:07:07.000Z
ci/fetch_pysteps_data.py
alexanderhucheerful/pysteps
efa52506bb9aff5076dc52311b72df872b09045f
[ "BSD-3-Clause" ]
null
null
null
ci/fetch_pysteps_data.py
alexanderhucheerful/pysteps
efa52506bb9aff5076dc52311b72df872b09045f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Script used to install the pysteps data in a test environment and set a pystepsrc configuration file that points to that data. The test data is downloaded in the `PYSTEPS_DATA_DIR` environmental variable. After this script is run, the `PYSTEPSRC` environmental variable should be set to PYS...
32.434783
81
0.761394
682e16267f2664af558799467d83e69ff7e6a9a4
56,323
py
Python
test/serde/serde_helpers.py
ntuyoyo0/PySyft
15a0609e95d529ddbb33aa8199ba64cc645a9f8b
[ "Apache-2.0" ]
1
2020-08-14T05:46:52.000Z
2020-08-14T05:46:52.000Z
test/serde/serde_helpers.py
ntuyoyo0/PySyft
15a0609e95d529ddbb33aa8199ba64cc645a9f8b
[ "Apache-2.0" ]
null
null
null
test/serde/serde_helpers.py
ntuyoyo0/PySyft
15a0609e95d529ddbb33aa8199ba64cc645a9f8b
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import pytest import numpy import torch from functools import partial import traceback import io import syft from syft.serde import msgpack # Make dict of type codes CODE = OrderedDict() for cls, simplifier in msgpack.serde.simplifiers.items(): CODE[cls] = simplifier[0] FORCED_...
33.111699
113
0.535909
afa46cdcc5d3923089edd378ff4d22eeabc32083
2,154
py
Python
openstack_dashboard/dashboards/project/network_topology/utils.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
37
2018-10-30T02:47:24.000Z
2021-12-04T10:29:40.000Z
openstack_dashboard/dashboards/project/network_topology/utils.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/network_topology/utils.py
hashsos/hashcloudos-horizon
0cc080ca6777e4a1dac5cbcc6143202baddab176
[ "Apache-2.0" ]
35
2018-11-26T03:36:31.000Z
2021-12-04T10:29:41.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 required by applicable law or agreed to in writing, software # distributed u...
42.235294
78
0.721448
5e144f276bb508b943e604379e0ab18fdc435e65
5,197
py
Python
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/volumes_attached.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/volumes_attached.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/volumes_attached.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class VolumesAttached: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is...
26.515306
90
0.567058
4a17b17f55cc70462f3c6da0e9a412dda1d90844
617
py
Python
datasource_service/tests/test_main.py
airavata-courses/DCoders
cbe19a286f7e28abb031d0fa7f3576275b8999e6
[ "Apache-2.0" ]
1
2022-02-03T08:41:39.000Z
2022-02-03T08:41:39.000Z
datasource_service/tests/test_main.py
airavata-courses/DCoders
cbe19a286f7e28abb031d0fa7f3576275b8999e6
[ "Apache-2.0" ]
23
2022-01-24T04:51:36.000Z
2022-03-08T19:58:17.000Z
datasource_service/tests/test_main.py
airavata-courses/DCoders
cbe19a286f7e28abb031d0fa7f3576275b8999e6
[ "Apache-2.0" ]
null
null
null
""" Pytest for the GET api { Mock the nexrad object so that it doesn't download the radar object for the unit testing } """ from fastapi.testclient import TestClient from datasource_service.main import app test_client = TestClient(app) def test_nexrad_data(): """ Test GET api """ response = test_client.get...
28.045455
104
0.705024
17956ed53b45276c7ce8a9c12d6469a7c6d4f9b3
386
py
Python
app_portfolio_contact/models.py
MichaelDoctor/Portfolio
41d9104ef6d34f8eb146230b19038b445351c713
[ "MIT" ]
null
null
null
app_portfolio_contact/models.py
MichaelDoctor/Portfolio
41d9104ef6d34f8eb146230b19038b445351c713
[ "MIT" ]
4
2021-06-09T18:02:18.000Z
2022-01-13T03:06:24.000Z
app_portfolio_contact/models.py
MichaelDoctor/Portfolio
41d9104ef6d34f8eb146230b19038b445351c713
[ "MIT" ]
null
null
null
from django.db import models from datetime import datetime class Contact(models.Model): name = models.CharField(max_length=150) email = models.CharField(max_length=100) subject = models.CharField(max_length=100) message = models.TextField(blank=True) contact_date = models.DateTimeField(default=dat...
27.571429
73
0.738342
65b98c72acfc11fa334c61d425f16112e48a4d4b
6,419
py
Python
proxy/core/acceptor/pool.py
sakurai-youhei/proxy.py
88af8e2babc08c0ad158de35a5a0351571832388
[ "BSD-3-Clause" ]
1,891
2015-01-17T13:53:36.000Z
2022-03-31T20:24:58.000Z
proxy/core/acceptor/pool.py
yg-park/proxy.py
b7b10de2a8f447d201bbb1414e39aa4bc4dcaf9f
[ "BSD-3-Clause" ]
909
2015-03-04T06:27:37.000Z
2022-03-31T04:26:16.000Z
proxy/core/acceptor/pool.py
yg-park/proxy.py
b7b10de2a8f447d201bbb1414e39aa4bc4dcaf9f
[ "BSD-3-Clause" ]
531
2015-02-05T16:43:01.000Z
2022-03-31T11:49:21.000Z
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE...
34.510753
88
0.651503
f148ca3a9a323b038fd8f550d618063c2d934dc3
1,265
py
Python
arcfire/core/settings/test.py
allanberry/arcfire
c41bad3ae7792406e169f9f7acd02f7e52467cbe
[ "MIT" ]
null
null
null
arcfire/core/settings/test.py
allanberry/arcfire
c41bad3ae7792406e169f9f7acd02f7e52467cbe
[ "MIT" ]
38
2015-10-21T19:10:36.000Z
2015-12-18T11:57:12.000Z
arcfire/core/settings/test.py
allanberry/arcfire
c41bad3ae7792406e169f9f7acd02f7e52467cbe
[ "MIT" ]
null
null
null
from .base import * ALLOWED_HOSTS = [ 'localhost', '127.0.0.1', '0.0.0.0' ] DEBUG = True # If debug is enabled, Compressor is turned off; # this will manually activate # it. This is important to provide Django tags (like 'static') to JS files # COMPRESS_ENABLED = False # However, in development, we ha...
23.425926
78
0.616601
64517f2d79950d88b7b8bd3f77ad88c15c43f0a1
559
py
Python
continuous_control/tests/unit/unit_test_suites.py
kadysongbb/dr-trpo
c4d994944226dccc74609377c0e1e0589c84acba
[ "MIT" ]
4
2021-05-07T00:59:50.000Z
2022-01-15T01:43:09.000Z
continuous_control/tests/unit/unit_test_suites.py
kadysongbb/dr-trpo
c4d994944226dccc74609377c0e1e0589c84acba
[ "MIT" ]
null
null
null
continuous_control/tests/unit/unit_test_suites.py
kadysongbb/dr-trpo
c4d994944226dccc74609377c0e1e0589c84acba
[ "MIT" ]
2
2020-07-13T18:46:52.000Z
2020-07-17T22:03:11.000Z
import os import unittest import tests.unit.GAC.networks as test_networks import tests.unit.GAC.helpers as helpers def create_and_run_test_suite(test_module): print('Running tests from: ' + str(test_module.__file__)) loader = unittest.TestLoader() suite = unittest.TestSuite() suite.addTests(loader.l...
20.703704
61
0.747764
c6663c476bbc083670301d0b8ac3af5c54b27feb
128
py
Python
projet-2021/iads/__init__.py
tripincloud/Machine-Learning-Google-Play-Store
acd5189dd194190d2877180fa9ae5e14ec1d9bda
[ "MIT" ]
null
null
null
projet-2021/iads/__init__.py
tripincloud/Machine-Learning-Google-Play-Store
acd5189dd194190d2877180fa9ae5e14ec1d9bda
[ "MIT" ]
null
null
null
projet-2021/iads/__init__.py
tripincloud/Machine-Learning-Google-Play-Store
acd5189dd194190d2877180fa9ae5e14ec1d9bda
[ "MIT" ]
1
2022-03-07T17:13:47.000Z
2022-03-07T17:13:47.000Z
# -*- coding: utf-8 -*- """ Package: iads File: __init__.py Année: LU3IN026 - semestre 2 - 2020-2021, Sorbonne Université """
14.222222
61
0.648438
36de06e30ead5fb40685b6aa38604eef8b563195
95
py
Python
tests/sanity_test.py
cmccandless/homectl
338b09583b9817a11bf55df7c4db6143b43d74f9
[ "MIT" ]
7
2018-04-20T03:43:43.000Z
2021-11-18T23:13:17.000Z
tests/sanity_test.py
lifeModder19135/vstask
1c256618c6b3ed0cc4c1ac50b6eca1a23881f9c5
[ "MIT" ]
3
2018-10-16T23:39:11.000Z
2020-06-09T17:16:32.000Z
tests/sanity_test.py
cmccandless/easy_getch
fdd23f308cdd830d599c522a3b6d56ade3cf76c2
[ "MIT" ]
4
2020-11-02T02:21:51.000Z
2022-02-23T07:21:47.000Z
import unittest class SanityTest(unittest.TestCase): def test_sanity(self): pass
13.571429
36
0.705263
6c206db21e0c0e9ee1a70471d4f949a6e41e1232
712
py
Python
s02/method/handler.py
hiparker/study-python
262f3f8f22f886e83c3bd19b7326e92257ead556
[ "Apache-2.0" ]
1
2021-01-07T14:29:34.000Z
2021-01-07T14:29:34.000Z
s02/method/handler.py
hiparker/study-python
262f3f8f22f886e83c3bd19b7326e92257ead556
[ "Apache-2.0" ]
null
null
null
s02/method/handler.py
hiparker/study-python
262f3f8f22f886e83c3bd19b7326e92257ead556
[ "Apache-2.0" ]
null
null
null
""" 处理方法 """ # 处理打印 def println(str): print(str) # 验证是否非法 def inputConditionValidata(condition, inputTup): # 非法判断 try: inputNumT = int(condition) # 参数非法 -- 为空 if inputNumT is None: return False # 输入参数不包含 ifExist = inputNumT in inputTup if not i...
19.243243
63
0.519663
f1fea52ae670eb331346c917133f091f04bab89e
3,295
py
Python
clean_res_helper.py
hcq0618/Android-CleanResource
c65a4fc0ab6ec6b9e49ac88cb5208c1f35b643bf
[ "MIT" ]
9
2017-06-23T06:38:37.000Z
2021-09-26T13:18:10.000Z
clean_res_helper.py
hcq0618/Android-CleanResource
c65a4fc0ab6ec6b9e49ac88cb5208c1f35b643bf
[ "MIT" ]
null
null
null
clean_res_helper.py
hcq0618/Android-CleanResource
c65a4fc0ab6ec6b9e49ac88cb5208c1f35b643bf
[ "MIT" ]
1
2018-09-26T12:36:32.000Z
2018-09-26T12:36:32.000Z
#!/usr/local/bin/python # -*-coding:utf-8-*- import json import os import sys class ConfigReader: def __init__(self): config_path = os.path.abspath('.') + os.sep + "clean_res_config.json" if not os.path.exists(config_path): print "Warning:there is no file - " + config_path ...
28.162393
107
0.58786
598eb2a3e5b0ab7aee2ef0a496b4a7b7450221f1
377
py
Python
test/test_coordinates.py
simonpf/gprof_nn
c00fb88266d665e82fd872a77768293945abf301
[ "MIT" ]
1
2021-08-05T04:00:53.000Z
2021-08-05T04:00:53.000Z
test/test_coordinates.py
simonpf/gprof_nn
c00fb88266d665e82fd872a77768293945abf301
[ "MIT" ]
null
null
null
test/test_coordinates.py
simonpf/gprof_nn
c00fb88266d665e82fd872a77768293945abf301
[ "MIT" ]
null
null
null
""" Test for the coordinates submodule. """ import numpy as np from gprof_nn.coordinates import latlon_to_ecef def test_latlon_to_ecef(): lons = [0, 90, 180, 270, 360] lats = [0, 0, 0, 0, 0] x, y, z = latlon_to_ecef(lons, lats) assert np.all(np.isclose(x[[1, 3]], 0.0)) assert np.all(np.isclose(y...
22.176471
48
0.62069
dc1a10f06992e81f44bc7fe33f6b0d854ab2c7ac
194,456
py
Python
lbry/lbry/extras/daemon/Daemon.py
ju-sh/lbry-sdk
077281a77a82cfdfca0ec02922d4e582233bae43
[ "MIT" ]
null
null
null
lbry/lbry/extras/daemon/Daemon.py
ju-sh/lbry-sdk
077281a77a82cfdfca0ec02922d4e582233bae43
[ "MIT" ]
null
null
null
lbry/lbry/extras/daemon/Daemon.py
ju-sh/lbry-sdk
077281a77a82cfdfca0ec02922d4e582233bae43
[ "MIT" ]
null
null
null
import os import asyncio import logging import json import time import inspect import typing import base58 import random import ecdsa import hashlib from urllib.parse import urlencode, quote from typing import Callable, Optional, List from binascii import hexlify, unhexlify from traceback import format_exc from aiohttp...
47.672469
120
0.555025
2e482fc9bf05b969026d957e06273747c0f81cf3
847
py
Python
venv_py36/Lib/site-packages/PyInstaller/hooks/hook-pydoc.py
PeterMoresco/RefriCalcSoft
1ed728ef1937fdda248cee19d97b3d13bd98af03
[ "MIT" ]
1
2018-09-12T06:30:21.000Z
2018-09-12T06:30:21.000Z
venv_py36/Lib/site-packages/PyInstaller/hooks/hook-pydoc.py
PeterMoresco/RefriCalcSoft
1ed728ef1937fdda248cee19d97b3d13bd98af03
[ "MIT" ]
1
2018-09-12T06:32:17.000Z
2018-09-12T19:03:50.000Z
venv/lib/python3.6/site-packages/PyInstaller/hooks/hook-pydoc.py
rilakkyuma/tweetdelete
5ac4001b2ba7c7d87379e616c93361c2090ed4ae
[ "MIT" ]
2
2018-12-29T07:49:59.000Z
2020-03-18T02:44:31.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2005-2018, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
33.88
78
0.62928
66a1fea5f9fbb55747a42dabb0b5bb2b5d891907
583
py
Python
P897.py
Muntaha-Islam0019/Leetcode-Solutions
0bc56ce43a6d8ad10461b69078166a2a5b913e7f
[ "MIT" ]
null
null
null
P897.py
Muntaha-Islam0019/Leetcode-Solutions
0bc56ce43a6d8ad10461b69078166a2a5b913e7f
[ "MIT" ]
null
null
null
P897.py
Muntaha-Islam0019/Leetcode-Solutions
0bc56ce43a6d8ad10461b69078166a2a5b913e7f
[ "MIT" ]
null
null
null
class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def increasingBST(self, root): """ :type root: TreeNode :rtype: TreeNode """ def increasingBSTHelper(root, tail): i...
26.5
62
0.555746
c655eed4110d81f441ae2f7440e6a17791bd9285
4,085
py
Python
test/functional/feature_minchainwork.py
derek-mckinney/GrumpyCat
4f3a54396e55f4bd8b94ec0b59756bceb335d457
[ "MIT" ]
431
2015-01-21T03:57:18.000Z
2022-03-30T17:17:18.000Z
test/functional/feature_minchainwork.py
derek-mckinney/GrumpyCat
4f3a54396e55f4bd8b94ec0b59756bceb335d457
[ "MIT" ]
140
2015-02-04T07:15:14.000Z
2022-02-07T03:37:28.000Z
test/functional/feature_minchainwork.py
derek-mckinney/GrumpyCat
4f3a54396e55f4bd8b94ec0b59756bceb335d457
[ "MIT" ]
249
2015-01-03T19:48:55.000Z
2022-02-23T09:46:33.000Z
#!/usr/bin/env python3 # Copyright (c) 2009-2019 The Bitcoin Core developers # Copyright (c) 2014-2019 The DigiByte Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test logic for setting nMinimumChainWork on comm...
43.457447
108
0.70355
94b9d8da4857c0aee72b42480c8c11c8eaac3409
13,028
py
Python
etl/parsers/etw/Intel_iaLPSS2_GPIO2.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Intel_iaLPSS2_GPIO2.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Intel_iaLPSS2_GPIO2.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Intel-iaLPSS2-GPIO2 GUID : 63848cff-3ec7-4ddf-8072-5f95e8c8eb98 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.parsers.e...
26.75154
123
0.664031
8837caff6dc2c9b603f8fbb3ff1b11a1dfe33e75
3,834
py
Python
lm_eval/tasks/cbt.py
JunShern/lm-evaluation-harness
84aa15c6e4cb65adf39c2dccf91a799cc7e6440a
[ "MIT" ]
203
2021-01-08T16:39:09.000Z
2022-03-31T06:03:16.000Z
lm_eval/tasks/cbt.py
JunShern/lm-evaluation-harness
84aa15c6e4cb65adf39c2dccf91a799cc7e6440a
[ "MIT" ]
183
2020-12-27T03:41:08.000Z
2022-03-19T21:56:53.000Z
lm_eval/tasks/cbt.py
JunShern/lm-evaluation-harness
84aa15c6e4cb65adf39c2dccf91a799cc7e6440a
[ "MIT" ]
73
2021-01-05T22:37:01.000Z
2022-03-29T10:14:53.000Z
import numpy as np from lm_eval.base import rf from lm_eval.metrics import mean from .common import HFTask class CBTBase(HFTask): """The Children’s Book Test (CBT) from the paper: https://research.fb.com/wp-content/uploads/2016/11/the_goldilocks_principle_reading_children_s_books_with_explicit_memory_represen...
33.631579
145
0.588419
e5026540ae7f67727310455a26be832de3cfaebd
6,432
py
Python
devops.py
tiholic/django-pgtrigger
ef8878115bef1a933405ab86d7f7c117252d970c
[ "BSD-3-Clause" ]
135
2020-06-27T14:02:46.000Z
2021-05-27T01:07:41.000Z
devops.py
tiholic/django-pgtrigger
ef8878115bef1a933405ab86d7f7c117252d970c
[ "BSD-3-Clause" ]
25
2021-06-19T20:28:52.000Z
2022-03-22T23:14:59.000Z
devops.py
tiholic/django-pgtrigger
ef8878115bef1a933405ab86d7f7c117252d970c
[ "BSD-3-Clause" ]
8
2021-06-12T14:06:30.000Z
2022-02-25T15:10:32.000Z
#!/usr/bin/env python3 """ Devops functions for this package. Includes functions for automated package deployment, changelog generation, and changelog checking. This script is generated by the template at https://github.com/Opus10/public-django-app-template Do not change this script! Any fixes or updates to this scr...
30.056075
79
0.670087
ef3dd476a843b9914629c865df3a2c4d708eb27a
1,492
py
Python
tank/tflite/albert.py
NodLabs/SHARK
71f5cfcb30b3e7032c6d1d9f952860ff7769afa0
[ "Apache-2.0" ]
62
2022-02-07T22:52:25.000Z
2022-03-30T06:35:52.000Z
tank/tflite/albert.py
NodLabs/SHARK
71f5cfcb30b3e7032c6d1d9f952860ff7769afa0
[ "Apache-2.0" ]
2
2022-02-22T05:47:45.000Z
2022-03-22T05:01:50.000Z
tank/tflite/albert.py
NodLabs/SHARK
71f5cfcb30b3e7032c6d1d9f952860ff7769afa0
[ "Apache-2.0" ]
4
2022-02-25T13:09:36.000Z
2022-03-21T09:09:51.000Z
# RUN: %PYTHON %s import numpy as np from shark.shark_importer import SharkImporter import pytest model_path = "https://tfhub.dev/tensorflow/lite-model/albert_lite_base/squadv1/1?lite-format=tflite" # Inputs modified to be useful albert inputs. def generate_inputs(input_details): for input in input_details: ...
27.62963
100
0.642091
cfdba5f0ac1fc9774a273d6af38000eaa2338e95
764
py
Python
api/resources/subscriber.py
odbalogun/areavas-bl
bde6696e52cc1b1f780b26803f4071edcc6ca428
[ "Apache-2.0" ]
null
null
null
api/resources/subscriber.py
odbalogun/areavas-bl
bde6696e52cc1b1f780b26803f4071edcc6ca428
[ "Apache-2.0" ]
null
null
null
api/resources/subscriber.py
odbalogun/areavas-bl
bde6696e52cc1b1f780b26803f4071edcc6ca428
[ "Apache-2.0" ]
null
null
null
from flask_restful import Resource from flasgger import swag_from from api.repositories.subscriber import SubRepository from api.models import Subscription from api.utils.extensions import ma from api.utils.responses import response_success class SubSchema(ma.SQLAlchemySchema): class Meta: fields = ('id',...
30.56
113
0.695026
71cad7e66b1831bf9d6cb42d161b52520cdc32ac
207
py
Python
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from ._client import KeyClient __all__ = ["KeyClient"]
25.875
38
0.47343
b490859bf7b42c45eed7f28c19aff78b157b1632
1,987
py
Python
tab_rounds/generate_round/generate_round.py
Andrew-Talley/mock-trial-tab
493b0b843d34c732dec724e8ab51f355835a3f46
[ "MIT" ]
1
2020-10-10T20:24:53.000Z
2020-10-10T20:24:53.000Z
tab_rounds/generate_round/generate_round.py
Andrew-Talley/mock-trial-tab
493b0b843d34c732dec724e8ab51f355835a3f46
[ "MIT" ]
1
2020-10-10T20:30:20.000Z
2020-10-10T20:30:20.000Z
tab_rounds/generate_round/generate_round.py
Andrew-Talley/mock-trial-tab
493b0b843d34c732dec724e8ab51f355835a3f46
[ "MIT" ]
null
null
null
import random from typing import Tuple, List from itertools import zip_longest, chain from collections import defaultdict from tab_rounds.generate_round.resolve_impermissibles import resolve_impermissibles from tab_rounds.generate_round.utilities import Side, get_order_info_for_team def snake_array(arr): def combi...
33.677966
101
0.682436
7cbfbb6d7b3b8ce4a3de074a465be0c35e1ee724
8,136
py
Python
bottleneck/src/template/move/move_median.py
fhal/bottleneck
7147ad85fadbc9c6ffccb05224efa7c380ded4ee
[ "BSD-2-Clause" ]
1
2015-01-30T19:49:12.000Z
2015-01-30T19:49:12.000Z
bottleneck/src/template/move/move_median.py
fhal/bottleneck
7147ad85fadbc9c6ffccb05224efa7c380ded4ee
[ "BSD-2-Clause" ]
null
null
null
bottleneck/src/template/move/move_median.py
fhal/bottleneck
7147ad85fadbc9c6ffccb05224efa7c380ded4ee
[ "BSD-2-Clause" ]
null
null
null
"move_median template" from copy import deepcopy import bottleneck as bn __all__ = ["move_median"] FLOAT_DTYPES = [x for x in bn.dtypes if 'float' in x] INT_DTYPES = [x for x in bn.dtypes if 'int' in x] # Float dtypes (no axis=None) ----------------------------------------------- floats = {} floats['dtypes'] = FL...
31.053435
81
0.590708
48a052a7646e6b86413bc2e3d05ebd01c99d5913
18,518
py
Python
pyrpm/spec.py
bkircher/python-rpm-spec
817be80f1b6ad6045893881b8e57ef374c3ea458
[ "MIT" ]
29
2017-02-14T11:57:56.000Z
2022-01-26T06:24:04.000Z
pyrpm/spec.py
bkircher/python-rpm-spec
817be80f1b6ad6045893881b8e57ef374c3ea458
[ "MIT" ]
39
2017-01-21T13:26:43.000Z
2021-06-22T10:26:03.000Z
pyrpm/spec.py
bkircher/python-rpm-spec
817be80f1b6ad6045893881b8e57ef374c3ea458
[ "MIT" ]
18
2017-01-20T08:38:24.000Z
2021-12-15T07:31:48.000Z
"""Python module for parsing RPM spec files. RPMs are build from a package's sources along with a spec file. The spec file controls how the RPM is built. This module allows you to parse spec files and gives you simple access to various bits of information that is contained in the spec file. Current status: This modul...
34.742964
124
0.605249
29bca09def29a4f07c17006fe1e0c9532d6ad8b9
6,856
py
Python
platform/core/polyaxon/db/models/jobs.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/db/models/jobs.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/db/models/jobs.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Optional from hestia.datetime_typing import AwareDT from django.conf import settings from django.db import models from django.utils.functional import cached_property import auditor import compiler from constants.cloning_strategies import CloningStrategy from constants.k8s_jobs import JOB_NA...
33.607843
85
0.637398
789c383a5069f0e0e1c876a26c200c7bd5c2f50e
8,117
py
Python
.molecule/default/files/polish/lib/workchain.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
.molecule/default/files/polish/lib/workchain.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,466
2016-12-24T01:03:52.000Z
2019-07-04T13:41:08.000Z
.molecule/default/files/polish/lib/workchain.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2016-12-23T16:28:00.000Z
2019-07-01T15:55:20.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
32.468
115
0.63558
f299c98fdfd221c6ad6c1f200b5815119307e5ce
19,369
py
Python
tom_education/views.py
joesingo/tom_education
9bf9ea3d465f83040e4618ce89efbab2a087b2fa
[ "MIT" ]
1
2019-07-16T11:20:55.000Z
2019-07-16T11:20:55.000Z
tom_education/views.py
joesingo/tom_education
9bf9ea3d465f83040e4618ce89efbab2a087b2fa
[ "MIT" ]
45
2019-07-05T08:49:17.000Z
2019-09-23T14:02:17.000Z
tom_education/views.py
joesingo/tom_education
9bf9ea3d465f83040e4618ce89efbab2a087b2fa
[ "MIT" ]
null
null
null
from dataclasses import dataclass from datetime import datetime import json from typing import Iterable import csv import logging from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import PermissionDenied from django.db.utils import IntegrityError ...
38.127953
105
0.662812
15b8b559effaf60eb7c35ae83aca225e34563cb8
12,759
py
Python
shunt/shunt/shunt.py
velezj/project-manager
92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72
[ "MIT" ]
null
null
null
shunt/shunt/shunt.py
velezj/project-manager
92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72
[ "MIT" ]
null
null
null
shunt/shunt/shunt.py
velezj/project-manager
92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72
[ "MIT" ]
null
null
null
import shunt.logutils as logutils logger = logutils.getLogger( __name__ ) import shunt.project_paths as project_paths import shunt.shuntfile as shuntfile import pathlib import os import os.path import subprocess import shutil import jinja2 ##==========================================================================...
37.090116
304
0.569715
5e4d7fd00cbffb5ba28df5f925664e7ded4cbecf
2,293
py
Python
cryptodoge/types/header_block.py
grayfallstown-cryptodoge/cryptodoge
ffeb5218ce184a56073a5dc0ac5acddba3728bd4
[ "Apache-2.0" ]
10
2021-08-21T17:41:51.000Z
2022-02-09T04:28:12.000Z
cryptodoge/types/header_block.py
grayfallstown-cryptodoge/cryptodoge
ffeb5218ce184a56073a5dc0ac5acddba3728bd4
[ "Apache-2.0" ]
1
2021-12-15T21:23:38.000Z
2021-12-15T21:23:38.000Z
cryptodoge/types/header_block.py
grayfallstown-cryptodoge/cryptodoge
ffeb5218ce184a56073a5dc0ac5acddba3728bd4
[ "Apache-2.0" ]
2
2021-08-21T18:22:59.000Z
2021-12-10T07:12:18.000Z
from dataclasses import dataclass from typing import List, Optional from cryptodoge.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from cryptodoge.types.blockchain_format.reward_chain_block import RewardChainBlock from cryptodoge.types.blockchain_format.vdf import VDFProof fr...
36.983871
108
0.758395
b078a0d6a355f95b480cbfa4dc9d637fdf591e95
18,003
py
Python
temp/module_Test.py
awesome-davian/SALT_FrontEnd
0c2060945099ab43e612ce72a5ee27f3ebea9719
[ "MIT" ]
4
2017-08-16T11:55:25.000Z
2020-11-22T09:48:22.000Z
temp/module_Test.py
awesome-davian/FrontEnd
0c2060945099ab43e612ce72a5ee27f3ebea9719
[ "MIT" ]
null
null
null
temp/module_Test.py
awesome-davian/FrontEnd
0c2060945099ab43e612ce72a5ee27f3ebea9719
[ "MIT" ]
null
null
null
import matlab.engine import logging import math import constants import numpy as np import pymongo import sys from nltk import PorterStemmer import time from datetime import datetime from operator import itemgetter porter_stemmer=PorterStemmer(); sys.path.insert(0, '../') conn = pymongo.MongoClient("...
27.911628
198
0.641004
adc84a2d151bda1d2187c9c3eb63cec0abd3168b
13,870
py
Python
tests/test_cds.py
PhilippeCharlot22/python-onapsdk
5f1398d9c344a985e830bba36286f95c46e4807c
[ "Apache-2.0" ]
null
null
null
tests/test_cds.py
PhilippeCharlot22/python-onapsdk
5f1398d9c344a985e830bba36286f95c46e4807c
[ "Apache-2.0" ]
10
2021-09-20T15:42:47.000Z
2021-09-23T12:49:51.000Z
tests/test_cds.py
PhilippeCharlot22/python-onapsdk
5f1398d9c344a985e830bba36286f95c46e4807c
[ "Apache-2.0" ]
2
2021-09-20T13:53:12.000Z
2021-09-21T08:05:58.000Z
# SPDX-License-Identifier: Apache-2.0 import json import os.path from pathlib import Path from tempfile import TemporaryDirectory from unittest.mock import MagicMock, patch, PropertyMock, mock_open from pytest import raises from onapsdk.cds.blueprint import Blueprint, Mapping, MappingSet, Workflow from onapsdk.cds.bl...
42.676923
2,358
0.659553
3fe0576c14ed15713ddeeb82e75e25493b457721
9,968
py
Python
ngraph/frontends/neon/saver.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/neon/saver.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/neon/saver.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
#!/usr/bin/env python # ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # 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 ...
42.417021
97
0.541734
f557e164f78347b2ce7a034f2814a912577a994e
19,255
py
Python
projects/WSL/wsl/data/datasets/builtin_meta.py
shenyunhang/PDSL
ade1e0cf4435c9252b4384100a82bb45b026b7c2
[ "Apache-2.0" ]
6
2021-11-03T09:07:39.000Z
2022-02-06T15:36:56.000Z
projects/WSL/wsl/data/datasets/builtin_meta.py
shenyunhang/PDSL
ade1e0cf4435c9252b4384100a82bb45b026b7c2
[ "Apache-2.0" ]
2
2021-10-17T16:55:59.000Z
2022-03-27T02:46:38.000Z
projects/WSL/wsl/data/datasets/builtin_meta.py
shenyunhang/PDSL
ade1e0cf4435c9252b4384100a82bb45b026b7c2
[ "Apache-2.0" ]
4
2021-11-03T09:07:41.000Z
2022-02-06T15:37:03.000Z
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. """ Note: For your custom dataset, there is no need to hard-code metadata anywhere in the code. For example, for COCO-format dataset, metadata will be obtained automatically when calling `load_coco_json`. For other dataset, metadata may also be...
54.85755
96
0.559283
cf7c1a64e90180b352085d35175416bf2b20ccf5
2,881
py
Python
taggit/migrations/0002_auto__add_tagtransform.py
theatlantic/django-taggit
ec6c3a6e8b37f4c60d7bacd10c44462562fc781b
[ "BSD-3-Clause" ]
null
null
null
taggit/migrations/0002_auto__add_tagtransform.py
theatlantic/django-taggit
ec6c3a6e8b37f4c60d7bacd10c44462562fc781b
[ "BSD-3-Clause" ]
null
null
null
taggit/migrations/0002_auto__add_tagtransform.py
theatlantic/django-taggit
ec6c3a6e8b37f4c60d7bacd10c44462562fc781b
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'TagTransform' db.create_table('taggit_tagtransform', ( ('type', self.gf('d...
49.672414
174
0.570982
b9bc9c09f8176a272168badc1e96a8a490a338c8
2,300
py
Python
mindspore/ops/_op_impl/tbe/maximum_grad.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
7
2020-05-24T03:19:26.000Z
2020-05-24T03:20:00.000Z
mindspore/ops/_op_impl/tbe/maximum_grad.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
mindspore/ops/_op_impl/tbe/maximum_grad.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
44.230769
105
0.668261
7500dfb7969f18eba67759b5bfd609d1b09289e6
2,673
py
Python
test/unit/ggrc/notification/test_should_receive.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-12T23:46:00.000Z
2019-01-12T23:46:00.000Z
test/unit/ggrc/notification/test_should_receive.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/unit/ggrc/notification/test_should_receive.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Test should_receive function in the notifications.common module """ import unittest from mock import Mock from ggrc.notifications.common import should_receive class TestShouldReceive(unittest.TestCas...
33.4125
78
0.688739
ed180ab7f45d33e3f9678977fbb7026c1d80c230
5,387
py
Python
nikola/plugins/task/indexes.py
jonasstein/nikola
9b94d4581f66d72f8ceb3772e458ca66cb7eb869
[ "MIT" ]
null
null
null
nikola/plugins/task/indexes.py
jonasstein/nikola
9b94d4581f66d72f8ceb3772e458ca66cb7eb869
[ "MIT" ]
null
null
null
nikola/plugins/task/indexes.py
jonasstein/nikola
9b94d4581f66d72f8ceb3772e458ca66cb7eb869
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2012-2018 Roberto Alsina 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 # the rights t...
39.036232
114
0.671802
3bb3ef7c1c388359e01fa73af56015e6814389bc
2,120
py
Python
src/prpy/perception/perception_helper.py
MisoRobotics/prpy
afbc8e9c3a8e4f4dc31261782962e12eb4b0ca10
[ "BSD-3-Clause" ]
53
2015-02-07T04:58:23.000Z
2022-03-07T15:49:07.000Z
src/prpy/perception/perception_helper.py
MisoRobotics/prpy
afbc8e9c3a8e4f4dc31261782962e12eb4b0ca10
[ "BSD-3-Clause" ]
283
2015-01-01T17:16:37.000Z
2018-05-09T23:51:48.000Z
src/prpy/perception/perception_helper.py
MisoRobotics/prpy
afbc8e9c3a8e4f4dc31261782962e12eb4b0ca10
[ "BSD-3-Clause" ]
28
2015-02-20T01:37:38.000Z
2021-03-12T07:05:23.000Z
#!/usr/bin/env python # Copyright (c) 2016, Carnegie Mellon University # All rights reserved. # Authors: Gilwoo Lee <gilwool@cs.cmu.edu> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of source c...
45.106383
79
0.757075
1c69bd13b712e4c64ed9e1e288e733666af172aa
3,882
py
Python
mmdet/datasets/imagenet.py
Nitin-Mane/MMDET
7410b25f27c200719482955cb4a8a1c381e67e04
[ "Apache-2.0" ]
2
2019-10-15T09:42:33.000Z
2020-02-05T11:37:09.000Z
mmdet/datasets/imagenet.py
Nitin-Mane/MMDET
7410b25f27c200719482955cb4a8a1c381e67e04
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/imagenet.py
Nitin-Mane/MMDET
7410b25f27c200719482955cb4a8a1c381e67e04
[ "Apache-2.0" ]
1
2020-07-31T18:42:13.000Z
2020-07-31T18:42:13.000Z
import numpy as np from .custom import CustomDataset from .custom_pair import CustomPairDataset from .custom_block import CustomBlockDataset from .registry import DATASETS @DATASETS.register_module class ImageNetDETVIDDataset(CustomDataset): CLASSES = ('airplane','antelope','bear','bicycle','bird','bus', ...
43.133333
84
0.621587
8385c0c07b87e79a22c0d1b1aece4c6028665645
447
py
Python
wargames/overthewire-vortex/level9/win.py
spchal/pwntools-write-ups
dc58c50ef9dcee9ecbf8ba14a6b60f7af355afe1
[ "MIT" ]
456
2015-01-07T15:08:46.000Z
2022-03-24T10:34:27.000Z
wargames/overthewire-vortex/level9/win.py
spchal/pwntools-write-ups
dc58c50ef9dcee9ecbf8ba14a6b60f7af355afe1
[ "MIT" ]
15
2015-03-08T23:51:24.000Z
2019-06-22T16:03:03.000Z
wargames/overthewire-vortex/level9/win.py
spchal/pwntools-write-ups
dc58c50ef9dcee9ecbf8ba14a6b60f7af355afe1
[ "MIT" ]
133
2015-01-08T19:17:40.000Z
2022-02-12T23:00:33.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from pwn import * level = 9 host = 'vortex.labs.overthewire.org' user = 'vortex%i' % level chal = 'vortex%i' % level password = args['PASSWORD'] passfile = '/etc/vortex_pass/vortex%i' % (level+1) binary = '/vortex/%s' % chal shell = ssh(host=host, u...
24.833333
55
0.642058
1931e3d5ebed11d2b47003411a1aea4fdbb76a2a
290
py
Python
rimbaud/articles/models.py
dbousfira/rimbaud
9be52713360adef64b4134d648a88c9aac9b9d4d
[ "MIT" ]
null
null
null
rimbaud/articles/models.py
dbousfira/rimbaud
9be52713360adef64b4134d648a88c9aac9b9d4d
[ "MIT" ]
null
null
null
rimbaud/articles/models.py
dbousfira/rimbaud
9be52713360adef64b4134d648a88c9aac9b9d4d
[ "MIT" ]
null
null
null
from django.db import models class Article(models.Model): title = models.CharField(max_length=200) desc = models.CharField(max_length=200) article = models.TextField(max_length=5000) pub_date = models.DateTimeField('date published') visibility = models.BooleanField()
29
53
0.744828
cd99f1774a37d89be7a8db3978c6863abd261491
10,407
py
Python
tensorflow/python/kernel_tests/matmul_op_test.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
2
2018-12-12T23:33:05.000Z
2019-02-26T07:20:22.000Z
tensorflow/python/kernel_tests/matmul_op_test.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/matmul_op_test.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
null
null
null
# 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...
38.261029
80
0.63957
686065ddde5554962e76d22150225acc8f942543
22,844
py
Python
build/tools/repopick.py
aryaman895/vendor_xtended
654cf88ad605f34cfc5624b473dd4b098ce9bd2f
[ "Apache-2.0" ]
null
null
null
build/tools/repopick.py
aryaman895/vendor_xtended
654cf88ad605f34cfc5624b473dd4b098ce9bd2f
[ "Apache-2.0" ]
null
null
null
build/tools/repopick.py
aryaman895/vendor_xtended
654cf88ad605f34cfc5624b473dd4b098ce9bd2f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2013-15 The CyanogenMod Project # (C) 2017 The LineageOS 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.apach...
45.415507
156
0.587682
dd5d15506f5f50f59919538311551a0e0ff11fb1
18,745
py
Python
python/src/nnabla/utils/data_source_implements.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
python/src/nnabla/utils/data_source_implements.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
python/src/nnabla/utils/data_source_implements.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
# Copyright 2017,2018,2019,2020,2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # 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-...
36.187259
125
0.570285
179bdbdd3c783962e1ae280b27542f0d11deb985
86,944
py
Python
tests/track/loader_test.py
paulcoghlan/rally
76f82265814836565ccf53edda3d5426e4c2db8a
[ "Apache-2.0" ]
null
null
null
tests/track/loader_test.py
paulcoghlan/rally
76f82265814836565ccf53edda3d5426e4c2db8a
[ "Apache-2.0" ]
null
null
null
tests/track/loader_test.py
paulcoghlan/rally
76f82265814836565ccf53edda3d5426e4c2db8a
[ "Apache-2.0" ]
null
null
null
import re import unittest.mock as mock from unittest import TestCase import jinja2 from esrally import exceptions, config from esrally.utils import io from esrally.track import loader, track def strip_ws(s): return re.sub(r"\s", "", s) class StaticClock: NOW = 1453362707.0 @staticmethod def now()...
44.111618
140
0.475156
07c3abb0fb29f5f9320d9cc3ce910578fbe705f1
3,568
py
Python
bettertexts/util/populate.py
citizenline/citizenline
5c8317fe7e18a485bb8c572cc3c55707d0303525
[ "MIT" ]
null
null
null
bettertexts/util/populate.py
citizenline/citizenline
5c8317fe7e18a485bb8c572cc3c55707d0303525
[ "MIT" ]
33
2017-02-14T15:45:16.000Z
2022-03-11T23:22:29.000Z
bettertexts/util/populate.py
citizenline/citizenline
5c8317fe7e18a485bb8c572cc3c55707d0303525
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib.sites.models import Site from bettertexts.models import Question from bettertexts.models import Text from bettertexts.models import Type class Init: @staticmethod def new(): # base_domain = "citizenline.local:8000" base_domain = "citizenline.nl" ...
42.987952
485
0.627242
f6899f89a0069492e875df76c4e5f75130a66928
6,717
py
Python
mutatePy/mutatePy/commandline.py
t94126/mutatePy
cfd649f95a00afb26103a8a1409cda04deeeadac
[ "Apache-2.0" ]
null
null
null
mutatePy/mutatePy/commandline.py
t94126/mutatePy
cfd649f95a00afb26103a8a1409cda04deeeadac
[ "Apache-2.0" ]
null
null
null
mutatePy/mutatePy/commandline.py
t94126/mutatePy
cfd649f95a00afb26103a8a1409cda04deeeadac
[ "Apache-2.0" ]
null
null
null
import argparse import sys from mutpy import controller, views, operators, utils from mutpy import __version__ as version def main(argv): parser = build_parser() run_mutpy(parser) def build_parser(): DEF_TIMEOUT_FACTOR = 5 parser = argparse.ArgumentParser(description='Mutation testing tool for Pytho...
40.957317
116
0.671431
bf98dc15565f71d65124dbccb68ebdc0b484deea
8,854
py
Python
lib/ecdsa/test_numbertheory.py
GaryFlynn/vro-jwt-python
2aa6213212ba37e39abe022c76350d08b1a8fb65
[ "MIT" ]
3
2020-08-04T20:29:41.000Z
2020-11-09T09:28:19.000Z
lib/ecdsa/test_numbertheory.py
GaryFlynn/vro-jwt-python
2aa6213212ba37e39abe022c76350d08b1a8fb65
[ "MIT" ]
27
2019-11-14T00:59:44.000Z
2019-12-08T22:52:26.000Z
lib/ecdsa/test_numbertheory.py
GaryFlynn/vro-jwt-python
2aa6213212ba37e39abe022c76350d08b1a8fb65
[ "MIT" ]
2
2021-03-16T12:41:29.000Z
2021-03-16T14:50:08.000Z
import operator from six import print_ from functools import reduce import operator try: import unittest2 as unittest except ImportError: import unittest import hypothesis.strategies as st import pytest from hypothesis import given, settings, example try: from hypothesis import HealthCheck HC_PRESENT=Tr...
32.551471
78
0.579851
03ccf7027a95754c9f01484c62e00e57f4104182
405
py
Python
problem_10.py
coderistan/projecteuler
d030a7e405d437502a6a8c4997e809781ad6302b
[ "MIT" ]
null
null
null
problem_10.py
coderistan/projecteuler
d030a7e405d437502a6a8c4997e809781ad6302b
[ "MIT" ]
null
null
null
problem_10.py
coderistan/projecteuler
d030a7e405d437502a6a8c4997e809781ad6302b
[ "MIT" ]
null
null
null
from math import sqrt def find_prime(min_number,max_number): for i in range(min_number,max_number): if(i%2==0): continue else: find=True for k in range(min_number,int(sqrt(i))+1): if(i%k==0): find=False brea...
23.823529
54
0.481481
6ce218c1eb02f10a1640eb3bcd89e6064a6c258a
1,747
py
Python
modules/models/zeror.py
guilhermemg/trace-links-tc-br
965cb57d17057d1c9c3841c4aba01e72cf008cab
[ "MIT" ]
null
null
null
modules/models/zeror.py
guilhermemg/trace-links-tc-br
965cb57d17057d1c9c3841c4aba01e72cf008cab
[ "MIT" ]
null
null
null
modules/models/zeror.py
guilhermemg/trace-links-tc-br
965cb57d17057d1c9c3841c4aba01e72cf008cab
[ "MIT" ]
null
null
null
import time import pandas as pd import numpy as np class ZeroR_Model: def __init__(self, oracle): self.oracle = oracle self.name = None self.gen_name = "zero_r" def set_name(self, name): self.name = name def get_model_gen_name(self): return self.gen_name ...
34.254902
116
0.620492
b2a0c97c357f9ae1eed292f68c8f0609106b9296
4,128
py
Python
tests/test_cluster_control.py
dymaxionlabs/nb_workflows
336e4d83dd5f8a7edfbaacfa426b23a42c0a68a9
[ "Apache-2.0" ]
4
2022-02-17T19:47:52.000Z
2022-02-17T20:11:06.000Z
tests/test_cluster_control.py
dymaxionlabs/nb_workflows
336e4d83dd5f8a7edfbaacfa426b23a42c0a68a9
[ "Apache-2.0" ]
2
2022-03-26T00:07:05.000Z
2022-03-30T21:20:00.000Z
tests/test_cluster_control.py
dymaxionlabs/nb_workflows
336e4d83dd5f8a7edfbaacfa426b23a42c0a68a9
[ "Apache-2.0" ]
1
2022-02-18T13:33:00.000Z
2022-02-18T13:33:00.000Z
import pytest from pytest_mock import MockerFixture from labfunctions.cluster import Inventory, ProviderSpec, get_spec_from_file from labfunctions.cluster.cluster_file import load_cluster_file, load_spec from labfunctions.cluster.control import ClusterControl, apply_scale_items from labfunctions.cluster.inventory impo...
34.115702
85
0.753149
bda4f6f1cdc374c61784e28eebabf897526cc751
9,525
py
Python
config/settings/base.py
blaisejames/django-loginregistration
c4422d7fb8fe3d5c4d06589aa0d076be3e6fde4c
[ "Apache-1.1" ]
null
null
null
config/settings/base.py
blaisejames/django-loginregistration
c4422d7fb8fe3d5c4d06589aa0d076be3e6fde4c
[ "Apache-1.1" ]
null
null
null
config/settings/base.py
blaisejames/django-loginregistration
c4422d7fb8fe3d5c4d06589aa0d076be3e6fde4c
[ "Apache-1.1" ]
null
null
null
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (loginregistration/config/settings/base.py - 3 = loginregistration/) APPS_DIR = ROOT_DIR.path('loginregistration') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=Fa...
39.522822
109
0.630236
c00f2d85ae7607f69a01bfe55e2324e59becd20a
5,610
py
Python
docs/conf.py
GammaGames/Circuitpython_Keystore
dcf6935410e376828764baa4c88428852d7ae3da
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
docs/conf.py
GammaGames/Circuitpython_Keystore
dcf6935410e376828764baa4c88428852d7ae3da
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
docs/conf.py
GammaGames/Circuitpython_Keystore
dcf6935410e376828764baa4c88428852d7ae3da
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # # SPDX-License-Identifier: MIT import os import sys sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ # Add any Sphinx extension module names...
29.840426
84
0.674688
643c7a9edcba807eb7bd5428b6ac4a30709b2ed0
166,563
py
Python
cellpack/autopack/upy/hostHelper.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
cellpack/autopack/upy/hostHelper.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
21
2021-10-02T00:07:05.000Z
2022-03-30T00:02:10.000Z
cellpack/autopack/upy/hostHelper.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) <2010> Autin L. TSRI This file git_upy/hostHelper.py is part of upy. upy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Lice...
32.81383
201
0.526582
d3198d8d5baf53b821456e4a35ef11a19df210a7
4,363
py
Python
python_tests/Test.py
brunoerg/Ember
fbd8a5f43a81de7f5a6ba6bcecfac7e6bdb535fa
[ "CC0-1.0" ]
null
null
null
python_tests/Test.py
brunoerg/Ember
fbd8a5f43a81de7f5a6ba6bcecfac7e6bdb535fa
[ "CC0-1.0" ]
null
null
null
python_tests/Test.py
brunoerg/Ember
fbd8a5f43a81de7f5a6ba6bcecfac7e6bdb535fa
[ "CC0-1.0" ]
null
null
null
#Types. from typing import Callable, List #Exceptions. from python_tests.Tests.Errors import EmptyError, NodeError, TestError #Meros classes. from python_tests.Meros.Meros import Meros from python_tests.Meros.RPC import RPC #Tests. from python_tests.Tests.Merit.ChainAdvancementTest import ChainAdvancementTest from p...
27.26875
94
0.728398
f3e5f357852f6425b03c1536df2814f935ab2746
8,820
py
Python
unit_tests/test_multisite.py
dardelean/charm-ceph-radosgw
cdc59e2a39db985aef53f8f9d7a14f761aaa96f6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
unit_tests/test_multisite.py
dardelean/charm-ceph-radosgw
cdc59e2a39db985aef53f8f9d7a14f761aaa96f6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
unit_tests/test_multisite.py
dardelean/charm-ceph-radosgw
cdc59e2a39db985aef53f8f9d7a14f761aaa96f6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 Canonical Ltd # # 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...
37.058824
74
0.551701
e73889752e450db4f8db41eef181ed1c85348f89
292
py
Python
scripts/pyinstaller/hooks/hook-googleapiclient.model.py
lucasalavapena/dvc
230eb7087df7f063ded7422af7ae45bd04eb794a
[ "Apache-2.0" ]
9,136
2018-05-30T05:10:44.000Z
2022-03-31T16:58:52.000Z
scripts/pyinstaller/hooks/hook-googleapiclient.model.py
lucasalavapena/dvc
230eb7087df7f063ded7422af7ae45bd04eb794a
[ "Apache-2.0" ]
4,804
2018-05-30T00:36:42.000Z
2022-03-31T18:34:54.000Z
scripts/pyinstaller/hooks/hook-googleapiclient.model.py
lucasalavapena/dvc
230eb7087df7f063ded7422af7ae45bd04eb794a
[ "Apache-2.0" ]
1,072
2018-05-30T07:59:35.000Z
2022-03-28T20:43:49.000Z
"""Temporary fix for https://github.com/iterative/dvc/issues/5618.""" from PyInstaller.utils.hooks import ( # pylint:disable=import-error collect_data_files, copy_metadata, ) datas = collect_data_files("googleapiclient.discovery") datas += copy_metadata("google_api_python_client")
32.444444
69
0.773973
aec0eb32a225cf094c339a0ab97ffe7fcb27cbd1
13,107
py
Python
lib/roi_data/loader.py
ruotianluo/Context-aware-ZSR
f9e487a4d52a51588252d960c96c04150e74c52a
[ "MIT" ]
59
2019-04-12T20:16:26.000Z
2021-08-01T02:51:58.000Z
lib/roi_data/loader.py
ruotianluo/Context-aware-ZSR
f9e487a4d52a51588252d960c96c04150e74c52a
[ "MIT" ]
3
2019-11-06T17:22:37.000Z
2022-02-10T04:44:26.000Z
lib/roi_data/loader.py
ruotianluo/Context-aware-ZSR
f9e487a4d52a51588252d960c96c04150e74c52a
[ "MIT" ]
9
2019-04-29T11:20:16.000Z
2022-02-16T05:22:08.000Z
import math import numpy as np import numpy.random as npr import torch import torch.utils.data as data import torch.utils.data.sampler as torch_sampler from torch.utils.data.dataloader import default_collate from torch._six import int_classes as _int_classes from core.config import cfg from roi_data.minibatch import ...
42.417476
113
0.592813
53d9fed799dfd6ac923e6575015fe97e3a43e0dd
2,139
py
Python
hasher-matcher-actioner/hmalib/common/reactioner_models.py
king40or1/ThreatExchange
95680d1568241bf63249f91480bbf1c7bbe9b699
[ "BSD-3-Clause" ]
null
null
null
hasher-matcher-actioner/hmalib/common/reactioner_models.py
king40or1/ThreatExchange
95680d1568241bf63249f91480bbf1c7bbe9b699
[ "BSD-3-Clause" ]
null
null
null
hasher-matcher-actioner/hmalib/common/reactioner_models.py
king40or1/ThreatExchange
95680d1568241bf63249f91480bbf1c7bbe9b699
[ "BSD-3-Clause" ]
null
null
null
import typing as t from dataclasses import dataclass, fields from hmalib.models import MatchMessage, BankedSignal from hmalib.common.logging import get_logger from hmalib.common.actioner_models import ActionPerformer, ActionLabel from hmalib.aws_secrets import AWSSecrets from threatexchange.api import ThreatExchange...
28.905405
88
0.706405
165635a75c5f9489c1f0b499fc874c8c22d6a4fd
453
py
Python
bg_run/__init__.py
cfperez/bg_run
0600a5d7a761ca413bbf6c5f8cf02901070e555b
[ "Apache-2.0" ]
3
2017-04-24T21:38:26.000Z
2017-12-04T16:26:13.000Z
bg_run/__init__.py
cfperez/bg_run
0600a5d7a761ca413bbf6c5f8cf02901070e555b
[ "Apache-2.0" ]
null
null
null
bg_run/__init__.py
cfperez/bg_run
0600a5d7a761ca413bbf6c5f8cf02901070e555b
[ "Apache-2.0" ]
null
null
null
def load_ipython_extension(shell): from .magics import AsyncMagics shell.register_magics(AsyncMagics) def unload_ipython_extension(shell): from .magics import AsyncMagics shell.magics_manager.registry['AsyncMagics'].pool.shutdown() for magic_type,magics in AsyncMagics.magics.items(): for m...
32.357143
64
0.750552
4f88a115dfc32d537b225e8992925ae7a94c8c64
1,994
py
Python
infra/bots/zip_utils_test.py
InvictrixRom/external_skia
5d1778b530aa0b845b8d6996815665f7cc44bf38
[ "BSD-3-Clause" ]
4
2019-10-18T05:53:30.000Z
2021-08-21T07:36:37.000Z
infra/bots/zip_utils_test.py
InvictrixRom/external_skia
5d1778b530aa0b845b8d6996815665f7cc44bf38
[ "BSD-3-Clause" ]
4
2016-04-08T23:04:42.000Z
2017-06-16T21:46:02.000Z
infra/bots/zip_utils_test.py
InvictrixRom/external_skia
5d1778b530aa0b845b8d6996815665f7cc44bf38
[ "BSD-3-Clause" ]
7
2017-09-30T23:06:11.000Z
2019-05-30T08:54:33.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tests for zip_utils.""" import filecmp import os import test_utils import unittest import utils import uuid import zip_utils class ZipUtilsTest(unittest.T...
26.586667
78
0.625878
b202e0a2b308c07f1392fe00d9a2bd46b23ee3a6
8,788
py
Python
workBousaiTYO_baseline/predflowio/predflowio_DMVST_continue.py
deepkashiwa20/DeepCrowd
847bcc20ca36b521eead4ededa5d11b2fd2af30a
[ "MIT" ]
4
2021-09-07T09:29:43.000Z
2022-03-28T07:18:16.000Z
workBousaiTYO_baseline/predflowio/predflowio_DMVST_continue.py
deepkashiwa20/DeepCrowd
847bcc20ca36b521eead4ededa5d11b2fd2af30a
[ "MIT" ]
null
null
null
workBousaiTYO_baseline/predflowio/predflowio_DMVST_continue.py
deepkashiwa20/DeepCrowd
847bcc20ca36b521eead4ededa5d11b2fd2af30a
[ "MIT" ]
2
2021-06-18T01:28:16.000Z
2021-08-10T01:24:49.000Z
import datetime import sys import shutil import gc from keras.callbacks import EarlyStopping, CSVLogger, ModelCheckpoint, LearningRateScheduler, TensorBoard import model_structure from load_data import data_generator, test_generator, get_test_true from Param_DMVST_flow import * def mkdir(path): folder = os.path...
42.454106
128
0.677629
5adce4a5e0ed4d13fc43f7c0779a1d7146a30a19
85
py
Python
fairshake_assessments/utils/force_list.py
MaayanLab/fairshake-assessments
86528e34edc0282528bb9229b637f43c7656fb80
[ "Apache-2.0" ]
null
null
null
fairshake_assessments/utils/force_list.py
MaayanLab/fairshake-assessments
86528e34edc0282528bb9229b637f43c7656fb80
[ "Apache-2.0" ]
null
null
null
fairshake_assessments/utils/force_list.py
MaayanLab/fairshake-assessments
86528e34edc0282528bb9229b637f43c7656fb80
[ "Apache-2.0" ]
null
null
null
def force_list(val): if type(val) == list: return val else: return [val]
14.166667
23
0.6
b9f9645cb1a3c5fd67a37d1cf38d9fd91a68db22
994
py
Python
MacOSX/small scripts/pdf-modify.py
Lincoln12w/workshop-setups
368da10db6231636c49080fe5272478a2ae80078
[ "MIT" ]
null
null
null
MacOSX/small scripts/pdf-modify.py
Lincoln12w/workshop-setups
368da10db6231636c49080fe5272478a2ae80078
[ "MIT" ]
null
null
null
MacOSX/small scripts/pdf-modify.py
Lincoln12w/workshop-setups
368da10db6231636c49080fe5272478a2ae80078
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Description: Modify the pdf files. Author: lincoln12w Github: https://github.com/Lincoln12w Module: APIs: Examples: python pdf-modify.py test.pdf 0 # remove the first page of the pdf. Modify History -------------- 00a 24oct17 lzw create. 01a 20mar18 lzw never raised the e...
22.088889
79
0.651911
f010c204328e6440cdeaa222ba88931993792b97
461
py
Python
democracy_club/apps/everyelection/migrations/0007_auto_20160710_1136.py
chris48s/Website
efabd478d617a40d58304b3e9cce9da343cfaa78
[ "BSD-3-Clause" ]
null
null
null
democracy_club/apps/everyelection/migrations/0007_auto_20160710_1136.py
chris48s/Website
efabd478d617a40d58304b3e9cce9da343cfaa78
[ "BSD-3-Clause" ]
null
null
null
democracy_club/apps/everyelection/migrations/0007_auto_20160710_1136.py
chris48s/Website
efabd478d617a40d58304b3e9cce9da343cfaa78
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('everyelection', '0006_authorityelectionposition_seats'), ] operations = [ migrations.AlterField( model_name='aut...
23.05
72
0.642082
727c11499b5d7a53ff01e27f13f2cd10843c7a3c
2,632
py
Python
lldb/test/API/python_api/findvalue_duplist/TestSBFrameFindValue.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
lldb/test/API/python_api/findvalue_duplist/TestSBFrameFindValue.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
lldb/test/API/python_api/findvalue_duplist/TestSBFrameFindValue.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
"""Test that SBFrame::FindValue finds things but does not duplicate the entire variables list""" import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class SBFrameFindValueTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) ...
32.9
104
0.590426
841f6289746a3ec64b7e33669a7b0afac7ba74e2
30,712
py
Python
src/solarflarebot.py
hafizhadi/solarflarebot
6fc1080be19e4e8ccb9c7e8537986c0419e79877
[ "MIT" ]
null
null
null
src/solarflarebot.py
hafizhadi/solarflarebot
6fc1080be19e4e8ccb9c7e8537986c0419e79877
[ "MIT" ]
null
null
null
src/solarflarebot.py
hafizhadi/solarflarebot
6fc1080be19e4e8ccb9c7e8537986c0419e79877
[ "MIT" ]
null
null
null
import os import re import copy import random import asyncio import json from dotenv import load_dotenv from string import Template import discord from discord import ChannelType as ctype from discord.ext import commands #### BOT LEVEL VARIABLES #### # Environments load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') GUI...
34.820862
159
0.640173
631dfe6b3425aa8fc66f81ff590f184ef006d8b3
1,195
py
Python
detector.py
alextitonis/Cognitive-Agent
071cc2c63dc34259817a1dd390e36b22d405e837
[ "MIT" ]
4
2021-12-15T16:41:38.000Z
2022-01-28T11:03:17.000Z
detector.py
alextitonis/Cognitive-Agent
071cc2c63dc34259817a1dd390e36b22d405e837
[ "MIT" ]
null
null
null
detector.py
alextitonis/Cognitive-Agent
071cc2c63dc34259817a1dd390e36b22d405e837
[ "MIT" ]
null
null
null
from imageai.Detection import ObjectDetection import os class detector: def __init__(self, modelPath="../resnet50_coco_best_v2.1.0.h5"): self.detector = ObjectDetection() self.detector.setModelTypeAsRetinaNet() self.detector.setModelPath(modelPath) self.detector.loadModel() ...
45.961538
181
0.638494
f8b2b1a859d30766873ac2bae737d817bc43bdfd
9,608
py
Python
pwseqdist/pairwise.py
kmayerb/pwseqdist
60500ece9d76aeb6c7aec836bebcba037148483e
[ "MIT" ]
null
null
null
pwseqdist/pairwise.py
kmayerb/pwseqdist
60500ece9d76aeb6c7aec836bebcba037148483e
[ "MIT" ]
null
null
null
pwseqdist/pairwise.py
kmayerb/pwseqdist
60500ece9d76aeb6c7aec836bebcba037148483e
[ "MIT" ]
null
null
null
import multiprocessing import parmap import itertools import numpy as np import scipy from .metrics import compute_many, compute_many_rect __all__ = ['apply_pairwise_sq', 'apply_pairwise_rect'] """TODO: Currently I pass all the sequences and some set of indices to compute_many. Why wouldn't I just send t...
39.539095
136
0.566195
b69ebd64531be1834c7c75eb4917495e0f534592
50,059
py
Python
allennlp/tests/semparse/worlds/atis_world_test.py
MartinoMensio/allennlp
9a6dce3997d17185650a5377c9a7a5af0f1ac241
[ "Apache-2.0" ]
null
null
null
allennlp/tests/semparse/worlds/atis_world_test.py
MartinoMensio/allennlp
9a6dce3997d17185650a5377c9a7a5af0f1ac241
[ "Apache-2.0" ]
1
2018-06-08T21:12:54.000Z
2018-06-08T21:12:54.000Z
allennlp/tests/semparse/worlds/atis_world_test.py
MartinoMensio/allennlp
9a6dce3997d17185650a5377c9a7a5af0f1ac241
[ "Apache-2.0" ]
1
2018-10-22T18:52:14.000Z
2018-10-22T18:52:14.000Z
import json from allennlp.common.testing import AllenNlpTestCase from allennlp.semparse.worlds.atis_world import AtisWorld class TestAtisWorld(AllenNlpTestCase): def setUp(self): super().setUp() test_filename = self.FIXTURES_ROOT / "data" / "atis" / "sample.json" self.data = open(test_file...
54.117838
114
0.407799
fe149f4f4ffad25eb7afb85cedbe2229c3a50d34
416
py
Python
silver/tests/integration/test_documents_billing_logs.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
222
2017-01-15T10:30:57.000Z
2022-03-08T20:34:46.000Z
silver/tests/integration/test_documents_billing_logs.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
141
2017-01-11T10:56:49.000Z
2021-10-12T11:51:00.000Z
silver/tests/integration/test_documents_billing_logs.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
76
2017-01-10T13:50:27.000Z
2022-03-25T21:37:00.000Z
import pytest from silver.fixtures.factories import BillingLogFactory @pytest.mark.django_db def test_update_billing_log_when_creating_proforma_related_invoice(): billing_log = BillingLogFactory.create(invoice=None) proforma = billing_log.proforma assert billing_log.invoice is None invoice = profor...
26
69
0.802885
07c4fdacf127cff18fa47f956058df268f1e55c6
4,400
py
Python
reinforce_book_chapter2.py
kitfactory/python_test
c1ff2f579d52ad81b327e103ec1f04b83774e9c0
[ "Apache-2.0" ]
null
null
null
reinforce_book_chapter2.py
kitfactory/python_test
c1ff2f579d52ad81b327e103ec1f04b83774e9c0
[ "Apache-2.0" ]
null
null
null
reinforce_book_chapter2.py
kitfactory/python_test
c1ff2f579d52ad81b327e103ec1f04b83774e9c0
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt fig = plt.figure(figsize=(5,5)) ax = plt.gca() plt.plot([1,1],[0,1], color='red', linewidth=2) plt.plot([1,2],[2,2], color='red', linewidth=2) plt.plot([2,2],[2,1], color='red', linewidth=2) plt.plot([2,3],[1,1], color='red', linewidth=2) plt.text(0.5, 2.5, 'S0', si...
26.190476
114
0.562273
5965934e3b51cf33b0c1a8f27cc50cee75b0b957
3,384
py
Python
nemo_text_processing/text_normalization/taggers/money.py
jhfong/NeMo
db7a2db5ee4e0e81a5640b1f8ff5e83e993bcb87
[ "Apache-2.0" ]
2
2021-09-21T07:36:20.000Z
2022-02-05T15:29:04.000Z
nemo_text_processing/text_normalization/taggers/money.py
joseewei/NeMo
c5dbf4508abaa5f54db8971b53e37266137b0399
[ "Apache-2.0" ]
null
null
null
nemo_text_processing/text_normalization/taggers/money.py
joseewei/NeMo
c5dbf4508abaa5f54db8971b53e37266137b0399
[ "Apache-2.0" ]
12
2021-06-20T08:56:10.000Z
2022-03-16T19:07:10.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards 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/license...
38.896552
119
0.675236
067d1182cda35db0e9e373f1225ea48ddfe26fed
5,685
py
Python
builder/main.py
cab202/quty
abadf5e9656b6c7113d6958bd3f4fc1314ee4dfd
[ "Apache-2.0" ]
null
null
null
builder/main.py
cab202/quty
abadf5e9656b6c7113d6958bd3f4fc1314ee4dfd
[ "Apache-2.0" ]
null
null
null
builder/main.py
cab202/quty
abadf5e9656b6c7113d6958bd3f4fc1314ee4dfd
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-present PlatformIO <contact@platformio.org> # # 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...
28.567839
76
0.605277
8f7875a856e1a6d80aff074d0edd74d189337da2
8,311
py
Python
examples/microjson/mutants/CRP_Str_mutant_1486201410.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
90
2015-04-07T10:26:53.000Z
2022-03-07T15:14:57.000Z
examples/microjson/mutants/CRP_Str_mutant_1486201410.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
14
2015-10-13T16:25:59.000Z
2021-01-21T18:31:03.000Z
examples/microjson/mutants/CRP_Str_mutant_1486201410.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
32
2015-04-07T10:41:29.000Z
2022-02-26T05:17:28.000Z
import math import StringIO import types __pychecker__ = 'no-returnvalues' WS = set([' ', '\t', '\r', '\n', '\x08', '\x0c']) DIGITS = set([str(i) for i in range(0, 10)]) NUMSTART = DIGITS.union(['.', '-', '+']) NUMCHARS = NUMSTART.union(['e', 'E']) ESC_MAP = {'n': '\n', 't': '\t', 'r': '\r', '': '\x08', 'f': '\x0c'} RE...
27.889262
178
0.526411
05ff54c086466bf205273f80d3c4e9edd82e816e
38,814
py
Python
seglearn/transform.py
chkoar/seglearn
5dab9d103b416fca26a1a08d9243762cac3403d5
[ "BSD-3-Clause" ]
null
null
null
seglearn/transform.py
chkoar/seglearn
5dab9d103b416fca26a1a08d9243762cac3403d5
[ "BSD-3-Clause" ]
null
null
null
seglearn/transform.py
chkoar/seglearn
5dab9d103b416fca26a1a08d9243762cac3403d5
[ "BSD-3-Clause" ]
null
null
null
''' This module is for transforming time series data. ''' # Author: David Burns # License: BSD import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils import check_random_state, check_array from sklearn.exceptions import NotFittedError from sklearn.utils.metaestimators import _Ba...
33.928322
100
0.592673
c54285a4fd064b9e8f4fe28d44258eb99678df85
7,770
py
Python
zeex/core/views/sql/add_connection.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
10
2016-12-07T15:54:02.000Z
2021-07-24T00:31:39.000Z
zeex/core/views/sql/add_connection.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
86
2016-12-12T03:28:19.000Z
2017-01-13T18:41:07.000Z
zeex/core/views/sql/add_connection.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
5
2016-12-07T23:53:59.000Z
2021-01-25T10:14:57.000Z
# -*- coding: utf-8 -*- """ Created on Mon Nov 28 13:09:50 2016 MIT License Copyright (c) 2016 Zeke Barge Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
40.051546
104
0.635521
7021645aa75aecef0bdc5c45784dd06e26de8b2f
7,564
py
Python
ai.py
jaredjxyz/AIV
e84954e152d2311db2cd4fde088195d80fd970b1
[ "MIT" ]
null
null
null
ai.py
jaredjxyz/AIV
e84954e152d2311db2cd4fde088195d80fd970b1
[ "MIT" ]
null
null
null
ai.py
jaredjxyz/AIV
e84954e152d2311db2cd4fde088195d80fd970b1
[ "MIT" ]
null
null
null
import serial import signal import sys import os import time import random from pyax12.connection import Connection from weapon import WeaponArm from datetime import datetime,timedelta h_fov = 78.0 # TODO: Read this in from config.txt and calculate real horizontal angle latest_instruction = 'aa0' last_motorInstructio...
37.261084
125
0.652168
46c5f8c425ee2f7c123ae766c80c612cf2f16422
4,376
py
Python
src/api_tumblr/paging.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
39
2020-06-19T05:38:11.000Z
2022-03-28T04:35:31.000Z
src/api_tumblr/paging.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
null
null
null
src/api_tumblr/paging.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
2
2021-04-13T18:12:03.000Z
2021-12-16T23:20:12.000Z
from typing import Optional from collections import Counter from tqdm.autonotebook import tqdm from api_tumblr.client_pool import ClientPool from util.error_handling import LogExceptionAndSkip import config.bot_config_singleton bot_specific_constants = config.bot_config_singleton.bot_specific_constants bot_name = b...
31.941606
124
0.606718
c14cea3166b9cc554ff3b0aa54875bb94e5f4c61
4,263
py
Python
GRURNN/updateRNN.py
tsudalab/bopp
a3e9259e05fea413854b09f9e8cd7215587bd430
[ "MIT" ]
3
2020-07-14T15:51:56.000Z
2021-08-05T11:40:28.000Z
GRURNN/updateRNN.py
tsudalab/bopp
a3e9259e05fea413854b09f9e8cd7215587bd430
[ "MIT" ]
null
null
null
GRURNN/updateRNN.py
tsudalab/bopp
a3e9259e05fea413854b09f9e8cd7215587bd430
[ "MIT" ]
2
2021-03-28T06:55:35.000Z
2021-04-24T12:16:25.000Z
from __future__ import print_function import numpy as np import os import sys import multiprocessing as mp from keras.models import Sequential from keras.layers import Dense, Activation,TimeDistributed,MaxPooling1D from keras.layers import LSTM,GRU from keras.layers.embeddings import Embedding from keras.optimizers imp...
34.104
104
0.66221
abe859f3db745d6c3be051b4482b08b1761b28a6
7,877
py
Python
mcu/luatool.py
creationix/nodemcu-webide
acca18338074d257e7f9deec5016989f60f30d81
[ "MIT" ]
24
2015-06-06T00:09:34.000Z
2021-04-06T01:58:51.000Z
mcu/luatool.py
creationix/nodemcu-webide
acca18338074d257e7f9deec5016989f60f30d81
[ "MIT" ]
2
2016-03-07T13:09:22.000Z
2017-02-06T01:58:05.000Z
mcu/luatool.py
creationix/nodemcu-webide
acca18338074d257e7f9deec5016989f60f30d81
[ "MIT" ]
14
2015-06-15T13:14:43.000Z
2021-02-06T15:23:08.000Z
#!/usr/bin/env python2 # # ESP8266 luatool # Author e-mail: 4ref0nt@gmail.com # Site: http://esp8266.ru # Contributions from: https://github.com/sej7278 # # 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 # Fou...
36.981221
127
0.55643
c0ddce1dca8364feb65dd73e1f27a6aaf8040995
66,393
py
Python
rom_operator_inference/_core.py
jomorlier/rom-operator-inference-Python3
25cdb5e411add16f8647b114c993738037c58d57
[ "MIT" ]
1
2020-04-19T19:52:07.000Z
2020-04-19T19:52:07.000Z
rom_operator_inference/_core.py
jomorlier/rom-operator-inference-Python3
25cdb5e411add16f8647b114c993738037c58d57
[ "MIT" ]
null
null
null
rom_operator_inference/_core.py
jomorlier/rom-operator-inference-Python3
25cdb5e411add16f8647b114c993738037c58d57
[ "MIT" ]
null
null
null
# _core.py """Class for model order reduction of ODEs via operator inference.""" import warnings import itertools import numpy as np from scipy import linalg as la from scipy.interpolate import CubicSpline from scipy.integrate import solve_ivp, IntegrationWarning from .utils import (lstsq_reg, exp...
39.193034
91
0.548416
674eb00381133bd0bcb07f999a2ebf36e70c6535
1,587
py
Python
functions/mil_cross_val.py
jmarrietar/MILpy
8b51771e41ec43dcc489947352133b76a642faf5
[ "FSFAP" ]
18
2016-11-14T18:53:57.000Z
2022-02-14T00:40:23.000Z
functions/mil_cross_val.py
jmarrietar/MILpy
8b51771e41ec43dcc489947352133b76a642faf5
[ "FSFAP" ]
1
2017-08-02T01:41:41.000Z
2018-03-05T19:09:38.000Z
functions/mil_cross_val.py
jmarrietar/MILpy
8b51771e41ec43dcc489947352133b76a642faf5
[ "FSFAP" ]
5
2017-06-09T15:35:33.000Z
2020-06-04T22:56:43.000Z
# -*- coding: utf-8 -*- """ Created on Thu Sep 22 20:09:20 2016 MIL K stratified fold representation @author: josemiguelarrieta """ from sklearn.cross_validation import StratifiedKFold from sklearn.metrics import roc_auc_score import numpy as np import sys import timeit def mil_cross_val(bags,labels,model,folds,par...
35.266667
104
0.660996
aee8577daad8244d6e7895d64642ed4e6c7778ff
4,848
py
Python
src/runner/trainers/acdc_vsr_trainer.py
cmlab-mira/Efficient-and-Phase-aware-Video-Super-resolution-for-Cardiac-MRI
ec01b783f8acd41a7056431bad615896b8495f95
[ "MIT" ]
11
2020-08-09T08:08:56.000Z
2022-01-18T14:25:22.000Z
src/runner/trainers/acdc_vsr_trainer.py
cmlab-mira/Efficient-and-Phase-aware-Video-Super-resolution-for-Cardiac-MRI
ec01b783f8acd41a7056431bad615896b8495f95
[ "MIT" ]
2
2021-09-13T09:48:41.000Z
2021-11-08T14:20:58.000Z
src/runner/trainers/acdc_vsr_trainer.py
cmlab-mira/Efficient-and-Phase-aware-Video-Super-resolution-for-Cardiac-MRI
ec01b783f8acd41a7056431bad615896b8495f95
[ "MIT" ]
4
2020-08-30T14:13:35.000Z
2021-09-14T09:26:55.000Z
import torch from tqdm import tqdm import functools from src.runner.trainers.base_trainer import BaseTrainer from src.utils import denormalize class AcdcVSRTrainer(BaseTrainer): """The ACDC trainer for the Video Super-Resolution. """ def __init__(self, **kwargs): super().__init__(**kwargs) ...
39.414634
117
0.584571
c2112860741fc4f527f858dd157ecbfcfdc1dd5a
1,108
py
Python
nvtabular/dispatch.py
thibaultcharrin/NVTabular
f2f11d8184b3c9777ce5549f3d3ac1f83ec4a438
[ "Apache-2.0" ]
124
2021-10-08T19:59:52.000Z
2022-03-27T22:13:26.000Z
nvtabular/dispatch.py
thibaultcharrin/NVTabular
f2f11d8184b3c9777ce5549f3d3ac1f83ec4a438
[ "Apache-2.0" ]
325
2021-10-08T19:58:49.000Z
2022-03-31T21:27:39.000Z
nvtabular/dispatch.py
mikemckiernan/NVTabular
efb93340653c4a69b1c3a60c88a82116d7906148
[ "Apache-2.0" ]
26
2021-10-13T21:43:22.000Z
2022-03-29T14:33:58.000Z
# # Copyright (c) 2021, NVIDIA CORPORATION. # # 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 ...
36.933333
77
0.75361
5bb8f557f7a634dc63d7fee5cb9be654bb0eb3ad
1,565
py
Python
GRAPHS/G7.py
777irug/Covid-19
447f0d5c203e46ee5b828c57913afeb309076956
[ "MIT" ]
null
null
null
GRAPHS/G7.py
777irug/Covid-19
447f0d5c203e46ee5b828c57913afeb309076956
[ "MIT" ]
null
null
null
GRAPHS/G7.py
777irug/Covid-19
447f0d5c203e46ee5b828c57913afeb309076956
[ "MIT" ]
null
null
null
import pandas as pd import seaborn as sns import matplotlib.pylab as plt df=pd.read_csv("covid_19_india.csv",parse_dates=["Date"]) df.columns df.dtypes for x in df.columns: print(x,df[x].isna().sum()) df['year']=df['Date'].dt.year df['month']=df['Date'].dt.month df=df.sort_values(by=['month'...
23.712121
84
0.583387