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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ec66c1c6b296e5b47a329e4f35d6ba9d3922003 | 12,116 | py | Python | tests/test_filesystem.py | check-spelling/cosmo | 2032aa0120f76f429faf6125a303829fab521058 | [
"BSD-3-Clause"
] | 4 | 2018-06-21T14:42:19.000Z | 2021-12-27T10:24:29.000Z | tests/test_filesystem.py | check-spelling/cosmo | 2032aa0120f76f429faf6125a303829fab521058 | [
"BSD-3-Clause"
] | 172 | 2016-12-14T18:51:17.000Z | 2021-12-28T11:53:44.000Z | tests/test_filesystem.py | check-spelling/cosmo | 2032aa0120f76f429faf6125a303829fab521058 | [
"BSD-3-Clause"
] | 8 | 2017-02-10T02:56:34.000Z | 2021-12-27T04:20:47.000Z | import pytest
import os
import numpy as np
from astropy.io import fits
from shutil import copy
from cosmo.filesystem import (
data_from_exposures,
data_from_jitters,
FileData,
SPTData,
ReferenceData,
JitterFileData,
find_files,
get_exposure_data,
get_jitter_data
)
@pytest.fixture... | 33.013624 | 120 | 0.652443 |
9ec68e65f0d6e3ab46f7afc962e00e8657017cac | 4,342 | py | Python | src/pywriter/yw/data_files.py | peter88213/yWrestler | 32a152e8b814983ecaef6e9861df1d6b7008568d | [
"MIT"
] | null | null | null | src/pywriter/yw/data_files.py | peter88213/yWrestler | 32a152e8b814983ecaef6e9861df1d6b7008568d | [
"MIT"
] | null | null | null | src/pywriter/yw/data_files.py | peter88213/yWrestler | 32a152e8b814983ecaef6e9861df1d6b7008568d | [
"MIT"
] | null | null | null | """Provide a class for yWriter XML data files.
Copyright (c) 2022 Peter Triesberger
For further information see https://github.com/peter88213/PyWriter
Published under the MIT License (https://opensource.org/licenses/mit-license.php)
"""
import os
import xml.etree.ElementTree as ET
from pywriter.pywriter_global... | 40.203704 | 94 | 0.645785 |
9ec69db8df0da1ef7f599450bd4a1d3143f43eb9 | 931 | py | Python | sdks/python/test/test_CrashingAppDetail.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/test/test_CrashingAppDetail.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/test/test_CrashingAppDetail.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import unittest
import appcente... | 23.275 | 93 | 0.72073 |
9ec6abba73f9e7cdef63aeed4ab6b1bfda7a0bc5 | 321 | py | Python | angrmanagement/ui/toolbars/states_toolbar.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 2 | 2022-01-23T21:43:54.000Z | 2022-02-02T08:20:20.000Z | angrmanagement/ui/toolbars/states_toolbar.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 1 | 2021-12-04T01:11:46.000Z | 2021-12-04T01:11:46.000Z | angrmanagement/ui/toolbars/states_toolbar.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 1 | 2021-05-17T05:46:19.000Z | 2021-05-17T05:46:19.000Z |
from .toolbar import Toolbar, ToolbarAction
class StatesToolbar(Toolbar):
def __init__(self, main_window):
super(StatesToolbar, self).__init__(main_window, 'States')
self.actions = [
ToolbarAction(None, "New state", "Create a new state...", main_window.open_newstate_dialog)
]... | 26.75 | 103 | 0.676012 |
9ec6bd577855cb5749efce0b392144c217b332da | 3,167 | py | Python | appengine/monorail/sitewide/test/grouplist_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/monorail/sitewide/test/grouplist_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/monorail/sitewide/test/grouplist_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 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 or at
# https://developers.google.com/open-source/licenses/bsd
"""Unit test for User Group List servlet."""
from __future__ import print_function
from __futur... | 37.258824 | 76 | 0.763814 |
9ec6d9752dcb3341c4a4af10410bfee6d1a482bf | 14,941 | py | Python | sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_identity_sql_control_settings_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_identity_sql_control_settings_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_identity_sql_control_settings_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # pylint: disable=too-many-lines
# 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) AutoRe... | 45.691131 | 237 | 0.696607 |
9ec6dfdac0c0e71cc487a6e1165c5acdbe0f1074 | 431 | py | Python | envoy/datadog_checks/envoy/utils.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | 2 | 2019-04-03T17:21:38.000Z | 2020-02-04T16:28:05.000Z | envoy/datadog_checks/envoy/utils.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | 10 | 2018-02-27T19:06:07.000Z | 2021-08-30T03:23:26.000Z | envoy/datadog_checks/envoy/utils.py | dvanderveer/integrations-core | 41dd9950296455457c9b7342584153678503d5aa | [
"BSD-3-Clause"
] | 6 | 2018-01-09T21:37:20.000Z | 2020-05-26T09:28:09.000Z | from collections import defaultdict
def tree():
return defaultdict(tree)
def make_metric_tree(metrics):
metric_tree = tree()
for metric in metrics:
parts = metric.split('.')
mapping = metric_tree
# We'll create keys as they are referenced. See:
# https://en.wikipedia.or... | 20.52381 | 56 | 0.642691 |
9ec6f6eb27affce496d85b8528af16bddeb6cfac | 6,235 | py | Python | spider/routeros.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | spider/routeros.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | spider/routeros.py | CNDB/CNDB | 2e3a41111f604cf2f4f22a7c9370bb3f753e3e88 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# #*** <License> ************************************************************#
# This module is part of the repository CNDB.
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http://www.c-tanzer.at/license/bsd_3c.html>.
# #*** </License> ***************... | 36.676471 | 78 | 0.413472 |
9ec71c1a6c0a6757a0b2d61473fa0d9169267206 | 1,678 | py | Python | smart_selects/views.py | ghrhomeLoveCode/django-smart-selects | f5f7b826a543da2e6eeac37729edff9b7b8e8a64 | [
"BSD-3-Clause"
] | 1 | 2020-07-19T03:27:17.000Z | 2020-07-19T03:27:17.000Z | smart_selects/views.py | ghrhomeLoveCode/django-smart-selects | f5f7b826a543da2e6eeac37729edff9b7b8e8a64 | [
"BSD-3-Clause"
] | null | null | null | smart_selects/views.py | ghrhomeLoveCode/django-smart-selects | f5f7b826a543da2e6eeac37729edff9b7b8e8a64 | [
"BSD-3-Clause"
] | null | null | null | from django.db.models import get_model
from django.http import HttpResponse
try:
import json
except ImportError:
from django.utils import simplejson as json
from smart_selects.utils import (get_keywords, sort_results, serialize_results,
get_queryset)
def filterchain(request, ... | 31.660377 | 79 | 0.709774 |
9ec71c21cd5424206ce95edfb58c02dd59666356 | 1,307 | py | Python | alipay/aop/api/response/AlipayCommerceZhimaPreorderCreateResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayCommerceZhimaPreorderCreateResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayCommerceZhimaPreorderCreateResponse.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.response.AlipayResponse import AlipayResponse
class AlipayCommerceZhimaPreorderCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceZhimaPreorderCreateResponse, self).__init__()
self._biz_type = None... | 28.413043 | 114 | 0.680184 |
9ec73389b4fdbe979b5e8185ef1e9ef3539282d6 | 1,246 | py | Python | tests/unit/test_path_info.py | drorata/dvc | b6bc65fcbf269b94b7c1ce2d9dff641dedb039b0 | [
"Apache-2.0"
] | 1 | 2019-09-02T00:28:11.000Z | 2019-09-02T00:28:11.000Z | tests/unit/test_path_info.py | drorata/dvc | b6bc65fcbf269b94b7c1ce2d9dff641dedb039b0 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_path_info.py | drorata/dvc | b6bc65fcbf269b94b7c1ce2d9dff641dedb039b0 | [
"Apache-2.0"
] | 1 | 2019-09-02T00:29:40.000Z | 2019-09-02T00:29:40.000Z | import pytest
import copy
from dvc.path_info import URLInfo, CloudURLInfo
@pytest.mark.parametrize("cls", [URLInfo, CloudURLInfo])
def test_url_info_str(cls):
u = cls("ssh://user@test.com:/test1/")
assert u.url == "ssh://user@test.com/test1/"
assert str(u) == u.url
@pytest.mark.parametrize("cls", [URLI... | 27.688889 | 56 | 0.647673 |
9ec7581ee94ce7ed2d04a800bf7a48fa52d0d365 | 1,970 | py | Python | SafeRLBench/test/test_integration.py | befelix/Safe-RL-Benchmark | 6a126f215c3d72e2d56d5b516087f820554ad9c8 | [
"MIT"
] | 19 | 2017-04-05T09:42:20.000Z | 2021-03-26T00:56:43.000Z | SafeRLBench/test/test_integration.py | befelix/Safe-RL-Benchmark | 6a126f215c3d72e2d56d5b516087f820554ad9c8 | [
"MIT"
] | null | null | null | SafeRLBench/test/test_integration.py | befelix/Safe-RL-Benchmark | 6a126f215c3d72e2d56d5b516087f820554ad9c8 | [
"MIT"
] | 5 | 2017-10-16T10:58:33.000Z | 2018-11-14T14:13:42.000Z | from SafeRLBench import config
from SafeRLBench import Bench, BenchConfig
from SafeRLBench.algo import PolicyGradient
from SafeRLBench.envs import LinearCar
from SafeRLBench.policy import LinearPolicy
from SafeRLBench.measure import BestPerformance
from unittest2 import TestCase
import logging
logger = logging.get... | 31.774194 | 64 | 0.586294 |
9ec7841a173dc4c19d7dac5f98e4c9ddedd5460c | 157 | py | Python | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 7 | 2019-06-10T12:27:25.000Z | 2021-07-23T16:36:04.000Z | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 12 | 2017-05-28T10:59:31.000Z | 2021-05-17T20:11:00.000Z | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 5 | 2017-08-27T20:13:45.000Z | 2022-02-14T06:33:14.000Z | from numpy import reshape
def vec(x):
return reshape(x, (-1,) + x.shape[2:], order="F")
def unvec(x, shape):
return reshape(x, shape, order="F")
| 15.7 | 53 | 0.611465 |
9ec7a096905841a0bbda30018db9ec0dab66cc22 | 1,706 | py | Python | tests/pools/test_pool_config.py | hulatang/skynet-blockchain | d7d6f7ec84731c13b9d6d307bb171cf0e266be82 | [
"Apache-2.0"
] | 7 | 2021-09-07T02:14:15.000Z | 2022-03-27T06:42:35.000Z | tests/pools/test_pool_config.py | hulatang/skynet-blockchain | d7d6f7ec84731c13b9d6d307bb171cf0e266be82 | [
"Apache-2.0"
] | 1 | 2021-10-21T16:38:56.000Z | 2021-11-15T13:03:15.000Z | tests/pools/test_pool_config.py | hulatang/skynet-blockchain | d7d6f7ec84731c13b9d6d307bb171cf0e266be82 | [
"Apache-2.0"
] | 3 | 2021-10-21T07:17:40.000Z | 2022-03-16T12:57:09.000Z | # flake8: noqa: E501
from pathlib import Path
from blspy import AugSchemeMPL, PrivateKey
from skynet.pools.pool_config import PoolWalletConfig
from skynet.util.config import load_config, save_config, create_default_skynet_config
def test_pool_config():
test_root = Path("/tmp")
test_path = Path("/tmp/config"... | 38.772727 | 127 | 0.750879 |
9ec7c32489ee72c441939e1275e07f76ea3f145d | 1,284 | py | Python | askmodel.py | everthemore/physics2vec | d437efa21cb56423fba6653cf48af3e528b26114 | [
"MIT"
] | 15 | 2017-11-26T06:51:07.000Z | 2019-07-29T13:49:52.000Z | askmodel.py | everthemore/physics2vec | d437efa21cb56423fba6653cf48af3e528b26114 | [
"MIT"
] | 1 | 2018-07-05T07:42:54.000Z | 2018-07-05T17:12:24.000Z | askmodel.py | everthemore/physics2vec | d437efa21cb56423fba6653cf48af3e528b26114 | [
"MIT"
] | 8 | 2017-11-29T22:51:02.000Z | 2020-02-17T21:32:43.000Z | import numpy as np
import argparse
import gensim
parser = argparse.ArgumentParser(description="Ask a trained Word2Vec model some questions")
parser.add_argument('--input', type=str, required=True,
help='a trained model file')
parser.add_argument('--add', type=str, nargs='*', default="",
... | 28.533333 | 91 | 0.662773 |
9ec7c401af1c4ad277145393aba0a32be1b1ea6c | 126,798 | py | Python | pygsti/data/dataset.py | maij/pyGSTi | 70e83e05fa689f53550feb3914c4fac40ca4a943 | [
"Apache-2.0"
] | 73 | 2016-01-28T05:02:05.000Z | 2022-03-30T07:46:33.000Z | pygsti/data/dataset.py | 00mjk/pyGSTi | 4f8bf5337b01b7afcb7b0580b717b5d1fe281be4 | [
"Apache-2.0"
] | 113 | 2016-02-25T15:32:18.000Z | 2022-03-31T13:18:13.000Z | pygsti/data/dataset.py | 00mjk/pyGSTi | 4f8bf5337b01b7afcb7b0580b717b5d1fe281be4 | [
"Apache-2.0"
] | 41 | 2016-03-15T19:32:07.000Z | 2022-02-16T10:22:05.000Z | """
Defines the DataSet class and supporting classes and functions
"""
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, th... | 40.420147 | 120 | 0.586665 |
9ec7df163b1425f917e9ec51559efad3e6f05e75 | 6,242 | py | Python | tensorflow/compiler/aot/tests/make_test_graphs.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 71 | 2017-05-25T16:02:15.000Z | 2021-06-09T16:08:08.000Z | tensorflow/compiler/aot/tests/make_test_graphs.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/compiler/aot/tests/make_test_graphs.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 31 | 2018-09-11T02:17:17.000Z | 2021-12-15T10:33:35.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 35.067416 | 80 | 0.71884 |
9ec7f6d59a5e400cc39ec62680a86a7983607117 | 20,229 | py | Python | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-07-15T09:50:14.000Z | 2020-07-15T09:50:14.000Z | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | # Copyright (C) 2010 Google 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:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | 46.184932 | 129 | 0.680113 |
9ec812ca819a46fb46231f9eaa418518e36b4127 | 10,989 | py | Python | sasmodels/models/parallelepiped.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | sasmodels/models/parallelepiped.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | sasmodels/models/parallelepiped.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | # parallelepiped model
# Note: model title and parameter table are inserted automatically
r"""
Definition
----------
This model calculates the scattering from a rectangular solid
(:numref:`parallelepiped-image`).
If you need to apply polydispersity, see also :ref:`rectangular-prism`. For
information about polarised an... | 40.549815 | 80 | 0.648467 |
9ec87d95b13be77f3b744fe2fb0a8471f108d418 | 4,846 | py | Python | Element_Analytics/Element_Analytics/settings.py | drproduck/Element-Analytics | aa1a77578e6401b4e82ce9fe9072c796496d878d | [
"MIT"
] | 1 | 2019-12-09T09:43:30.000Z | 2019-12-09T09:43:30.000Z | Element_Analytics/Element_Analytics/settings.py | drproduck/Element-Analytics | aa1a77578e6401b4e82ce9fe9072c796496d878d | [
"MIT"
] | 37 | 2018-02-04T04:41:46.000Z | 2018-04-29T20:39:09.000Z | Element_Analytics/Element_Analytics/settings.py | drproduck/Element-Analytics | aa1a77578e6401b4e82ce9fe9072c796496d878d | [
"MIT"
] | null | null | null | """
Django settings for Element_Analytics project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
im... | 27.224719 | 122 | 0.717499 |
9ec8992c6d4273e260d7307d7368f3cf67c56cd8 | 8,514 | py | Python | contrib/opencensus-ext-flask/opencensus/ext/flask/flask_middleware.py | olance/opencensus-python | 577fb61ab26513e3b448b6696432eefb0b11fa73 | [
"Apache-2.0"
] | 1 | 2019-09-21T13:52:19.000Z | 2019-09-21T13:52:19.000Z | contrib/opencensus-ext-flask/opencensus/ext/flask/flask_middleware.py | dronedeploy/opencensus-python | 486263621373a0b2cce601a86cb89d43bd8c16a3 | [
"Apache-2.0"
] | null | null | null | contrib/opencensus-ext-flask/opencensus/ext/flask/flask_middleware.py | dronedeploy/opencensus-python | 486263621373a0b2cce601a86cb89d43bd8c16a3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017, OpenCensus 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 or agreed to in w... | 38.524887 | 79 | 0.627085 |
9ec8a9b2f49c1dec3da58eaa1fcfbd4bf51a8efc | 23,916 | py | Python | dactyl/page.py | jakeatdocforce/dactyl | 91ae98cc448dd178a7129ed66e84888b9908b526 | [
"MIT"
] | 61 | 2017-03-22T09:21:02.000Z | 2021-12-16T21:23:41.000Z | dactyl/page.py | jakeatdocforce/dactyl | 91ae98cc448dd178a7129ed66e84888b9908b526 | [
"MIT"
] | 61 | 2017-02-22T01:07:25.000Z | 2022-02-24T01:08:46.000Z | dactyl/page.py | ripple/dactyl | c8f0542cb69277c7e8198b155ab70a6a3b6cec6c | [
"MIT"
] | 28 | 2017-05-29T13:20:06.000Z | 2022-03-26T16:42:20.000Z | ################################################################################
## Dactyl Page Class
##
## Handles the loading, default values, preprocessing, and content parsing
## for a single HTML page of output.
################################################################################
import jinja2
import ... | 39.661692 | 188 | 0.536377 |
9ec8b6091fdebf9274381a3163851263975753b7 | 3,562 | py | Python | examples/deep.py | mehulrastogi/genrl | 589a3619497b38eaa376168c78b9f84d4ff434e5 | [
"MIT"
] | 1 | 2020-06-20T21:20:14.000Z | 2020-06-20T21:20:14.000Z | examples/deep.py | mehulrastogi/genrl | 589a3619497b38eaa376168c78b9f84d4ff434e5 | [
"MIT"
] | null | null | null | examples/deep.py | mehulrastogi/genrl | 589a3619497b38eaa376168c78b9f84d4ff434e5 | [
"MIT"
] | null | null | null | import argparse
from genrl.agents import A2C, DDPG, DQN, PPO1, SAC, TD3, VPG
from genrl.environments import VectorEnv
from genrl.trainers import OffPolicyTrainer, OnPolicyTrainer
def main(args):
ALGOS = {
"sac": SAC,
"a2c": A2C,
"ppo": PPO1,
"ddpg": DDPG,
"td3": TD3,
... | 27.828125 | 88 | 0.575239 |
9ec8badd7161c5428282ef05c90e07bc2d696de9 | 11,171 | py | Python | graphene_federation/tests/test_annotation_corner_cases.py | Koldar/graphene-federation | 355c6b2c4cee6c1a9c8c00a4ab066c41f6976766 | [
"MIT"
] | null | null | null | graphene_federation/tests/test_annotation_corner_cases.py | Koldar/graphene-federation | 355c6b2c4cee6c1a9c8c00a4ab066c41f6976766 | [
"MIT"
] | null | null | null | graphene_federation/tests/test_annotation_corner_cases.py | Koldar/graphene-federation | 355c6b2c4cee6c1a9c8c00a4ab066c41f6976766 | [
"MIT"
] | null | null | null | import pytest
from graphql import graphql
from graphene import ObjectType, ID, String, Field
from .. import graphql_compatibility
from ..entity import key
from ..extend import extend, external, requires
from ..main import build_schema
SIMILAR_FIELD_SCHEMA_2 = """schema {
query: Query
}
type ChatMessage {
id: I... | 17.675633 | 106 | 0.645869 |
9ec90ac8c10185121f556aeb2e20f7d3471d917b | 72,586 | py | Python | synapse/handlers/federation_event.py | jkanefendt/synapse | a621ba0259eec3501e77a2812f77ff4ceae346f9 | [
"Apache-2.0"
] | null | null | null | synapse/handlers/federation_event.py | jkanefendt/synapse | a621ba0259eec3501e77a2812f77ff4ceae346f9 | [
"Apache-2.0"
] | null | null | null | synapse/handlers/federation_event.py | jkanefendt/synapse | a621ba0259eec3501e77a2812f77ff4ceae346f9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The Matrix.org Foundation C.I.C.
#
# 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 a... | 39.214479 | 99 | 0.598545 |
9ec914f2e7835bd81960f316c9149c114e36afdb | 29,293 | py | Python | external/sbml/bindings/swig/swigdoc.py | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | 1 | 2019-08-22T17:17:41.000Z | 2019-08-22T17:17:41.000Z | external/sbml/bindings/swig/swigdoc.py | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | null | null | null | external/sbml/bindings/swig/swigdoc.py | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# @file swigdoc.py
# @brief Creates documentation for Java, Python, and Perl.
# @author Ben Bornstein
# @author Christoph Flamm
# @author Akiya Jouraku
# @author Michael Hucka
#
# $Id: swigdoc.py 10124 2009-08-28 12:04:51Z sarahkeating $
# $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sb... | 32.33223 | 102 | 0.604957 |
9ec94b42585edcc67e70482fde57f5eb9289e988 | 501 | py | Python | examples/resources/parse_resource_example_test.py | Fladdimir/casymda | 6cf599bed2229c4aff9bca31350604b38ef76138 | [
"MIT"
] | 19 | 2020-04-18T14:47:37.000Z | 2022-03-26T14:18:21.000Z | examples/resources/parse_resource_example_test.py | Fladdimir/casymda | 6cf599bed2229c4aff9bca31350604b38ef76138 | [
"MIT"
] | 4 | 2020-03-17T21:01:58.000Z | 2021-09-24T21:07:25.000Z | examples/resources/parse_resource_example_test.py | Fladdimir/casymda | 6cf599bed2229c4aff9bca31350604b38ef76138 | [
"MIT"
] | 4 | 2020-05-09T16:31:57.000Z | 2022-01-23T09:11:19.000Z | """create a casymda model from a bpmn file and a template"""
from casymda.bpmn.bpmn_parser import parse_bpmn
BPMN_PATH = "examples/resources/resource_example.bpmn"
TEMPLATE_PATH = "examples/resources/resource_example_template.py"
JSON_PATH = "examples/resources/_temp_bpmn.json"
MODEL_PATH = "examples/resources/resourc... | 29.470588 | 65 | 0.782435 |
9ec95f6c9db6477f53d42bca5bfd82f55330af23 | 2,696 | py | Python | tests/cli/test_utils.py | keppy/zenml | a2671d66201abfaf11894ef9010d7bb8619a63e7 | [
"Apache-2.0"
] | 1 | 2022-03-10T18:24:53.000Z | 2022-03-10T18:24:53.000Z | tests/cli/test_utils.py | keppy/zenml | a2671d66201abfaf11894ef9010d7bb8619a63e7 | [
"Apache-2.0"
] | null | null | null | tests/cli/test_utils.py | keppy/zenml | a2671d66201abfaf11894ef9010d7bb8619a63e7 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) ZenML GmbH 2020. 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... | 33.7 | 74 | 0.744065 |
9ec975c506d1570d23d8c6eac9797b5a2139bfe6 | 10,858 | py | Python | docker/dockerfile/WatchFtp/pureftpd_data/monitorfs.py | mytliulei/boundless | e2c756e80f838cdb49914a5967a2a9a30a04664f | [
"Apache-2.0"
] | 9 | 2015-02-10T08:22:00.000Z | 2021-07-05T15:12:41.000Z | docker/dockerfile/WatchFtp/pureftpd_data/monitorfs.py | mytliulei/boundless | e2c756e80f838cdb49914a5967a2a9a30a04664f | [
"Apache-2.0"
] | null | null | null | docker/dockerfile/WatchFtp/pureftpd_data/monitorfs.py | mytliulei/boundless | e2c756e80f838cdb49914a5967a2a9a30a04664f | [
"Apache-2.0"
] | 6 | 2016-04-06T09:26:43.000Z | 2021-06-15T04:47:47.000Z | #!/usr/bin/env python
'''
'''
import pyinotify
import redis
import sys
import os,os.path
import re
import shutil
import time
import filecmp
RedisPool = None
class EventHandler(pyinotify.ProcessEvent):
'''
'''
def my_init(self,watch_path=None,copy_path=None,ftpbase_path=None,codelistkey='switch:codelist... | 36.931973 | 122 | 0.547523 |
9ec98b26ab8eeeeb2c28548999beaa1a18103bd3 | 2,905 | py | Python | eastlake/tests/test_execution.py | des-science/eastlake | bbfd28a1426d178cc7ce2f1cd87e7245779c5527 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T14:01:02.000Z | 2022-03-29T14:01:02.000Z | eastlake/tests/test_execution.py | des-science/eastlake | bbfd28a1426d178cc7ce2f1cd87e7245779c5527 | [
"BSD-3-Clause"
] | 1 | 2021-06-11T11:33:14.000Z | 2021-06-11T11:33:14.000Z | eastlake/tests/test_execution.py | des-science/eastlake | bbfd28a1426d178cc7ce2f1cd87e7245779c5527 | [
"BSD-3-Clause"
] | null | null | null | import galsim
import galsim.config
import tempfile
import fitsio as fio
import numpy as np
import os
DEMO1_CONFIG = """\
pipeline:
steps: [galsim]
# The gal field defines what kind of galaxy profile to use.
gal :
# One of the simplest profiles is a Gaussian.
type : Gaussian
# Gaussian profiles have a... | 35.426829 | 93 | 0.689501 |
9ec9b7515691cf5d732ccbed65e757932e35305a | 7,406 | py | Python | utils/hm_cluster_predict.py | PanZiwei/nanome | 6632e9165391cd8c556beb56e71a3fbda8065067 | [
"MIT"
] | 26 | 2021-11-02T23:26:41.000Z | 2022-02-18T01:27:24.000Z | utils/hm_cluster_predict.py | PanZiwei/nanome | 6632e9165391cd8c556beb56e71a3fbda8065067 | [
"MIT"
] | 12 | 2021-05-01T14:39:33.000Z | 2021-09-15T16:06:11.000Z | utils/hm_cluster_predict.py | PanZiwei/nanome | 6632e9165391cd8c556beb56e71a3fbda8065067 | [
"MIT"
] | 3 | 2021-05-07T20:18:44.000Z | 2021-08-18T03:17:56.000Z | #!/usr/bin/env python3
import os, sys, time
from collections import defaultdict
import glob
import numpy as np
from scipy import stats
import locale
##locale.setlocale(locale.LC_ALL, 'en_US') ## failed in google cloud
import tensorflow as tf
batch_size = 4096
cov_thrd = 5
def readBed(bedfile, t_chr=None, t_star... | 39.817204 | 170 | 0.582096 |
9ec9b89c2456a93d2d643dc0cdde1dfa95b399f6 | 2,473 | py | Python | src/test/tests/session/simplekeyframe.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 226 | 2018-12-29T01:13:49.000Z | 2022-03-30T19:16:31.000Z | src/test/tests/session/simplekeyframe.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 5,100 | 2019-01-14T18:19:25.000Z | 2022-03-31T23:08:36.000Z | src/test/tests/session/simplekeyframe.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 84 | 2019-01-24T17:41:50.000Z | 2022-03-10T10:01:46.000Z | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: simplekeyframe.py
#
# Tests: mesh - 3D unstructured, single domain
# plots - Pseudocolor, Mesh
# operators - Clip
#
# Notes: This test case uses a session fi... | 31.705128 | 85 | 0.642135 |
9ec9dcfba05488f23beed5f23e23a7da121c580a | 57,580 | py | Python | sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/test_detection_config_async.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2021-09-07T18:39:05.000Z | 2021-09-07T18:39:05.000Z | sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/test_detection_config_async.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/test_detection_config_async.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import py... | 71.52795 | 140 | 0.654238 |
9ec9e8a1ba1932f86a08fce7064b8d2a316f49b2 | 606 | py | Python | tests/servlets/__init__.py | babolivier/matrix-content-scanner-python | 3a9fe707467a551d06fedb94921d057f9177728f | [
"Apache-2.0"
] | 1 | 2021-12-10T18:59:02.000Z | 2021-12-10T18:59:02.000Z | tests/utils/__init__.py | babolivier/matrix-content-scanner-python | 3a9fe707467a551d06fedb94921d057f9177728f | [
"Apache-2.0"
] | null | null | null | tests/utils/__init__.py | babolivier/matrix-content-scanner-python | 3a9fe707467a551d06fedb94921d057f9177728f | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 The Matrix.org Foundation C.I.C.
#
# 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 la... | 43.285714 | 75 | 0.749175 |
9eca1bba82d614454cd190f1eccc01b13024ac72 | 17,644 | py | Python | asposeimagingcloud/models/odg_metadata.py | aspose-imaging-cloud/aspose-imaging-cloud-python | 9280a4a1aa415cb569ec26a05792b33186d31a85 | [
"MIT"
] | 1 | 2022-01-14T10:06:26.000Z | 2022-01-14T10:06:26.000Z | asposeimagingcloud/models/odg_metadata.py | aspose-imaging-cloud/aspose-imaging-cloud-python | 9280a4a1aa415cb569ec26a05792b33186d31a85 | [
"MIT"
] | 3 | 2019-07-17T15:01:31.000Z | 2020-12-29T09:16:10.000Z | asposeimagingcloud/models/odg_metadata.py | aspose-imaging-cloud/aspose-imaging-cloud-python | 9280a4a1aa415cb569ec26a05792b33186d31a85 | [
"MIT"
] | null | null | null | # coding: utf-8
# ----------------------------------------------------------------------------
# <copyright company="Aspose" file="odg_metadata.py">
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtainin... | 30.264151 | 384 | 0.623215 |
9eca2bf765e74a0b25f6ae2cc4c233708bebe9cd | 6,469 | py | Python | models/stackhourglass.py | tdowrick/PSMNet | 9799abc8c6a4d3c105d931ee92e256768f9c5474 | [
"MIT"
] | null | null | null | models/stackhourglass.py | tdowrick/PSMNet | 9799abc8c6a4d3c105d931ee92e256768f9c5474 | [
"MIT"
] | null | null | null | models/stackhourglass.py | tdowrick/PSMNet | 9799abc8c6a4d3c105d931ee92e256768f9c5474 | [
"MIT"
] | null | null | null | from __future__ import print_function
import torch
import torch.nn as nn
import torch.utils.data
from torch.autograd import Variable
import torch.nn.functional as F
import math
from models.submodule import *
class hourglass(nn.Module):
def __init__(self, inplanes):
super(hourglass, self).__init__()
... | 39.932099 | 143 | 0.550781 |
9eca3dd46fb73f1e88606ec8d949c2919d979a03 | 21 | py | Python | btd6_memory_info/generated/UnityEngine/UI/Scrollbar/scrollbar.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/UnityEngine/UI/Scrollbar/scrollbar.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/UnityEngine/UI/Scrollbar/scrollbar.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | class Scrollbar: pass | 21 | 21 | 0.857143 |
9eca48b9759b15c48e027d137df8e1470e239f9e | 29,164 | py | Python | esi_leap/tests/db/sqlalchemy/test_api.py | samuel-zuk/esi-leap | 5c1fd5c29a17f2fad938f98f1ec922ee21e56dbf | [
"Apache-2.0"
] | null | null | null | esi_leap/tests/db/sqlalchemy/test_api.py | samuel-zuk/esi-leap | 5c1fd5c29a17f2fad938f98f1ec922ee21e56dbf | [
"Apache-2.0"
] | 41 | 2019-07-16T14:57:18.000Z | 2021-08-04T14:19:01.000Z | esi_leap/tests/db/sqlalchemy/test_api.py | samuel-zuk/esi-leap | 5c1fd5c29a17f2fad938f98f1ec922ee21e56dbf | [
"Apache-2.0"
] | 13 | 2019-03-29T14:33:33.000Z | 2022-01-17T20:03:21.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.781915 | 79 | 0.629543 |
9eca5af774b4070ec54f186e11f52ec9379d3cec | 901 | py | Python | bfgame/factories/recipes/items/lights/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bfgame/factories/recipes/items/lights/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bfgame/factories/recipes/items/lights/base.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib.items.lights.base import LightItem
from bfgame import components
from bfgame.factories.recipes import listing
from bfgame.factories.recipes.base import Recipe
from bfgame.factories.recipes.items.base import ItemRecipe
# noinspection PyTypeChecker
@listing.register
class LightRecipe(Recipe):
name = "Bas... | 31.068966 | 66 | 0.692564 |
9eca93fd56872f70cf742de887d5a8f9445ee017 | 98,048 | py | Python | SCRAPE/Lib/site-packages/twisted/internet/interfaces.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/interfaces.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/interfaces.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.
"""
Interface documentation.
Maintainer: Itamar Shtull-Trauring
"""
from typing import (
TYPE_CHECKING,
Any,
AnyStr,
Callable,
Iterable,
List,
Mapping,
Optional,
Sequence,
Tuple,
Union,
)
from zope.in... | 35.576197 | 90 | 0.637626 |
9eca985b68715b2fe775778c601f5d11c6efc761 | 436 | py | Python | test/integrationtests/test_output_test2.py | mudkipmaster/gwlf-e | 9e058445537dd32d1916f76c4b73ca64261771cd | [
"Apache-2.0"
] | null | null | null | test/integrationtests/test_output_test2.py | mudkipmaster/gwlf-e | 9e058445537dd32d1916f76c4b73ca64261771cd | [
"Apache-2.0"
] | 6 | 2018-07-24T22:46:28.000Z | 2018-07-29T19:13:09.000Z | test/integrationtests/test_output_test2.py | mudkipmaster/gwlf-e | 9e058445537dd32d1916f76c4b73ca64261771cd | [
"Apache-2.0"
] | 1 | 2018-07-24T18:22:01.000Z | 2018-07-24T18:22:01.000Z | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from test_output import TestOutput
class test2_TestOutput(TestOutput):
"""
Tests model generated output versus known
static output.
"""
__test__ = True
@class... | 22.947368 | 82 | 0.727064 |
9ecaae83a81c0d0c92552aa58320df34dbb4ed72 | 3,199 | py | Python | pycep/cepcli.py | crlorentzen/pycep | 5b0cff5a13e1e54c0b3fc3f260601f927607f530 | [
"Apache-2.0"
] | 4 | 2020-02-18T23:50:08.000Z | 2021-12-09T21:42:03.000Z | pycep/cepcli.py | crlorentzen/pycep | 5b0cff5a13e1e54c0b3fc3f260601f927607f530 | [
"Apache-2.0"
] | 9 | 2020-02-14T20:02:41.000Z | 2021-06-29T16:18:48.000Z | pycep/cepcli.py | crlorentzen/pycep | 5b0cff5a13e1e54c0b3fc3f260601f927607f530 | [
"Apache-2.0"
] | 2 | 2021-01-14T17:12:56.000Z | 2021-01-26T16:46:22.000Z | #!/usr/bin/env python
"""The pycep cli python package."""
# coding=utf-8
import click
import json
import ujson
from logging import DEBUG, ERROR, basicConfig, error
from pycep import __version__
from pycep.plugins import load_plugins
from pycep.render import extract_tar_file
def open_input_file(input_file, file_type... | 36.770115 | 119 | 0.658956 |
9ecab3ef28c07189a59b0b83760bef55e79b2f7a | 1,513 | py | Python | nhps/functions/compare_ess.py | Anirudh-Murali/neural-hawkes-particle-smoothing | 96b258838bdab33b781008daeedfa61dec0d553c | [
"BSD-3-Clause"
] | 37 | 2019-05-14T04:42:40.000Z | 2021-09-10T11:51:11.000Z | nhps/functions/compare_ess.py | wangjingbo1219/neural-hawkes-particle-smoothing | 8f33c75038e739a2a0b61db854dd97d918ce2d19 | [
"BSD-3-Clause"
] | 5 | 2019-08-18T12:06:36.000Z | 2021-09-21T22:00:29.000Z | nhps/functions/compare_ess.py | wangjingbo1219/neural-hawkes-particle-smoothing | 8f33c75038e739a2a0b61db854dd97d918ce2d19 | [
"BSD-3-Clause"
] | 12 | 2019-08-11T22:41:55.000Z | 2020-11-24T18:11:34.000Z | import os
import pickle
import argparse
import numpy as np
from nhps.sigtest.pair_perm import PairPerm
def main():
parser = argparse.ArgumentParser("Give me two particle cache and I can do a significance test"
"for their effective sampling size.")
parser.add_argument(
... | 33.622222 | 102 | 0.609385 |
9ecacf812abfa22126da0d93d4e1c2a39d0d7ff7 | 4,414 | py | Python | chemicalx/data/labeledtriples.py | andrejlamov/chemicalx | 02cf0fdffd3bfac15dc8454a4f60ac615f2045b4 | [
"Apache-2.0"
] | null | null | null | chemicalx/data/labeledtriples.py | andrejlamov/chemicalx | 02cf0fdffd3bfac15dc8454a4f60ac615f2045b4 | [
"Apache-2.0"
] | null | null | null | chemicalx/data/labeledtriples.py | andrejlamov/chemicalx | 02cf0fdffd3bfac15dc8454a4f60ac615f2045b4 | [
"Apache-2.0"
] | null | null | null | """A module for the labeled triples class."""
from typing import ClassVar, Iterable, Mapping, Optional, Sequence, Tuple, Union
import pandas as pd
from sklearn.model_selection import train_test_split
__all__ = ["LabeledTriples"]
class LabeledTriples:
"""Labeled triples for drug pair scoring."""
columns: C... | 33.694656 | 116 | 0.624377 |
9ecad59fa0cf34ded7b7fd5f7ed98fa4a4c52000 | 11,925 | py | Python | L5_TTPC1_cADpyr232_1/Simulator.py | cigani/NEST | 06928d695c267725cd9795b87b71848a589fa106 | [
"MIT"
] | null | null | null | L5_TTPC1_cADpyr232_1/Simulator.py | cigani/NEST | 06928d695c267725cd9795b87b71848a589fa106 | [
"MIT"
] | null | null | null | L5_TTPC1_cADpyr232_1/Simulator.py | cigani/NEST | 06928d695c267725cd9795b87b71848a589fa106 | [
"MIT"
] | null | null | null | import os
import sys
PATH_FLAT = '/Users/mj/Documents/NEST/'
sys.path.append('/Applications/NEURON-7.4/')
from bisect import bisect_left
import neuron
import numpy as np
import CurrentGenerator
import cPickle as pickle
def data_records(dictionaryofvalues, path):
import h5py
import time
timestr = time.... | 33.033241 | 80 | 0.555891 |
9ecaf99b791afc50846a8dfe8020244e5f42ad59 | 4,524 | py | Python | naivePredictions.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | 2 | 2018-10-10T09:32:34.000Z | 2019-03-28T08:42:31.000Z | naivePredictions.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | null | null | null | naivePredictions.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 28 18:15:16 2018
@author: Simon
"""
import numpy as np
from ase.db import connect
import pandas as pd
import math
data = connect('oqmd12.db')
atomsList=[]
energies=[]
for row in data.select():
atomsList.append(data.get_atoms(row['id']))
... | 23.685864 | 179 | 0.700928 |
9ecb25b1b707f6035dee980a2f47b43277f7a793 | 2,485 | py | Python | hfpy_code/chapter11/page429.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/page429.py | tdean1995/HFPythonSandbox | dc72257e4353c5bca7a2c401d18587c6d799f9a1 | [
"Apache-2.0"
] | null | null | null | hfpython_code/hfpy_code/chapter11/page429.py | tdean1995/HFPythonSandbox | dc72257e4353c5bca7a2c401d18587c6d799f9a1 | [
"Apache-2.0"
] | 1 | 2020-06-02T17:47:22.000Z | 2020-06-02T17:47:22.000Z |
import time
import android
from find_it import find_closest
from tm2secs2tm import time2secs, secs2time, format_time
def find_nearest_time(look_for, target_data):
what = time2secs(look_for)
where = [time2secs(t) for t in target_data]
res = find_closest(what, where)
return(secs2time(res))
distances =... | 37.089552 | 93 | 0.674849 |
9ecb356ce1b467c7eb333c6846639e59514358d0 | 6,204 | py | Python | heatrapy/mats/calmatpro.py | djsilva99/heatrapy | 91902e8fd9e216638855856ed7c0757bbade11c2 | [
"MIT"
] | 31 | 2019-03-21T15:41:18.000Z | 2022-03-21T15:41:49.000Z | heatrapy/mats/calmatpro.py | danieljosesilva/heatrapy | 5d1297d67ea237b2c6537133ace8c1f4a6091518 | [
"MIT"
] | 9 | 2020-09-01T08:50:52.000Z | 2022-03-12T00:55:53.000Z | heatrapy/mats/calmatpro.py | djsilva99/heatrapy | 91902e8fd9e216638855856ed7c0757bbade11c2 | [
"MIT"
] | 7 | 2020-03-10T19:34:32.000Z | 2022-03-28T01:12:59.000Z | """Contains the class calmatpro.
Used to access the properties of materials from the database.
"""
import numpy as np
class CalMatPro:
"""CalMatPro class.
Loads and gives physical properties of materials from the database
"""
def __init__(self, name_tadi, name_tadd, name_cpa, name_cp0, name_k0,
... | 28.328767 | 79 | 0.570761 |
9ecb52fb91f6fee180b405899490569a1106fa88 | 1,909 | py | Python | piperider/utils/aws/glue.py | zinkosuke/piperider | 1157862b8eeaabb075d04753202074a5f8ee6d24 | [
"MIT"
] | null | null | null | piperider/utils/aws/glue.py | zinkosuke/piperider | 1157862b8eeaabb075d04753202074a5f8ee6d24 | [
"MIT"
] | 3 | 2021-04-03T15:00:02.000Z | 2021-04-08T12:17:15.000Z | piperider/utils/aws/glue.py | zinkosuke/piperider | 1157862b8eeaabb075d04753202074a5f8ee6d24 | [
"MIT"
] | 1 | 2021-04-03T14:57:25.000Z | 2021-04-03T14:57:25.000Z | from typing import Dict
from typing import Generator
from typing import List
import boto3
from piperider.types import AwsCredentials
def get_client(*, region_name: str, credentials: AwsCredentials = None):
if credentials is None:
credentials = {}
session = boto3.Session(region_name=region_name, **cr... | 23.8625 | 75 | 0.625982 |
9ecb69345dd635c2acafc00d3d394e9c4e3058a3 | 10,818 | py | Python | chapter11/07 Creating Stock Items.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | chapter11/07 Creating Stock Items.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | chapter11/07 Creating Stock Items.py | munnep/begin_to_code_with_python | 3ef14d90785526b6b26d262a7627eee73791d7d0 | [
"MIT"
] | null | null | null | # EG11-07 Creating Stock Items
from BTCInput import *
class StockItem(object):
'''
Stock item for the fashion shop
'''
show_instrumentation = False
def __init__(self, stock_ref, price, color, location):
if StockItem.show_instrumentation:
print('** StockItem __init__ called')
... | 32.486486 | 89 | 0.574505 |
9ecb92247f536d9ec6d90d18baaef32a35659748 | 17,687 | py | Python | TFLearn_modules/tfbinding_generator.py | robertstreeck/TFLearn | 4547cf6a916c9278b108e7fbb93ad1461a4bdcbf | [
"Apache-2.0"
] | null | null | null | TFLearn_modules/tfbinding_generator.py | robertstreeck/TFLearn | 4547cf6a916c9278b108e7fbb93ad1461a4bdcbf | [
"Apache-2.0"
] | null | null | null | TFLearn_modules/tfbinding_generator.py | robertstreeck/TFLearn | 4547cf6a916c9278b108e7fbb93ad1461a4bdcbf | [
"Apache-2.0"
] | null | null | null | #%%
import pandas as pd
import numpy as np
import tensorflow as tf
# for bam reading
#import deeptools.countReadsPerBin as crpb
from multiprocessing import Pool
from itertools import repeat
import os
# for fasta one hot encoding
from sklearn.preprocessing import OneHotEncoder
# for bias weight calculation
from scipy... | 31.983725 | 97 | 0.64652 |
9ecbb96a08fc759e07a1ba7a24363adf48888587 | 7,626 | py | Python | Basemaps/qgis_basemaps.py | monocilindro/qgis-earthengine-examples | 82aea8926d34ed3f4ad4a4a345ddbd225819d28f | [
"MIT"
] | 646 | 2019-12-03T06:09:03.000Z | 2022-03-28T03:37:08.000Z | Basemaps/qgis_basemaps.py | csaybar/qgis-earthengine-examples | ba8942683834d2847ff3246bdd1859b36e50fe44 | [
"MIT"
] | 10 | 2019-12-30T03:42:44.000Z | 2021-05-22T07:34:07.000Z | Basemaps/qgis_basemaps.py | csaybar/qgis-earthengine-examples | ba8942683834d2847ff3246bdd1859b36e50fe44 | [
"MIT"
] | 219 | 2019-12-06T02:20:53.000Z | 2022-03-30T15:14:27.000Z | """
This script should be run from the Python consol inside QGIS.
It adds online sources to the QGIS Browser.
Each source should contain a list with the folowing items (string type):
[sourcetype, title, authconfig, password, referer, url, username, zmax, zmin]
You can add or remove sources from the sources section of... | 110.521739 | 254 | 0.680173 |
9ecbc15acd80546567b492e12b4fd1c5fe4065c8 | 13,699 | py | Python | yggdrasil/metaschema/datatypes/tests/test_MetaschemaType.py | Xyzic/yggdrasil | 44369514ffdf01960bfcce418c172dc6dc564051 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/metaschema/datatypes/tests/test_MetaschemaType.py | Xyzic/yggdrasil | 44369514ffdf01960bfcce418c172dc6dc564051 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/metaschema/datatypes/tests/test_MetaschemaType.py | Xyzic/yggdrasil | 44369514ffdf01960bfcce418c172dc6dc564051 | [
"BSD-3-Clause"
] | null | null | null | import six
import numpy as np
import copy
import pprint
import jsonschema
from yggdrasil.metaschema.datatypes import MetaschemaTypeError, YGG_MSG_HEAD
from yggdrasil.tests import YggTestClassInfo, assert_equal
class TstMetaschemaTypeMeta(type):
r"""Meta class for setting up test information."""
def __new__(m... | 43.627389 | 88 | 0.578144 |
9ecc13b064134b3833133dae7c25e01b3cc2af0c | 2,444 | py | Python | JHDBot/cogs/verification.py | xnomas/JHDBot | f0f82c9fc338abb7dd917077552e16ee3ed2e598 | [
"MIT"
] | 20 | 2020-07-19T20:55:38.000Z | 2022-01-13T15:28:01.000Z | JHDBot/cogs/verification.py | xnomas/JHDBot | f0f82c9fc338abb7dd917077552e16ee3ed2e598 | [
"MIT"
] | 38 | 2020-07-20T23:01:46.000Z | 2022-01-23T15:17:59.000Z | JHDBot/cogs/verification.py | xnomas/JHDBot | f0f82c9fc338abb7dd917077552e16ee3ed2e598 | [
"MIT"
] | 13 | 2020-07-19T22:57:55.000Z | 2022-01-13T13:58:34.000Z | #!/usr/bin/env python3
import asyncio
import discord
from discord.ext import commands
class VerifyCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
# Current Verification method
@commands.command(aliases=["verification"])
async def verify(self, ctx, announcement_role=None):
t... | 46.113208 | 146 | 0.570786 |
9ecc29d741235638201c1e58a889c9b5ba5df4e0 | 7,435 | py | Python | test_models/test_ensemble/test_ensemble_n_neurons.py | pdoren/correntropy-and-ensembles-in-deep-learning | b8e39e0ea97395e9f4ef5e9b351551a89fedc885 | [
"MIT"
] | 1 | 2017-11-22T15:35:45.000Z | 2017-11-22T15:35:45.000Z | test_models/test_ensemble/test_ensemble_n_neurons.py | pdoren/correntropy-and-ensembles-in-deep-learning | b8e39e0ea97395e9f4ef5e9b351551a89fedc885 | [
"MIT"
] | null | null | null | test_models/test_ensemble/test_ensemble_n_neurons.py | pdoren/correntropy-and-ensembles-in-deep-learning | b8e39e0ea97395e9f4ef5e9b351551a89fedc885 | [
"MIT"
] | 1 | 2021-12-14T04:16:57.000Z | 2021-12-14T04:16:57.000Z | import sys
import os
sys.path.insert(0, os.path.abspath('../../'))
from theano import config
from deepensemble.utils import *
# import matplotlib.pylab as plt
from sklearn import model_selection
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')
plt.rcParams['font.family'] = 'serif'
plt.rcParams['fon... | 38.128205 | 128 | 0.516073 |
9ecc558c6e63b8160c8f02e0b4d6011b595e66d0 | 5,245 | py | Python | graphony/property.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | 3 | 2021-09-15T19:24:53.000Z | 2021-12-15T21:32:15.000Z | graphony/property.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | null | null | null | graphony/property.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | 1 | 2021-09-15T19:25:26.000Z | 2021-09-15T19:25:26.000Z | """Property objects.
"""
from functools import total_ordering
from pygraphblas import Matrix, BOOL, INT64, lib
from pygraphblas.gviz import draw_graph
from .edge import Edge, Hedge
from .node import Node
@total_ordering
class Property:
"""
Property object.
"""
def __init__(
self,
gr... | 31.220238 | 85 | 0.518208 |
9ecc5f552a7cef732e5c3e7c4724478562b06864 | 4,917 | py | Python | ros2_ws/src/algorithms/state_estimation/state_estimation_2d/launch/state_estimation_bag.launch.py | FastSense/rosbot-ros2 | c2d274ce179534fec5b2786a6f96b6d638019ac4 | [
"MIT"
] | null | null | null | ros2_ws/src/algorithms/state_estimation/state_estimation_2d/launch/state_estimation_bag.launch.py | FastSense/rosbot-ros2 | c2d274ce179534fec5b2786a6f96b6d638019ac4 | [
"MIT"
] | 2 | 2021-07-05T14:50:09.000Z | 2021-09-14T15:21:11.000Z | ros2_ws/src/algorithms/state_estimation/state_estimation_2d/launch/state_estimation_bag.launch.py | FastSense/metalbot | 063c897a16129d9aa88c2c7c52bdf6547af894e4 | [
"MIT"
] | null | null | null | from launch import LaunchDescription
from launch_ros.actions import Node
import launch
import launch_ros
from ament_index_python.packages import get_package_share_directory
import os
from ament_index_python.packages import get_package_share_directory
import launch
import launch_ros.actions
from launch import LaunchDes... | 34.87234 | 104 | 0.624771 |
9ecc86b6f4cc66cfaa1ab31351e6df3c6a37a2a3 | 4,389 | py | Python | userbot/modules/dogbin.py | FSharon/UserBot | e21c30ffc15143a97cd2a3ad133926b34b68b8f1 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2020-10-25T03:36:43.000Z | 2021-05-27T09:10:09.000Z | userbot/modules/dogbin.py | FSharon/UserBot | e21c30ffc15143a97cd2a3ad133926b34b68b8f1 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2021-07-16T10:10:09.000Z | 2021-12-19T23:34:15.000Z | userbot/modules/dogbin.py | minaricious/UserBot | e21c30ffc15143a97cd2a3ad133926b34b68b8f1 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 7 | 2020-10-27T03:00:57.000Z | 2021-09-02T12:17:54.000Z | # Copyright (C) 2019 The Raphielscape Company LLC.
#
# Licensed under the Raphielscape Public License, Version 1.d (the "License");
# you may not use this file except in compliance with the License.
#
""" Userbot module containing commands for interacting with dogbin(https://del.dog)"""
from requests import get, post,... | 33.503817 | 88 | 0.61244 |
9ecc8a6d9811b75517404c66a91ff0dc769cdf23 | 1,802 | py | Python | datastorage/cboe.py | khrapovs/datastorage | 264736343b6a461a07cdbcdf7ef7653add682f78 | [
"MIT"
] | null | null | null | datastorage/cboe.py | khrapovs/datastorage | 264736343b6a461a07cdbcdf7ef7653add682f78 | [
"MIT"
] | null | null | null | datastorage/cboe.py | khrapovs/datastorage | 264736343b6a461a07cdbcdf7ef7653add682f78 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Download and process CBOE data.
Volatility:
http://www.cboe.com/micro/vix/historical.aspx
Correlation:
http://www.cboe.com/micro/impliedcorrelation/
"""
from __future__ import print_function, division
import os
import urllib
import pandas as pd
import numpy as np
i... | 23.710526 | 71 | 0.653718 |
9eccbbff328142c006a8830deb2bab79f86552d4 | 27,466 | py | Python | gui_scripts/layout.py | francois-gaillot/XChemExplorer | 43298b32ea6e2aebcf064635f96727034712c05c | [
"MIT"
] | 10 | 2016-01-10T16:12:45.000Z | 2021-11-23T11:33:20.000Z | gui_scripts/layout.py | francois-gaillot/XChemExplorer | 43298b32ea6e2aebcf064635f96727034712c05c | [
"MIT"
] | 208 | 2017-06-30T10:32:12.000Z | 2022-03-29T10:38:32.000Z | gui_scripts/layout.py | francois-gaillot/XChemExplorer | 43298b32ea6e2aebcf064635f96727034712c05c | [
"MIT"
] | 8 | 2016-10-28T14:40:44.000Z | 2021-01-15T10:34:30.000Z | import multiprocessing
import subprocess
import sys, os
from PyQt4 import QtGui, QtCore, QtWebKit
from functools import partial
sys.path.append(os.path.join(os.getenv('XChemExplorer_DIR'), 'lib'))
sys.path.append(os.path.join(os.getenv('XChemExplorer_DIR'), 'web'))
sys.path.append(os.path.join(os.getenv('XChemExplorer... | 52.616858 | 135 | 0.513762 |
9eccc74ebd39c7a5aa9cf21b34c040681d9ebad0 | 847 | py | Python | tests/fixtures/transformation_fixures.py | bdolor/bcdc2bcdc | 7802e75d6595f89a80765b331b06f59122e5a866 | [
"Apache-2.0"
] | null | null | null | tests/fixtures/transformation_fixures.py | bdolor/bcdc2bcdc | 7802e75d6595f89a80765b331b06f59122e5a866 | [
"Apache-2.0"
] | null | null | null | tests/fixtures/transformation_fixures.py | bdolor/bcdc2bcdc | 7802e75d6595f89a80765b331b06f59122e5a866 | [
"Apache-2.0"
] | null | null | null | import os
import CKANTransform
import constants
import pytest
import logging
import tests.helpers.CKANDataHelpers as CKANDataHelpers
LOGGER = logging.getLogger(__name__)
@pytest.fixture(scope="session")
def TransformConfigDir():
pathHelper = CKANDataHelpers.CKAN_Test_Paths()
transConfDir = pathHelper.getTran... | 26.46875 | 75 | 0.794569 |
9ecceea8038da8ff04f1cc8e05a43c78de0240a1 | 8,546 | py | Python | filters/check_for_missed_MNVs_muts.py | nesilin/evolution_TALL_adults | f36d6ebaeb43376096c14fc9ca20116bc2febae6 | [
"Apache-2.0"
] | null | null | null | filters/check_for_missed_MNVs_muts.py | nesilin/evolution_TALL_adults | f36d6ebaeb43376096c14fc9ca20116bc2febae6 | [
"Apache-2.0"
] | null | null | null | filters/check_for_missed_MNVs_muts.py | nesilin/evolution_TALL_adults | f36d6ebaeb43376096c14fc9ca20116bc2febae6 | [
"Apache-2.0"
] | 1 | 2021-03-26T15:38:53.000Z | 2021-03-26T15:38:53.000Z | import sys, os
os.environ["PATH"] = os.path.dirname(sys.executable) + os.pathsep + os.environ["PATH"]
import pandas as pd
import click
import subprocess
import collections
def identify_possible_mnvs(df):
"""
Checks for consecutive variants in VCFs that might be dinucleotide variants. If this is the case they ... | 42.944724 | 115 | 0.598175 |
9eccf31f03266e646500c7f23f6d1cbe322b1d2f | 6,806 | py | Python | active_directory/datadog_checks/active_directory/active_directory.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | 4 | 2021-06-21T19:21:49.000Z | 2021-06-23T21:21:55.000Z | active_directory/datadog_checks/active_directory/active_directory.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | 1 | 2018-08-15T05:50:17.000Z | 2018-08-15T05:50:17.000Z | active_directory/datadog_checks/active_directory/active_directory.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | 1 | 2018-08-15T05:45:42.000Z | 2018-08-15T05:45:42.000Z | # (C) Datadog, Inc. 2013-2016
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
# datadog
from datadog_checks.checks.win import PDHBaseCheck
DEFAULT_COUNTERS = [
# counterset, instance of counter, counter name, metric name
# This set is from the Microsoft recommended counters to moni... | 113.433333 | 178 | 0.561269 |
9eccf3d53046f408df0700f9aa24477bee09c1f4 | 1,722 | py | Python | python/mediaUID.py | gspeed0689/photo-management-2022 | 2b1e65736bbe983cb6dd371ce22395afa7c04ce1 | [
"MIT"
] | null | null | null | python/mediaUID.py | gspeed0689/photo-management-2022 | 2b1e65736bbe983cb6dd371ce22395afa7c04ce1 | [
"MIT"
] | null | null | null | python/mediaUID.py | gspeed0689/photo-management-2022 | 2b1e65736bbe983cb6dd371ce22395afa7c04ce1 | [
"MIT"
] | null | null | null | import config
import hashlib
import secrets
import uuid
class MediaUID:
def __init__(self, input_image=None):
self.uid_valid_methods = ["TOKEN", "UUID4", "UUID-4", "HASH-MD5", "HASH-SHA"]
self.filepath = input_image
self.uid_method = config.uid_method
if self.uid_method == "TOKEN":
... | 43.05 | 114 | 0.555749 |
9ecd0fef91b9f9709460bfbaf3b17c3ae696cc6f | 3,649 | py | Python | var/spack/repos/builtin/packages/aocc/package.py | BenWibking/spack | 49b3b43a4a9375210b578635d9240875a5f3106b | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2,360 | 2017-11-06T08:47:01.000Z | 2022-03-31T14:45:33.000Z | var/spack/repos/builtin/packages/aocc/package.py | BenWibking/spack | 49b3b43a4a9375210b578635d9240875a5f3106b | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 13,838 | 2017-11-04T07:49:45.000Z | 2022-03-31T23:38:39.000Z | var/spack/repos/builtin/packages/aocc/package.py | joequant/spack | e028ee0d5903045e1cdeb57550cbff61f2ffb2fa | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1,793 | 2017-11-04T07:45:50.000Z | 2022-03-30T14:31:53.000Z | # Copyright 2013-2021 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 Aocc(Package):
'''
The AOCC compiler system is a high performance,
production qua... | 46.782051 | 99 | 0.6906 |
9ecd5ed74e7ba4c19d8f66a45132685b9a176940 | 176 | py | Python | simple_clinic/__init__.py | sebanie15/simple_clinic | 4dc942b0549ee6397a0e89dd7aa03eb8580b4a5a | [
"MIT"
] | null | null | null | simple_clinic/__init__.py | sebanie15/simple_clinic | 4dc942b0549ee6397a0e89dd7aa03eb8580b4a5a | [
"MIT"
] | null | null | null | simple_clinic/__init__.py | sebanie15/simple_clinic | 4dc942b0549ee6397a0e89dd7aa03eb8580b4a5a | [
"MIT"
] | null | null | null | """Top-level package for simple_clinic."""
__author__ = """Sebastian Nieciąg"""
__email__ = 'sebanie15@gmail.com'
__version__ = '0.1.0'
from .clinic import Patient, Diseases
| 22 | 42 | 0.727273 |
9ecd745239616438eff68a7cf55a04612bb62979 | 1,569 | py | Python | notebooks/examples/summarize_strings.py | ieaves/tenzing | 92d39c1c3a5633d8074e0ffe8c2687c465aebbc8 | [
"MIT"
] | null | null | null | notebooks/examples/summarize_strings.py | ieaves/tenzing | 92d39c1c3a5633d8074e0ffe8c2687c465aebbc8 | [
"MIT"
] | null | null | null | notebooks/examples/summarize_strings.py | ieaves/tenzing | 92d39c1c3a5633d8074e0ffe8c2687c465aebbc8 | [
"MIT"
] | null | null | null | import pandas as pd
from visions.core.functional import type_detect_frame
from visions.core.implementations.typesets import visions_complete_set
from visions.application.summaries.summary import CompleteSummary
# Create a DataFrame with various string columns
df = pd.DataFrame(
{
"latin": ["orange", "appl... | 38.268293 | 84 | 0.608031 |
9ecd7d15ba49474ce9821e4d73fcf60c5275864b | 4,024 | py | Python | adb/fastboot_debug.py | Yare-Yare-Daze/python-adb | 80d324c78d2f1d2257d4ddb2f1c3130f529f4885 | [
"Apache-2.0"
] | null | null | null | adb/fastboot_debug.py | Yare-Yare-Daze/python-adb | 80d324c78d2f1d2257d4ddb2f1c3130f529f4885 | [
"Apache-2.0"
] | null | null | null | adb/fastboot_debug.py | Yare-Yare-Daze/python-adb | 80d324c78d2f1d2257d4ddb2f1c3130f529f4885 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 30.953846 | 78 | 0.68663 |
9ecdc33028402ae5e479a798f8d5a58471b0d3d2 | 555 | py | Python | applications/inverted_pendulum/launch_parameter.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2021-11-19T11:46:48.000Z | 2021-11-19T11:46:48.000Z | applications/inverted_pendulum/launch_parameter.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2021-11-22T07:48:03.000Z | 2021-11-22T07:48:03.000Z | applications/inverted_pendulum/launch_parameter.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2022-03-26T10:18:01.000Z | 2022-03-26T10:18:01.000Z | """Launch Inverted Pendulum experiments."""
import os
from itertools import product
from lsf_runner import init_runner, make_commands
cwd = os.path.dirname(os.path.realpath(__file__))
script = "run.py"
AGENTS = ["RHUCRL", "HUCRL", "baseline"]
ROBUSTNESS = ["parameter"]
ALPHAS = [0]
runner = init_runner(f"Inverted ... | 24.130435 | 70 | 0.722523 |
9ecdd8c92adb21574014cf6d6ca9c35b015a0e68 | 746 | py | Python | src/Python3/A118733/exsample.py | umyuu/Sample | 66e8cd725b682db4c9bf93fb80786eea8cbad19d | [
"MIT"
] | null | null | null | src/Python3/A118733/exsample.py | umyuu/Sample | 66e8cd725b682db4c9bf93fb80786eea8cbad19d | [
"MIT"
] | null | null | null | src/Python3/A118733/exsample.py | umyuu/Sample | 66e8cd725b682db4c9bf93fb80786eea8cbad19d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime
import requests
def main() -> None:
url = 'https://www.google.co.jp/'
querystring = {"Id": "3333", "Id2": "4444", "from": "xxx", "to": "yyy"}
headers = {"Accept": "application/json"}
response = requests.request("GET", url, headers=headers, params=q... | 31.083333 | 80 | 0.558981 |
9ecded65952b51616e1cb3d5cfe6ca9c98a71c33 | 136 | py | Python | app/user_profile/__init__.py | theposter/food-server | d6a1a9e1300d35ff4642463f0a73074b1440c648 | [
"MIT"
] | null | null | null | app/user_profile/__init__.py | theposter/food-server | d6a1a9e1300d35ff4642463f0a73074b1440c648 | [
"MIT"
] | null | null | null | app/user_profile/__init__.py | theposter/food-server | d6a1a9e1300d35ff4642463f0a73074b1440c648 | [
"MIT"
] | null | null | null | from flask import Blueprint
user_profile_blueprint = Blueprint('user_profile_blueprint', __name__)
from app.user_profile import routes | 27.2 | 70 | 0.852941 |
9ece18ee3692c0dbddb448b83223b6373887a6f6 | 10,582 | py | Python | wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/tests/19/train_3.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/tests/19/train_3.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | wienerschnitzelgemeinschaft/src/Christof/models/ResNet34/tests/19/train_3.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | import os, sys
#os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="1"
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import skimage.io
from skimage.transform import resize
from imgaug import augmenters as iaa
from tqdm import tqdm
import PIL
from PIL import Image... | 35.871186 | 137 | 0.669155 |
9ece226b4de2114fed0c86157392caa86c76faf8 | 427 | py | Python | github/methods/base/delete_with_token.py | appheap/PyGithub | 2442a2512a708c6463f81d8398fd91090e134df1 | [
"MIT"
] | 1 | 2022-03-16T21:33:37.000Z | 2022-03-16T21:33:37.000Z | github/methods/base/delete_with_token.py | appheap/PyGithub | 2442a2512a708c6463f81d8398fd91090e134df1 | [
"MIT"
] | null | null | null | github/methods/base/delete_with_token.py | appheap/PyGithub | 2442a2512a708c6463f81d8398fd91090e134df1 | [
"MIT"
] | 1 | 2022-03-16T21:28:06.000Z | 2022-03-16T21:28:06.000Z | import json
import requests
from github.scaffold import Scaffold
class DeleteWithToken(Scaffold):
def delete_with_token(
self,
*,
url: str,
data: dict = None,
) -> 'requests.Response':
response = requests.delete(
url,
headers=se... | 20.333333 | 51 | 0.559719 |
9ece2682b2cb7a97bd6f3010ba6dd6f98587bf94 | 605 | py | Python | src/orion/algo/grid_search/__init__.py | bouthilx/orion.algo.grid_search | 730af4273f355510d0f81e55c65fc8257cdb0f9b | [
"BSD-3-Clause"
] | null | null | null | src/orion/algo/grid_search/__init__.py | bouthilx/orion.algo.grid_search | 730af4273f355510d0f81e55c65fc8257cdb0f9b | [
"BSD-3-Clause"
] | null | null | null | src/orion/algo/grid_search/__init__.py | bouthilx/orion.algo.grid_search | 730af4273f355510d0f81e55c65fc8257cdb0f9b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:mod:`orion.algo.grid_search -- Grid Search
================================================
.. module:: grid_search
:platform: Unix
:synopsis: TODO
TODO: Write long description
"""
__descr__ = 'Grid Search'
__license__ = 'BSD 3-Clause'
__author__ = u'Xavier Bouthillier'
__author_... | 25.208333 | 62 | 0.682645 |
9ece28d4cc6933623d1f0e57dac7823d1eee1eee | 3,308 | py | Python | arthash/util/hasher.py | arthash/arthash | 8d59700308cedf3b62118ed021064b677408edeb | [
"Artistic-2.0"
] | 2 | 2016-05-26T19:57:40.000Z | 2018-09-18T04:10:08.000Z | arthash/util/hasher.py | arthash/arthash | 8d59700308cedf3b62118ed021064b677408edeb | [
"Artistic-2.0"
] | 12 | 2018-06-23T12:07:42.000Z | 2018-07-21T14:44:42.000Z | arthash/util/hasher.py | arthash/arthash | 8d59700308cedf3b62118ed021064b677408edeb | [
"Artistic-2.0"
] | 1 | 2016-05-26T21:08:08.000Z | 2016-05-26T21:08:08.000Z | ######
# DANGER DANGER DANGER
#
# CHANGING ANYTHING AT ALL IN THIS FILE CAN POTENTIALLY CHANGE THE WHOLE
# HASH AND MAKE ALL HISTORICAL HASHES INVALID!
#
import binascii, hashlib, os
HASH_CLASS = hashlib.sha256
EXCLUDED_PREFIXES = '.'
def hasher(root, chunksize):
"""
Return the artHa... | 27.798319 | 77 | 0.624849 |
9ece3e3cede8927cf33d00e2a6a22b7e612a1714 | 2,546 | py | Python | src/backend/app/api/public/discussions/discussion/discussion_image.py | aimanow/sft | dce87ffe395ae4bd08b47f28e07594e1889da819 | [
"Apache-2.0"
] | null | null | null | src/backend/app/api/public/discussions/discussion/discussion_image.py | aimanow/sft | dce87ffe395ae4bd08b47f28e07594e1889da819 | [
"Apache-2.0"
] | null | null | null | src/backend/app/api/public/discussions/discussion/discussion_image.py | aimanow/sft | dce87ffe395ae4bd08b47f28e07594e1889da819 | [
"Apache-2.0"
] | null | null | null | from http import HTTPStatus
from werkzeug.datastructures import FileStorage
from flask_restplus import Resource, reqparse, abort
from app.api import file_storage
from app.api.namespaces import discussions
from app.authorization.permissions import UserNeedPermission, EditDiscussionPermission
from database import db
fr... | 41.737705 | 119 | 0.724666 |
9ece4bc78ae29c43f3f18a558ac354d0eaeeb204 | 1,402 | py | Python | CompareTables.py | CasperTheCat/PyDeduplication | 2332d6e4bcd38a1e46840ba11cfd27577fd86200 | [
"Apache-2.0"
] | null | null | null | CompareTables.py | CasperTheCat/PyDeduplication | 2332d6e4bcd38a1e46840ba11cfd27577fd86200 | [
"Apache-2.0"
] | 2 | 2020-08-04T01:13:59.000Z | 2020-08-04T01:49:37.000Z | CompareTables.py | CasperTheCat/PyDeduplication | 2332d6e4bcd38a1e46840ba11cfd27577fd86200 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys
import os
import numpy
import argparse
from HashUtil import HashList
def CompareTables(masterTable, comparisonTable):
print("Comparing {} to {}".format(comparisonTable, masterTable))
print("Loading {}".format(masterTable.encode()))
mTable = HashList.CHashList(masterTable... | 32.604651 | 117 | 0.67689 |
9ece5134613caf575ba2ce63b36b5190c386fc7b | 1,238 | py | Python | examples/src/dbnd_examples/tests/documentation/tracking/test_doc_tracking_redshift.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | null | null | null | examples/src/dbnd_examples/tests/documentation/tracking/test_doc_tracking_redshift.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | null | null | null | examples/src/dbnd_examples/tests/documentation/tracking/test_doc_tracking_redshift.py | dmytrostriletskyi/dbnd | d4a5f5167523e80439c9d64182cdc87b40cbc48f | [
"Apache-2.0"
] | null | null | null | """
class TestDocTrackingRedshift:
def test_doc(self):
#### DOC START
import psycopg2
from dbnd_redshift.dbnd_redshift import get_redshift_query_id, log_redshift_resource_usage
def establish_connection():
'''establish and return a Redshift connection'''
redsh... | 37.515152 | 98 | 0.62601 |
9ecea991d77cad6c7da0b096e013bf43e45d2f23 | 4,276 | py | Python | libical/libical-1.0/src/python/Store.py | imx6uldev/depedency_tools | 0748392a4e97ded2a770b6fbcab281dd3fda2db7 | [
"MIT"
] | null | null | null | libical/libical-1.0/src/python/Store.py | imx6uldev/depedency_tools | 0748392a4e97ded2a770b6fbcab281dd3fda2db7 | [
"MIT"
] | null | null | null | libical/libical-1.0/src/python/Store.py | imx6uldev/depedency_tools | 0748392a4e97ded2a770b6fbcab281dd3fda2db7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- Mode: python -*-
#======================================================================
# FILE: Store.py
# CREATOR: eric
#
# DESCRIPTION:
#
#
# $Id: Store.py,v 1.4 2002-07-08 17:56:11 acampi Exp $
# $Locker: $
#
# (C) COPYRIGHT 2001, Eric Busboom <eric@softwarestudio.org>
# (C) COPY... | 23.494505 | 71 | 0.608746 |
9ecebc60b1bac56c43cf6ceb1cf3844d88876101 | 16,906 | py | Python | src/tests/illumidesk/authenticators/test_lti11_authenticator.py | Abhi94N/illumidesk | 4cf07e3bd278931ac404f7482e92a4ec35827aa9 | [
"MIT"
] | null | null | null | src/tests/illumidesk/authenticators/test_lti11_authenticator.py | Abhi94N/illumidesk | 4cf07e3bd278931ac404f7482e92a4ec35827aa9 | [
"MIT"
] | null | null | null | src/tests/illumidesk/authenticators/test_lti11_authenticator.py | Abhi94N/illumidesk | 4cf07e3bd278931ac404f7482e92a4ec35827aa9 | [
"MIT"
] | null | null | null | import pytest
import json
from tornado.web import RequestHandler
from tornado.httputil import HTTPServerRequest
from unittest.mock import Mock
from unittest.mock import patch
from illumidesk.authenticators.validator import LTI11LaunchValidator
from illumidesk.authenticators.authenticator import LTI11Authenticator
fr... | 42.908629 | 118 | 0.660594 |
9ecec37dce9f8f97d446177860d04726f98bd0cb | 3,473 | py | Python | bindings/python/packaging/setup_tf.py | EmperorYP7/iree | fffa1f3e33bc1031c790583166ce82c91dd8b3e7 | [
"Apache-2.0"
] | null | null | null | bindings/python/packaging/setup_tf.py | EmperorYP7/iree | fffa1f3e33bc1031c790583166ce82c91dd8b3e7 | [
"Apache-2.0"
] | null | null | null | bindings/python/packaging/setup_tf.py | EmperorYP7/iree | fffa1f3e33bc1031c790583166ce82c91dd8b3e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 37.344086 | 89 | 0.710337 |
9ececc052813134e9b63ac92f331b6d5ee0ee3d2 | 6,184 | py | Python | whoville/cloudbreak/models/exposed_service_response.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | whoville/cloudbreak/models/exposed_service_response.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | whoville/cloudbreak/models/exposed_service_response.py | mikchaos/whoville | 6eabaea4b74ac0b632c03db8252590131c6ce63b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | 30.613861 | 984 | 0.615621 |
9ececc53c9d691342d33cc070fe1c1620f4d28fe | 776 | py | Python | src/rpi/gpio/examples/adc.py | MatthewGerber/rpi | 29246e7eceb95299ee6fa337d812b8f8c0165001 | [
"MIT"
] | null | null | null | src/rpi/gpio/examples/adc.py | MatthewGerber/rpi | 29246e7eceb95299ee6fa337d812b8f8c0165001 | [
"MIT"
] | null | null | null | src/rpi/gpio/examples/adc.py | MatthewGerber/rpi | 29246e7eceb95299ee6fa337d812b8f8c0165001 | [
"MIT"
] | null | null | null | import time
from smbus2 import SMBus
from rpi.gpio.adc import ADS7830
def main():
"""
This example displays the value of an analog component (e.g., potentiometer) via an analog-to-digital converter, as
shown on page 115 of the tutorial.
"""
adc = ADS7830(
input_voltage=3.3,
bus=... | 22.823529 | 119 | 0.610825 |
9ecee77151daa594a76ac712005709efcd41348e | 2,686 | py | Python | test/test_utils.py | freewym/lhotse | 66e9bbaf25b75011388ab00189baa162c3c1d435 | [
"Apache-2.0"
] | null | null | null | test/test_utils.py | freewym/lhotse | 66e9bbaf25b75011388ab00189baa162c3c1d435 | [
"Apache-2.0"
] | null | null | null | test/test_utils.py | freewym/lhotse | 66e9bbaf25b75011388ab00189baa162c3c1d435 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from tempfile import NamedTemporaryFile
import pytest
from lhotse.utils import TimeSpan, load_yaml, overlaps, overspans, save_to_yaml, save_to_json, load_json
@pytest.mark.parametrize(
['lhs', 'rhs', 'expected'], [
(TimeSpan(0, 1), TimeSpan(0, 1), True),
(TimeSpan(0.5, 1... | 35.813333 | 104 | 0.581906 |
9eceedfa43291605d771851bab440b62a20c1a07 | 432 | py | Python | tests/homework/test_homework9.py | acc-cosc-1336/cosc-1336-spring-2018-vcruz350 | 0cee9fde3d4129c51626c4e0c870972aebec9b95 | [
"MIT"
] | null | null | null | tests/homework/test_homework9.py | acc-cosc-1336/cosc-1336-spring-2018-vcruz350 | 0cee9fde3d4129c51626c4e0c870972aebec9b95 | [
"MIT"
] | 1 | 2018-03-08T19:46:08.000Z | 2018-03-08T20:00:47.000Z | tests/homework/test_homework9.py | acc-cosc-1336/cosc-1336-spring-2018-vcruz350 | 0cee9fde3d4129c51626c4e0c870972aebec9b95 | [
"MIT"
] | null | null | null | import unittest
from src.homework.homework9.die import Die
#Write the import statement for the Die class
class TestHomework9(unittest.TestCase):
def test_rolls_values_1_to_6(self):
self.dietest = Die()
self.assertTrue(range(1,6), self.dietest.roll())
'''
Write a test case to ensur... | 27 | 84 | 0.675926 |
9ecf2a7eaf7687d6a8952b35a3abfa5a39bb93fb | 18,260 | py | Python | synapseutils/sync.py | zimingd/synapsePythonClient | 6bddd4d9de2f06f6f79d8ce814ac57970d6bebee | [
"Apache-2.0"
] | null | null | null | synapseutils/sync.py | zimingd/synapsePythonClient | 6bddd4d9de2f06f6f79d8ce814ac57970d6bebee | [
"Apache-2.0"
] | null | null | null | synapseutils/sync.py | zimingd/synapsePythonClient | 6bddd4d9de2f06f6f79d8ce814ac57970d6bebee | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import errno
from .monitor import notifyMe
from synapseclient.entity import is_container
from synapseclient.utils import id_of, topolgical_sort, is_url
from synapseclient... | 45.08642 | 145 | 0.589704 |
9ecf3886fb17be8f03a083f5e02cc95be891bb9f | 4,138 | py | Python | src/modules/RSVP.py | villawang/SNAP | 3c899151e5c1f9f76c65f8eee164453ed5eef3e8 | [
"BSD-3-Clause"
] | null | null | null | src/modules/RSVP.py | villawang/SNAP | 3c899151e5c1f9f76c65f8eee164453ed5eef3e8 | [
"BSD-3-Clause"
] | null | null | null | src/modules/RSVP.py | villawang/SNAP | 3c899151e5c1f9f76c65f8eee164453ed5eef3e8 | [
"BSD-3-Clause"
] | null | null | null | from framework.latentmodule import LatentModule
from serial import *
from direct.gui.OnscreenImage import OnscreenImage
import io, os, glob
#import matplotlib.pyplot as plt
from numpy import *
import time
import pylsl.pylsl as pylsl
class Main (LatentModule):
def __init__ (self):
LatentModule.... | 30.651852 | 108 | 0.530449 |
9ecf982f942acc87b2ae5ca3df72d2480a6d6a3d | 3,953 | py | Python | indico/cli/util.py | javfg/indico | 2634756ba1e9caf6dd8fc9afc3f47291fda5816d | [
"MIT"
] | 1 | 2021-12-27T17:51:27.000Z | 2021-12-27T17:51:27.000Z | indico/cli/util.py | javfg/indico | 2634756ba1e9caf6dd8fc9afc3f47291fda5816d | [
"MIT"
] | null | null | null | indico/cli/util.py | javfg/indico | 2634756ba1e9caf6dd8fc9afc3f47291fda5816d | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
import traceback
from importlib import import_module
import click
from flask.cli import AppGroup, FlaskGr... | 34.373913 | 102 | 0.669871 |
9ecfa862a8276df860d90f301ed0f3af8f832a5d | 6,619 | py | Python | docs/source/conf.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | 1 | 2022-03-10T11:59:34.000Z | 2022-03-10T11:59:34.000Z | docs/source/conf.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | null | null | null | docs/source/conf.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | 2 | 2020-12-14T18:38:43.000Z | 2022-03-30T00:25:35.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# pdffitx documentation build configuration file, created by
# sphinx-quickstart on Thu Jun 28 12:35:56 2018.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# au... | 31.369668 | 135 | 0.696631 |
9ecfb12a34dde2cad096096d12d1a581a1cd41d0 | 3,612 | py | Python | test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/models/_models_py3.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 35 | 2018-04-03T12:15:53.000Z | 2022-03-11T14:03:34.000Z | test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/models/_models_py3.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 652 | 2017-08-28T22:44:41.000Z | 2022-03-31T21:20:31.000Z | test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/models/_models_py3.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 29 | 2017-08-28T20:57:01.000Z | 2022-03-11T14:03:38.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 26.558824 | 100 | 0.562292 |
9ecfd9b22501c144041c4b4fd5bfe744d8b07048 | 121 | py | Python | latent_cam/__init__.py | 13263081188/torch-cam | 11359fbecf9d4f4616dd37bb7e84026389d2da45 | [
"Apache-2.0"
] | 1 | 2021-06-18T09:22:40.000Z | 2021-06-18T09:22:40.000Z | latent_cam/__init__.py | 13263081188/torch-cam | 11359fbecf9d4f4616dd37bb7e84026389d2da45 | [
"Apache-2.0"
] | null | null | null | latent_cam/__init__.py | 13263081188/torch-cam | 11359fbecf9d4f4616dd37bb7e84026389d2da45 | [
"Apache-2.0"
] | null | null | null | from latent_cam import cams, utils
try:
from .version import __version__ # noqa: F401
except ImportError:
pass
| 17.285714 | 50 | 0.735537 |
9ecfdee69e34b6630838ec3bc44f71ee564bf7ff | 521 | py | Python | roles/cmdline/molecule/default/tests/test_default.py | escalate/my-smart-home | a9579c845761b980515ff34d2a95568c6e7c2b6c | [
"MIT"
] | null | null | null | roles/cmdline/molecule/default/tests/test_default.py | escalate/my-smart-home | a9579c845761b980515ff34d2a95568c6e7c2b6c | [
"MIT"
] | 1 | 2021-11-13T11:13:58.000Z | 2021-11-13T11:16:27.000Z | molecule/default/tests/test_default.py | escalate/ansible-raspberry-cmdline | 3e303565d44ac3f7d9ba23049be2d801c70fda23 | [
"MIT"
] | null | null | null | """Role testing files using testinfra"""
def test_cmdline_file(host):
"""Check Linux kernel command line file"""
f = host.file("/boot/cmdline.txt")
assert f.is_file
assert f.user == "root"
assert f.group == "root"
assert f.mode == 0o755
assert (
"console=serial0,115200 "
"... | 24.809524 | 57 | 0.602687 |
9ed017592afdcf6608833458eba192f616c9249d | 3,514 | py | Python | tensorflow/contrib/input_pipeline/python/ops/input_pipeline_ops_test.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 522 | 2016-06-08T02:15:50.000Z | 2022-03-02T05:30:36.000Z | tensorflow/contrib/input_pipeline/python/ops/input_pipeline_ops_test.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/contrib/input_pipeline/python/ops/input_pipeline_ops_test.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 108 | 2016-06-16T15:34:05.000Z | 2022-03-12T13:23:11.000Z | # Copyright 2016 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... | 39.044444 | 80 | 0.69778 |
9ed02bfb5ec2529e3064461939121b31a5c64110 | 12,145 | py | Python | model/probability/inference.py | ab3llini/News2Title | 80b5117d5495890425ddeaddd77ef64624df5855 | [
"MIT"
] | null | null | null | model/probability/inference.py | ab3llini/News2Title | 80b5117d5495890425ddeaddd77ef64624df5855 | [
"MIT"
] | null | null | null | model/probability/inference.py | ab3llini/News2Title | 80b5117d5495890425ddeaddd77ef64624df5855 | [
"MIT"
] | 1 | 2019-11-04T01:17:40.000Z | 2019-11-04T01:17:40.000Z | from keras.models import Model
from keras.layers import Input, Dense, Embedding
from keras.models import load_model
import numpy as np
import os
import sys
from scipy.spatial.distance import cosine
from sklearn.model_selection import train_test_split
import pickle
import ntpath
import nltk
this_path = os.path.dirname(... | 36.362275 | 146 | 0.634582 |
9ed074a98cd0319819018b467fbbbd4cc71d78fe | 9,670 | py | Python | psych_metric/mvst.py | prijatelj/bayesian_eval_ground_truth-free | c0e569c78d63beb79f5e1e727c322293c3584323 | [
"MIT"
] | 1 | 2021-12-26T05:55:46.000Z | 2021-12-26T05:55:46.000Z | psych_metric/mvst.py | prijatelj/bayesian_eval_ground_truth-free | c0e569c78d63beb79f5e1e727c322293c3584323 | [
"MIT"
] | null | null | null | psych_metric/mvst.py | prijatelj/bayesian_eval_ground_truth-free | c0e569c78d63beb79f5e1e727c322293c3584323 | [
"MIT"
] | null | null | null | """Multivariate Student T distribution."""
from copy import deepcopy
from multiprocessing import Pool
import numpy as np
import scipy
import tensorflow as tf
import tensorflow_probability as tfp
from simanneal import Annealer
#from psych_metric.supervised_joint_distrib import is_prob_distrib
class MultivariateStude... | 33.811189 | 89 | 0.568459 |
9ed086984c435b27045c31ede2f48aac2d88cb52 | 425 | py | Python | src/compas_cem/ghpython/components/CEM_JSONImportTopology/code.py | dylau/compas_cem | 643c7d60cb9d6a9999cb96d39c44175cc8662a25 | [
"MIT"
] | 15 | 2020-12-11T14:35:19.000Z | 2022-03-31T03:12:30.000Z | src/compas_cem/ghpython/components/CEM_JSONImportTopology/code.py | dylau/compas_cem | 643c7d60cb9d6a9999cb96d39c44175cc8662a25 | [
"MIT"
] | 8 | 2020-10-09T00:08:05.000Z | 2021-11-18T00:24:20.000Z | src/compas_cem/ghpython/components/CEM_JSONImportTopology/code.py | dylau/compas_cem | 643c7d60cb9d6a9999cb96d39c44175cc8662a25 | [
"MIT"
] | 2 | 2021-12-28T02:29:47.000Z | 2022-03-15T14:04:23.000Z | """
Import a COMPAS CEM topology diagram from a JSON file.
"""
import os
from ghpythonlib.componentbase import executingcomponent as component
from compas_cem.diagrams import TopologyDiagram
class FormDiagramFromJSON(component):
def RunScript(self, filepath):
if filepath:
filepath = os.path.... | 25 | 69 | 0.724706 |
9ed0a7a7e5d8406469579e30a6f9cfbe7a0219b1 | 8,339 | py | Python | appengine/predator/analysis/test/callstack_detectors_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/predator/analysis/test/callstack_detectors_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/predator/analysis/test/callstack_detectors_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 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.
from analysis import callstack_detectors
from analysis.analysis_testcase import AnalysisTestCase
from analysis.callstack_detectors import StartOfCallStack
fr... | 47.925287 | 80 | 0.722868 |
9ed0b6a23db1059df22ade675185007020b369d5 | 1,243 | py | Python | openzwavemqtt/options.py | cgarwood/python-openzwave-mq | 8f3d62954e0c5c9eaea67ff9cc229906e3673bee | [
"Apache-2.0"
] | 63 | 2019-11-06T19:30:45.000Z | 2022-02-04T22:19:07.000Z | openzwavemqtt/options.py | cgarwood/python-openzwave-mq | 8f3d62954e0c5c9eaea67ff9cc229906e3673bee | [
"Apache-2.0"
] | 66 | 2021-01-18T06:52:17.000Z | 2022-03-28T08:04:22.000Z | openzwavemqtt/options.py | raman325/python-openzwave-mqtt | c5736d832176233e62599908e42a1b28ec9ac589 | [
"Apache-2.0"
] | 12 | 2020-01-03T13:35:06.000Z | 2020-10-10T20:50:20.000Z | """Options for the OZW MQTT Connection."""
from typing import TYPE_CHECKING, Callable, Dict, List, Optional, Union
if TYPE_CHECKING:
from .base import ZWaveBase # noqa: F401
class OZWOptions:
"""OZW Options class."""
def __init__(
self,
send_message: Callable[[str, Union[str, dict]], No... | 33.594595 | 88 | 0.61786 |
9ed0bfe0a23268706ebacb9ec0cef35870e10ae9 | 2,551 | py | Python | transformations/ptransforms.py | Masamerc/easy-beam-pipeline | fb501e87eb379be5cfd7d35caab9682b8c3c30ae | [
"MIT"
] | null | null | null | transformations/ptransforms.py | Masamerc/easy-beam-pipeline | fb501e87eb379be5cfd7d35caab9682b8c3c30ae | [
"MIT"
] | 1 | 2021-05-04T03:53:28.000Z | 2021-05-05T10:54:06.000Z | transformations/ptransforms.py | Masamerc/easy-beam-pipeline | fb501e87eb379be5cfd7d35caab9682b8c3c30ae | [
"MIT"
] | null | null | null | import apache_beam as beam
import datetime
import glob
import logging
import os
from csv import DictReader,DictWriter
from enum import Enum
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class GroupType(Enum):
'''
switcher to indicate which attrib... | 31.109756 | 106 | 0.642101 |
9ed0dd246f609dd724dc3bd563fe2ee80717e499 | 2,733 | py | Python | passrotate/providers/gitlab.py | simon816/pass-rotate | 2c133e736cb27cebf2d903f863722b685f4f76fc | [
"MIT"
] | null | null | null | passrotate/providers/gitlab.py | simon816/pass-rotate | 2c133e736cb27cebf2d903f863722b685f4f76fc | [
"MIT"
] | null | null | null | passrotate/providers/gitlab.py | simon816/pass-rotate | 2c133e736cb27cebf2d903f863722b685f4f76fc | [
"MIT"
] | null | null | null | import json
from passrotate.provider import Provider, ProviderOption, PromptType, register_provider
from passrotate.forms import get_form
from urllib.parse import urlparse
import requests
from bs4 import BeautifulSoup
class GitLab(Provider):
"""
[gitlab.com]
username=Your GitLab username
"""
name ... | 30.707865 | 87 | 0.616539 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.