hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a190fd12c879dcd2af13b17cd522eb61ccbb41a
3,655
py
Python
sent_levl/pre_process.py
tejasvaidhyadev/extract_covid_entity
6dcd1711d889d9e43af70955c98d3f7d2ce2a3f9
[ "MIT" ]
6
2020-09-24T04:31:08.000Z
2021-12-28T12:49:21.000Z
sent_levl/pre_process.py
tejasvaidhyadev/extract_covid_entity
6dcd1711d889d9e43af70955c98d3f7d2ce2a3f9
[ "MIT" ]
null
null
null
sent_levl/pre_process.py
tejasvaidhyadev/extract_covid_entity
6dcd1711d889d9e43af70955c98d3f7d2ce2a3f9
[ "MIT" ]
3
2020-12-22T04:49:06.000Z
2021-04-22T07:18:44.000Z
# Input: data/wtwt_ids.json and data/scrapped_full/* # Output: data/pre_processed.json # Read all existing scrapped files and preprocess, tokenize the full_text part # Read wtwt_ids.json and for each tweet_id, append toked_text. Save into pre_processed.json import json import os import sys import glob import re fr...
31.508621
93
0.633105
4a191076d05e6427e03cf4357f3fedee5e0a4630
986
py
Python
python/modules/softmax.py
RachelBlin/keras-retinanet
248b5463ce663a35350b222fd469b506b37ce118
[ "Apache-2.0" ]
2
2020-11-12T11:58:53.000Z
2021-04-14T12:24:42.000Z
python/modules/softmax.py
RachelBlin/keras-retinanet
248b5463ce663a35350b222fd469b506b37ce118
[ "Apache-2.0" ]
null
null
null
python/modules/softmax.py
RachelBlin/keras-retinanet
248b5463ce663a35350b222fd469b506b37ce118
[ "Apache-2.0" ]
3
2019-11-14T14:01:58.000Z
2021-04-14T12:24:50.000Z
''' @author: Sebastian Lapuschkin @author: Gregoire Montavon @maintainer: Sebastian Lapuschkin @contact: sebastian.lapuschkin@hhi.fraunhofer.de, wojciech.samek@hhi.fraunhofer.de @date: 14.08.2015 @version: 1.2+ @copyright: Copyright (c) 2015-2017, Sebastian Lapuschkin, Alexander Binder, Gregoire Montavon, Klaus-Robert...
24.65
133
0.609533
4a1910cc531c431313cf64a1dc301c2751979929
1,101
py
Python
app/ch13-validation/starter/pypi_org/data/db_session.py
callumrollo/data-driven-web-apps-with-flask
550096856145e7cc6bba1d3df7f28d923e417531
[ "MIT" ]
null
null
null
app/ch13-validation/starter/pypi_org/data/db_session.py
callumrollo/data-driven-web-apps-with-flask
550096856145e7cc6bba1d3df7f28d923e417531
[ "MIT" ]
null
null
null
app/ch13-validation/starter/pypi_org/data/db_session.py
callumrollo/data-driven-web-apps-with-flask
550096856145e7cc6bba1d3df7f28d923e417531
[ "MIT" ]
null
null
null
import sqlalchemy as sa import sqlalchemy.orm as orm from sqlalchemy.orm import Session from pypi_org.data.modelbase import SqlAlchemyBase __factory = None def global_init(db_file: str): global __factory if __factory: return if not db_file or not db_file.strip(): raise Exception("You m...
27.525
94
0.726612
4a1911302c9949eed5f66f4610f16c0c65cddcc2
425
py
Python
part-requests/test-requests.py
wuljchange/interesting_python
3fdf9f7f17f7b361be030bb4eadf7aab889b15fe
[ "MIT" ]
1
2019-03-29T14:09:43.000Z
2019-03-29T14:09:43.000Z
part-requests/test-requests.py
wuljchange/interesting_python
3fdf9f7f17f7b361be030bb4eadf7aab889b15fe
[ "MIT" ]
null
null
null
part-requests/test-requests.py
wuljchange/interesting_python
3fdf9f7f17f7b361be030bb4eadf7aab889b15fe
[ "MIT" ]
null
null
null
# ---------------------------------------------- # -*- coding: utf-8 -*- # @Time : 2019-11-08 11:42 # @Author : 吴林江 # @Email : wulinjiang1@kingsoft.com # @File : test-requests.py # ---------------------------------------------- import requests if __name__ == "__main__": url = "https://cn.bing.com/" r...
28.333333
62
0.470588
4a1911da145e4fe69d1a35e2c1e07cce11c2c49d
3,164
py
Python
api/tests/opentrons/config/test_reset.py
knownmed/opentrons
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
[ "Apache-2.0" ]
235
2017-10-27T20:37:27.000Z
2022-03-30T14:09:49.000Z
api/tests/opentrons/config/test_reset.py
knownmed/opentrons
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
[ "Apache-2.0" ]
8,425
2017-10-26T15:25:43.000Z
2022-03-31T23:54:26.000Z
api/tests/opentrons/config/test_reset.py
knownmed/opentrons
d02eb3c6cbf9f1c8c05c5e9e1dac30a92a8c5e6c
[ "Apache-2.0" ]
130
2017-11-09T21:02:37.000Z
2022-03-15T18:01:24.000Z
from unittest.mock import patch import pytest from opentrons.config import reset @pytest.fixture def mock_reset_boot_scripts(): with patch("opentrons.config.reset.reset_boot_scripts") as m: yield m @pytest.fixture def mock_reset_labware_calibration(): with patch("opentrons.config.reset.reset_labware...
29.570093
82
0.787927
4a1912e15a013de4a71dca73cef8096fa8ad444d
37,168
py
Python
python/oneflow/nn/modules/loss.py
Oneflow-Inc/oneflow
b105cacd1e3b0b21bdec1a824a2c125390a2a665
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/nn/modules/loss.py
Oneflow-Inc/oneflow
b105cacd1e3b0b21bdec1a824a2c125390a2a665
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/nn/modules/loss.py
Oneflow-Inc/oneflow
b105cacd1e3b0b21bdec1a824a2c125390a2a665
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
39.794433
184
0.591692
4a19139f67bb51c91164b0ab2d8f557151f0df03
6,727
py
Python
center_out_task/matdatainterface.py
catalystneuro/shenoy-lab-to-nwb
29dbcf94e98dcdf4b5f079e906742af0603e958e
[ "MIT" ]
null
null
null
center_out_task/matdatainterface.py
catalystneuro/shenoy-lab-to-nwb
29dbcf94e98dcdf4b5f079e906742af0603e958e
[ "MIT" ]
null
null
null
center_out_task/matdatainterface.py
catalystneuro/shenoy-lab-to-nwb
29dbcf94e98dcdf4b5f079e906742af0603e958e
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Union import numpy as np from nwb_conversion_tools.basedatainterface import BaseDataInterface from nwb_conversion_tools.utils.json_schema import ( get_base_schema, get_schema_from_hdmf_class, get_schema_for_NWBFile, get_schema_from_method_signature, ) from py...
38.44
88
0.603687
4a1913a08b980cfdbba5a48a14fdfc2c62285cdc
792
py
Python
tests/test_repeated_cookie_headers.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
53,007
2018-12-08T10:05:29.000Z
2022-03-31T23:30:02.000Z
tests/test_repeated_cookie_headers.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
4,155
2019-01-05T05:07:49.000Z
2022-03-31T21:25:38.000Z
tests/test_repeated_cookie_headers.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
4,092
2018-12-09T16:21:00.000Z
2022-03-31T07:59:45.000Z
from fastapi import Depends, FastAPI, Response from fastapi.testclient import TestClient app = FastAPI() def set_cookie(*, response: Response): response.set_cookie("cookie-name", "cookie-value") return {} def set_indirect_cookie(*, dep: str = Depends(set_cookie)): return dep @app.get("/directCookie")...
22.628571
88
0.712121
4a1913a28629cb6092edda4a12f35ab500d43794
4,703
py
Python
nautobot/extras/plugins/utils.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
nautobot/extras/plugins/utils.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
nautobot/extras/plugins/utils.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
""" Plugin utilities. """ import importlib.util import logging import sys from django.core.exceptions import ImproperlyConfigured from django.utils.module_loading import import_string from .exceptions import PluginNotFound, PluginImproperlyConfigured # Logging object logger = logging.getLogger("nautobot.plugins") ...
38.867769
116
0.724856
4a1913af16afa1c7cea2146b8fe72c8a0a14de25
837
py
Python
notes/migrations/0005_auto_20200314_1006.py
namratavalecha/notesea
5fb2133c0744bed45dfa106c428581035185f7db
[ "MIT" ]
null
null
null
notes/migrations/0005_auto_20200314_1006.py
namratavalecha/notesea
5fb2133c0744bed45dfa106c428581035185f7db
[ "MIT" ]
7
2021-03-19T01:00:25.000Z
2022-03-12T00:20:35.000Z
notes/migrations/0005_auto_20200314_1006.py
namratavalecha/notesea
5fb2133c0744bed45dfa106c428581035185f7db
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-14 10:06 from django.db import migrations, models import django.db.models.deletion import notes.models class Migration(migrations.Migration): dependencies = [ ('notes', '0004_auto_20200314_0952'), ] operations = [ migrations.RemoveField( ...
29.892857
120
0.608124
4a191505655a8d4c57e7bb6429b6e767fdda9d6e
9,138
py
Python
node-transformer-deprecated/model_process.py
mandubian/pytorch-neural-ode
2d8a6e3a51b7446188ef4851c0d6620f603c9b72
[ "Apache-2.0" ]
6
2020-09-01T13:50:42.000Z
2022-02-03T09:13:46.000Z
node-transformer-deprecated/model_process.py
mandubian/pytorch-neural-ode
2d8a6e3a51b7446188ef4851c0d6620f603c9b72
[ "Apache-2.0" ]
null
null
null
node-transformer-deprecated/model_process.py
mandubian/pytorch-neural-ode
2d8a6e3a51b7446188ef4851c0d6620f603c9b72
[ "Apache-2.0" ]
1
2021-10-29T18:30:03.000Z
2021-10-29T18:30:03.000Z
import time import math from tqdm import tqdm #tqdm_notebook as tqdm import numpy as np import torch from torch.utils import data import torch.nn.functional as F from transformer import Constants #from transformer.Translator import Translator from NodeTranslator import NodeTranslator from loss import compute_performan...
34.483019
145
0.608995
4a1916012f64e47757d1a63e29b6e9cabaa0e2de
2,512
py
Python
pypesto/sample/util.py
stephanmg/pyPESTO
72488fbb3eaa91dd163f88bac71a1a165a0da70f
[ "BSD-3-Clause" ]
97
2018-08-01T20:16:57.000Z
2022-03-31T18:46:28.000Z
pypesto/sample/util.py
Doresic/pyPESTO
d92bd7801353cd522fa8ec04a750aac120771f01
[ "BSD-3-Clause" ]
758
2018-08-01T12:47:28.000Z
2022-03-30T21:00:26.000Z
pypesto/sample/util.py
Doresic/pyPESTO
d92bd7801353cd522fa8ec04a750aac120771f01
[ "BSD-3-Clause" ]
36
2018-08-16T20:10:15.000Z
2022-03-17T16:58:11.000Z
"""A set of helper functions""" import numpy as np import logging from typing import Tuple from ..result import Result from .diagnostics import geweke_test logger = logging.getLogger(__name__) def calculate_ci_mcmc_sample( result: Result, ci_level: float = 0.95, exclude_burn_in: bool = True,...
26.442105
79
0.650478
4a19171c5d6464c6bfb983ed74f5bcfdda6f06fc
7,621
py
Python
sdk/python/pulumi_azure_nextgen/containerregistry/v20190601preview/task_run.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/containerregistry/v20190601preview/task_run.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/containerregistry/v20190601preview/task_run.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
41.873626
259
0.647553
4a1917cac9612f9b1fcc96f6090bd28f7e3cd29c
2,186
py
Python
src/smokeyfeet/mollie_webhook/views.py
smokeyfeet/smokeyfeet-registration
6bd8e6bbab8cdbd678a9ec8fe66a1bb036479240
[ "MIT" ]
null
null
null
src/smokeyfeet/mollie_webhook/views.py
smokeyfeet/smokeyfeet-registration
6bd8e6bbab8cdbd678a9ec8fe66a1bb036479240
[ "MIT" ]
5
2020-06-02T09:36:10.000Z
2021-06-10T20:05:03.000Z
src/smokeyfeet/mollie_webhook/views.py
smokeyfeet/smokeyfeet-registration
6bd8e6bbab8cdbd678a9ec8fe66a1bb036479240
[ "MIT" ]
null
null
null
import logging from django.conf import settings from django.http import HttpResponse, HttpResponseServerError from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from mollie.api.client import Client as MollieClient from mollie.api.error import Error as MollieErro...
32.147059
85
0.745197
4a1917d7e796bad01c026079b72b5293412150cd
827
py
Python
app/app/urls.py
MrRob100/recipe-app-api
4a9b05ab80b4d1f3d79b2750b2c8aae55aa8c004
[ "MIT" ]
null
null
null
app/app/urls.py
MrRob100/recipe-app-api
4a9b05ab80b4d1f3d79b2750b2c8aae55aa8c004
[ "MIT" ]
null
null
null
app/app/urls.py
MrRob100/recipe-app-api
4a9b05ab80b4d1f3d79b2750b2c8aae55aa8c004
[ "MIT" ]
null
null
null
"""app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
34.458333
77
0.706167
4a1918d055e823f9aa786122c7902cfb312244b9
967
py
Python
tests/test_message_client.py
jinlygenius/sparrow_cloud
9cc8619aff48f7f439a63dddeb0ec15ca7fc2538
[ "MIT" ]
null
null
null
tests/test_message_client.py
jinlygenius/sparrow_cloud
9cc8619aff48f7f439a63dddeb0ec15ca7fc2538
[ "MIT" ]
null
null
null
tests/test_message_client.py
jinlygenius/sparrow_cloud
9cc8619aff48f7f439a63dddeb0ec15ca7fc2538
[ "MIT" ]
null
null
null
import os import unittest from unittest import mock from django.conf import settings class TestMessage(unittest.TestCase): """test message client""" def setUp(self): os.environ["SPARROW_TASK_TEST_SVC_HOST"] = "127.0.0.1:8001" settings.MESSAGE_SENDER_CONF = { "SERVICE_CONF": { ...
32.233333
95
0.661841
4a191902b6d901032a19dddc4b9a0861032554d5
2,481
py
Python
tool/ics.py
honmaple/maple-spider
b9b6b295114149436974f4fe82f75dc7f2797129
[ "MIT" ]
null
null
null
tool/ics.py
honmaple/maple-spider
b9b6b295114149436974f4fe82f75dc7f2797129
[ "MIT" ]
null
null
null
tool/ics.py
honmaple/maple-spider
b9b6b295114149436974f4fe82f75dc7f2797129
[ "MIT" ]
1
2019-04-20T03:22:26.000Z
2019-04-20T03:22:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ************************************************************************** # Copyright © 2017 jianglin # File Name: ics.py # Author: jianglin # Email: xiyang0807@gmail.com # Created: 2017-04-12 16:18:05 (CST) # Last Update:星期三 2017-4-12 17:4:29 (CST) # By: # Desc...
35.442857
130
0.520355
4a1919752abfaeaf89bcadd30b21c1abdeb47ada
1,193
py
Python
help/setter/admin_setter.py
relarizky/flask-pre-order
d336c179414892a8fad4bdbe63c8cb5449921729
[ "MIT" ]
null
null
null
help/setter/admin_setter.py
relarizky/flask-pre-order
d336c179414892a8fad4bdbe63c8cb5449921729
[ "MIT" ]
null
null
null
help/setter/admin_setter.py
relarizky/flask-pre-order
d336c179414892a8fad4bdbe63c8cb5449921729
[ "MIT" ]
null
null
null
# Author : Relarizky # Github : https://github.com/relarizky # File Name : help/setter/admin_setter.py # Last Modified : 02/02/21, 11:34 PM # Copyright © Relarizky 2021 from help.hash import create_sha224 from help.exception import ValueLengthError class AdminSetter: """ contains setter for Admin (tb...
24.854167
73
0.602682
4a1919bcafdb5b292fbfc9ae7c017dc60b593497
17,688
py
Python
HLTrigger/Configuration/test/OnLine_HLT_Fake2.py
vjmastra/cmssw
de96df37dbaf3543daef67339179e074bde9e858
[ "Apache-2.0" ]
1
2018-08-28T16:51:36.000Z
2018-08-28T16:51:36.000Z
HLTrigger/Configuration/test/OnLine_HLT_Fake2.py
dellaric/cmssw
cd7470dc554972076740dde7523f311c43f248d3
[ "Apache-2.0" ]
25
2016-06-24T20:55:32.000Z
2022-02-01T19:24:45.000Z
HLTrigger/Configuration/test/OnLine_HLT_Fake2.py
dellaric/cmssw
cd7470dc554972076740dde7523f311c43f248d3
[ "Apache-2.0" ]
8
2016-03-25T07:17:43.000Z
2021-07-08T17:11:21.000Z
# hltGetConfiguration --full --data /dev/CMSSW_12_3_0/Fake2 --type Fake2 --unprescale --process HLTFake2 --globaltag auto:run2_hlt_Fake2 --input file:RelVal_Raw_Fake2_DATA.root # /dev/CMSSW_12_3_0/Fake2/V3 (CMSSW_12_3_0_pre2) import FWCore.ParameterSet.Config as cms process = cms.Process( "HLTFake2" ) process.HLTCo...
42.519231
229
0.722185
4a1919f12c5effb37031c673a2db65c11940f84f
271
py
Python
pyparcel/__version__.py
najaco/PyParcel
47f2aa4fb64c8d866b630262928bd2715956bf07
[ "MIT" ]
1
2020-05-22T18:28:36.000Z
2020-05-22T18:28:36.000Z
pyparcel/__version__.py
najaco/PyParcel
47f2aa4fb64c8d866b630262928bd2715956bf07
[ "MIT" ]
15
2020-05-18T16:15:03.000Z
2021-05-03T19:33:48.000Z
pyparcel/__version__.py
najaco/PyParcel
47f2aa4fb64c8d866b630262928bd2715956bf07
[ "MIT" ]
2
2020-05-17T21:25:30.000Z
2020-05-18T22:54:23.000Z
__title__ = "pyparcel" __description__ = "The simple and secure way to convert objects to bytestrings." __url__ = "https://najaco.github.io/pyparcel/" __version__ = "1.0.0" __author__ = "Nathan Cohen" __author_email__ = "ncohen4299@gmail.com" __license__ = "MIT License"
33.875
80
0.760148
4a191ab1ed4e38d7a8d485384eddca30737aacaf
549
py
Python
output/models/nist_data/atomic/non_negative_integer/schema_instance/nistschema_sv_iv_atomic_non_negative_integer_max_exclusive_1_xsd/nistschema_sv_iv_atomic_non_negative_integer_max_exclusive_1.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/non_negative_integer/schema_instance/nistschema_sv_iv_atomic_non_negative_integer_max_exclusive_1_xsd/nistschema_sv_iv_atomic_non_negative_integer_max_exclusive_1.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/non_negative_integer/schema_instance/nistschema_sv_iv_atomic_non_negative_integer_max_exclusive_1_xsd/nistschema_sv_iv_atomic_non_negative_integer_max_exclusive_1.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional __NAMESPACE__ = "NISTSchema-SV-IV-atomic-nonNegativeInteger-maxExclusive-1-NS" @dataclass class NistschemaSvIvAtomicNonNegativeIntegerMaxExclusive1: class Meta: name = "NISTSchema-SV-IV-atomic-nonNegativeInteger-maxExclusive-1" ...
27.45
82
0.695811
4a191bc965ce800239b432eb53719005c51116ad
9,041
py
Python
rootfs/usr/lib/python3/dist-packages/serial/win32.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/serial/win32.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
rootfs/usr/lib/python3/dist-packages/serial/win32.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
from ctypes import * from ctypes.wintypes import HANDLE from ctypes.wintypes import BOOL from ctypes.wintypes import LPCWSTR _stdcall_libraries = {} _stdcall_libraries['kernel32'] = WinDLL('kernel32') from ctypes.wintypes import DWORD from ctypes.wintypes import WORD from ctypes.wintypes import BYTE INVALID_HANDLE_VAL...
31.283737
91
0.725362
4a191be9591651eccf940d1c7e92f81aa4a113cf
951
py
Python
scanpy/preprocessing/_utils.py
ShobiStassen/scanpy
44320ea365e6e22a0ff87dbe8be1ebf01d89b5cb
[ "BSD-3-Clause" ]
1
2020-01-18T07:48:09.000Z
2020-01-18T07:48:09.000Z
scanpy/preprocessing/_utils.py
ShobiStassen/scanpy
44320ea365e6e22a0ff87dbe8be1ebf01d89b5cb
[ "BSD-3-Clause" ]
null
null
null
scanpy/preprocessing/_utils.py
ShobiStassen/scanpy
44320ea365e6e22a0ff87dbe8be1ebf01d89b5cb
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.sparse import issparse STANDARD_SCALER_FIXED = False def _get_mean_var(X): # - using sklearn.StandardScaler throws an error related to # int to long trafo for very large matrices # - using X.multiply is slower if not STANDARD_SCALER_FIXED: mean = X.mean(axis=0...
31.7
69
0.618297
4a191c35e669860db95024dedd522262357f8453
119,391
py
Python
object_detection/core/target_assigner_test.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
1
2021-05-22T12:50:50.000Z
2021-05-22T12:50:50.000Z
object_detection/core/target_assigner_test.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
object_detection/core/target_assigner_test.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
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...
44.071982
86
0.543232
4a191cd286bb461789bb03bfc24ca48c4cf6fa0a
33,425
py
Python
venv/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
6
2020-10-24T05:05:07.000Z
2022-03-24T09:43:05.000Z
venv/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
venv/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
4
2020-10-18T05:37:47.000Z
2022-03-25T12:28:06.000Z
# postgresql/asyncpg.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors <see AUTHORS # file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php r""" .. dialect:: postgresql+asyncpg :name: asyncpg :dbapi: asyncpg ...
31.833333
116
0.630217
4a191cd3a75baa6521c06c7831088cce735c0bff
1,727
py
Python
grr/test_lib/stats_test_lib.py
dekoder/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
3
2018-09-30T01:31:29.000Z
2019-04-22T11:44:54.000Z
grr/test_lib/stats_test_lib.py
tomchop/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
1
2022-03-02T09:58:05.000Z
2022-03-02T09:58:05.000Z
grr/test_lib/stats_test_lib.py
tomchop/grr
27ba38dc0f5ad4f3e0cdbfb146a0a789e3b0d27b
[ "Apache-2.0" ]
1
2018-08-30T14:50:24.000Z
2018-08-30T14:50:24.000Z
#!/usr/bin/env python """Classes for stats-related testing.""" import mock from grr_response_core.lib import stats class StatsDeltaAssertionContext(object): """A context manager to check the stats variable changes.""" def __init__(self, test, delta, varname, fields=None): self.test = test self.varname ...
31.4
74
0.693109
4a191cf374f3a4314a764ad3bcb06ed3218a2a9e
1,866
py
Python
tests/fixtures.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
tests/fixtures.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
tests/fixtures.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
import asyncio from mlserver import MLModel from mlserver.types import InferenceRequest, InferenceResponse, Parameters from mlserver.codecs import NumpyCodec from mlserver.handlers.custom import custom_handler from mlserver.errors import MLServerError class SumModel(MLModel): @custom_handler(rest_path="/my-custo...
33.321429
81
0.680064
4a191dc6c97b69b485766a9c1a70680f676e7182
20,914
py
Python
main.py
joehalliwell/taming-transformers
8f92908403cc25a6edeab1eee0eb89950c08e4a6
[ "MIT" ]
null
null
null
main.py
joehalliwell/taming-transformers
8f92908403cc25a6edeab1eee0eb89950c08e4a6
[ "MIT" ]
null
null
null
main.py
joehalliwell/taming-transformers
8f92908403cc25a6edeab1eee0eb89950c08e4a6
[ "MIT" ]
null
null
null
import argparse, os, sys, datetime, glob, importlib from omegaconf import OmegaConf import numpy as np from PIL import Image import torch import torchvision from torch.utils.data import random_split, DataLoader, Dataset import pytorch_lightning as pl from pytorch_lightning import seed_everything from pytorch_lightning....
36.246101
138
0.57703
4a191dee830da0ceef82b3ea8706a02a95a1e7e8
43,733
py
Python
tests/unit/api/metadata/test_v0.py
tianruzhou-db/amundsenfrontendlibrary
d1afcf6af17f5c459a5913364138e37f240acfac
[ "Apache-2.0" ]
3
2021-02-09T13:52:03.000Z
2022-02-26T02:36:02.000Z
tests/unit/api/metadata/test_v0.py
tianruzhou-db/amundsenfrontendlibrary
d1afcf6af17f5c459a5913364138e37f240acfac
[ "Apache-2.0" ]
51
2020-12-11T23:23:55.000Z
2022-03-18T23:38:04.000Z
tests/unit/api/metadata/test_v0.py
tianruzhou-db/amundsenfrontendlibrary
d1afcf6af17f5c459a5913364138e37f240acfac
[ "Apache-2.0" ]
2
2021-02-23T18:23:35.000Z
2022-03-18T15:12:25.000Z
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import json import responses import unittest from unittest.mock import patch from http import HTTPStatus from amundsen_application import create_app from amundsen_application.api.metadata.v0 import TABLE_ENDPOINT, LAST_INDEXED_EN...
39.541591
120
0.51851
4a191f41cf38151b7b62732f50d39730def10538
1,641
py
Python
demos/unpaired_ct_lung/demo_predict.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
379
2020-07-18T22:00:53.000Z
2022-03-31T05:17:29.000Z
demos/unpaired_ct_lung/demo_predict.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
646
2020-07-18T08:55:48.000Z
2022-03-29T02:24:54.000Z
demos/unpaired_ct_lung/demo_predict.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
62
2020-07-26T05:00:23.000Z
2022-02-22T21:58:19.000Z
# pylint: disable=line-too-long import argparse from datetime import datetime from deepreg.predict import predict name = "unpaired_ct_lung" # parser is used to simplify testing, by default it is not used # please run the script with --full flag to ensure non-testing mode # for instance: # python script.py --full pa...
26.901639
72
0.63376
4a191fdc9709f1f24a5cae7828375ed3683ce21b
2,903
py
Python
src/cfnlint/rules/resources/route53/RecordSetName.py
tomislacker/cfn-python-lint
f209ddfef9bcc1a005adfebcfcc16220b18deddb
[ "MIT-0" ]
1,134
2019-03-02T14:58:34.000Z
2021-05-15T00:57:16.000Z
src/cfnlint/rules/resources/route53/RecordSetName.py
tomislacker/cfn-python-lint
f209ddfef9bcc1a005adfebcfcc16220b18deddb
[ "MIT-0" ]
1,122
2019-03-03T04:27:15.000Z
2021-05-14T20:51:16.000Z
src/cfnlint/rules/resources/route53/RecordSetName.py
tomislacker/cfn-python-lint
f209ddfef9bcc1a005adfebcfcc16220b18deddb
[ "MIT-0" ]
297
2019-03-11T09:56:57.000Z
2021-05-14T16:41:19.000Z
""" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ import six from cfnlint.rules import CloudFormationLintRule from cfnlint.rules import RuleMatch class RecordSetName(CloudFormationLintRule): """Check if a Route53 Resoruce Records Name is valid with a HostedZ...
48.383333
146
0.548398
4a19212d27217f167b2ec7d67bc4081e6dcaae31
7,064
py
Python
samples/python/topology/spl/vwap_event_time/vwap_event_time.py
markheger/streamsx.topology
8118513146399fa6a9490a1debd8037615d7acd1
[ "Apache-2.0" ]
31
2015-06-24T06:21:14.000Z
2020-08-28T21:45:50.000Z
samples/python/topology/spl/vwap_event_time/vwap_event_time.py
markheger/streamsx.topology
8118513146399fa6a9490a1debd8037615d7acd1
[ "Apache-2.0" ]
1,203
2015-06-15T02:11:49.000Z
2021-03-22T09:47:54.000Z
samples/python/topology/spl/vwap_event_time/vwap_event_time.py
markheger/streamsx.topology
8118513146399fa6a9490a1debd8037615d7acd1
[ "Apache-2.0" ]
53
2015-05-28T21:14:16.000Z
2021-12-23T12:58:59.000Z
# Licensed Materials - Property of IBM # Copyright IBM Corp. 2020 import os import streamsx.topology.context as context from streamsx.topology.topology import Topology from streamsx.topology.context import submit, ContextTypes,ConfigParams from streamsx.topology.schema import StreamSchema import streamsx.spl.op as op i...
50.820144
554
0.73004
4a1921bf3126c915d5a112c662820c243c066207
10,190
py
Python
tests/ci/metrics_lambda/app.py
mrk-andreev/ClickHouse
a36f05d6b892aa714c02661c87e2c28f2239020d
[ "Apache-2.0" ]
8,629
2016-06-14T21:03:01.000Z
2019-09-23T07:46:38.000Z
tests/ci/metrics_lambda/app.py
mrk-andreev/ClickHouse
a36f05d6b892aa714c02661c87e2c28f2239020d
[ "Apache-2.0" ]
4,335
2016-06-15T12:58:31.000Z
2019-09-23T11:18:43.000Z
tests/ci/metrics_lambda/app.py
mrk-andreev/ClickHouse
a36f05d6b892aa714c02661c87e2c28f2239020d
[ "Apache-2.0" ]
1,700
2016-06-15T09:25:11.000Z
2019-09-23T11:16:38.000Z
#!/usr/bin/env python3 import argparse import sys import json import time from collections import namedtuple import jwt import requests import boto3 from botocore.exceptions import ClientError def get_dead_runners_in_ec2(runners): ids = { runner.name: runner for runner in runners # Only ...
31.16208
88
0.616683
4a1922b0b5a2a075f6099e9cff40b3e7708bef07
2,275
py
Python
models/public/higher-hrnet-w32-human-pose-estimation/model.py
TolyaTalamanov/open_model_zoo
1697e60712df4ca72635a2080a197b9d3bc24129
[ "Apache-2.0" ]
2,201
2018-10-15T14:37:19.000Z
2020-07-16T02:05:51.000Z
models/public/higher-hrnet-w32-human-pose-estimation/model.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
759
2018-10-18T07:43:55.000Z
2020-07-16T01:23:12.000Z
models/public/higher-hrnet-w32-human-pose-estimation/model.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
808
2018-10-16T14:03:49.000Z
2020-07-15T11:41:45.000Z
# Copyright (c) 2022 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
37.295082
98
0.643956
4a19242558da7d4b554e5d79860b427096f1b398
1,283
py
Python
matrix_multiplication_complex/matrix_small_d.py
parthrao/PySpark-Projects-MachineLearning
0cbcee5cd1c7a1eb4299b14386e25d4adff4dd72
[ "Unlicense" ]
null
null
null
matrix_multiplication_complex/matrix_small_d.py
parthrao/PySpark-Projects-MachineLearning
0cbcee5cd1c7a1eb4299b14386e25d4adff4dd72
[ "Unlicense" ]
null
null
null
matrix_multiplication_complex/matrix_small_d.py
parthrao/PySpark-Projects-MachineLearning
0cbcee5cd1c7a1eb4299b14386e25d4adff4dd72
[ "Unlicense" ]
null
null
null
from __future__ import print_function from pyspark import SparkContext import sys def mapper(w): arr = w.split(" ") return (arr[0], int(broadcastVectorSmall.value[int(arr[1])-1].split(" ")[1]) * int(arr[2])) if __name__ == "__main__": if len(sys.argv) != 5: print("Usage: matrix_small_c.py vectorf...
41.387097
180
0.638348
4a192548320066966389eb1edefc4c7d50946b71
39,902
py
Python
jax/interpreters/xla.py
vballoli/jax
bbf7a432e86053024419ec8adb90aae3d06afb18
[ "ECL-2.0", "Apache-2.0" ]
2
2020-04-11T19:27:34.000Z
2020-07-26T00:31:53.000Z
jax/interpreters/xla.py
lhz1029/jax
a3cc9a7d327f46292d1edc5fcd2d0d771adc2bb9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/interpreters/xla.py
lhz1029/jax
a3cc9a7d327f46292d1edc5fcd2d0d771adc2bb9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.367308
97
0.717383
4a19254b4ca6a8323ca76214e882e656e33a3498
98,268
py
Python
electroncash/network.py
majcosta/ElectrumBCHA
23f1ec1755c87bc2e44142edc7d6276a07ca7516
[ "MIT" ]
23
2020-11-23T21:49:20.000Z
2022-02-23T05:43:44.000Z
electroncash/network.py
meaze0507/ElectrumABC
262dd0acc00763422eededf5ab20c7cb82674cdb
[ "MIT" ]
73
2020-11-24T19:04:12.000Z
2022-03-25T15:09:37.000Z
electroncash/network.py
meaze0507/ElectrumABC
262dd0acc00763422eededf5ab20c7cb82674cdb
[ "MIT" ]
6
2020-11-24T05:53:14.000Z
2022-01-24T16:09:36.000Z
# Electrum ABC - lightweight eCash client # Copyright (C) 2020 The Electrum ABC developers # Copyright (c) 2011-2016 Thomas Voegtlin # Copyright (C) 2017-2020 The Electron Cash Developers # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation fil...
48.265226
210
0.629086
4a1925abf207946c8961a7053be98febf5ab4e6b
1,244
py
Python
apprtc/fabfile.py
walterfan/webrtc_snippets
6964560a91ad3338fe8c50a9a250d0a0978eb42a
[ "Apache-2.0" ]
null
null
null
apprtc/fabfile.py
walterfan/webrtc_snippets
6964560a91ad3338fe8c50a9a250d0a0978eb42a
[ "Apache-2.0" ]
null
null
null
apprtc/fabfile.py
walterfan/webrtc_snippets
6964560a91ad3338fe8c50a9a250d0a0978eb42a
[ "Apache-2.0" ]
null
null
null
from asyncio import tasks from fabric.api import * from fabric.context_managers import * from fabric.contrib.console import confirm from datetime import date from sys import platform import os, subprocess import psutil import platform BASE_PATH = os.path.dirname(__file__) appserver_ports = {} """ Linux: Linux Mac: D...
24.392157
82
0.610129
4a19261fa844d1ce31be1c9d05b03407baed57c7
8,552
py
Python
pygeotoolbox/workflow/rest/workflows.py
raugustyn/doctest
c37b0e2fa11ebd30d600923020b1ce44145a0250
[ "MIT" ]
null
null
null
pygeotoolbox/workflow/rest/workflows.py
raugustyn/doctest
c37b0e2fa11ebd30d600923020b1ce44145a0250
[ "MIT" ]
null
null
null
pygeotoolbox/workflow/rest/workflows.py
raugustyn/doctest
c37b0e2fa11ebd30d600923020b1ce44145a0250
[ "MIT" ]
null
null
null
#!c:/python27/python.exe # -*- coding: utf-8 -*- from workflow.workflowsequence import WorkflowSequence __version__ = 0.1 import sys, os, urllib, codecs import web # http://webpy.org/cookbook/ import sharedtools TEPMLATE_RequestNotHandled = """ <p style="text-align:left"> <table> <tr><td><a href="Workflows">Work...
35.193416
112
0.588167
4a192638d3b16f8740d341c8bc848e6e2d253a9f
4,701
py
Python
library_samples/Python3/ocs_sample_library_preview/BaseClient.py
osi-awoodall/OSI-Samples-OCS
1995ccda20e4fe2ae66f3b67afbc1127d638a6fc
[ "Apache-2.0" ]
null
null
null
library_samples/Python3/ocs_sample_library_preview/BaseClient.py
osi-awoodall/OSI-Samples-OCS
1995ccda20e4fe2ae66f3b67afbc1127d638a6fc
[ "Apache-2.0" ]
null
null
null
library_samples/Python3/ocs_sample_library_preview/BaseClient.py
osi-awoodall/OSI-Samples-OCS
1995ccda20e4fe2ae66f3b67afbc1127d638a6fc
[ "Apache-2.0" ]
null
null
null
# BaseClient.py # import json from .SdsError import SdsError import requests import time class BaseClient(object): """Handles communication with Sds Service. Internal Use""" def __init__(self, apiversion, tenant, url, clientId, clientSecret, acceptVerbosity=False): self.__apivers...
30.134615
106
0.588598
4a192751f2597b6f48a108b1bcee8c03ee37d5a5
110
py
Python
test/celery_test_utils.py
lxkaka/celery-prometheus-exporter
967e8dc2320f4ce8be6e61d05ea2bf506a811140
[ "MIT" ]
null
null
null
test/celery_test_utils.py
lxkaka/celery-prometheus-exporter
967e8dc2320f4ce8be6e61d05ea2bf506a811140
[ "MIT" ]
null
null
null
test/celery_test_utils.py
lxkaka/celery-prometheus-exporter
967e8dc2320f4ce8be6e61d05ea2bf506a811140
[ "MIT" ]
null
null
null
import celery def get_celery_app(): return celery.Celery(broker='memory://', backend='cache+memory://')
18.333333
71
0.7
4a19276f4faa66c88b6f3c4f13f6b034f81e63e0
80
py
Python
ex08a EMOJI.py
RODRIGOKTK/Python-exercicios
f7985f2c277aae8b158bdeea4f2493febaaf06c5
[ "Unlicense" ]
null
null
null
ex08a EMOJI.py
RODRIGOKTK/Python-exercicios
f7985f2c277aae8b158bdeea4f2493febaaf06c5
[ "Unlicense" ]
null
null
null
ex08a EMOJI.py
RODRIGOKTK/Python-exercicios
f7985f2c277aae8b158bdeea4f2493febaaf06c5
[ "Unlicense" ]
null
null
null
import emoji print(emoji.emojize('Olá mundo :sunglasses:', use_aliases=True))
26.666667
65
0.7625
4a192875b85bb9f574d68dd60e6cbc6e1b126483
6,257
py
Python
seqal/datasets.py
tech-sketch/SeqAL
05999f722438fbb418768393d8dc209a18383b6b
[ "MIT" ]
null
null
null
seqal/datasets.py
tech-sketch/SeqAL
05999f722438fbb418768393d8dc209a18383b6b
[ "MIT" ]
20
2022-01-13T05:14:51.000Z
2022-03-11T07:30:40.000Z
seqal/datasets.py
tech-sketch/SeqAL
05999f722438fbb418768393d8dc209a18383b6b
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Dict, List, Union from flair.data import Corpus as ParentCorpus from flair.data import Sentence from flair.datasets import ColumnDataset as ParentColumnDataset from flair.datasets.base import find_train_dev_test_files from torch.utils.data import Dataset from torch.utils.dat...
37.467066
112
0.590858
4a1929283b90e99fe8fcadbf60bb6d8a151fad6c
486
py
Python
tests/conftest.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
tests/conftest.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
tests/conftest.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os # # This is needed here so that the matplotlib backend gets # set before any other imports of matplotlib # import matplotlib matplotlib.use('Agg') def pytest_configure(config): # # This tells get_config_paths() (shakemap.utils.config) to # return p...
20.25
62
0.707819
4a19298fecc095356a3a0676b768ae3949d31293
3,479
py
Python
python/paddle/fluid/tests/unittests/test_fill_constant_batch_size_like_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
1
2020-02-26T13:44:57.000Z
2020-02-26T13:44:57.000Z
python/paddle/fluid/tests/unittests/test_fill_constant_batch_size_like_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_fill_constant_batch_size_like_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 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 app...
31.917431
79
0.626329
4a192a0a19d29cea9b57847ccd8d9060b304dcfe
22,367
py
Python
allauth/account/forms.py
iarp/django-allauth
116b7a89c37149aeab083d1542539e6c99ba91a7
[ "MIT" ]
null
null
null
allauth/account/forms.py
iarp/django-allauth
116b7a89c37149aeab083d1542539e6c99ba91a7
[ "MIT" ]
null
null
null
allauth/account/forms.py
iarp/django-allauth
116b7a89c37149aeab083d1542539e6c99ba91a7
[ "MIT" ]
null
null
null
from __future__ import absolute_import import warnings from importlib import import_module from django import forms from django.contrib.auth.tokens import PasswordResetTokenGenerator from django.contrib.sites.shortcuts import get_current_site from django.core import exceptions, validators from django.urls import reve...
35.27918
88
0.611705
4a192a224a42a622ff9cba7d41e4c09c8b5b683b
12,874
py
Python
sdk/python/pulumi_command/local/command.py
pulumi/pulumi-command
0f04bbaaaf0d69d959389139fc2e60cefdb8b9c0
[ "Apache-2.0" ]
13
2021-12-30T10:08:57.000Z
2022-03-20T18:51:01.000Z
sdk/python/pulumi_command/local/command.py
pulumi/pulumi-command
0f04bbaaaf0d69d959389139fc2e60cefdb8b9c0
[ "Apache-2.0" ]
33
2021-12-15T10:14:25.000Z
2022-03-28T23:53:28.000Z
sdk/python/pulumi_command/local/command.py
pulumi/pulumi-command
0f04bbaaaf0d69d959389139fc2e60cefdb8b9c0
[ "Apache-2.0" ]
9
2022-01-10T12:05:16.000Z
2022-03-14T21:40:17.000Z
# coding=utf-8 # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['Comman...
39.734568
142
0.615659
4a192a317785a1947a04a588328a5979d7df9f47
89,128
py
Python
venv/lib/python3.9/site-packages/pyarrow/parquet.py
CMU-IDS-2022/final-project-the-evaluators
3b9262ad1a0f7315208a94a05ea1ce38e679d01d
[ "BSD-3-Clause" ]
1
2022-01-17T02:58:50.000Z
2022-01-17T02:58:50.000Z
venv/lib/python3.9/site-packages/pyarrow/parquet.py
CMU-IDS-2022/final-project-the-evaluators
3b9262ad1a0f7315208a94a05ea1ce38e679d01d
[ "BSD-3-Clause" ]
2
2021-12-03T08:48:53.000Z
2021-12-06T16:42:29.000Z
venv/lib/python3.9/site-packages/pyarrow/parquet.py
CMU-IDS-2022/final-project-the-evaluators
3b9262ad1a0f7315208a94a05ea1ce38e679d01d
[ "BSD-3-Clause" ]
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 u...
37.766102
84
0.621802
4a192a443d13fda45694dd9139d3e10fac04331a
14,859
py
Python
Lib/site-packages/matplotlib/textpath.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/matplotlib/textpath.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/matplotlib/textpath.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
from collections import OrderedDict import functools import logging import urllib.parse import numpy as np from matplotlib import _text_helpers, dviread, font_manager from matplotlib.font_manager import FontProperties, get_font from matplotlib.ft2font import LOAD_NO_HINTING, LOAD_TARGET_LIGHT from matplotlib.mathtext...
34.002288
79
0.574063
4a192aed91e139345584bb3b14c7c7de858ad814
1,435
py
Python
modelr/rock_properties.py
kwinkunks/modelr
24f338941c3c2fb87e29c0433bc175e63dc21656
[ "Apache-2.0" ]
5
2015-04-20T08:55:13.000Z
2019-08-13T17:51:43.000Z
modelr/rock_properties.py
kwinkunks/modelr
24f338941c3c2fb87e29c0433bc175e63dc21656
[ "Apache-2.0" ]
2
2015-06-04T13:52:38.000Z
2016-05-04T19:56:19.000Z
modelr/rock_properties.py
kwinkunks/modelr
24f338941c3c2fb87e29c0433bc175e63dc21656
[ "Apache-2.0" ]
4
2016-02-12T15:10:47.000Z
2020-12-23T00:46:29.000Z
''' ========================= modelr.rock_properties ========================= Container for physical rock properties ''' from bruges.rockphysics import moduli_dict as moduli class RockProperties(object): ''' Class to store rock properties. :param vp: pressure wave velocity :param vs: shear wave ve...
21.41791
59
0.503136
4a192b79ec1b5c17e4c6f29d444b8907b79555ff
30,562
py
Python
client/commands/v2/tests/start_test.py
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
null
null
null
client/commands/v2/tests/start_test.py
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
null
null
null
client/commands/v2/tests/start_test.py
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import tempfile from pathlib import Path from typing import Iterable, Tuple import testslide from .... import command_arguments, configurati...
39.536869
88
0.511158
4a192c97d8837d81f550bca1e1b97b8bcbda9b37
7,242
py
Python
bentoml/_internal/utils/tensorflow.py
joswlv/BentoML
3e4e66ebeaec76fb5a43f9897ebf3a60ed6718e4
[ "Apache-2.0" ]
null
null
null
bentoml/_internal/utils/tensorflow.py
joswlv/BentoML
3e4e66ebeaec76fb5a43f9897ebf3a60ed6718e4
[ "Apache-2.0" ]
null
null
null
bentoml/_internal/utils/tensorflow.py
joswlv/BentoML
3e4e66ebeaec76fb5a43f9897ebf3a60ed6718e4
[ "Apache-2.0" ]
null
null
null
import logging from typing import TYPE_CHECKING, Sequence, TypeVar, Union from bentoml.exceptions import MissingDependencyException if TYPE_CHECKING: # fmt: off from tensorflow.python.framework.type_spec import ( # noqa # pylint: disable=unused-import TypeSpec, ) # fmt: on logger = logging....
30.556962
122
0.640431
4a192e35c61f6874e92fe39403f9f299220b6c2b
5,245
py
Python
PaddleCV/PaddleDetection/tools/eval.py
Jie5216/models-1
4e3828a606d0cc3f1e93e9716a71a10765a88dfe
[ "Apache-2.0" ]
1
2019-08-09T06:54:02.000Z
2019-08-09T06:54:02.000Z
PaddleCV/PaddleDetection/tools/eval.py
Jie5216/models-1
4e3828a606d0cc3f1e93e9716a71a10765a88dfe
[ "Apache-2.0" ]
null
null
null
PaddleCV/PaddleDetection/tools/eval.py
Jie5216/models-1
4e3828a606d0cc3f1e93e9716a71a10765a88dfe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 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...
32.78125
91
0.693041
4a192efbc96f0f23b36c71d4bbd9671e27dae76d
1,672
py
Python
package/spack-r-dicekriging/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-r-dicekriging/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-r-dicekriging/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
45.189189
80
0.677632
4a192f5e3dc916e0ae06cfb5a7ad378e1d679ef9
1,630
py
Python
src/decisionengine/framework/util/tests/fixtures.py
moibenko/decisionengine
4c458e0c225ec2ce1e82d56e752724983331b7d1
[ "Apache-2.0" ]
null
null
null
src/decisionengine/framework/util/tests/fixtures.py
moibenko/decisionengine
4c458e0c225ec2ce1e82d56e752724983331b7d1
[ "Apache-2.0" ]
null
null
null
src/decisionengine/framework/util/tests/fixtures.py
moibenko/decisionengine
4c458e0c225ec2ce1e82d56e752724983331b7d1
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: 2017 Fermi Research Alliance, LLC # SPDX-License-Identifier: Apache-2.0 import pytest __all__ = ["prometheus_env_setup", "Gauge", "Counter", "OtherMetric"] @pytest.fixture(autouse=True) def prometheus_env_setup(tmp_path, monkeypatch): """Make sure we have a directory set for PROMETHEUS...
25.873016
77
0.693865
4a192f6b754bad4ffc3c8493bd5e5cff7624a2f6
3,293
py
Python
test/test_configuration.py
mmadsen/axelrod-ct
90ea4319dd571546888c4d2a50255514e7d7fb94
[ "Apache-2.0" ]
5
2015-05-03T08:49:11.000Z
2022-03-23T11:44:00.000Z
test/test_configuration.py
mmadsen/axelrod-ct
90ea4319dd571546888c4d2a50255514e7d7fb94
[ "Apache-2.0" ]
null
null
null
test/test_configuration.py
mmadsen/axelrod-ct
90ea4319dd571546888c4d2a50255514e7d7fb94
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013. Mark E. Madsen <mark@madsenlab.org> # # This work is licensed under the terms of the Apache Software License, Version 2.0. See the file LICENSE for details. """ Description here """ import unittest import madsenlab.axelrod.utils as utils import os import tempfile class...
29.401786
119
0.681445
4a193006755101ee451d82a7a6b9cac61c37dfdb
19,283
py
Python
airflow/providers/google/cloud/operators/functions.py
MohammedDiab/airflow
4fa7df5de9d9bfe0509722599baf1be91ffea3b8
[ "Apache-2.0" ]
null
null
null
airflow/providers/google/cloud/operators/functions.py
MohammedDiab/airflow
4fa7df5de9d9bfe0509722599baf1be91ffea3b8
[ "Apache-2.0" ]
null
null
null
airflow/providers/google/cloud/operators/functions.py
MohammedDiab/airflow
4fa7df5de9d9bfe0509722599baf1be91ffea3b8
[ "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...
42.756098
103
0.658507
4a19301deaf612d4c4129390e18b1339437feb72
4,425
py
Python
v0.7/medical_imaging/3d-unet/run.py
kahmed10/inference
4ab7690e3ebbc1a1ba56bf492437f3de92119758
[ "Apache-2.0" ]
null
null
null
v0.7/medical_imaging/3d-unet/run.py
kahmed10/inference
4ab7690e3ebbc1a1ba56bf492437f3de92119758
[ "Apache-2.0" ]
null
null
null
v0.7/medical_imaging/3d-unet/run.py
kahmed10/inference
4ab7690e3ebbc1a1ba56bf492437f3de92119758
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved. # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licen...
34.84252
111
0.642712
4a19303ee7b011f638b707a750972783e6d375f9
21,528
py
Python
venv/Lib/site-packages/sklearn/tests/test_calibration.py
baleshwari/Predict-Zomato-Restaurant-Ratings
32505433ebcd8358c52b22775cc146f875c4e190
[ "BSD-3-Clause" ]
13
2020-05-03T18:42:05.000Z
2022-03-23T07:44:19.000Z
venv/Lib/site-packages/sklearn/tests/test_calibration.py
baleshwari/Predict-Zomato-Restaurant-Ratings
32505433ebcd8358c52b22775cc146f875c4e190
[ "BSD-3-Clause" ]
25
2020-11-16T15:36:41.000Z
2021-06-01T05:15:31.000Z
venv/Lib/site-packages/sklearn/tests/test_calibration.py
baleshwari/Predict-Zomato-Restaurant-Ratings
32505433ebcd8358c52b22775cc146f875c4e190
[ "BSD-3-Clause" ]
8
2020-10-05T20:56:08.000Z
2020-10-27T23:30:03.000Z
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # License: BSD 3 clause import pytest import numpy as np from numpy.testing import assert_allclose from scipy import sparse from sklearn.base import BaseEstimator from sklearn.model_selection import LeaveOneOut, train_test_split from sklearn.uti...
38.374332
79
0.674935
4a193127fb81782028e542a41370ab8a66738c54
2,938
py
Python
venv/lib/python3.8/site-packages/pyqtgraph/util/mutex.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
23
2017-09-04T13:20:38.000Z
2022-03-08T08:15:17.000Z
venv/lib/python3.8/site-packages/pyqtgraph/util/mutex.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
102
2021-01-20T11:14:21.000Z
2021-12-12T17:34:42.000Z
venv/lib/python3.8/site-packages/pyqtgraph/util/mutex.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
5
2017-11-26T19:40:46.000Z
2021-03-11T17:25:23.000Z
# -*- coding: utf-8 -*- from ..Qt import QtCore import traceback class Mutex(QtCore.QMutex): """ Subclass of QMutex that provides useful debugging information during deadlocks--tracebacks are printed for both the code location that is attempting to lock the mutex as well as the location that has alrea...
31.255319
88
0.491491
4a193134a3f42db292126dcf4985e83a0cb7c180
129
py
Python
src/lesson_language_tools/dis_constant_folding.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_language_tools/dis_constant_folding.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_language_tools/dis_constant_folding.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
# Folded i = 1 + 2 f = 3.4 * 5.6 s = 'Hello,' + ' World!' # Not folded I = i * 3 * 4 F = f / 2 / 3 S = s + '\n' + 'Fantastic!'
11.727273
27
0.418605
4a19321fda065d8068d96856531af52c42d555f9
3,006
py
Python
env/lib/python3.8/site-packages/plotly/graph_objs/layout/__init__.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/layout/__init__.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/layout/__init__.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import sys if sys.version_info < (3, 7): from ._activeshape import Activeshape from ._angularaxis import AngularAxis from ._annotation import Annotation from ._coloraxis import Coloraxis from ._colorscale import Colorscale from ._font import Font from ._geo import Geo from ._grid import...
28.358491
55
0.560546
4a19323113ce9d7a6cd11ca8aa76ae0cd7e5f908
50
py
Python
AFluentPython/tools/__init__.py
RoboCuper-hujinlei/AI-Job
cf7a081d59700d75f0f2dc73b6d5130863796f01
[ "Apache-2.0" ]
null
null
null
AFluentPython/tools/__init__.py
RoboCuper-hujinlei/AI-Job
cf7a081d59700d75f0f2dc73b6d5130863796f01
[ "Apache-2.0" ]
null
null
null
AFluentPython/tools/__init__.py
RoboCuper-hujinlei/AI-Job
cf7a081d59700d75f0f2dc73b6d5130863796f01
[ "Apache-2.0" ]
null
null
null
""" 介绍python常用的内建模块 """ print("this is __init__")
10
25
0.68
4a193565211429ecf40cc8b9f3eece94bbe2e516
1,455
py
Python
tables/utilities.py
seanbreckenridge/rotten_tomatoes_cli
e250ad0d8bc70bf385540ab9264c440feb90d02c
[ "MIT" ]
null
null
null
tables/utilities.py
seanbreckenridge/rotten_tomatoes_cli
e250ad0d8bc70bf385540ab9264c440feb90d02c
[ "MIT" ]
null
null
null
tables/utilities.py
seanbreckenridge/rotten_tomatoes_cli
e250ad0d8bc70bf385540ab9264c440feb90d02c
[ "MIT" ]
null
null
null
import re from termcolor import colored class RottenTomatoesScoreFormatter: def __init__(self): pass def format(self, rating): if rating is None: return "N/A" return colored(text="{rating}% ".format(rating=rating), color=self.rating_color(rating=rating)) def rating_...
20.208333
103
0.564948
4a1935f66a581ad2a2efdc8fce23ca4a9bf5f6c1
76,614
py
Python
sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py
jalauzon-msft/azure-sdk-for-python
15967f5c6d3376f2334a382486ba86339786e028
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py
jalauzon-msft/azure-sdk-for-python
15967f5c6d3376f2334a382486ba86339786e028
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py
jalauzon-msft/azure-sdk-for-python
15967f5c6d3376f2334a382486ba86339786e028
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from collections import defaultdict import os import pytest import functools import itertools import datetime import json from unittest import mock from azure.core.exce...
45.306919
353
0.621492
4a1937b181ff3d49b6e216751f739d1be05163d7
2,598
py
Python
python/FFNN_MODEL_001/config--all_data.py
nathanieljevans/DEEP_DRUG_SH
52c3c8ef311aac47e0367f6d7203945af2f4575a
[ "MIT" ]
null
null
null
python/FFNN_MODEL_001/config--all_data.py
nathanieljevans/DEEP_DRUG_SH
52c3c8ef311aac47e0367f6d7203945af2f4575a
[ "MIT" ]
null
null
null
python/FFNN_MODEL_001/config--all_data.py
nathanieljevans/DEEP_DRUG_SH
52c3c8ef311aac47e0367f6d7203945af2f4575a
[ "MIT" ]
null
null
null
''' ''' params = { 'NAME' : 'ALL-DATA-3FC_010', # ----------------------------------------------------------------------------- # ----------------------------------------------------------------------------- 'DATA_DIR' : '../../data_pytorch/tensors/', 'LABEL_PATH' : '../../data_pytorch/label_dict.pkl', 'SPLIT_LABEL_P...
38.205882
82
0.339107
4a19390e5fe804d9793faf1f8a9f13d0ab155b85
2,767
py
Python
tnia/io/bioformats_helper.py
True-North-Intelligent-Algorithms/tnia-python
ab580716082e0ec655a27eb856dae629ebb1a3bf
[ "BSD-3-Clause" ]
3
2022-02-08T16:30:05.000Z
2022-02-18T22:28:50.000Z
tnia/io/bioformats_helper.py
True-North-Intelligent-Algorithms/tnia-python
ab580716082e0ec655a27eb856dae629ebb1a3bf
[ "BSD-3-Clause" ]
null
null
null
tnia/io/bioformats_helper.py
True-North-Intelligent-Algorithms/tnia-python
ab580716082e0ec655a27eb856dae629ebb1a3bf
[ "BSD-3-Clause" ]
null
null
null
""" Created on Wed Mar 17 09:22:33 2021 @author: bnorthan """ import javabridge import bioformats as bf import numpy as np def start_jvm(): javabridge.start_vm(class_path=bf.JARS) def kill_jvm(): javabridge.kill_vm() def load_volume(filename, c=0, series=0): """ load a volume (all x,y,z) from a biofor...
27.127451
130
0.603903
4a193a07b0c86c9feb8cd375f9d12a8d3e930388
943
py
Python
src/grokcore/viewlet/tests/base/viewlet/viewlet_render_and_template.py
zopefoundation/grokcore.viewlet
058cb9ca89aef705c9194e7a79b9e18a43012dbc
[ "ZPL-2.1" ]
null
null
null
src/grokcore/viewlet/tests/base/viewlet/viewlet_render_and_template.py
zopefoundation/grokcore.viewlet
058cb9ca89aef705c9194e7a79b9e18a43012dbc
[ "ZPL-2.1" ]
2
2018-01-04T15:10:32.000Z
2021-01-18T12:53:29.000Z
src/grokcore/viewlet/tests/base/viewlet/viewlet_render_and_template.py
zopefoundation/grokcore.viewlet
058cb9ca89aef705c9194e7a79b9e18a43012dbc
[ "ZPL-2.1" ]
1
2018-01-12T06:53:28.000Z
2018-01-12T06:53:28.000Z
""" A viewlet is not allowed to define its own render method and have a template associated with it at the same time. # PY2 - remove '+IGNORE_EXCEPTION_DETAIL' when dropping Python 2 support: >>> grok.testing.grok(__name__) # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... zope.c...
29.46875
79
0.747614
4a193a7b4a515dd75002a56f0c2c53fe87c5ff2d
4,411
py
Python
Opportunity/test_vanilla.py
ardywibowo/vfds
f31e187c0108d2d675d878300f13dbabc2fa473a
[ "MIT" ]
null
null
null
Opportunity/test_vanilla.py
ardywibowo/vfds
f31e187c0108d2d675d878300f13dbabc2fa473a
[ "MIT" ]
null
null
null
Opportunity/test_vanilla.py
ardywibowo/vfds
f31e187c0108d2d675d878300f13dbabc2fa473a
[ "MIT" ]
null
null
null
import argparse import json import os import time import numpy as np import torch from torch.autograd import Variable from torch.utils.data import DataLoader from VanillaGRU import VanillaGRU from OpportunityDataset import OpportunityDataset from plotting import plot_single_trajectory import multiprocessing multipr...
35.861789
106
0.639084
4a193a93a45e5b78844161331ad46a577e670047
5,791
py
Python
lib/galaxy/webapps/galaxy/services/sharable.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/webapps/galaxy/services/sharable.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
6
2021-11-11T20:57:49.000Z
2021-12-10T15:30:33.000Z
lib/galaxy/webapps/galaxy/services/sharable.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
import logging from typing import ( List, Optional, Set, Tuple, ) from sqlalchemy import false from galaxy import exceptions from galaxy.managers import base from galaxy.managers.sharable import ( SharableModelManager, SharableModelSerializer, ) from galaxy.model import User from galaxy.schema...
38.606667
113
0.664652
4a193aabafd07573d83ffb497afa5a8a6e9302fc
99,019
py
Python
kubernetes/client/api/apiregistration_v1_api.py
carloscastrojumo/python
f461dd42d48650a4ae1b41d630875cad9fcb68ad
[ "Apache-2.0" ]
2
2021-03-09T12:42:05.000Z
2021-03-09T13:27:50.000Z
kubernetes/client/api/apiregistration_v1_api.py
carloscastrojumo/python
f461dd42d48650a4ae1b41d630875cad9fcb68ad
[ "Apache-2.0" ]
7
2021-04-13T03:04:42.000Z
2022-03-02T03:10:18.000Z
kubernetes/client/api/apiregistration_v1_api.py
carloscastrojumo/python
f461dd42d48650a4ae1b41d630875cad9fcb68ad
[ "Apache-2.0" ]
1
2019-07-05T07:54:10.000Z
2019-07-05T07:54:10.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.17 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import r...
63.924467
1,390
0.655359
4a193ab0f704f8539fc31af7c4d001a339f3c151
7,045
py
Python
jyotisha/rest_api/api_v1.py
hareeshbabu82ns/jyotisha
45ac19e999174cb64c239c1e4ccfb33bc5424137
[ "MIT" ]
null
null
null
jyotisha/rest_api/api_v1.py
hareeshbabu82ns/jyotisha
45ac19e999174cb64c239c1e4ccfb33bc5424137
[ "MIT" ]
null
null
null
jyotisha/rest_api/api_v1.py
hareeshbabu82ns/jyotisha
45ac19e999174cb64c239c1e4ccfb33bc5424137
[ "MIT" ]
null
null
null
import logging import swisseph as swe import flask_restx from flask import Blueprint from flask_restx import Resource from flask_restx import reqparse import jyotisha.panchangam.spatio_temporal.annual import jyotisha.panchangam.spatio_temporal.daily from jyotisha.panchangam import scripts from jyotisha.panchangam.spa...
49.265734
248
0.731157
4a193c00afb966eda364213120de20a033401122
4,399
py
Python
vulnwhisp/frameworks/qualys_vuln.py
tylerwebb30/VulnWhisperer
4ea384c9ccc3253f38c9ad7da7dd24d072652fa3
[ "Apache-2.0" ]
null
null
null
vulnwhisp/frameworks/qualys_vuln.py
tylerwebb30/VulnWhisperer
4ea384c9ccc3253f38c9ad7da7dd24d072652fa3
[ "Apache-2.0" ]
null
null
null
vulnwhisp/frameworks/qualys_vuln.py
tylerwebb30/VulnWhisperer
4ea384c9ccc3253f38c9ad7da7dd24d072652fa3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'Nathan Young' import xml.etree.ElementTree as ET import pandas as pd import qualysapi import requests import sys import logging import os import dateutil.parser as dp class qualysWhisperAPI(object): SCANS = 'api/2.0/fo/scan' def __init__(self, config=N...
35.764228
318
0.590589
4a193c60e2fa4d99e56edb7abe0ef10d95aab3b5
1,780
py
Python
dlcv/utils.py
j2zhao/deeplens-cv
39f78a72e08997e36754914e7a3875858d5e784c
[ "MIT" ]
null
null
null
dlcv/utils.py
j2zhao/deeplens-cv
39f78a72e08997e36754914e7a3875858d5e784c
[ "MIT" ]
null
null
null
dlcv/utils.py
j2zhao/deeplens-cv
39f78a72e08997e36754914e7a3875858d5e784c
[ "MIT" ]
1
2022-01-08T21:09:07.000Z
2022-01-08T21:09:07.000Z
"""This file is part of DeepLens which is released under MIT License and is copyrighted by the University of Chicago. This project is developed by the database group (chidata). utils.py defines some utilities that can be used for debugging and manipulating image streams. """ import cv2 import numpy as np #plays vid...
25.070423
106
0.701685
4a193e62a69ccb2d2accc3f3a38ef19e2f65d421
2,220
py
Python
parseAndPopulate/loadJsonFiles.py
stanislav-chlebec/backend
95b8861c51a4a72de5b50587208b771b9e79d25d
[ "Apache-2.0" ]
null
null
null
parseAndPopulate/loadJsonFiles.py
stanislav-chlebec/backend
95b8861c51a4a72de5b50587208b771b9e79d25d
[ "Apache-2.0" ]
null
null
null
parseAndPopulate/loadJsonFiles.py
stanislav-chlebec/backend
95b8861c51a4a72de5b50587208b771b9e79d25d
[ "Apache-2.0" ]
null
null
null
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright 2018 Cisco 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...
37
109
0.63018
4a193e8b28c7e96ca42c833840d9867edb711920
3,489
py
Python
tests/data_collection/test_reddit_comment_parse.py
brandondong/twss
075cc5d716de42381bbe907c932c2d50d8d294d4
[ "MIT" ]
null
null
null
tests/data_collection/test_reddit_comment_parse.py
brandondong/twss
075cc5d716de42381bbe907c932c2d50d8d294d4
[ "MIT" ]
null
null
null
tests/data_collection/test_reddit_comment_parse.py
brandondong/twss
075cc5d716de42381bbe907c932c2d50d8d294d4
[ "MIT" ]
null
null
null
import unittest import reddit_comment_parse as rcp class TestRedditCommentParse(unittest.TestCase): def test_simple_matches(self): self.assertEqual(rcp.match_twss("That's what she said"), "") self.assertEqual(rcp.match_twss("( ͡° ͜ʖ ͡°)"), "") def test_simple_nonmatches(self): self.assertEqual(rcp.match_twss...
49.842857
129
0.712238
4a1941327f3ec8a59a212a742e3a4abdca8c47ad
2,234
py
Python
test/test_procstat.py
silverfernsys/supervisoragent
dda727d161866e190ce36de22a23381e65534ff8
[ "BSD-4-Clause" ]
null
null
null
test/test_procstat.py
silverfernsys/supervisoragent
dda727d161866e190ce36de22a23381e65534ff8
[ "BSD-4-Clause" ]
null
null
null
test/test_procstat.py
silverfernsys/supervisoragent
dda727d161866e190ce36de22a23381e65534ff8
[ "BSD-4-Clause" ]
null
null
null
import mock import os import subprocess import unittest from supervisoragent.procstat import CPUStats, MemoryStats class ProcStatTest(unittest.TestCase): def setUp(self): self.cpu = CPUStats(1) self.mem = MemoryStats(1) self.resources = os.path.join(os.path.abspath( os.path.di...
42.961538
78
0.646822
4a1941df424222cdcfbdb99210c202a44e7555da
3,044
py
Python
wandb/sweeps/base.py
nbardy/client
dfd6345d6a39f20252ac2107652e0f530fc67c98
[ "MIT" ]
1
2021-05-29T10:45:46.000Z
2021-05-29T10:45:46.000Z
wandb/sweeps/base.py
jiaqianjing/client
41fa2443b9fa28682cbf4ddde85e04df6f9cd9a8
[ "MIT" ]
null
null
null
wandb/sweeps/base.py
jiaqianjing/client
41fa2443b9fa28682cbf4ddde85e04df6f9cd9a8
[ "MIT" ]
null
null
null
""" Base classes to be inherited from for Search and EarlyTerminate algorithms """ import math from wandb.sweeps.util import is_nan_or_nan_string class Search(): def _metric_from_run(self, sweep_config, run, default=None): metric = None metric_name = sweep_config['metric']['name'] maxim...
31.061224
83
0.5818
4a1942021180584cf9ec1790234708320bbb23f5
2,679
py
Python
blog/views.py
dushyant1singh1/blog-applicaion
b058a89c23897918f38f4dd22650af3d65c0e3ec
[ "MIT" ]
3
2020-01-11T13:43:04.000Z
2021-06-05T14:42:51.000Z
blog/views.py
dushyant1singh1/blog-applicaion
b058a89c23897918f38f4dd22650af3d65c0e3ec
[ "MIT" ]
null
null
null
blog/views.py
dushyant1singh1/blog-applicaion
b058a89c23897918f38f4dd22650af3d65c0e3ec
[ "MIT" ]
2
2020-01-11T13:39:33.000Z
2020-10-10T12:50:32.000Z
from django.shortcuts import render,get_object_or_404 from .models import Post from django.core.paginator import Paginator,PageNotAnInteger from django.views.generic import ListView from .forms import EmailPostForm from django.core.mail import send_mail # Create your views here. # def post_list(request): # # posts=P...
45.40678
154
0.645017
4a1943fa2b2ef01cd5fc3b7c46878a5890f7d618
8,102
py
Python
tests/pytorch_tests/model_tests/feature_models/relu_bound_test.py
lapid92/model_optimization
3fc6db67cde912a1e22399bd43bc345ba035b8b6
[ "Apache-2.0" ]
null
null
null
tests/pytorch_tests/model_tests/feature_models/relu_bound_test.py
lapid92/model_optimization
3fc6db67cde912a1e22399bd43bc345ba035b8b6
[ "Apache-2.0" ]
null
null
null
tests/pytorch_tests/model_tests/feature_models/relu_bound_test.py
lapid92/model_optimization
3fc6db67cde912a1e22399bd43bc345ba035b8b6
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Sony Semiconductors Israel, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
46.297143
109
0.651321
4a1944404b1a267b8fb67b9746e6721b695862cb
7,434
py
Python
manim/animation/composition.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
1
2021-10-17T15:43:51.000Z
2021-10-17T15:43:51.000Z
manim/animation/composition.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
null
null
null
manim/animation/composition.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
null
null
null
"""Tools for displaying multiple animations at once.""" from __future__ import annotations from typing import TYPE_CHECKING, Callable, Optional, Sequence, Union import numpy as np from .._config import config from ..animation.animation import Animation, prepare_animation from ..mobject.mobject import Group, Mobjec...
36.441176
88
0.635055
4a1944add4d7dce784b76d80cb59fef1ea8a740c
2,476
py
Python
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_my_sql_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_my_sql_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_my_sql_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
45.018182
148
0.67811
4a19467cecf4f9c0c61b49f0dafb13d7994bed58
203
py
Python
jifx/make_geo_ids.py
zaza81/clavin
7a1f0c9745736869b5040c66785f080acc755a9c
[ "Apache-2.0" ]
null
null
null
jifx/make_geo_ids.py
zaza81/clavin
7a1f0c9745736869b5040c66785f080acc755a9c
[ "Apache-2.0" ]
null
null
null
jifx/make_geo_ids.py
zaza81/clavin
7a1f0c9745736869b5040c66785f080acc755a9c
[ "Apache-2.0" ]
null
null
null
import sys f = open("GeocodedTweets.tsv") f.readline() print "id\tUnknown1\tUnknown2\tUserName\tTweet\tGeocoded\tLat\tLong\tDateTime" i = 0 for line in f: i += 1 print str(i) + "\t" + line,
14.5
78
0.665025
4a1946b9c6b713b1c62d68e921241dadd64a22e2
838
py
Python
docker/nginx/start.py
nabladev/ohmyform
b9180596905c0e423ba4fef0789b810ded56c771
[ "MIT" ]
2,092
2017-04-24T10:37:44.000Z
2022-03-30T13:44:39.000Z
docker/nginx/start.py
nabladev/ohmyform
b9180596905c0e423ba4fef0789b810ded56c771
[ "MIT" ]
146
2017-04-23T17:55:31.000Z
2019-10-09T14:00:12.000Z
docker/nginx/start.py
nabladev/ohmyform
b9180596905c0e423ba4fef0789b810ded56c771
[ "MIT" ]
503
2017-04-23T12:21:43.000Z
2022-03-30T15:07:43.000Z
#!/usr/bin/python import os import subprocess #Set default port if not os.environ["PORT"]: os.environ["PORT"] = "5000" #Set default sockets port if not os.environ["SOCKET_PORT"]: os.environ["SOCKET_PORT"] = "20523" # Actual startup script if not os.path.exists("/certs/dhparam.pem") and os.environ["TLS_FLAVOR"] !=...
33.52
180
0.681384
4a19488b7518e11550f4c9050ea8bb16561262f8
379
py
Python
src/time_functions.py
joseph-mccarthy/night-sky-pi
045b54c8ae8d551e951cd35bc40a94d3a4171975
[ "MIT" ]
null
null
null
src/time_functions.py
joseph-mccarthy/night-sky-pi
045b54c8ae8d551e951cd35bc40a94d3a4171975
[ "MIT" ]
null
null
null
src/time_functions.py
joseph-mccarthy/night-sky-pi
045b54c8ae8d551e951cd35bc40a94d3a4171975
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta def _get_now() -> datetime: return datetime.now() def get_today() -> datetime: return _get_now() def get_tomorrow() -> datetime: return _get_now() + timedelta(1) def get_yesterday() -> datetime: return _get_now() - timedelta(1) def get_dates() -> tuple():...
18.95
57
0.6781
4a1948b00b976be11cf32a3ed896cfdd0620f4c0
4,652
py
Python
tests/distributed/test_workspaces/test_remote_workspaces.py
manognyaa/jina
14cbb0dd1d5d7493f12cf4b8fb4066626f17c2e1
[ "Apache-2.0" ]
null
null
null
tests/distributed/test_workspaces/test_remote_workspaces.py
manognyaa/jina
14cbb0dd1d5d7493f12cf4b8fb4066626f17c2e1
[ "Apache-2.0" ]
null
null
null
tests/distributed/test_workspaces/test_remote_workspaces.py
manognyaa/jina
14cbb0dd1d5d7493f12cf4b8fb4066626f17c2e1
[ "Apache-2.0" ]
null
null
null
import os import time import numpy as np import pytest from jina import Flow, Client, Document, __default_host__ from ..helpers import create_workspace, wait_for_workspace, delete_workspace cur_dir = os.path.dirname(os.path.abspath(__file__)) compose_yml = os.path.join(cur_dir, 'docker-compose.yml') """ Run below c...
29.820513
102
0.610275
4a1948bc3a2fa9e966660a404195ba7975bb34d2
9,056
py
Python
bokeh/core/properties.py
RunOrVeith/bokeh
a29eda007c886ec0cb21628038204f08cfe6b4c1
[ "BSD-3-Clause" ]
null
null
null
bokeh/core/properties.py
RunOrVeith/bokeh
a29eda007c886ec0cb21628038204f08cfe6b4c1
[ "BSD-3-Clause" ]
4
2021-03-18T22:30:03.000Z
2022-02-12T06:12:28.000Z
bokeh/core/properties.py
RunOrVeith/bokeh
a29eda007c886ec0cb21628038204f08cfe6b4c1
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
28.3
89
0.629638
4a1948d3d05295f67598c31ac17557038e4c764d
38,762
py
Python
built_in_tasks/onedim_lfp_tasks.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
built_in_tasks/onedim_lfp_tasks.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
built_in_tasks/onedim_lfp_tasks.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
''' Base tasks for generic point-to-point reaching ''' from __future__ import division import numpy as np from collections import OrderedDict import time from riglib import reward from riglib.experiment import traits, Sequence from riglib.stereo_opengl.window import Window, FPScontrol, WindowDispl2D from ...
39.035247
161
0.599453
4a19494c9c70cf552815402d2169960d24fd1849
2,898
py
Python
examples/slds.py
bogiebro/funsor
c15eaf7019e34c647630ed3da89001e620a972fa
[ "Apache-2.0" ]
null
null
null
examples/slds.py
bogiebro/funsor
c15eaf7019e34c647630ed3da89001e620a972fa
[ "Apache-2.0" ]
null
null
null
examples/slds.py
bogiebro/funsor
c15eaf7019e34c647630ed3da89001e620a972fa
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import argparse import torch import funsor import funsor.torch.distributions as dist import funsor.ops as ops def main(args): # Declare parameters. trans_probs = funsor.Tensor(torch.tensor([[0.9, 0.1], ...
35.341463
85
0.622498
4a194a01fe52f861512ad6d10538ce1c97ba3d9d
424
py
Python
apps/service/migrations/0008_auto_20210904_1623.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
4
2020-12-25T16:17:53.000Z
2022-01-19T15:06:19.000Z
apps/service/migrations/0008_auto_20210904_1623.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
294
2020-07-17T15:45:21.000Z
2022-03-27T10:24:01.000Z
apps/service/migrations/0008_auto_20210904_1623.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
3
2020-12-30T17:14:24.000Z
2021-12-19T09:14:22.000Z
# Generated by Django 3.1.12 on 2021-09-04 12:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('service', '0007_auto_20210904_1621'), ] operations = [ migrations.AlterField( model_name='notify', name='crontab', ...
22.315789
86
0.615566
4a194a5ca9aa84d6f5f8383a14ea92b60dfa4f56
1,133
py
Python
tests/integration/test_logger.py
deepio-oc/agent-Python-RobotFramework
da468a307910a0d2e3d0f6c11317f7cc2577e1d2
[ "Apache-2.0" ]
42
2016-09-15T10:08:57.000Z
2022-03-23T10:00:46.000Z
tests/integration/test_logger.py
MAIF/agent-Python-RobotFramework
37db7c5cf06928683171465adb0d28fa8bfec18b
[ "Apache-2.0" ]
100
2016-12-05T10:12:30.000Z
2022-03-15T16:25:15.000Z
tests/integration/test_logger.py
MAIF/agent-Python-RobotFramework
37db7c5cf06928683171465adb0d28fa8bfec18b
[ "Apache-2.0" ]
42
2016-12-05T11:08:02.000Z
2021-12-07T09:36:13.000Z
""" Copyright (c) 2021 http://reportportal.io . 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,...
34.333333
76
0.759047
4a194aaaa85b49132e0cbc07c9714b958e2cba2d
2,155
py
Python
accounts/forms.py
MrMohammadY/bmi
cabfdfb9d580f6e4cdea9b0629d4dfcf7090ba22
[ "MIT" ]
2
2021-12-16T10:56:45.000Z
2022-01-27T17:21:47.000Z
accounts/forms.py
MrMohammadY/bmi
cabfdfb9d580f6e4cdea9b0629d4dfcf7090ba22
[ "MIT" ]
null
null
null
accounts/forms.py
MrMohammadY/bmi
cabfdfb9d580f6e4cdea9b0629d4dfcf7090ba22
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth import get_user_model, authenticate from django.contrib.auth.password_validation import validate_password from django.core.exceptions import ValidationError from django.db.models import Q User = get_user_model() class RegistrationForm(forms.ModelForm): password =...
30.785714
105
0.62413
4a194dc983c3cddc3e3e3bb82e51b0c6c48fbf9f
30,489
py
Python
dual_task/emr_run.py
thaihungle/DMNC
3ce17a9277bbeeb8125b588e86cc8aace67a0924
[ "MIT" ]
11
2018-04-26T10:56:03.000Z
2021-03-20T08:46:25.000Z
dual_task/emr_run.py
thaihungle/DMNC
3ce17a9277bbeeb8125b588e86cc8aace67a0924
[ "MIT" ]
1
2018-07-21T19:29:57.000Z
2018-08-03T06:14:52.000Z
dual_task/emr_run.py
thaihungle/DMNC
3ce17a9277bbeeb8125b588e86cc8aace67a0924
[ "MIT" ]
5
2019-02-20T23:51:38.000Z
2019-12-05T05:41:55.000Z
import warnings warnings.filterwarnings('ignore') import tensorflow as tf import numpy as np import pickle import getopt import time import sys import os import nltk from sklearn.metrics import roc_auc_score, f1_score sys.path.append(os.path.dirname(os.path.abspath(__file__))+'/../') import beam_search from dual_dnc i...
44.574561
135
0.484076
4a194dec8f39b0df9605a7674a3878e246edd0a0
4,519
py
Python
huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_version_request_body.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-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_version_request_body.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-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_version_request_body.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 CreateFunctionVersionRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (...
26.739645
85
0.575791
4a194f90691328ac383b2597f95e95f2477e67ff
409
py
Python
python_random_is_all_about/test_platform/e2e/file_1.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
5
2018-05-03T08:16:02.000Z
2021-09-04T03:44:24.000Z
python_random_is_all_about/test_platform/e2e/file_1.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
1
2022-01-28T19:27:19.000Z
2022-01-28T19:27:19.000Z
python_random_is_all_about/test_platform/e2e/file_1.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
2
2020-09-10T13:33:27.000Z
2022-02-09T11:07:38.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # """ cd /Users/brunoflaven/Documents/02_copy/_random_is_all_about python file_1.py """ import random file='file_1.py' # print('\n') # print('You are in: ', file) # print('\n') def get_random_choice(input_array): return random.choice(input_array) print('\n') print(f...
15.148148
71
0.662592
4a194f9b131f86dffb8c8a14af16cd8f80cf9523
2,787
py
Python
make_jyutping_corpus_freqs.py
gkovacs/fcitx-rime-config
b7845ff210de889e7b3418a48ce150d6edacd74d
[ "MIT" ]
6
2018-08-25T07:49:06.000Z
2021-01-12T20:29:41.000Z
make_jyutping_corpus_freqs.py
gkovacs/fcitx-rime-config
b7845ff210de889e7b3418a48ce150d6edacd74d
[ "MIT" ]
null
null
null
make_jyutping_corpus_freqs.py
gkovacs/fcitx-rime-config
b7845ff210de889e7b3418a48ce150d6edacd74d
[ "MIT" ]
1
2021-01-24T03:44:51.000Z
2021-01-24T03:44:51.000Z
import sys from collections import Counter import json from memoize import memoize import pinyin import jyutping import pycantonese corpus = pycantonese.hkcancor() #from hanziconv import HanziConv from opencc import OpenCC s2hk = OpenCC('s2hk').convert from mkdict import pinyin_to_zhuyin_real as pinyin_to_zhuyin from...
25.108108
60
0.694295
4a1950519c01a40cfd18e649cd91e79234138faf
26,029
py
Python
resolutionwr.py
colinquirk/PsychopyResolutionWR
ef028887b3e3b85c1fa8872aa273b869b5f63593
[ "MIT" ]
4
2020-03-21T00:27:33.000Z
2021-12-29T20:30:39.000Z
resolutionwr.py
colinquirk/PsychopyResolutionWR
ef028887b3e3b85c1fa8872aa273b869b5f63593
[ "MIT" ]
null
null
null
resolutionwr.py
colinquirk/PsychopyResolutionWR
ef028887b3e3b85c1fa8872aa273b869b5f63593
[ "MIT" ]
1
2021-12-07T19:26:09.000Z
2021-12-07T19:26:09.000Z
"""An estimation whole report experiment. Author - Colin Quirk (cquirk@uchicago.edu) Repo: https://github.com/colinquirk/PsychopyResolutionWR This is a working memory paradigm adapted from Adam, Vogel, Awh (2017) with minor differences. This code can either be used directly or it can be inherited and extended. If th...
35.705075
112
0.618195
4a1950c06395988bec3e4292af4b31453c8589df
6,450
py
Python
ATT_train_and_test_comments.py
tanyakhandelwal21/DefectDetectionModels
b8404a5a1f6876fc402ce37812c084c0c9aca883
[ "MIT" ]
null
null
null
ATT_train_and_test_comments.py
tanyakhandelwal21/DefectDetectionModels
b8404a5a1f6876fc402ce37812c084c0c9aca883
[ "MIT" ]
null
null
null
ATT_train_and_test_comments.py
tanyakhandelwal21/DefectDetectionModels
b8404a5a1f6876fc402ce37812c084c0c9aca883
[ "MIT" ]
null
null
null
#import statements from ATT model from collections import defaultdict import re from bs4 import BeautifulSoup import sys import os from bs4 import BeautifulSoup import sys import os os.environ['KERAS_BACKEND']='tensorflow' from tensorflow.keras.preprocessing.text import Tokenizer, text_to_word_sequence from tens...
32.41206
132
0.67876
4a1951e9e58a63103c1b73625a0b80322c35681f
1,533
py
Python
Course_3/Week_03/edit_distance.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_3/Week_03/edit_distance.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_3/Week_03/edit_distance.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 def calculateDistance(str_a, str_b): length_a = len(str_a) length_b = len(str_b) distance = [[0 for _ in range(length_b+1)] for _ in range(length_a+1)] batchtrace = [[None for _ in range(length_b+1)] for _ in range(length_a+1)] for i in range(length_a+1): for j in range(length_b+1): ...
32.617021
90
0.553164
4a1953a12321b2958a023c841a29429ee9e156af
547
py
Python
env/lib/python3.8/site-packages/plotly/validators/scatter/marker/colorbar/_tick0.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/scatter/marker/colorbar/_tick0.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/scatter/marker/colorbar/_tick0.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): def __init__( self, plotly_name="tick0", parent_name="scatter.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=pa...
34.1875
82
0.636197