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
73c8e15fa2b3e7fcdd8af48bbb0099fe3d0332ff
2,891
py
Python
wemake_python_styleguide/options/validation.py
Roxe322/wemake-python-styleguide
b3b6f992729f259f31cfb673c55be7d2381c3e63
[ "MIT" ]
null
null
null
wemake_python_styleguide/options/validation.py
Roxe322/wemake-python-styleguide
b3b6f992729f259f31cfb673c55be7d2381c3e63
[ "MIT" ]
null
null
null
wemake_python_styleguide/options/validation.py
Roxe322/wemake-python-styleguide
b3b6f992729f259f31cfb673c55be7d2381c3e63
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import List, Optional import attr from typing_extensions import final from wemake_python_styleguide.types import ConfigurationOptions def _min_max( min: Optional[int] = None, # noqa: A002 max: Optional[int] = None, # noqa: A002 ): """Validator to check that value i...
38.039474
73
0.686268
73c90da079dc91568291215c350f18369483b7b2
1,591
py
Python
sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/object_hierarchy.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/object_hierarchy.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/object_hierarchy.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# 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 ...
38.804878
77
0.62225
73c933a9efbaa1d927ecc4a1eb98d5abf600823c
1,478
py
Python
ros2_ws/src/utils/logger/launch/logger.launch.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
null
null
null
ros2_ws/src/utils/logger/launch/logger.launch.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
2
2021-07-05T14:50:09.000Z
2021-09-14T15:21:11.000Z
ros2_ws/src/utils/logger/launch/logger.launch.py
FastSense/metalbot
063c897a16129d9aa88c2c7c52bdf6547af894e4
[ "MIT" ]
null
null
null
import os import launch from launch import LaunchDescription from launch_ros.actions import Node # from ament_index_python.packages import get_package_share_directory def generate_launch_description(): """ I can't use get_package_share_directory, cause it will return 'ros2_ws/install/logger/share/logger',...
30.791667
72
0.585927
73c95a1f58d051bfa70e65fc0b35e6c53542cc04
4,570
py
Python
recordwhat/records/vs.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
1
2016-06-08T15:14:15.000Z
2016-06-08T15:14:15.000Z
recordwhat/records/vs.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
12
2016-02-11T15:01:05.000Z
2019-09-23T17:28:32.000Z
recordwhat/records/vs.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
4
2016-06-08T15:03:07.000Z
2019-09-23T17:05:38.000Z
from ophyd import (EpicsSignal, EpicsSignalRO) from .. import (RecordBase, _register_record_type, FieldComponent as Cpt) @_register_record_type('vs') class VsRecord(RecordBase): alarm_status = Cpt(EpicsSignalRO, '.STAT') changed_control = Cpt(EpicsSignalRO, '.CHGC') controller_err_cnt = C...
37.154472
67
0.683589
73c95d59ed68b828d540b11ceb1b89333fe5fd39
3,226
py
Python
server/lib/resolvers.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
server/lib/resolvers.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
server/lib/resolvers.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
import re from .entity import Entity from typing import Optional import contextlib from urllib.request import HTTPRedirectHandler, build_opener, Request """Regex that matches: http://dx.doi.org/doi:10.24431/rw1k118 http://dx.doi.org/10.24431/rw1k118 https://dx.doi.org/doi:10.24431/rw1k118 http://doi.org/doi:10.24431/...
28.803571
95
0.640422
73c9738466caf50ff6cf6ddd7658deedfcba2f73
2,698
py
Python
airflow/operators/latest_only_operator.py
harishjami1382/test2
f778cc7290904a84bed06f65fa5dbb49a63639f0
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/operators/latest_only_operator.py
harishjami1382/test2
f778cc7290904a84bed06f65fa5dbb49a63639f0
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/operators/latest_only_operator.py
harishjami1382/test2
f778cc7290904a84bed06f65fa5dbb49a63639f0
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "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...
39.676471
87
0.703484
73c9842828913b0f35093e030e4b84f02086516d
4,931
py
Python
alipay/aop/api/domain/AlipayInsMarketingGiftQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayInsMarketingGiftQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayInsMarketingGiftQueryModel.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 * class AlipayInsMarketingGiftQueryModel(object): def __init__(self): self._channel = None self._entrance = None self._gift_prod_code = None self._insured_user_id = None ...
32.019481
85
0.591361
73c9857a162f742f6e5bc00714fa17c4ae136658
593
py
Python
modin/engines/dask/task_wrapper.py
manesioz/modin
637e148dba354825307f3f131fa2185ad5a6b54a
[ "Apache-2.0" ]
null
null
null
modin/engines/dask/task_wrapper.py
manesioz/modin
637e148dba354825307f3f131fa2185ad5a6b54a
[ "Apache-2.0" ]
null
null
null
modin/engines/dask/task_wrapper.py
manesioz/modin
637e148dba354825307f3f131fa2185ad5a6b54a
[ "Apache-2.0" ]
null
null
null
from modin import __execution_engine__ if __execution_engine__ == "Dask": from distributed.client import _get_global_client class DaskTask: @classmethod def deploy(cls, func, num_return_vals, kwargs): client = _get_global_client() remote_task_future = client.submit(func, **kwarg...
28.238095
62
0.647555
73c998fab621468c9d4df2cc8b7b15471035d348
11,918
py
Python
salt/states/supervisord.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/states/supervisord.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/states/supervisord.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Interaction with the Supervisor daemon ====================================== .. code-block:: yaml wsgi_server: supervisord: - running - require: - pkg: supervisor - watch: - file: /etc/nginx/sites-enabled/wsgi_server.conf ''' # Import...
29.210784
96
0.525004
73c99bcd066cd6f6c56f040968aeceaf16be44f2
9,548
py
Python
synapse/tests/test_eventbus.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_eventbus.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tests/test_eventbus.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import signal import multiprocessing import synapse.common as s_common import synapse.eventbus as s_eventbus import synapse.lib.threads as s_threads from synapse.tests.common import * @firethread def send_sig(pid, sig): ''' Sent a signal to a process. Args: pid (int): Process id to send the sign...
23.118644
82
0.533515
73c9a38189f14d8b88ae406f866086c86bdc9646
484
py
Python
CCBC_Library/ccbclib/migrations/0005_auto_20150315_1149.py
comsaint/ccbc
594838d6356a7aaeea1cda759781716c58c18824
[ "MIT" ]
null
null
null
CCBC_Library/ccbclib/migrations/0005_auto_20150315_1149.py
comsaint/ccbc
594838d6356a7aaeea1cda759781716c58c18824
[ "MIT" ]
null
null
null
CCBC_Library/ccbclib/migrations/0005_auto_20150315_1149.py
comsaint/ccbc
594838d6356a7aaeea1cda759781716c58c18824
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('ccbclib', '0004_auto_20150315_1142'), ] operations = [ migrations.AlterField( model_name='transaction', ...
23.047619
85
0.617769
73c9da9f979ad5b032e6a069f100a409aa067801
3,572
py
Python
tests/test_researchtool/summarization.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
tests/test_researchtool/summarization.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
tests/test_researchtool/summarization.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
import nltk # Natural Language Toolkit: https://www.nltk.org/ import ssl # Secure Sockets Layer - Internet Protocol from nltk.cluster.util import cosine_distance # Necessary for calculate Cosine similarity from nltk.corpus import sto...
38.408602
117
0.671613
73c9ea2ff8f5afbcc30a92ca2f59a5f96b7233b0
883
py
Python
moma_example/__init__.py
gadio/moma-django
13265379be1dbab18697e5f42f38b3b37f928aa9
[ "Apache-2.0" ]
12
2015-03-29T05:31:25.000Z
2019-06-13T16:17:37.000Z
moma_example/__init__.py
antoniotaranto/moma-django
13265379be1dbab18697e5f42f38b3b37f928aa9
[ "Apache-2.0" ]
8
2015-09-04T21:00:50.000Z
2021-06-10T17:39:44.000Z
moma_example/__init__.py
antoniotaranto/moma-django
13265379be1dbab18697e5f42f38b3b37f928aa9
[ "Apache-2.0" ]
3
2015-03-25T21:52:14.000Z
2021-01-11T03:02:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #========================================================================== # Copyright 2012 Lucidel, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this work except in compliance with the License. # You may obtain a copy of the ...
35.32
75
0.611552
73ca0431be382c3e3e91e92014caea0452bbceb6
9,220
py
Python
translation/main.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
null
null
null
translation/main.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
null
null
null
translation/main.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
1
2019-11-04T01:17:40.000Z
2019-11-04T01:17:40.000Z
# https://blog.keras.io/a-ten-minute-introduction-to-sequence-to-sequence-learning-in-keras.html '''Sequence to sequence example in Keras (character-level). This script demonstrates how to implement a basic character-level sequence-to-sequence model. We apply it to translating short English sentences into short Frenc...
39.570815
96
0.734382
73cab4041a51025a679609f26a5e0a1625f64903
3,412
py
Python
lreid/data/datasets/__init__.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
63
2021-03-20T15:33:11.000Z
2022-03-30T03:04:14.000Z
lreid/data/datasets/__init__.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
5
2021-03-23T08:04:21.000Z
2022-03-10T02:28:43.000Z
lreid/data/datasets/__init__.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
10
2021-04-30T11:14:10.000Z
2022-03-18T16:44:55.000Z
from __future__ import print_function, absolute_import from .image import ( GRID, PRID, CUHK01, CUHK02, CUHK03, MSMT17, VIPeR, SenseReID, Market1501, DukeMTMCreID, iLIDS ) from .video import PRID2011, Mars, DukeMTMCVidReID, iLIDSVID from .dataset import Dataset, ImageDataset, VideoDataset __image_datasets = {...
28.915254
77
0.62837
73cac0da392b5ba49d4464ab3318805d5d1357b7
10,387
py
Python
BOOTSTRAPS/TODO_extract_thermal_slopes_BOOTSTRAP_PROTEINS.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
2
2018-12-05T07:43:39.000Z
2018-12-05T07:43:42.000Z
BOOTSTRAPS/TODO_extract_thermal_slopes_BOOTSTRAP_PROTEINS.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
BOOTSTRAPS/TODO_extract_thermal_slopes_BOOTSTRAP_PROTEINS.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
import re import os import sys from Bio import Seq from Bio import SeqIO from Bio import SeqUtils import pandas as pd import numpy as np from functools import partial import time from scipy import stats as st import copy from multiprocessing import Pool # for plotting ... import matplotlib.pyplot as plt import matplo...
41.714859
166
0.600751
73caf58c1574502766fc229ebee0666cf35b6186
1,939
py
Python
tests/test_util.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
438
2017-03-02T16:55:34.000Z
2019-12-20T03:29:36.000Z
tests/test_util.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
68
2019-12-21T12:51:51.000Z
2022-03-13T13:06:14.000Z
tests/test_util.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
30
2019-12-21T12:18:18.000Z
2022-03-17T05:53:19.000Z
"""Testing pdpipe util module.""" import pandas as pd import pytest from pdpipe.util import out_of_place_col_insert def _test_df(): return pd.DataFrame( data=[[1, 'a'], [2, 'b']], index=[1, 2], columns=['num', 'char'] ) def test_out_of_place_col_insert_all_params(): """Testing ...
26.561644
78
0.62919
73cb15c538fe6c0823a57ad6d3deb570ff3c4f52
40,938
py
Python
round01/30_03_CNN_revived_baseline_complexer.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
round01/30_03_CNN_revived_baseline_complexer.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
1
2022-02-10T02:27:10.000Z
2022-02-10T02:27:10.000Z
round01/30_03_CNN_revived_baseline_complexer.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
import sys import numpy as np #import pandas as pd import datetime import json from array import * import os import math from random import randrange import random from tensorflow.keras.models import Sequential from tensorflow.keras.models import model_from_json from tensorflow.keras.layers import Dense, Activation fr...
36.914337
256
0.577972
73cb26281f32da2701a55ab7fe5fc9eed0e2cae8
2,395
py
Python
operators/relu.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
operators/relu.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
operators/relu.py
ngiambla/nnflex
7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa
[ "MIT" ]
null
null
null
''' relu.py: Implement's the ReLU ONNX node as a flexnode (for use with any accelerator) ''' import uuid import numpy as np from operators.flexnode import FlexNode from core.defines import Operator from core.messaging import Message class ReLU(FlexNode): def __init__(self, onnx_node, inputs, outputs): ...
28.511905
110
0.629645
73cb44585cf13ed9df47a8884836e6146d7ea7ab
2,800
py
Python
src/fortrace/utility/rc4.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
src/fortrace/utility/rc4.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
src/fortrace/utility/rc4.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
#!/usr/bin/env python # # rc4.py - RC4, ARC4, ARCFOUR algorithm with random salt # # Copyright (c) 2009 joonis new media # Author: Thimo Kraemer <thimo.kraemer@joonis.de> # Modified: 2016 Sascha Kopp <sascha.kopp@stud.h-da.de> # # This program is free software; you can redistribute it and/...
30.434783
76
0.633571
73cb466c9021439a52f16ee56ff8f27004be819f
3,335
py
Python
reliabilly/components/web/http_requestor.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2018-11-24T02:07:37.000Z
2018-11-24T02:07:37.000Z
reliabilly/components/web/http_requestor.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-23T07:12:30.000Z
2019-01-23T07:12:30.000Z
reliabilly/components/web/http_requestor.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-16T05:30:49.000Z
2019-01-16T05:30:49.000Z
import json import pickle import requests from requests.auth import HTTPBasicAuth from reliabilly.settings import Settings, Constants, get_service_url, get_raw_service_url def save_items(items, json_file, pickle_file): # pragma: no cover with open(pickle_file, 'wb') as handle: pickle.dump(items, handle, ...
41.6875
119
0.705547
73cb5d36706c30200fa829f7c2472f3a263da55e
890
py
Python
day1/day1.py
jmcph4/advent2017
f5f53e5a771b5b40b9fb8c5a2ea4e89d06279d32
[ "MIT" ]
null
null
null
day1/day1.py
jmcph4/advent2017
f5f53e5a771b5b40b9fb8c5a2ea4e89d06279d32
[ "MIT" ]
null
null
null
day1/day1.py
jmcph4/advent2017
f5f53e5a771b5b40b9fb8c5a2ea4e89d06279d32
[ "MIT" ]
null
null
null
def sum_matching_digits(digits): total = 0 n = len(digits) if n == 0: return total if n == 1: return digits[0] for i in range(n): if i == n - 1: if digits[i] == digits[0]: total += digits[i] else: if digits[i] == digits[i+...
20.227273
56
0.494382
73cb634673b15088eec79faf9fcded204d33dd92
15,929
py
Python
cogs/ReactionRoles.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
9
2020-02-14T02:07:39.000Z
2022-01-08T03:25:22.000Z
cogs/ReactionRoles.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
16
2020-02-14T02:10:29.000Z
2022-02-04T14:50:58.000Z
cogs/ReactionRoles.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
8
2020-02-21T14:28:07.000Z
2022-02-04T14:49:04.000Z
from cogs.Permissions import moderator_perms from collections import namedtuple from discord.ext import commands from datetime import datetime from config import Config import discord import typing class ReactionRoles(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(pass_cont...
42.477333
136
0.604621
73cb664d3f850a0e83131b0c827cd37e24b6e206
6,053
py
Python
experimenter/models/HFGpt.py
jkhouja/experimenter
f9ff40b57b17837f04263d567966ea1e4634c03a
[ "MIT" ]
null
null
null
experimenter/models/HFGpt.py
jkhouja/experimenter
f9ff40b57b17837f04263d567966ea1e4634c03a
[ "MIT" ]
null
null
null
experimenter/models/HFGpt.py
jkhouja/experimenter
f9ff40b57b17837f04263d567966ea1e4634c03a
[ "MIT" ]
1
2021-04-23T21:52:31.000Z
2021-04-23T21:52:31.000Z
import logging import torch from transformers import GPT2Model from experimenter.models.base import BaseModel class HFGpt(BaseModel): """An encoder decoder model that works for dialgoue. Do not use for LM tasks""" def __init__(self, config): super(HFGpt, self).__init__(config) args = self....
39.822368
93
0.56154
73cbc0b8053bff46a9064d07cede055e70ebb7fb
735
py
Python
sqlalchemy_utils/types/bit.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
11
2016-09-14T21:59:55.000Z
2019-01-28T21:58:31.000Z
sqlalchemy_utils/types/bit.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
sqlalchemy_utils/types/bit.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
3
2021-03-22T14:24:40.000Z
2021-04-02T08:05:27.000Z
import sqlalchemy as sa from sqlalchemy.dialects.postgresql import BIT class BitType(sa.types.TypeDecorator): """ BitType offers way of saving BITs into database. """ impl = sa.types.BINARY def __init__(self, length=1, **kwargs): self.length = length sa.types.TypeDecorator.__init_...
31.956522
72
0.661224
73cbc9be1beae615cc4ac7f41d52cad03a1e61a2
1,540
py
Python
sample_request.py
NexarDeveloper/nexar-token-py
a542397aecb84a703a81c333e0aa7bbc43673ad3
[ "MIT" ]
4
2021-07-08T20:50:21.000Z
2022-02-15T12:14:18.000Z
sample_request.py
NexarDeveloper/nexar-token-py
a542397aecb84a703a81c333e0aa7bbc43673ad3
[ "MIT" ]
null
null
null
sample_request.py
NexarDeveloper/nexar-token-py
a542397aecb84a703a81c333e0aa7bbc43673ad3
[ "MIT" ]
5
2021-07-05T16:39:31.000Z
2022-03-30T21:48:18.000Z
"""Sample request for extracting GraphQL part data.""" import argparse import json import requests import pyperclip NEXAR_URL = "https://api.nexar.com/graphql" QUERY_MPN = """query ($mpn: String!) { supSearchMpn(q: $mpn) { results { part { category { parentId ...
24.0625
78
0.514935
73cbe4684b6ecfebf51e24544f9c80518d19d4c3
822
py
Python
quads/migrations/0001_initial.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
1
2021-04-26T20:03:11.000Z
2021-04-26T20:03:11.000Z
quads/migrations/0001_initial.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
17
2021-04-23T16:51:59.000Z
2021-12-13T21:17:41.000Z
quads/migrations/0001_initial.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-08 21:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Quads', fields=[ ('id', models.AutoField(au...
27.4
114
0.520681
73cc255b78fb1139c2e47bcdc435e5ca805cd1c5
1,068
py
Python
araucaria/xas/__init__.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
8
2021-07-11T22:54:21.000Z
2022-02-16T20:22:25.000Z
araucaria/xas/__init__.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
null
null
null
araucaria/xas/__init__.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ The :mod:`~araucaria.xas` module contains the main functions to manipulate XAFS spectra. The following submodules are currently implemented: - The :mod:`~araucaria.xas.merge` module contains functions to pre-process and merge spectra. - The :mod:`~araucaria.xas.deglitch` ...
48.545455
109
0.781835
73cc3e39f21bf8e3c81a2f40e6b1676fdb5503e0
8,035
py
Python
mdp_irl.py
pragupta/Inverse-Reinforcement-Learning
e7bbb7bb0ad24ebc36d9e0d4b4e6c6788229fd9c
[ "MIT" ]
null
null
null
mdp_irl.py
pragupta/Inverse-Reinforcement-Learning
e7bbb7bb0ad24ebc36d9e0d4b4e6c6788229fd9c
[ "MIT" ]
null
null
null
mdp_irl.py
pragupta/Inverse-Reinforcement-Learning
e7bbb7bb0ad24ebc36d9e0d4b4e6c6788229fd9c
[ "MIT" ]
null
null
null
""" Run inverse reinforcement learning algorithms on the objectworld MDP. Matthew Alger, 2015 matthew.alger@anu.edu.au """ import argparse import numpy as np import matplotlib.pyplot as plt from irl.value_iteration import find_policy from irl.value_iteration import value from irl.value_iteration import optimal_value...
40.175
96
0.574487
73cc3e427af50ea579c40ea2089d7dcafb5b716e
7,260
py
Python
directions/base.py
jwass/directions.py
c3734e4cb499fe80e27b2a26575a91ac4e834e95
[ "BSD-3-Clause" ]
11
2015-01-20T19:48:32.000Z
2019-04-27T07:51:03.000Z
directions/base.py
jwass/directions.py
c3734e4cb499fe80e27b2a26575a91ac4e834e95
[ "BSD-3-Clause" ]
2
2016-05-24T18:04:48.000Z
2016-06-03T00:48:32.000Z
directions/base.py
jwass/directions.py
c3734e4cb499fe80e27b2a26575a91ac4e834e95
[ "BSD-3-Clause" ]
11
2015-03-29T19:44:21.000Z
2021-07-01T19:59:08.000Z
import time class Waypoint: VIA = 1 STOP = 2 class Router: def __init__(self, name=None, rate_limit_dt=0): # Just a simple identifier if name is None: self.name = self.default_name # The min time delta in seconds between queries self._rate_limit_dt = rate_limit...
29.876543
80
0.566391
73cc6246ab39c66c0920dbed09a8c00383fb278e
5,653
py
Python
openpype/hosts/maya/api/shader_definition_editor.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/hosts/maya/api/shader_definition_editor.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/hosts/maya/api/shader_definition_editor.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Editor for shader definitions. Shader names are stored as simple text file over GridFS in mongodb. """ import os from Qt import QtWidgets, QtCore, QtGui from openpype.lib.mongo import OpenPypeMongoConnection from openpype import resources import gridfs DEFINITION_FILENAME = "{}/maya/shade...
31.937853
75
0.623563
73cc9917145f90f3a2b49987a2a2e7d0d2ca982b
9,785
py
Python
src/falconpy/sensor_visibility_exclusions.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
111
2020-11-19T00:44:18.000Z
2022-03-03T21:02:32.000Z
src/falconpy/sensor_visibility_exclusions.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
227
2020-12-05T03:02:27.000Z
2022-03-22T14:12:42.000Z
src/falconpy/sensor_visibility_exclusions.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
47
2020-11-23T21:00:14.000Z
2022-03-28T18:30:19.000Z
"""Falcon Sensor Visibility Exclusions API Interface Class _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_...
40.941423
105
0.640879
73ccbe73506b953dc6a6f39e526c71e758ea6af3
8,681
py
Python
quest/pycocoevalcap/bleu/bleu_scorer.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
2
2021-09-28T02:26:46.000Z
2021-09-28T04:47:55.000Z
pycocoevalcap/bleu/bleu_scorer.py
ruizhang-ai/GCP
7a0f30c6c3d732627fa269ce943c62a9005cc40f
[ "MIT" ]
null
null
null
pycocoevalcap/bleu/bleu_scorer.py
ruizhang-ai/GCP
7a0f30c6c3d732627fa269ce943c62a9005cc40f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # bleu_scorer.py # David Chiang <chiang@isi.edu> # Copyright (c) 2004-2006 University of Maryland. All rights # reserved. Do not redistribute without permission from the # author. Not for commercial use. # Modified by: # Hao Fang <hfang@uw.edu> # Tsung-Yi Lin <tl483@cornell.edu> '''Provides: ...
32.271375
151
0.581615
73ccd87e7f6f4b65cb5f846083b5204e0de31b1a
6,078
py
Python
GeeProxy/validators/items_vaildate.py
geebytes/GeeProxy
6f2f57ef1e1e8ea9a295cf987577dab5f1cadfe5
[ "Apache-2.0" ]
2
2020-10-12T05:31:36.000Z
2020-11-30T07:39:06.000Z
GeeProxy/validators/items_vaildate.py
geebytes/GeeProxy
6f2f57ef1e1e8ea9a295cf987577dab5f1cadfe5
[ "Apache-2.0" ]
1
2021-04-19T11:14:59.000Z
2021-04-19T11:14:59.000Z
GeeProxy/validators/items_vaildate.py
geebytes/GeeProxy
6f2f57ef1e1e8ea9a295cf987577dab5f1cadfe5
[ "Apache-2.0" ]
1
2021-09-30T04:36:10.000Z
2021-09-30T04:36:10.000Z
""" @Author: qinzhonghe96@163.com @Date: 2020-03-09 16:48:20 @LastEditors: qinzhonghe96@163.com @LastEditTime: 2020-03-10 03:45:46 @Description: 校验爬取到的代理数据项的可用性和匿名程度 """ import time import asyncio import threading from GeeProxy.utils.redis_cli import client from GeeProxy.utils.logger import item_logger from GeeProxy.v...
31.329897
97
0.51234
73ccdec5d7ccfcb9edc410306476089de41cd8d3
765
py
Python
google/cloud/pubsublite_v1/services/cursor_service/__init__.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
15
2020-11-10T15:36:52.000Z
2022-03-06T15:00:25.000Z
google/cloud/pubsublite_v1/services/cursor_service/__init__.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
110
2020-11-11T18:14:31.000Z
2022-03-30T22:42:17.000Z
google/cloud/pubsublite_v1/services/cursor_service/__init__.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
6
2020-11-13T19:24:27.000Z
2022-01-29T08:13:14.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.26087
74
0.756863
73cd0288a1b9e9ced9032f4aaf6cd91802d6adbd
511
py
Python
content/test/gpu/page_sets/__init__.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
content/test/gpu/page_sets/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
content/test/gpu/page_sets/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys from telemetry.core import discover from telemetry.story import story_set from page_sets.gpu_process_tests import GpuProcessTestsSt...
36.5
75
0.851272
73cd08ef893764cef0eef53f936bc6f9ac62dc52
78,688
py
Python
sympy/utilities/runtests.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
1
2015-08-31T06:55:47.000Z
2015-08-31T06:55:47.000Z
sympy/utilities/runtests.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
null
null
null
sympy/utilities/runtests.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
3
2015-04-18T22:33:32.000Z
2015-09-23T06:45:07.000Z
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
36.925387
118
0.574217
73cd2839e8980df0fbeacb2a5c17ef09c920938f
1,716
py
Python
detectron/utils/coordinator.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
null
null
null
detectron/utils/coordinator.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
null
null
null
detectron/utils/coordinator.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ############################################################################## """Coordinated access to a shared multithrea...
26
78
0.644522
73cd365f99f40a27fa9ad1f4eff2257ef4db734e
23,781
py
Python
justap_server_sdk_python/models/v1_extra_alipay_page.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
justap_server_sdk_python/models/v1_extra_alipay_page.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
justap_server_sdk_python/models/v1_extra_alipay_page.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Justap API 欢迎阅读 Justap Api 文档 Justap 是为移动端应用和PC端应用打造的下一代聚合支付SAAS服务平台,通过一个 SDK 即可快速的支持各种形式的应用,并且一次接口完成多个不同支付渠道的接入。平台除了支持服务商子商户模式,同时还对商家自有商户(即自己前往微信、支付宝等机构开户)提供了完整的支持。 感谢您的支持,我们将不断探索,为您提供更优质的服务!如需技术支持可前往商户中心提交工单,支持工程师会尽快与您取得联系! # 文档说明 采用 REST 风格设计。所有接口请求地址都是可预期的以及面向资源的。使用规范的 HTTP 响应代码来表示请...
35.49403
3,404
0.660233
73cd3984a69a0edde2fc050d3dc2629295364576
24,234
py
Python
recognition/partial_fc/mxnet/symbol/symbol_utils.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
12,377
2017-12-04T02:46:57.000Z
2022-03-31T16:48:31.000Z
recognition/partial_fc/mxnet/symbol/symbol_utils.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
1,851
2017-12-05T05:41:23.000Z
2022-03-30T13:06:22.000Z
recognition/partial_fc/mxnet/symbol/symbol_utils.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
4,198
2017-12-05T02:57:19.000Z
2022-03-30T10:29:37.000Z
import sys import os import mxnet as mx sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) from default import config def Conv(**kwargs): # name = kwargs.get('name') # _weight = mx.symbol.Variable(name+'_weight') # _bias = mx.symbol.Variable(name+'_bias', lr_mult=2.0, wd_mult=0.0) # bo...
40.592965
99
0.397417
73cd41373c33690b79d1d5a06d00cfe98b9006d5
4,342
py
Python
Instance_Segmentation/SketchDataset.py
yokoro13/SketchyScene
1301a9d3ee2fd91b6c19fe8b1e036a39f514ef4a
[ "MIT" ]
null
null
null
Instance_Segmentation/SketchDataset.py
yokoro13/SketchyScene
1301a9d3ee2fd91b6c19fe8b1e036a39f514ef4a
[ "MIT" ]
null
null
null
Instance_Segmentation/SketchDataset.py
yokoro13/SketchyScene
1301a9d3ee2fd91b6c19fe8b1e036a39f514ef4a
[ "MIT" ]
null
null
null
import os import sys import numpy as np import scipy.io from PIL import Image sys.path.append('libs') import utils nImgs_map = {'train': 11264, 'val': 2273, 'test': 541} cate = ["bicycle", "car", "motorcycle", "airplane", "fire hydrant", "traffic light", "cat", "dog", "horse", "sheep", "cow", "elephant", "oth...
36.183333
108
0.613312
73cda10667d4e2038d273198cdf8845e775d8fc3
795
py
Python
Task1B.py
SweetTomato111/flood-warning-system
b33bbc90899b18786227933ebf5f1aa2b91074f6
[ "MIT" ]
null
null
null
Task1B.py
SweetTomato111/flood-warning-system
b33bbc90899b18786227933ebf5f1aa2b91074f6
[ "MIT" ]
null
null
null
Task1B.py
SweetTomato111/flood-warning-system
b33bbc90899b18786227933ebf5f1aa2b91074f6
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT from floodsystem.stationdata import build_station_list from floodsystem.geo import station_by_distance def run(): """Requirements for Task 1B""" # Build list of stations stations = build_station_list() #Example Code station_by_d...
26.5
78
0.675472
73cdaaac2067a350a1a11afa1bb3aba96aeeff4d
666
py
Python
swcms_social/faq/migrations/0002_auto_20180302_1639.py
ivanff/swcms
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
null
null
null
swcms_social/faq/migrations/0002_auto_20180302_1639.py
ivanff/swcms
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
1
2019-06-25T11:17:35.000Z
2019-06-25T11:17:54.000Z
swcms_social/faq/migrations/0002_auto_20180302_1639.py
ivanff/swcms-social
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-03-02 13:39 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('faq', '0001_initial'), ] operations = [ migrations.AlterField( model_name='faq', na...
26.64
144
0.608108
73cdc35313c5c0af6eb6776e73b36285c9d8fff2
3,615
py
Python
hood/migrations/0001_initial.py
Hillarydalie/jiraniwatch
4d531c066a641cfc6bbeb4f2ade2f71f706aedd3
[ "MIT" ]
null
null
null
hood/migrations/0001_initial.py
Hillarydalie/jiraniwatch
4d531c066a641cfc6bbeb4f2ade2f71f706aedd3
[ "MIT" ]
7
2020-06-06T00:18:19.000Z
2022-03-12T00:03:41.000Z
hood/migrations/0001_initial.py
Hillarydalie/jiraniwatch
4d531c066a641cfc6bbeb4f2ade2f71f706aedd3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-30 07:17 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
48.851351
130
0.59834
73cdc74410085b008d264c4ad5eca3ef220b29fb
3,235
py
Python
tests/datastructures/test_second_largest_item_in_bst.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/datastructures/test_second_largest_item_in_bst.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/datastructures/test_second_largest_item_in_bst.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest # from datastructures.trees.binary_search_tree import find_second_largest class Test(unittest.TestCase): class BinaryTreeNode(object): def __init__(self, value): self.value = value self.left = None self.right = None def insert_left(self, valu...
32.029703
73
0.61762
73cdcd6712af1781c16dad789e6e72bcac6d9ae8
10,029
py
Python
test/registry/fixtures.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
test/registry/fixtures.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
test/registry/fixtures.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import copy import logging.config import json import os import shutil from tempfile import NamedTemporaryFile import pytest from Crypto import Random from flask import jsonify, g from flask_principal import Identity from app import storage from data.database import ( close_db_filter, configure, DerivedS...
32.144231
97
0.687207
73cdd99f1117d2c9aba83bde68e7ccdacab9d91c
2,468
py
Python
Tools/resultsdbpy/resultsdbpy/example/main.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/resultsdbpy/resultsdbpy/example/main.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/resultsdbpy/resultsdbpy/example/main.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2020 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
36.294118
83
0.773096
73cded750aa8f5e2e1a05c840b2b09b29539275f
6,703
py
Python
train_pose.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
train_pose.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
train_pose.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
from modules.distance_loss import WeightedMSELoss from modules.utils import get_loss_layers from camera_estimation import TorchCameraEstimate import smplx import torch from tqdm import tqdm import torchgeometry as tgm # internal imports from modules.pose import BodyPose from modules.filter import JointFilter from modu...
28.645299
83
0.649262
73cdf1446158cc844a9dcaae11cff77dbe261088
676
py
Python
empower/core/service.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
2
2020-02-28T15:54:01.000Z
2020-11-24T08:45:11.000Z
empower/core/service.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
null
null
null
empower/core/service.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
1
2020-03-02T16:41:20.000Z
2020-03-02T16:41:20.000Z
#!/usr/bin/env python3 # # Copyright (c) 2018 Roberto Riggio # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
29.391304
66
0.747041
73ce151d89aa7e29ce42dbfb9de8cf3761484a5b
4,590
py
Python
sdk/oep/azure-mgmt-oep/azure/mgmt/oep/aio/_open_energy_platform_management_service_apis.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/oep/azure-mgmt-oep/azure/mgmt/oep/aio/_open_energy_platform_management_service_apis.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/oep/azure-mgmt-oep/azure/mgmt/oep/aio/_open_energy_platform_management_service_apis.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
46.363636
141
0.715904
73ce26cc8ba81e189b3f8e33e00f0647fddb4e06
10,825
py
Python
silx/io/h5py_utils.py
woutdenolf/silx
b590bece15588792a0ff41a71301975a63be8e09
[ "CC0-1.0", "MIT" ]
1
2019-12-11T14:11:03.000Z
2019-12-11T14:11:03.000Z
silx/io/h5py_utils.py
juliagarriga/silx
f0940c701fb6e625f9f6014840f0890011e7a562
[ "CC0-1.0", "MIT" ]
null
null
null
silx/io/h5py_utils.py
juliagarriga/silx
f0940c701fb6e625f9f6014840f0890011e7a562
[ "CC0-1.0", "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # Copyright (C) 2016-2017 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to dea...
34.040881
135
0.602402
73ce3f7b51071705690f77fb74126eda39ac89a1
1,181
py
Python
codemod_unittest_to_pytest_asserts/tests/unittest_code.py
hanswilw/codemod-unittest-to-pytest-asserts
0e4ba1a221003b8c0f7ca105dcf7180bce5d3cbc
[ "MIT" ]
8
2020-01-09T08:20:20.000Z
2021-06-30T19:00:15.000Z
codemod_unittest_to_pytest_asserts/tests/unittest_code.py
hanswilw/codemod-unittest-to-pytest-asserts
0e4ba1a221003b8c0f7ca105dcf7180bce5d3cbc
[ "MIT" ]
4
2020-03-02T20:54:49.000Z
2021-02-01T16:20:31.000Z
codemod_unittest_to_pytest_asserts/tests/unittest_code.py
hanswilw/codemod-unittest-to-pytest-asserts
0e4ba1a221003b8c0f7ca105dcf7180bce5d3cbc
[ "MIT" ]
1
2021-01-27T12:29:25.000Z
2021-01-27T12:29:25.000Z
class ExampleTest: def test_something(self): self.assertEqual(1, 1) self.assertEqual(1, 1, msg="1 should always be 1") self.assertEqual(1, 1, "1 should always be 1") self.assertEqual(1, 1) # 1 should always be one def inner_test_method(): self.assertEqual(1, 1) ...
32.805556
92
0.595258
73ce4384048cfb48fb719783de737bfc26cf4cb9
3,170
py
Python
cloud_snitch/snitchers/pip.py
bunchc/FleetDeploymentReporting
a93af06573f2715e14b4d18b7a394c26fc19a32d
[ "Apache-2.0" ]
1
2018-07-11T20:20:21.000Z
2018-07-11T20:20:21.000Z
cloud_snitch/snitchers/pip.py
bunchc/FleetDeploymentReporting
a93af06573f2715e14b4d18b7a394c26fc19a32d
[ "Apache-2.0" ]
46
2018-08-08T19:46:15.000Z
2019-02-22T20:33:49.000Z
cloud_snitch/snitchers/pip.py
dani4571/FleetDeploymentReporting
8b132a20fa3e9c4e4215feade79f689be6e4b364
[ "Apache-2.0" ]
7
2018-06-26T15:27:55.000Z
2018-12-05T19:41:25.000Z
import logging from .base import BaseSnitcher from cloud_snitch.models import EnvironmentEntity from cloud_snitch.models import HostEntity from cloud_snitch.models import PythonPackageEntity from cloud_snitch.models import VirtualenvEntity logger = logging.getLogger(__name__) class PipSnitcher(BaseSnitcher): ""...
34.835165
76
0.619243
73ce47a04a9e17a6265af97873b32ae5dbcaa6c6
1,727
py
Python
datasets/DET/viewer/qt5_viewer.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
datasets/DET/viewer/qt5_viewer.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
datasets/DET/viewer/qt5_viewer.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from datasets.DET.dataset import DetectionDataset_MemoryMapped from datasets.base.common.viewer.qt5_viewer import draw_object from miscellanies.viewer.qt5_viewer import Qt5Viewer from PyQt5.QtGui import QPixmap, QColor import random class DetectionDatasetQt5Viewer: def __init__(self, dataset: DetectionDataset_Mem...
37.543478
110
0.649682
73ce6a98960e99525adda35711dd41113709ca8c
1,209
py
Python
dipy/utils/tripwire.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/utils/tripwire.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/utils/tripwire.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
""" Class to raise error for missing modules or other misfortunes """ class TripWireError(AttributeError): """ Exception if trying to use TripWire object """ def is_tripwire(obj): """ Returns True if `obj` appears to be a TripWire object Examples -------- >>> is_tripwire(object()) False ...
24.18
96
0.637717
73ce7286f3790c9aeb4169eb7b99bc3125364774
1,533
py
Python
src/pybricks/geometry.py
TheVinhLuong102/pybricks-api
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
51
2020-04-02T10:03:45.000Z
2022-03-27T23:49:39.000Z
src/pybricks/geometry.py
LEGO-Robotics/Pybricks-API
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
77
2020-03-22T17:32:14.000Z
2022-03-28T18:02:43.000Z
src/pybricks/geometry.py
LEGO-Robotics/Pybricks-API
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
25
2020-03-18T23:35:17.000Z
2022-01-01T12:52:01.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2018-2021 The Pybricks Authors """Core linear algebra functionality for orientation sensors and robotics.""" class Matrix: """Mathematical representation of a matrix. It supports common operations such as matrix addition (``+``), subtraction (``-``), and mul...
24.333333
77
0.558382
73ce7cb7854fd3205489f1dbc2e9ce60ec84f5bf
558
py
Python
src/utils/tokenizer.py
etalab-ia/pseudo_conseil_etat
c2d8be0289049fe29c3cf5179415a8452605c22e
[ "MIT" ]
4
2020-03-28T14:44:23.000Z
2022-02-01T14:01:34.000Z
src/utils/tokenizer.py
etalab-ia/pseudo_conseil_etat
c2d8be0289049fe29c3cf5179415a8452605c22e
[ "MIT" ]
null
null
null
src/utils/tokenizer.py
etalab-ia/pseudo_conseil_etat
c2d8be0289049fe29c3cf5179415a8452605c22e
[ "MIT" ]
1
2020-02-05T17:57:39.000Z
2020-02-05T17:57:39.000Z
import re from sacremoses import MosesPunctNormalizer, MosesTokenizer, MosesDetokenizer mpn = MosesPunctNormalizer(lang="fr") mt = MosesTokenizer(lang="fr") detokenizer = MosesDetokenizer() def moses_detokenize(list_strings): return detokenizer.detokenize(list_strings) def moses_tokenize(phrase): phrase =...
22.32
77
0.732975
73ce931516d3ff0c26ba5fca2ccbb4c0be5cd37c
22,456
py
Python
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktaucclib/modinput_wrapper/base_modinput.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
4
2022-03-04T11:11:30.000Z
2022-03-07T09:55:07.000Z
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktaucclib/modinput_wrapper/base_modinput.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
null
null
null
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktaucclib/modinput_wrapper/base_modinput.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
null
null
null
# # Copyright 2021 Splunk 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 writing, so...
38.452055
167
0.607009
73ce9fcc4ebbb916ead89f82e6ec96d7e3730701
3,230
py
Python
mountaintools/vdomr/devel/devel.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
mountaintools/vdomr/devel/devel.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
mountaintools/vdomr/devel/devel.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from IPython.display import HTML import os import vdomr as vd import base64 def loadBootstrap(): url = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' integrity = 'sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u' crossorigin = 'anonymous' loadCss(url=url...
30.471698
89
0.581734
73cea7090458b9b120ff94fb70d5e50230f9a772
2,974
py
Python
test/test_gpy.py
gregorgebhardt/kb_learning
41e18c1238e0ea891d48aff63588366dae64e4c8
[ "BSD-3-Clause" ]
null
null
null
test/test_gpy.py
gregorgebhardt/kb_learning
41e18c1238e0ea891d48aff63588366dae64e4c8
[ "BSD-3-Clause" ]
null
null
null
test/test_gpy.py
gregorgebhardt/kb_learning
41e18c1238e0ea891d48aff63588366dae64e4c8
[ "BSD-3-Clause" ]
null
null
null
import matplotlib matplotlib.use('PS') import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy.stats import GPy from paramz.transformations import Logexp from GPy.core.parameterization import Param from kb_learning.kernel import KilobotEnvKernel # it_sars = pd.read_pickle('/home/gebhardt...
35.404762
117
0.725958
73cea868baa85352231e0f813ae999d86cbe57da
2,613
py
Python
mlinspect/backends/backend_utils.py
stefan-grafberger/mlinspect-cidr
4a15068a1652c043021d04795bd89da32ec20992
[ "Apache-2.0" ]
5
2020-08-26T13:32:13.000Z
2020-10-20T15:34:57.000Z
mlinspect/backends/backend_utils.py
stefan-grafberger/mlinspect-cidr
4a15068a1652c043021d04795bd89da32ec20992
[ "Apache-2.0" ]
1
2020-08-29T22:53:27.000Z
2020-08-29T22:53:27.000Z
mlinspect/backends/backend_utils.py
stefan-grafberger/mlinspect-cidr
4a15068a1652c043021d04795bd89da32ec20992
[ "Apache-2.0" ]
null
null
null
""" Some utility functions the different instrumentation backends """ import itertools from functools import partial import numpy from pandas import DataFrame from ..inspections.inspection_input import InspectionInputRow def build_annotation_df_from_iters(inspections, annotation_iterators): """ Build the an...
34.381579
97
0.745886
73cee5308f0060794b159143fa7bd12a6921568c
13,246
py
Python
libcity/model/traffic_speed_prediction/STTN.py
LibCity/Bigscity-LibCity-Docs-zh_CN
2be639c3fe7d75727ade18f473d6f625900f73f2
[ "Apache-2.0" ]
5
2021-09-28T12:32:50.000Z
2022-02-03T09:04:35.000Z
libcity/model/traffic_speed_prediction/STTN.py
aptx1231/Bigscity-TrafficDL-Docs-zh_CN
2be639c3fe7d75727ade18f473d6f625900f73f2
[ "Apache-2.0" ]
null
null
null
libcity/model/traffic_speed_prediction/STTN.py
aptx1231/Bigscity-TrafficDL-Docs-zh_CN
2be639c3fe7d75727ade18f473d6f625900f73f2
[ "Apache-2.0" ]
1
2021-12-16T05:10:35.000Z
2021-12-16T05:10:35.000Z
from logging import getLogger import math import torch import torch.nn as nn import torch.nn.functional as F from libcity.model import loss from libcity.model.abstract_traffic_state_model import AbstractTrafficStateModel class SSelfAttention(nn.Module): def __init__(self, embed_dim, num_heads): super().__...
39.777778
132
0.646686
73cf094cf77e18c95fada7abbb805a0feed41fec
526
py
Python
auto_pilot/common/registrable.py
farrellsc/zAutoPilot
652d93690237dcb21c3cbdbdad95f917b7fec6e3
[ "MIT" ]
1
2018-03-05T08:27:58.000Z
2018-03-05T08:27:58.000Z
auto_pilot/common/registrable.py
farrellsc/zAutoPilot
652d93690237dcb21c3cbdbdad95f917b7fec6e3
[ "MIT" ]
null
null
null
auto_pilot/common/registrable.py
farrellsc/zAutoPilot
652d93690237dcb21c3cbdbdad95f917b7fec6e3
[ "MIT" ]
null
null
null
from typing import Callable, TypeVar, List T = TypeVar('T') class Registrable(object): reg_list = dict() @classmethod def register(cls, class_name: str) -> Callable: def register_inner(class_type: T) -> None: cls.reg_list[class_name] = class_type return register_inner @c...
23.909091
51
0.65019
73cf1b339ffadfcb0c74ad1084fefba313a602cd
1,816
py
Python
aws_lambda_powertools/utilities/data_classes/common.py
jamesls/aws-lambda-powertools-python
52314e6d3b002d2d8bbacf3d1348e161b8e727b2
[ "MIT-0" ]
null
null
null
aws_lambda_powertools/utilities/data_classes/common.py
jamesls/aws-lambda-powertools-python
52314e6d3b002d2d8bbacf3d1348e161b8e727b2
[ "MIT-0" ]
null
null
null
aws_lambda_powertools/utilities/data_classes/common.py
jamesls/aws-lambda-powertools-python
52314e6d3b002d2d8bbacf3d1348e161b8e727b2
[ "MIT-0" ]
null
null
null
from typing import Any, Dict, Optional class DictWrapper: """Provides a single read only access to a wrapper dict""" def __init__(self, data: Dict[str, Any]): self._data = data def __getitem__(self, key: str) -> Any: return self._data[key] def get(self, key: str) -> Optional[Any]: ...
27.515152
102
0.597467
73cf1e8a271674679de16378ea561e7f3dcc44fd
2,883
py
Python
app/inbound_sms/rest.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/inbound_sms/rest.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/inbound_sms/rest.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
from flask import Blueprint, jsonify, request from notifications_utils.recipients import try_validate_and_format_phone_number from app.dao.inbound_sms_dao import ( dao_count_inbound_sms_for_service, dao_get_inbound_sms_by_id, dao_get_inbound_sms_for_service, dao_get_paginated_most_recent_inbound_sms_by...
42.397059
117
0.800902
73cf4f939426e3f835aa455e8b86707fc64f78d9
108
py
Python
src/typeDefs/hvdcPole.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
src/typeDefs/hvdcPole.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
21
2021-01-08T18:03:32.000Z
2021-02-02T16:17:34.000Z
src/typeDefs/hvdcPole.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
from src.typeDefs.element import IElement class IHvdcPole(IElement): substation: str voltage: str
15.428571
41
0.75
73cf87956b80ea5e54f069d9067bd15df893251f
3,922
py
Python
SCRAPE/Lib/site-packages/twisted/internet/test/test_sigchld.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/internet/test/test_sigchld.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/internet/test/test_sigchld.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.internet._sigchld}, an alternate, superior SIGCHLD monitoring API. """ import errno import os import signal from twisted.python.log import msg from twisted.python.runtime import platformType from twisted.trial.unittest i...
31.886179
78
0.644824
73cf93ec2c2d922992ef9c7b5415799a5765c969
1,260
py
Python
netbox_prometheus_sd/tests/test_api.py
feuri/netbox-plugin-prometheus-sd
0a294748541662cf0ce1dd87e2bc2462476312a4
[ "MIT" ]
null
null
null
netbox_prometheus_sd/tests/test_api.py
feuri/netbox-plugin-prometheus-sd
0a294748541662cf0ce1dd87e2bc2462476312a4
[ "MIT" ]
null
null
null
netbox_prometheus_sd/tests/test_api.py
feuri/netbox-plugin-prometheus-sd
0a294748541662cf0ce1dd87e2bc2462476312a4
[ "MIT" ]
null
null
null
from django.test import TestCase from rest_framework.test import APIClient from rest_framework import status from tenancy.models import Tenant from virtualization.models import Cluster, ClusterType from dcim.models import Site from . import utils class AppMetricEndpointTests(TestCase): """Test cases for ensurin...
35
93
0.692857
73cf975bbe0643bf6eddc3a4daf659c4a82450d8
4,850
py
Python
unit_tests/glhe/profiles/test_external_load.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
2
2018-11-06T08:04:04.000Z
2020-10-09T14:52:36.000Z
unit_tests/glhe/profiles/test_external_load.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
68
2018-03-27T01:43:22.000Z
2019-09-09T12:05:44.000Z
unit_tests/glhe/profiles/test_external_load.py
mitchute/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
4
2018-05-24T03:02:44.000Z
2021-08-16T13:54:09.000Z
import os import tempfile import unittest from glhe.input_processor.input_processor import InputProcessor from glhe.interface.response import SimulationResponse from glhe.output_processor.output_processor import OutputProcessor from glhe.profiles.external_load import ExternalLoad from glhe.utilities.functions import w...
41.452991
117
0.595464
73cf98f8778484a97d543cc193e820ea1cbeb7ef
2,192
py
Python
setup.py
DedeKite/wxPlotLab
808d457aeb897ceb37535bcd11d15b65a0a14cd1
[ "MIT" ]
6
2016-03-21T18:44:23.000Z
2021-05-16T19:07:02.000Z
setup.py
DedeKite/wxPlotLab
808d457aeb897ceb37535bcd11d15b65a0a14cd1
[ "MIT" ]
1
2018-05-15T14:47:03.000Z
2018-05-15T14:47:03.000Z
setup.py
astyl/mplotlab
808d457aeb897ceb37535bcd11d15b65a0a14cd1
[ "MIT" ]
1
2016-01-29T12:38:20.000Z
2016-01-29T12:38:20.000Z
#!/usr/bin/env python from setuptools import setup version = "0.2" long_desc = """ MPLOTLAB: Interactive Matplotlib Application using wxPython ================================================================== .. _wxPython: http://www.wxpython.org/ .. _matplotlib: http://matplotlib.sourceforge.net/ .. _wxmplot: htt...
42.980392
127
0.663777
73cfadcc1cb0870e6b97cd6d0e807fffe2be2e75
3,230
py
Python
test.py
bailingnan/PyTorch-Template
c81b424cdce2a0093425aed94c61a2679641310e
[ "MIT" ]
8
2020-08-05T13:26:15.000Z
2022-02-02T15:36:25.000Z
test.py
bailingnan/Pytorch-Template
c81b424cdce2a0093425aed94c61a2679641310e
[ "MIT" ]
null
null
null
test.py
bailingnan/Pytorch-Template
c81b424cdce2a0093425aed94c61a2679641310e
[ "MIT" ]
10
2020-08-05T13:23:03.000Z
2022-03-12T07:24:34.000Z
""" tricks: 1.torch-optimizer:实现了最新的一些优化器. 2.numba:import numba as nb,纯python或numpy加速,加@nb.njit或@nb.jit(nopython=True) 3.swifter:df.apply()→·df.swifter.apply(),加速pandas 4.cupy:1000万以上数据更快 5.modin:import modin.pandas as mdpd,用mdpd代替pd即可,加速pandas,加载数据和查询数据更快,统计方法pandas更快 """ import os import sys import argparse import ti...
31.666667
82
0.695975
73cfb4eea5645450f9eb349f059cd00b81769144
7,340
py
Python
apps/iiif/annotations/tests/tests.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/iiif/annotations/tests/tests.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/iiif/annotations/tests/tests.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# pylint: disable = missing-function-docstring, invalid-name, line-too-long """Test cases for :class:`apps.iiif.annotations`.""" from django.test import TestCase, Client from django.test import RequestFactory from django.conf import settings from django.core.exceptions import ValidationError from django.core.management...
42.674419
190
0.63842
73cfb92e43b95a077a59a87170759fe028fa18d8
2,926
py
Python
src/python/pants/core_tasks/login.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/core_tasks/login.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/core_tasks/login.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import getpass from colors import cyan, green, red from pants.auth.basic_auth import BasicAuth, BasicAuthCreds, Challenged from pants.base.deprecated import deprecated_conditional from p...
38.5
96
0.681818
73cfc1daf45ca813bb0919832b119d48b3b4f6b8
6,924
py
Python
python_pb2/go/chromium/org/luci/tokenserver/api/oauth_token_grant_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
python_pb2/go/chromium/org/luci/tokenserver/api/oauth_token_grant_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
python_pb2/go/chromium/org/luci/tokenserver/api/oauth_token_grant_pb2.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: go.chromium.org/luci/tokenserver/api/oauth_token_grant.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message f...
43.006211
626
0.765309
73cfe35701bc37bb417ef5ecf6bc444d39fe6642
15,346
py
Python
Lib/site-packages/numpy/core/tests/test_records.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
5
2020-01-16T22:50:31.000Z
2021-07-19T19:16:48.000Z
Lib/site-packages/numpy/core/tests/test_records.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
2
2018-01-22T23:21:36.000Z
2018-01-22T23:31:27.000Z
app/scripts/dxaruco/_naoqios/_numpy_UCS4/core/tests/test_records.py
softbankrobotics-labs/pepper-proactive-mobility
a9f6132ee5afd9bb6583741d9d4c481bd9597c65
[ "BSD-3-Clause" ]
5
2018-05-19T05:08:51.000Z
2021-04-29T16:03:45.000Z
from __future__ import division, absolute_import, print_function import sys import collections import pickle import warnings from os import path import numpy as np from numpy.testing import ( run_module_suite, assert_, assert_equal, assert_array_equal, assert_array_almost_equal, assert_raises, assert_warns ...
38.461153
96
0.527304
73cffba5d864cfe12b31c93486313cdb22085789
663
py
Python
AlgoTalks/Linear DS/simple_text_editor.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
AlgoTalks/Linear DS/simple_text_editor.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
AlgoTalks/Linear DS/simple_text_editor.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
""" Problem link: https://www.hackerrank.com/challenges/simple-text-editor/problem Solution By Keshav Mishra """ from sys import stdin,stdout def input(): return stdin.readline().strip() # def print(s): stdout.write(str(s)+'\n') def solve(): s = '' stack = [] q = int(input()) for i in range(q): ...
22.862069
78
0.485671
73d013de52295cbe543b511968ecb3967210e70a
9,768
py
Python
models/losses.py
mackenzie-warren/SO-Net
141e26c48dfdc0845b287c02402acbd3ab2d09f7
[ "MIT" ]
325
2018-02-28T06:14:05.000Z
2022-03-09T08:39:31.000Z
models/losses.py
mackenzie-warren/SO-Net
141e26c48dfdc0845b287c02402acbd3ab2d09f7
[ "MIT" ]
37
2018-05-11T06:04:41.000Z
2022-03-01T11:36:26.000Z
models/losses.py
mackenzie-warren/SO-Net
141e26c48dfdc0845b287c02402acbd3ab2d09f7
[ "MIT" ]
87
2018-03-13T13:06:34.000Z
2022-02-24T02:35:45.000Z
import torch import torch.nn as nn from torch.autograd import Variable import numpy as np import math import torch.utils.model_zoo as model_zoo import time import torch.nn.functional as F import faiss import json import os import os.path from collections import OrderedDict def robust_norm(var): ''' :param va...
33
131
0.573505
73d03bc60da3484c22e0fbcbd42ac29cb5d95b1e
1,857
py
Python
flayer/loader.py
techhat/grabbr
c188468168b35b8cd9cd0a42022fb603129faf9e
[ "Apache-2.0" ]
null
null
null
flayer/loader.py
techhat/grabbr
c188468168b35b8cd9cd0a42022fb603129faf9e
[ "Apache-2.0" ]
null
null
null
flayer/loader.py
techhat/grabbr
c188468168b35b8cd9cd0a42022fb603129faf9e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Basic functions for Web Flayer ''' # 3rd party from salt.loader import LazyLoader import salt.config def parser(opts, context, urls, dbclient): ''' Load spider modules ''' master_opts = salt.config.master_config('/etc/salt/master') minion_opts = salt.config.minion_confi...
23.2125
63
0.556274
73d08ab42def173bdc57c91eab3cae03e179a653
11,796
py
Python
src/dmf_chip/edit.py
sci-bots/dmf-chip
6fc192235f792046297fcf0250606c8838bb9257
[ "BSD-3-Clause" ]
null
null
null
src/dmf_chip/edit.py
sci-bots/dmf-chip
6fc192235f792046297fcf0250606c8838bb9257
[ "BSD-3-Clause" ]
1
2019-04-11T18:55:01.000Z
2019-04-11T18:55:01.000Z
src/dmf_chip/edit.py
sci-bots/dmf-chip
6fc192235f792046297fcf0250606c8838bb9257
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import functools as ft import warnings from logging_helpers import _L from lxml.etree import QName, Element import lxml.etree import networkx as nx import numpy as np import pandas as pd from .core import ureg from .load import draw, load from six.moves import zip ...
36.747664
81
0.569939
73d0a7cbd2a172dfea06bbf97de646bcd089488d
11,501
py
Python
troveclient/tests/test_management.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
46
2015-01-14T12:26:24.000Z
2021-01-05T12:54:03.000Z
troveclient/tests/test_management.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
3
2015-05-22T19:58:11.000Z
2021-04-30T06:12:21.000Z
troveclient/tests/test_management.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
34
2015-01-21T12:33:53.000Z
2021-10-13T00:29:35.000Z
# Copyright 2011 OpenStack Foundation # Copyright 2013 Rackspace Hosting # Copyright 2013 Hewlett-Packard Development Company, L.P. # 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 co...
39.25256
79
0.644727
73d0f6d768ebbd6cd96a33e44c76bdf57213838e
1,105
py
Python
ote_sdk/ote_sdk/usecases/tasks/interfaces/evaluate_interface.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
775
2019-03-01T02:13:33.000Z
2020-09-07T22:49:15.000Z
ote_sdk/ote_sdk/usecases/tasks/interfaces/evaluate_interface.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
229
2019-02-28T21:37:08.000Z
2020-09-07T15:11:49.000Z
ote_sdk/ote_sdk/usecases/tasks/interfaces/evaluate_interface.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
290
2019-02-28T20:32:11.000Z
2020-09-07T05:51:41.000Z
"""This module contains the interface class for tasks that can compute performance. """ # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # import abc from typing import Optional from ote_sdk.entities.resultset import ResultSetEntity class IEvaluationTask(metaclass=abc.ABCMeta): ...
33.484848
105
0.727602
73d10cc2aefea335d630959e1e064356ef8a0879
408
py
Python
gala-ragdoll/ragdoll/test/__init__.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
gala-ragdoll/ragdoll/test/__init__.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
gala-ragdoll/ragdoll/test/__init__.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
import logging import connexion from flask_testing import TestCase from ragdoll.encoder import JSONEncoder class BaseTestCase(TestCase): def create_app(self): logging.getLogger('connexion.operation').setLevel('ERROR') app = connexion.App(__name__, specification_dir='../swagger/') app.ap...
24
70
0.715686
73d13e75a338c37571078e541d924d7618b35154
777
py
Python
Tests/ne.py
certik/pyquante
f5cae27f519b1c1b70afbebfe8b5c83cb4b3c2a6
[ "DOC" ]
8
2016-08-26T14:57:01.000Z
2019-12-23T07:39:37.000Z
Tests/ne.py
nicodgomez/pyquante
483571110b83cab406d3d4d8f2eba5cae0a2da58
[ "DOC" ]
1
2019-02-03T10:44:02.000Z
2019-02-03T10:44:02.000Z
Tests/ne.py
globulion/pyq-mod
ee32b6685e9c1e915c5c515ef7ab83adc200fa9b
[ "DOC" ]
8
2016-02-23T19:22:11.000Z
2021-08-28T12:12:59.000Z
#!/usr/bin/env python "Neon using Gaussians" import unittest, sciunittest from PyQuante.Ints import getbasis,getints from PyQuante.hartree_fock import rhf from PyQuante.Molecule import Molecule # GAMESS-UK HF Energy # Energy -128.4744065199 energy = -128.474406 # Changed 2003-04-07 to reflect diis name = "Ne" def ...
24.28125
66
0.698842
73d19abf135ba448e7926707cad5a5ce0189b5e4
612
py
Python
topi/python/topi/nn/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
2
2019-07-29T06:26:59.000Z
2019-07-29T06:27:02.000Z
topi/python/topi/nn/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
null
null
null
topi/python/topi/nn/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
1
2019-05-01T16:57:15.000Z
2019-05-01T16:57:15.000Z
# pylint: disable=wildcard-import """Neural network operators""" from __future__ import absolute_import as _abs from .conv2d import * from .deformable_conv2d import * from .depthwise_conv2d import * from .elemwise import * from .dilate import * from .flatten import * from .dense import * from .mapping import * from .p...
25.5
46
0.776144
73d1af7f49eef5b57dcca891444cbda446bcda50
1,320
py
Python
deepsim_envs/test/test_deepsim_envs_import.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim_envs/test/test_deepsim_envs_import.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim_envs/test/test_deepsim_envs_import.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
62.857143
81
0.407576
73d1bd597f14cef91ebf9e4f4742afbc848d82f0
16,576
py
Python
augly/image/utils/bboxes.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/image/utils/bboxes.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/image/utils/bboxes.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. import math from typing import List, Optional, Tuple import augly.image.utils as imutils import numpy as np def crop_bboxes_helper( bbox: Tuple, x1: float, y1: float, x2: float, y2: float, **kwargs ) -> Tuple: """ If part of the b...
36.511013
96
0.628499
73d1d30b7e96b725e0951d89ab317d417ee553ac
7,539
py
Python
xpython/byteop/byteop32.py
rocky/xpython
ce4ed4329cee2af0aab94254276f5a5687dd25f9
[ "MIT" ]
1
2020-04-28T13:18:13.000Z
2020-04-28T13:18:13.000Z
xpython/byteop/byteop32.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
xpython/byteop/byteop32.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Byte Interpreter operations for Python 3.2 """ from xpython.byteop.byteop24 import ByteOp24, Version_info from xpython.byteop.byteop27 import ByteOp27 from xpython.pyobj import Function # FIXME: investigate does "del" remove an attribute here? # have an effect on what another module sees as ...
35.9
142
0.605253
73d1ef3fa74c9926e2fcdbb0ff708bbb12e37e53
1,507
py
Python
fairseq/scoring/__init__.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
fairseq/scoring/__init__.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
fairseq/scoring/__init__.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "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 importlib import os from abc import ABC, abstractmethod from fairseq import registry from omegaconf import DictConfig class BaseSco...
25.116667
87
0.669542
73d22b3adcf2e1db2059fdb0355f71672b6861a1
1,742
py
Python
classifiers/documents/categories/classifier.py
topicaxis/trained-models
34682538fc4b4f8823df1bdbabd6c0bc086b2695
[ "MIT" ]
1
2020-01-07T00:03:16.000Z
2020-01-07T00:03:16.000Z
classifiers/documents/categories/classifier.py
topicaxis/trained-models
34682538fc4b4f8823df1bdbabd6c0bc086b2695
[ "MIT" ]
null
null
null
classifiers/documents/categories/classifier.py
topicaxis/trained-models
34682538fc4b4f8823df1bdbabd6c0bc086b2695
[ "MIT" ]
null
null
null
from pkg_resources import resource_filename import joblib def create_category_classifier(): """Create a category classifier using the default model :rtype CategoryClassifier :return: the category classifier """ binarizer_file = resource_filename( "classifiers", "data/document_classifier/...
30.561404
79
0.686567
73d22f899d27f33c69947c954e88608e2aa0a57d
1,055
py
Python
299_Bulls-and-Cows.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
299_Bulls-and-Cows.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
299_Bulls-and-Cows.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
class Solution: def getHint(self, secret, guess): """ :type secret: str :type guess: str :rtype: str """ secret_dic = {} guess_dic ={} A = 0 B = 0 for i in range(len(secret)): if secret[i] in secret_dic: ...
27.051282
72
0.411374
73d22fb84ac41c1e3530224d514ddb9e8930dbed
6,048
py
Python
tf_agents/drivers/dynamic_step_driver.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/drivers/dynamic_step_driver.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/drivers/dynamic_step_driver.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
37.333333
80
0.705026
73d23652f93f819a26ab2feeb96d6c98857c0208
2,539
py
Python
setup.py
thombashi/elasticsearch-faker
a6b33bd82750181abf1671fc7046ceea21ea287c
[ "MIT" ]
1
2020-12-15T18:11:46.000Z
2020-12-15T18:11:46.000Z
setup.py
thombashi/elasticsearch-faker
a6b33bd82750181abf1671fc7046ceea21ea287c
[ "MIT" ]
1
2022-01-27T18:04:04.000Z
2022-03-20T12:19:46.000Z
setup.py
thombashi/elasticsearch-faker
a6b33bd82750181abf1671fc7046ceea21ea287c
[ "MIT" ]
null
null
null
import os.path from typing import Dict import setuptools MODULE_NAME = "elasticsearch-faker" REPOSITORY_URL = f"https://github.com/thombashi/{MODULE_NAME:s}" REQUIREMENT_DIR = "requirements" ENCODING = "utf8" pkg_info: Dict[str, str] = {} def get_release_command_class() -> Dict[str, setuptools.Command]: try: ...
30.590361
93
0.660496
73d24011dadbffdc56287e227009660cecbbbc1b
933
py
Python
graph/urls.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
graph/urls.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
graph/urls.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import url from . import views urlpatterns = [ url('^aklhakjfhljhxliuyasfxjh/place=(?P<place>.*)$', views.index_m, name='index_base_m_o'), url('^aklhakjfhljhxliuyasfxjh', views.index_m, name='index_base_m'), url('^aklhlkjlkfzkerxsfxjh', views.sparks, n...
42.409091
96
0.658092
73d24caf81a95487826a1a40d7edb679c2ba7a33
878
py
Python
backend.py
vulcan-coalition/pyjs
cfafea13269ac04988478e107941b8c9f3147af4
[ "Apache-2.0" ]
null
null
null
backend.py
vulcan-coalition/pyjs
cfafea13269ac04988478e107941b8c9f3147af4
[ "Apache-2.0" ]
null
null
null
backend.py
vulcan-coalition/pyjs
cfafea13269ac04988478e107941b8c9f3147af4
[ "Apache-2.0" ]
null
null
null
import pyjs import client all_clients = set() @pyjs.Expose def broadcast(client_obj, message: str, p1: int = 0, p2=None): 'This is the broadcast function.' print("receiving..", message, p1, p2) all_clients.add(client_obj) for c in all_clients: res = c.incoming_message(str(client_obj.client_i...
24.388889
77
0.656036
73d2596b4245dbf7c3cbf09074eec28721998a03
6,033
py
Python
softlearning/policies/gaussian_policy_test.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
920
2018-12-11T16:22:23.000Z
2022-03-28T08:17:07.000Z
softlearning/policies/gaussian_policy_test.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
133
2018-12-09T08:08:33.000Z
2022-02-28T12:43:14.000Z
softlearning/policies/gaussian_policy_test.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
241
2018-12-03T21:35:24.000Z
2022-03-20T06:24:45.000Z
import pickle from collections import OrderedDict import numpy as np import pytest import tensorflow as tf import tree from softlearning import policies from softlearning.environments.utils import get_environment from softlearning.policies.gaussian_policy import FeedforwardGaussianPolicy from softlearning.samplers im...
35.698225
78
0.638654
73d27a004f4d1690508f48d45fdebf9629b34ee0
5,589
py
Python
s3cortxutils/s3cipher/s3cipher/cortx_s3_cipher.py
SeagateChaDeepak/cortx-s3server
2af49128d467187a7e566fa939f90d2e727d0c8f
[ "Apache-2.0" ]
null
null
null
s3cortxutils/s3cipher/s3cipher/cortx_s3_cipher.py
SeagateChaDeepak/cortx-s3server
2af49128d467187a7e566fa939f90d2e727d0c8f
[ "Apache-2.0" ]
null
null
null
s3cortxutils/s3cipher/s3cipher/cortx_s3_cipher.py
SeagateChaDeepak/cortx-s3server
2af49128d467187a7e566fa939f90d2e727d0c8f
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
37.26
152
0.620147
73d28a412b43efc41d2a9f393384a189366cb2da
3,350
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
48.550725
181
0.698806
73d2999ad34ce4574e2169026259c50903a84ca6
828
py
Python
var/spack/repos/builtin/packages/py-sphinx-limestone-theme/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/py-sphinx-limestone-theme/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-sphinx-limestone-theme/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PySphinxLimestoneTheme(PythonPackage): """Sphinx Limestone Theme""" homepage = "https...
33.12
94
0.704106
73d29ff52e8240e1025ea04a57df92d946e1fbea
3,706
py
Python
blender_scripts/renderer_option.py
gizatt/blender_server
fc20b7ee53b3c8d8d141653128dada965a15a127
[ "MIT" ]
26
2019-03-11T21:09:56.000Z
2022-02-28T10:16:07.000Z
blender_scripts/renderer_option.py
gizatt/blender_server
fc20b7ee53b3c8d8d141653128dada965a15a127
[ "MIT" ]
8
2019-03-11T21:53:59.000Z
2021-09-28T20:49:04.000Z
blender_scripts/renderer_option.py
gizatt/blender_server
fc20b7ee53b3c8d8d141653128dada965a15a127
[ "MIT" ]
3
2019-10-09T23:31:34.000Z
2020-08-05T02:27:01.000Z
import attr import bpy from blender_scripts.utils import is_old_api def get_bpyobj_by_name(name_key: str): """ Using the name key to retrieve the object :param name_key: The key assigned using import_obj_model :return: bpy.data.objects[name_key] """ obj_collect = bpy.context.scene.objects ...
31.675214
90
0.726659
73d2a983708817324d0b56ccedaced47959a0a35
784
py
Python
python/tree/0108_convert_sorted_array_to_binary_search_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/0108_convert_sorted_array_to_binary_search_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/0108_convert_sorted_array_to_binary_search_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def sortedArrayToBST(self, nums): """ :type nums: List[int] :rtype: TreeNode """ if not nums: ...
24.5
58
0.591837