hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9ee58ab0ec9cea1c9f03478499ee877c3a33ef61
380
py
Python
wlanpi_commands/show_uptime.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
wlanpi_commands/show_uptime.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
wlanpi_commands/show_uptime.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
from .command import Command from utils.uptime import Uptime class ShowUptime(Command): def __init__(self, telegram_object, conf_obj): super().__init__(telegram_object, conf_obj) self.command_name = "show_uptime" def run(self, args_list): import time uptime_obj = Upt...
22.352941
52
0.673684
9ee5974a817fbc97b68776607db89ab88004f2f9
1,271
py
Python
test/lmp/script/train_tknzr/test_parse_ws_args.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/script/train_tknzr/test_parse_ws_args.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/script/train_tknzr/test_parse_ws_args.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test parsing :py:class:`lmp.tknzr.WsTknzr` arguments. Test target: - :py:meth:`lmp.script.train_tknzr.parse_args`. - :py:meth:`lmp.tknzr.WsTknzr.add_CLI_args`. """ import lmp.dset import lmp.script.train_tknzr from lmp.tknzr import WsTknzr def test_ws_tknzr_parse_results( exp_name: str, is_uncased: bool, m...
24.921569
77
0.624705
9ee5ad8f67c4d0218bcca84ac083a631d43b6a5a
3,234
py
Python
mandala/storages/call_graph.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
9
2022-02-22T19:24:01.000Z
2022-03-23T04:46:41.000Z
mandala/storages/call_graph.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
null
null
null
mandala/storages/call_graph.py
amakelov/mandala
a9ec051ef730ada4eed216c62a07b033126e78d5
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from networkx.algorithms.dag import ancestors from ..common_imports import * class BaseCallGraphStorage(ABC): @abstractmethod def add_edge(self, source:str, target:str): raise NotImplementedError() @abstractmethod def delete_node(self, name:str): ...
32.019802
71
0.625232
9ee60069bca758ba4f75bb16e565a0e4e4417eea
4,288
py
Python
functional/tests/identity/v2/test_role.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
functional/tests/identity/v2/test_role.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
functional/tests/identity/v2/test_role.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
# 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 # d...
38.630631
78
0.568797
9ee61b002781338bd5c23dc70fc488f6a6e0aa71
2,372
py
Python
user/login/resources/login.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
4
2018-04-23T00:04:01.000Z
2018-10-28T22:56:51.000Z
user/login/resources/login.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
23
2017-12-22T08:27:35.000Z
2021-12-13T19:57:35.000Z
user/login/resources/login.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
1
2020-06-03T02:07:26.000Z
2020-06-03T02:07:26.000Z
""" Contains necessary Resources to works with user authentication. """ import json from datetime import datetime, timedelta import os from utils.req_to_dict import req_to_dict import falcon import jwt from passlib.hash import sha512_crypt from utils.switch_language import SwitchLanguage @falcon.before(SwitchLangu...
31.626667
92
0.531197
9ee62f43a731e7f1235ddcf66412354c43f7de79
6,474
py
Python
tests/functional/api/test_profile.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/functional/api/test_profile.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/functional/api/test_profile.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import pytest # String type for request/response headers and metadata in WSGI. # # Per PEP-3333, this is intentionally `str` under both Python 2 and 3, even # though it has different meanings. # # See https://www.python.org/dev/peps/pep-3333/#a-note-on-...
32.049505
85
0.676089
9ee639dc90af2ff838860add57812f99efb82c72
376
py
Python
Pi_Car/config/local_config.py
snowwar/Pi-Car
d30626af8e563ca124325403ee5f2d15ea583105
[ "MIT" ]
5
2020-02-29T10:00:33.000Z
2021-01-29T22:52:50.000Z
Pi_Car/config/local_config.py
snowwar/Pi-Car
d30626af8e563ca124325403ee5f2d15ea583105
[ "MIT" ]
null
null
null
Pi_Car/config/local_config.py
snowwar/Pi-Car
d30626af8e563ca124325403ee5f2d15ea583105
[ "MIT" ]
6
2021-06-06T03:01:39.000Z
2021-11-25T02:17:07.000Z
# LOCAL DEVELOPMENT CONFIG FILE # More config options: https://flask.palletsprojects.com/en/1.1.x/config/ # Flask specific values TESTING = True APPLICATION_ROOT = "/" PREFERRED_URL_SCHEME = "http" # Custom values # Possible logging levels: # CRITICAL - FATAL - ERROR - WARNING - INFO - DEBUG - NOTSET LOGGER_LEVEL = "...
25.066667
73
0.742021
9ee65d6d7832934ae41e8792e0bf2dd2c64b9663
639
py
Python
services/traction/acapy_wrapper/models/cred_revoked_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/cred_revoked_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/cred_revoked_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class CredRevokedResult(BaseModel): """NOTE: This cla...
24.576923
96
0.733959
9ee662d6a35ad25a21628a819a6e8d18fb92eafb
910
py
Python
setup.py
ag-bell/dcmstack
a10e03fe1fa8408ed689f5c8bbdc7c803a780b27
[ "MIT" ]
58
2015-02-17T09:56:13.000Z
2021-11-29T14:51:09.000Z
setup.py
ag-bell/dcmstack
a10e03fe1fa8408ed689f5c8bbdc7c803a780b27
[ "MIT" ]
42
2015-02-13T12:51:06.000Z
2021-11-13T07:54:30.000Z
setup.py
ag-bell/dcmstack
a10e03fe1fa8408ed689f5c8bbdc7c803a780b27
[ "MIT" ]
35
2015-05-19T19:06:15.000Z
2022-01-12T21:14:12.000Z
from setuptools import setup, find_packages import sys, os # Most of the relevant info is stored in this file info_file = os.path.join('src', 'dcmstack', 'info.py') exec(open(info_file).read()) setup(name=NAME, description=DESCRIPTION, author=AUTHOR, author_email=AUTHOR_EMAIL, maintainer=MAIN...
29.354839
67
0.607692
9ee66e7a09c7a990c790992e624222a2b8716b65
29,931
py
Python
Tensorflow_Pandas_Numpy/source3.6/keras_applications/nasnet.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
31
2018-10-19T15:28:36.000Z
2022-02-14T03:01:25.000Z
Tensorflow_Pandas_Numpy/source3.6/keras_applications/nasnet.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
4
2020-03-24T16:06:51.000Z
2021-06-10T20:48:41.000Z
Tensorflow_Pandas_Numpy/source3.6/keras_applications/nasnet.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
10
2019-01-10T04:02:12.000Z
2021-11-17T01:52:15.000Z
"""NASNet-A models for Keras. NASNet refers to Neural Architecture Search Network, a family of models that were designed automatically by learning the model architectures directly on the dataset of interest. Here we consider NASNet-A, the highest performance model that was found for the CIFAR-10 dataset, and then ext...
39.643709
89
0.556246
9ee67643ab07f4af26db5fc231a61777f71b308f
17,320
py
Python
src/ggrc_workflows/models/cycle_task_group_object_task.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
src/ggrc_workflows/models/cycle_task_group_object_task.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_workflows/models/cycle_task_group_object_task.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Module containing Cycle tasks. """ from logging import getLogger from sqlalchemy import orm import sqlalchemy as sa from sqlalchemy.ext import hybrid from werkzeug.exceptions import BadRequest from ggrc...
36.772824
79
0.617956
9ee678aaea86ee1d5db812b3234c278660a47f12
10,152
py
Python
App.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
App.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
App.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
#!/bin/python3 -*- coding: utf-8 -*- """ @Author : Jessy JOSE -- Pierre VAUDRY -- Enora GUILLAUME -- Luc VIERNE IPSA Aero2 - Prim1 Release date: 07/04/2021 [other information] Licence: MIT Version: GUI_v6.0 / DataTool_v1.8 [Description] Ce projet a pour but de permettre la gestion d'un parc automonile [Class...
32.33121
92
0.579689
9ee6adc3d4f25979ee7921ff3f270cf7f5bf5ad6
642
py
Python
tap_apple_search_ads/request_headers.py
SageData-OOD/tap-apple-search-ads
f38de3a6d1799ec1163c8f4c6c5c1ed5f94e4bdf
[ "MIT" ]
null
null
null
tap_apple_search_ads/request_headers.py
SageData-OOD/tap-apple-search-ads
f38de3a6d1799ec1163c8f4c6c5c1ed5f94e4bdf
[ "MIT" ]
null
null
null
tap_apple_search_ads/request_headers.py
SageData-OOD/tap-apple-search-ads
f38de3a6d1799ec1163c8f4c6c5c1ed5f94e4bdf
[ "MIT" ]
null
null
null
import singer logger = singer.get_logger() class RequestHeaders: def __init__(self, org_id): self.org_id = org_id def value(self, access_token): if access_token["token_type"] != "Bearer": message = "Unexpected token_type [{}], expected Bearer" logger.error(message, ac...
29.181818
74
0.590343
9ee6bf0d9e6c044e39a3d5e2a42299e01cad1670
18,786
py
Python
Python/experiments/classification/adult_demographic_shift.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
1
2022-03-22T20:13:02.000Z
2022-03-22T20:13:02.000Z
Python/experiments/classification/adult_demographic_shift.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
null
null
null
Python/experiments/classification/adult_demographic_shift.py
sgiguere/Fairness-Gaurantees-under-Demographic-Shift
d081307d34cde75ca74e07ddbe059e8273095aee
[ "MIT" ]
null
null
null
import numpy as np import warnings from time import time import pandas as pd from itertools import count, product from copy import deepcopy from scipy import optimize from sklearn import linear_model as LM from sklearn.svm import SVC, LinearSVC from sklearn.neural_network import MLPClassifier from sklearn.exceptions i...
40.574514
238
0.695411
9ee6cf82237b4603711a3a55a12a4da67fbe1703
910
py
Python
vyperlogix/mail/send.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/mail/send.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/mail/send.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
import smtplib import os from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.Utils import COMMASPACE, formatdate from email import Encoders def send_mail(send_from, send_to, subject, text, files=[], server="localhost"): assert type(send_to)...
29.354839
93
0.725275
9ee702056727a3ab6a44662746f0608553425ae1
2,180
py
Python
test/sample_app/sample_app.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
209
2015-01-01T07:43:06.000Z
2021-11-15T09:31:35.000Z
test/sample_app/sample_app.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
3
2015-09-16T18:29:09.000Z
2019-04-09T13:14:18.000Z
test/sample_app/sample_app.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
51
2015-01-06T13:46:12.000Z
2020-11-23T17:29:55.000Z
#!/usr/bin/env python import os import tornado.httpserver import tornado.ioloop import tornado.web import tornado.options import logging import simplejson as json import asyncmongo import pymongo.json_util import base64 import settings class BaseHandler(tornado.web.RequestHandler): @property def db(self): ...
32.058824
97
0.657798
9ee7209c766b8808dde8fbd50c0c10baf0abb3b6
2,821
py
Python
src/Products/ZCTextIndex/tests/testHTMLSplitter.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
null
null
null
src/Products/ZCTextIndex/tests/testHTMLSplitter.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
1
2021-02-10T16:05:38.000Z
2021-02-10T16:05:38.000Z
src/Products/ZCTextIndex/tests/testHTMLSplitter.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
1
2021-02-10T15:34:58.000Z
2021-02-10T15:34:58.000Z
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
38.643836
78
0.613967
9ee7350ca6e18d85c618076cd4a2446dc472c945
5,007
py
Python
python/gcore/minixml_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
python/gcore/minixml_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
4
2017-01-25T18:11:31.000Z
2017-04-04T20:51:45.000Z
python/gcore/minixml_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
35.260563
78
0.626523
9ee73a5a65fd3ac3ac02d81623f3043f2ac2bc4f
566
py
Python
manage.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
manage.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
manage.py
sam-karis/questioner-api
bbffe431cc94fc2eeaae29600fb546a1f483920d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'questioner.settings.production') # noqa E501 try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "C...
35.375
98
0.690813
9ee73b074c55f52a0c94d3da9772c6cd318058ed
14,781
py
Python
niapy/algorithms/modified/saba.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
niapy/algorithms/modified/saba.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
niapy/algorithms/modified/saba.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
# encoding=utf8 import logging import numpy as np from niapy.algorithms.algorithm import Algorithm logging.basicConfig() logger = logging.getLogger('niapy.algorithms.modified') logger.setLevel('INFO') __all__ = ['AdaptiveBatAlgorithm', 'SelfAdaptiveBatAlgorithm'] class AdaptiveBatAlgorithm(Algorithm): r"""Imp...
37.231738
145
0.619444
9ee7910fe4f7241fda3852e33c993560b0821819
864
py
Python
tests/integration/__init__.py
abbas123456/django-right-to-left
b52945ba908a29c13f8c7e20e08f9e81e1fd3e80
[ "BSD-3-Clause" ]
4
2015-09-29T18:05:35.000Z
2020-09-18T22:47:24.000Z
tests/integration/__init__.py
abbas123456/django-right-to-left
b52945ba908a29c13f8c7e20e08f9e81e1fd3e80
[ "BSD-3-Clause" ]
3
2020-02-11T23:20:52.000Z
2021-06-10T18:39:15.000Z
tests/integration/__init__.py
abbas123456/django-right-to-left
b52945ba908a29c13f8c7e20e08f9e81e1fd3e80
[ "BSD-3-Clause" ]
2
2018-07-31T05:55:06.000Z
2018-12-05T13:52:55.000Z
import imp import pkg_resources import sys class MockProvider(pkg_resources.NullProvider): def __init__(self, module): pkg_resources.NullProvider.__init__(self, module) self.module = module def _has(self, path): return path in self.module._resources def _isdir(self, path): ...
22.153846
58
0.681713
9ee7d8518d6d0fc91ac5bba12b25a436b0b8fd43
1,296
py
Python
setup.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
2
2015-03-17T05:02:42.000Z
2016-04-07T15:02:28.000Z
setup.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
null
null
null
setup.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
1
2015-10-07T21:50:44.000Z
2015-10-07T21:50:44.000Z
# needs to be tested from __future__ import print_function import sys if len(sys.argv)>1 and sys.argv[1] == 'develop': # Only import setuptools if we have to import site from os.path import dirname, abspath, join site_packages = site.getsitepackages()[0] fname = join(site_packages, "kitchensink.pth"...
30.857143
66
0.587191
9ee7dd15f97a738ec757c17aaf5637aade9bcf4a
2,933
py
Python
leo/external/rope/rope/contrib/finderrors.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/external/rope/rope/contrib/finderrors.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/external/rope/rope/contrib/finderrors.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
"""Finding bad name and attribute accesses `find_errors` function can be used to find possible bad name and attribute accesses. As an example:: errors = find_errors(project, project.get_resource('mod.py')) for error in errors: print '%s: %s' % (error.lineno, error.error) prints possible errors for ``mod.p...
31.880435
68
0.64371
9ee7dea0c98f2cb091c680b750323bbcfa75e225
853
py
Python
advbench/lib/reporting.py
constrainedlearning/advbench
68f9f6d77268aad45517ca84d383b996724cc976
[ "MIT" ]
5
2021-11-09T13:21:45.000Z
2022-03-14T21:15:31.000Z
advbench/lib/reporting.py
constrainedlearning/advbench
68f9f6d77268aad45517ca84d383b996724cc976
[ "MIT" ]
1
2022-03-03T18:56:13.000Z
2022-03-03T18:58:38.000Z
advbench/lib/reporting.py
constrainedlearning/advbench
68f9f6d77268aad45517ca84d383b996724cc976
[ "MIT" ]
3
2021-11-02T21:01:44.000Z
2022-03-23T18:50:49.000Z
import os import tqdm import pandas as pd def load_records(path, results_fname='results', depth=1): assert results_fname in ['results', 'meters'] records = [] def add_record(results_path): try: df = pd.read_pickle(results_path) records.append(df) # want to ignore ...
26.65625
93
0.626026
9ee7eba3f9238577dff9b77f9e7427e077f80448
2,203
py
Python
stackoverflow-solutions/submission-scripts/SO_Q63257534_code_infinitely_runs_loop.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
1
2020-07-21T23:24:25.000Z
2020-07-21T23:24:25.000Z
stackoverflow-solutions/submission-scripts/SO_Q63257534_code_infinitely_runs_loop.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
4
2021-06-29T00:38:57.000Z
2022-01-15T00:22:15.000Z
stackoverflow-solutions/submission-scripts/SO_Q63257534_code_infinitely_runs_loop.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
null
null
null
""" Purpose: Stackoverflow post Date created: 2020-08-04 URL: https://stackoverflow.com/questions/63257534/code-infinitely-runs-loop-and-i-dont-see-why/63257658#63257534 Contributor(s): Mark M. """ """ # Original code while gameOver == False: print('\nWhere would you like to move?\nYou can chose top-, mid-...
23.43617
125
0.591466
9ee81568ded8a61e8fe1fec673943fc4075bc087
2,434
py
Python
jina/types/mixin.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
4
2021-06-29T04:14:31.000Z
2021-08-01T07:01:08.000Z
jina/types/mixin.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1
2021-12-25T09:06:13.000Z
2021-12-25T09:06:13.000Z
jina/types/mixin.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1
2021-07-30T07:07:01.000Z
2021-07-30T07:07:01.000Z
from typing import Dict from google.protobuf.json_format import MessageToJson, MessageToDict from ..helper import typename from ..proto import jina_pb2 class ProtoTypeMixin: """Mixin class of `ProtoType`.""" def json(self) -> str: """Return the object in JSON string :return: JSON string of...
28.302326
75
0.607231
9ee816df2b8e6e7818186d06183a586c0d65b5b2
14,986
py
Python
lm_eval/tasks/glue.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
4
2021-10-14T15:55:39.000Z
2021-12-15T14:44:08.000Z
lm_eval/tasks/glue.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
null
null
null
lm_eval/tasks/glue.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
null
null
null
import numpy as np from lm_eval.base import rf from ..metrics import mean, matthews_corrcoef, f1_score from . common import HFTask, yesno from ..utils import general_detokenize # Single-Sentence Tasks class CoLA(HFTask): DATASET_PATH = "glue" DATASET_NAME = "cola" def has_training_docs(self): re...
26.904847
114
0.578006
9ee869c7267ce5a76c896f1b93691e6be6e631db
830
py
Python
utils/models.py
lim0606/pytorch-ardae-vae
52f460a90fa5822692031ab7dcca39fa9168988e
[ "MIT" ]
11
2020-06-11T03:01:46.000Z
2021-06-17T02:59:39.000Z
utils/act_funcs.py
lim0606/pytorch-ardae-rl
6e861d8f09ee27fa8f7b42d1eb209788c93395fa
[ "MIT" ]
1
2020-06-18T00:59:24.000Z
2020-06-19T22:55:14.000Z
utils/act_funcs.py
lim0606/pytorch-ardae-rl
6e861d8f09ee27fa8f7b42d1eb209788c93395fa
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F def softplus(x): return torch.log(torch.exp(x) + 1) def swish(x): ''' https://arxiv.org/abs/1710.05941 ''' return x*torch.sigmoid(x) def get_nonlinear_func(nonlinearity_type='elu'): if nonlinearity_type == 'relu': return F.relu elif no...
25.151515
58
0.640964
9ee86e64bed231738d4d01e535721c9fa292824f
210
py
Python
abc/abc130/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc130/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc130/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N, X = map(int, input().split()) L = list(map(int, input().split())) jump = [0] * (N + 1) ans = 1 for i, x in enumerate(L): jump[i + 1] = jump[i] + L[i] if jump[i + 1] <= X: ans += 1 print(ans)
21
35
0.480952
9ee874148614864901f34431e755afd26ab2d9a7
450
py
Python
june-world-codesprint/data-structures/stacks/equal-stacks/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
june-world-codesprint/data-structures/stacks/equal-stacks/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
june-world-codesprint/data-structures/stacks/equal-stacks/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
#!/bin/python3 import sys from collections import deque ns = [int(n_temp) for n_temp in input().strip().split(' ')] hs = [None,None,None] for h0 in range(0,3): hs[h0] = deque([int(h1_temp) for h1_temp in input().strip().split(' ')]) ss = [sum(h) for h in hs] while not(ss[0]==ss[1] and ss[1]==ss[2]): minsum =...
26.470588
76
0.582222
9ee88398abee8b2edec85a6c99332d0b32e35a24
3,474
py
Python
ocr.py
albedo-geo/Cyberpuzzle
5c1b667bf997797ce3b79bf904fbda0f9711800a
[ "MIT" ]
null
null
null
ocr.py
albedo-geo/Cyberpuzzle
5c1b667bf997797ce3b79bf904fbda0f9711800a
[ "MIT" ]
null
null
null
ocr.py
albedo-geo/Cyberpuzzle
5c1b667bf997797ce3b79bf904fbda0f9711800a
[ "MIT" ]
3
2022-02-20T03:48:50.000Z
2022-02-25T04:54:19.000Z
from black import main import easyocr from PIL import Image, ImageDraw, ImageGrab import numpy as np import json from utils import print_puzzle, print_path, click_coors, WORDS from solver import find_best_path def save_json(obj, filename): with open(filename, 'w', encoding='utf-8') as f: json.d...
28.95
81
0.54692
9ee897ef9e94d59407537bba19d97cefb6b20f4a
1,822
py
Python
server/constants.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
server/constants.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
server/constants.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from girder import events API_VERSION = '2.1' CATALOG_NAME = 'WholeTale Catalog' WORKSPACE_NAME = 'WholeTale Workspaces' DATADIRS_NAME = 'WholeTale Data Mountpoints' SCRIPTDIRS_NAME = 'WholeTale Narrative' class HarvesterType: """ All possible data harverster i...
24.621622
86
0.678924
9ee8b31febdc1ba0b3a7fc730a34f4eafb84fe72
718
py
Python
cli/popper/commands/cmd_info.py
qwofford/popper
af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda
[ "MIT" ]
null
null
null
cli/popper/commands/cmd_info.py
qwofford/popper
af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda
[ "MIT" ]
null
null
null
cli/popper/commands/cmd_info.py
qwofford/popper
af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda
[ "MIT" ]
1
2019-12-07T08:41:02.000Z
2019-12-07T08:41:02.000Z
import click from popper import utils as pu from popper.cli import log, pass_context @click.argument('action', required=True) @click.option( '--update-cache', help='Update the action metadata cache before looking for info.', is_flag=True ) @click.command('info', short_help='Show details about an action.'...
26.592593
69
0.720056
9ee8e479a889985a1261d2366af88a9fae237372
2,233
py
Python
spead/receiver/iperf_recv.py
SKA-ScienceDataProcessor/IDOS
c112979e4541773a464175197e597f91c9250cf6
[ "BSD-3-Clause" ]
1
2018-01-18T09:27:20.000Z
2018-01-18T09:27:20.000Z
spead/receiver/iperf_recv.py
SKA-ScienceDataProcessor/IDOS
c112979e4541773a464175197e597f91c9250cf6
[ "BSD-3-Clause" ]
null
null
null
spead/receiver/iperf_recv.py
SKA-ScienceDataProcessor/IDOS
c112979e4541773a464175197e597f91c9250cf6
[ "BSD-3-Clause" ]
null
null
null
# # ICRAR - International Centre for Radio Astronomy Research # (c) UWA - The University of Western Australia, 2018 # Copyright by UWA (in the framework of the ICRAR) # # (c) Copyright 2018 CSIRO # Australia Telescope National Facility (ATNF) # Commonwealth Scientific and Industrial Research Organisat...
37.847458
73
0.651142
9ee9047cd34f4c5b101451b2895fb6f2a8e541c8
1,286
py
Python
srfnef/corrections/new_scatter/scatter_fraction/kn_formula.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/corrections/new_scatter/scatter_fraction/kn_formula.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/corrections/new_scatter/scatter_fraction/kn_formula.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
import math from numba import cuda @cuda.jit(device = True) def fkn(A, S, B, u_map, size, shape): """ Differential cross section:A to S, and scattering to B """ cos_asb = get_scatter_cos_theta(A, S, B) grid_S0 = int((S[0] / size[0] + 0.5) * shape[0]) grid_S1 = int((S[1] / size[1] + 0.5) * sha...
37.823529
88
0.49689
9ee907fa41ce67328d11f6e65cfec7419023059e
13,320
py
Python
sandbox/ftpsync-0.1/rsyncmatch.py
pombredanne/sschwarzer.net-ftputil
d752244ed0ff408f003d8f84c02a9d49f0c10ade
[ "AFL-2.1" ]
1
2021-08-28T08:27:11.000Z
2021-08-28T08:27:11.000Z
sandbox/ftpsync-0.1/rsyncmatch.py
pombredanne/sschwarzer.net-ftputil
d752244ed0ff408f003d8f84c02a9d49f0c10ade
[ "AFL-2.1" ]
1
2021-08-28T16:54:13.000Z
2021-08-28T16:54:13.000Z
sandbox/ftpsync-0.1/rsyncmatch.py
pombredanne/sschwarzer.net-ftputil
d752244ed0ff408f003d8f84c02a9d49f0c10ade
[ "AFL-2.1" ]
1
2021-08-28T08:29:07.000Z
2021-08-28T08:29:07.000Z
import re import os import sys import loggingclass INCLUDE = "+" EXCLUDE = "-" DONE = "." class RsyncGlob(loggingclass.LoggingClass): """ A class that imitates rsync(1)'s way of include/exclude patterns. Similar to glob()/fnmatch(), but "*" doesn't match "/" - "**" does. See man rsync(1) for the ex...
30.410959
81
0.502628
9ee9163a423c3f97d71f6c2d7b60cbc0a4c6abb2
20,400
py
Python
machin/frame/algorithms/trpo.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
287
2020-06-13T05:19:50.000Z
2022-03-31T04:46:32.000Z
machin/frame/algorithms/trpo.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
19
2020-08-19T05:33:45.000Z
2022-03-27T15:16:03.000Z
machin/frame/algorithms/trpo.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
44
2020-07-06T00:41:44.000Z
2022-03-29T17:05:08.000Z
from .a2c import * from .utils import safe_return from machin.utils.logging import default_logger # Implementation Reference: https://github.com/Khrylx/PyTorch-RL # Implementation Reference: https://github.com/openai/spinningup class TRPO(A2C): """ TRPO framework. See `Trust Region Policy Optimization <h...
39.84375
88
0.592451
9ee9b9623ea76e92acd5a4abfe347be2353ee404
31,975
py
Python
dataloader.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
null
null
null
dataloader.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
5
2021-03-19T03:28:49.000Z
2022-03-11T23:59:03.000Z
dataloader.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
null
null
null
import os import sys import time from multiprocessing import Queue as pQueue from threading import Thread import cv2 import numpy as np import torch import torch.multiprocessing as mp import torchvision.transforms as transforms from PIL import Image from torch.autograd import Variable from SPPE.src.utils.eval import ...
39.185049
200
0.525473
9ee9bb2e3096bab87aa2b23a67ad773134358c0f
5,400
py
Python
features_generation/parcellate_features.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
null
null
null
features_generation/parcellate_features.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
1
2021-08-12T07:54:37.000Z
2021-08-12T07:54:37.000Z
features_generation/parcellate_features.py
GalBenZvi/BrainPrint
8dda22f130f60bac66fe05f0f5163ee3680616f5
[ "Apache-2.0" ]
1
2021-08-08T11:56:19.000Z
2021-08-08T11:56:19.000Z
from numpy import mod import pandas as pd import tqdm from pathlib import Path from utils.features import FEATURES from utils.parcellation import parcellation_labels, parcellate_metric def get_available_subjects(mother_dir: Path) -> list: """ Iterate over the main directory to find subjects that should have a...
30.167598
100
0.609074
9ee9ef0acd4a45e931aacc3399362b87c18c2b1c
1,884
py
Python
artemis/ml/parameter_schedule.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
artemis/ml/parameter_schedule.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
artemis/ml/parameter_schedule.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
2
2019-10-16T21:21:59.000Z
2022-03-07T22:18:44.000Z
import numpy as np class ParameterSchedule(object): def __init__(self, schedule, print_variable_name = None): """ Given a schedule for a changing parameter (e.g. learning rate) get the values for this parameter at a given time. e.g.: learning_rate_scheduler = ParameterSchedule...
47.1
121
0.64862
9eea2d9aa88f64eb4b667b36d105cba55be4f3c3
5,683
py
Python
nicos_jcns/galaxi/setups/pindiodes.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_jcns/galaxi/setups/pindiodes.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_jcns/galaxi/setups/pindiodes.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- description = 'GALAXI PIN diodes' group = 'optional' display_order = 20 tango_base = 'tango://phys.galaxi.kfa-juelich.de:10000/galaxi/' tango_analog = tango_base + 'plc_io/' tango_digital = tango_base + 'fzjdp_digital/' devices = dict( pintimer = device('nicos.devices.entangle.AnalogOut...
35.968354
82
0.606546
9eea308b176a7164d2842cb10781fcbebfaacc3e
10,113
py
Python
vault/tests/test_views.py
globocom/vault
4909cc022476e59022a1dc55d1bbabf49873ca80
[ "Apache-2.0" ]
15
2015-03-19T13:05:06.000Z
2021-08-13T19:17:25.000Z
vault/tests/test_views.py
globocom/vault
4909cc022476e59022a1dc55d1bbabf49873ca80
[ "Apache-2.0" ]
24
2015-02-24T14:20:06.000Z
2021-12-15T13:33:52.000Z
vault/tests/test_views.py
globocom/vault
4909cc022476e59022a1dc55d1bbabf49873ca80
[ "Apache-2.0" ]
11
2016-09-12T07:54:01.000Z
2021-10-31T20:26:43.000Z
# -*- coding: utf-8 -*- import json from unittest import TestCase from unittest.mock import Mock, MagicMock, patch from vault.tests.fakes import fake_request, UserFactory from identity.tests.fakes import FakeToken from vault.views import (DashboardView, SetProjectView, DeleteUserTeamView, Ad...
29.144092
96
0.645407
9eea3a7d07cff41adf50e7e9a5469ae147ba645b
96,096
py
Python
test_128.py
HummyMolecula/Python-Raycast
3c6fd22c8e462b6283946594a13f38d2edb74527
[ "MIT" ]
31
2020-05-13T18:44:23.000Z
2022-03-30T03:04:37.000Z
test_128.py
HummyMolecula/Python-Raycast
3c6fd22c8e462b6283946594a13f38d2edb74527
[ "MIT" ]
4
2020-09-06T14:45:20.000Z
2022-02-01T20:27:34.000Z
test_128.py
HummyMolecula/Python-Raycast
3c6fd22c8e462b6283946594a13f38d2edb74527
[ "MIT" ]
15
2020-05-06T03:42:54.000Z
2022-02-20T12:37:03.000Z
test_list = [ (-1.5707963267948966, (4350, 2556)), (-1.5707963267948968, (4350, 2556)), (-1.5707963267948968, (4350, 2556)), (-1.5707963267948968, (4350, 2556)), (-1.5707963267948968, (4350, 2556)), (-1.5707963267948968, (4350, 2556)), (-1.5707963267948968, (4350, 2556)), (-1.5707963267948968, (4350, 2556)), (-1.570796...
60.437736
64
0.771978
9eea5d126d250e186763a4093dce09dfe69651c0
2,911
py
Python
tests/models/validators/v2_1_2/jsd_3e94cb1b485b8b0e.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_3e94cb1b485b8b0e.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_3e94cb1b485b8b0e.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Create Application Set data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...
31.301075
78
0.558914
9eeaa3108f311ad7aa6c5f5c8ce2655ed42e9524
67,011
py
Python
salt/modules/dockerio.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/modules/dockerio.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/modules/dockerio.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Management of Docker Containers .. versionadded:: 2014.1.0 .. note:: The DockerIO integration is still in beta; the API is subject to change General Notes ------------- As we use states, we don't want to be continuously popping dockers, so we will map each container id (or image) wi...
29.160574
131
0.553894
9eeaa841dd53f6095372114a5bd6e788641715f9
3,235
py
Python
test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/_auto_rest_parameter_grouping_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.930556
99
0.693354
9eeacdcce152086e0d03f9d3dbff39ad38d743e8
67,882
py
Python
google-cloud-sdk/lib/third_party/apitools/base/protorpclite/messages.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/third_party/apitools/base/protorpclite/messages.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/third_party/apitools/base/protorpclite/messages.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.688337
79
0.59817
9eeaeb0603c13b8f668bf31795fff1d190d59c20
5,937
py
Python
tri_star/src/nodes/kinect_perception/simulated_world_perception.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
tri_star/src/nodes/kinect_perception/simulated_world_perception.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
tri_star/src/nodes/kinect_perception/simulated_world_perception.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Software License Agreement (MIT License) # # Copyright (c) 2020, tri_star # All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction...
40.944828
111
0.706586
9eeafb0e1b9bc551657dac9a556dc242767798bd
4,680
py
Python
training/utils/planning_helper.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
null
null
null
training/utils/planning_helper.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
2
2020-08-25T08:36:38.000Z
2020-08-25T08:36:58.000Z
training/utils/planning_helper.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
null
null
null
from typing import List import numpy as np from networkx.tests.test_convert_pandas import pd from envs.custom_tol_env_dir import ToLTaskEnv from envs.custom_tol_env_dir.tol_2d.mapping import int_to_state, state_to_int from envs.custom_tol_env_dir.tol_2d.state import TolState FILL_VALUE = -100 def init_...
31.409396
78
0.575427
9eeb0d2f0ed3a9387ae42f776258d5bf5a62a14b
7,449
py
Python
rlkit/misc/hyperparameter.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/misc/hyperparameter.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/misc/hyperparameter.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
""" Custom hyperparameter functions. """ import abc import copy import math import random import itertools from typing import List import rlkit.pythonplusplus as ppp import collections.abc class Hyperparameter(metaclass=abc.ABCMeta): def __init__(self, name): self._name = name @property def name(...
31.0375
86
0.629883
9eeb10b91d7f815b1d3673c68338e00c18e8d491
5,938
py
Python
BGWpy/QE/wfntask.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
null
null
null
BGWpy/QE/wfntask.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
null
null
null
BGWpy/QE/wfntask.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import print_function import os from .qetask import QeTask from .constructor import get_bands_input # Public __all__ = ['QeWfnTask'] class QeWfnTask(QeTask): """Wavefunctions calculation.""" _TASK_NAME = 'Wfn' _input_fname = 'wfn.in' _output_fname = 'wfn.out' def __init__...
34.523256
84
0.618053
9eeb2fae4db252c2d587f10f30d48efb13b9e9d8
386
py
Python
chapter12/06 Aribitrary Arguments.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter12/06 Aribitrary Arguments.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter12/06 Aribitrary Arguments.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
# EG12-06 Aribitrary Arguments def add_function(*values): total = 0 for value in values: total = total + value return total print(add_function()) print(add_function(1)) print(add_function(1, 2)) print(add_function(1, 2, 3)) print(add_function(1, 2, 3, 4)) print(add_function(1, 2, 3, 4, 5)) n...
21.444444
35
0.65285
9eeb51464f765e4bca5c42829a4e6b34bf0a2f15
4,128
py
Python
python/jittor/test/test_mpi_batchnorm.py
shiminhu/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
5
2020-08-09T02:27:58.000Z
2021-01-13T16:04:32.000Z
python/jittor/test/test_mpi_batchnorm.py
Zhengjun-Du/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
null
null
null
python/jittor/test/test_mpi_batchnorm.py
Zhengjun-Du/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
null
null
null
# *************************************************************** # Copyright (c) 2020 Jittor. Authors: # Guowei Yang <471184555@qq.com> # Dun Liang <randonlang@gmail.com>. # All Rights Reserved. # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this source c...
37.87156
135
0.606589
9eeb6fcae7cd41c98d2c7f81bfc69b3021db5875
854
py
Python
openstack-dashboard/openstack_dashboard/dashboards/project/pertino/panel.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/pertino/panel.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/pertino/panel.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
30.5
78
0.740047
9eeb7a3f0fd1c0130dca703e079d05cd4adfb036
2,404
py
Python
levenshtein.py
HSalaberri/levenshtein-distance
2589e5876b1f14934e011a82debbe95615ed4c71
[ "Apache-2.0" ]
null
null
null
levenshtein.py
HSalaberri/levenshtein-distance
2589e5876b1f14934e011a82debbe95615ed4c71
[ "Apache-2.0" ]
null
null
null
levenshtein.py
HSalaberri/levenshtein-distance
2589e5876b1f14934e011a82debbe95615ed4c71
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ usage: levenshtein [-h] -i INPUT_DATA -n NAME -d DISTANCE Calculate levenshtein distance optional arguments: -h, --help show this help message and exit -i INPUT_DATA, --input INPUT_DATA Path to file containing data [.csv] -n SEARCH_NAME, --name NAME...
26.711111
79
0.542429
9eeb9c7cb5aebb42b45fe3c81034cdebddad5977
5,940
py
Python
advanced.py
diacaf/image-enhance-keras
118859a95e3c053ec0084332db841016bc513a0c
[ "MIT" ]
9
2018-09-27T17:36:04.000Z
2020-12-19T11:39:43.000Z
advanced.py
diacaf/image-enhance-keras
118859a95e3c053ec0084332db841016bc513a0c
[ "MIT" ]
1
2018-09-27T18:42:51.000Z
2018-09-27T19:45:40.000Z
advanced.py
diacaf/image-enhance-keras
118859a95e3c053ec0084332db841016bc513a0c
[ "MIT" ]
6
2018-10-14T16:37:23.000Z
2020-12-19T11:39:46.000Z
import itertools import tensorflow as tf from keras.layers import Lambda from keras.callbacks import Callback from keras.engine.topology import Layer from keras import backend as K ''' Callbacks ''' class HistoryCheckpoint(Callback): '''Callback that records events into a `History` object. It then...
29.849246
128
0.587037
9eebd736abb9260c21a43067f22007a77bd73209
344
py
Python
deeptech/model/models/__init__.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
1
2020-10-10T10:11:54.000Z
2020-10-10T10:11:54.000Z
deeptech/model/models/__init__.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
deeptech/model/models/__init__.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
import os from deeptech.model.models.imagenet import ImagenetModel from deeptech.model.module_registry import add_lib_from_json model_lib_folder = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-1]) add_lib_from_json(os.path.join(model_lib_folder, "fasterrcnn.jsonc")) add_lib_from_json(os.path.join(model_lib_fol...
43
76
0.825581
9eebe36881b48dde861aa71bde1efa532aba9d09
7,963
py
Python
drizzlepac/hlautils/processing_utils.py
jhunkeler/drizzlepac
09ca153b8e4f4e03dd155c61243d722e1c40caee
[ "BSD-3-Clause" ]
null
null
null
drizzlepac/hlautils/processing_utils.py
jhunkeler/drizzlepac
09ca153b8e4f4e03dd155c61243d722e1c40caee
[ "BSD-3-Clause" ]
null
null
null
drizzlepac/hlautils/processing_utils.py
jhunkeler/drizzlepac
09ca153b8e4f4e03dd155c61243d722e1c40caee
[ "BSD-3-Clause" ]
null
null
null
"""Utilities to support creation of Hubble Advanced Pipeline(HAP) products. """ import sys import os import shutil import numpy as np from astropy.io import fits as fits from astropy.io.fits import Column from astropy.time import Time from stsci.tools import logutil from stsci.tools.fileutil import countExtn from st...
34.772926
110
0.643727
9eec2517d5312bea3fbf3dd499d876cf646d6b63
349
py
Python
walk.py
holabrotato/sort-jav-osx
3ab7cd634f444069a5cf89601c5bec8cd1636d90
[ "MIT" ]
1
2021-01-25T12:08:10.000Z
2021-01-25T12:08:10.000Z
walk.py
holabrotato/sort-jav-osx
3ab7cd634f444069a5cf89601c5bec8cd1636d90
[ "MIT" ]
null
null
null
walk.py
holabrotato/sort-jav-osx
3ab7cd634f444069a5cf89601c5bec8cd1636d90
[ "MIT" ]
null
null
null
# app.py import os dirName = '/Volumes/WD/JAV' listOfFiles = list() for (dirpath, dirnames, filenames) in os.walk(dirName): listOfFiles += [os.path.join(dirpath, file) for file in filenames] for elem in listOfFiles: f_name, f_ext = os.path.splitext(elem) if (f_ext != "jpg" and f_ext != "srt" and f_ext !=...
26.846154
70
0.661891
9eec325333b76899ac6a703f2fea900befda51dd
611
py
Python
LC/469.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/469.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/469.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def isConvex(self, points): """ :type points: List[List[int]] :rtype: bool """ d=0 # direction points.append(points[0]) points.append(points[1]) for i in range(len(points)-2): p1=points[i] p2=points[i+1] ...
29.095238
40
0.427169
9eec4637634644fd901f7961ccf4b4c30903ed35
1,362
py
Python
py/cidoc_crm_types/entities/e2_temporal_entity.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e2_temporal_entity.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e2_temporal_entity.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .e1_crm_entity import E1CRMEntity from dataclasses import dataclass @dataclass class E2TemporalEntity(E1CRMEntity): """ Scope note: This class comprises all phenomena, such as the instances of E4 Periods and E5 Events, which happen over a limited extent in time. This extent in time must be contiguous, i.e., ...
54.48
496
0.777533
9eec8d102839e2c1ef7432c05c74322ef66cdfb0
870
py
Python
src/zeit/content/cp/browser/blocks/tests/test_doctest.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
null
null
null
src/zeit/content/cp/browser/blocks/tests/test_doctest.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
11
2015-04-16T14:15:08.000Z
2019-02-01T13:23:17.000Z
src/zeit/content/cp/browser/blocks/tests/test_doctest.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
1
2015-12-03T14:58:26.000Z
2015-12-03T14:58:26.000Z
import unittest import zeit.cms.repository.interfaces import zeit.cms.testcontenttype.testcontenttype import zeit.cms.testing import zeit.content.cp.testing import zope.component def create_content(root): with zeit.cms.testing.site(root): repository = zope.component.getUtility( zeit.cms.reposi...
28.064516
77
0.655172
9eeca35020df513c7effbd890f8bfdf81d853a1f
1,889
py
Python
pipeline/test_cluster_runner.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2020-04-14T03:01:51.000Z
2020-04-14T03:01:51.000Z
pipeline/test_cluster_runner.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
null
null
null
pipeline/test_cluster_runner.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2019-09-14T08:30:23.000Z
2019-09-14T08:30:23.000Z
# Copyright 2018 StreamSets Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.981481
97
0.755956
9eece324607d1fd01df48e0346690eaf429d74b6
29,862
py
Python
openstack-dashboard/openstack_dashboard/dashboards/project/instances/tables.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
openstack-dashboard/openstack_dashboard/dashboards/project/instances/tables.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
openstack-dashboard/openstack_dashboard/dashboards/project/instances/tables.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
35.935018
79
0.622966
9eecf37186aeefda35188ede675f7abbbd5d5519
306
py
Python
server/config/production.py
liaojiacan/dyanmic-host
0b47d8fa5b596e3e3d82d75992a00a97a9d4f457
[ "MIT" ]
4
2018-02-11T09:53:22.000Z
2022-03-06T06:35:41.000Z
server/config/production.py
liaojiacan/dyanmic-host
0b47d8fa5b596e3e3d82d75992a00a97a9d4f457
[ "MIT" ]
null
null
null
server/config/production.py
liaojiacan/dyanmic-host
0b47d8fa5b596e3e3d82d75992a00a97a9d4f457
[ "MIT" ]
1
2020-12-11T07:03:38.000Z
2020-12-11T07:03:38.000Z
import os basedir = os.path.abspath(os.path.dirname(__file__)) db_path = os.path.join(basedir, '../data.sqlite') DEBUG = False SECRET_KEY = 'top-secret!' SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \ 'sqlite:///' + db_path
27.818182
61
0.683007
9eed306eb1fcaf97f5cb2dcb6e89f3093d482632
1,488
py
Python
notebook-samples/cfpb_analysis_working.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
1
2020-07-21T23:24:25.000Z
2020-07-21T23:24:25.000Z
notebook-samples/cfpb_analysis_working.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
4
2021-06-29T00:38:57.000Z
2022-01-15T00:22:15.000Z
notebook-samples/cfpb_analysis_working.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
null
null
null
""" Purpose: CFPB Analysis Date created: 2020-06-16 Contributor(s): Mark M. """ import requests import pandas as pd hmda_base = "https://api.consumerfinance.gov" complaints_base = "https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/1" complaints_states_base = f"{complaints_base}/ge...
20.957746
116
0.656586
9eed376c7cb3163a487127a0bc7313426d5f877b
3,116
py
Python
pkg/deploy/dcanvas/canvas_line.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
pkg/deploy/dcanvas/canvas_line.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
pkg/deploy/dcanvas/canvas_line.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
#-------------------------------------------------- # canvas_line.py # This is a generic class for a canvas paint line # A line consist of two points, start and end, # This is for a straight line, with WIDTH and COLOR, # triggering color change # primarily used for html5 canvas context drawing # introduced in u3 # Tora...
42.108108
106
0.576701
9eed3a1cfcb8d5215c1fc1d9b909544d3b9ea744
22,304
py
Python
pytest_cases/fixture_core1_unions.py
saroad2/python-pytest-cases
d8cb440d1f00d7d341666d0f825c6aed3d9b8ee7
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/fixture_core1_unions.py
saroad2/python-pytest-cases
d8cb440d1f00d7d341666d0f825c6aed3d9b8ee7
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/fixture_core1_unions.py
saroad2/python-pytest-cases
d8cb440d1f00d7d341666d0f825c6aed3d9b8ee7
[ "BSD-3-Clause" ]
null
null
null
# Authors: Sylvain MARIE <sylvain.marie@se.com> # + All contributors to <https://github.com/smarie/python-pytest-cases> # # License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE> from __future__ import division from inspect import isgeneratorfunction from warnings import wa...
43.733333
119
0.662572
9eed40bafe8e6b5f2bb89c019adccc71431c31f3
5,465
py
Python
sacla/scripts/backups/old_scripts/sacla2_Chip_Collect1_v2.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/old_scripts/sacla2_Chip_Collect1_v2.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/old_scripts/sacla2_Chip_Collect1_v2.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
import pv import os, re, sys import time, math, string from time import sleep from ca import caput, caget from sacla2_Chip_StartUp1 import get_xy from sacla2_Chip_StartUp1 import make_path_dict from sacla2_Chip_StartUp1 import scrape_dcparameters ############################################### # OLD Chip_Collect from...
35.718954
112
0.595425
9eed598a1c3d3a927dd4293678c9b2362c049240
27
py
Python
btd6_memory_info/generated/UnityEngine/ResourceManagement/ResourceManager/resource_manager.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/ResourceManagement/ResourceManager/resource_manager.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/ResourceManagement/ResourceManager/resource_manager.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class ResourceManager: pass
27
27
0.888889
9eed652396a8e00e72c823d843ed0734cdae0ad9
865
py
Python
test/test_connector.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
test/test_connector.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
test/test_connector.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
""" Cosmo Tech Plaform API Cosmo Tech Platform API # noqa: E501 The version of the OpenAPI document: 0.0.11-SNAPSHOT Contact: platform@cosmotech.com Generated by: https://openapi-generator.tech """ import sys import unittest import cosmotech_api from cosmotech_api.model.connector_parameter_gro...
22.179487
81
0.704046
9eed9158263bbd6b4d2553161ff1ba4f76a0d390
1,890
py
Python
src/rubrix/sdk/models/text2_text_search_aggregations_status.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text2_text_search_aggregations_status.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text2_text_search_aggregations_status.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. 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 ...
31.5
77
0.701587
9eed96011bb5d80cd15dbc26c7470d02870acb56
3,581
py
Python
pytrack/measmodels.py
petersvenningsson/radar-Bayesian-human-motion
728db0f39c107faccf9d711670177aac74456e3f
[ "MIT" ]
1
2022-02-01T20:42:24.000Z
2022-02-01T20:42:24.000Z
pytrack/measmodels.py
petersvenningsson/radar-Bayesian-human-motion
728db0f39c107faccf9d711670177aac74456e3f
[ "MIT" ]
null
null
null
pytrack/measmodels.py
petersvenningsson/radar-Bayesian-human-motion
728db0f39c107faccf9d711670177aac74456e3f
[ "MIT" ]
null
null
null
import numpy as np import sympy as sym class PositionMeasurmentModel(): """ Sensor measures position state variables. It is assumed that x[0] -> position in x x[1] -> position in y """ dim = 2 def __init__(self, sensor_bias, sigma_position, state_dim): """ Input: ...
39.351648
185
0.579447
9eedd0231bddef7e51fd13fc4e651e36d5b6c2be
7,466
py
Python
build/lib/RiboGraphViz/RG_utils.py
nromari/OpenVaccine_COVID19
fb17ff422247f831b9443437cd6330472f87f2be
[ "MIT" ]
null
null
null
build/lib/RiboGraphViz/RG_utils.py
nromari/OpenVaccine_COVID19
fb17ff422247f831b9443437cd6330472f87f2be
[ "MIT" ]
null
null
null
build/lib/RiboGraphViz/RG_utils.py
nromari/OpenVaccine_COVID19
fb17ff422247f831b9443437cd6330472f87f2be
[ "MIT" ]
null
null
null
from collections import Counter import numpy as np from copy import copy #Copied from ToyFold 1D utils (Rhiju Das Matlab code originally) def find_all(s, ch): if isinstance(ch, list): tmp_list=[] for c in ch: tmp_list.extend([i for i, ltr in enumerate(s) if ltr == c]) return tm...
30.85124
105
0.530806
9eeddb23fa5cd77ee0be8b3b02c0aaa92c6cf44b
7,356
py
Python
tex/encoding.py
drjbarker/blib
d5726d55a58a680152aa69d5b7fd2639d9480e16
[ "MIT" ]
6
2021-02-25T15:00:59.000Z
2022-03-09T09:19:25.000Z
tex/encoding.py
drjbarker/blib
d5726d55a58a680152aa69d5b7fd2639d9480e16
[ "MIT" ]
6
2021-03-30T14:52:55.000Z
2022-01-20T21:36:59.000Z
tex/encoding.py
drjbarker/blib
d5726d55a58a680152aa69d5b7fd2639d9480e16
[ "MIT" ]
2
2021-02-25T18:18:14.000Z
2021-11-09T12:13:12.000Z
import re import unicodedata def is_ascii(string): """ Returns true if the string only contains ASCII characters, False otherwise. """ try: string.encode('ascii') except UnicodeEncodeError: return False return True #TODO handle specials such as < > and degree (see https:/...
57.023256
120
0.590266
9eede2e4a23d3dadd8287c8256482d657eafee80
1,079
py
Python
indico/modules/rb/controllers/backend/common.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/modules/rb/controllers/backend/common.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/modules/rb/controllers/backend/common.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from marshmallow_enum import EnumField from webargs import fields from indico.modules.rb.models.reservati...
33.71875
65
0.671918
9eee066c76f89948c555c47e3b8c84cf58ce9ecd
5,549
py
Python
ExtentionPackages/paramiko/kex_group1.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
2
2018-12-11T16:35:20.000Z
2019-01-23T16:42:17.000Z
paramikossh/paramiko/kex_group1.py
splunk-soar-connectors/osxcollector
7b0d6fd619008e89b39067de4df95465626505e9
[ "Apache-2.0" ]
1
2018-12-28T21:11:50.000Z
2018-12-28T21:11:50.000Z
paramikossh/paramiko/kex_group1.py
splunk-soar-connectors/osxcollector
7b0d6fd619008e89b39067de4df95465626505e9
[ "Apache-2.0" ]
3
2018-01-21T17:53:17.000Z
2021-09-08T10:22:05.000Z
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
39.35461
266
0.653271
9eee26ac30b76258bc35166cfb14dd24e72bac34
1,628
py
Python
savu/test/travis/plugin_tests/fitter_tests/simple_fit_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/test/travis/plugin_tests/fitter_tests/simple_fit_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/test/travis/plugin_tests/fitter_tests/simple_fit_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source 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 t...
35.391304
84
0.711302
9eee93eb2669249777782d5f05239f2aa677c5f8
2,062
py
Python
alembic/versions/1d1511b77417_try_this.py
ppold/lambtastic
29d96f0f111a950a6ecd7af1cdc172addd64de04
[ "Unlicense" ]
null
null
null
alembic/versions/1d1511b77417_try_this.py
ppold/lambtastic
29d96f0f111a950a6ecd7af1cdc172addd64de04
[ "Unlicense" ]
1
2021-06-01T21:53:04.000Z
2021-06-01T21:53:04.000Z
alembic/versions/1d1511b77417_try_this.py
ppold/lambtastic
29d96f0f111a950a6ecd7af1cdc172addd64de04
[ "Unlicense" ]
null
null
null
"""Try this Revision ID: 1d1511b77417 Revises: None Create Date: 2013-09-22 05:41:17.949989 """ # revision identifiers, used by Alembic. revision = '1d1511b77417' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### ...
33.258065
64
0.661979
9eeeb207797969649e59da0dd3d256ee9f20cd1b
3,565
py
Python
tensor2tensor/data_generators/qnli.py
shankharaj29/tensor2tensor
b89ba51a6fa9e0c20009cfb57ee8de04f7138392
[ "Apache-2.0" ]
2
2020-03-02T13:49:11.000Z
2020-06-18T09:48:35.000Z
tensor2tensor/data_generators/qnli.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-21T10:57:47.000Z
2019-01-21T10:57:47.000Z
tensor2tensor/data_generators/qnli.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-24T07:17:14.000Z
2019-01-24T07:17:14.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
30.211864
74
0.718373
9eeec997d5c0047fe8d711dc4a9e588554a6a508
856
py
Python
examples/l3dcube/test_3d_pos.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
3
2016-12-09T07:30:26.000Z
2021-04-18T13:50:11.000Z
examples/l3dcube/test_3d_pos.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
null
null
null
examples/l3dcube/test_3d_pos.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Identifies a LED position in the cube by setting a specific (x, y ,z) to white """ import spectra import sys import time import netl3d from netl3d.hardware import l3dcube def usage(): print("Usage: test_3d_pos.py x y z") print("\tWhere x, y and z are...
21.948718
79
0.648364
9eeeff27ca50f82e5886896a2060e9d6be6944d1
778
py
Python
workflow/ignite/decorators/evaluate.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:39:24.000Z
2021-09-12T22:11:00.000Z
workflow/ignite/decorators/evaluate.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:07:39.000Z
2020-10-30T10:26:24.000Z
workflow/ignite/decorators/evaluate.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
null
null
null
import torch from functools import wraps from workflow.functional import structure_map from workflow.torch import module_device, module_eval from workflow.ignite.decorators.to_device import to_device def cpu_detach(x): if type(x) is torch.Tensor: return x.detach().cpu() else: return x def e...
23.575758
58
0.616967
9eef0399e7d4c733571ae22473bde840f78c2dcb
4,264
py
Python
app/recipe/tests/test_ing.py
litesh1998/recipiApiDjango
364758ef4b4ddf919c13c9147dc5b45828b75308
[ "MIT" ]
null
null
null
app/recipe/tests/test_ing.py
litesh1998/recipiApiDjango
364758ef4b4ddf919c13c9147dc5b45828b75308
[ "MIT" ]
null
null
null
app/recipe/tests/test_ing.py
litesh1998/recipiApiDjango
364758ef4b4ddf919c13c9147dc5b45828b75308
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingrediant, Recipe from recipe.serializers import IngrediantSerializer INGREDIANT_URL = reverse('recipe:...
32.8
79
0.654081
9eef6842256bfc99e776707890229f00d8513d1f
3,509
py
Python
prom/decorators.py
viggyfresh/prom
a918476dab1dbadced61fc088cdc36fed1685d0a
[ "MIT" ]
null
null
null
prom/decorators.py
viggyfresh/prom
a918476dab1dbadced61fc088cdc36fed1685d0a
[ "MIT" ]
null
null
null
prom/decorators.py
viggyfresh/prom
a918476dab1dbadced61fc088cdc36fed1685d0a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, division, print_function, absolute_import import time from functools import wraps import logging from .exception import InterfaceError logger = logging.getLogger(__name__) def reconnecting(count=None, backoff=None): """this is a very specific dec...
33.103774
88
0.565118
9eef7d1138dabd3af75f7d43cdc76926a762c6dc
5,051
py
Python
wingspipe/run_stips.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
4
2022-01-04T18:24:56.000Z
2022-01-27T08:23:37.000Z
wingspipe/run_stips.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
wingspipe/run_stips.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
#! /usr/bin/env python import os #import subprocess from stips.observation_module import ObservationModule import numpy as np import wpipe as wp on_hyak = False on_pbs = False filtdict = {'R': 'F062', 'Z': 'F087', 'Y': 'F106', 'J': 'F129', 'H': 'F158', 'F': ...
42.445378
329
0.631162
9eefbb7a3ce9aa92b44bcf19a2f73a71c3eede1c
1,447
py
Python
test/unittests/test_AvAnimalNSum.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
test/unittests/test_AvAnimalNSum.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
test/unittests/test_AvAnimalNSum.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.Output.AvAnimalNSum import AvAnimalNSum class TestAvAnimalNSum(VariableUnitTest): def test_AvAnimalNSum(self): z = self.z np.testing.assert_array_almost_equal( AvAnimalNSum.AvAnimalNSum_f(z.NYrs, z.NGPctManAp...
60.291667
111
0.568763
9eefcb1dca3310a5c584176aeaed80ac99b9570e
2,749
py
Python
plugins/memories.py
alexander171294/sopelPlugins
819471b5d88347c2a22cf02d2cbe4d45420fb770
[ "BSD-3-Clause" ]
null
null
null
plugins/memories.py
alexander171294/sopelPlugins
819471b5d88347c2a22cf02d2cbe4d45420fb770
[ "BSD-3-Clause" ]
null
null
null
plugins/memories.py
alexander171294/sopelPlugins
819471b5d88347c2a22cf02d2cbe4d45420fb770
[ "BSD-3-Clause" ]
1
2021-05-23T00:32:30.000Z
2021-05-23T00:32:30.000Z
import logging import os import re import shlex from sopel import module FORMAT = "{ID}.- {KEY} - {VALUE}" BLOCKLIST_WORDS = ( "seen_action", "seen_channel", "seen_message", "seen_timestamp" ) BLOCKLIST_RE = "|".join(BLOCKLIST_WORDS) BLOCKLIST_RE = "(%s)" % (BLOCKLIST_RE) @module.commands("memories") @module.exam...
25.220183
101
0.626773
9eefcc0daa1855b3764de5c69f66f645a41ccc2f
3,586
py
Python
tests/test_align_celeba_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
null
null
null
tests/test_align_celeba_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
1
2021-10-05T17:41:05.000Z
2021-10-05T17:41:05.000Z
tests/test_align_celeba_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
null
null
null
from unittest import TestCase import os.path as osp import numpy as np from datumaro.components.annotation import ( AnnotationType, Label, LabelCategories, Points, PointsCategories, ) from datumaro.components.dataset import Dataset from datumaro.components.environment import Environment from datumaro.components.e...
41.697674
98
0.535694
9eefd04b13f8dcbc956325271895d1408f7987ec
7,909
py
Python
tests/test_docstrings/test_numpy.py
pawamoy/griffe
8465796426fda40fc46f0f1682032be3f6b17aa8
[ "0BSD" ]
9
2021-09-22T09:01:01.000Z
2022-01-19T20:43:23.000Z
tests/test_docstrings/test_numpy.py
pawamoy/griffe
8465796426fda40fc46f0f1682032be3f6b17aa8
[ "0BSD" ]
4
2021-09-29T18:02:18.000Z
2022-01-20T17:06:16.000Z
tests/test_docstrings/test_numpy.py
pawamoy/griffe
8465796426fda40fc46f0f1682032be3f6b17aa8
[ "0BSD" ]
1
2022-01-21T16:37:52.000Z
2022-01-21T16:37:52.000Z
"""Tests for the [Numpy-style parser][griffe.docstrings.numpy].""" from __future__ import annotations from griffe.dataclasses import Function, Parameter, Parameters from griffe.docstrings import numpy from griffe.docstrings.dataclasses import ( DocstringAttribute, DocstringParameter, DocstringRaise, D...
25.268371
118
0.571501
9eeff208e6e9c85feaa20f5998fed9046de193a9
803
py
Python
onadata/apps/viewer/models/instance_modification.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/viewer/models/instance_modification.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/viewer/models/instance_modification.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import from django.contrib.auth.models import User from django.db import models from onadata.apps.logger.models import Instance class InstanceModification(models.Model): user = models.ForeignKey(User, null=True) acti...
27.689655
82
0.699875
9eeffc6d093bca714d106bebb6919e5d20204c4d
3,151
py
Python
alipay/aop/api/domain/QuotaQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/QuotaQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/QuotaQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AccountQuotaDetail import AccountQuotaDetail class QuotaQueryResponse(object): def __init__(self): self._agreement_no = None self._error_code = None s...
30.009524
77
0.602983
9ef00ed7b098504cf1b93aa27dc6f72c97285e81
15
py
Python
Tests/Bugs/jiba/r_jiba1_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
5
2019-05-26T20:48:36.000Z
2021-07-09T01:38:38.000Z
Tests/Bugs/jiba/r_jiba1_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
null
null
null
Tests/Bugs/jiba/r_jiba1_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
1
2022-02-10T07:14:58.000Z
2022-02-10T07:14:58.000Z
import r_jiba1
7.5
14
0.866667
9ef034b669bc4e9c514472253490ca68ac28606f
6,586
py
Python
tests/core/tests/backends/solr_backend.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
1
2016-05-09T12:26:20.000Z
2016-05-09T12:26:20.000Z
tests/core/tests/backends/solr_backend.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
null
null
null
tests/core/tests/backends/solr_backend.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
null
null
null
import datetime import pysolr from django.conf import settings from django.test import TestCase from haystack import indexes from haystack.backends.solr_backend import SearchBackend from haystack import sites from core.models import MockModel, AnotherMockModel class SolrMockSearchIndex(indexes.SearchIndex): text ...
49.893939
537
0.619648
9ef057afb6b1af3ae8c738f8fe9e6a94c7969e04
11,643
py
Python
sktime/transformers/series_as_features/summarize/_tsfresh.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-10-05T12:17:41.000Z
2020-10-19T08:57:50.000Z
sktime/transformers/series_as_features/summarize/_tsfresh.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/transformers/series_as_features/summarize/_tsfresh.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2022-02-14T18:19:01.000Z
2022-02-14T18:19:01.000Z
#!/usr/bin/env python3 -u # coding: utf-8 # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) __author__ = ["Ayushmaan Seth", "Markus Löning"] __all__ = ["TSFreshFeatureExtractor", "TSFreshRelevantFeatureExtractor"] from warnings import warn from sktime.transformers.series_as_features.base import...
36.498433
79
0.638839
9ef0888c25c22540d0397ea0bf1d610b9a133606
5,999
py
Python
src/TimesTab.py
ubco-mds-2021-labs/dashboard1-group-f
9de5ffc12974ff0f2f1b0585e3c81410578ed41d
[ "MIT" ]
4
2022-02-16T22:30:24.000Z
2022-02-17T01:24:46.000Z
src/TimesTab.py
ubco-mds-2021-labs/dashboard1-group-f
9de5ffc12974ff0f2f1b0585e3c81410578ed41d
[ "MIT" ]
26
2022-02-16T23:02:02.000Z
2022-03-25T20:12:36.000Z
src/TimesTab.py
ubco-mds-2021-labs/dashboard1-group-f
9de5ffc12974ff0f2f1b0585e3c81410578ed41d
[ "MIT" ]
1
2022-03-11T01:54:37.000Z
2022-03-11T01:54:37.000Z
from dash import Dash, dcc, html import dash_bootstrap_components as dbc import altair as alt import pandas as pd import numpy as np # Wait times line plot def line_plot_tt(df): """ Create an altair chart object on html that plots a single plot about percentile waiting times from a given dataframe. Pa...
33.892655
184
0.615103
9ef0b57d23cf647b6f1d820fa9f61dffde766a90
6,740
py
Python
pytest_adaptavist/__init__.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
pytest_adaptavist/__init__.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
pytest_adaptavist/__init__.py
cataddict/pytest-adaptavist
c0a3270c75dea95392fdb3acf647dc121eacd4ec
[ "MIT" ]
null
null
null
"""This module provides a set of pytest hooks for generating Adaptavist test run results from test reports.""" from __future__ import annotations import getpass import logging import os from importlib.metadata import PackageNotFoundError, version from typing import Any, Literal, NoReturn import pytest from _pytest.c...
44.342105
160
0.711721
9ef0f2b34193667485a0e247d7828e0daa6b4fc5
3,808
py
Python
nvflare/private/fed/client/client_json_config.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
nvflare/private/fed/client/client_json_config.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
nvflare/private/fed/client/client_json_config.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION. 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 ...
34.618182
106
0.659664
9ef0fee52386339cfc279235d2c401dd06bd5ebc
930
py
Python
config/cms_toolbars.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
1
2017-03-13T08:49:49.000Z
2017-03-13T08:49:49.000Z
config/cms_toolbars.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
null
null
null
config/cms_toolbars.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse from cms.toolbar.items import Break from cms.cms_toolbars import ADMIN_MENU_IDENTIFIER, ADMIN_SITES_BREAK from cms.toolbar_pool import toolbar_pool from cms.toolbar_base import CMSToolbar from ...
33.214286
111
0.735484
9ef11bd7bba0a9540d2dcf47bf0f84e3eda02be6
3,710
py
Python
scripts/profile_model.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
scripts/profile_model.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
scripts/profile_model.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
""" This script computes imgs/sec for a generator in the eval mode for different batch sizes """ import sys; sys.path.extend(['..', '.', 'src']) import time import hydra import numpy as np import torch import torch.autograd.profiler as profiler import torch.nn as nn from hydra.experimental import initialize from omega...
35.673077
153
0.688679
9ef11f8e9b470f3bae6b7cfec194774160fc2bd1
5,188
py
Python
tensorflow/contrib/eager/python/examples/revnet/main.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/eager/python/examples/revnet/main.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/eager/python/examples/revnet/main.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.054054
80
0.698728