blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 721 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 5 91 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 321
values | visit_date timestamp[ns]date 2016-08-12 09:31:09 2023-09-06 10:45:07 | revision_date timestamp[ns]date 2010-09-28 14:01:40 2023-09-06 06:22:19 | committer_date timestamp[ns]date 2010-09-28 14:01:40 2023-09-06 06:22:19 | github_id int64 426 681M | star_events_count int64 101 243k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[ns]date 2012-06-28 18:51:49 2023-09-14 21:59:16 ⌀ | gha_created_at timestamp[ns]date 2008-02-11 22:55:26 2023-08-10 11:14:58 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 26
values | language stringclasses 2
values | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10.2M | extension stringclasses 115
values | filename stringlengths 3 113 | content stringlengths 6 10.2M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f9a0bbd346d1a7b402fc4a2e66d7c59d629810a | df87814cb32990ad8c27d0b13a821aabce012819 | /kolibri/plugins/policies/kolibri_plugin.py | 61cb7c4ac1d910d35d86c65a30c1c376baf9941f | [
"MIT"
] | permissive | learningequality/kolibri | 26812d4ae771f3b389d3317a586bc032fc84866b | cc9da2a6acd139acac3cd71c4cb05c15d4465712 | refs/heads/release-v0.16.x | 2023-09-01T18:07:29.720772 | 2023-08-31T15:43:47 | 2023-08-31T15:43:47 | 49,976,939 | 689 | 682 | MIT | 2023-09-14T20:02:29 | 2016-01-19T19:22:07 | Python | UTF-8 | Python | false | false | 688 | py | kolibri_plugin.py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from kolibri.core.webpack import hooks as webpack_hooks
from kolibri.plugins import KolibriPluginBase
from kolibri.plugins.hooks import register_hook
from kolibri.utils import translation
from kolibri.u... |
c9a9bef0022846df258d794d130fa4ae32f3293c | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/modules/test_rand.py | bcf9cd2c45a505014922bc845e44748d0b81ad99 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 4,725 | py | test_rand.py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
eb918554171d1f49ead1bde7991962e92d6c19c6 | d8233a120f46fd07e604cfcf0fd05506e8b4a1ec | /lesion_detector_3DCE/rcnn/symbol/proposal.py | 878cfe7e9a65b991b7085fed2ea139e3ef08b6a7 | [
"MIT",
"Apache-2.0"
] | permissive | rsummers11/CADLab | aeb4e8b66563c33d2fae9a73a3f35da647c1b2eb | 78766a3609a16d6ac8e1d22344f6bebef509aef7 | refs/heads/master | 2023-07-04T23:30:49.791094 | 2023-06-22T16:47:28 | 2023-06-22T16:47:28 | 23,888,481 | 441 | 222 | null | 2022-02-19T15:42:24 | 2014-09-10T19:16:19 | C++ | UTF-8 | Python | false | false | 10,529 | py | proposal.py | """
Proposal Operator transform anchor coordinates into ROI coordinates with prediction results on
classification probability and bounding box prediction results, and image size and scale information.
"""
import mxnet as mx
import numpy as np
import numpy.random as npr
from distutils.util import strtobool
f... |
1bf13ad8e883e41a08e61a4a20bba6b9f2692883 | 5f69a6549b8d5e417553d910622e6855b2ae679b | /src/opendr/perception/skeleton_based_action_recognition/algorithm/graphs/nturgbd.py | c17a8aae7f31c0772b042cee82d87826a63dce24 | [
"Apache-2.0"
] | permissive | opendr-eu/opendr | 822219f709613d77c5eb62c5d02808d344239835 | b3d6ce670cdf63469fc5766630eb295d67b3d788 | refs/heads/master | 2023-08-31T07:02:36.375231 | 2023-08-29T06:39:51 | 2023-08-29T06:39:51 | 293,755,225 | 535 | 82 | Apache-2.0 | 2023-09-13T16:53:34 | 2020-09-08T08:55:04 | Python | UTF-8 | Python | false | false | 1,765 | py | nturgbd.py | """
Modified based on: https://github.com/open-mmlab/mmskeleton
"""
import numpy as np
num_node = 25
self_link = [(i, i) for i in range(num_node)]
in_edge_ori_index = [(1, 2), (2, 21), (3, 21), (4, 3), (5, 21), (6, 5), (7, 6),
(8, 7), (9, 21), (10, 9), (11, 10), (12, 11), (13, 1),
... |
d113ca1a83e27d164320cfc517568ba38adbf1f4 | 69d8d91954f6623f3674d52d734d589f72383628 | /openstack_dashboard/dashboards/identity/users/tabs.py | 4bfca875283a28d7581502a78c3d970388a296f8 | [
"Apache-2.0"
] | permissive | openstack/horizon | d031cebe126c06ad9717bbc52790b3d890e8661e | 7896fd8c77a6766a1156a520946efaf792b76ca5 | refs/heads/master | 2023-09-04T06:57:58.069907 | 2023-09-01T20:17:10 | 2023-09-01T20:17:10 | 2,665,166 | 1,060 | 1,175 | Apache-2.0 | 2023-08-07T02:33:44 | 2011-10-28T13:12:05 | Python | UTF-8 | Python | false | false | 5,435 | py | tabs.py | # 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
# distributed under t... |
87284f15bc6b6e289eaf0d2ed770f324bcfe9392 | c117e905ac5f1938da3c8e23845ad52cc922923a | /src/orion/executor/dask_backend.py | 6d90053f0eebac50b233b7adb1f0be9072615328 | [
"BSD-3-Clause"
] | permissive | Epistimio/orion | 2850983dd7ac0a417d451d39b2dc7a652f1920c8 | 2944875eff03b86138d6780df4b1dd6dc8158ccb | refs/heads/develop | 2023-09-01T20:36:59.279966 | 2023-08-21T13:25:43 | 2023-08-21T13:25:43 | 102,697,867 | 218 | 41 | NOASSERTION | 2023-08-21T12:51:55 | 2017-09-07T06:05:21 | Python | UTF-8 | Python | false | false | 3,823 | py | dask_backend.py | import traceback
from orion.executor.base import (
AsyncException,
AsyncResult,
BaseExecutor,
ExecutorClosed,
Future,
)
try:
import dask.distributed
from dask.distributed import Client, get_client, get_worker, rejoin, secede
HAS_DASK = True
except ImportError:
HAS_DASK = False
c... |
bcb017a8239ac0c0a0a0b2e105ce5f18c2e0b556 | e48198ffea7b0b80669253fb970fdcc1d2f4c518 | /src/testdir/pyxfile/py3_shebang.py | ec05808ca4f25d6505ab8e065b8a211008d7477f | [
"GPL-1.0-or-later",
"Vim",
"GPL-2.0-only"
] | permissive | vim/vim | f9ea5913ff884c87bc11f7826b1fc277fba8a2b5 | 816fbcc262687b81fc46f82f7bbeb1453addfe0c | refs/heads/master | 2023-09-01T16:01:56.964678 | 2023-08-31T21:52:30 | 2023-08-31T21:52:30 | 40,997,482 | 37,589 | 7,920 | Vim | 2023-09-14T20:57:43 | 2015-08-18T21:03:56 | Vim Script | UTF-8 | Python | false | false | 50 | py | py3_shebang.py | #!/usr/bin/python3
import sys
print(sys.version)
|
3251373c1eaf9e7bcf937479cf51f1a8e218c954 | e7efae2b83216d9621bd93390959d652de779c3d | /cert_manager/tests/common.py | 90fb24c813898f1e8a1d95369ee5ddc9bab0352f | [
"BSD-3-Clause",
"MIT",
"BSD-3-Clause-Modification",
"Unlicense",
"Apache-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"CC0-1.0"
] | permissive | DataDog/integrations-core | ee1886cc7655972b2791e6ab8a1c62ab35afdb47 | 406072e4294edff5b46b513f0cdf7c2c00fac9d2 | refs/heads/master | 2023-08-31T04:08:06.243593 | 2023-08-30T18:22:10 | 2023-08-30T18:22:10 | 47,203,045 | 852 | 1,548 | BSD-3-Clause | 2023-09-14T16:39:54 | 2015-12-01T16:41:45 | Python | UTF-8 | Python | false | false | 901 | py | common.py | # (C) Datadog, Inc. 2019-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from datadog_checks.base.stubs import aggregator
CERT_METRICS = {
'cert_manager.certificate.ready_status': aggregator.GAUGE,
'cert_manager.certificate.expiration_timestamp': aggregator.GAUGE,
}
A... |
8ce89ef09c80baa3402f002954beceedc89e631f | ca593f5a272ce0478ba6f52d2670cb9dd8564b00 | /mycroft/client/speech/mic.py | e65c912ee10eea27803bfccf057d077716d22c96 | [
"Apache-2.0"
] | permissive | MycroftAI/mycroft-core | d41ce0fccfe4c29d8d802dcc6bcf583dc356d9ce | 8051e4e1f89d5ed1f63f06db5d3570371ae92e5d | refs/heads/master | 2023-08-23T17:45:10.569985 | 2021-12-10T04:51:59 | 2021-12-10T04:51:59 | 59,299,524 | 6,838 | 1,719 | Apache-2.0 | 2023-08-15T10:25:32 | 2016-05-20T14:11:07 | Python | UTF-8 | Python | false | false | 28,731 | py | mic.py | # 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 writin... |
1447c2d23ed97fecba5be2651e2af21d48f94a97 | f54290f045fd150f9be640bf8ab4a91f6b9ae3e3 | /evennia/typeclasses/models.py | 5fe225dabe2971fcf4b7e7a24cb754246e4d3056 | [
"BSD-3-Clause"
] | permissive | evennia/evennia | 54d075093f0ff125be40e17a7bc4e1e0e22cf77b | b3ca58b5c1325a3bf57051dfe23560a08d2947b7 | refs/heads/main | 2023-09-02T05:29:35.678676 | 2023-09-01T19:06:05 | 2023-09-01T19:06:05 | 16,120,959 | 1,781 | 1,004 | BSD-3-Clause | 2023-09-12T18:37:23 | 2014-01-21T22:22:28 | Python | UTF-8 | Python | false | false | 37,156 | py | models.py | """
This is the *abstract* django models for many of the database objects
in Evennia. A django abstract (obs, not the same as a Python metaclass!) is
a model which is not actually created in the database, but which only exists
for other models to inherit from, to avoid code duplication. Any model can
import and inherit... |
a7a9c01e7242cc5726588c87ffb4d2b9f977ea97 | d7fd46dfd8aab520c4958fa065367e168b6bfee7 | /compiler_gym/envs/llvm/datasets/jotaibench.py | 1fed72e8603b5f9d7fe81325dfec9470c41576b7 | [
"MIT"
] | permissive | facebookresearch/CompilerGym | f04a79fbfdbaf8afd6920ec205db6f1b6003d073 | 9e0c0beb12da1e1ea82ae6ce920713ee28dda4c9 | refs/heads/development | 2023-08-31T09:17:48.967970 | 2023-03-10T19:29:56 | 2023-03-10T19:29:56 | 312,059,069 | 787 | 126 | MIT | 2023-03-10T19:29:58 | 2020-11-11T18:44:35 | Python | UTF-8 | Python | false | false | 8,225 | py | jotaibench.py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import subprocess
from concurrent.futures import as_completed
from pathlib import Path
from compiler_gym.datasets import Benchmark, TarDataset... |
5c8aaff98dce24c0e709734f62843a980c971fdc | e3bb1df7fa4c51900dec7e9ddf5295e1a80938bd | /hummingbot/connector/exchange/vertex/vertex_exchange.py | 4250eab3c5965ae7c025b5ef3f78f0697d6d9728 | [
"Apache-2.0"
] | permissive | CoinAlpha/hummingbot | 0d1e2bd94de1280748647108c7d7800a09546eb8 | c3f101759ab7e7a2165cd23a3a3e94c90c642a9b | refs/heads/development | 2023-09-01T11:24:43.322137 | 2023-08-31T03:08:06 | 2023-08-31T03:08:06 | 439,330,952 | 135 | 98 | Apache-2.0 | 2023-08-30T13:55:08 | 2021-12-17T12:50:42 | Python | UTF-8 | Python | false | false | 40,073 | py | vertex_exchange.py | import asyncio
import time
from decimal import Decimal
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple
from bidict import bidict
from hummingbot.connector.constants import s_decimal_0, s_decimal_NaN
from hummingbot.connector.exchange.vertex import (
vertex_constants as CONSTANTS,
vertex_eip... |
2507c499e5ff5f5ff0cd1f0dfea1303625441179 | 595cb1db42944a82ee6328596a7e27e93f239bbd | /python/magellan/types.py | ef3e3ffe29c13c49eaaa10748101571cd84e9c62 | [
"Apache-2.0"
] | permissive | harsha2010/magellan | 37be4ce603324591365f4e84428be5faed4058cf | 63655a22df995f07a24b7e49daf8c294f2653d95 | refs/heads/master | 2022-06-27T13:04:50.181222 | 2021-08-26T15:37:18 | 2021-08-26T15:37:18 | 36,629,888 | 591 | 170 | Apache-2.0 | 2019-10-05T22:43:05 | 2015-06-01T01:06:52 | Scala | UTF-8 | Python | false | false | 11,168 | py | types.py | #
# Copyright 2015 Ram Sriharsha
#
# 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, ... |
9d081f54d79c55355d7a127f37c5538211ec2b4d | cd6a55dd4f4a5472699eafd191f75654f2424e8b | /fury/tests/test_convert.py | 3a40830b37290117b43be2c5bac3d603361f718b | [
"BSD-3-Clause"
] | permissive | fury-gl/fury | 870e297868f746def746d58f233575a439f74590 | e595bad0246899d58d24121dcc291eb050721f9f | refs/heads/master | 2023-07-05T08:51:11.160972 | 2023-06-30T16:23:39 | 2023-06-30T16:23:39 | 149,529,946 | 209 | 190 | NOASSERTION | 2023-08-29T17:03:09 | 2018-09-20T00:48:22 | Python | UTF-8 | Python | false | false | 1,106 | py | test_convert.py | import os
from tempfile import TemporaryDirectory
import numpy.testing as npt
import pytest
from fury.io import load_image
# Optional packages
from fury.optpkg import optional_package
matplotlib, have_matplotlib, _ = optional_package('matplotlib')
if have_matplotlib:
import matplotlib.pyplot as plt
from f... |
26fc8c5bf45d83a5b82c37bd0f838278fd841ec9 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/webrtc/tools_webrtc/get_landmines.py | 18bc413e252914ac3414ffbb3ee84fc103da8648 | [
"LicenseRef-scancode-google-patent-license-webrtc",
"BSD-3-Clause",
"LicenseRef-scancode-google-patent-license-webm",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 3,235 | py | get_landmines.py | #!/usr/bin/env vpython3
# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. Al... |
66c6123cff86e10cf3393d299d3ddd33c06fb593 | 226727e281e6ce17450fac3ea78d1a3c4a3999fc | /examples/ExperimentalCases/ParallelConnectionExample/parallel_connection_example.py | d56ed276fd3ce7c4b7c54e4a8804a128afc01d48 | [
"MIT"
] | permissive | GazzolaLab/PyElastica | 20df23e97560d05ef50e60f2aeefb420968fb01d | 49017d456aa10032e0ba1af23d5afd92cecedfa5 | refs/heads/master | 2023-08-31T14:28:48.056038 | 2023-08-18T16:54:51 | 2023-08-18T16:54:51 | 254,172,891 | 159 | 94 | MIT | 2023-09-09T04:11:01 | 2020-04-08T18:47:47 | Python | UTF-8 | Python | false | false | 5,530 | py | parallel_connection_example.py | __doc__ = """Parallel connection example"""
import numpy as np
import elastica as ea
from elastica.experimental.connection_contact_joint.parallel_connection import (
get_connection_vector_straight_straight_rod,
SurfaceJointSideBySide,
)
from elastica._calculus import difference_kernel
from examples.JointCases.... |
fca93300090d0b0a45cc39453432f3aa6b058da1 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/skybeacon/sensor.py | 17bf8a3ab7f08764fe886d50e155929a75281003 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 5,965 | py | sensor.py | """Support for Skybeacon temperature/humidity Bluetooth LE sensors."""
from __future__ import annotations
import logging
import threading
from uuid import UUID
from pygatt import BLEAddressType
from pygatt.backends import Characteristic, GATTToolBackend
from pygatt.exceptions import BLEError, NotConnectedError, Notif... |
508aebf018316a967f0fe7a0f9b24c2ed6a55916 | 80f94bea418d7956df1ba19d4d6a1d7715a94ade | /test/integration/test_quota.py | fa9a319197966264bbf1440c27e283442dcf537c | [
"CC-BY-2.5",
"MIT",
"CC-BY-3.0",
"AFL-3.0"
] | permissive | galaxyproject/galaxy | 5748409eb6693b1611f289d164f85e20c3237495 | b9ae7a16ba0465995e880ae9701b7e87226b9bab | refs/heads/dev | 2023-08-28T22:35:51.248138 | 2023-08-26T08:02:33 | 2023-08-26T08:02:33 | 31,211,061 | 1,277 | 1,137 | NOASSERTION | 2023-09-14T19:39:01 | 2015-02-23T14:18:06 | Python | UTF-8 | Python | false | false | 8,275 | py | test_quota.py | from galaxy_test.base.populators import DatasetPopulator
from galaxy_test.driver import integration_util
class TestQuotaIntegration(integration_util.IntegrationTestCase):
dataset_populator: DatasetPopulator
require_admin_user = True
@classmethod
def handle_galaxy_config_kwds(cls, config):
sup... |
4b892f5bcf503ffb920005d861c70a11becb0b3d | 85c668af40853f5ee48fbe8c4045df1a5dd4104e | /examples/basic/colormaps.py | 878e927cae1b3d23d26ba0b6bcb51c078265e6fd | [
"MIT",
"LicenseRef-scancode-public-domain",
"OFL-1.1"
] | permissive | marcomusy/vedo | 771db91bca05cda864fc7d1776d9140726676704 | 9a9f7c5e9ebf135e5c745c521c898866e3ede0ef | refs/heads/master | 2023-08-21T12:56:35.545713 | 2023-08-14T14:39:37 | 2023-08-14T14:39:37 | 110,261,047 | 1,419 | 206 | MIT | 2023-09-02T18:38:22 | 2017-11-10T15:17:47 | Python | UTF-8 | Python | false | false | 703 | py | colormaps.py | """
Example usage of cmap() to assign a color to each mesh vertex
by looking it up in matplotlib database of colormaps
"""
from vedo import Plotter, Mesh, dataurl
print(__doc__)
# these are the some matplotlib color maps
maps = [
"afmhot",
"binary",
"bone",
"cool",
"coolwarm",
"copper",
"gi... |
3c46927084fded1c76ae62b1096e9eeab24e9533 | 88ef2b9b1afa9c2f0cdaccce5fc42ea375c8c70a | /examples/ch09/snippets_py/09_12.02.py | 2ab797e6ee99c7770e888ad6238557021f443d32 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | pdeitel/PythonFundamentalsLiveLessons | 7089c60a12d3cb0b8540de54b25da624239800e1 | b01c1d102bb51307ce61e132818b856311d667bd | refs/heads/master | 2022-12-22T06:31:22.889065 | 2022-12-11T04:40:10 | 2022-12-11T04:40:10 | 192,583,776 | 300 | 384 | null | 2022-03-05T16:23:43 | 2019-06-18T17:21:03 | null | UTF-8 | Python | false | false | 1,301 | py | 09_12.02.py | # Section 9.12.2 snippets
# Datasets
# Working with Locally Stored CSV Files
import pandas as pd
df = pd.read_csv('accounts.csv',
names=['account', 'name', 'balance'])
df
df.to_csv('accounts_from_dataframe.csv', index=False)
#####################################################################... |
eb83f7a720f04b8fd974e9a5e3e0349dba5b898a | 0a23c93c0b61301081bd914754f88fbad29de00d | /alipy/toolbox.py | 7271284810a06ba284f77dba92b6237f454495cc | [
"BSD-3-Clause"
] | permissive | NUAA-AL/ALiPy | 187d4f3aa5a3e04324f5f98da8dc197a386d1079 | 1b2ee2e5acc2e8651fc64759aae332853ad9e437 | refs/heads/master | 2023-07-03T15:56:18.935587 | 2022-09-17T11:16:05 | 2022-09-17T11:16:05 | 149,413,428 | 844 | 127 | BSD-3-Clause | 2022-09-17T11:16:06 | 2018-09-19T07:54:37 | Python | UTF-8 | Python | false | false | 27,784 | py | toolbox.py | import copy
import os
import pickle
import warnings
import inspect
from sklearn.linear_model import LogisticRegression
from sklearn.utils import check_array
from sklearn.utils.multiclass import type_of_target, unique_labels
from .data_manipulate.al_split import split, split_multi_label, split_features
from .experimen... |
433c41ae69519160ae1e988c445eb803c48ad527 | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/sharepoint/tenant/settings.py | b59e069d1048001d15728bb6abf515e4c22ae7b2 | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 1,252 | py | settings.py | from office365.runtime.paths.resource_path import ResourcePath
from office365.runtime.queries.service_operation import ServiceOperationQuery
from office365.sharepoint.base_entity import BaseEntity
class TenantSettings(BaseEntity):
"""Specifies the tenant properties."""
def clear_corporate_catalog(self):
... |
5d511820f39a89129c8beb5ce7298324eea73b02 | 7ef3792456a4e6596c0a512fc6e2e0bb02d4204b | /scripts/pyinstaller_entrypoint.py | 99ec4fc09901d1423002cfbab817a06799a97933 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gcovr/gcovr | a9d93ab62b0eee031cb9b6005754d923cfaed92f | 99553d7ab65d2873c4db206bf4cb99c03a2cd090 | refs/heads/master | 2023-09-01T14:41:35.954432 | 2023-08-29T19:00:00 | 2023-08-29T19:00:00 | 10,068,798 | 735 | 258 | NOASSERTION | 2023-09-14T19:57:08 | 2013-05-15T01:45:20 | Python | UTF-8 | Python | false | false | 889 | py | pyinstaller_entrypoint.py | # -*- coding:utf-8 -*-
# ************************** Copyrights and license ***************************
#
# This file is part of gcovr 6.0+master, a parsing and reporting tool for gcov.
# https://gcovr.com/en/stable
#
# _____________________________________________________________________________
#
# Copyright (c) 201... |
f66bce549c6ab8ce0d78a272ac491372df97336f | 568fa58296378fa129ab3349adf010daa44ed45b | /tests/st/ops/ascend/vector/test_relu_grad_001.py | 72f6af5e63e0b39dbbd69d662466fe783d5673a1 | [
"Apache-2.0",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | mindspore-ai/akg | 37f471badc66de6a831f1f45ad84344f34d23ef2 | 99f33858d6972741748cbfc9ab0bf9600428fef7 | refs/heads/master | 2023-07-25T23:03:17.672665 | 2023-07-11T07:33:57 | 2023-07-11T07:33:57 | 274,077,856 | 319 | 36 | Apache-2.0 | 2021-12-30T13:43:08 | 2020-06-22T08:09:05 | Python | UTF-8 | Python | false | false | 3,568 | py | test_relu_grad_001.py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
9c34717d6f874dae5fcb82d524edd2e4eee2556a | a7afce4298911b90c0a45db5200cb563cc4b726c | /django_prometheus/urls.py | 23651927445f8630f46b1c6f04284fc0f9280de8 | [
"Apache-2.0"
] | permissive | korfuri/django-prometheus | c64897623f8f3218a3fd6384a659ef41340f95f9 | bea7696b9a5330665cc34d4f62075086df218ff4 | refs/heads/master | 2023-07-09T05:24:21.599553 | 2023-05-09T14:30:47 | 2023-05-09T14:30:47 | 33,433,092 | 1,292 | 273 | Apache-2.0 | 2023-09-05T21:31:13 | 2015-04-05T06:53:05 | Python | UTF-8 | Python | false | false | 163 | py | urls.py | from django.urls import path
from django_prometheus import exports
urlpatterns = [path("metrics", exports.ExportToDjangoView, name="prometheus-django-metrics")]
|
40d3b0035d3074fa883ca01c63ad7ed2ab271e55 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/resolve/multiFile/fromQualifiedFileImportClass/mypackage2/myfile.py | b7a4d7111a611ca51cef829e96d8a9cee155f269 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 14 | py | myfile.py | def f(): pass
|
e21b78ae133aa3495d109e40ce3c6be62fa54f74 | c36019f1e584c7b3677d7f0c81dcb117af9743f9 | /tests/fake_elasticsearch/test_instance.py | 80267f336f8373eef20d7e7b025a5a604ae4e32f | [
"MIT"
] | permissive | vrcmarcos/elasticmock | ad1e5d79212cdacd347834b52d8d8d8192eeea3d | 0e327eb933a669cc626699bfb60ab14384958dfd | refs/heads/master | 2023-04-08T17:52:38.537011 | 2023-03-27T22:14:56 | 2023-03-27T22:14:56 | 65,153,568 | 112 | 75 | MIT | 2023-03-27T22:14:58 | 2016-08-07T20:52:07 | Python | UTF-8 | Python | false | false | 676 | py | test_instance.py | # -*- coding: utf-8 -*-
import elasticsearch
from elasticmock import elasticmock
from elasticmock.fake_elasticsearch import FakeElasticsearch
from tests import TestElasticmock
class TestInstance(TestElasticmock):
def test_should_create_fake_elasticsearch_instance(self):
self.assertIsInstance(self.es, F... |
96425d2487613bd60dbf6b4074750b63a0cea80c | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/sympy/integrals/rubi/rules/miscellaneous_algebraic.py | 1632575a74951b36f84d724cff78df62fbb202d2 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 232,625 | py | miscellaneous_algebraic.py | """
This code is automatically generated. Never edit it manually.
For details of generating the code see `rubi_parsing_guide.md` in `parsetools`.
"""
from sympy.external import import_module
matchpy = import_module("matchpy")
if matchpy:
from matchpy import Pattern, ReplacementRule, CustomConstraint, is_match
... |
85fd5874666847be4c439c139aac7b073ec18e1c | 097f1a48017fad4d193361e28556b01faa38fcaf | /tests/functional/api/test_webhooks_api.py | 53d5e3cd74ad01ce1b39318094b37b53507efc8a | [
"MIT"
] | permissive | uploadcare/pyuploadcare | a1ece136ff33ae7d7005a194daee31b848cc3d5f | d565e79ca7cb9dc60f5b32554219c9575b260476 | refs/heads/main | 2023-09-02T20:03:50.045515 | 2023-07-18T11:05:33 | 2023-07-18T11:05:33 | 2,203,143 | 101 | 40 | MIT | 2023-09-08T13:29:08 | 2011-08-13T21:16:31 | Python | UTF-8 | Python | false | false | 892 | py | test_webhooks_api.py | import pytest
from pyuploadcare.api.entities import Webhook
@pytest.mark.vcr
def test_create_webhook(uploadcare):
webhook = uploadcare.webhooks_api.create(
{
"event": "file.uploaded",
"target_url": "https://webhook.site/699ba5a4-b178-41c7-b416-5d1b6739d052",
"is_active... |
531e66566676bd90299601b3fac939150e32aa6e | 32b01231af56c01a0ed057222ede46490b1488ce | /amplify/ext/phpfpm/collectors/master/meta.py | f7bce52dec3359e0280e022e7a5508a2f79facab | [
"BSD-2-Clause"
] | permissive | nginxinc/nginx-amplify-agent | 118478cf17ff3788e5c3d807c0f9a97a584afa65 | f6be8cf8f8bcc61c549a821bf2aba41b2d843f18 | refs/heads/master | 2023-08-24T18:55:44.088497 | 2022-10-25T09:54:50 | 2022-10-25T09:54:50 | 46,153,777 | 312 | 80 | BSD-2-Clause | 2022-06-07T16:34:53 | 2015-11-14T00:07:42 | Python | UTF-8 | Python | false | false | 4,593 | py | meta.py | # -*- coding: utf-8 -*-
from amplify.agent.common.context import context
from amplify.agent.data.eventd import INFO
from amplify.agent.collectors.abstract import AbstractMetaCollector
from amplify.agent.common.util import subp, host
from amplify.ext.phpfpm.util.ps import LS_CMD, LS_CMD_FREEBSD, LS_PARSER
from amplify.e... |
9db35a0ea69cc7f66809b8c3b5e1b9b775bd3cb2 | 6416b746ee71d897789eab1e450000831674dbd0 | /src/otx/algorithms/anomaly/configs/base/configuration_enums.py | 4988c475a7075e448da637a82895bc7fdca3057e | [
"Apache-2.0"
] | permissive | openvinotoolkit/training_extensions | c921f83ad52311af96ff45ae0b88d0aecddd855b | 80454808b38727e358e8b880043eeac0f18152fb | refs/heads/develop | 2023-08-31T06:29:07.229339 | 2023-08-31T01:57:26 | 2023-08-31T01:57:26 | 154,843,614 | 397 | 230 | Apache-2.0 | 2023-09-14T06:17:01 | 2018-10-26T14:02:29 | Python | UTF-8 | Python | false | false | 1,672 | py | configuration_enums.py | """Configuration Enums.
Enums needed to define the options of selectable parameters in the configurable
parameter classes.
"""
# Copyright (C) 2021 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain ... |
f2ce200170ca60b5b92212ae777642db8605ffe7 | a0736beb3269a71b2f5b13cafe8fb5e7f6f540f4 | /src/lib/time.py | cbb80050fb914d4eeff5f13f97cd9850e120fd0a | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | GoogleCloudPlatform/covid-19-open-data | d9e467fadbfc71686e30e28f3ce1d438e8fd92ba | 1123ce02a0b4059d6acd4c4446f3f9b8335018f1 | refs/heads/main | 2023-08-02T23:57:12.785363 | 2022-10-23T22:26:29 | 2022-10-23T22:26:29 | 282,079,576 | 489 | 146 | Apache-2.0 | 2022-09-05T12:00:37 | 2020-07-23T23:43:51 | Python | UTF-8 | Python | false | false | 2,426 | py | time.py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
396730567910427a772170397c6b4b36f712591f | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/cat-and-mouse-ii.py | dacecda01c09520890232c7bc683bc2dfb76c4f3 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 6,470 | py | cat-and-mouse-ii.py | # Time: O((m * n)^2 * (m + n))
# Space: O((m * n)^2)
import collections
class Solution(object):
def canMouseWin(self, grid, catJump, mouseJump):
"""
:type grid: List[str]
:type catJump: int
:type mouseJump: int
:rtype: bool
"""
directions = [(0, 1), (1, 0)... |
5f614093ee30df4f60522327c638a21d69b74faf | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/Opsgeniev2/Integrations/Opsgeniev2/Opsgeniev2_test.py | 4e10faca2fef0565b393103ff313aac28fdbbc4c | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 5,155 | py | Opsgeniev2_test.py | import pytest
import os
from Opsgeniev2 import Client
import json
from unittest.mock import call
"""
Test script for the OpsGenieV2 Integration
Envvars:
API_TOKEN: If configured, runs integration tests.
GEN_TEST_DATA: If set, copies the raw output* of the API queries into test_data.
* In the case of Paged da... |
c38234b16ea89b0359176a2bb4dc1bcff293be32 | 542ea44d056fa800a67f80d403c3e92a7f73747d | /drop/config/Genome.py | 46da99a3ab6a868e902eaca787fb9f5d35f83357 | [
"MIT"
] | permissive | gagneurlab/drop | 01dfff87721253559f2c6d4dceb57c194f6b859f | 594d7daaff872604d65ae1537a0fe59f463de6b3 | refs/heads/master | 2023-07-27T18:28:02.999705 | 2023-04-14T09:50:33 | 2023-04-14T09:50:33 | 213,693,892 | 102 | 44 | MIT | 2023-07-07T09:41:58 | 2019-10-08T16:21:43 | Python | UTF-8 | Python | false | false | 2,418 | py | Genome.py | from pathlib import Path
from snakemake.logging import logger
class Genome:
def __init__(self, annotation, assembly, reference):
self.annotation = annotation
self.assembly = assembly
# Allow for old drop config stylings, where the file was a string under MAE
# -> force into dicti... |
84f35093cc809b81caf225d99cfd05fb497646b0 | ea57d267ab31480d8d731b2c095e9da9ad989133 | /tests/test_packages_for_aea_tests/test_connections/test_p2p_libp2p_mailbox/test_aea_cli.py | 2018a47e338a7e9d8e0e3e0e14378edf2a5dd69b | [
"Apache-2.0"
] | permissive | fetchai/agents-aea | 6d034f1db6f3beacf31dac2f5a1baaa60c8edb7d | bec49adaeba661d8d0f03ac9935dc89f39d95a0d | refs/heads/main | 2023-08-08T23:19:06.276643 | 2023-02-04T10:46:39 | 2023-02-04T10:46:39 | 203,558,879 | 192 | 58 | Apache-2.0 | 2023-07-19T04:45:26 | 2019-08-21T10:12:47 | Python | UTF-8 | Python | false | false | 4,599 | py | test_aea_cli.py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2023 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.
# You may obtain a copy of the ... |
d7e7188f412a84ae7c178dbae238cd0ece0c061f | 1fd8e5db25f8ebc7cc4506cbb07ba98f717b667e | /info.py | d89941613cab3599554286289f0b4476a0364cda | [] | no_license | flatplanet/Intro-To-TKinter-Youtube-Course | 6103410435fc3b977fb44a4b08d045950ba10380 | cf988099fc358e52ed773273cb2e7ddb9d37d995 | refs/heads/master | 2022-10-06T10:02:38.689302 | 2022-07-18T18:11:12 | 2022-07-18T18:11:12 | 174,183,345 | 524 | 426 | null | 2021-10-10T16:16:44 | 2019-03-06T16:44:03 | Python | UTF-8 | Python | false | false | 677 | py | info.py | from tkinter import *
root = Tk()
root.title('Codemy.com')
root.iconbitmap('c:/gui/codemy.ico')
root.geometry("800x800+-1900+100")
def info():
dimension_label = Label(root, text=root.winfo_geometry())
dimension_label.pack(pady=20)
height_label = Label(root, text=f"Height: {root.winfo_height()}")
height_label.pa... |
164bc39995fc032148e1ac96d967a2aedb890781 | 77f85a550c28212071067cb122ebfd93eb705190 | /tests/tools/test_spectral.py | 3a332c2a9eaf18056fdba1a1bddb8552a10aa28e | [
"MIT"
] | permissive | zwicker-group/py-pde | baf215a733508fe86093ea9e818228bbb3b34c58 | d9c931a8361eaf27bc3766daba26edc11756b5f5 | refs/heads/master | 2023-08-31T06:36:34.514617 | 2023-08-30T18:15:44 | 2023-08-30T18:15:44 | 242,093,001 | 327 | 45 | MIT | 2023-08-31T13:16:24 | 2020-02-21T08:42:23 | Python | UTF-8 | Python | false | false | 2,673 | py | test_spectral.py | """
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
"""
import numpy as np
import pytest
from scipy import fftpack, stats
from pde import CartesianGrid, UnitGrid
from pde.tools.spectral import make_colored_noise
def spectral_density(data, dx=1.0):
"""calculate the power spectral density of a field
... |
88e4e6a3be58e7f0fd0aec04f47f267997cba81d | 8ca98d2c7226f3fd7801665837a06758cbbf7903 | /verde/io.py | ad2dcf9f2a396feac25de920480725bfd9bd76ce | [
"BSD-3-Clause"
] | permissive | fatiando/verde | d30f70acb1aaf38ef0b1efaa8e651a9d8f874d60 | ec5509464bf1b4cb72b53a0e8e2c5d5ab4e87a1e | refs/heads/main | 2023-08-29T00:06:04.990472 | 2023-05-08T13:41:22 | 2023-05-08T13:41:22 | 131,073,898 | 532 | 79 | BSD-3-Clause | 2023-05-08T13:41:24 | 2018-04-25T23:21:08 | Python | UTF-8 | Python | false | false | 4,476 | py | io.py | # Copyright (c) 2017 The Verde Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
#
# This code is part of the Fatiando a Terra project (https://www.fatiando.org)
#
"""
Functions for input and output of grids in less common formats.
"""
import numpy as np
impo... |
76d8fad0b7962c6c83c8537d28ec2dd0cfe3108d | 3f0948e07aef06f734fa6db3945b192f71ab435f | /tests/test_typing_utils.py | 8f87946885d32871b0012eda45cf9d36c7341e41 | [
"BSD-3-Clause"
] | permissive | nucleic/atom | c15c932c3a1386469685580867105df7be5c0ba3 | 761a52821d8c77b5718216256963682d11599c1e | refs/heads/main | 2023-08-25T07:55:24.697711 | 2023-05-05T07:59:30 | 2023-05-05T07:59:30 | 8,594,952 | 251 | 49 | NOASSERTION | 2023-09-11T17:00:00 | 2013-03-06T03:20:53 | Python | UTF-8 | Python | false | false | 2,163 | py | test_typing_utils.py | # --------------------------------------------------------------------------------------
# Copyright (c) 2021, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -------------------------------------------... |
ab750627424dbe897c7432c09c6d8d1002e0c768 | a8b0599af76b5393039431f876be00d628a1fe43 | /examples/breast_cancer.py | 78f65e299f3442208611b4865882d3f872644ba9 | [
"Apache-2.0"
] | permissive | comet-ml/kangas | c951f648d890dca5a66cbab405d3437be2f3e9e3 | df0c1a495032cc4f1c367c74fcb0ef6e5a2063be | refs/heads/main | 2023-06-12T23:38:43.068259 | 2023-06-05T18:38:34 | 2023-06-05T19:28:33 | 550,324,241 | 944 | 41 | Apache-2.0 | 2023-06-05T19:28:35 | 2022-10-12T15:10:04 | Jupyter Notebook | UTF-8 | Python | false | false | 3,319 | py | breast_cancer.py | # -*- coding: utf-8 -*-
######################################################
# _____ _____ _ _ #
# (____ \ _ | ___) (_) | | #
# _ \ \ ____| |_ ____| | ___ ___ _ _ | | #
# | | | )/ _ | _)/ _ | |(_ / __) |/ || | #
# | |__/ ( ( | | |... |
586a56903d4a0c57d90a3fa0a0b7d5444d8907a1 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/pgm-index/all/conanfile.py | 0169b4f5c8cc9594e068e882c672d11a1a6d406f | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 2,377 | py | conanfile.py | from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.build import check_min_cppstd
from conan.tools.files import copy, get
from conan.tools.layout import basic_layout
from conan.tools.microsoft import is_msvc
from conan.tools.scm import Version
import os
required_conan_versio... |
43b75b61353d8d5d4c1b16a99ce9b7abd87729f1 | 11addbd8e89d5ea614c7668b4fef736bb41d4dac | /core/jms-implementation/support-mini-x86-32/bin/panther/Bio/_utils.py | e1320cd687350ef08ea1c11859fb9f714c265170 | [
"BSD-3-Clause",
"LicenseRef-scancode-biopython",
"Apache-2.0"
] | permissive | ebi-pf-team/interproscan | e5a99140b0d66e7b5b722093be6cb0249d498294 | 1fe33c359c01d452305233272f163d28463d3f98 | refs/heads/master | 2023-08-29T12:58:05.713771 | 2023-06-22T08:07:43 | 2023-06-22T08:07:43 | 39,084,866 | 265 | 78 | Apache-2.0 | 2023-06-29T15:46:42 | 2015-07-14T15:54:17 | Java | UTF-8 | Python | false | false | 4,246 | py | _utils.py | # Copyright 2010 by Eric Talevich. All rights reserved.
# Copyright 2012 by Wibowo Arindrarto. All rights reserved.
#
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that should have been in... |
b943397db75502ae2757a08fbf1757a6de336411 | 1c82ebd0cf02a80b97c3d2200505ed470360619c | /dask_image/ndfilters/_smooth.py | ac9bd6f45fd0d98e783af8a4b8e9f69dec20c01f | [
"BSD-3-Clause"
] | permissive | dask/dask-image | 4f248391852a1474c937ee5332d72adea227fc5b | 86b56a7726ced371a0a52faaf24e66fb68ca95f0 | refs/heads/main | 2023-08-08T12:13:09.645375 | 2023-08-08T00:21:46 | 2023-08-08T00:21:46 | 123,603,345 | 178 | 44 | BSD-3-Clause | 2023-09-11T02:38:25 | 2018-03-02T16:30:58 | Python | UTF-8 | Python | false | false | 895 | py | _smooth.py | # -*- coding: utf-8 -*-
import scipy.ndimage
from ..dispatch._dispatch_ndfilters import dispatch_uniform_filter
from . import _utils
from ._gaussian import gaussian_filter
__all__ = [
"uniform_filter",
]
gaussian_filter = gaussian_filter
@_utils._update_wrapper(scipy.ndimage.uniform_filter)
def uniform_filte... |
ec3c40e2650b4cbf29f4f6e6a3a7340acfe0575c | 4467a183750d42e6633e6447b5c93f6cdf95a70a | /scripts/replay.py | fa60467f45819f18748b90e30510ba0ea04357f8 | [
"Apache-2.0"
] | permissive | erdos-project/pylot | e741a4377e3e102c83d6bbe94ab6745648de3b90 | a71ae927328388dc44acc784662bf32a99f273f0 | refs/heads/master | 2023-04-08T00:13:49.240926 | 2023-01-27T03:24:16 | 2023-01-27T03:24:16 | 190,252,594 | 389 | 117 | Apache-2.0 | 2023-03-24T22:58:22 | 2019-06-04T17:54:40 | Python | UTF-8 | Python | false | false | 2,122 | py | replay.py | import time
from absl import app
from absl import flags
from carla import Location, Rotation, Transform
import pylot.flags
from pylot.simulation.utils import get_world
flags.DEFINE_float('replay_start_time', 0.0,
'The time at which to start replaying')
flags.DEFINE_float('replay_duration', 0.0,
... |
f4481e68bda4bf8acce533d27130ddd4cca90954 | 61a148d684047323f866017c6c95e0dc78682c43 | /core/amber/src/main/python/core/runnables/test_main_loop.py | df12252605b92fd3bad1aff131fd9825a2b5c358 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | Texera/texera | 9dd92dd0999fd78ff37cb6241f3395d475549e27 | ca554ecad8e161b489aa17bdb17c9249ef888b6d | refs/heads/master | 2023-09-03T21:46:42.147647 | 2023-08-31T21:42:30 | 2023-08-31T21:42:30 | 53,976,910 | 129 | 61 | Apache-2.0 | 2023-09-14T15:53:52 | 2016-03-15T20:38:46 | Scala | UTF-8 | Python | false | false | 19,114 | py | test_main_loop.py | import inspect
from threading import Thread
import pandas
import pyarrow
import pytest
from core.models import (
InputDataFrame,
OutputDataFrame,
EndOfUpstream,
InternalQueue,
Tuple,
)
from core.models.internal_queue import DataElement, ControlElement
from core.runnables import MainLoop
from core.... |
a2abaf0b6a30ee51ad42e4b35104be66ce7b5df2 | cc0ebf14bf29edfd89441749310f44f4aad989e6 | /windpowerlib/turbine_cluster_modelchain.py | 4f3258a5ee1709dd4893dd3b96e9be44a54ebc5b | [
"MIT"
] | permissive | wind-python/windpowerlib | 253471ccce018a328b96f65da7a768182a630bef | 2c5af71bdaa69376d3c0caa8d0a31f1b03681fc4 | refs/heads/dev | 2023-08-22T21:05:46.880749 | 2023-04-12T19:01:00 | 2023-04-12T19:01:00 | 66,651,306 | 290 | 108 | MIT | 2023-08-15T09:22:27 | 2016-08-26T13:50:35 | Python | UTF-8 | Python | false | false | 13,193 | py | turbine_cluster_modelchain.py | """
The ``turbine_cluster_modelchain`` module contains functions and classes of the
windpowerlib. This module makes it easy to get started with the windpowerlib
and shows use cases for the power output calculation of wind farms and wind
turbine clusters.
SPDX-FileCopyrightText: 2019 oemof developer group <contact@oemo... |
c1dbf6fd42fcfd6d8691cbd8db03026a44398496 | 376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb | /textproc/py-ICU/patches/patch-setup.py | 8824590a78931bad2c5e7f2b4c364d0a91635760 | [] | no_license | NetBSD/pkgsrc | a0732c023519650ef821ab89c23ab6ab59e25bdb | d042034ec4896cc5b47ed6f2e5b8802d9bc5c556 | refs/heads/trunk | 2023-09-01T07:40:12.138283 | 2023-09-01T05:25:19 | 2023-09-01T05:25:19 | 88,439,572 | 321 | 138 | null | 2023-07-12T22:34:14 | 2017-04-16T20:04:15 | null | UTF-8 | Python | false | false | 1,937 | py | patch-setup.py | $NetBSD: patch-setup.py,v 1.4 2022/11/23 22:18:47 adam Exp $
Add NetBSD support.
--- setup.py.orig 2022-10-25 04:31:36.000000000 +0000
+++ setup.py
@@ -64,6 +64,8 @@ if platform.startswith(('linux', 'gnu'))
platform = 'linux'
elif platform.startswith('freebsd'):
platform = 'freebsd'
+elif platform.startswi... |
61baf6d8c123b3775ccd065f5678aac594e50a18 | 5bd1490ada452d262819b51d240b519b7264dbd8 | /Chapter 4/ch4_3.py | e131ffda1bbbed1dcfb67973c92773cfb3afb700 | [] | no_license | PacktPublishing/Mastering-Natural-Language-Processing-with-Python | 59feee3a1ac0751f97256af328c6957adaeb7111 | 61fb2091f8c2d42fa5f14cb02664b0f2ca9127a1 | refs/heads/master | 2022-11-05T20:29:52.245545 | 2022-10-28T07:52:43 | 2022-10-28T07:52:43 | 60,772,409 | 142 | 124 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | ch4_3.py | import nltk
print(nltk.help.upenn_tagset('VB.*'))
|
b5aaa9eeea583fc2a2cbd5b42509c10605670a26 | 1742b6719b988e5519373002305e31d28b8bd691 | /sdk/python/pulumi_aws/route53domains/_inputs.py | fbca943cfdc36927dcc8fdf31713605a7a67bc30 | [
"MPL-2.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-aws | 4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a | 42b0a0abdf6c14da248da22f8c4530af06e67b98 | refs/heads/master | 2023-08-03T23:08:34.520280 | 2023-08-01T18:09:58 | 2023-08-01T18:09:58 | 97,484,940 | 384 | 171 | Apache-2.0 | 2023-09-14T14:48:40 | 2017-07-17T14:20:33 | Java | UTF-8 | Python | false | false | 31,472 | py | _inputs.py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
fr... |
3e23df8ccd059e8b3f7c8af59cd027a20a43c947 | 3db7b5409f2f9c57ab3f98bda50f8b548d98063d | /samples/snippets/authenticate_service_account.py | 8a8c9557dc9b16ad019c18ea6b676a7c55476012 | [
"Apache-2.0"
] | permissive | googleapis/python-bigquery | 66db156b52e97565f6211b2fab5aac4e519fa798 | 3645e32aeebefe9d5a4bc71a6513942741f0f196 | refs/heads/main | 2023-09-01T07:41:24.893598 | 2023-08-23T19:04:13 | 2023-08-23T19:04:13 | 226,992,475 | 622 | 287 | Apache-2.0 | 2023-09-12T04:31:26 | 2019-12-10T00:09:04 | Python | UTF-8 | Python | false | false | 1,755 | py | authenticate_service_account.py | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
bad2a8e7cc917214291e098b17fc6b9db06686ad | 31aee922759bcfd2bcfb56a81f814d52ebcd3dcc | /tests/unit/facts/test__init__.py | 5327e63bb116ec86f5f43af6f824783bad797aeb | [
"Apache-2.0"
] | permissive | Juniper/py-junos-eznc | 2eba47a5feb440bc46163e1bc709138d09a568f5 | e19a7683be1da67140798987ac42e8c82041c393 | refs/heads/master | 2023-09-04T10:26:41.094991 | 2023-08-02T04:06:38 | 2023-08-02T04:06:38 | 13,530,047 | 628 | 384 | Apache-2.0 | 2023-09-12T03:56:01 | 2013-10-12T22:21:38 | Python | UTF-8 | Python | false | false | 717 | py | test__init__.py | __author__ = "Stacy Smith"
__credits__ = "Jeremy Schulman, Nitin Kumar"
try:
import unittest2 as unittest
except ImportError:
import unittest
from nose.plugins.attrib import attr
import importlib
import sys
import jnpr.junos.facts
@attr("unit")
class TestFactInitialization(unittest.TestCase):
def test_d... |
58b63fa132e1189c89c9536a7997bc1531e2cf85 | 71fb04f723b46a1bf45295be239bcec25e07f98c | /keras_cv/layers/preprocessing/vectorized_base_image_augmentation_layer_test.py | 38cff729408bd4e3be1b237f83ded86b50799ce4 | [
"Apache-2.0"
] | permissive | keras-team/keras-cv | 9bca4479474e853ec3a1c541b8be20fea2447a1a | e83f229f1b7b847cd712d5cd4810097d3e06d14e | refs/heads/master | 2023-08-31T10:22:08.406394 | 2023-08-30T20:24:57 | 2023-08-30T20:24:57 | 265,079,853 | 818 | 287 | NOASSERTION | 2023-09-12T16:49:01 | 2020-05-18T22:39:21 | Python | UTF-8 | Python | false | false | 20,777 | py | vectorized_base_image_augmentation_layer_test.py | # Copyright 2023 The KerasCV 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... |
1b38a4e94b17d68e7a65136093dd11d41bc1d3b6 | d3ef2463f556d6cd166eb29d3a5f5b210a6402e7 | /cupyx/_pinned_array.py | f9b8c9c813b4b513e26bf4199b59947316784838 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cupy/cupy | ce7a010a57504dbfe4fb5af10d354a22e79f4907 | 96105afb78aa3f8380834d2516184b8365e23fcb | refs/heads/main | 2023-08-31T00:36:47.967611 | 2023-08-30T09:19:27 | 2023-08-30T09:19:27 | 72,523,920 | 7,505 | 1,072 | MIT | 2023-09-14T01:04:42 | 2016-11-01T09:54:45 | Python | UTF-8 | Python | false | false | 5,108 | py | _pinned_array.py | import numpy
from cupy import cuda
from cupy._creation.basic import _new_like_order_and_strides
from cupy._core import internal
def _update_shape(a, shape):
if shape is None and a is not None:
shape = a.shape
elif isinstance(shape, int):
shape = (shape,)
else:
shape = tuple(shape)... |
8347c68e074bc89ffd3618c1bf1acc1378d2cfb6 | 8718fe44768d41f2d87559af26b7858a5997ecf2 | /tools/lib-alert-tree/tests/test_cli.py | a8a2992730f6d63e13880fa8d5800875c745b856 | [
"Apache-2.0"
] | permissive | scality/metalk8s | b1891a8a236b80f7b7282e5a0a29cb063cdeaffa | 6854d582f58592675afb3759585ce614b3db08f3 | refs/heads/development/126.0 | 2023-08-16T17:47:52.110502 | 2023-08-16T12:31:08 | 2023-08-16T12:31:08 | 124,905,930 | 321 | 50 | Apache-2.0 | 2023-09-14T11:27:20 | 2018-03-12T14:57:42 | SaltStack | UTF-8 | Python | false | false | 9,688 | py | test_cli.py | """Check the generated CLI behavior."""
import textwrap
import tempfile
import click
from click.testing import CliRunner
from lib_alert_tree import cli
from lib_alert_tree.models import DerivedAlert as D, ExistingAlert as E
from lib_alert_tree.models import Relationship, severity_pair
ROOT_W, ROOT_C = severity_pair... |
f1b1303f8186cafcc0b3c0a5f6a9cbcfb0fefad6 | 5c3296ff65e5a07852ff9dad1cc5e07991d08270 | /lingvo/tasks/car/breakdown_metric_test.py | 62c9597c97444cbea03570e96c3e0ce8e896b41b | [
"Apache-2.0"
] | permissive | tensorflow/lingvo | dee164ef6e69edb352f2e855660b9b5227ddcf6f | c00a74b260fcf6ba11199cc4a340c127d6616479 | refs/heads/master | 2023-09-01T22:08:55.758781 | 2023-08-30T00:50:34 | 2023-08-30T00:51:26 | 142,219,189 | 2,963 | 485 | Apache-2.0 | 2023-09-07T00:52:48 | 2018-07-24T22:30:28 | Python | UTF-8 | Python | false | false | 17,257 | py | breakdown_metric_test.py | # 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... |
9c5652b55c9a884cd19041bd0904b864c44339be | 1dfdc35068eeef9a0525bd1ea75362baa7ed3ff5 | /deplacy/deplacy.py | 77b68d86cd65872474bd0f1356621477adc6a581 | [
"MIT"
] | permissive | KoichiYasuoka/deplacy | 8204ab8dad209ad0be17e98f00c945eccf0b76e2 | 37a8d28b6dd3e6e85de92b445ecbce7726b1b74b | refs/heads/master | 2023-08-07T03:28:36.733717 | 2023-07-29T03:10:33 | 2023-07-29T03:10:33 | 250,933,692 | 106 | 6 | null | null | null | null | UTF-8 | Python | false | false | 12,487 | py | deplacy.py | # coding=utf-8
import os,tempfile
from pkg_resources import get_distribution
from http.server import BaseHTTPRequestHandler
from http import HTTPStatus
PACKAGE_DIR=os.path.abspath(os.path.dirname(__file__))
VERSION="HTTP deplacy/"+get_distribution("deplacy").version
EDITOR_URL="https://koichiyasuoka.github.io/deplacy... |
c5c3fcc4b48ce5d6ad05cc5b76bb0ba7f62097e6 | 2f7dc0184e5b4c0c15973b498c589de2d049e277 | /tests/check_case_conflict_test.py | a914f452794be919956b5e26c18eac6362216ce0 | [
"MIT"
] | permissive | pre-commit/pre-commit-hooks | 178ab044f0b18893d69521f13fc6cf9a29a13a09 | 3a569ca95749f562ff8b742e3568a077caeb5eb7 | refs/heads/main | 2023-08-18T02:31:00.550553 | 2023-08-15T14:18:50 | 2023-08-15T14:18:50 | 17,714,713 | 4,311 | 831 | MIT | 2023-09-14T20:13:15 | 2014-03-13T15:21:46 | Python | UTF-8 | Python | false | false | 3,866 | py | check_case_conflict_test.py | from __future__ import annotations
import sys
import pytest
from pre_commit_hooks.check_case_conflict import find_conflicting_filenames
from pre_commit_hooks.check_case_conflict import main
from pre_commit_hooks.check_case_conflict import parents
from pre_commit_hooks.util import cmd_output
from testing.util import ... |
1f0ee4c7b1f60a3d393cc52023b066e3f8cd9587 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayBossFncOutputinvoiceOutbillApplyModel.py | c38ae903bff739b97a3c8ebccbf5153095ba5012 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 5,145 | py | AlipayBossFncOutputinvoiceOutbillApplyModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
from alipay.aop.api.domain.InvoiceApplyOpenApi import InvoiceApplyOpenApi
class AlipayBossFncOutputinvoiceOutbillApplyMo... |
07ea7cad6ca329188882d3070984e35c3183d3e6 | 9efca95a55cb4df52d895d42f1ec10331516a734 | /c7n/mu.py | af96236b3aa80244c46fcf6bceafe64559b515ec | [
"Apache-2.0"
] | permissive | cloud-custodian/cloud-custodian | 519e602abe00c642786441b64cc40857ef5bc9de | 27563cf4571040f923124e1acb2463f11e372225 | refs/heads/main | 2023-09-04T10:54:55.963703 | 2023-09-01T17:40:17 | 2023-09-01T17:40:17 | 52,837,350 | 3,327 | 1,096 | Apache-2.0 | 2023-09-14T14:03:30 | 2016-03-01T01:11:20 | Python | UTF-8 | Python | false | false | 62,412 | py | mu.py | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
"""
Cloud Custodian Lambda Provisioning Support
docs/lambda.rst
"""
import abc
import base64
import hashlib
import importlib
import io
import json
import logging
import os
import shutil
import time
import tempfile
import zipfile
import plat... |
e366621169479f2eb1ffd21076252def62da7763 | aa793c2b787ff591f69147e2cc5e23d6c7b4d77e | /proxyclient/m1n1/hw/i2c.py | e2bda7add04b0021921b8832702268530159c9af | [
"MIT",
"BSD-3-Clause",
"OFL-1.1",
"GPL-2.0-only",
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | AsahiLinux/m1n1 | 8280a8342c407936beabda0f08a700759a636b05 | 6d0979e71e83f47c5da5fdb8c5e21eb1268d54e8 | refs/heads/main | 2023-08-22T20:52:30.090704 | 2023-08-21T14:16:08 | 2023-08-21T14:16:08 | 329,707,886 | 2,966 | 200 | MIT | 2023-09-07T10:19:39 | 2021-01-14T18:59:03 | Python | UTF-8 | Python | false | false | 8,343 | py | i2c.py | # SPDX-License-Identifier: MIT
from ..utils import *
from enum import IntEnum
__all__ = ["I2C", "I2CRegs"]
class R_MTXFIFO(Register32):
READ = 10 # Read (DATA=count)
STOP = 9 # Issue START before
START = 8 # Issue STOP after
DATA = 7, 0 # Byte to send or count
... |
5322adf992c5b3bdc2bd414c204d109418b48a7b | d5a3aa96b30a5a6a355b4e004e494a6ef41a339c | /dataviz/euforeignleaders.py | 3ab1b77b3f8e5fe9ee3f03a4434178ed4c914e70 | [
"MIT"
] | permissive | Udzu/pudzu | 4c1c134503f62fd1cc08a56e257b864033b38561 | df5019802bc32064870f31cda8397ad14868cda0 | refs/heads/master | 2023-07-10T06:16:35.342990 | 2023-07-04T06:28:00 | 2023-07-04T06:28:00 | 97,936,607 | 120 | 28 | MIT | 2021-02-21T16:15:31 | 2017-07-21T10:34:16 | Roff | UTF-8 | Python | false | false | 5,257 | py | euforeignleaders.py | import seaborn as sns
from pudzu.charts import *
from pudzu.sandbox.bamboo import *
FONT, fg, bg = sans, "white", "black"
atlas = pd.read_csv("datasets/countries.csv").split_columns(('nationality', 'tld', 'country'), "|").explode('country').set_index('country')
df = pd.read_csv("datasets/eu_foreignleaders.csv")
def ... |
48caca5834be2e181103c9189ea68b2201b3fb34 | 302ce5ab1045ee93845608c96580c63d54d730af | /src/spikeinterface/core/tests/test_frameslicerecording.py | 9664f3184b05659cdae09093024f4ca01f10ccc7 | [
"MIT"
] | permissive | SpikeInterface/spikeinterface | f900b62720860b2881d2e6b5fa4441e0e560f625 | ee2237b3f5ce2347b2ec9df90e97b0ee6c738dcf | refs/heads/main | 2023-09-02T11:27:54.687021 | 2023-09-01T13:48:29 | 2023-09-01T13:48:29 | 196,581,117 | 295 | 133 | MIT | 2023-09-14T19:12:16 | 2019-07-12T13:07:46 | Python | UTF-8 | Python | false | false | 1,536 | py | test_frameslicerecording.py | import pytest
import numpy as np
from spikeinterface.core import FrameSliceRecording, NumpyRecording
def test_FrameSliceRecording():
traces = np.zeros((1000, 5), dtype="float64")
traces[:] = np.arange(1000)[:, None]
sampling_frequency = 30000
rec = NumpyRecording([traces], sampling_frequency)
tim... |
cd6f66c3a54e1d9775a4e5cd2f8e28c70d86668e | 39568e19301a7a112398be542154950af25591de | /hw/vendor/lowrisc_ibex/dv/uvm/core_ibex/directed_tests/gen_testlist.py | 358469a1c27c82aa15647c2325894e2957a35983 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lowRISC/opentitan | 493995bc7cf7cb3aee486a5203af3fd62bba3bfc | 51f6017b8425b14d5a4aa9abace8fe5a25ef08c8 | refs/heads/master | 2023-08-31T22:05:09.425796 | 2023-08-14T14:52:15 | 2023-08-31T20:31:13 | 204,516,692 | 2,077 | 634 | Apache-2.0 | 2023-09-14T21:16:21 | 2019-08-26T16:30:16 | SystemVerilog | UTF-8 | Python | false | false | 18,103 | py | gen_testlist.py | #!/usr/bin/env python3
"""
Generating testlists for following opensource test suites
- riscv-tests
- riscv-arch-tests
- ePMP directed tests
"""
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
import os
impor... |
e4d4fa61c722c3e34b658747671966f4ee90955a | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_return_header.py | f6e3f0cb83662ce30a77c1e39b41527ae12ae366 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,200 | py | debug_case_return_header.py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DebugCaseReturnHeader:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attrib... |
3bf4b47a1832b9e0120ba37b7eac81ce41a4443d | d2621d10d6d0aa4fcecbb11c281e3dd680b985fc | /ts/metrics/metric_cache_yaml_impl.py | fa170dd816a37a4e288edab9213217c2e94b111f | [
"Apache-2.0"
] | permissive | pytorch/serve | 7b562a4d6372e77ce28fc71a5b8d5455c6f02290 | 242895c6b4596c4119ec09d6139e627c5dd696b6 | refs/heads/master | 2023-08-31T05:24:10.950144 | 2023-08-31T02:49:22 | 2023-08-31T02:49:22 | 212,488,700 | 3,689 | 895 | Apache-2.0 | 2023-09-13T22:34:31 | 2019-10-03T03:17:43 | Java | UTF-8 | Python | false | false | 6,518 | py | metric_cache_yaml_impl.py | """
Metrics Cache class for creating objects from yaml spec
"""
import logging
import yaml
import ts.metrics.metric_cache_errors as merrors
from ts.metrics.caching_metric import CachingMetric
from ts.metrics.metric_cache_abstract import MetricCacheAbstract
from ts.metrics.metric_type_enum import MetricTypes
logger =... |
4131d02a549957d942147916b105bd40bdb1250d | 6146e33102797407ede06ce2daa56c28fdfa2812 | /python/GafferUITest/LabelPlugValueWidgetTest.py | 82682511e7170cda48016959139e48035f6a1fb5 | [
"BSD-3-Clause"
] | permissive | GafferHQ/gaffer | e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64 | 59cab96598c59b90bee6d3fc1806492a5c03b4f1 | refs/heads/main | 2023-09-01T17:36:45.227956 | 2023-08-30T09:10:56 | 2023-08-30T09:10:56 | 9,043,124 | 707 | 144 | BSD-3-Clause | 2023-09-14T09:05:37 | 2013-03-27T00:04:53 | Python | UTF-8 | Python | false | false | 7,740 | py | LabelPlugValueWidgetTest.py | ##########################################################################
#
# Copyright (c) 2023, Cinesite VFX Ltd. 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 ... |
6c94209dbce672f38899ceeadfb28f355a1c6490 | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /api/tests/opentrons/protocol_reader/__init__.py | ee61e64cb964312c6508cbe0b798aedfab8578ff | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 54 | py | __init__.py | """Tests for the opentrons.protocol_reader module."""
|
a536c417aea4d61b5c0d966e66588d10bdc09ce9 | 79e8247110b113395f6ad935209c24b3d2590f24 | /plugins/lighthouse/painting/painter.py | 63b60034c978f175db258188f74585fa7f0cc09b | [
"MIT"
] | permissive | gaasedelen/lighthouse | 133a3fb019095c06d7432db2ac6a9dfb8be55ef7 | f4642e8b4b4347b11ccb25a79ec4f490c9ad901d | refs/heads/develop | 2023-07-19T21:13:47.247797 | 2022-02-17T07:59:38 | 2022-02-17T19:29:27 | 81,627,212 | 2,053 | 309 | MIT | 2023-05-14T00:11:52 | 2017-02-11T03:13:36 | Python | UTF-8 | Python | false | false | 23,083 | py | painter.py | import abc
import time
import logging
import threading
from lighthouse.util import *
from lighthouse.util.debug import catch_errors
from lighthouse.coverage import FunctionCoverage
logger = logging.getLogger("Lighthouse.Painting")
class DatabasePainter(object):
"""
An asynchronous disassembler database paint... |
b0422fc52e96e66f285f90d9eb46cb83faab6a62 | 2c5dffdcdb3d9a1df7d318da69339a1dd223c89f | /tests/mysql_ext.py | 5d9d6005430841c4abf2b178fdf11632bbd996b8 | [
"MIT"
] | permissive | coleifer/peewee | 44cd6fe174b1a618852099fc70b3d1ae19ed6af1 | a6f479dc0e8063a9a7f7053b04d93f34d67737ce | refs/heads/master | 2023-08-31T19:23:04.646702 | 2023-08-30T12:12:23 | 2023-08-30T12:12:23 | 979,480 | 9,841 | 1,885 | MIT | 2023-08-22T12:54:42 | 2010-10-11T20:14:11 | Python | UTF-8 | Python | false | false | 4,533 | py | mysql_ext.py | import datetime
from peewee import *
from playhouse.mysql_ext import JSONField
from playhouse.mysql_ext import Match
from .base import IS_MYSQL_JSON
from .base import ModelDatabaseTestCase
from .base import ModelTestCase
from .base import TestModel
from .base import db_loader
from .base import requires_mysql
from .ba... |
4ee76af03f478e2ac7a717373889db56a8d3c18e | 90e76adae07c81392d64fdfcb95f659e8a0c3f11 | /tests/unit/auth/test_sigv4.py | 86c37ceca9ef98135d14ef9c384c05d87ab292f5 | [
"Apache-2.0",
"MPL-2.0",
"MIT"
] | permissive | boto/botocore | b9468d08c83372cf6930643a15f87801b79ffddd | 7275c5d6e9273caf3804e0ce9491af080518798c | refs/heads/develop | 2023-09-01T18:11:40.617674 | 2023-08-31T18:58:50 | 2023-08-31T18:58:50 | 6,670,942 | 1,289 | 1,234 | Apache-2.0 | 2023-09-13T17:23:42 | 2012-11-13T13:25:36 | Python | UTF-8 | Python | false | false | 6,559 | py | test_sigv4.py | # Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file ac... |
58f086328f3aee446d81dffdd7a602d49c4f443a | ef82d38558559c01eacff610391c420096f37826 | /autogl/module/nas/scatter_utils.py | b40c2abb065f8ee1799b5c20a04af323c4378b27 | [
"Apache-2.0"
] | permissive | THUMNLab/AutoGL | 472e89b43d22487d63e2b91e27c104c50f702649 | 8e9098657c23ed1a48326077557b65fcadde8c34 | refs/heads/main | 2023-06-26T11:10:02.804744 | 2022-12-30T06:04:33 | 2022-12-30T06:04:33 | 317,248,195 | 1,007 | 109 | Apache-2.0 | 2022-12-30T05:43:50 | 2020-11-30T14:26:22 | Python | UTF-8 | Python | false | false | 10,432 | py | scatter_utils.py | # copied from torch_scatter
from typing import Optional, Tuple
import torch
def broadcast(src: torch.Tensor, other: torch.Tensor, dim: int):
if dim < 0:
dim = other.dim() + dim
if src.dim() == 1:
for _ in range(0, dim):
src = src.unsqueeze(0)
for _ in range(src.dim(), other.dim... |
0362a4beb77b811a6dcfb5a8e0728495ed4ceccf | 8868204daf8de5a2910cedefe29e6c56340b06e6 | /Projects/ESP-MicroPython/MQTT/esp_dht_mqtt.py | c72f851b6ca7ddc9275e5625e18e9ba1981d9d8a | [] | no_license | RuiSantosdotme/Random-Nerd-Tutorials | 0f79fb56f9b9732bfb272e8f4abedb803a7b4757 | dd6133e1205a2cb5fd408cc198eba2aa14f9b163 | refs/heads/master | 2023-08-30T15:17:08.020453 | 2023-08-22T18:12:09 | 2023-08-22T18:12:09 | 23,052,165 | 379 | 261 | null | 2023-03-31T01:57:45 | 2014-08-17T22:43:29 | C++ | UTF-8 | Python | false | false | 2,177 | py | esp_dht_mqtt.py | # Complete project details at https://RandomNerdTutorials.com/micropython-mqtt-publish-dht11-dht22-esp32-esp8266/
import time
from umqttsimple import MQTTClient
import ubinascii
import machine
import micropython
import network
import esp
from machine import Pin
import dht
esp.osdebug(None)
import gc
gc.collect()
ssid... |
1465f158b21de9ff0fd90f9861ad6d418b1511aa | abbc2d332bdfa036ac12438983e6d74cf4107e64 | /SiamFCpp/SiamFCpp-video_analyst/siamfcpp/evaluation/vot_benchmark/bbox_helper.py | ef61f170c6e48296bde684e509772717cf5caf94 | [] | permissive | HonglinChu/SiamTrackers | c494cff7543a433e8ec7dbf6d9439b1e7395b0c0 | 805208b5348346d35e64abcbe901a3829743e157 | refs/heads/master | 2023-08-29T06:50:59.532271 | 2023-03-06T09:13:53 | 2023-03-06T09:13:53 | 253,718,080 | 1,166 | 243 | Apache-2.0 | 2023-08-03T16:39:53 | 2020-04-07T07:24:00 | Python | UTF-8 | Python | false | false | 2,198 | py | bbox_helper.py | # --------------------------------------------------------
# SiamMask
# Licensed under The MIT License
# Written by Qiang Wang (wangqiang2015 at ia.ac.cn)
# --------------------------------------------------------
from collections import namedtuple
import numpy as np
Corner = namedtuple('Corner', 'x1 y1 x2 y2')
BBox ... |
62151ea2ebb74ba844f76ac4270118ba8584cace | 3c41443364da8b44c74dce08ef94a1acd1b66b3e | /osf/metadata/serializers/datacite/datacite_json.py | 98c57681a17b86fecc4e2d4c9be89781374a3a03 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"AGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | CenterForOpenScience/osf.io | 71d9540be7989f7118a33e15bc4a6ce2d2492ac1 | a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e | refs/heads/develop | 2023-09-04T03:21:14.970917 | 2023-08-31T14:49:20 | 2023-08-31T14:49:20 | 10,199,599 | 683 | 390 | Apache-2.0 | 2023-09-14T17:07:52 | 2013-05-21T15:53:37 | Python | UTF-8 | Python | false | false | 2,219 | py | datacite_json.py | import json
from osf.metadata.serializers import _base
from .datacite_tree_walker import DataciteTreeWalker
def _visit_tree_branch_json(parent, child_name: str, *, is_list=False, text=None, attrib=None):
assert isinstance(parent, (dict, list)), (
f'expected parent to be list or dict, got type {type(paren... |
b15a6c667a2ed0b7ab2c1f59d6e21965eae65367 | d14b5d78b72711e4614808051c0364b7bd5d6d98 | /third_party/llvm-16.0/llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py | e41e71a09d828181ac7d5f4ff42f8a2db49858d3 | [
"Apache-2.0"
] | permissive | google/swiftshader | 76659addb1c12eb1477050fded1e7d067f2ed25b | 5be49d4aef266ae6dcc95085e1e3011dad0e7eb7 | refs/heads/master | 2023-07-21T23:19:29.415159 | 2023-07-21T19:58:29 | 2023-07-21T20:50:19 | 62,297,898 | 1,981 | 306 | Apache-2.0 | 2023-07-05T21:29:34 | 2016-06-30T09:25:24 | C++ | UTF-8 | Python | false | false | 1,962 | py | gen-regalloc-eviction-test-model.py | """Generate a mock model for LLVM tests for Register Allocation.
The generated model is not a neural net - it is just a tf.function with the
correct input and output parameters. By construction, the mock model will always
output the first liverange that can be evicted.
"""
import os
import sys
import tensorflow as tf
P... |
2b48c9cefabe71786ad0c6d2fcd3c36701afe20c | 75ac6a0090829f7afd7e6e663873bbb06d16d3d1 | /servicecatalog_factory/workflow/portfolios/create_portfolio_task_test.py | 08a09c4638a8f262f425f87ef3a28a3bbb29b33f | [
"Apache-2.0"
] | permissive | awslabs/aws-service-catalog-factory | 113206b3290ef6b6cfb30b8c78a2111176439546 | b185b701000895be01d4dc3ad0c6bbd93f4f7ad2 | refs/heads/master | 2023-08-10T04:37:39.475085 | 2023-08-09T11:36:44 | 2023-08-09T11:36:44 | 180,665,776 | 137 | 51 | Apache-2.0 | 2023-08-09T11:31:51 | 2019-04-10T21:21:38 | Python | UTF-8 | Python | false | false | 1,479 | py | create_portfolio_task_test.py | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from unittest import skip
from servicecatalog_factory.workflow import tasks_unit_tests_helper
class CreatePortfolioTaskTest(tasks_unit_tests_helper.FactoryTaskUnitTest):
region = "region"
portfol... |
72f7c41919dfe07c5cc3af715c2c56777d672a5d | cb4f118412a55c52d720bc79e4074606622920ac | /arcade/tilemap/tilemap.py | 726479600b71ad6f1ae277b2b92f4b1493782e03 | [
"MIT"
] | permissive | pythonarcade/arcade | 3e536306f0c44f911de149b58958d8b609ffad4b | 908664efc256697d3098a347f63d217d97841782 | refs/heads/development | 2023-08-29T02:53:01.599145 | 2023-08-26T16:54:34 | 2023-08-26T16:54:34 | 49,003,082 | 786 | 215 | NOASSERTION | 2023-09-12T18:38:54 | 2016-01-04T14:46:52 | Python | UTF-8 | Python | false | false | 41,396 | py | tilemap.py | """
This module provides functionality to load in JSON map files from
the Tiled Map Editor. This is achieved using the pytiled-parser
library.
For more info on Tiled see: https://www.mapeditor.org/
For more info on pytiled-parser see: https://github.com/Beefy-Swain/pytiled_parser
"""
from __future__ import annotation... |
7072bab636b515e4bcf3d0c753bfdbc1ca5a9b18 | 420910ce3d1afb4777fd6e4dd4ac449899394602 | /trajectron/model/online/__init__.py | a1c907062f62f7b97ca6e0bf490434693cd643c8 | [
"MIT"
] | permissive | StanfordASL/Trajectron-plus-plus | 21bf2b1b5cb9251a0de58211c19eb886afbaf75f | 1031c7bd1a444273af378c1ec1dcca907ba59830 | refs/heads/master | 2023-04-13T08:21:08.604997 | 2023-03-12T06:32:17 | 2023-03-12T06:32:17 | 232,498,508 | 572 | 179 | MIT | 2023-08-17T06:09:36 | 2020-01-08T06:52:34 | Jupyter Notebook | UTF-8 | Python | false | false | 106 | py | __init__.py | from .online_trajectron import OnlineTrajectron
from .online_mgcvae import OnlineMultimodalGenerativeCVAE
|
9de40a6e9be33d49f1834ace9462b3cb4998cbc8 | 4157fb5cecec9efd1a6261ff88c421337794041f | /tests/test_export_base.py | 5aa07f679c5335b475c8f29a606def1fbd32a457 | [
"MIT"
] | permissive | nickstenning/honcho | 786859f423dcece8b75773bf65a3c597612f5cab | 9eeb9b43e82b45c13de9999a0e65287cfbf384d6 | refs/heads/main | 2023-08-18T04:54:40.543608 | 2022-10-24T16:16:35 | 2022-10-24T17:12:45 | 3,706,909 | 1,187 | 113 | MIT | 2023-09-01T12:42:15 | 2012-03-13T13:44:30 | Python | UTF-8 | Python | false | false | 1,630 | py | test_export_base.py | # -*- coding: utf-8 -*-
from mock import Mock
from mock import patch
import pytest
from honcho.export.base import BaseExport
from honcho.export.base import dashrepl
from honcho.export.base import percentescape
class GiraffeExport(BaseExport):
def get_template_loader(self):
return 'longneck'
class Test... |
2692542bb0b805bcd1bc80089439823eb02fd9fe | 9dfa5b8c9448d748a611d7a908b7724bc2160953 | /packages/cardpay-reward-indexer/cardpay_reward_indexer/config.py | 14a1d03635bd1232ae3a37585c685eb9c23da716 | [
"MIT"
] | permissive | cardstack/cardstack | 8bb5085e3299ce63ab5cf99c0b24511007526fc8 | 3f0e957ebf4b9caafbd2a9b89944c7d201406a3d | refs/heads/main | 2023-08-24T10:42:20.382920 | 2023-08-18T11:01:25 | 2023-08-18T11:01:25 | 79,036,909 | 364 | 64 | MIT | 2023-09-07T08:23:29 | 2017-01-15T14:15:10 | TypeScript | UTF-8 | Python | false | false | 1,725 | py | config.py | from functools import lru_cache
from pydantic import BaseSettings
config = {
"staging": {
"reward_program": "0x0885ce31D73b63b0Fcb1158bf37eCeaD8Ff0fC72",
"archived_reward_programs": [],
"reward_pool": "0xcF8852D1aD746077aa4C31B423FdaE5494dbb57A",
"rewards_bucket": "s3://cardpay-sta... |
a90d7d8bbad247bfc1fb1910d2a42a98b3443e0a | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /tools/translation/helper/translation_helper.py | 75772e4fb580fa1df781446a74733e4b33ea7465 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 9,461 | py | translation_helper.py | # Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Helpers for dealing with translation files."""
from __future__ import print_function
import ast
import os
import re
import sys
import xml.etree.cElementTree as ElementTree
i... |
83d7396d70707fff1ddc36a23e3cfb2049e1ae31 | 33f46bf38c5d8d23eabe9022b3edc16041089c5f | /apps/10_movie_search/final/movie_svc.py | cc49e4c893a80d85b4cf97393c7ca26efe1b1b9c | [
"MIT"
] | permissive | mikeckennedy/python-jumpstart-course-demos | 0bb8f4571147d4b16a89a28cde546ba6a8a5b2f6 | 4c09fd6e636fc5fcf62dcd696b9600d5342720b9 | refs/heads/master | 2023-08-23T10:04:38.425936 | 2023-04-13T17:47:53 | 2023-04-13T17:47:53 | 52,437,699 | 818 | 614 | MIT | 2021-04-10T05:32:34 | 2016-02-24T11:35:52 | Python | UTF-8 | Python | false | false | 716 | py | movie_svc.py | import collections
import requests
MovieResult = collections.namedtuple(
'MovieResult',
"imdb_code,title,duration,director,year,rating,imdb_score,keywords,genres")
def find_movies(search_text):
if not search_text or not search_text.strip():
raise ValueError("Search text is required")
# This... |
cbc177db62a55a4de26fadb5c45016ba1ae2cbcb | 017090be7ab186cb6b47f49e1066ac5cfec3a542 | /src/neptune/internal/backends/neptune_backend_mock.py | 41ef73a3d41fea8fc3055b9574627360f7eafc73 | [
"Apache-2.0"
] | permissive | neptune-ai/neptune-client | 9a79f9d93c84b3a20114e6e49a80652930399ece | 9b697ce548634c30dbc5881d4a0b223c8987515d | refs/heads/master | 2023-08-18T01:48:22.634432 | 2023-08-17T11:55:57 | 2023-08-17T11:55:57 | 170,117,229 | 408 | 55 | Apache-2.0 | 2023-09-13T12:51:03 | 2019-02-11T11:25:57 | Python | UTF-8 | Python | false | false | 31,714 | py | neptune_backend_mock.py | #
# Copyright (c) 2022, Neptune Labs Sp. z o.o.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... |
b2ea2789f0b7f62616a4c5e0f6092ec6fd8b96b0 | 4d44674625100e62be2bb5033339fb641bd454ac | /snippet/example/python/oslolog.py | 65f346e3655e94cacf122efc8b57bf4de8e23294 | [
"MIT"
] | permissive | xgfone/snippet | 8b9004a649d2575b493a376c4b4f3d4a7c56a4b0 | b0b734dd35478b7ef3e6193623981f4f29b6748c | refs/heads/master | 2022-03-18T12:41:09.033144 | 2022-02-20T15:26:35 | 2022-02-20T15:26:35 | 41,615,643 | 158 | 61 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | oslolog.py | # coding: utf-8
"""
Use the library 'oslo.log' to configure the logging.
Applications should use oslo.log’s configuration functions to register
logging-related configuration options and configure the root and other default
loggers.
(1) Call register_options() before parsing command line options.
(2) Call set_defaults... |
6a7c8b4af60b76fe0f4a3f8ea90d210eb27a78bf | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/graph/test_alexnet_auto_parallel.py | 1d9d16a47797e0c22ad056798144ff38eed8c4ce | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 7,459 | py | test_alexnet_auto_parallel.py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
26b0687ac0dd05058f86bc998e166e4fa076e331 | d8a94767b24377947a3e116a43cf9073c5accd8b | /evaluate.py | 0e343c2b6a44b97d16d6b48d1128e3520796c670 | [
"MIT"
] | permissive | scrapinghub/article-extraction-benchmark | d0fa896e8ae17daeefe9fd1e805d650b3d9c1b35 | 7c60d682959d3140fae3df45121c24e9e4614009 | refs/heads/master | 2023-08-31T17:59:13.902280 | 2021-07-22T18:07:48 | 2021-07-22T18:07:48 | 233,835,655 | 196 | 26 | MIT | 2021-04-13T08:22:37 | 2020-01-14T12:23:09 | Python | UTF-8 | Python | false | false | 6,869 | py | evaluate.py | #!/usr/bin/env python3
import argparse
from collections import Counter
import json
from pathlib import Path
import random
import re
import statistics
from typing import Any, Dict, Tuple, List
def main():
""" Perform evaluation for all ``output/*.json`` files,
loading ground truth from ``groud-truth.json``.
... |
029b1389e278076a4d0cea8afcda993b7dd8e253 | 2d9a3ce2a04190d0032e8a298829022260b1d76b | /indra/assemblers/tsv/assembler.py | 309beec71c034246d197bf2bb735dcfda00ccc97 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | sorgerlab/indra | f127a0f9bdd2d3f48df14575883fd31e2f4de4bf | 6d6ca1174792b6c5a05cbf3afcb9f138fabcec6a | refs/heads/master | 2023-08-21T13:25:54.654995 | 2023-06-11T16:46:41 | 2023-06-11T16:46:41 | 22,848,436 | 158 | 61 | BSD-2-Clause | 2023-08-30T21:47:59 | 2014-08-11T17:44:05 | Python | UTF-8 | Python | false | false | 8,109 | py | assembler.py | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import logging
from copy import copy
from indra.databases import get_identifiers_url
from indra.statements import *
from indra.util import write_unicode_csv
logger = logging.getLogger(__name__)
class TsvAssembler... |
a08025124a074bb9c910ea9d2b89e7404e0ddb56 | 9654e0c7628c2607f191438cdea1782309bb3c2a | /tests/test_pbs_parser.py | 638fa496c0e34c29eda8e82b30e5169571a02cd5 | [
"BSD-2-Clause"
] | permissive | CrayLabs/SmartSim | 85482706627378be01c6c4adf1ba28193c8439bb | f9e17f00ed1109fd09610111d54ac9cb82bccaa7 | refs/heads/develop | 2023-08-18T02:11:52.167416 | 2023-08-16T17:07:58 | 2023-08-16T17:07:58 | 311,268,879 | 177 | 33 | BSD-2-Clause | 2023-09-14T19:52:08 | 2020-11-09T08:19:12 | Python | UTF-8 | Python | false | false | 2,731 | py | test_pbs_parser.py | # BSD 2-Clause License
#
# Copyright (c) 2021-2023, Hewlett Packard Enterprise
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright... |
e888f47381360758fd381f2304de17bde186bf6e | 08a8c973eaa984b96be2306c325c4a0b3f997aec | /tests/test_module_load.py | 2a60864b54a24eb3e19b653ccce95f4cb57b0d6a | [] | permissive | ultrabug/py3status | 889ec6679b7aa7d886bc98d86fc4051c7529b469 | 7ada9276ee12fe80491768d60603f8c5e1dc0639 | refs/heads/master | 2023-08-24T02:40:10.865393 | 2023-07-29T15:51:42 | 2023-07-29T15:51:42 | 8,292,338 | 934 | 426 | BSD-3-Clause | 2023-09-10T09:21:17 | 2013-02-19T14:59:13 | Python | UTF-8 | Python | false | false | 1,061 | py | test_module_load.py | from py3status.module_test import MockPy3statusWrapper
from py3status.module import Module
class TestModule:
static_variable = 123
def __init__(self):
self.instance_variable = 321
def post_config_hook(self):
pass
@staticmethod
def static_method(self):
raise Exception("I ... |
0f2154fd7a5d4116be8bc4a06e7314f1b5e5c2d1 | 69bf012ca88897cd87535701369f2b87c6522d57 | /modules/s3db/cr.py | 5120dd69c4d8cf65e6f4ddac0c04f1df8e709819 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sahana/eden | e2cc73f6b34a2ab6579094da09367a9f0be10fd1 | 1cb5a76f36fb45fa636577e2ee5a9aa39f35b391 | refs/heads/master | 2023-08-20T20:56:57.404752 | 2023-02-24T17:16:47 | 2023-02-24T17:16:47 | 3,021,325 | 227 | 253 | NOASSERTION | 2023-01-10T10:32:33 | 2011-12-20T17:49:16 | Python | UTF-8 | Python | false | false | 129,787 | py | cr.py | # -*- coding: utf-8 -*-
""" Shelter (Camp) Registry, model
@copyright: 2009-2021 (c) Sahana Software Foundation
@license: MIT
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 ... |
5e601d6d6fe4087c5b17ae222c78e7148f413103 | ac235a23f22be0d6f1818bb53902177f9969813a | /ddtrace/contrib/dogpile_cache/__init__.py | 8666443da50b23b9b3a8aacd38f88bfbf9e55321 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | DataDog/dd-trace-py | f09d6d48c4c69aea68f999fc8a458ade5c6150cf | 1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17 | refs/heads/1.x | 2023-09-01T20:25:26.746324 | 2023-09-01T18:54:37 | 2023-09-01T18:54:37 | 61,572,326 | 461 | 426 | NOASSERTION | 2023-09-14T20:38:57 | 2016-06-20T18:52:23 | Python | UTF-8 | Python | false | false | 1,653 | py | __init__.py | """
Instrument dogpile.cache__ to report all cached lookups.
This will add spans around the calls to your cache backend (e.g. redis, memory,
etc). The spans will also include the following tags:
- key/keys: The key(s) dogpile passed to your backend. Note that this will be
the output of the region's ``function_key_g... |
a91d87f631fce6bc8719802e1fa6a0692bf43c44 | 605d63d23bc2e07eb054979a14557d469787877e | /atest/testresources/testlibs/NonAsciiLibrary.py | 0769303d0dd73cc38e632ceb129a55806c85bce0 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | robotframework/robotframework | 407b0cdbe0d3bb088f9bfcf9ea7d16e22eee1ddf | cf896995f822f571c33dc5651d51365778b1cf40 | refs/heads/master | 2023-08-29T03:19:00.734810 | 2023-08-27T18:14:48 | 2023-08-28T18:14:11 | 21,273,155 | 8,635 | 2,623 | Apache-2.0 | 2023-09-05T04:58:08 | 2014-06-27T11:10:38 | Python | UTF-8 | Python | false | false | 798 | py | NonAsciiLibrary.py | MESSAGES = ['Circle is 360°',
'Hyvää üötä',
'\u0989\u09C4 \u09F0 \u09FA \u099F \u09EB \u09EA \u09B9']
class NonAsciiLibrary:
def print_non_ascii_strings(self):
"""Prints message containing non-ASCII characters"""
for msg in MESSAGES:
print('*INFO*' + msg)
... |
fe23738fe85a649b39c552537966daaa2931f607 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/tcp/__init__.py | 614f637a71a4053c4c112676f383c15df563f098 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 25 | py | __init__.py | """The tcp component."""
|
54e04fea06357592a663e268cbb7a9c1fa38417b | e51ec12f619d0adf0bad7cc4a8851415ed89ddab | /torch_struct/alignment.py | c9840c9d87dbc0354126c88c68f674c449714c8a | [
"MIT"
] | permissive | harvardnlp/pytorch-struct | 9cc0e3167b4fe00e025216176ca054bb537f600e | 7146de5659ff17ad7be53023c025ffd099866412 | refs/heads/master | 2023-07-10T10:23:57.946098 | 2022-01-30T19:49:08 | 2022-01-30T19:49:08 | 204,547,575 | 1,139 | 91 | MIT | 2022-01-30T19:49:10 | 2019-08-26T19:34:30 | Jupyter Notebook | UTF-8 | Python | false | false | 6,788 | py | alignment.py | import torch
from .helpers import _Struct
import math
try:
import genbmm
except ImportError:
pass
from .semirings import LogSemiring
from .semirings.fast_semirings import broadcast
Down, Mid, Up = 0, 1, 2
Open, Close = 0, 1
class Alignment(_Struct):
def __init__(
self, semiring=LogSemiring, spa... |
92d93d9ed561f7016d5e4d44151305e689cdf6f0 | 3c41443364da8b44c74dce08ef94a1acd1b66b3e | /addons/forward/routes.py | 00b130ce2a4a6d4de6d5fc64f72747e106a1ad90 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"AGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | CenterForOpenScience/osf.io | 71d9540be7989f7118a33e15bc4a6ce2d2492ac1 | a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e | refs/heads/develop | 2023-09-04T03:21:14.970917 | 2023-08-31T14:49:20 | 2023-08-31T14:49:20 | 10,199,599 | 683 | 390 | Apache-2.0 | 2023-09-14T17:07:52 | 2013-05-21T15:53:37 | Python | UTF-8 | Python | false | false | 716 | py | routes.py | # -*- coding: utf-8 -*-
"""Forward addon routes."""
from framework.routing import Rule, json_renderer
from addons.forward import views
api_routes = {
'rules': [
Rule(
[
'/project/<pid>/forward/config/',
'/project/<pid>/node/<nid>/forward/config/'
],... |
b80f2fb560691a98d7cbd70624e5fab3cea86cef | 40dd8330e5f78c4348bbddc2c5acfd59d793dd51 | /mmseg/models/backbones/unet.py | 545921db8e14668e454f5834f9a1618fe0c04ffe | [
"Apache-2.0"
] | permissive | open-mmlab/mmsegmentation | 0d12092312e2c465ede1fd7dd9847b6f2b37049c | 30a3f94f3e2916e27fa38c67cc3b8c69c1893fe8 | refs/heads/main | 2023-09-04T10:54:52.299711 | 2023-07-24T07:28:21 | 2023-07-24T07:28:21 | 272,133,018 | 6,534 | 2,375 | Apache-2.0 | 2023-09-14T01:22:32 | 2020-06-14T04:32:33 | Python | UTF-8 | Python | false | false | 18,470 | py | unet.py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
import torch.nn as nn
import torch.utils.checkpoint as cp
from mmcv.cnn import ConvModule, build_activation_layer, build_norm_layer
from mmengine.model import BaseModule
from mmengine.utils.dl_utils.parrots_wrapper import _BatchNorm
from mmseg.registry i... |
7865b1a651159dc29db275628b1d40b5511782b0 | b8d80a23cb27af08a1c4d34b478c76228ae5fbb4 | /insights/tests/parsers/test_ceph_log.py | f1bb5718ba4f6dba187644b226f6b58becd5fa09 | [
"Apache-2.0"
] | permissive | RedHatInsights/insights-core | bb243e2bf8a52446fefb95ebe05478d6e35efe2e | b0ea07fc3f4dd8801b505fe70e9b36e628152c4a | refs/heads/master | 2023-09-04T21:15:40.456257 | 2023-09-04T10:46:56 | 2023-09-04T10:46:56 | 92,518,221 | 144 | 290 | Apache-2.0 | 2023-09-14T02:40:13 | 2017-05-26T14:23:11 | Python | UTF-8 | Python | false | false | 2,986 | py | test_ceph_log.py | import doctest
from insights.parsers import ceph_log
from insights.parsers.ceph_log import CephLog
from insights.tests import context_wrap
from datetime import datetime
CEPH_LOG = """
2017-05-31 13:01:44.034376 mon.0 192.xx.xx.xx:6789/0 742585 : cluster [INF] pgmap v5133969: 320 pgs: 3 active+clean+scrubbing+deep, 3... |
42ab0fd73b46e222caebeb894d0ed9844c4ad53e | b26c41926fa3a7c2c061132d80e91a2750f2f468 | /tensorflow_probability/python/experimental/bayesopt/acquisition/__init__.py | 52f88f2b9eac7400013c63c59834810846bdf2d2 | [
"Apache-2.0"
] | permissive | tensorflow/probability | 22e679a4a883e408f8ef237cda56e3e3dfa42b17 | 42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5 | refs/heads/main | 2023-09-04T02:06:08.174935 | 2023-08-31T20:30:00 | 2023-08-31T20:31:33 | 108,053,674 | 4,055 | 1,269 | Apache-2.0 | 2023-09-13T21:49:49 | 2017-10-23T23:50:54 | Jupyter Notebook | UTF-8 | Python | false | false | 2,704 | py | __init__.py | # Copyright 2023 The TensorFlow Probability 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 o... |
89e912ad9dac84438022692b86908eef1e6a7d49 | 1516ab0855a054c43975a7306dccf684839cfb87 | /examples/servo_micro.py | d42fef2715f9a41a061b5bd14a0fd5ab106d984f | [
"Apache-2.0"
] | permissive | google/pcbdl | 7a506e9f678f4da03912fd975916d708a5e15d20 | d251d191ed3c41baddff704e6131698eb26ee984 | refs/heads/master | 2023-06-28T14:47:11.139860 | 2020-09-04T08:44:24 | 2020-09-04T08:44:24 | 179,365,457 | 149 | 25 | NOASSERTION | 2021-04-08T17:10:19 | 2019-04-03T20:29:46 | Python | UTF-8 | Python | false | false | 21,759 | py | servo_micro.py | #!/usr/bin/env python3
# Copyright 2019 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 o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.