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
21c4f64781c652912414921bf7b6ad1b12243c0a
2,073
py
Python
alipay/aop/api/response/AlipayOpenMiniInnerappServiceQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayOpenMiniInnerappServiceQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayOpenMiniInnerappServiceQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.MiniAppServiceInfo import MiniAppServiceInfo class AlipayOpenMiniInnerappServiceQueryResponse(AlipayResponse): def __init__(self): super(AlipayOpenMiniIn...
32.904762
115
0.679209
21c522e0301aab1fd9f8912df9e8d3bbff2bebe6
745
py
Python
alipay/aop/api/response/AlipaySecurityDataAlibabaSecuritydataSendResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipaySecurityDataAlibabaSecuritydataSendResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipaySecurityDataAlibabaSecuritydataSendResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipaySecurityDataAlibabaSecuritydataSendResponse(AlipayResponse): def __init__(self): super(AlipaySecurityDataAlibabaSecuritydataSendResponse, self).__init__() self....
28.653846
122
0.726174
21c5237898a4c98701c99b931a13e4ed53aa7257
12,036
py
Python
project5/gru/gruDET.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project5/gru/gruDET.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project5/gru/gruDET.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import time import h5py import matplotlib.pyplot as plt # from sklearn.metrics import confusion_matrix # import itertools # from copy import deepcopy # import os # import os.path from collections import OrderedDict import pickle # import cPickle as pickle # from tensorflow....
36.472727
151
0.567298
21c53eefe800d3e5b8ff55adfa17e7fa8ff9c1c0
21,051
py
Python
odfdo/const.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
18
2018-04-19T08:30:48.000Z
2022-02-14T11:00:27.000Z
odfdo/const.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
15
2018-04-22T00:52:41.000Z
2021-07-05T10:16:38.000Z
odfdo/const.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
6
2018-04-22T00:14:12.000Z
2021-12-06T01:42:07.000Z
# Copyright 2018-2020 Jérôme Dumonteil # Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend. # # 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/LI...
29.733051
86
0.619733
21c54878eea70d09cbf4d7ae76e076267c21450a
8,051
py
Python
core/tests/test_serializers.py
DerrazSofiane/DjangoREST_To-Do_App
5d2743ff8f20ff08d9e98e88a4ec35c7c29d9879
[ "CC0-1.0" ]
null
null
null
core/tests/test_serializers.py
DerrazSofiane/DjangoREST_To-Do_App
5d2743ff8f20ff08d9e98e88a4ec35c7c29d9879
[ "CC0-1.0" ]
8
2021-03-19T00:35:00.000Z
2022-03-12T00:18:20.000Z
core/tests/test_serializers.py
DerrazSofiane/DjangoREST_To-Do_App
5d2743ff8f20ff08d9e98e88a4ec35c7c29d9879
[ "CC0-1.0" ]
null
null
null
import os from django.contrib.auth.models import User from django.core.files import File from django.test import TestCase from core.models import TodoGroupModel, UserProfileModel, TodoModel from core.serializers import UserSerializer, TodoGroupSerializer, TodoItemSerializer, TodoAttachmentSerializer class TestUsers...
37.273148
110
0.622656
21c54e6915a282476d4b7a45098914c5052b7ad1
911
py
Python
zeeguu/api/api/__init__.py
zeeguu-ecosystem/Zeeguu-API
4c4e614003ae5aeb4c4e802cc84602894755d27a
[ "MIT" ]
8
2018-02-06T15:47:55.000Z
2021-05-26T15:24:49.000Z
zeeguu/api/api/__init__.py
zeeguu-ecosystem/Zeeguu-API
4c4e614003ae5aeb4c4e802cc84602894755d27a
[ "MIT" ]
57
2018-02-02T19:54:38.000Z
2021-07-15T15:45:15.000Z
zeeguu/api/api/__init__.py
zeeguu-ecosystem/Zeeguu-API
4c4e614003ae5aeb4c4e802cc84602894755d27a
[ "MIT" ]
13
2017-10-12T09:05:19.000Z
2020-02-19T09:38:01.000Z
import flask import zeeguu.core from .utils.route_wrappers import with_session from .utils.json_result import json_result api = flask.Blueprint("api", __name__) db_session = zeeguu.core.db.session print("loading api endpionts...") # These files have to be imported after this line; # They enrich the api object from ...
24.621622
50
0.796926
21c560820e3e34580132f319e8e9b95218362210
1,672
py
Python
tests/test_layers/test_3d/test_3d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
1
2021-11-02T14:00:27.000Z
2021-11-02T14:00:27.000Z
tests/test_layers/test_3d/test_3d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
tests/test_layers/test_3d/test_3d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- from colossalai.initialize import init_dist from test_layer import * from test_operation import * CONFIG = dict(parallel=dict(pipeline=1, tensor=dict(mode='3d', size=8)), seed=0) def check_operations(): check_AB() check_ABT() check_ATB() ...
28.338983
107
0.704545
21c56842fa48edc404535f77ee1a5cdf0999f3a0
5,468
py
Python
backend/tests/baserow/ws/test_ws_signals.py
ericderace/baserow
7b35e81f75166d914d07ef4ad0c30c625b6bb396
[ "MIT" ]
1
2021-04-13T16:27:58.000Z
2021-04-13T16:27:58.000Z
backend/tests/baserow/ws/test_ws_signals.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
6
2021-04-08T22:03:06.000Z
2022-01-13T03:38:17.000Z
backend/tests/baserow/ws/test_ws_signals.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
null
null
null
import pytest from unittest.mock import patch from baserow.core.handler import CoreHandler @pytest.mark.django_db(transaction=True) @patch('baserow.ws.signals.broadcast_to_group') def test_group_created(mock_broadcast_to_group, data_fixture): user = data_fixture.create_user() group_user = CoreHandler().crea...
40.80597
86
0.733358
21c58e28067f9673c8b4ddaba9798e3d5af0df10
1,184
py
Python
tbonlineproject/archive/urls.py
nathangeffen/tbonline3
1b8a3af8d2dc1ee8083ca6638d025e94bd98f253
[ "MIT" ]
null
null
null
tbonlineproject/archive/urls.py
nathangeffen/tbonline3
1b8a3af8d2dc1ee8083ca6638d025e94bd98f253
[ "MIT" ]
3
2021-06-08T23:57:13.000Z
2022-01-13T03:42:01.000Z
tbonlineproject/archive/urls.py
nathangeffen/tbonline-2
0d5869197e66a0057fa07cb99f21dde7f5b47c30
[ "MIT" ]
null
null
null
from django.conf.urls.defaults import * from django.views.generic import DetailView, ListView from archive.models import Catalogue, Document urlpatterns = patterns('archive.views', url(r'^$', ListView.as_view( context_object_name="catalogues", queryset=Catalogu...
34.823529
86
0.569257
21c5ad8e5fb1d5f1d0d59175133fc50e5a45f95f
3,340
py
Python
utils/gdebug.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
3
2021-11-09T09:43:21.000Z
2021-12-16T18:15:43.000Z
utils/gdebug.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
null
null
null
utils/gdebug.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
2
2022-03-10T11:24:46.000Z
2022-03-25T06:39:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # created: 2015-03-11 import logging import threading class ClassLogger(object): def __init__(self, logger): if isinstance(logger, str): self.logger = logging.getLogger(logger) else: self.logger = logger def multi_thread_func_...
30.925926
79
0.454192
21c5afeb7041bf42592f4319bb36041ed66bf27f
26
py
Python
btd6_memory_info/generated/UnityEngine/ResourceManagement/AsyncOperations/GroupOperation/group_operation.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/ResourceManagement/AsyncOperations/GroupOperation/group_operation.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/ResourceManagement/AsyncOperations/GroupOperation/group_operation.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class GroupOperation: pass
26
26
0.884615
21c5c2ceb5a374b520e7a434571ebf8a07ebd67e
1,380
py
Python
vingd/exceptions.py
vingd/vingd-api-python
7548a49973a472f7277c8ef847563faa7b6f3706
[ "MIT" ]
null
null
null
vingd/exceptions.py
vingd/vingd-api-python
7548a49973a472f7277c8ef847563faa7b6f3706
[ "MIT" ]
null
null
null
vingd/exceptions.py
vingd/vingd-api-python
7548a49973a472f7277c8ef847563faa7b6f3706
[ "MIT" ]
null
null
null
from .response import Codes class GeneralException(Exception): """General exception signifies that an Vingd error has been caught, but reasons/details were not understood/propagated well enough.""" def __init__(self, msg, context="Error", code=Codes.CONFLICT): self.msg = msg self.code = cod...
41.818182
88
0.702174
21c5f78e75f4704c67be2461808faba6d4db3b52
2,736
py
Python
examples/legacy/set_keypair_2048.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
3
2020-10-05T14:34:46.000Z
2020-11-27T07:44:57.000Z
examples/legacy/set_keypair_2048.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2022-02-15T16:01:12.000Z
2022-02-15T16:01:12.000Z
examples/legacy/set_keypair_2048.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2021-03-04T08:16:07.000Z
2021-03-04T08:16:07.000Z
# ---------------------------------------------------------------------------# # DRACOON API Python examples # Update user keypair # Requires dracoon package # Author: Octavio Simone, 21.07.2021 # ---------------------------------------------------------------------------# from dracoon.crypto_models import UserKeyPair...
35.076923
122
0.730263
21c634903aeab1d368da0a18d6aaed8acac4ce5b
1,825
py
Python
osiris/aws/glue/utils.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
4
2020-04-23T18:43:27.000Z
2022-02-22T03:57:06.000Z
osiris/aws/glue/utils.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
1
2021-06-02T00:47:12.000Z
2021-06-02T00:47:12.000Z
osiris/aws/glue/utils.py
skadyan/aws-glue-python-kickstart
5e3228a0793188d248f801a2b5a522210048ccde
[ "Apache-2.0" ]
null
null
null
from argparse import ArgumentParser from osiris.aws.glue import Job from osiris.base.logutils import get_logger _log = get_logger(__name__) class GlueArgumentError(Exception): def __init__(self, msg: str): self.msg = msg class GlueArgumentParser(ArgumentParser): def __init__(self, *args, **kwargs)...
39.673913
117
0.678904
21c6362a151f3f0bcc61e87d4bb29d24bc2e053d
4,900
py
Python
dataprep/clean/clean_fr_nif.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/clean_fr_nif.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/clean_fr_nif.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Clean and validate a DataFrame column containing French tax identification numbers (NIFs). """ # pylint: disable=too-many-lines, too-many-arguments, too-many-branches from typing import Any, Union from operator import itemgetter import dask.dataframe as dd import numpy as np import pandas as pd from stdnum.fr imp...
30.246914
99
0.611837
21c63d8e486c98278605180efa8506e7b8104c56
2,866
py
Python
snf/layers/convexp/functional.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
66
2020-11-17T12:06:52.000Z
2022-02-05T23:58:15.000Z
snf/layers/convexp/functional.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
1
2021-07-26T19:29:32.000Z
2021-07-27T16:23:03.000Z
snf/layers/convexp/functional.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
8
2020-11-17T17:42:51.000Z
2022-03-14T14:12:37.000Z
import torch import numpy as np import torch.nn.functional as F def matrix_log(B, terms=10): assert B.size(0) == B.size(1) I = torch.eye(B.size(0)) B_min_I = B - I # for k = 1. product = B_min_I result = B_min_I is_minus = -1 for k in range(2, terms): # Reweighing with k ter...
22.046154
79
0.575017
21c653c8197198029cfc1e08f71596e882d97703
482
py
Python
alipay/aop/api/response/AlipayCommerceOperationPoiVendingUploadResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayCommerceOperationPoiVendingUploadResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayCommerceOperationPoiVendingUploadResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayCommerceOperationPoiVendingUploadResponse(AlipayResponse): def __init__(self): super(AlipayCommerceOperationPoiVendingUploadResponse, self).__init__() def parse_r...
30.125
120
0.798755
21c65e21eaebea14a545f7fc977e90bb90c13afd
3,106
py
Python
scripts/python/blend_sat/run_cloud_mask_byte.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/blend_sat/run_cloud_mask_byte.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/blend_sat/run_cloud_mask_byte.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python # *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* # ** Copyright UCAR (c) 1992 - 2004 # ** University Corporation for Atmospheric Research(UCAR) # ** National Center for Atmospheric Research(NCAR) # ** Research Applications Program(RAP) # ** P.O.Box 3000, Boulder, Colorado, 80307-3000, ...
36.116279
297
0.656149
21c67f3b0cc3d068ce4164539044c5042d582835
7,644
py
Python
lib/tests/streamlit/dataframe_styling_test.py
deepchatterjeevns/streamlit
631d42877bd16bdec14ee124c936917b430f6ce4
[ "Apache-2.0" ]
4
2019-11-10T13:50:56.000Z
2020-01-07T21:02:29.000Z
lib/tests/streamlit/dataframe_styling_test.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
4
2021-05-09T11:42:18.000Z
2022-02-27T10:59:36.000Z
lib/tests/streamlit/dataframe_styling_test.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
1
2019-11-26T09:37:57.000Z
2019-11-26T09:37:57.000Z
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
35.06422
86
0.641156
21c689d9cda4450466ae5fe39cf7dbe3d5dc3f50
28,970
py
Python
sdk/storage/azure-storage-blob/azure/storage/blob/_shared/policies.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-storage-blob/azure/storage/blob/_shared/policies.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/azure/storage/blob/_shared/policies.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import ba...
44.027356
119
0.634035
21c6a861b66d683f76ddc31168235d1321db4e37
7,761
py
Python
st2api/tests/unit/controllers/v1/test_triggerinstances.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2api/tests/unit/controllers/v1/test_triggerinstances.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2api/tests/unit/controllers/v1/test_triggerinstances.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
41.502674
96
0.653524
21c6b2fea3c38363b31aa65659a6ae9b84d1346e
13,339
py
Python
beetsplug/listenmanager.py
agrausem/beets-listenmanager
3bdbc4ace3d74ec2bfe58b935651364f2403c103
[ "MIT" ]
null
null
null
beetsplug/listenmanager.py
agrausem/beets-listenmanager
3bdbc4ace3d74ec2bfe58b935651364f2403c103
[ "MIT" ]
null
null
null
beetsplug/listenmanager.py
agrausem/beets-listenmanager
3bdbc4ace3d74ec2bfe58b935651364f2403c103
[ "MIT" ]
null
null
null
from collections import namedtuple import os.path from datetime import date from functools import partial, wraps import re from beets.dbcore import types from beets.library import Album, parse_query_string from beets.plugins import BeetsPlugin from beets import config from beets.mediafile import ( MediaField, MP3De...
32.613692
78
0.597721
21c6b6ab511df490aac29fea2de26fac2c5668ee
2,023
py
Python
modules/tools/prediction/multiple_gpu_estimator/preprocessing.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/prediction/multiple_gpu_estimator/preprocessing.py
daniel-s-ingram/apollo
039f0181962d4f2b13c0619374e9b5fc4c00ca93
[ "Apache-2.0" ]
3
2020-02-24T14:19:55.000Z
2022-02-10T19:49:29.000Z
modules/tools/prediction/multiple_gpu_estimator/preprocessing.py
daniel-s-ingram/apollo
039f0181962d4f2b13c0619374e9b5fc4c00ca93
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
import tensorflow as tf import numpy as np from glob import glob feature_dim = 62 train_data = np.zeros([20000000, feature_dim+1],dtype=np.float32) test_data = np.zeros([2000000, feature_dim+1],dtype=np.float32) eval_data = np.zeros([2000000, feature_dim+1],dtype=np.float32) train_idx, test_idx, eval_idx = 0,0,0 filen...
36.781818
122
0.653979
21c6bbe9d352deeef8f00423190016d6f7a92c94
7,937
py
Python
python/cuml/dask/decomposition/pca.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
1
2021-04-06T14:24:25.000Z
2021-04-06T14:24:25.000Z
python/cuml/dask/decomposition/pca.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
1
2020-03-05T02:25:50.000Z
2020-03-05T02:25:50.000Z
python/cuml/dask/decomposition/pca.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.070833
88
0.616606
21c6dd6e359cc1598b6e907ffbf1d6bb7974934f
4,132
py
Python
code/extension_three.py
chickert/autonomous_vehicles
3061968524f1c507f409ee9aeaf8625d1c1f725c
[ "MIT" ]
null
null
null
code/extension_three.py
chickert/autonomous_vehicles
3061968524f1c507f409ee9aeaf8625d1c1f725c
[ "MIT" ]
null
null
null
code/extension_three.py
chickert/autonomous_vehicles
3061968524f1c507f409ee9aeaf8625d1c1f725c
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from structures import RingRoad def extension_three(max_sigma_pct, granularity, show_fig=True): """ Runs an experiment investigating the role of sensor noise on AV and system performance """ max_sigma_pct = max_sigma_pct / 100 granularity = granul...
44.430108
149
0.681026
21c6e6b14252eaa35f90affc2b90d50d756a298f
358
py
Python
scripts/raster-processing/raster_indexing/indexRasters.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
10
2018-11-07T14:39:15.000Z
2022-03-30T11:27:27.000Z
scripts/raster-processing/raster_indexing/indexRasters.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
1
2019-09-24T07:22:33.000Z
2019-09-24T07:22:33.000Z
scripts/raster-processing/raster_indexing/indexRasters.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
5
2018-08-02T21:25:30.000Z
2020-08-08T18:52:50.000Z
import os import argparse def index_raster_directory(directory): command = "gdaltindex index.shp " + directory + "/*.tif" os.system(command) if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("directory") args = parser.parse_args() directory = args.directory ...
19.888889
60
0.709497
21c6f28f578d4eeea6284a9777fb28b1ae4f2b98
4,398
py
Python
frameworks/js-bindings/cocos2d-x/tools/cocos2d-console/plugins/project_compile/build_web/__init__.py
zktc5418/Sample_JSB
fabaadb94325abd62bf029f732d4b0f19ab26666
[ "MIT" ]
22
2015-04-09T06:45:38.000Z
2017-10-16T15:45:30.000Z
frameworks/js-bindings/cocos2d-x/tools/cocos2d-console/plugins/project_compile/build_web/__init__.py
zktc5418/Sample_JSB
fabaadb94325abd62bf029f732d4b0f19ab26666
[ "MIT" ]
1
2016-09-20T10:54:53.000Z
2016-09-20T10:54:53.000Z
frameworks/js-bindings/cocos2d-x/tools/cocos2d-console/plugins/project_compile/build_web/__init__.py
zktc5418/Sample_JSB
fabaadb94325abd62bf029f732d4b0f19ab26666
[ "MIT" ]
32
2015-01-20T07:58:44.000Z
2018-08-03T15:12:47.000Z
#!/usr/bin/python import os import json import cocos import subprocess JDK_1_7 = "1.7" JDK_1_6 = "1.6" def check_jdk_version(): commands = [ "java", "-version" ] child = subprocess.Popen(commands, stderr=subprocess.PIPE) jdk_version = None for line in child.stderr: ...
31.414286
141
0.653251
21c6f404ae8430f8e4c70ee043a7d9d3771ac6bf
1,946
py
Python
config.py
MarvinCS/DNS_Sniffer
aa40dde0f1e4d10588bb94e117e2d5c4376970a2
[ "MIT" ]
6
2018-09-18T17:54:55.000Z
2020-04-11T22:46:30.000Z
config.py
MarvinCS/DNS_Sniffer
aa40dde0f1e4d10588bb94e117e2d5c4376970a2
[ "MIT" ]
null
null
null
config.py
MarvinCS/DNS_Sniffer
aa40dde0f1e4d10588bb94e117e2d5c4376970a2
[ "MIT" ]
null
null
null
import json import os class Config: # Parameters from config.json subdomains = False db_name = "dns.db" project_path = os.path.dirname(os.path.abspath(__file__)) channel = None interface = None update_interval = None excluded_domains = [] # Runtime-parameters _log_window = Non...
36.716981
108
0.627441
21c71d8bd08c64858fcad234d88187a6fc20ef0a
7,671
py
Python
test/functional/auxpow_mining.py
luisriverag/namecoin-core
f2c234926bdb151338732df7ace37a105c14e776
[ "MIT" ]
9
2020-05-20T06:25:09.000Z
2022-02-07T08:39:39.000Z
test/functional/auxpow_mining.py
Penny-Admixture/namecoin-core
c750aba537f6d10a3a565814f53f4999577142ab
[ "MIT" ]
2
2020-08-25T17:31:56.000Z
2020-10-19T01:03:44.000Z
test/functional/auxpow_mining.py
Penny-Admixture/namecoin-core
c750aba537f6d10a3a565814f53f4999577142ab
[ "MIT" ]
7
2020-06-17T01:55:37.000Z
2022-01-28T02:05:54.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2021 Daniel Kraft # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test the merge-mining RPC interface: # getauxblock, createauxblock, submitauxblock from test_framework.test_framework...
36.528571
78
0.679051
21c7602a225c5f7e7204b9aa1710f63d196195f0
9,372
py
Python
tests/inspiration_skeleton.py
shuntingyard/flowproc
6d6f32b021f5f71d8fa177c9a891d2080364856e
[ "MIT" ]
null
null
null
tests/inspiration_skeleton.py
shuntingyard/flowproc
6d6f32b021f5f71d8fa177c9a891d2080364856e
[ "MIT" ]
null
null
null
tests/inspiration_skeleton.py
shuntingyard/flowproc
6d6f32b021f5f71d8fa177c9a891d2080364856e
[ "MIT" ]
1
2020-05-19T14:36:23.000Z
2020-05-19T14:36:23.000Z
# -*- coding: utf-8 -*- """ This file contains tests for the softflowd UDP collector saved in main.py The test packets (defined below as hex streams) were extracted from a "real" softflowd export based on a sample PCAP capture file. They consist of one export with the templates and three without. Two tests are defined...
55.455621
1,015
0.794067
21c7a45dcc1a1b9870611c1f1768d76a1be81b2a
3,624
py
Python
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/login_url.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/login_url.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/login_url.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
40.266667
122
0.665011
21c7f17833c4d17569edf2e2d5d45c0c6cf4828e
7,734
py
Python
tests/test_08_addons/test_811_drawing_frontend.py
George-Jiang/ezdxf
bd51f8a9d45ae388009a9d0d7e2cdc9e7bb01ca2
[ "MIT" ]
null
null
null
tests/test_08_addons/test_811_drawing_frontend.py
George-Jiang/ezdxf
bd51f8a9d45ae388009a9d0d7e2cdc9e7bb01ca2
[ "MIT" ]
null
null
null
tests/test_08_addons/test_811_drawing_frontend.py
George-Jiang/ezdxf
bd51f8a9d45ae388009a9d0d7e2cdc9e7bb01ca2
[ "MIT" ]
null
null
null
# Copyright (c) 2020, Manfred Moitzi # License: MIT License from typing import Optional, Tuple, List import pytest import ezdxf from ezdxf.addons.drawing import Frontend, RenderContext, Properties from ezdxf.addons.drawing.backend import Backend, Radians from ezdxf.addons.drawing.text import FontMeasurements from ezdxf...
29.184906
119
0.644557
21c808eb8ef35355b952d21c2db19b6c2753bb38
7,454
py
Python
rest/bottle_plugins/bii_user_trace_bottle_plugin.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
27
2015-04-15T09:40:26.000Z
2020-04-29T06:24:06.000Z
rest/bottle_plugins/bii_user_trace_bottle_plugin.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
2
2015-06-03T20:19:51.000Z
2015-06-30T20:40:14.000Z
rest/bottle_plugins/bii_user_trace_bottle_plugin.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
10
2015-08-06T08:17:28.000Z
2020-09-29T17:02:57.000Z
from biicode.common.utils.bii_logging import logger from biicode.server.rest.bottle_plugins.util import get_user_ip from biicode.server.background.model.user_trace import UserTracedAction from biicode.server.conf import (BII_MIXPANEL_TOKEN, BII_API_MIXPANEL_EVENT_NAME, BII_GA_API_KEY, B...
50.364865
102
0.615374
21c810dcc5ff03900dd18b38019c3c20b6f709ce
1,821
py
Python
About.py
Ilphrin/TuxleTriad
6d1c819374bbb13dd65311cb739e286cec7c04c7
[ "MIT" ]
1
2015-06-15T15:29:26.000Z
2015-06-15T15:29:26.000Z
About.py
Ilphrin/TuxleTriad
6d1c819374bbb13dd65311cb739e286cec7c04c7
[ "MIT" ]
null
null
null
About.py
Ilphrin/TuxleTriad
6d1c819374bbb13dd65311cb739e286cec7c04c7
[ "MIT" ]
null
null
null
# coding: utf-8 import os import sys import pygame from pygame.locals import * from Text import Text class About(): def __init__(self, name, boss): self.file = name + ".txt" self.boss = boss directory = os.path.join(os.getcwd(), "cards/about/"+self.file) fileObject = open(dir...
37.163265
79
0.622735
21c81e0f7d8b1da6f46f96becb867f9b723286f5
7,464
py
Python
src/olympia/reviewers/migrations/0001_initial.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/reviewers/migrations/0001_initial.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/reviewers/migrations/0001_initial.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.5 on 2019-09-12 13:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import django_extensions.db.fields.json import olympia.amo.fields import olympia.amo.models class Migration(migrations.Migration): ...
60.193548
979
0.61589
21c827ffd6b56c103492489a5f7d48a39027656f
1,512
py
Python
premade_modules/2.78/2.78c/bpy/ops/__init__.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78c/bpy/ops/__init__.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78c/bpy/ops/__init__.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
from . import gpencil from . import group from . import action from . import armature from . import lamp from . import nla from . import lattice from . import safe_areas from . import cloth from . import uv from . import boid from . import outliner from . import mask from . import info from . import mesh from . import ...
21
26
0.765212
21c84170170f1c081c67fc82113f115e65fe0306
438
py
Python
src/packages/renameselected/setup.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
88
2020-03-19T20:24:08.000Z
2022-03-23T23:13:54.000Z
src/packages/renameselected/setup.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
5
2020-04-09T19:56:47.000Z
2021-11-12T20:02:18.000Z
src/packages/renameselected/setup.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
22
2020-03-19T19:24:36.000Z
2022-03-18T21:55:19.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="renameselected-autodesk", version="0.0.1", description="A sample 3ds Max Python Package", long_description=long_description, long_description_content_type="text/markdown", packages=set...
27.375
62
0.716895
21c84a4c5ca3990de53bab5a1e6417a72d9d4d97
2,161
py
Python
examples/pnlss/multisine.py
pawsen/pyvib
4215ced8921cf45cb903377a460f0d494b7a271e
[ "BSD-2-Clause" ]
6
2019-05-14T15:42:39.000Z
2021-11-29T13:20:49.000Z
examples/pnlss/multisine.py
pawsen/vib
366b61f3066de6486438b9b803e510107633e40a
[ "BSD-2-Clause" ]
1
2020-04-08T11:41:24.000Z
2020-04-08T11:41:24.000Z
examples/pnlss/multisine.py
pawsen/vib
366b61f3066de6486438b9b803e510107633e40a
[ "BSD-2-Clause" ]
2
2020-12-03T23:30:45.000Z
2022-01-11T04:32:27.000Z
import numpy as np from scipy import signal import matplotlib.pyplot as plt from pyvib.forcing import multisine from pyvib.common import db def plot(sig): plt.figure() for i, u in enumerate(sig): U = np.fft.fft(u) plt.subplot(2,2,1+i) plt.plot(db(U),'+') plt.xlabel('Frequency l...
33.765625
84
0.695974
21c84fb31815988f9e20e5788a47da6eaaf69d58
726
py
Python
office365/sharepoint/portal/SPSiteCreationRequest.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/sharepoint/portal/SPSiteCreationRequest.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/sharepoint/portal/SPSiteCreationRequest.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
from office365.runtime.client_value import ClientValue class SPSiteCreationRequest(ClientValue): def __init__(self, title, url, owner=None): self.Title = title self.Url = url self.WebTemplate = "SITEPAGEPUBLISHING#0" self.Owner = owner self.Lcid = 1033 self.ShareBy...
33
76
0.684573
21c86be85b94aeda5c5a3cffcedf8b0f2d0a85c2
2,808
py
Python
data_scan.py
travisbyr/SDV602-Scanning
a47b32fa689db5221aad02d14eff869988142f71
[ "MIT" ]
null
null
null
data_scan.py
travisbyr/SDV602-Scanning
a47b32fa689db5221aad02d14eff869988142f71
[ "MIT" ]
null
null
null
data_scan.py
travisbyr/SDV602-Scanning
a47b32fa689db5221aad02d14eff869988142f71
[ "MIT" ]
null
null
null
""" Scans a csv file redirected into the script "--header" indicates the first row is a header row """ import sys as sys import operator import functools import argparse def scan(has_header=False): result = [] values = [] do_header = has_header header_names = {} try: for aline in sys.stdi...
26.490566
71
0.590456
21c87c64ea3bbeef57af750c55883ae70c6c6d93
34,886
py
Python
PaddleNLP/neural_machine_translation/transformer/transformer.py
yangapku/models
b50bc7b77288bcdaed676e70353310786c658d6e
[ "Apache-2.0" ]
1
2020-02-22T08:29:15.000Z
2020-02-22T08:29:15.000Z
PaddleNLP/neural_machine_translation/transformer/transformer.py
yangapku/models
b50bc7b77288bcdaed676e70353310786c658d6e
[ "Apache-2.0" ]
null
null
null
PaddleNLP/neural_machine_translation/transformer/transformer.py
yangapku/models
b50bc7b77288bcdaed676e70353310786c658d6e
[ "Apache-2.0" ]
null
null
null
from functools import partial import numpy as np import paddle.fluid as fluid import paddle.fluid.layers as layers from desc import * # Set seed for CE or debug dropout_seed = None def wrap_layer_with_block(layer, block_idx): """ Make layer define support indicating block, by which we can add layers to...
35.670757
85
0.581838
21c89a681c793744e93a86b2eca6c76e5770df04
1,051
py
Python
docs/exts/xref.py
lnielsen/pyhf
3d98dc445c384d2919a77b9af0a202e12343a707
[ "Apache-2.0" ]
null
null
null
docs/exts/xref.py
lnielsen/pyhf
3d98dc445c384d2919a77b9af0a202e12343a707
[ "Apache-2.0" ]
null
null
null
docs/exts/xref.py
lnielsen/pyhf
3d98dc445c384d2919a77b9af0a202e12343a707
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from docutils import nodes from sphinx.util import caption_ref_re def xref(typ, rawtext, text, lineno, inliner, options={}, content=[]): title = target = text # titleistarget = True # look if explicit title and target are given with `foo <bar>` syntax brace = text.find('<') ...
23.355556
73
0.588011
21c8dc3bbf9ddf630f91ba603a5a4b6dcfb7d62c
15,561
py
Python
src/graphnet/data/utils.py
icecube/graphnet
5e03b567520e2ce46969a89907b0d3e79dae5a15
[ "Apache-2.0" ]
1
2022-03-24T15:39:24.000Z
2022-03-24T15:39:24.000Z
src/graphnet/data/utils.py
icecube/graphnet
5e03b567520e2ce46969a89907b0d3e79dae5a15
[ "Apache-2.0" ]
72
2021-12-07T13:19:16.000Z
2022-03-31T13:16:58.000Z
src/graphnet/data/utils.py
icecube/graphnet
5e03b567520e2ce46969a89907b0d3e79dae5a15
[ "Apache-2.0" ]
3
2022-01-17T13:59:05.000Z
2022-03-19T14:58:22.000Z
"""Utility function relevant to the graphnet.data package.""" from glob import glob import os import numpy as np import pandas as pd from pathlib import Path import re from typing import List, Tuple, Union import sqlite3 import sqlalchemy from graphnet.utilities.logging import get_logger logger = get_logger() def...
34.350993
181
0.608316
21c91676170914503b76c860813b7b140506bacc
29
py
Python
btd6_memory_info/generated/SteamNative/LobbyChatUpdate_t/lobby_chat_update_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/LobbyChatUpdate_t/lobby_chat_update_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/LobbyChatUpdate_t/lobby_chat_update_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class LobbyChatUpdate_t: pass
29
29
0.896552
21c9276d02799b3a8b41bfba2e18c901d5ec0e3c
1,647
py
Python
data.py
agausmann/farey_pi
4eed3bea42c3dd21e0b7de22951d440bedcc39f8
[ "Unlicense" ]
1
2020-07-17T00:17:44.000Z
2020-07-17T00:17:44.000Z
data.py
agausmann/farey_pi
4eed3bea42c3dd21e0b7de22951d440bedcc39f8
[ "Unlicense" ]
null
null
null
data.py
agausmann/farey_pi
4eed3bea42c3dd21e0b7de22951d440bedcc39f8
[ "Unlicense" ]
null
null
null
""" Parses the data files so they can be manipulated within Python. """ import csv from decimal import Decimal from fractions import Fraction from pathlib import Path data_dir = Path(__file__).parent / 'data' """Arbitrary precision approximate of pi.""" PI = Decimal('3.14159265358979323846264338327950288419716939937...
23.869565
93
0.564663
21c9322acd81fc19d80bfe4f8686c99f3ac9ee91
3,628
py
Python
camera.py
gandalf3/The-Queen-s-Workers
31bdd846949581dbc855a30b64cbf04aabf5c06f
[ "CC-BY-3.0", "Apache-2.0" ]
2
2016-07-03T01:06:43.000Z
2020-06-24T09:58:19.000Z
camera.py
gandalf3/The-Queen-s-Workers
31bdd846949581dbc855a30b64cbf04aabf5c06f
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
camera.py
gandalf3/The-Queen-s-Workers
31bdd846949581dbc855a30b64cbf04aabf5c06f
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
import bge from mathutils import Vector, noise from math import sqrt from utils import clamp, lerp ## TODO # refactor to use a class object (get rid of globals) # use vector from center to cursor to control pan direction # investigate using "pressure" to control pan speed in some way; else use timer to slowly speed u...
24.849315
100
0.652426
21c93bd45f7d8ebebd55f7c60faa293df6ee412d
12,053
py
Python
icp.py
WangYixuan12/icp
a28665ab299f1a618e8b0768bc6030e1f3c48d8f
[ "Apache-2.0" ]
null
null
null
icp.py
WangYixuan12/icp
a28665ab299f1a618e8b0768bc6030e1f3c48d8f
[ "Apache-2.0" ]
null
null
null
icp.py
WangYixuan12/icp
a28665ab299f1a618e8b0768bc6030e1f3c48d8f
[ "Apache-2.0" ]
null
null
null
import numpy as np from sklearn.neighbors import NearestNeighbors def best_fit_transform(A, B): ''' Calculates the least-squares best-fit transform that maps corresponding points A to B in m spatial dimensions Input: A: Nxm numpy array of corresponding points B: Nxm numpy array of correspondin...
34.339031
154
0.607069
21c9444db1bccc9a23a575b0806e3cf74b42ba54
939
py
Python
steamfixes/fix.py
pchome/steamfixes
f54777ec4bbbfa369007d079195cd2ea96488fe7
[ "BSD-2-Clause" ]
3
2018-11-22T06:53:50.000Z
2019-03-08T10:42:04.000Z
steamfixes/fix.py
pchome/steamfixes
f54777ec4bbbfa369007d079195cd2ea96488fe7
[ "BSD-2-Clause" ]
null
null
null
steamfixes/fix.py
pchome/steamfixes
f54777ec4bbbfa369007d079195cd2ea96488fe7
[ "BSD-2-Clause" ]
1
2018-11-23T18:43:30.000Z
2018-11-23T18:43:30.000Z
""" Runs games with fixes """ import os import sys from importlib import import_module from .logger import log from .game import Game from .util import game_id def run(): """ Loads a gamefix module by it's game id """ log.info('Running game ' + game_id()) if not game_id(): return game = Game(...
26.083333
76
0.607029
21c94df947defbba9848615c71a06064fd17543b
2,398
py
Python
MatricesM/matrixops/joins.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
4
2019-05-04T00:54:52.000Z
2019-12-11T05:57:16.000Z
MatricesM/matrixops/joins.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
80
2019-01-23T20:47:42.000Z
2020-02-20T05:53:28.000Z
MatricesM/matrixops/joins.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
2
2019-02-23T12:34:23.000Z
2020-07-29T17:45:03.000Z
def joins(mat,cols,method,other,conds,null,obj): #######Type checks start####### #Matrix assertion if not isinstance(other,obj): raise TypeError("'JOIN' only accepts Matrix objects") #dataframe check assert mat.dtype.__name__ == "dataframe" \ and other.dtype.__name__ == "dataframe" , "'...
35.791045
114
0.587156
21c9569b88a54671060a5dffb8f32b36a1de010f
4,987
py
Python
cc_modes/mountain.py
epthegeek/cactuscanyon
b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b
[ "Unlicense" ]
10
2015-11-04T21:19:42.000Z
2022-01-04T06:15:28.000Z
cc_modes/mountain.py
epthegeek/cactuscanyon
b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b
[ "Unlicense" ]
null
null
null
cc_modes/mountain.py
epthegeek/cactuscanyon
b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b
[ "Unlicense" ]
5
2017-03-16T18:14:41.000Z
2020-10-17T15:21:53.000Z
## ____ _ ____ ## / ___|__ _ ___| |_ _ _ ___ / ___|__ _ _ __ _ _ ___ _ __ ## | | / _` |/ __| __| | | / __| | | / _` | '_ \| | | |/ _ \| '_ \ ## | |__| (_| | (__| |_| |_| \__ \ | |__| (_| | | | | |_| | (_) | | | | ## \____\__,_|\___|\__|\__,_|___/ \____\__,_|_| |_|\__, |\___/|...
37.496241
143
0.559254
21c9bfb6e17cd58329c71d18a147fd3fba3fe00d
1,353
py
Python
src/utils/DH_Encryption.py
OfekHarel/Orion-Connection-Software
2e767e31f94574bf464e24eaeed87f36b3247ca6
[ "MIT" ]
1
2021-05-18T10:16:05.000Z
2021-05-18T10:16:05.000Z
src/utils/DH_Encryption.py
OfekHarel/Orion-Connection-Software
2e767e31f94574bf464e24eaeed87f36b3247ca6
[ "MIT" ]
null
null
null
src/utils/DH_Encryption.py
OfekHarel/Orion-Connection-Software
2e767e31f94574bf464e24eaeed87f36b3247ca6
[ "MIT" ]
null
null
null
import random def generate_prime() -> int: min = 1 max = 50 cached_primes = [i for i in range(min, max) if __is_prime__(i)] n = random.choice(cached_primes) return n def __is_prime__(num) -> bool: if num > 1: for i in range(2, num): if (num % i) == 0: retu...
24.160714
68
0.572801
21c9d832cd54ecc641326bba2f6b35fef35feaf6
805
py
Python
alipay/aop/api/response/AlipayPayAppTransportCardinfoQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayPayAppTransportCardinfoQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayPayAppTransportCardinfoQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayPayAppTransportCardinfoQueryResponse(AlipayResponse): def __init__(self): super(AlipayPayAppTransportCardinfoQueryResponse, self).__init__() self._card_data_cip...
30.961538
115
0.746584
21c9e78f7a4e660e5db386a073cad1999e98520b
714
py
Python
portals/wwits/groups/service_setup/update_canned_special_instructions/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/service_setup/update_canned_special_instructions/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/service_setup/update_canned_special_instructions/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
from dataclasses import dataclass @dataclass class ParmModel: UserID: str Version: str Env: str Source: str Session: int Entity: str EntityRecid: int EntityCount: int Mode: str CustCode: str Criteria: str Value: str Excluded: bool NoRmkSets: int NoDocSets: i...
16.227273
43
0.641457
21c9f8eb2cfea7ca8315a006c4efb2ec1cad3a22
1,377
py
Python
wxtwilio.py
bcantoni/wxtext
b0807981d00237a81715fbce0f4b5f4a7968ea82
[ "MIT" ]
null
null
null
wxtwilio.py
bcantoni/wxtext
b0807981d00237a81715fbce0f4b5f4a7968ea82
[ "MIT" ]
null
null
null
wxtwilio.py
bcantoni/wxtext
b0807981d00237a81715fbce0f4b5f4a7968ea82
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Wrapper to receive the Twilio webhook and call wxtext.py to generate the response """ import cgi import os import requests import wxtext def logmsg(_msg): with open("logs/test.log", "a") as logfile: logfile.write("{}\n".format(_msg)) def send_slack_messages(slack_webhook_url, ...
23.741379
182
0.673929
21ca0bf8458c41785289b3550dc3a64c39110daa
124
py
Python
abc/abc203/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc203/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc203/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N, K = map(int, input().split()) ans = 0 for i in range(N): ans += (100 * (i + 1)) * K + (K * (K + 1)) // 2 print(ans)
17.714286
51
0.443548
21ca0f5121a81937b4508d0bf20a425184124016
1,415
py
Python
py/452. Minimum Number of Arrows to Burst Balloons.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
3
2021-08-07T07:01:34.000Z
2021-08-07T07:03:02.000Z
py/452. Minimum Number of Arrows to Burst Balloons.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
py/452. Minimum Number of Arrows to Burst Balloons.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/ # There are some spherical balloons spread in two-dimensional space. For each # balloon, provided input is the start and end coordinates of the horizontal # diameter. Since it's horizontal, y-coordinates don't matter, and hence the # x-coordin...
38.243243
81
0.620495
21ca5623c669714fd801e8aa2b7270d06b4449b1
10,540
py
Python
code_doc/tests/test_send_new_artifacts.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/tests/test_send_new_artifacts.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/tests/test_send_new_artifacts.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.test import LiveServerTestCase from django.test import Client from django.contrib.auth.models import User, Group from django.core.urlresolvers import reverse from ..models.projects import Project, ProjectSeries from ..models.authors import Author from ..utils.send_new_artif...
34.332248
118
0.630266
21ca5638b6f4cb040dd57fac6f178b1777f7ffe7
5,819
py
Python
vidaug/augmentors/affine.py
darpa-sail-on/videoaug
14fb6249fb25d53cef88b61804a85e67a5aaadea
[ "MIT" ]
null
null
null
vidaug/augmentors/affine.py
darpa-sail-on/videoaug
14fb6249fb25d53cef88b61804a85e67a5aaadea
[ "MIT" ]
3
2021-04-14T13:52:03.000Z
2021-04-27T19:31:04.000Z
vidaug/augmentors/affine.py
darpa-sail-on/videoaug
14fb6249fb25d53cef88b61804a85e67a5aaadea
[ "MIT" ]
null
null
null
""" Augmenters that apply affine transformations. To use the augmenters, clone the complete repo and use `from vidaug import augmenters as va` and then e.g. : seq = va.Sequential([ va.RandomRotate(30), va.RandomResize(0.2) ]) List of augmenters: * RandomRotate * RandomResize ...
32.691011
119
0.56728
21ca6e89ce4d699862d545da9256731a3a03b1bd
196
py
Python
run.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
2
2018-05-31T15:02:08.000Z
2018-07-11T11:02:44.000Z
run.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
run.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
from FlaskApp import app if __name__ == '__main__': app.run(host=app.config.get("FLASK_HOST"), port=app.config.get("FLASK_PORT"), debug=app.config.get("FLASK_DEBUG"))
28
48
0.637755
21ca7efa9550d859ce2ab97c3765245dd7e98adf
11,642
py
Python
empower/lvapp/bin_counter/bin_counter.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
2
2020-02-28T15:54:01.000Z
2020-11-24T08:45:11.000Z
empower/lvapp/bin_counter/bin_counter.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
null
null
null
empower/lvapp/bin_counter/bin_counter.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2016 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...
30.55643
89
0.573699
21ca8882abb165c5b584be8f413020275911d276
266
py
Python
binarysearch.io/435_poly_knapsack.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/435_poly_knapsack.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/435_poly_knapsack.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def solve(self, w, v ,c): dp = [0]*(c+1) for i in range(c+1): for j in range(len(w)): if i - w[j] >= 0 : dp[i] = max(dp[i-w[j]] + v[j] , dp[i]) return dp[c]
26.6
58
0.345865
21caab324704a07c72db1b6c8a65817f97addc1a
17,215
py
Python
cinder/tests/unit/targets/test_tgt_driver.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/targets/test_tgt_driver.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/tests/unit/targets/test_tgt_driver.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
42.297297
79
0.503282
21caaba57fa26fa1ff218914c99f5be50802d235
1,330
py
Python
test/simple.py
thomasgibson/pymbolic
a4a873f10bfc4c17dec92fe047a4638298cd63fc
[ "MIT" ]
70
2015-08-10T20:24:24.000Z
2022-03-31T04:08:35.000Z
test/simple.py
thomasgibson/pymbolic
a4a873f10bfc4c17dec92fe047a4638298cd63fc
[ "MIT" ]
48
2015-04-22T16:13:07.000Z
2022-03-25T04:27:13.000Z
test/simple.py
thomasgibson/pymbolic
a4a873f10bfc4c17dec92fe047a4638298cd63fc
[ "MIT" ]
20
2015-11-20T18:47:11.000Z
2021-09-28T23:44:21.000Z
__copyright__ = "Copyright (C) 2009-2013 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
35.945946
77
0.781955
21cb04054007543a252ae207442f108ab3c5e781
1,414
py
Python
helloworld/src/helloworld/app.py
pmfrank/beeware-tutorials
96274b0a735bd468e946111baf441a527ff0b0d5
[ "BSD-2-Clause" ]
1
2021-06-04T05:51:39.000Z
2021-06-04T05:51:39.000Z
helloworld/src/helloworld/app.py
pmfrank/beeware-tutorials
96274b0a735bd468e946111baf441a527ff0b0d5
[ "BSD-2-Clause" ]
null
null
null
helloworld/src/helloworld/app.py
pmfrank/beeware-tutorials
96274b0a735bd468e946111baf441a527ff0b0d5
[ "BSD-2-Clause" ]
null
null
null
""" My first application """ import toga from toga.style import Pack from toga.style.pack import COLUMN, ROW class HelloWorld(toga.App): def startup(self): """ Construct and show the Toga application. Usually, you would add your application to a main content box. We then create a...
24.807018
72
0.585573
21cb08cdb7a067194ad27465971551e4d7f94c23
15,251
py
Python
conans/test/functional/generators/cmake_test.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
conans/test/functional/generators/cmake_test.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
conans/test/functional/generators/cmake_test.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
import os import platform import textwrap import unittest from nose.plugins.attrib import attr from conans.client.tools import replace_in_file from conans.model.ref import ConanFileReference from conans.test.utils.tools import TestClient, GenConanfile, TurboTestClient class CMakeGeneratorTest(unittest.TestCase): ...
45.255193
101
0.562455
21cb56a177da6e024be191721ba4d7add9b65405
1,186
py
Python
setup.py
tmbdev/objectio
3c037fe47dd01cdd13a9338112ad10c1d2aeafb8
[ "BSD-3-Clause" ]
1
2020-06-30T09:25:21.000Z
2020-06-30T09:25:21.000Z
setup.py
tmbdev/objectio
3c037fe47dd01cdd13a9338112ad10c1d2aeafb8
[ "BSD-3-Clause" ]
1
2020-05-21T02:20:42.000Z
2020-05-21T02:20:42.000Z
setup.py
tmbdev/objectio
3c037fe47dd01cdd13a9338112ad10c1d2aeafb8
[ "BSD-3-Clause" ]
2
2020-04-15T16:44:33.000Z
2020-12-01T21:08:32.000Z
#!/usr/bin/python3 # # Copyright (c) 2017-2019 NVIDIA CORPORATION. All rights reserved. # This file is part of webloader (see TBD). # See the LICENSE file for licensing terms (BSD-style). # import os import sys import setuptools import datetime VERSION = open("VERSION", "r").read().strip() if sys.version_info < (3, ...
29.65
66
0.671164
21cb6bbe43e9289f985578013dbb2456222b03f9
2,908
py
Python
st2common/st2common/models/db/rule_enforcement.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/st2common/models/db/rule_enforcement.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/st2common/models/db/rule_enforcement.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
37.282051
93
0.666781
21cb703a5d53e4444262113594540324e6eb24f4
4,516
py
Python
plugins/aea-ledger-ethereum/tests/test_ethereum_contract.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-ledger-ethereum/tests/test_ethereum_contract.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-ledger-ethereum/tests/test_ethereum_contract.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021-2022 Valory AG # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
35.84127
88
0.666298
21cb771e31a81e28ae15e7c5848e5f1793f5dde4
50,647
py
Python
humann/store.py
alienzj/humann
73d1cd45e98e79af501ca0076e71946519f0f9db
[ "MIT" ]
72
2020-02-28T11:17:46.000Z
2022-03-29T07:40:37.000Z
humann/store.py
alienzj/humann
73d1cd45e98e79af501ca0076e71946519f0f9db
[ "MIT" ]
25
2020-03-20T10:30:13.000Z
2022-03-07T23:39:22.000Z
humann/store.py
alienzj/humann
73d1cd45e98e79af501ca0076e71946519f0f9db
[ "MIT" ]
41
2020-03-20T15:01:59.000Z
2022-02-22T01:12:27.000Z
""" HUMAnN: store module Stores the alignments identified Stores the genes/reactions from the database selected Stores the reactions/pathways from the database selected Stores the pathways identified Stores the unaligned reads Copyright (c) 2014 Harvard School of Public Health Permission is hereby granted, free of ch...
34.665982
162
0.568563
21cb93105d87ac02df8f71f6c60f03c2d5b7c38d
602
py
Python
hfpy_code/chapter11/page414.py
leobarros/use_cabeca_python
4e0897a68fb7ef669ec05eab7cba9412baa0e85e
[ "Apache-2.0" ]
1
2016-04-01T04:31:52.000Z
2016-04-01T04:31:52.000Z
hfpython_code/hfpy_code/chapter11/page414.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
null
null
null
hfpython_code/hfpy_code/chapter11/page414.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
1
2020-06-02T17:47:22.000Z
2020-06-02T17:47:22.000Z
row_data = {} with open('PaceData.csv') as paces: column_headings = paces.readline().strip().split(',') column_headings.pop(0) for each_line in paces: row = each_line.strip().split(',') row_label = row.pop(0) inner_dict = {} for i in range(len(column_headings)): ...
28.666667
76
0.656146
21cba5008d3511377afe707c7fff03c408df20bf
2,183
py
Python
Source/BusPiratePy/interface/BPBase.py
ASoftTech/Py.BusPiratePy3
279f932504d687145bb03208d8bb32c7b9493334
[ "MIT" ]
null
null
null
Source/BusPiratePy/interface/BPBase.py
ASoftTech/Py.BusPiratePy3
279f932504d687145bb03208d8bb32c7b9493334
[ "MIT" ]
null
null
null
Source/BusPiratePy/interface/BPBase.py
ASoftTech/Py.BusPiratePy3
279f932504d687145bb03208d8bb32c7b9493334
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import time from BusPiratePy.util.Logger import Logger from BusPiratePy.BPConnection import BPConnection, BPMode class BPBase: """Base class for interfaces used by the Bus Pirate""" def __init__(self, conn: BPConnection): """Class constructor""" # Property De...
33.584615
114
0.624828
21cba654eaf7e63f23b46198eaeaeac9f0cbc45e
13,910
py
Python
esperclient/models/device_app.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
esperclient/models/device_app.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
esperclient/models/device_app.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ESPER API REFERENCE OpenAPI spec version: 1.0.0 Contact: developer@esper.io --------------------------------------------------------- Copyright 2019 Shoonya Enterprises Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Li...
28.387755
267
0.607549
21cbd03ae2092c24fa0f4148f3a51e6e587aea2b
6,069
py
Python
django_mc/views.py
team23/django_mc
62eb10a5edf92aefb1afcb90c8111ca28d1e0ae0
[ "BSD-3-Clause" ]
6
2016-04-04T17:03:14.000Z
2019-10-04T03:14:38.000Z
django_mc/views.py
team23/django_mc
62eb10a5edf92aefb1afcb90c8111ca28d1e0ae0
[ "BSD-3-Clause" ]
2
2016-03-22T15:57:16.000Z
2016-04-05T09:46:31.000Z
django_mc/views.py
team23/django_mc
62eb10a5edf92aefb1afcb90c8111ca28d1e0ae0
[ "BSD-3-Clause" ]
2
2016-06-12T08:27:48.000Z
2021-02-27T10:15:01.000Z
from UserList import UserList from django.views.generic import View from django.views.generic.detail import BaseDetailView from django_mc.mixins import TemplateHintProvider from django_mc.models import Region, Layout as _Layout from django.db.models.loading import get_model from .settings import MC_LAYOUT_MODEL class...
37.93125
106
0.641951
21cbf4f8ae9680010b19257bbd488f76dbcdf713
11,670
py
Python
stog/data/dataset_readers/amr_parsing/node_utils.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
stog/data/dataset_readers/amr_parsing/node_utils.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
stog/data/dataset_readers/amr_parsing/node_utils.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
import os import re import json from collections import Counter import editdistance from stog.data.dataset_readers.amr_parsing.io import AMRIO from stog.data.dataset_readers.amr_parsing.propbank_reader import PropbankReader from stog.utils import logging logger = logging.init_logger() WORDSENSE_RE = re.compile(r'-\...
41.827957
127
0.623308
21cc286b7a427138cc0ff6d130498ddc0ef37584
7,117
py
Python
tests/test_query_manager.py
KnowledgeCaptureAndDiscovery/OBA_sparql
9c1c28902ab3d6561b3b6a0f8a7d284688d86326
[ "Apache-2.0" ]
5
2020-05-12T22:00:16.000Z
2021-11-08T22:16:11.000Z
tests/test_query_manager.py
KnowledgeCaptureAndDiscovery/OBA_sparql
9c1c28902ab3d6561b3b6a0f8a7d284688d86326
[ "Apache-2.0" ]
24
2019-09-26T23:20:11.000Z
2022-01-14T14:19:14.000Z
tests/test_query_manager.py
KnowledgeCaptureAndDiscovery/OBA_sparql
9c1c28902ab3d6561b3b6a0f8a7d284688d86326
[ "Apache-2.0" ]
1
2021-12-01T14:56:09.000Z
2021-12-01T14:56:09.000Z
import json import logging import unittest from typing import Dict from SPARQLWrapper import JSONLD from obasparql.query_manager import QueryManager, QUERIES_TYPES, QUERY_TYPE_GET_ONE_USER from obasparql.utils import generate_uri from tests.settings import * logger = logging.getLogger('testing') graph_user = generat...
37.856383
692
0.59393
21cc3b7e7c63fe8f4b85f36b2daa6b87518433a6
32,015
py
Python
lib/galaxy/datatypes/molecules.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2021-04-26T08:46:21.000Z
2021-04-26T08:46:21.000Z
lib/galaxy/datatypes/molecules.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/datatypes/molecules.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2018-02-08T10:37:26.000Z
2018-02-08T10:37:26.000Z
# -*- coding: utf-8 -*- import logging import os import subprocess from galaxy.datatypes import ( data, metadata ) from galaxy.datatypes.binary import Binary from galaxy.datatypes.data import get_file_peek from galaxy.datatypes.metadata import MetadataElement from galaxy.datatypes.sniff import ( get_header...
37.400701
152
0.575636
21cc5047880fb84dfee8d8e6088968f5c7c18b72
3,753
py
Python
sapp/lint.py
facebook/sapp
4b85d10a791d8e9c8ae83d1f62fbded24845f053
[ "MIT" ]
74
2020-12-18T20:04:30.000Z
2022-03-22T22:26:02.000Z
sapp/lint.py
facebook/sapp
4b85d10a791d8e9c8ae83d1f62fbded24845f053
[ "MIT" ]
61
2020-12-21T21:33:05.000Z
2022-01-27T21:22:20.000Z
sapp/lint.py
facebook/sapp
4b85d10a791d8e9c8ae83d1f62fbded24845f053
[ "MIT" ]
20
2021-04-08T01:28:53.000Z
2022-03-22T22:26:05.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json from operator import itemgetter from pathlib import Path from typing import List import click from sqlalchemy.orm import aliase...
35.074766
81
0.625366
21cc6cf8217e865c6bf12538f59772beea1df807
96,597
py
Python
interpreter.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
interpreter.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
interpreter.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2015 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
42.912928
183
0.614677
21cc8f998951ce7541db09fbd48e9e34cb76907b
8,756
py
Python
experiments/ashvin/icra2021/final/new/awac1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/final/new/awac1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/final/new/awac1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.t...
35.593496
123
0.597076
21cc95472c592bf4b441df33e98ac8bf3a8eafa7
640
py
Python
setup.py
maxwellherron5/microsoftgraph-python
ccab7daa336c67dec716eb00b45d37258d082bb3
[ "MIT" ]
null
null
null
setup.py
maxwellherron5/microsoftgraph-python
ccab7daa336c67dec716eb00b45d37258d082bb3
[ "MIT" ]
null
null
null
setup.py
maxwellherron5/microsoftgraph-python
ccab7daa336c67dec716eb00b45d37258d082bb3
[ "MIT" ]
null
null
null
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="microsoftgraph-python", version="1.1.0", description="API wrapper for Microsoft Graph written in Python", long_description=read("README.md"), url="https://g...
25.6
70
0.695313
21cc9aae2e277f5f9d32f3f0063c4b59ba7094d8
5,611
py
Python
src/utils/decorators.py
niall-twomey/har_datasets
68f142ba613ce26f67cdd6b871117f4c24ea603f
[ "MIT" ]
24
2018-12-12T08:54:52.000Z
2021-12-07T08:45:13.000Z
src/utils/decorators.py
niall-twomey/har_datasets
68f142ba613ce26f67cdd6b871117f4c24ea603f
[ "MIT" ]
3
2019-07-18T20:14:41.000Z
2022-03-12T01:03:28.000Z
src/utils/decorators.py
niall-twomey/har_datasets
68f142ba613ce26f67cdd6b871117f4c24ea603f
[ "MIT" ]
9
2018-12-12T16:18:39.000Z
2022-03-30T16:25:47.000Z
from functools import partial from functools import update_wrapper import numpy as np import pandas as pd from loguru import logger from pandas.api.types import is_categorical_dtype from tqdm import tqdm from src.utils.exceptions import ModalityNotPresentError from src.utils.loaders import dataset_importer __all__ ...
31.172222
113
0.621458
21ccb005d5ec4fbc675dcdbb77332dbc59812d40
5,627
py
Python
pysis/sugar.py
europlanet-gmap/pysis
8dd62e0c9a1c28b4efc4f14bea898c4c36093e6f
[ "BSD-3-Clause" ]
1
2022-02-08T13:34:02.000Z
2022-02-08T13:34:02.000Z
pysis/sugar.py
europlanet-gmap/pysis
8dd62e0c9a1c28b4efc4f14bea898c4c36093e6f
[ "BSD-3-Clause" ]
2
2019-03-01T19:48:40.000Z
2019-03-05T18:14:33.000Z
pysis/sugar.py
europlanet-gmap/pysis
8dd62e0c9a1c28b4efc4f14bea898c4c36093e6f
[ "BSD-3-Clause" ]
5
2019-03-01T18:44:03.000Z
2022-02-26T09:57:08.000Z
import pvl from pysis import isis from warnings import warn from pysis.exceptions import ProcessError from numbers import Number import numpy as np import tempfile def point_info(cube_path, x, y, point_type, allow_outside=False): """ Use Isis's campt to get image/ground point info from an image Parameter...
33.694611
147
0.583082
21ccd6a0063a69eef681caae0dd208896279eb07
5,708
py
Python
test/test_parse_sv.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:56.000Z
2020-08-13T12:21:56.000Z
test/test_parse_sv.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
3
2021-06-08T21:06:32.000Z
2022-01-13T02:22:38.000Z
test/test_parse_sv.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:58.000Z
2020-08-13T12:21:58.000Z
# # Copyright 2017 Mycroft AI 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 writ...
48.372881
79
0.527505
21cceb3ec1057d4a00b152da9599ee20f102c453
2,542
py
Python
pyhstr/utilities.py
xdb64/pyhstr
16c568ec8e2943b84d16461e2eb469e8ec74bc3a
[ "MIT" ]
13
2020-05-07T12:46:08.000Z
2021-10-01T02:54:13.000Z
pyhstr/utilities.py
overclockworked64/pyhstr
16c568ec8e2943b84d16461e2eb469e8ec74bc3a
[ "MIT" ]
20
2020-09-15T15:22:14.000Z
2021-01-10T14:37:30.000Z
pyhstr/utilities.py
overclockworked64/pyhstr
16c568ec8e2943b84d16461e2eb469e8ec74bc3a
[ "MIT" ]
3
2020-09-15T02:36:32.000Z
2021-10-01T02:54:17.000Z
from collections import Counter, OrderedDict from enum import Enum from fcntl import ioctl from termios import TIOCSTI from pathlib import Path from typing import List, Optional try: import IPython except ModuleNotFoundError: # pragma: no cover IPython = None try: from bpython.config import ( Str...
22.495575
72
0.641621
21ccf3431a310b402249a0bbd65187400e013e5b
377
py
Python
test_mezzanine_advanced_admin/test_mezzanine_advanced_admin/urls.py
askinteractive/mezzanine-advanced-admin
4c2f80ca209d2f549e50de69eb95ef1243c04c48
[ "Apache-2.0" ]
null
null
null
test_mezzanine_advanced_admin/test_mezzanine_advanced_admin/urls.py
askinteractive/mezzanine-advanced-admin
4c2f80ca209d2f549e50de69eb95ef1243c04c48
[ "Apache-2.0" ]
null
null
null
test_mezzanine_advanced_admin/test_mezzanine_advanced_admin/urls.py
askinteractive/mezzanine-advanced-admin
4c2f80ca209d2f549e50de69eb95ef1243c04c48
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'test_mezzanine_advanced_admin_p3.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)),...
26.928571
77
0.668435
21cd2aafc9e884876b22b80a97fd3ba6baedccb2
8,738
py
Python
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/io/sqlite.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
2
2020-04-04T21:09:56.000Z
2020-04-08T17:00:58.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/io/sqlite.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
13
2020-04-11T21:50:57.000Z
2020-04-19T03:19:48.000Z
sjtwo-c/site_scons/site_tools/codegen/site_packages/can/io/sqlite.py
seanlinc/Playmate
077877d172dd6b7beab910c52ec95ee300bc6480
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Implements an SQL database writer and reader for storing CAN messages. .. note:: The database schema is given in the documentation of the loggers. """ from __future__ import absolute_import import sys import time import threading import logging import sqlite3 from can.listener import BufferedRe...
36.869198
101
0.62005
21cd31abd6b87ba1f70664e677ca0722fc22cf14
619
py
Python
load_data.py
rwawraf/handpose-control
e17c58864e12e928151516c111fd2cfe69f3cd88
[ "MIT" ]
null
null
null
load_data.py
rwawraf/handpose-control
e17c58864e12e928151516c111fd2cfe69f3cd88
[ "MIT" ]
null
null
null
load_data.py
rwawraf/handpose-control
e17c58864e12e928151516c111fd2cfe69f3cd88
[ "MIT" ]
1
2021-06-25T07:23:41.000Z
2021-06-25T07:23:41.000Z
import json import os import numpy as np def load_data(): dataset = {} datadir = f'{os.path.dirname(os.path.abspath(__file__))}/data/' labels = filter(lambda f: os.path.isdir(datadir + f), os.listdir(datadir)) for label in labels: datafolder = datadir + label + '/' for datafile in os.l...
28.136364
78
0.607431
21cd3ee3eff99ecfef13854e29cae592b26552bf
8,536
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/ternary/baxis/title/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/ternary/baxis/title/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/ternary/baxis/title/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff00...
37.438596
84
0.56865
21cd4a56f52a6cb7e442efdc2aa562e624d71679
583
py
Python
primes.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
primes.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
primes.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
def is_prime(n): '''check if an integer n is prime''' n = abs(int(n)) if n < 2: return False if n == 2: return True if not n & 1: return False for x in range(3, int(n**.5)+1, 2): if n % x == 0: return False return True def test_is_prime(): assert is_prime(2) == True assert is_...
23.32
38
0.598628
21cd55feb62e6404812c9c0f946ad97a62b553b7
686
py
Python
nova/image/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/image/__init__.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/image/__init__.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
38.111111
78
0.714286
21cdba18128af287f9529fc411037e37da631718
3,707
py
Python
refinery/bnpy/bnpy-dev/demodata/AsteriskK8.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
103
2015-01-13T00:48:14.000Z
2021-11-08T10:53:22.000Z
refinery/bnpy/bnpy-dev/demodata/AsteriskK8.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
7
2015-02-21T04:03:40.000Z
2021-08-23T20:24:54.000Z
refinery/bnpy/bnpy-dev/demodata/AsteriskK8.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
27
2015-01-23T00:54:31.000Z
2020-12-30T14:30:50.000Z
''' AsteriskK8.py Simple toy dataset of 8 Gaussian components with full covariance. Generated data form an "asterisk" shape when plotted in 2D. ''' import scipy.linalg import numpy as np from bnpy.util.RandUtil import rotateCovMat from bnpy.data import XData, MinibatchIterator ######################################...
30.891667
135
0.619908
21ce02b5b48de0ceef3c3178f46dcd886e8a6c23
905
py
Python
BehaviorAnalytics/UserSecurityMetadata/Utils.py
digitalarche/Azure-Sentinel-Notebooks
b962989cab597b3583aefe222bbb1a011ea6a700
[ "MIT" ]
266
2019-10-18T00:41:39.000Z
2022-03-18T05:44:01.000Z
BehaviorAnalytics/UserSecurityMetadata/Utils.py
digitalarche/Azure-Sentinel-Notebooks
b962989cab597b3583aefe222bbb1a011ea6a700
[ "MIT" ]
113
2020-03-10T16:56:10.000Z
2022-03-28T21:54:26.000Z
BehaviorAnalytics/UserSecurityMetadata/Utils.py
digitalarche/Azure-Sentinel-Notebooks
b962989cab597b3583aefe222bbb1a011ea6a700
[ "MIT" ]
93
2020-01-07T20:28:43.000Z
2022-03-23T04:09:39.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import sub...
36.2
92
0.575691
21ce234866859a26d38fce161eab5c50e8f1934d
2,556
py
Python
dataset/vidvrd_hoid.py
sx14/ST-HOID-helper
f0822307fe03548c92dc1e2ef80bb738ed0bd3f5
[ "MIT" ]
null
null
null
dataset/vidvrd_hoid.py
sx14/ST-HOID-helper
f0822307fe03548c92dc1e2ef80bb738ed0bd3f5
[ "MIT" ]
null
null
null
dataset/vidvrd_hoid.py
sx14/ST-HOID-helper
f0822307fe03548c92dc1e2ef80bb738ed0bd3f5
[ "MIT" ]
null
null
null
import os import glob from dataset import Dataset class VidVRD_HOID(Dataset): """ VidVRD-STHOID dataset """ def __init__(self, anno_rpath, video_rpath, splits): """ anno_rpath: the root path of annotations video_rpath: the root path of videos splits: a list of splits ...
37.043478
108
0.625196
21ce2702dbd2060aa40685e6349f910c00fb21c2
12,814
py
Python
notes_to_keep/scan_notes.py
adamyi/notes_to_keep
7ff4ee6eff5bbcbe152361b265df650924563285
[ "MIT" ]
47
2018-05-03T09:44:17.000Z
2022-03-12T21:42:49.000Z
notes_to_keep/scan_notes.py
adamyi/notes_to_keep
7ff4ee6eff5bbcbe152361b265df650924563285
[ "MIT" ]
8
2018-07-28T09:13:28.000Z
2020-06-14T03:24:27.000Z
notes_to_keep/scan_notes.py
adamyi/notes_to_keep
7ff4ee6eff5bbcbe152361b265df650924563285
[ "MIT" ]
4
2018-06-20T18:48:39.000Z
2019-12-20T11:33:15.000Z
''' This file was modified from mac_apt (macOS Artifact Parsing Tool). Changes are also subject to the terms of the MIT License. For the copyright information of the changes, please check the LICENSE file. Below is the original copyright information --------------------------------------------------...
45.601423
209
0.605041
21ce600794e857989fa927bfb64db8c20e334630
4,557
py
Python
launchpad/launch/worker_manager_test.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
null
null
null
launchpad/launch/worker_manager_test.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
null
null
null
launchpad/launch/worker_manager_test.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DeepMind Technologies Limited. 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 ...
28.841772
74
0.709897
21ce6c533012276928ee27e841d22bf7980a0af7
34,313
py
Python
models/official/detection/ops/spatial_transform_ops.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
65
2017-07-28T03:47:42.000Z
2018-02-04T20:54:18.000Z
models/official/detection/ops/spatial_transform_ops.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
10
2017-08-11T22:55:40.000Z
2018-02-07T01:11:28.000Z
models/official/detection/ops/spatial_transform_ops.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
28
2017-07-28T08:20:06.000Z
2018-01-28T16:28:12.000Z
# Copyright 2019 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...
42.57196
80
0.655087
21ce7a190304123180e1d45ad57fee2a48e733cc
2,451
py
Python
ucb_cs61A/lab/lab01/guessing_game_graph.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/lab/lab01/guessing_game_graph.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/lab/lab01/guessing_game_graph.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
"""Guessing Game Visualization You do not need to understand any of the code in this file. """ # This section avoids asking for user input. def prompt_for_number(lower, upper): from random import randint prompt_for_number.number = randint(lower, upper) return prompt_for_number.number def is_correct(gues...
36.044118
197
0.683395
21ce8a03e8c09ab584c1a055779c813af6484749
291
py
Python
tests/test_flatten.py
cyrildever/py-utls
8b1315604398254683a9eaf3aac142593cc15a2f
[ "MIT" ]
1
2022-02-18T11:01:04.000Z
2022-02-18T11:01:04.000Z
tests/test_flatten.py
cyrildever/py-utls
8b1315604398254683a9eaf3aac142593cc15a2f
[ "MIT" ]
null
null
null
tests/test_flatten.py
cyrildever/py-utls
8b1315604398254683a9eaf3aac142593cc15a2f
[ "MIT" ]
null
null
null
from unittest import TestCase from .context import * from pyutls.list import flatten class TestFlatten(TestCase): def test_flatten(self): one = ['one'] two = ['two'] both = [one, two] flat = flatten(both) self.assertEqual(flat, ['one', 'two'])
20.785714
46
0.601375
21ce9605e8b394b560871d1b394ff69c57544abf
18,893
py
Python
rllib/agents/ppo/ppo.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
rllib/agents/ppo/ppo.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
rllib/agents/ppo/ppo.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
""" Proximal Policy Optimization (PPO) ================================== This file defines the distributed Trainer class for proximal policy optimization. See `ppo_[tf|torch]_policy.py` for the definition of the policy loss. Detailed documentation: https://docs.ray.io/en/master/rllib-algorithms.html#ppo """ import ...
40.542918
88
0.620018
21ce9cfc71c0b27a968eedb7d5490d23e844d6f3
2,583
py
Python
performance-tools/pyramid_with_crosstown_traffic.py
mpasternak/hendrix
1cc96b9edb3a6760306b80b50001e3dfbf57fceb
[ "MIT" ]
309
2015-08-14T18:54:57.000Z
2021-12-20T18:53:33.000Z
performance-tools/pyramid_with_crosstown_traffic.py
mpasternak/hendrix
1cc96b9edb3a6760306b80b50001e3dfbf57fceb
[ "MIT" ]
77
2015-08-14T21:07:09.000Z
2021-07-19T21:50:17.000Z
performance-tools/pyramid_with_crosstown_traffic.py
mpasternak/hendrix
1cc96b9edb3a6760306b80b50001e3dfbf57fceb
[ "MIT" ]
40
2015-08-14T20:59:38.000Z
2021-07-18T20:16:36.000Z
import os import sys import threading import time from multiprocessing import Pool import requests from pyramid.config import Configurator from pyramid.response import Response # begin chdir armor up = os.path.dirname(os.path.abspath(__file__)) testdir = os.path.dirname(up) hendrix_app_dir = os.path.dirname(testdir) ...
23.481818
78
0.680991