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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4d76471629b7cbf8342d48705cf53b01ba1410d | 643207c42f07413c4723b49426faa91f3c47ff66 | /tests/conftest.py | 3281133cd51a7158d50770b9df0cd001c5c4e5b0 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | sourmash-bio/sourmash | 74da4910c0bad3e14655be2d92c2ba8534813bfa | ba581ea8c6f046b7e19da274155f326d2bdbc8e7 | refs/heads/latest | 2023-09-03T13:13:02.374178 | 2023-08-27T15:01:49 | 2023-08-27T15:01:49 | 55,858,065 | 149 | 23 | NOASSERTION | 2023-09-13T22:25:54 | 2016-04-09T17:35:30 | Python | UTF-8 | Python | false | false | 3,124 | py | conftest.py | import os
import sys
from hypothesis import settings, Verbosity
import pytest
import matplotlib.pyplot as plt
plt.rcParams.update({'figure.max_open_warning': 0})
from sourmash_tst_utils import TempDirectory, RunnerContext
sys.stdout = sys.stderr
@pytest.fixture
def runtmp():
with TempDirectory() as location:
... |
30b831936eec79dd487c6267e2fc66ca3b5b3236 | 7a49e7c11bf901443dd057226be8fcf6f5d2b161 | /datastore/tests/integration/value_types_test.py | 8e972bd605c0ad02f73d7ff6e34c6f4ddbb40ea7 | [
"MIT"
] | permissive | talkiq/gcloud-aio | 20d34c71aaf74e30b8ca1ee2cc0f028421e40671 | b170cf916f0ad52357bd3457ce5b905dd9170132 | refs/heads/master | 2023-08-21T20:10:04.820684 | 2023-07-21T15:40:35 | 2023-07-21T15:40:35 | 107,485,978 | 218 | 100 | null | 2023-09-14T21:39:17 | 2017-10-19T02:06:07 | Python | UTF-8 | Python | false | false | 1,130 | py | value_types_test.py | """Make sure all value types are serialized/deserialized correctly"""
import pytest
from gcloud.aio.auth import BUILD_GCLOUD_REST # pylint:disable=no-name-in-module
from gcloud.aio.datastore import Datastore
from gcloud.aio.datastore import Key
from gcloud.aio.datastore import LatLng
from gcloud.aio.datastore import P... |
6943212a57f9f85a6c335005499b947a4f90c5cb | 46d3d42af275f49005d64aca8e123c57c4783d19 | /view/widgets/weather.py | b6f000d7761a934149a380a48d7b07686d8822f7 | [
"MIT"
] | permissive | zli117/EInk-Calendar | 4340082a3d1ec711ccb6e90db79f3f13cc3a1a66 | 91f40e3994dafaf3a9366d8a79c9c0996965e1b5 | refs/heads/master | 2023-09-04T05:13:11.541907 | 2023-08-20T13:42:27 | 2023-08-20T13:42:27 | 165,393,960 | 238 | 24 | MIT | 2023-08-20T13:42:29 | 2019-01-12T13:58:50 | Python | UTF-8 | Python | false | false | 4,680 | py | weather.py | from PIL import ImageFont
from typing import List, Tuple
from view.widgets.panel import PanelWidget
from view.widgets.text import TextWidget
from view.widgets.weather_icon_lookup import WeatherIconLookup
class ForecastWidget(PanelWidget):
def __init__(self, height: int, width: int, icon_font: ImageFont,
... |
729adf552060758b39ea8cdf10fd39c990bc6b82 | 40a395a2376419aa0ba59a62598052e47a000928 | /consolemenu/validators/regex.py | 0180702a44fd1b7b1d776b84d89de43c6caef372 | [
"MIT"
] | permissive | aegirhall/console-menu | e564aa67d6c4c09db87e556d23cc364352100fc3 | b9b2b88c5413eaee51570242ea3329b9f23f94e7 | refs/heads/develop | 2023-04-12T20:12:10.372131 | 2023-03-05T22:36:32 | 2023-03-05T22:36:32 | 123,246,929 | 336 | 71 | MIT | 2023-03-20T16:29:22 | 2018-02-28T07:31:58 | Python | UTF-8 | Python | false | false | 1,031 | py | regex.py | from re import match
from consolemenu.validators.base import BaseValidator
class RegexValidator(BaseValidator):
def __init__(self, pattern):
super(RegexValidator, self).__init__()
self.__pattern = pattern
@property
def pattern(self):
return self.__pattern
def validate(self,... |
ec5c61483483ad97b61b604a229d785dccc7095b | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/python/ops/ragged/ragged_math_ops_test.py | 3cde3ba622e50aacfa8243308e75e9c2a511de27 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | Python | false | false | 7,315 | py | ragged_math_ops_test.py | # Copyright 2015 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... |
a2748ac7d51a09c3bec3acdbf13d4b4213dcf98d | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/InsOpenPolicyDigestDTO.py | 9c2e43d47b25e44a789104220dbce706492a2a9e | [
"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,103 | py | InsOpenPolicyDigestDTO.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class InsOpenPolicyDigestDTO(object):
def __init__(self):
self._inst_id = None
self._policy_effect_time = None
self._policy_end_time = None
self._policy_no = None
... |
0f48d9ee5e19f3c28a2b43fe495407667865e717 | 3256af0d6c19732bb84b256a9f792aaf7f3d901a | /f5/bigip/tm/sys/test/functional/test_management_ip.py | 9a55cbc6f9bf5361585553b0f79012b32583101e | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-common-python | 73e33ea489d989399d205077163f24ce584d83b9 | 3050df0079c2426af99b9a1b8f93d0b512468ff4 | refs/heads/development | 2023-08-29T10:11:23.713392 | 2022-09-21T02:45:03 | 2022-09-21T02:45:03 | 45,062,555 | 286 | 180 | Apache-2.0 | 2023-05-12T23:13:03 | 2015-10-27T18:48:06 | Python | UTF-8 | Python | false | false | 3,056 | py | test_management_ip.py | # Copyright 2017 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... |
a40817e564efd48dd8eb3d7b131b6917a5c99327 | 0b95f51cca6dbd5eb99271bef69f835d41ceb691 | /tests/test_cycles.py | 5896324164cfb2fa807116c1809c14e8e6d4a90a | [
"BSD-2-Clause"
] | permissive | thebjorn/pydeps | 77c31bac77a968e9f9adf8679e7797171b4789f4 | b8fcac5c9cbf56cf241a3fb59d1d76215a16c1b2 | refs/heads/master | 2023-08-30T15:08:34.721884 | 2023-08-21T12:17:08 | 2023-08-21T12:17:08 | 20,236,160 | 1,415 | 115 | BSD-2-Clause | 2023-09-05T07:12:02 | 2014-05-27T21:29:01 | Python | UTF-8 | Python | false | false | 518 | py | test_cycles.py | # -*- coding: utf-8 -*-
from tests.filemaker import create_files
from tests.simpledeps import simpledeps
def test_cycle():
files = """
relimp:
- __init__.py
- a.py: |
from . import b
- b.py: |
from . import a
"""
with create_files... |
64357b78f17e3967289d1dc54b5b7bd609e5fa58 | e73547787354afd9b717ea57fe8dd0695d161821 | /tools/splat/segtypes/common/group.py | 1242b22d7d423ffd3c1be369acd20bcaf428ab0c | [
"MIT"
] | permissive | pmret/papermario | 8b514b19653cef8d6145e47499b3636b8c474a37 | 9774b26d93f1045dd2a67e502b6efc9599fb6c31 | refs/heads/main | 2023-08-31T07:09:48.951514 | 2023-08-21T18:07:08 | 2023-08-21T18:07:08 | 287,151,133 | 904 | 139 | null | 2023-09-14T02:44:23 | 2020-08-13T01:22:57 | C | UTF-8 | Python | false | false | 4,971 | py | group.py | from typing import List, Optional
from util import log
from segtypes.common.segment import CommonSegment
from segtypes.segment import Segment
class CommonSegGroup(CommonSegment):
def __init__(
self,
rom_start: Optional[int],
rom_end: Optional[int],
type: str,
name: str,
... |
5276bdf58bc440854503f3b0840b0c5cb3d56afd | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/dataflow/stream/views/processing_views.py | 678f0b0e2618dbe6c3c467a166abfd771a0e7381 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 13,275 | py | processing_views.py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... |
ca37b6d985396c4a407138f29c1b68c41db5f5bc | e7df6d41d7e04dc1c4f4ed169bf530a8a89ff17c | /Bindings/Python/OpenSenseExample/OpenSense_OrientationTracking.py | 3dff0bccab6d1e4eab22aec72dc35d8c8aad120f | [
"Apache-2.0"
] | permissive | opensim-org/opensim-core | 2ba11c815df3072166644af2f34770162d8fc467 | aeaaf93b052d598247dd7d7922fdf8f2f2f4c0bb | refs/heads/main | 2023-09-04T05:50:54.783630 | 2023-09-01T22:44:04 | 2023-09-01T22:44:04 | 20,775,600 | 701 | 328 | Apache-2.0 | 2023-09-14T17:45:19 | 2014-06-12T16:57:56 | C++ | UTF-8 | Python | false | false | 2,879 | py | OpenSense_OrientationTracking.py | # ----------------------------------------------------------------------- #
# The OpenSim API is a toolkit for musculoskeletal modeling and #
# simulation. See http://opensim.stanford.edu and the NOTICE file #
# for more information. OpenSim is developed at Stanford University #
# and supported ... |
5f6a4a778f5def9876b4d1e28ca77d2e10e52159 | ed36064525bad62959d9ab739edeea477bf29c1c | /2018-09-01-tokyowesterns/matrix_led/aes.py | 40ef191602c7cfaa0048be101079c61500684296 | [] | no_license | p4-team/ctf | 2dae496622c8403d7539b21f0e9a286e9889195a | 8280caff137e42b26cb55f2c62411c7c512088de | refs/heads/master | 2023-08-12T03:21:31.021612 | 2023-04-26T23:57:29 | 2023-04-26T23:57:29 | 42,933,477 | 1,899 | 366 | null | 2022-06-07T21:51:40 | 2015-09-22T12:53:15 | Python | UTF-8 | Python | false | false | 7,697 | py | aes.py |
# At 0x439
CONST = [0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,... |
e0d6e3902216b8902c8448209e13df588e22315a | 807438e6974bf68762208ec24cf824dd0e5fabd6 | /libcloud/test/dns/test_nfsn.py | 77b3e7e66a6ea8a1687da02489c66c997e536802 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | apache/libcloud | 019c5bd839dedd2423f9604936886eaff252e04b | abba8c1719a8bda6db8efde2d46fd1b423ae4304 | refs/heads/trunk | 2023-08-31T20:14:22.369970 | 2023-08-21T20:17:57 | 2023-08-21T20:17:57 | 419,555 | 1,644 | 968 | Apache-2.0 | 2023-09-13T19:34:44 | 2009-12-11T09:00:14 | Python | UTF-8 | Python | false | false | 5,861 | py | test_nfsn.py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... |
54a9d6086af189c3704c38e55b88db8ba986e7ed | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/on_load_script_injector/browser/DEPS | f7617f6a0762a7d38b9924c6debd4b9ad75ad69d | [
"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 | 118 | DEPS | include_rules = [
"+content/public/browser",
"+mojo/public/cpp/bindings",
"+third_party/blink/public/common",
]
| |
ae666924aca9063ce3bf0808e8cc116428ba8331 | 576764ad37667f8da2c63aaa1a9f96da211795a6 | /tests/forte/data/data_pack_test.py | 4514a0d3f8f6c1cf67b44c3000a648cf483f4670 | [
"Apache-2.0"
] | permissive | asyml/forte | 96f852601647836dda3bccf3bd7900b9d10e6fcb | 13e50aebe2afd79a7a8b3c01f0bb2568addea54f | refs/heads/master | 2023-04-09T17:52:31.203644 | 2023-04-06T15:04:49 | 2023-04-06T15:04:49 | 201,518,876 | 233 | 73 | Apache-2.0 | 2023-04-06T15:04:51 | 2019-08-09T18:12:12 | Python | UTF-8 | Python | false | false | 13,705 | py | data_pack_test.py | # Copyright 2019 The Forte 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 ... |
54405fce9a5606473aa989c8b2a32d14deb22a25 | fb6552a6e7b431432a9a4177d69e62da0f6f02df | /util/selse_feng.py | 98c17eaadc877eeedc17c663196e82b06b11f807 | [] | no_license | liwanlei/python-selenium | 49f6bd26c4062acd2bd420e238bcb697b7875d29 | b141331777dcfc33021dbb2565f9649d83bf78c0 | refs/heads/master | 2023-04-06T06:46:32.854245 | 2023-03-19T05:21:50 | 2023-03-19T05:21:50 | 76,659,591 | 286 | 198 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | selse_feng.py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.action_chains import ActionChains
class PySele():
def __init__(self,brower):#初始化浏览器
if bro... |
78954645842fdda8ad7f43923f19eb8343a9ed5b | 0760fb4901a75766921a205b55686d6d6f049b30 | /release/nightly_tests/dataset/parquet_metadata_resolution.py | 119b2803ad61ef1c6ddfdc008645b2c370f839e1 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ray-project/ray | a4bb6940b08b59a61ef0b8e755a52d8563a2f867 | edba68c3e7cf255d1d6479329f305adb7fa4c3ed | refs/heads/master | 2023-08-31T03:36:48.164405 | 2023-08-31T03:20:38 | 2023-08-31T03:20:38 | 71,932,349 | 29,482 | 5,669 | Apache-2.0 | 2023-09-14T21:48:14 | 2016-10-25T19:38:30 | Python | UTF-8 | Python | false | false | 1,343 | py | parquet_metadata_resolution.py | import time
import os
import json
import argparse
parser = argparse.ArgumentParser(description="Parquet Metadata Read")
parser.add_argument("--num-files", type=int, default=30)
parser.add_argument("--cloud", type=str, choices=["aws", "gcp"])
if __name__ == "__main__":
args = parser.parse_args()
import ray
... |
1fd2a38d1161a6202f3cb4d1edd47363dc86a248 | 0b592e8bffd11e3864046d4c48e87eee2d7ab36d | /torchmps/tests/old_tests/mat_region_open_periodic_bcs.py | b5ba8158e5fa40ee726dab9e2513aaee75e69b16 | [
"MIT"
] | permissive | jemisjoky/TorchMPS | e753a3be174ab07c5a03891184a0829073566d06 | 6c0bc1a8e2c15acba8570ca9ffe2b4a0c7135165 | refs/heads/main | 2022-01-28T04:30:52.923756 | 2021-11-23T18:51:47 | 2021-11-23T18:51:47 | 177,193,932 | 131 | 31 | MIT | 2021-08-12T06:45:29 | 2019-03-22T18:52:35 | Python | UTF-8 | Python | false | false | 1,297 | py | mat_region_open_periodic_bcs.py | #!/usr/bin/env python3
import torch
import sys
sys.path.append("..")
from contractables import *
from torchmps import *
batch_size = 16
size = 10
D = 3
d = 2
# Check that MatRegion.reduce() works and outputs the correct shape
mats = torch.randn([batch_size, size, D, D])
mat_region = MatRegion(mats)
assert list(mat_r... |
eba0406d39d20a5501d7bcbaa14517349460661a | 8d8acf47a4fb2bc7e3fbc4fa6a9638b6b55ce377 | /app/admin/__init__.py | c0901acee97282be4f69b029dfe716a10448e089 | [
"Apache-2.0"
] | permissive | eastossifrage/pyblog | c80fb1ca2e1ed562f4db790362df722c8623baaf | db13806f0ef5d4c2f37ef99346e3a38ffbe18218 | refs/heads/master | 2023-07-07T11:53:27.892421 | 2023-06-26T07:44:38 | 2023-06-26T07:44:38 | 64,125,358 | 128 | 50 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | __init__.py | # -*- coding:utf-8 -*-
__author__ = '东方鹗'
from flask import Blueprint
admin = Blueprint('admin', __name__, template_folder="templates", static_url_path='', static_folder='static')
# 在末尾导入相关模块,是为了避免循环导入依赖,因为在下面的模块中还要导入蓝本main
from . import views, errors
|
3bef9a13b1fa4dcfb4ddca9dd71a19cf388a023e | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/__init___parts/SpatialElementGeometryResults.py | 864e4fa4cb2de78a1532540330a37b62c0c0bc6f | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 1,843 | py | SpatialElementGeometryResults.py | class SpatialElementGeometryResults(object,IDisposable):
""" The results of spatial element geometry calculation. """
def Dispose(self):
""" Dispose(self: SpatialElementGeometryResults) """
pass
def GetBoundaryFaceInfo(self,face):
"""
GetBoundaryFaceInfo(self: SpatialElementGeometryResults,face: Face)... |
e0675e6a280cfed4e3d5ab81a10ac1c113d78ca5 | a85ec222a69fc6df1a7a15139a470ca253ff0fa7 | /src/openelm/environments/sodaracer/sodarace.py | a4ea6e355e11fdb667a497aa160b59e8fccefea7 | [
"MIT"
] | permissive | CarperAI/OpenELM | ec53dec0ccdfdb0f1259ed851150ed35535d3bac | 3e0627e9bb96939c6f0c2cfd4d58a17a41fc41a2 | refs/heads/main | 2023-08-15T00:16:01.723271 | 2023-08-09T01:48:50 | 2023-08-09T01:48:50 | 532,259,603 | 385 | 36 | MIT | 2023-08-09T01:49:09 | 2022-09-03T12:53:16 | Python | UTF-8 | Python | false | false | 10,542 | py | sodarace.py | import json
import warnings
from typing import Optional, Union
import numpy as np
import requests
from openelm.configs import SodaraceEnvConfig
from openelm.environments.base import BaseEnvironment, Genotype, Phenotype
from openelm.environments.sodaracer import (
CIRCLE,
GALLOPER_PREREQ,
IMPORTS,
INST... |
c3d3828432fb8ce8bbfec1507aec4820e9c280cc | a482b0e018cabf45944787e571ef173cb705e229 | /nix_update/version/crate.py | 1a312ea465bf7d94e35aa0ac650cb9b765d8a5a5 | [
"MIT"
] | permissive | Mic92/nix-update | 706dc374b849d4aa5b55aa400d8109f2d09232d5 | e0239251cb77205f7364ae691134f28f0dce4f0d | refs/heads/master | 2023-08-27T19:43:50.012239 | 2023-08-25T06:53:31 | 2023-08-25T07:00:08 | 245,145,732 | 250 | 22 | MIT | 2023-09-11T08:40:44 | 2020-03-05T11:31:09 | Python | UTF-8 | Python | false | false | 546 | py | crate.py | import json
import urllib.request
from urllib.parse import ParseResult
from ..utils import info
from .version import Version
def fetch_crate_versions(url: ParseResult) -> list[Version]:
if url.netloc != "crates.io":
return []
parts = url.path.split("/")
package = parts[4]
crate_url = f"https:... |
8e4c8df7dfecc7cfdd9d175fe9c2b38f4748b602 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /cli/foundation-models/system/evaluation/translation/prepare-dataset.py | fa70064a990995b914d8904a7a1a5a57a2181fbd | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 616 | py | prepare-dataset.py | import argparse
import pandas as pd
from datasets import load_dataset
test_data = "./small-test.jsonl"
parser = argparse.ArgumentParser()
parser.add_argument("--test-data", type=str, default=test_data, dest="test_data_file")
args = parser.parse_args()
hf_test_data = load_dataset("wmt16", "ro-en", split="test", strea... |
e23607e4569bdfa190f80328e5175864fd5b88e0 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py | 54be387e02ecdc9747a44f77365249ff7040f174 | [
"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 | 79,399 | py | __init__.py | # coding: utf-8
from __future__ import absolute_import
# import models into model package
from huaweicloudsdkeihealth.v1.model.action_type import ActionType
from huaweicloudsdkeihealth.v1.model.admet_request import AdmetRequest
from huaweicloudsdkeihealth.v1.model.app_filter_dto import AppFilterDto
from huaweicloudsd... |
fbbe3fa0d2b01a58b995c79f29dc3bda26c2eb9c | eda6e7b8f399dedcdb960f4b48a2134b978f8d83 | /tests/zzz_deprecated_unmaintained/allocmodel/mix/TestMixModel.py | d996ae9b2ce00a035db673d411dce07f143870c6 | [
"BSD-3-Clause"
] | permissive | bnpy/bnpy | 8ed61bc4fe2f0ed99e0254c11a21c27c0cee59b2 | ffc2242427451aa6a61dcac1473c47577a5ade6f | refs/heads/master | 2023-08-16T06:49:58.716279 | 2022-10-15T15:59:12 | 2022-10-15T15:59:12 | 75,731,181 | 197 | 54 | NOASSERTION | 2023-07-21T20:59:10 | 2016-12-06T12:56:07 | Python | UTF-8 | Python | false | false | 1,926 | py | TestMixModel.py | '''
Unit-tests for FiniteMixtureModel.py
'''
import numpy as np
import bnpy
from bnpy.allocmodel import FiniteMixtureModel
from bnpy.suffstats import SuffStatBag
class TestMixModelEMUnifGamma(object):
def shortDescription(self):
return None
def setUp(self):
''' Create simple case to double-c... |
27237ebc3654cee946fcdc92dd6f4821fdbd1002 | a29b8d6ae6642ef80d04ae99d721b703de06db69 | /maro/cli/utils/azure/general.py | 1121c69cd768325cf746372a7e3ef145b936f844 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/maro | 6aab1a4e86fddabf7f242f0d1020d985a5f7a5f3 | b3c6a589ad9036b03221e776a6929b2bc1eb4680 | refs/heads/master | 2023-08-24T16:52:38.250279 | 2023-05-15T04:31:58 | 2023-05-15T04:31:58 | 230,389,247 | 764 | 158 | MIT | 2023-07-25T20:59:06 | 2019-12-27T06:48:27 | Python | UTF-8 | Python | false | false | 2,370 | py | general.py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import json
import os
import subprocess
from azure.identity import DefaultAzureCredential
from azure.mgmt.resource import ResourceManagementClient
from maro.cli.utils.subprocess import Subprocess
def set_subscription(subscription: str) -> Non... |
2f0ac81e59f24f471f76c6c63a4d03d9accdbe17 | 78355b9448bee02acd1b3bafa6ca21d4802596bf | /tests/test_path.py | 4c74883707bbfccc4635428b1ea3b1278d3c5de5 | [] | no_license | PyCQA/redbaron | 3596d34b51a7aaa16791750d1c65aae8d6b195a5 | 9b4a1825d160269815ca7bc90f55fff8a5e76e29 | refs/heads/master | 2023-08-18T04:32:54.311004 | 2021-12-09T03:12:36 | 2021-12-09T03:12:36 | 18,027,281 | 579 | 64 | null | 2023-01-18T17:03:25 | 2014-03-23T05:34:39 | Python | UTF-8 | Python | false | false | 4,429 | py | test_path.py | #!/usr/bin/python
# -*- coding:Utf-8 -*-
""" Tests the path method """
import pytest
# pylint: disable=redefined-outer-name
from redbaron import RedBaron
@pytest.fixture
def red():
return RedBaron("""\
@deco
def a(c, d):
b = c + d
""")
def check_path(root, node, path):
assert node.path() == path
a... |
4d689aa7c50290b55bc9bdb47a4a0c897480c5cd | b0b22ba7ca2c51897686373d63e2e24a2de77897 | /libcst/_nodes/tests/test_for.py | c4d1421bf7ba0fcda7fd7858dcc4b2166c7ce6dc | [
"Python-2.0",
"MIT",
"Apache-2.0"
] | permissive | Instagram/LibCST | 4453b1eb7fcbd5c8542912bd745e170fe7f41e34 | 9286446f889f1778b8f11451a68107052b2930b3 | refs/heads/main | 2023-08-31T16:41:11.126212 | 2023-08-28T21:07:22 | 2023-08-28T21:07:22 | 200,896,124 | 1,300 | 168 | NOASSERTION | 2023-09-11T02:32:55 | 2019-08-06T17:30:33 | Python | UTF-8 | Python | false | false | 7,665 | py | test_for.py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Any
import libcst as cst
from libcst import parse_statement, PartialParserConfig
from libcst._nodes.tests.base import CS... |
2954c7bb5b4630407209831dc851c067c8f7488a | b445f7ba5ae4899c3782dc08627b778de6bbf12b | /test/test_jsonchecker.py | 88703e6457bdd1c1e3214667c699e8b5be6bb428 | [
"Apache-2.0",
"MIT"
] | permissive | ijl/orjson | 91e620f1e68e985064a68e77569b56ff378637ea | d1cd27e29c8df2768be016071d0800a92d120786 | refs/heads/master | 2023-08-31T05:10:58.385975 | 2023-08-29T12:29:42 | 2023-08-29T13:05:57 | 158,618,772 | 4,895 | 243 | Apache-2.0 | 2023-09-08T00:40:34 | 2018-11-21T23:43:14 | Python | UTF-8 | Python | false | false | 6,187 | py | test_jsonchecker.py | # SPDX-License-Identifier: (Apache-2.0 OR MIT)
"""
Tests files from http://json.org/JSON_checker/
"""
import pytest
import orjson
from .util import read_fixture_str
PATTERN_1 = '["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},{},[],-42,true,false,null,{"integer":1234567890,"real":-9876.... |
f4d6aae8c78ab6af3cd059579693a6181f7ee968 | 27ff8ca0d14ed99e5896522a3c62218489983a58 | /cellphonedb/src/tests/methods/test_terminal_method_statistical_analysis.py | f3e48c79caf6f2a57c139c847550c80af4b88261 | [
"MIT"
] | permissive | Teichlab/cellphonedb | d49cc25421a22082687775879cdd09c7e7a94060 | dca1c26555b012df30af0f2521cd4df317cf4600 | refs/heads/master | 2021-12-15T02:06:08.922953 | 2021-12-06T19:59:48 | 2021-12-09T14:34:39 | 84,198,911 | 335 | 120 | MIT | 2022-07-12T09:14:58 | 2017-03-07T12:54:34 | Python | UTF-8 | Python | false | false | 12,081 | py | test_terminal_method_statistical_analysis.py | import os
from typing import Optional
import pandas as pd
from cellphonedb.src.app.cellphonedb_app import output_test_dir, data_test_dir, cellphonedb_app
from cellphonedb.src.app.flask.flask_app import create_app
from cellphonedb.src.core.utils.subsampler import Subsampler
from cellphonedb.src.local_launchers.local_m... |
7841033030d1a54a5f62ff27215888cb2056ef53 | e62c8ee151671b999c6720ab8c2aa2f96c0d7f55 | /examples/miniapps/fastapi/giphynavigator/endpoints.py | 2761f203731dcaeec1ecc9cad64c1312b2388135 | [] | permissive | ets-labs/python-dependency-injector | 45645973456bb6494386ad12103d06e1f1be2cd8 | cc2304e46e054ae08dc12995428759fbfb51af10 | refs/heads/master | 2023-08-23T03:59:53.509743 | 2022-12-19T03:14:24 | 2022-12-19T03:14:24 | 28,774,758 | 3,217 | 273 | BSD-3-Clause | 2023-09-08T21:46:18 | 2015-01-04T13:23:05 | Python | UTF-8 | Python | false | false | 1,006 | py | endpoints.py | """Endpoints module."""
from typing import Optional, List
from fastapi import APIRouter, Depends
from pydantic import BaseModel
from dependency_injector.wiring import inject, Provide
from .services import SearchService
from .containers import Container
class Gif(BaseModel):
url: str
class Response(BaseModel)... |
58fa337691f48fab7275f1abc82bd040a6c270be | 2d05050d0ada29f7680b4df20c10bb85b0530e45 | /python/tvm/topi/transform.py | 934470fe23a36b65e6f6750e9ca046cd7182a76a | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | apache/tvm | 87cb617f9a131fa44e1693303aaddf70e7a4c403 | d75083cd97ede706338ab413dbc964009456d01b | refs/heads/main | 2023-09-04T11:24:26.263032 | 2023-09-04T07:26:00 | 2023-09-04T07:26:00 | 70,746,484 | 4,575 | 1,903 | Apache-2.0 | 2023-09-14T19:06:33 | 2016-10-12T22:20:28 | Python | UTF-8 | Python | false | false | 28,677 | py | transform.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
4bcca4bac6efa391bb9a8d7518f3ce195ac7c79e | e802a1cd7a1a8b2b6bb28df27f8e7d08191e4d1c | /client/testdata/php-tuf-fixtures/TUFTestFixture3LevelDelegation/__init__.py | 36285a68601b000377753b72c13fb10e398aead5 | [
"BSD-3-Clause"
] | permissive | theupdateframework/go-tuf | 5f008ddbe50c2cd768c03c040bbed7df211733e4 | fe99435ce462ce95e870e335b4fced09ad3b36fc | refs/heads/master | 2023-09-01T01:21:01.841894 | 2023-08-21T16:32:18 | 2023-08-21T16:32:18 | 27,903,690 | 200 | 66 | BSD-3-Clause | 2023-09-11T22:22:29 | 2014-12-12T03:31:16 | Go | UTF-8 | Python | false | false | 1,041 | py | __init__.py | # Delegation tree
#
# Targets
# / \
# a f
# / \
# b e
# / \
# c d
#
# No terminating delegations.
#
# Roles should be evaluated in the order:
# Targets > a > b > c > d > e > f
from fixtures.builder import FixtureBuilder
def build():
... |
205687d83dd2ad13fc7a904828e767d540fd00a8 | 66fbac8ffdb2e321a1076a9a7fb72b3acb117229 | /tests/test_adapters.py | a1fe8afdc708c16198b49640d926f33b62c10111 | [
"MIT"
] | permissive | eyurtsev/kor | d8e6880cb1784653e71e7b644d2c6b1581e15179 | 0f9c7b2005b05e8f5608b25e3dde93b8897aca87 | refs/heads/main | 2023-07-25T13:46:40.166994 | 2023-07-15T07:06:23 | 2023-07-15T07:06:23 | 602,715,785 | 1,144 | 58 | MIT | 2023-09-06T19:22:04 | 2023-02-16T19:47:25 | Python | UTF-8 | Python | false | false | 4,324 | py | test_adapters.py | import enum
from typing import List, Union
import pydantic
import pytest
from pydantic.fields import Field
from kor.adapters import _translate_pydantic_to_kor, from_pydantic
from kor.nodes import Bool, Number, Object, Option, Optional, Selection, Text
def test_convert_pydantic() -> None:
"""Convert a pydantic o... |
55ddd57fc25d882f74142e0bf205356bb2951906 | efcd21234f3291e8fc561f49a7c88fc57a63e952 | /tests/functional/regressions/test_issue228.py | f41fff7cc8d5983f8a3e22fce084ac77a6202b06 | [
"MIT"
] | permissive | tartiflette/tartiflette | 146214a43847d2f423bf74594643c1fdefc746f1 | 421c1e937f553d6a5bf2f30154022c0d77053cfb | refs/heads/master | 2023-09-01T02:40:05.974025 | 2022-01-20T14:55:31 | 2022-01-20T14:55:31 | 119,035,565 | 586 | 39 | MIT | 2023-09-11T07:49:27 | 2018-01-26T09:56:10 | Python | UTF-8 | Python | false | false | 2,905 | py | test_issue228.py | import pytest
from tartiflette import Directive, Resolver, create_engine
@pytest.mark.asyncio
async def test_issue228_1():
@Resolver("Query.a", schema_name="issue228_1")
async def lol(*_args, **_kwargs):
return {"ninja": "Ohio"}
_engine = await create_engine(
sdl="""
type Qu... |
bd56b2d60332f4a7daf0de6585a373d852da5fa5 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/jupyter-client/py2/jupyter_client/channels.py | 64e565189ee0758db0ddb9df3ca386b06a0d8bdf | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 6,907 | py | channels.py | """Base classes to manage a Client's interaction with a running kernel"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import absolute_import
import atexit
import errno
from threading import Thread
import time
import zmq
# import ZMQError in to... |
320c0c46526f8444d4c6cbcf0f85bbe57b91afc9 | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /lte/gateway/python/integ_tests/cloud_tests/checkin_test.py | 08e1ec9912ffc0c3a85faa8e1ac8f4c5dea1c921 | [
"BSD-3-Clause"
] | permissive | magma/magma | 0dc48c1513d9968bd05fb7589f302c192b7c0f94 | 0e1d895dfe625681229e181fbc2dbad83e13c5cb | refs/heads/master | 2023-09-04T09:31:56.140395 | 2023-08-29T13:54:49 | 2023-08-29T13:54:49 | 170,803,235 | 1,219 | 525 | NOASSERTION | 2023-09-07T17:45:42 | 2019-02-15T04:46:24 | C++ | UTF-8 | Python | false | false | 2,479 | py | checkin_test.py | """
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... |
5719232e676af2dac83fe8978505d36855cd5100 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /FWCore/Modules/test/geteventsetupcontent_cfg.py | cc36598d9aa04331ac43daf99e03ad0d3dcca17f | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 662 | py | geteventsetupcontent_cfg.py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Demo")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(20)
)
process.source = cms.Source("EmptySource",
numberEventsInRun = cms.untracked.uint32(3)
)
process.MessageLogger = cms.Service("MessageLogger")
process.WhatsItESPro... |
a8bf7dcda1d23faa5ccd75d8e49b1dab28221f7f | 5f5960d3041beb541f8abc6cb5c5bfeaf80f420d | /89_Problem_2.py | 3efb990ec33729c09b92139cdd61708b393be148 | [] | no_license | codereport/LeetCode | 6a904ba915d9a0e104f9b2e0556592d9b733fcec | 2a3d5ea3438d696690d9a30f1f3f81403128f983 | refs/heads/master | 2023-09-01T05:59:30.763405 | 2023-08-24T23:45:20 | 2023-08-24T23:45:20 | 120,723,684 | 125 | 46 | null | 2023-03-21T17:25:50 | 2018-02-08T06:59:28 | C++ | UTF-8 | Python | false | false | 344 | py | 89_Problem_2.py | # code_report
# https://youtu.be/H5w6doOXz10
def carFleet(self, target, position, speed):
times = [float(target - p) / s for p, s in sorted(zip(position, speed))]
fleets = last_time = 0
for time in times[::-1]:
if time > last_time:
fleets += 1
last_time = time
... |
7cd475a14f59f6d2c6feba449cb96a0b0646f514 | 073959b0122da70dd44e1170dae0ce6c5cc9fb94 | /kandinsky2/vqgan/autoencoder.py | 6fcbb3963f9925a933ddfd7ff915f4bcd7c6a901 | [
"Apache-2.0"
] | permissive | ai-forever/Kandinsky-2 | 6722db5cbf541f0f76679602a45743822c0c292a | 33c3176c39d7138a66ec4fa264c17a6c7181745a | refs/heads/main | 2023-08-17T19:10:26.370143 | 2023-08-03T08:29:30 | 2023-08-03T08:29:30 | 551,603,272 | 2,133 | 208 | Apache-2.0 | 2023-06-14T15:53:52 | 2022-10-14T18:13:08 | Jupyter Notebook | UTF-8 | Python | false | false | 6,363 | py | autoencoder.py | import torch
from torch import nn
import pytorch_lightning as pl
import torch.nn.functional as F
from contextlib import contextmanager
from .quntize import VectorQuantizer
from .vqgan_blocks import Encoder, Decoder, DiagonalGaussianDistribution
from .movq_modules import MOVQDecoder
class VQModel(pl.LightningModule)... |
edb37038324b653b0f62daa095a1b7da0c12c8e8 | 997e49f9e0a611401f9798314db3da144384c881 | /rpc/open_xdatachannel.py | 553f76fe00a20447e633848096e72969b65395a5 | [] | no_license | xmm7360/xmm7360-pci | 4c980f86c14b188a040a72d408c3d3ac17eebaf5 | 301337d653a5eb51a07bc9726a61d190173d4e3a | refs/heads/master | 2023-07-25T04:28:34.174006 | 2023-07-17T08:51:23 | 2023-07-17T08:51:23 | 232,108,623 | 387 | 89 | null | 2023-07-17T08:51:24 | 2020-01-06T13:38:31 | Python | UTF-8 | Python | false | false | 8,059 | py | open_xdatachannel.py | #!/usr/bin/env python3
import configargparse
from pyroute2 import IPRoute
from os.path import join, abspath, dirname
import uuid
import socket
import struct
import dbus
import sys
import time
import rpc
import logging
# must do this before importing pyroute2
logging.basicConfig(level=logging.DEBUG)
parser = configa... |
bb57ae93aab7892596eaeed4f89d7984ff1a989e | ebd9c249d446d809abc9a0f3e4593f34922a1b93 | /topic/heap/python/binary_heap.py | 46f075bec85dce04419c2b44af694934b16a696e | [] | no_license | jaychsu/algorithm | ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d | 91892fd64281d96b8a9d5c0d57b938c314ae71be | refs/heads/master | 2023-05-11T00:40:39.237813 | 2022-09-14T07:43:12 | 2022-09-14T07:43:12 | 106,277,156 | 143 | 39 | null | 2022-09-14T07:43:13 | 2017-10-09T11:51:48 | Python | UTF-8 | Python | false | false | 1,560 | py | binary_heap.py | import collections
class BinaryHeap:
MSG_EMPTY_HEAP = 'access element from empty heap'
def __init__(self, iterable=None):
self.__heap = [0]
self.__size = 0
if iterable:
self.heapify(iterable)
def __len__(self):
return self.__size
def __bool__(self):
... |
b4a572b596df827d903a4fd8750af54dd6c85964 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoBTag/Skimming/python/btagMC_QCD_200_300_cfi.py | 261f5ea40027a7900bbb21cd641937d7e71629dd | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 239 | py | btagMC_QCD_200_300_cfi.py | import FWCore.ParameterSet.Config as cms
btagMC_QCD_200_300 = cms.EDFilter("BTagSkimMC",
mcProcess = cms.string('QCD'),
pthat_min = cms.double(200.0),
verbose = cms.untracked.bool(False),
pthat_max = cms.double(300.0)
)
|
b73707d01dcbfa52d9cb5ec1757511d449faa43d | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/web/web_client_api/ui/strongholds.py | 661737dfe4a94d8a9225edb923ceea0e17bdb163 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 506 | py | strongholds.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/web/web_client_api/ui/strongholds.py
from gui.clans.clan_helpers import getStrongholdUrl
from web.web_client_api import w2c, W2CSchema
from gui.shared import event_dispatcher as shared_events
class StrongholdsWebApiMixin(object):
... |
fb615ba7cdd6fef4d5a92fbe4a76564fc3906f34 | bec15a37ba72116f1125cb920c30056ae254c59b | /Chapter12/cool_arm/cool5000_controller/scripts/cool5000_record.py | e45714e6ca16b9773b20e4c0b0275f7942b78600 | [] | no_license | PacktPublishing/Mastering-ROS-for-Robotics-Programming-Second-Edition | 211e4179ab4a8b6a0a50bb354aa4758628761162 | cb56612094689566263e9a4f0777e194c0ddd79a | refs/heads/master | 2023-02-10T13:36:48.184321 | 2023-01-30T08:25:08 | 2023-01-30T08:25:08 | 121,611,780 | 151 | 120 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | cool5000_record.py | #!/usr/bin/env python
import roslib; roslib.load_manifest('cool5000_controller')
import rospy
from std_msgs.msg import Float64
from dynamixel_msgs.msg import JointState
from dynamixel_controllers.srv import TorqueEnable
import time
import sys
import pickle
joint_names = (
'joint1_controller',
... |
660fadf6fdb191d4713da8f04566b7efdbca24a7 | 1faeaab0e95faf58d4e656efb07f064c70873c07 | /sitetree/settings.py | edd07f1bbbdae2fda30acdbb795d95f3c58b21c8 | [
"BSD-2-Clause"
] | permissive | idlesign/django-sitetree | ee094759f85c4c37e97e5dadfb2ea62bfc2031c6 | 0fa4c95903d63e1d68430fd0108fc8938fa038eb | refs/heads/master | 2023-07-18T08:28:41.521241 | 2022-11-11T01:14:39 | 2022-11-11T01:14:39 | 687,157 | 272 | 132 | BSD-3-Clause | 2022-11-11T01:14:40 | 2010-05-26T12:38:55 | Python | UTF-8 | Python | false | false | 2,259 | py | settings.py | from django.conf import settings
SITETREE_CLS: str = getattr(settings, 'SITETREE_CLS', None)
"""Allows deep tree handling customization. Accepts sitetreeap.SiteTree subclass."""
MODEL_TREE: str = getattr(settings, 'SITETREE_MODEL_TREE', 'sitetree.Tree')
"""Path to a tree model (app.class)."""
MODEL_TREE_ITEM: str =... |
ca8badb842217f677eb257b8cdb9eebaed3444e4 | 70bb62d27cd33f203ddcafd1223f10ffc274f29f | /test/test_poolmanager.py | 821e218b18e011689783d1314d20addbf146ec07 | [
"MIT"
] | permissive | urllib3/urllib3 | e40f1b044870fa3cdadb2a874e574ceb44f3ee41 | 8d0c666c4241e9b4dd8a772412d9f4c619965de4 | refs/heads/main | 2023-09-05T10:28:50.174872 | 2023-09-05T09:59:50 | 2023-09-05T09:59:50 | 2,410,676 | 2,191 | 779 | MIT | 2023-09-14T19:42:44 | 2011-09-18T18:08:28 | Python | UTF-8 | Python | false | false | 18,464 | py | test_poolmanager.py | from __future__ import annotations
import gc
import socket
from test import resolvesLocalhostFQDN
from unittest import mock
from unittest.mock import MagicMock, patch
import pytest
from urllib3 import connection_from_url
from urllib3.connectionpool import HTTPSConnectionPool
from urllib3.exceptions import LocationVa... |
4feb278a903ca96e6e6d19dc7602634e36450533 | 965efc4d7a83c2b5592417aa7e0d25a51f5a8108 | /backend/metering_billing/migrations/0181_event_unique.py | 19e236eed058cb3cf3729328a6aa96fa8263de89 | [
"MIT"
] | permissive | uselotus/lotus | f4ee23bb828605215f18aacd1d6fcff8e0986c53 | c065fb33ee1a870d72bbd2adfddc08d50ca049b6 | refs/heads/main | 2023-08-17T03:38:35.770580 | 2023-07-26T18:50:17 | 2023-07-26T18:50:17 | 516,192,901 | 1,447 | 100 | MIT | 2023-06-25T22:53:06 | 2022-07-21T02:06:46 | Python | UTF-8 | Python | false | false | 959 | py | 0181_event_unique.py | # Generated by Django 4.0.5 on 2023-02-14 06:35
from django.db import migrations
from django.db.models import Count, Max
def remove_duplicates(apps, schema_editor):
Event = apps.get_model("metering_billing", "Event")
unique_fields = ["organization_id", "idempotency_id"]
duplicates = (
Event.obje... |
19ce0393d118b513869c6519697ec370712148a1 | 68073b5bbec051890bce2cdb0abbf1c7652002ed | /utest/editor/test_macroeditors.py | e79708beff0c100285e3726d490fc2fa37057e97 | [
"Apache-2.0"
] | permissive | robotframework/RIDE | 3b6dc9629e34b6f350e154e5f76d106fa48eaaa8 | ed4d650dbd806672401d4341fecc30274c4972c7 | refs/heads/master | 2023-09-05T15:59:01.151700 | 2023-09-02T22:39:16 | 2023-09-02T22:39:16 | 2,467,257 | 897 | 419 | Apache-2.0 | 2023-09-10T03:43:39 | 2011-09-27T11:53:40 | Python | UTF-8 | Python | false | false | 2,943 | py | test_macroeditors.py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... |
54abbd0877740ce7bcdaea156fd4969e6df05833 | 6c8305ea1df9687df1c0d2b0ace56733516c6322 | /readthedocs/analytics/migrations/0002_track_status_code.py | 2485dce559735b620874e23d6389f7410ad09078 | [
"MIT"
] | permissive | readthedocs/readthedocs.org | 9806083aa744c2308267919480a692e1e003e45d | bf88ce6d1085d922322a5fadce63a22c5544c830 | refs/heads/main | 2023-09-05T20:22:34.281891 | 2023-09-05T12:41:52 | 2023-09-05T12:41:52 | 841,835 | 2,894 | 1,509 | MIT | 2023-09-14T20:36:00 | 2010-08-16T19:18:06 | Python | UTF-8 | Python | false | false | 1,651 | py | 0002_track_status_code.py | # Generated by Django 3.2.12 on 2022-03-29 17:51
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("builds", "0041_track_task_id"),
("projects", "0087_use_booleanfield_null"),
("analytics", "0001_initial"),
... |
46ce9a2a3fe94c3af3d33f3c3c9e1a0e2e7c6deb | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/bindings/python/src/compatibility/ngraph/opset2/ops.py | 412e8a7bd894b312117f67a73431edf0ad713609 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 6,107 | py | ops.py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
"""Factory functions for all ngraph ops."""
from typing import Callable, Iterable, List, Optional, Set, Union
import numpy as np
from functools import partial
from ngraph.impl import Node, Shape
from ngraph.impl.op import Constant, Par... |
bc9bc8eea64924622eff35b6df0c3f5bcb12365f | 1fd8e5db25f8ebc7cc4506cbb07ba98f717b667e | /menu.py | 650e09202e0038912853501cc7f73857a55b7669 | [] | 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 | 1,003 | py | menu.py | from tkinter import *
root = Tk()
root.title('Codemy.com - Learn To Code!')
root.iconbitmap('c:/gui/codemy.ico')
root.geometry("400x400")
my_menu = Menu(root)
root.config(menu=my_menu)
# click command
def our_command():
my_label = Label(root, text="You Clicked a Dropdown Menu!").pack()
#Create a menu item
file_m... |
ddc6557019daaa7746230d23aa382fe2dec79a3b | 5130754859e274cd06f63260439e5203c2000a11 | /scripts/run_mypy_checks_test.py | 43e7c7f44320b1abd16ef85336783388b8af552e | [
"Apache-2.0"
] | permissive | oppia/oppia | 8ebc9c7c7f2b336e9a79ce04533abe3956f48cbe | d16fdf23d790eafd63812bd7239532256e30a21d | refs/heads/develop | 2023-09-04T07:50:13.661276 | 2023-09-03T09:21:32 | 2023-09-03T09:21:32 | 40,687,563 | 6,172 | 4,666 | Apache-2.0 | 2023-09-14T18:25:11 | 2015-08-14T00:16:14 | Python | UTF-8 | Python | false | false | 9,841 | py | run_mypy_checks_test.py | # coding: utf-8
#
# Copyright 2021 The Oppia 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 requi... |
846cb40b42ca23882b4ea55c2e6b4c91fd3a87ca | d4239425234eacb647c4cc4f2f4c8537b618fca0 | /onadata/apps/restservice/services/f2dhis2.py | c80171c04a26b5255734d7f5a03c57a898d26a70 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | onaio/onadata | 58762d6a606870bd13d43fd27fdaa61720a745c2 | e5bdec91cb47179172b515bbcb91701262ff3377 | refs/heads/main | 2023-09-04T03:12:43.388668 | 2023-08-24T07:27:08 | 2023-08-24T07:27:08 | 12,888,897 | 177 | 149 | NOASSERTION | 2023-09-13T14:19:05 | 2013-09-17T07:25:01 | Python | UTF-8 | Python | false | false | 682 | py | f2dhis2.py | # -*- coding: utf-8 -*-
"""
Formhub/Ona Data to DHIS2 service - push submissions to DHIS2 instance.
"""
import requests
from onadata.apps.restservice.RestServiceInterface import RestServiceInterface
class ServiceDefinition(RestServiceInterface):
"""Post submission to DHIS2 instance."""
# pylint: disable=inv... |
81077708bb2e0140c52705f9c33c1b8b4a1c9a31 | 279f415dd1e06c594c6c87deda57e201c73c4542 | /espnet2/lm/espnet_model.py | bbaecb8d8eea7d1a53c892338ba40a21eb277745 | [
"Apache-2.0"
] | permissive | espnet/espnet | f7ba47271c1a6b1ed606dbbfb04a7f14220bb585 | bcd20948db7846ee523443ef9fd78c7a1248c95e | refs/heads/master | 2023-08-28T23:43:34.238336 | 2023-08-23T02:51:39 | 2023-08-23T02:51:39 | 114,054,873 | 7,242 | 2,244 | Apache-2.0 | 2023-09-14T08:01:11 | 2017-12-13T00:45:11 | Python | UTF-8 | Python | false | false | 4,785 | py | espnet_model.py | from typing import Dict, Optional, Tuple
import torch
import torch.nn.functional as F
from typeguard import check_argument_types
from espnet2.lm.abs_model import AbsLM
from espnet2.torch_utils.device_funcs import force_gatherable
from espnet2.train.abs_espnet_model import AbsESPnetModel
from espnet.nets.pytorch_backe... |
19b7e44bc7368441b671dce1e33495a6e6df4adb | 88fe84c79e5740b4aaa068df6a70e35841a68d25 | /tests/test_2656_unflatten_axis_typetracer.py | fea578d80b5ed81dd5bceefd17de5d1781ef7a73 | [
"BSD-3-Clause"
] | permissive | scikit-hep/awkward | 176f56182a936270e163eab92ea18368c2bdc1be | 519bba6ed2eec4e227994d2fd1a62b2a51f15e20 | refs/heads/main | 2023-09-02T20:19:10.175088 | 2023-09-01T20:13:25 | 2023-09-01T20:13:25 | 202,413,762 | 208 | 22 | BSD-3-Clause | 2023-09-14T17:19:29 | 2019-08-14T19:32:12 | Python | UTF-8 | Python | false | false | 3,755 | py | test_2656_unflatten_axis_typetracer.py | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import numpy as np
import pytest # noqa: F401
import awkward as ak
from awkward._nplikes.shape import unknown_length
def test():
fromjson = {
"class": "RecordArray",
"fields": ["muon", "anindex"],
"c... |
177d5b89646162b9fe769f1b8a8d2619ae3a11e0 | bed34365a9dab825fd9f4a4ff1b0863f441266ac | /neutron/tests/unit/services/logapi/drivers/test_manager.py | 6594dfea6aa965b579721c89ccb41f8a5cf85b07 | [
"Apache-2.0"
] | permissive | openstack/neutron | 0913ee3cd69d5bdb9c10aa084d4e1803abee320c | dde31aae392b80341f6440eb38db1583563d7d1f | refs/heads/master | 2023-08-31T13:09:41.831598 | 2023-08-31T11:37:30 | 2023-08-31T11:37:30 | 2,400,289 | 1,174 | 1,325 | Apache-2.0 | 2022-06-29T08:00:05 | 2011-09-16T16:04:08 | Python | UTF-8 | Python | false | false | 7,789 | py | test_manager.py | # Copyright (c) 2017 Fujitsu Limited
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... |
770fb04098b6ae1bec0d94d2698fb02d2dbcfd89 | 2d5a3cde8291c1f733f63b83e3d02f77321a9f12 | /opentelemetry/python-microservice/app.py | f83a2026d8f61e945bdcb9e5acba9b102bae27ac | [
"BSD-3-Clause"
] | permissive | DataDog/trace-examples | 99d5e6e0984beefb08a2a3ead0dc35e19798d932 | 121636bbae446fb93f56c14a83ba819faf327d1f | refs/heads/master | 2023-08-19T00:30:52.632661 | 2023-03-23T15:14:13 | 2023-03-23T15:14:13 | 61,754,713 | 106 | 73 | BSD-3-Clause | 2023-03-08T14:06:45 | 2016-06-22T22:08:05 | Python | UTF-8 | Python | false | false | 2,216 | py | app.py |
"""
This module serves as an example to integrate with flask, using
the requests library to perform downstream requests
"""
import flask
import requests
import os
import time
import logging
import structlog
from .ddlogging import injection
from opentelemetry import trace
from opentelemetry.exporter.otlp.trace_export... |
a2a6cb2f4c497380a36b21b8cd5de8feba4f6999 | e1cddfd754d952134e72dfd03522c5ea4fb6008e | /test/test_ipsec_nat.py | 881b5a7596c0a33980daa296e09f57d90e4dd1aa | [
"Apache-2.0"
] | permissive | FDio/vpp | 0ad30fa1bec2975ffa6b66b45c9f4f32163123b6 | f234b0d4626d7e686422cc9dfd25958584f4931e | refs/heads/master | 2023-08-31T16:09:04.068646 | 2022-03-14T09:49:15 | 2023-08-31T09:50:00 | 96,556,718 | 1,048 | 630 | Apache-2.0 | 2023-06-21T05:39:17 | 2017-07-07T16:29:40 | C | UTF-8 | Python | false | false | 11,584 | py | test_ipsec_nat.py | #!/usr/bin/env python3
import socket
import scapy.compat
from scapy.layers.l2 import Ether
from scapy.layers.inet import ICMP, IP, TCP, UDP
from scapy.layers.ipsec import SecurityAssociation, ESP
from util import ppp, ppc
from template_ipsec import TemplateIpsec
from vpp_ipsec import VppIpsecSA, VppIpsecSpd, VppIpse... |
7b02808851da6c434897823ef81f48484827e18e | 5a07e1afa5d172dcd4288f12636edd9c53148073 | /tests/test_optim.py | e4c54090762270493af8c0d330ff7ccdd0501a8a | [
"Apache-2.0"
] | permissive | scikit-hep/pyhf | 3df3f9b12d1b362919629275b8746060833713f3 | 205eecfb0b57591eb6b70e98b01511797340a0c7 | refs/heads/main | 2023-09-02T18:50:35.990103 | 2023-08-31T00:10:41 | 2023-08-31T00:10:41 | 118,789,569 | 246 | 82 | Apache-2.0 | 2023-09-13T21:57:02 | 2018-01-24T16:14:39 | Python | UTF-8 | Python | false | false | 21,373 | py | test_optim.py | from unittest.mock import patch, PropertyMock
import pyhf
from pyhf.optimize.mixins import OptimizerMixin
from pyhf.optimize.common import _get_tensor_shim, _make_stitch_pars
from pyhf.tensor.common import _TensorViewer
import pytest
from scipy.optimize import minimize, OptimizeResult
from scipy.optimize import Optimiz... |
ba0913dc1163ed23b97a2fefe81452c48c96c2be | 7c61fca86ecd39df4c8607c43a4928f18ce6bf99 | /leetcode/editor/cn/[28]实现 strStr().py | 0e7f631378163523689633db723cba1f9e212c27 | [] | no_license | AlphaJia/LLCode | bb8137105402275497aade5e3a30d2574cb93772 | e7cb5903aa6cd438d8eb86c50ec6736bca57a545 | refs/heads/master | 2023-01-22T01:16:56.981825 | 2020-11-18T13:58:35 | 2020-11-18T13:58:35 | 266,552,914 | 111 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | [28]实现 strStr().py | # 实现 strStr() 函数。
#
# 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如
# 果不存在,则返回 -1。
#
# 示例 1:
#
# 输入: haystack = "hello", needle = "ll"
# 输出: 2
#
#
# 示例 2:
#
# 输入: haystack = "aaaaa", needle = "bba"
# 输出: -1
#
#
# 说明:
#
# 当 needle 是空字符串时,我们应当返回什么值呢?这是一个在面试中很好的问题。
#... |
4be7412642200cd8873b2a30e31c67b7877b7a22 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/matplotlib/py2/matplotlib/backends/backend_svg.py | b38c6850dad0f270fd85d32a66a0fdd6c719cc77 | [
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 45,503 | py | backend_svg.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from collections import OrderedDict
import six
from six import unichr
from six.moves import xrange
import base64
import codecs
import gzip
import hashlib
import io
import logging
import re
import uuid
import... |
9c159841f8a2b2961fe74b964eed064561d40eca | 5ef6c8d47864f471e26b9902d61f8c687e941f05 | /src/genie/libs/parser/ios/tests/ShowIpv6PimBsrCandidateRp/cli/equal/golden_output_ios_expected.py | 381f611b161122d817c555e8ecb0dc9cef97952f | [
"Apache-2.0"
] | permissive | CiscoTestAutomation/genieparser | 169c196558f1c1a0f0d10650876096f993224917 | b531eff760b2e44cd69d7a2716db6f866907c239 | refs/heads/master | 2023-09-03T08:56:18.831340 | 2023-08-29T22:32:02 | 2023-08-29T22:32:02 | 131,621,824 | 247 | 409 | Apache-2.0 | 2023-08-29T22:32:04 | 2018-04-30T16:51:50 | Python | UTF-8 | Python | false | false | 710 | py | golden_output_ios_expected.py | expected_output = {
"vrf": {
"default": {
"address_family": {
"ipv6": {
"rp": {
"bsr": {
"rp_candidate_next_advertisement": "00:00:33",
"2001:db8:100::1:1:3": {
... |
65aa3fc1dd522ff323400c71df75b4a2d57f09b8 | 83963c19fd120dcc7498b726cc56de7fbb900a47 | /tests/test_configoptions.py | 775f76731d4726f4403725705298821e4472a259 | [
"MIT",
"LicenseRef-scancode-public-domain",
"CC-BY-2.0"
] | permissive | RhetTbull/osxphotos | 55ad4f1257bcd26bb3fbadde6ce5dd59c0917354 | 2cb5a4d18a27be6ccf68f5f35abd39418d238016 | refs/heads/main | 2023-09-02T18:11:06.227191 | 2023-09-02T16:06:51 | 2023-09-02T16:06:51 | 192,160,985 | 1,287 | 93 | MIT | 2023-09-14T14:10:58 | 2019-06-16T07:07:49 | Python | UTF-8 | Python | false | false | 2,689 | py | test_configoptions.py | """ test ConfigOptions class """
import pathlib
from io import StringIO
import pytest
import toml
from osxphotos.configoptions import (
ConfigOptions,
ConfigOptionsInvalidError,
ConfigOptionsLoadError,
)
VARS = {"foo": "bar", "bar": False, "test1": (), "test2": None, "test2_setting": False}
def test_i... |
a9a482aa61d61b85ad026b2b365690ea25c882c1 | 7a6644b553316ece2498e4f8f629454e0b379d23 | /manimlib/once_useful_constructs/light.py | 5ec132b9cf55469c5e00919295690d3fc4594bd0 | [
"MIT"
] | permissive | manim-kindergarten/manim | 9f17cac6c1c4db5db6e7f4edfe4885eee9ec1f5e | 99fe80a55cdc5c2fcc249b3645d7f1cd19852bcd | refs/heads/master | 2023-06-27T19:44:05.384032 | 2022-12-08T04:00:27 | 2022-12-08T04:00:27 | 245,434,121 | 130 | 27 | MIT | 2023-06-17T07:15:31 | 2020-03-06T14:00:57 | Python | UTF-8 | Python | false | false | 21,049 | py | light.py | from traceback import *
from scipy.spatial import ConvexHull
from manimlib.animation.composition import LaggedStartMap
from manimlib.animation.fading import FadeIn
from manimlib.animation.fading import FadeOut
from manimlib.animation.transform import Transform
from manimlib.constants import *
from manimlib.mobject.ge... |
285a5c01a75cc0db543e184884c8c0910086da9f | 6deafbf6257a5c30f084c3678712235c2c31a686 | /Toolz/sqlmap/plugins/dbms/firebird/syntax.py | 7c91e79cf6fdc5db15941f767819a51e21cc27ee | [
"Unlicense",
"LicenseRef-scancode-generic-cla",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"LicenseRef-scancode-commercial-license",
"LicenseRef-scancode-other-permissive"
] | permissive | thezakman/CTF-Heaven | 53fcb4a72afa821ad05d8cc3b309fb388f958163 | 4b52a2178922f1502ab00fa8fc156d35e1dc653f | refs/heads/master | 2023-04-05T18:20:54.680378 | 2023-03-21T13:47:45 | 2023-03-21T13:47:45 | 167,290,879 | 182 | 24 | Unlicense | 2022-11-29T21:41:30 | 2019-01-24T02:44:24 | Python | UTF-8 | Python | false | false | 1,155 | py | syntax.py | #!/usr/bin/env python
"""
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
from lib.core.common import isDBMSVersionAtLeast
from plugins.generic.syntax import Syntax as GenericSyntax
class Syntax(GenericSyntax):
def __init__(self):
GenericSy... |
f4ac5a98fb86f8cb813444e73c371fd49b60d65a | 422a48c4deaee6a02e4d9de5243dcda00f9a1d89 | /sparse/_io.py | a0ca2866c92147c91d5ce1410fee3502a7e0230f | [
"BSD-3-Clause"
] | permissive | pydata/sparse | 3510bc2f2ef15d9a28299dd550ae1bf7931744c9 | 096f9b04e9abf666e442f6cfd87b18c9395bc157 | refs/heads/master | 2023-08-28T18:43:35.349118 | 2023-07-01T06:15:17 | 2023-07-01T06:15:17 | 88,426,738 | 467 | 102 | BSD-3-Clause | 2023-09-07T21:08:35 | 2017-04-16T16:12:10 | Python | UTF-8 | Python | false | false | 3,804 | py | _io.py | import numpy as np
from ._coo.core import COO
from ._compressed import GCXS
def save_npz(filename, matrix, compressed=True):
"""Save a sparse matrix to disk in numpy's ``.npz`` format.
Note: This is not binary compatible with scipy's ``save_npz()``.
This binary format is not currently stable. Will save a... |
a1298f68683d074a13fcaf83a3d6f35e62be2b83 | 7a6aca7d300c0752f2a73730b743a1a7361e941b | /tensorflow_graphics/projects/pointnet/helpers.py | 0a27f8aa5689a7be175ccb6c00e86aa846bb2ef2 | [
"Apache-2.0"
] | permissive | tensorflow/graphics | ef0abe102398a58eb7c41b709393df3d0b0a2811 | 1b0203eb538f2b6a1013ec7736d0d548416f059a | refs/heads/master | 2023-09-03T20:41:25.992578 | 2023-08-08T21:16:36 | 2023-08-08T21:17:31 | 164,626,274 | 2,920 | 413 | Apache-2.0 | 2023-08-27T14:26:47 | 2019-01-08T10:39:44 | Python | UTF-8 | Python | false | false | 5,353 | py | helpers.py | # Copyright 2020 The TensorFlow 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 i... |
39242d179dceef796cf6ab19dd5501e624acdc9a | e2ef50ae06bcb3ead94c0dcef9ac5c8fec1ee95a | /pypi-tools/examples/example-package/tests/test.py | 3b74fe096e5b6aaa33034780685a72ae82c190ea | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/cloud-builders-community | 40cf046a64526a174063c18d83f6e8bfa81006dd | eb8cdb2cfa6cc9e98e0fb82212879b699c022527 | refs/heads/master | 2023-08-17T07:41:03.711743 | 2023-07-17T20:50:20 | 2023-07-17T20:50:20 | 108,133,503 | 1,228 | 1,055 | Apache-2.0 | 2023-09-07T18:36:22 | 2017-10-24T13:49:44 | Go | UTF-8 | Python | false | false | 202 | py | test.py | from myPackage import somePython
def test_fahrToKelv():
'''
make sure freezing is calculated correctly
'''
assert somePython.fahrToKelv(32) == 273.15, 'incorrect freezing point!'
|
134a524280e55e1f71d69bb0d9dcfcd73f7d1ec1 | 78ce285eff8566e220a76626aaab0f9e6c2b1c80 | /python/surf/devices/intel/_EM22xx.py | cf26695e49d94299f12507ad070f59ac0282f338 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | slaclab/surf | 315dfa6c866e34a01befe780e3a8dbb8caf434ee | c9f42cecda8db19e971a0b33a2add6ff0ea08eff | refs/heads/master | 2023-08-17T23:10:12.674166 | 2023-07-22T01:21:03 | 2023-07-22T01:21:03 | 66,395,341 | 220 | 56 | NOASSERTION | 2023-09-01T17:21:33 | 2016-08-23T19:06:56 | VHDL | UTF-8 | Python | false | false | 3,232 | py | _EM22xx.py | #-----------------------------------------------------------------------------
# This file is part of the 'SLAC Firmware Standard Library'. It is subject to
# the license terms in the LICENSE.txt file found in the top-level directory
# of this distribution and at:
# https://confluence.slac.stanford.edu/display/ppare... |
2e7a8177ab20be4315281ad912e2ddf7ef2e015a | dacdebab897f9287f37a2e85c5705a926ddd36aa | /tests/test_many_jobs/Snakefile | 9b45b9dce17babc05f489ce432e0f04a4e935c5c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | snakemake/snakemake | 5d4528193d87786d7b372ca7653ece302ff46965 | 27b224ed12448df8aebc7d1ff8f25e3bf7622232 | refs/heads/main | 2023-09-02T08:37:04.323976 | 2023-08-11T10:02:34 | 2023-08-11T10:02:34 | 212,840,200 | 1,941 | 536 | MIT | 2023-09-11T09:51:44 | 2019-10-04T14:58:11 | HTML | UTF-8 | Python | false | false | 364 | Snakefile |
rule:
input: expand("{sample}.out", sample=range(50000))
rule:
input: "{sample}.inter2"
output: "{sample}.out"
shell: "touch {output}"
rule:
input: "{sample}.inter1"
output: "{sample}.inter2"
shell: "touch {output}"
rule:
input: "{sample}.in"
output: "{sample}.inter1"
shell: "touch {output}"
rule:
out... | |
9a17632e754beca951e1e3ab0ab652b82010fae3 | 88de1fa5e5a0bfeeb98718ee487b578d900a4b62 | /tasks.py | 2df5ff1746f8645d3a3e1b15111f0f168cf9b29c | [
"BSD-3-Clause"
] | permissive | materialsvirtuallab/m3gnet | 19b6ccaa41fd83c984659ac4ae905719435469e8 | 1f89ecb564b2691c810cd106c3476b15a8699bb7 | refs/heads/main | 2023-06-09T09:38:32.979120 | 2023-06-06T23:56:03 | 2023-06-06T23:56:03 | 449,395,509 | 175 | 48 | BSD-3-Clause | 2023-06-06T23:54:35 | 2022-01-18T18:10:58 | Python | UTF-8 | Python | false | false | 2,879 | py | tasks.py | """
Pyinvoke tasks.py file for automating releases and admin stuff.
"""
import glob
import json
import os
import re
import requests
from invoke import task
from monty.os import cd
import m3gnet
NEW_VER = m3gnet.__version__
@task
def make_doc(ctx):
ctx.run("cp README.md docs_src/index.md")
ctx.run("cp CHA... |
0c4119bc98a7896f77b920b4c656bb2f82420029 | 1742b6719b988e5519373002305e31d28b8bd691 | /sdk/python/pulumi_aws/emrcontainers/_inputs.py | 31fa0bc30b8036d3e01556ddece2e0c540286432 | [
"BSD-3-Clause",
"Apache-2.0",
"MPL-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 | 3,971 | 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... |
e72303de52ddf6a4f5d3dd4a28078bdbad9979db | 7b7c570b30d6d7a0e9b904c7cb378cfb0d0f0e07 | /dev/create_release_branch.py | 34372671d4e3f5d68c019061f647d68c90842e5a | [
"Apache-2.0"
] | permissive | mlflow/mlflow | ca97bfbbf32f8e59f454e428f5e46eb3d34d062f | 37298ffafcd34002352d01d579d4524790544267 | refs/heads/master | 2023-09-01T13:15:53.902815 | 2023-09-01T09:00:42 | 2023-09-01T09:00:42 | 136,202,695 | 14,102 | 3,748 | Apache-2.0 | 2023-09-14T21:52:42 | 2018-06-05T16:05:58 | Python | UTF-8 | Python | false | false | 1,728 | py | create_release_branch.py | import subprocess
import click
from packaging.version import Version
@click.command(help="Create a release branch")
@click.option("--new-version", required=True)
@click.option("--remote", required=False, default="origin", show_default=True)
@click.option(
"--dry-run/--no-dry-run", is_flag=True, default=True, sho... |
78f5e885edd64698ad38b3c254f478087a0621b5 | 04207bd0b1ace1d98b8832cc72c52132ebe10b0c | /conftest.py | fe49511633d278779514f56c680f4bb77262e8f5 | [
"BSD-3-Clause"
] | permissive | TDAmeritrade/stumpy | 27258316fd975c17be49d8a5186118020fe65798 | 6c367accc523708f6e4ec6701da76447cc5b1b0b | refs/heads/main | 2023-08-04T16:27:46.730711 | 2023-08-01T11:35:11 | 2023-08-01T11:35:11 | 184,809,315 | 2,854 | 385 | NOASSERTION | 2023-08-25T02:15:20 | 2019-05-03T19:23:44 | Python | UTF-8 | Python | false | false | 268 | py | conftest.py | # This file acts as an entry point for pytest.
# Its root directory is added to `sys.path` when pytest is executed
# to fix eventual module import errors that can arise, for example when
# running tests from inside VS code.
# See https://stackoverflow.com/a/34520971
|
47a8611f3ba9cc11b9d34d4ae90262750766cd2d | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Geometry/ForwardCommonData/test/testHFNoseNumbering_cfg.py | 0c8d2deaefb3bdf3d1edf1d43140f4a9578c5bed | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 1,635 | py | testHFNoseNumbering_cfg.py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PROD")
process.load("SimGeneral.HepPDTESSource.pdt_cfi")
process.load("Geometry.ForwardCommonData.testHFNoseXML_cfi")
process.load("Geometry.ForwardCommonData.hfnoseParametersInitialization_cfi")
process.load("Geometry.ForwardCommonData.hfnoseNumberingIni... |
a2a4f7973662612abc01a8a7cc9a5fe1645bf4c8 | ed865aed525556fd7aa5ac5a024af720de8438e3 | /tests/integration-tests/conftest_tests_config.py | 0c4c798528526cdd5b8a36377e9c1491f5feffbc | [
"Python-2.0",
"GPL-1.0-or-later",
"MPL-2.0",
"MIT",
"LicenseRef-scancode-python-cwi",
"BSD-3-Clause",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"MIT-0",
"BSD-2-Clause"
] | permissive | aws/aws-parallelcluster | 7bb33a6e175168f63a1e0acb1a9a7e9cbc405eff | a213978a09ea7fc80855bf55c539861ea95259f9 | refs/heads/develop | 2023-09-05T15:12:18.533270 | 2023-09-05T14:38:59 | 2023-09-05T14:38:59 | 19,718,034 | 520 | 226 | Apache-2.0 | 2023-09-14T15:56:30 | 2014-05-12T22:42:19 | Python | UTF-8 | Python | false | false | 5,006 | py | conftest_tests_config.py | import logging
import os
from itertools import product
from conftest_markers import DIMENSIONS_MARKER_ARGS
from conftest_networking import unmarshal_az_override, unmarshal_az_params
from framework.tests_configuration.config_utils import get_enabled_tests
from xdist import get_xdist_worker_id
def parametrize_from_con... |
8f0a8f30b08076659a07aef085cb29d179d7c039 | fae16a539b7c1b0525aab40ddaeee3e451fc9b74 | /src/argilla/server/schemas/v1/datasets.py | e28ca8630c352a64ce3a32456a6c5798f83136e1 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | argilla-io/argilla | a6b45f7f64e9db82f6d9a61771d758ffbb3dab4a | 7c1b2368b444b7b7a281d37ad51bcb2d8e92acf5 | refs/heads/develop | 2023-09-04T03:58:05.914619 | 2023-09-01T15:58:31 | 2023-09-01T15:58:31 | 362,500,938 | 1,085 | 122 | Apache-2.0 | 2023-09-14T15:31:07 | 2021-04-28T14:37:42 | Python | UTF-8 | Python | false | false | 11,359 | py | datasets.py | # Copyright 2021-present, the Recognai S.L. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... |
82759fa4cf8af21ba1729a0c2d7725231168097b | 3c582a006b945cd95974d910ab5b0ff551ab42fa | /tsuru_dashboard/components/urls.py | e47eafe0f0feb3a9fa873222882eec7fa6db7570 | [] | no_license | tsuru/tsuru-dashboard | f8be15a72366a5cefeadd4a3aac117ed760e85bc | c94b0b1a6ec30d7f59b939adcff41646bad00e87 | refs/heads/master | 2023-06-22T12:01:20.024933 | 2022-10-20T19:50:47 | 2022-10-20T19:50:47 | 5,112,553 | 119 | 60 | null | 2023-06-13T17:53:35 | 2012-07-19T16:31:42 | Python | UTF-8 | Python | false | false | 224 | py | urls.py | from django.conf.urls import url
import views
urlpatterns = [
url(r'^$', views.ListComponent.as_view(), name='list-component'),
url(r'^list.json$', views.ListComponentJson.as_view(), name='list-component-json')
]
|
479b9e7c6949d49a8610cceb74f128cf31a495db | 60c36ec7e74250bd61cb7c54c3fc2fc7e4f96558 | /mtgjson5/providers/edhrec/card_ranks.py | d8c198a1d8339e6c47c46a09a4b07b6e8c194d64 | [
"MIT"
] | permissive | mtgjson/mtgjson | 5f274a5aa2e3e539437ed65c1092fff5844ae1e3 | 55b8fea1969fa83587361ea53a2633e2a8ec1263 | refs/heads/master | 2023-08-17T13:49:16.610684 | 2023-07-21T19:43:17 | 2023-07-21T19:43:22 | 134,310,876 | 291 | 59 | MIT | 2023-09-12T22:51:57 | 2018-05-21T18:44:54 | Python | UTF-8 | Python | false | false | 1,763 | py | card_ranks.py | import logging
from typing import Any, Dict, Optional, Union
from singleton_decorator import singleton
from ...mtgjson_config import MtgjsonConfig
from ...providers.abstract import AbstractProvider
from ...utils import retryable_session
LOGGER = logging.getLogger(__name__)
@singleton
class EdhrecProviderCardRanks(... |
b762e28863633e5fc7ed8eb9949d586c5addf949 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/editing/simpleFinally.py | b81e34cce438f3a215174fa1fcd86de7938408ac | [
"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 | 29 | py | simpleFinally.py | try:
pass
finally<caret>
|
7b0875b0b4cbe21ca55016b228ef106212e18e94 | 483424524c70852cc043e0d77bf1b757a61d797a | /tests/unit/ops/transformer/inference/test_residual_add.py | c2952f74ff2d7414fcaf6ae4524c50941979d475 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/DeepSpeed | 810f1af320020718d0794f5a97cde6f1d17af122 | 55d9964c59c0c6e23158b5789a5c36c28939a7b0 | refs/heads/master | 2023-09-06T07:40:52.145692 | 2023-09-05T23:51:23 | 2023-09-05T23:51:23 | 235,860,204 | 27,557 | 3,347 | Apache-2.0 | 2023-09-14T21:38:46 | 2020-01-23T18:35:18 | Python | UTF-8 | Python | false | false | 5,157 | py | test_residual_add.py | # Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0
# DeepSpeed Team
import pytest
import torch
import deepspeed
from deepspeed.accelerator import get_accelerator
from deepspeed.ops.op_builder import InferenceBuilder
from .inference_test_utils import get_dtypes
if not deepspeed.ops.__compati... |
ab241c990a5130738e600c6e0f9b436cf7f97177 | 02ff7b84aaf436651a4b177affc91757266bdfd6 | /RoIlayer/__init__.py | 8b635f8990663175b0b492d20f35501c7f499db6 | [
"MIT"
] | permissive | GXYM/DRRG | cb4345cd57554a4617f7a64371e7b42d8518cc8f | 41b197679f9b7f785f2b5c5a84871b3f73aef885 | refs/heads/master | 2023-07-11T23:32:46.639969 | 2023-06-30T16:41:00 | 2023-06-30T16:41:00 | 226,042,729 | 272 | 61 | MIT | 2021-11-06T15:31:21 | 2019-12-05T07:32:19 | C++ | UTF-8 | Python | false | false | 154 | py | __init__.py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
from .rroi_align import RROIAlign
from .rroi_align import rroi_align |
361e167692fafd4e9aeeaa406a8d43c5e287df73 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayMarketingActivityVoucherCreateResponse.py | 9ce4033f1344562e33a87e2cf8a9d1cfba31702e | [
"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 | 766 | py | AlipayMarketingActivityVoucherCreateResponse.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayMarketingActivityVoucherCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayMarketingActivityVoucherCreateResponse, self).__init__()
self._activity_... |
214bc8192e692e1810563b8a5391824afdc7d6ea | 6416b746ee71d897789eab1e450000831674dbd0 | /tests/integration/cli/instance_segmentation/test_tiling_instseg.py | c829f82ef1a5427065ae1c0cb8b8e9a5a3e7b7e4 | [
"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 | 6,378 | py | test_tiling_instseg.py | """Tests for MPA Class-Incremental Learning for instance segmentation with OTX CLI"""
# Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
import copy
import os
import pytest
from otx.api.entities.model_template import parse_model_template
from tests.test_suite.e2e_test_system import e2e_pyt... |
264752b08ae09c5813549c30e7d46fd38bd7b8a8 | 94d3ef554f7931d2aad799eb6bcfa18104dc9bed | /ndlib/models/epidemics/ForestFireModel.py | 949dfe5ae2113242fd341e8b6df90d4078bbebc1 | [
"BSD-2-Clause"
] | permissive | GiulioRossetti/ndlib | 76b5a86a2b521cd68197218aea235e20bcb8d1f4 | 900cb3727795c97a73e59fdb736aa736c4d17157 | refs/heads/master | 2023-09-03T17:09:00.069129 | 2023-07-21T13:57:29 | 2023-07-21T13:57:29 | 59,556,819 | 265 | 82 | BSD-2-Clause | 2023-08-17T03:54:33 | 2016-05-24T08:53:47 | Python | UTF-8 | Python | false | false | 4,306 | py | ForestFireModel.py | import numpy as np
from ..DiffusionModel import DiffusionModel
import future.utils
__author__ = "Mavros Georgios"
__license__ = "BSD-2-Clause"
__email__ = "gmavros@protonmail.com"
class ForestFireModel(DiffusionModel):
"""
Node Parameters to be specified via ModelConfig
:param f: Probability with whic... |
216bc0e4a03c17eab9a80f1498a366ae43856e4b | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/pytests/unit/states/test_xml.py | 81cada32504001e84bcd5a066fdd176ccf43722d | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | saltstack/salt | 354fc86a7be1f69514b3dd3b2edb9e6f66844c1d | 1ef90cbdc7203f97775edb7666db86a41eb9fc15 | refs/heads/master | 2023-07-19T20:56:20.210556 | 2023-06-29T23:12:28 | 2023-07-19T11:47:47 | 1,390,248 | 11,026 | 6,296 | Apache-2.0 | 2023-09-14T20:45:37 | 2011-02-20T20:16:56 | Python | UTF-8 | Python | false | false | 2,386 | py | test_xml.py | """
Test cases for xml state
"""
import pytest
import salt.states.xml as xml
from tests.support.mock import MagicMock, patch
@pytest.fixture
def configure_loader_modules():
return {xml: {}}
def test_value_already_present():
"""
Test for existing value_present
"""
name = "testfile.xml"
xpa... |
88b8559e25b6c87068985aa5f600c0b85dfb26a1 | 2d5a3cde8291c1f733f63b83e3d02f77321a9f12 | /python/django/django-realworld/django-realworld-example-app/conduit/apps/articles/renderers.py | 7f4e85f4d0bfc6a03641fe3ff0d0dd13fb4ec2a1 | [
"BSD-3-Clause"
] | permissive | DataDog/trace-examples | 99d5e6e0984beefb08a2a3ead0dc35e19798d932 | 121636bbae446fb93f56c14a83ba819faf327d1f | refs/heads/master | 2023-08-19T00:30:52.632661 | 2023-03-23T15:14:13 | 2023-03-23T15:14:13 | 61,754,713 | 106 | 73 | BSD-3-Clause | 2023-03-08T14:06:45 | 2016-06-22T22:08:05 | Python | UTF-8 | Python | false | false | 390 | py | renderers.py | from conduit.apps.core.renderers import ConduitJSONRenderer
class ArticleJSONRenderer(ConduitJSONRenderer):
object_label = 'article'
pagination_object_label = 'articles'
pagination_count_label = 'articlesCount'
class CommentJSONRenderer(ConduitJSONRenderer):
object_label = 'comment'
pagination_o... |
390c3e35f0710ea95f0288e7867c3047fb2a9798 | 98810fbf90a42028915a88bfac9fb8cb8681008e | /azure-devops/azext_devops/devops_sdk/v5_1/contributions/models.py | 0cf2d86a0785a1cbf17f1b6e104d10c4b456780b | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unicode",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"PSF-2.0",
"PostgreSQL",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"C... | permissive | Azure/azure-devops-cli-extension | ba87357a8243e1318f100791fc32acbb59448d05 | bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b | refs/heads/master | 2023-08-29T10:56:54.228674 | 2023-07-17T04:37:06 | 2023-07-17T04:37:06 | 107,708,057 | 419 | 208 | MIT | 2023-08-02T02:10:10 | 2017-10-20T17:39:11 | Python | UTF-8 | Python | false | false | 39,695 | py | models.py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... |
7d979419396d33f274aa334faf07be535668da7c | 9a7a527b835e990ad2cc7b9e6171d2f973eba604 | /core/admin/mailu/ui/access.py | 6a923c8e4d07636e2c5c2aea861e908ac5144835 | [
"MIT"
] | permissive | Mailu/Mailu | c0157b98c4599f01d222729c27f5de3b59761232 | 683c28ea6319eae55270c5f5d7ea95cc888860e7 | refs/heads/master | 2023-09-04T04:18:35.097204 | 2023-08-30T19:16:49 | 2023-08-30T19:16:49 | 49,386,559 | 5,017 | 1,006 | NOASSERTION | 2023-09-10T10:22:29 | 2016-01-10T21:35:55 | Python | UTF-8 | Python | false | false | 3,812 | py | access.py | from mailu import models
from mailu.ui import forms
import flask
import flask_login
import functools
def permissions_wrapper(handler):
""" Decorator that produces a decorator for checking permissions.
"""
def callback(function, args, kwargs, dargs, dkwargs):
authorized = handler(args, kwargs, *da... |
818e1011fa01dcfde70720b0c5d186c63d8a6cd7 | ff7cf0f6585decdc584d381570873164a6a0bd15 | /single_inference/export.py | 7fc1ecfa8a6e69399ed4f8c9aaae306401423237 | [
"Apache-2.0"
] | permissive | FilippoAleotti/mobilePydnet | c1c599eb17769e67ee7b9da67f7e669208b4f5f5 | 9ab405806630341106514277f4d61156dd697c59 | refs/heads/v2 | 2023-04-04T06:17:54.041805 | 2021-12-10T13:16:58 | 2021-12-10T13:16:58 | 190,013,710 | 229 | 40 | Apache-2.0 | 2023-03-24T23:27:18 | 2019-06-03T13:44:30 | Swift | UTF-8 | Python | false | false | 6,790 | py | export.py | # Copyright 2020 Filippo Aleotti
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... |
d3072ada39b196d420ba272f4edc2fa15274c520 | 88efd76316e4184d76a5e0585d95fe734233942c | /yellowbrick/contrib/prepredict.py | ca20f1288131e3ea7d15d5c38d4e776ee2d6dc0b | [
"Apache-2.0"
] | permissive | DistrictDataLabs/yellowbrick | 1ecd9f33e58f0d007569904401c204a6cdeb5661 | f7a8e950bd31452ea2f5d402a1c5d519cd163fd5 | refs/heads/develop | 2023-08-03T12:25:26.511916 | 2023-07-05T18:14:28 | 2023-07-05T18:14:28 | 59,121,694 | 4,242 | 660 | Apache-2.0 | 2023-07-15T17:50:31 | 2016-05-18T14:12:17 | Python | UTF-8 | Python | false | false | 4,140 | py | prepredict.py | # yellowbrick.contrib.prepredict
# PrePredict estimator allows Yellowbrick to work with results produced by an estimator.
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Mon Jul 12 07:07:33 2021 -0400
#
# ID: prepredict.py [] benjamin@bengfort.com $
"""
PrePredict estimator allows Yellowbrick to work... |
0f02edd46975d4dab333ec178578c81b2345e9a6 | 749af8e81d5ccd2d8714a34434a9c77772df551b | /statsmodels/tsa/statespace/tests/results/results_kalman_filter.py | 2699a584c7b7de001748fbe033fadba8117b6d7f | [
"BSD-3-Clause"
] | permissive | statsmodels/statsmodels | 98ca67192c08bcc611ed3a75edaded2c7181ab98 | 01b19d7d111b29c183f620ff0a949ef6391ff8ee | refs/heads/main | 2023-09-05T13:05:49.497076 | 2023-09-01T10:54:50 | 2023-09-01T10:54:50 | 1,885,237 | 8,666 | 3,023 | BSD-3-Clause | 2023-09-13T17:51:48 | 2011-06-12T17:04:50 | Python | UTF-8 | Python | false | false | 41,500 | py | results_kalman_filter.py | """
Results for Kalman Filter
Author: Chad Fulton
License: Simplified-BSD
Notes
-----
There was an error in the loglikelihood computation in the GAUSS code from
Kim and Nelson for the Clark 1989 model, omitting the exponent term on
``2 pi''. Therefore the loglikelihood in the test results for uc_bi is instead
from t... |
7a66ed9bca3707b0d0b115187a86899c8583e4c7 | 527c6df04a8dfbf6e2b3243cbda201edcce8aab4 | /tools/data/super-resolution/vimeo90k/preprocess_vimeo90k_dataset.py | 0dc5c505b79d2d63fc54fafb5e56d19ef3eb7f73 | [
"Apache-2.0"
] | permissive | ImCharlesY/AdaInt | a29d3b7c1ebf8fd7021c21c75d5f285f4cd4649b | 5678851339dff90becb09c3dec41e7214207ccbc | refs/heads/main | 2023-05-23T17:45:58.939256 | 2022-07-18T01:28:36 | 2022-07-18T01:28:36 | 429,078,266 | 141 | 14 | Apache-2.0 | 2022-07-18T01:28:37 | 2021-11-17T14:28:13 | Python | UTF-8 | Python | false | false | 6,242 | py | preprocess_vimeo90k_dataset.py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import os.path as osp
import sys
import cv2
import lmdb
import mmcv
def make_lmdb(mode,
data_path,
lmdb_path,
train_list,
batch=5000,
compress_level=1):
"""Create lmdb for the Vim... |
ee38e816eb0d1be3956c74999143f8e14e6b4a80 | d8dbdf9af859e6b343c27a851d0ffc0d3c43fcee | /setup.py | a868cf7fab80e6c25b1645904e6865820b9438f2 | [
"ISC"
] | permissive | requests/requests-ntlm | 550440c8921065a82af2a83905974bd448ef2457 | b80f1c72eb3fd974b2576c303c49b2048ef9e80d | refs/heads/master | 2023-06-13T01:12:48.990434 | 2023-04-12T20:11:20 | 2023-04-12T20:11:20 | 6,705,902 | 305 | 87 | NOASSERTION | 2023-04-12T20:11:52 | 2012-11-15T14:26:00 | Python | UTF-8 | Python | false | false | 138 | py | setup.py | #!/usr/bin/env python
from setuptools import setup
# Kept for editable install compatibility with older setuptools/pip versions
setup()
|
9d23d4c9bd856a66c86169d92d288af929ae7e90 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_scipy_numpy/source/numpy/doc/io.py | e45bfc9b321105637054e53dbdff3e61d2ea3ac8 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 147 | py | io.py | """
=========
Array I/O
=========
Placeholder for array I/O documentation.
"""
from __future__ import division, absolute_import, print_function
|
5cc34ef49639b6658f5b9b31cf3d0a53394346c2 | 456c9520c0391acf00e976502d66e560619212bf | /server/src/transform/to_api/floor.py | c914b243f57b6921ef069aedcd715a4ff1a4d84a | [
"MIT"
] | permissive | Kruptein/PlanarAlly | 1c7cb2442bf5e87be91720c005b79a761170a454 | 2605f34747023446d13cc12e65df5f0538b36f8d | refs/heads/dev | 2023-08-31T15:57:25.976911 | 2023-08-19T09:55:11 | 2023-08-19T09:55:11 | 122,332,775 | 378 | 87 | MIT | 2023-09-08T18:50:01 | 2018-02-21T12:20:36 | TypeScript | UTF-8 | Python | false | false | 729 | py | floor.py | from ...api.models.floor import ApiFloor
from ...db.models.floor import Floor
from ...db.models.layer import Layer
from ...db.models.player_room import PlayerRoom
from ...models.role import Role
from .layer import transform_layer
def transform_floor(floor: Floor, pr: PlayerRoom) -> ApiFloor:
layer_query = floor.l... |
91cc8d7b9c100d84931892bbe62d97a557be55ba | 5ef6c8d47864f471e26b9902d61f8c687e941f05 | /src/genie/libs/parser/iosxe/tests/ShowOspfv3Interface/cli/equal/golden_2_expected.py | 4683e31b0667fee4173b7fc6c1caf4ef0100ce88 | [
"Apache-2.0"
] | permissive | CiscoTestAutomation/genieparser | 169c196558f1c1a0f0d10650876096f993224917 | b531eff760b2e44cd69d7a2716db6f866907c239 | refs/heads/master | 2023-09-03T08:56:18.831340 | 2023-08-29T22:32:02 | 2023-08-29T22:32:02 | 131,621,824 | 247 | 409 | Apache-2.0 | 2023-08-29T22:32:04 | 2018-04-30T16:51:50 | Python | UTF-8 | Python | false | false | 1,189 | py | golden_2_expected.py | expected_output = {
"interfaces": {
"TwoGigabitEthernet1/0/10": {
"int_status": "down",
"line_protocol": "down",
"link_local_address": "FE80::E75:BDFF:FE6E:DB47",
"int_id": 18,
"area": 0,
"pid": 5,
"instance_id": 0,
... |
d5491dce4068f6c631f3fec13a4d016ea1288643 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/panel_custom/test_init.py | d84b4c812c7db249d2d0c87c248031a5e2ce689c | [
"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,559 | py | test_init.py | """The tests for the panel_custom component."""
from unittest.mock import Mock, patch
from homeassistant import setup
from homeassistant.components import frontend, panel_custom
from homeassistant.core import HomeAssistant
async def test_webcomponent_custom_path_not_found(hass: HomeAssistant) -> None:
"""Test if... |
2f6b6d38f6e0c58a6e7e0a4903bd5cb790c7fcde | 64d923ab490341af97c4e7f6d91bf0e6ccefdf4b | /tensorforce/core/layers/linear.py | 549f31c11b2d1c819f6438de562632c5b78e8d54 | [
"Apache-2.0"
] | permissive | tensorforce/tensorforce | 38d458fedeeaa481adf083397829cea434d020cd | 1bf4c3abb471062fb66f9fe52852437756fd527b | refs/heads/master | 2023-08-17T17:35:34.578444 | 2023-08-14T20:14:08 | 2023-08-14T20:14:08 | 85,491,050 | 1,312 | 246 | Apache-2.0 | 2023-08-14T20:14:10 | 2017-03-19T16:24:22 | Python | UTF-8 | Python | false | false | 4,183 | py | linear.py | # Copyright 2020 Tensorforce Team. 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 la... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.