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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97e9461a9a5eb3100040ffd3cfa5140a4c87d1cb | 7a15271c7cddd199f43555469a67d26ce0f60836 | /uncertainty_baselines/models/resnet50_het_rank1_test.py | 4fac91a6404e366369ad28c9256fa4a23f53501f | [
"Apache-2.0"
] | permissive | google/uncertainty-baselines | b2c339d918bf3949ee066f9eafa6b51232a2ac3d | f5f6f50f82bd441339c9d9efbef3f09e72c5fef6 | refs/heads/main | 2023-09-02T13:59:26.355288 | 2023-08-14T16:35:22 | 2023-08-14T16:36:11 | 280,026,201 | 1,235 | 198 | Apache-2.0 | 2023-09-11T22:21:48 | 2020-07-16T01:54:32 | Python | UTF-8 | Python | false | false | 2,493 | py | resnet50_het_rank1_test.py | # coding=utf-8
# Copyright 2023 The Uncertainty Baselines 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 ap... |
b772654fbcfa4dd75eb35cf32b094c89f629ec22 | 726290bb19f6c1f621e12c3b3acf22cfcf7438a8 | /library/jvspherecontrol | 64b60f32f7613a133c3d655b1c8b74948b84dd1a | [] | no_license | ginsys/ansible-plugins | f5bd580b9d13bc895fc61d8cf9326bcb3fe1d06f | 105b2142998f2c4da20cf8c281890e163e6ffb2b | refs/heads/devel | 2020-04-12T06:23:49.779240 | 2016-09-23T08:36:48 | 2016-09-23T08:36:48 | 9,505,130 | 112 | 27 | null | 2016-09-23T08:42:24 | 2013-04-17T19:00:14 | Python | UTF-8 | Python | false | false | 16,328 | jvspherecontrol | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Serge van Ginderachter <serge@vanginderachter.be
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versi... | |
a63fb68ae1b426fcd04a586aea01c0a90939fd06 | 45826bdfebbd1d7638ab607906ac480031d6118b | /lib/vis/attention_visualizer.py | a761875f8c9afd2079b1474c5410b765758f824a | [
"MIT"
] | permissive | openseg-group/openseg.pytorch | b75cec5c95b6ff71707d8daf7806001bab89ecb3 | aefc75517b09068d7131a69420bc5f66cb41f0ee | refs/heads/master | 2023-09-06T10:19:57.749113 | 2022-08-07T09:10:20 | 2022-08-07T09:10:20 | 166,743,301 | 1,227 | 159 | MIT | 2021-07-14T06:10:44 | 2019-01-21T03:34:59 | Python | UTF-8 | Python | false | false | 10,163 | py | attention_visualizer.py | ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: RainbowSecret
## Modified from: https://github.com/AlexHex7/Non-local_pytorch
## Microsoft Research
## yuyua@microsoft.com
## Copyright (c) 2018
##
## This source code is licensed under the MIT-style license found in the
... |
c5a45719a2ad6803b0cff6a388f5d843c7e58dce | c6759b857e55991fea3ef0b465dbcee53fa38714 | /tools/nntool/nntool/quantization/multiplicative/quantizers/activation_mult.py | 0ac2028e1debb7d76ac05ab22af6cd19bfcd2de5 | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 13,589 | py | activation_mult.py | # Copyright (C) 2020 GreenWaves Technologies, SAS
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This progr... |
ced493c388c66f14df8567aafd2716d5019510b6 | 13ce98780a7e6e7e1412ae91a0fa97a91cf66a73 | /seleniumbase/console_scripts/run.py | 373a43bc376c3a4d8569163419d5e46f94d29ead | [
"MIT"
] | permissive | seleniumbase/SeleniumBase | c607312c0b8f45297088c1283150eb73ea32c553 | 63d95c42fc84bbcea415c6d8a3a201587b89c92e | refs/heads/master | 2023-09-06T05:58:07.923058 | 2023-09-02T14:14:03 | 2023-09-02T14:14:03 | 17,420,614 | 3,656 | 944 | MIT | 2023-09-13T21:12:20 | 2014-03-04T23:07:33 | Python | UTF-8 | Python | false | false | 58,036 | py | run.py | """
SeleniumBase console scripts runner
Usage:
seleniumbase [COMMAND] [PARAMETERS]
OR sbase [COMMAND] [PARAMETERS]
Examples:
sbase get chromedriver
sbase methods
sbase options
sbase commander
sbase behave-gui
sbase behave-options
sbase caseplans
sbase mkdir ui_tests
sbase mkfile new_test.py
sbase mkrec new_test.p... |
a47ab7f30f97f71f4baad7be8dfbb50740be59a6 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /tmp/bishi/荣耀.py | 3cdb4281c3b1517cec9f49998c9650d0d700118d | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | 荣耀.py | # n<=1000
# q<=1000
from collections import defaultdict
from heapq import heappop, heappush
import sys
from typing import Mapping
sys.setrecursionlimit(int(1e9))
input = lambda: sys.stdin.readline().rstrip("\r\n")
MOD = 998244353
INF = int(4e18)
n, q = map(int, input().split())
adjMap = defaultdict(l... |
4d8087fbd70cf9ad1519b80f189b6a6f7795492f | 1664bc3e55c0e006c8bbf8671a2ba0043dc0203c | /mpf/commands/both.py | 068a4705552c3a37a0e95704c0d6a087425440f3 | [
"MIT",
"CC-BY-4.0"
] | permissive | missionpinball/mpf | d426b0b1b865a138f169aaf852741f39a880edf2 | 9f90c8b1586363b65340017bfa3af5d56d32c6d9 | refs/heads/dev | 2023-07-26T21:31:11.581205 | 2023-07-15T17:06:04 | 2023-07-15T17:06:04 | 21,267,545 | 191 | 173 | MIT | 2023-09-14T06:07:45 | 2014-06-27T07:26:26 | Python | UTF-8 | Python | false | false | 839 | py | both.py | """Command which launches both the MPF core engine and MPF-MC."""
from importlib import import_module
import multiprocessing
def _start_mpf(mpf_path, machine_path, args):
module = import_module('mpf.commands.game')
module.Command(mpf_path, machine_path, args)
def _start_mc(mpf_path, machine_path, args):
... |
e58df6ab52c33ed745ceee04f48881bb86eea2da | 94b6b2df3f6db6f80b1cdbfad2fb5c17fd3b09e3 | /tests/test_utils.py | 167b56bbb9e0c7c56093ab073602c2104839558e | [
"ISC"
] | permissive | Bearle/django-private-chat | 7904e8577183ddf93abe54a4e2bef492fcc99b3c | 2b4a5ed388a814d7e8a7494c79ff58b1339b8fa9 | refs/heads/dev | 2023-08-03T11:49:30.074961 | 2021-03-21T07:02:32 | 2021-03-21T07:02:32 | 80,574,300 | 488 | 180 | ISC | 2022-12-26T21:30:17 | 2017-01-31T23:50:53 | HTML | UTF-8 | Python | false | false | 1,027 | py | test_utils.py | from test_plus.test import TestCase
from django_private_chat.utils import *
class TestUtilsFunctions(TestCase):
def setUp(self):
self.user1 = self.make_user(username="user1")
self.user2 = self.make_user(username="user2")
def test_get_dialogs_with_user(self):
self.dialog = Dialog()
... |
2d8ddcae986c3d3c891065095305741a70855002 | 276dd5dd778adefd039e6f6a71dc574386729401 | /grpc-middleware/unary-unary/server/service_test.py | fc568b12a4c97b176583829df90ed2241a469985 | [
"MIT"
] | permissive | amitsaha/python-grpc-demo | 4880e64b4b993df4b7eb96f2946b6607fb2dfa82 | 48546bfda83062a3fcb015d352fecb46346e8c92 | refs/heads/master | 2023-01-12T10:01:36.396783 | 2022-10-08T05:10:39 | 2022-10-08T05:10:39 | 101,063,881 | 145 | 52 | MIT | 2022-12-27T17:26:21 | 2017-08-22T13:07:17 | Python | UTF-8 | Python | false | false | 969 | py | service_test.py | from unittest.mock import MagicMock
import grpc
import grpc_testing
import identity_pb2
import pytest
from .server import Identity
@pytest.fixture
def test_server():
servicers = {
identity_pb2.DESCRIPTOR.services_by_name['Identity']: Identity()
}
return grpc_testing.server_from_dictionary(
... |
f0e22a840572bfb13530a5e0134c6e7964be3bc4 | 5b6ba0f288b1e2ac236af846a9bf546a63228476 | /mmtbx/suitename/suiteninput.py | bac62f1691ebb7e9bca623fdcff0b4a2b72c0753 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | permissive | cctbx/cctbx_project | 5b547b416cadbdf95cca21dace9f54272a08d98a | 7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa | refs/heads/master | 2023-08-17T17:44:05.077010 | 2023-08-16T22:40:22 | 2023-08-16T22:40:22 | 39,508,026 | 206 | 131 | NOASSERTION | 2023-09-14T17:12:55 | 2015-07-22T13:36:27 | Python | UTF-8 | Python | false | false | 6,512 | py | suiteninput.py | from __future__ import nested_scopes, generators, division, absolute_import
from __future__ import with_statement, print_function
from suitenamedefs import Suite, Residue, findBase, globals
"""
This module handles reading suites from "dangle" format files
reading residues from kinemage format files and regrouping the... |
fba9e54aa0df1f6a7c4793061cd61e91f065aba8 | c22256d3e8d566e75e8246cc8b62db798e88e9a3 | /babybuddy/middleware.py | 924952b732c0fd5021d5df4d6828a2b0bf743187 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | babybuddy/babybuddy | 20a4648397b2dbb105b09172f317764eb7ff4955 | b5163c236019f3f77667e04e4ea09621593914fe | refs/heads/master | 2023-08-25T10:14:02.341213 | 2023-08-15T16:18:06 | 2023-08-15T16:38:34 | 107,898,477 | 901 | 199 | BSD-2-Clause | 2023-08-15T16:38:35 | 2017-10-22T20:02:57 | Python | UTF-8 | Python | false | false | 5,274 | py | middleware.py | from os import getenv
from time import time
from functools import wraps
import pytz
from urllib.parse import urlunsplit, urlsplit
from django.conf import settings
from django.utils import timezone, translation
from django.contrib.auth.middleware import RemoteUserMiddleware
from django.http import HttpRequest
class ... |
5f46052efb7d06582721bd830a7cb0800469ce61 | c6759b857e55991fea3ef0b465dbcee53fa38714 | /gvsoc/runner/python/runner/stim_utils.py | 6c909d916cbbb13f84607aa3c345938882d9f430 | [
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 21,555 | py | stim_utils.py | #!/usr/bin/env python3
#
# Copyright (C) 2018 ETH Zurich, University of Bologna and GreenWaves Technologies
#
# 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/lice... |
ee2f1ef9d6ed77ffc7f768a74d552241ba342fae | 6b4a99a061d04b927178e3739a44fa3a9c57f071 | /suzieq/sqobjects/arpnd.py | 6cc39265954fb4667e112a58a20cda6c33fc2cda | [
"Apache-2.0"
] | permissive | netenglabs/suzieq | 586f2ce8c7cb9051c31bb6ef0d1cd225300a9c00 | 091d7847d6cbc568ffd4f2fa1d87e052937a5d60 | refs/heads/develop | 2023-08-26T16:56:00.575722 | 2023-07-17T09:43:49 | 2023-07-17T09:43:49 | 232,338,630 | 677 | 104 | Apache-2.0 | 2023-08-14T23:43:57 | 2020-01-07T14:11:09 | Python | UTF-8 | Python | false | false | 1,587 | py | arpnd.py | from ipaddress import ip_interface
from suzieq.sqobjects.basicobj import SqObject
from suzieq.shared.utils import (convert_macaddr_format_to_colon,
validate_macaddr)
from suzieq.shared.utils import validate_network
class ArpndObj(SqObject):
'''The object providing access to the a... |
6d70b69c909594c57e6f2ebadc3b3b64e0aee85c | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayOpenContentIotCouponQueryResponse.py | 3ba43a588667ef16c7f32de6402a91f0b82e2f58 | [
"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 | 3,343 | py | AlipayOpenContentIotCouponQueryResponse.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayOpenContentIotCouponQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenContentIotCouponQueryResponse, self).__init__()
self._btn_act = None
... |
9a1f94dd160332975e3b63be6c4230ba9bbce6e4 | 4785640a76cf16f5349f66963889e78d31e48322 | /tests/conftest.py | 927c101a97a25b8681f30581ca399203fcc5d9d5 | [
"MIT"
] | permissive | dmytrostriletskyi/accessify | 7e363614a3107d5c290815c4c5a631ac44b770c2 | 6b7cf8657ffe18cd6a43c6cfb73b071084f0331e | refs/heads/develop | 2023-08-06T02:21:14.350956 | 2019-04-16T23:42:11 | 2019-04-16T23:42:11 | 173,346,507 | 119 | 9 | MIT | 2023-07-31T18:23:12 | 2019-03-01T18:01:34 | Python | UTF-8 | Python | false | false | 388 | py | conftest.py | """"
Provide configurations for testing with pytest.
"""
import os
import pytest
@pytest.fixture
def enable_accessify():
"""
Enabling the accessify.
"""
try:
del os.environ['DISABLE_ACCESSIFY']
except KeyError:
pass
@pytest.fixture
def disable_accessify():
"""
Disabling ... |
3270e4bcb2af2d0854097774de097cd843fb08a6 | f3806d9fb54773908cd9704121a543b114470aca | /angr/angrdb/models.py | 64ab85f30682736a45236497d944a90b9cc4631a | [
"BSD-2-Clause"
] | permissive | angr/angr | 8ae95fceca51b0a001de56477d984dd01193ac1d | 37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd | refs/heads/master | 2023-08-17T03:15:21.007865 | 2023-08-15T18:44:57 | 2023-08-15T18:44:57 | 40,328,394 | 7,184 | 1,306 | BSD-2-Clause | 2023-09-14T20:14:23 | 2015-08-06T21:46:55 | Python | UTF-8 | Python | false | false | 4,750 | py | models.py | from sqlalchemy import Column, Integer, String, Boolean, BLOB, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class DbInformation(Base):
"""
Stores information related to the current database. Basically a key-value store.
... |
47fc75509dba04ba134f54743cc9097d571e9929 | 3bc139860403ebd05e278c95fca26e24d5189271 | /chia/util/check_fork_next_block.py | 8ae6061899a8737d39ace74d389b0a53180fb0f0 | [
"Apache-2.0"
] | permissive | Chia-Network/chia-blockchain | a09183b7240b159419b45f8373a41a1062f77ef3 | d966f3f9e63aed52dbd73544164202a9f11ce3d2 | refs/heads/main | 2023-08-31T09:37:13.741283 | 2023-08-30T18:27:22 | 2023-08-30T18:27:22 | 197,153,676 | 12,936 | 2,474 | Apache-2.0 | 2023-09-14T19:08:51 | 2019-07-16T08:32:40 | Python | UTF-8 | Python | false | false | 1,408 | py | check_fork_next_block.py | from __future__ import annotations
from typing import Awaitable, Callable, List
from chia.consensus.blockchain_interface import BlockchainInterface
from chia.server.ws_connection import WSChiaConnection
from chia.util.ints import uint32
async def check_fork_next_block(
blockchain: BlockchainInterface,
fork_... |
2a71c3b3753a02a0656394e5c137366a28d29227 | 3750387e046dfd287d02decc846860fae874bf3e | /tests/defaults_list/test_defaults_list.py | 3c9785d392e2d2f3b745880696e9ae9f86df4ccb | [
"MIT"
] | permissive | facebookresearch/hydra | baf152caa30cd1d8a7e76ba2111fb9a49ecbe18c | b5ff66134f268164a20712d18b1230f4dd737444 | refs/heads/main | 2023-08-28T02:33:18.063795 | 2023-07-25T17:58:43 | 2023-07-25T17:58:43 | 191,632,914 | 7,667 | 692 | MIT | 2023-09-11T15:38:52 | 2019-06-12T19:33:15 | Python | UTF-8 | Python | false | false | 65,414 | py | test_defaults_list.py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import re
from textwrap import dedent
from typing import Any, List, Optional
from pytest import mark, param, raises, warns
from hydra import version
from hydra._internal.defaults_list import create_defaults_list
from hydra.core.default_element imp... |
b82d3e6fa28add418c5d1e8f68a5672d2ef7c026 | 1dbbb05b30d27c6419b9f34eea3b9a47f92582a0 | /projects/safety_bench/utils/wrapper_loading.py | 088714f26d84a64e86cb8ec87bb3633d72dabde0 | [
"MIT"
] | permissive | facebookresearch/ParlAI | 815334323d0ebef51bf9837336fe3eef6fe1655d | e1d899edfb92471552bae153f59ad30aa7fca468 | refs/heads/main | 2023-08-31T22:20:45.918129 | 2023-08-14T19:39:56 | 2023-08-14T19:39:56 | 89,266,735 | 10,943 | 2,395 | MIT | 2023-09-13T23:07:40 | 2017-04-24T17:10:44 | Python | UTF-8 | Python | false | false | 1,439 | py | wrapper_loading.py | #!/usr/bin/env python3
# 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.
"""
Utilities for registering and loading model wrappers for safety unit and integration
tests.
"""
import projects.safe... |
c41f0939347f3652aa0254aed93e9ce6ba78fa6e | e61e664d95af3b93150cda5b92695be6551d2a7c | /vega/networks/pytorch/customs/modnas/contrib/arch_space/activations/torch.py | ee5a9afcf1213009b0473c970a0862eb215582ec | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/vega | 44aaf8bb28b45f707ed6cd4e871ba70fc0c04846 | 12e37a1991eb6771a2999fe0a46ddda920c47948 | refs/heads/master | 2023-09-01T20:16:28.746745 | 2023-02-15T09:36:59 | 2023-02-15T09:36:59 | 273,667,533 | 850 | 184 | NOASSERTION | 2023-02-15T09:37:01 | 2020-06-20T08:20:06 | Python | UTF-8 | Python | false | false | 491 | py | torch.py | """Torch activation functions."""
import torch.nn
from modnas.registry.arch_space import register
modules = [
'ELU',
'Hardshrink',
'Hardtanh',
'LeakyReLU',
'LogSigmoid',
'PReLU',
'ReLU',
'ReLU6',
'RReLU',
'SELU',
'CELU',
'Sigmoid',
'Softplus',
'Softshrink',
'... |
0020804a721d23ee6d88ccf7fcf2819bb1af6bc3 | b74320ad439e37dfa48cd8db38dab3b7a20a36ff | /src/diffusers/pipelines/audio_diffusion/__init__.py | 58554c45ea52b9897293217652db36fdace7549f | [
"Apache-2.0"
] | permissive | huggingface/diffusers | c82beba1ec5f0aba01b6744040a5accc41ec2493 | 5eeedd9e3336882d598091e191559f67433b6427 | refs/heads/main | 2023-08-29T01:22:52.237910 | 2023-08-28T18:16:27 | 2023-08-28T18:16:27 | 498,011,141 | 17,308 | 3,158 | Apache-2.0 | 2023-09-14T20:57:44 | 2022-05-30T16:04:02 | Python | UTF-8 | Python | false | false | 82 | py | __init__.py | from .mel import Mel
from .pipeline_audio_diffusion import AudioDiffusionPipeline
|
d77aa2f95aec78440db0f8a808431a72cbdec647 | 6564f42640e11689c2ddb6b92325afe6fddc6a6f | /cumulusci/salesforce_api/tests/test_metadata.py | 7e578a34bba22eb372a42d7a5831dac265b27230 | [
"LicenseRef-scancode-free-unknown"
] | permissive | SFDO-Tooling/CumulusCI | 32d4509fa8a36905cfc84fd6283403fd7f4b78c4 | 9ccf3c9566f78c6e9102ac214db30470cef660c1 | refs/heads/main | 2023-08-18T04:53:55.733027 | 2023-08-11T20:52:08 | 2023-08-11T20:52:08 | 15,592,459 | 226 | 134 | BSD-3-Clause | 2023-09-14T05:09:26 | 2014-01-02T20:01:31 | Python | UTF-8 | Python | false | false | 36,327 | py | test_metadata.py | import datetime
import http.client
import io
from collections import defaultdict
from xml.dom.minidom import parseString
import pytest
import responses
from requests import Response
from cumulusci.core.config import TaskConfig
from cumulusci.core.exceptions import ApexTestException, CumulusCIException
from cumulusci.... |
c3f0792a52170c9362dcca6662e64802152b586a | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/illuminate/Integrations/illuminate/illuminate_test.py | 5727366cbf84aa362cc57eb111ebd816da744fbe | [
"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 | 6,648 | py | illuminate_test.py | import pytest
from illuminate import *
MOCK_SERVER: str = 'mock.com'
MOCK_USER: str = 'mock'
MOCK_PASS: str = 'mock'
MOCK_INDICATOR: str = 'mock-indicator'
BASE_MOCK_JSON: dict = {
'type': 'domain',
'value': {
'name': f'{MOCK_INDICATOR}',
'classification': 'U'
},
'description': None,
... |
57dc2441d55c47c007ac919e04d7762d8a3791db | 84724b34b3f1e84dc53cbca5f3660590dbc34a9f | /nova/tests/unit/policies/test_aggregates.py | 6ac7b6e010f1ab5ab46009350dd8fcd6873ace4a | [
"Apache-2.0"
] | permissive | openstack/nova | 2c24b64e3677595611715bae6dda14edd3f90a24 | 065c5906d2da3e2bb6eeb3a7a15d4cd8d98b35e9 | refs/heads/master | 2023-08-28T15:10:05.126314 | 2023-08-25T20:31:27 | 2023-08-25T20:31:27 | 790,031 | 2,287 | 2,320 | Apache-2.0 | 2023-07-08T02:10:29 | 2010-07-22T02:04:27 | Python | UTF-8 | Python | false | false | 7,819 | py | test_aggregates.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
# d... |
8d4bf1ff81ca7c5eea3c19480f6b18e00cc2a7d4 | 2d05050d0ada29f7680b4df20c10bb85b0530e45 | /vta/python/vta/program_bitstream.py | a7da89d2f637082e1f7ef1b22e85a3c8b5b70d99 | [
"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 | 2,930 | py | program_bitstream.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... |
24fb50853a7057ddfed1dfde8bf8a2e08c723ad9 | 8d5df43c1611a709ddf19d8b23b8763eb37b4e8f | /tests/unit/blocking_channel_tests.py | 40b8fcc5cd74af9735c7d7e918c2fc2be76be326 | [
"BSD-3-Clause"
] | permissive | pika/pika | 86ed56bec6aa813ffd8a7037bbef756a9388533e | f4d8f8ff02a4da4653749c86161b7d52e53f73fe | refs/heads/main | 2023-09-03T18:19:30.231575 | 2023-07-28T23:01:02 | 2023-07-29T21:16:38 | 342,869 | 3,040 | 919 | BSD-3-Clause | 2023-08-03T21:20:50 | 2009-10-19T23:22:02 | Python | UTF-8 | Python | false | false | 4,562 | py | blocking_channel_tests.py | # -*- coding: utf-8 -*-
"""
Tests for pika.adapters.blocking_connection.BlockingChannel
"""
from collections import deque
import unittest
from unittest import mock
from pika.adapters import blocking_connection
from pika import channel
BLOCKING_CHANNEL = 'pika.adapters.blocking_connection.BlockingChannel'
BLOCKING_CO... |
5c4d03c3650d0bc5810a4c3f80059c270254b63f | 65078b8087c2040cf0188e2550ea298d20518f62 | /docs/source/conf.py | 5e706337bdb5a7d2c2945b0c22d048a1e5d744c8 | [
"Apache-2.0"
] | permissive | bentoml/BentoML | 20ab6f8351b1c5cd116d6d60a28098246a1581b3 | 4a14f073d8a3e700aff29483b17ea053058c0c63 | refs/heads/main | 2023-09-05T16:03:08.909692 | 2023-09-04T18:54:33 | 2023-09-04T18:54:33 | 178,976,529 | 5,712 | 732 | Apache-2.0 | 2023-09-14T20:07:54 | 2019-04-02T01:39:27 | Python | UTF-8 | Python | false | false | 5,623 | py | conf.py | from datetime import datetime
import importlib.metadata
# -- Project information -----------------------------------------------------
project = "BentoML"
copyright = f"2022-{datetime.now().year}, bentoml.com"
author = "bentoml.com"
version = importlib.metadata.version("bentoml")
# -- General configuration -------... |
e75f72413fc731c0b9763fe95dbed3f3febd8b89 | 019f03d6713a2bc5344b644aeb5ebe70aaf7cfd0 | /src/super_gradients/training/losses/__init__.py | f14781c2a2a391b0e576dc28c898d3188562bcea | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | Deci-AI/super-gradients | 6f52cd15bc2f9f39e3cdc6067292b6512aba5dd0 | 7240726cf6425b53a26ed2faec03672f30fee6be | refs/heads/master | 2023-08-25T17:47:02.595029 | 2023-08-24T11:50:50 | 2023-08-24T11:50:50 | 432,652,408 | 3,237 | 331 | Apache-2.0 | 2023-09-14T11:24:46 | 2021-11-28T07:58:02 | Jupyter Notebook | UTF-8 | Python | false | false | 1,570 | py | __init__.py | from super_gradients.training.losses.focal_loss import FocalLoss
from super_gradients.training.losses.kd_losses import KDLogitsLoss
from super_gradients.training.losses.label_smoothing_cross_entropy_loss import LabelSmoothingCrossEntropyLoss
from super_gradients.training.losses.r_squared_loss import RSquaredLoss
from s... |
9fb1729a3ef5cbe470a2be16519b766ac975d981 | 3c41443364da8b44c74dce08ef94a1acd1b66b3e | /addons/figshare/tests/test_models.py | 19c51f35d6ac62ba4ea0bc20c90c84256df89062 | [
"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,818 | py | test_models.py | import mock
from nose.tools import assert_false, assert_equal
import pytest
import unittest
from tests.base import get_default_metaschema
from framework.auth import Auth
from osf_tests.factories import DraftRegistrationFactory
from addons.figshare.tests.factories import (
FigshareUserSettingsFactory,
Figshar... |
3804adbed7e91f46e227a5e090c0a67e450461b3 | ce7d8409dc7da020d82e479ae457f2b9d598b44d | /vel/internals/tests/test_provider.py | 4f49e67548a96c6768f9907838d1b44090956d22 | [
"MIT"
] | permissive | MillionIntegrals/vel | 42f9aa241b0e07f51363e97630e3a0b4750f1e5e | f3ce7da64362ad207f40f2c0d58d9300a25df3e8 | refs/heads/master | 2022-12-24T12:58:03.377520 | 2019-10-24T19:04:53 | 2019-10-24T19:04:53 | 132,808,324 | 280 | 37 | MIT | 2022-12-08T04:50:05 | 2018-05-09T20:16:48 | Python | UTF-8 | Python | false | false | 3,722 | py | test_provider.py | import os
import pytest
import vel.internals.provider as v
import vel.internals.parser as p
import vel.exceptions as e
def data_function(a, b):
return a + b
def test_simple_instantiation():
provider = v.Provider({
'a': 1,
'b': 2,
})
assert provider.instantiate_from_data(1) == 1
... |
298c81e89a677cb4d67401ff760b05a53c028f9e | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chromecast/media/DEPS | 993d5acd0363ce9707eced28cd3da70aca4744d2 | [
"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 | 1,077 | DEPS | include_rules = [
"+chromecast/common/mojom",
"+chromecast/external_mojo",
"+chromecast/net/socket_util.h",
"+content/public/renderer",
"+media/audio",
"+media/base",
"+media/cdm",
"+media/filters",
"+media/mojo/mojom",
"+mojo/core/embedder/embedder.h",
"+mojo/public/cpp/bindings",
"+mojo/public... | |
2171fd5eae1d8eaad1a2252a9e0d0ece5d9b553f | fce81b804cae23f525a5ad4370b684bf0dc531a5 | /numpy/ma/tests/test_subclassing.py | e3c88525371edbf742d4e2e9c7401b60b29cd740 | [
"Zlib",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | numpy/numpy | ba2abcc1d2d46affbb6aabe5aed6407b4b57507e | dc2ff125493777a1084044e6cd6857a42ee323d4 | refs/heads/main | 2023-09-05T10:10:52.767363 | 2023-09-04T18:03:29 | 2023-09-04T18:03:29 | 908,607 | 25,725 | 11,968 | BSD-3-Clause | 2023-09-14T21:26:09 | 2010-09-13T23:02:39 | Python | UTF-8 | Python | false | false | 16,967 | py | test_subclassing.py | # pylint: disable-msg=W0611, W0612, W0511,R0201
"""Tests suite for MaskedArray & subclassing.
:author: Pierre Gerard-Marchant
:contact: pierregm_at_uga_dot_edu
:version: $Id: test_subclassing.py 3473 2007-10-29 15:18:13Z jarrod.millman $
"""
import numpy as np
from numpy.lib.mixins import NDArrayOperatorsMixin
from n... |
a019c95418ae6f9bc4427510d6f06954d176d9df | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /dts/airbyte/airbyte-integrations/connectors/source-braintree/source_braintree/streams.py | 418715ecaf0f72a314ef9a5a4502d0b8976a0e76 | [
"MIT",
"Elastic-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | alldatacenter/alldata | 7bc7713c9f1d56ad6b8e59ea03206d1073b7e047 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | refs/heads/master | 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 | Apache-2.0 | 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null | UTF-8 | Python | false | false | 7,104 | py | streams.py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from abc import ABC, abstractmethod
from datetime import datetime
from typing import Any, Generator, Iterable, List, Mapping, Optional, Union
import backoff
import braintree
import pendulum
from airbyte_cdk.models import SyncMode
from airbyte_cdk.sources.st... |
54484bc47ba858de8a007a744797e9dfe6c03573 | 3150bbbd16374f0d39c822d536da12745664a38b | /setup.py | ed00501f22c991b33f18666e3bfe7844c5d940fd | [
"Apache-2.0"
] | permissive | VirusTotal/yara-python | 9a97ddd62c8dbbe265b634c3473bc77fb6f9cf08 | 956db14f05c2bd17d01b78785de1b70e3e8b5315 | refs/heads/master | 2023-08-28T10:52:51.346332 | 2023-08-23T13:41:15 | 2023-08-23T13:41:15 | 42,300,237 | 571 | 188 | Apache-2.0 | 2023-09-13T14:26:08 | 2015-09-11T09:37:35 | C | UTF-8 | Python | false | false | 14,575 | py | setup.py | #
# Copyright (c) 2007-2022. The YARA 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 ap... |
7c3a69de7acecfadd3e42c4c79d24401d272d9d6 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/RenameFunctionShadowingBuiltins_after.py | 4c318970ef8cc3a090c80e5f3454e08507f806e0 | [
"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 | 72 | py | RenameFunctionShadowingBuiltins_after.py | def A_NEW_NAME(x):
return x
def f():
return A_NEW_NAME('foo')
|
2b5debd23aaa745599108e892f49907b0bc52d75 | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/pytests/unit/states/test_pip.py | 1a71be86ac10d852c43716421a36db95aeb07bcc | [
"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,648 | py | test_pip.py | """
:codeauthor: Eric Graham <eric.graham@vantagepnt.com>
"""
import logging
import pytest
import salt.states.pip_state as pip_state
from salt.exceptions import CommandExecutionError
from tests.support.mock import MagicMock, patch
@pytest.fixture
def configure_loader_modules():
return {pip_state: {"__env__"... |
e7dfbcf19b4325d375caade56bef5a02863d678c | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/random/test_binary_sensor.py | 3bcf43ae22e42409cfffa9a5e78a0fbd29345d88 | [
"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 | 1,286 | py | test_binary_sensor.py | """The test for the Random binary sensor platform."""
from unittest.mock import patch
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
async def test_random_binary_sensor_on(hass: HomeAssistant) -> None:
"""Test the Random binary sensor."""
config = {"binary_... |
733ad269a840253ba20e007fd1022d21c348dbb4 | ba9d3192424dd9417a2d079e2df3fbf7536456a1 | /tests/impl/translators/junos/openconfig_vlan/vlans.py | abd36305cca9a836bf4b3dd8f89e51b1538f5262 | [
"Apache-2.0"
] | permissive | networktocode/yangify | 45b0b0525f264418e36d1aa71e2b7cccbc395bfc | 9b431e4be268708aeeaf91360f6b3dfef57f18d8 | refs/heads/develop | 2021-11-08T07:22:29.883883 | 2021-09-16T14:20:28 | 2021-09-16T14:20:28 | 185,183,920 | 117 | 29 | Apache-2.0 | 2021-09-16T14:20:29 | 2019-05-06T11:32:24 | Python | UTF-8 | Python | false | false | 1,548 | py | vlans.py | from typing import Optional
from lxml import etree
from yangify.translator import Translator, TranslatorData, unneeded
class VlanConfig(Translator):
vlan_id = unneeded
def name(self, value: Optional[str]) -> None:
if value:
etree.SubElement(self.yy.result, "name").text = value
e... |
8ca986cb264d96969c9a6a28624b6d5c6b7b2107 | fa89ef4a8eb06dc2015d7116637f230b6891eb8d | /refinery/units/formats/archive/xtnode.py | cf86ba8c55a93c6ab0d44a286ee745914d84ca05 | [
"BSD-3-Clause"
] | permissive | binref/refinery | f61878d9fddf616fee8edf226df22f6a35238940 | 4c7c3717ae45543b9d7bae60a4af4c00993cf719 | refs/heads/master | 2023-08-17T17:02:34.357138 | 2023-08-14T08:43:05 | 2023-08-14T08:43:05 | 228,019,736 | 439 | 48 | NOASSERTION | 2023-09-11T10:26:02 | 2019-12-14T12:32:06 | Python | UTF-8 | Python | false | false | 8,588 | py | xtnode.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import annotations
from typing import Iterable, Optional
import re
import json
from pathlib import Path
from refinery.units.formats.archive import Arg, ArchiveUnit, UnpackResult
from refinery.units.encoding.esc import esc
from refinery.lib.st... |
21d122cc17fd93ace25529d683465558fcdd461d | fa3f6d4e9169fb95f828013d179d03accdff381b | /grr/client/grr_response_client/unprivileged/echo_server.py | c671366d4d48f65247e912da85a2eb500c90f3b1 | [
"Apache-2.0"
] | permissive | google/grr | c51a2bd251ed2f7adae538541990a2cc01fdcc8c | 44c0eb8c938302098ef7efae8cfd6b90bcfbb2d6 | refs/heads/master | 2023-09-05T20:02:36.823914 | 2023-07-26T09:34:09 | 2023-07-26T09:34:09 | 14,909,673 | 4,683 | 927 | Apache-2.0 | 2023-07-26T09:34:10 | 2013-12-04T00:17:53 | Python | UTF-8 | Python | false | false | 716 | py | echo_server.py | #!/usr/bin/env python
"""Simple echo server for testing.
The server receives data and an attachment and replies with:
* data + "x"
* attachment + "x"
"""
from absl import app
from grr_response_client.unprivileged import communication
def Handler(connection: communication.Connection):
while True:
recv_result... |
40a5807290dbee119b45c14ed1b6a782a204616f | 99d5e10013778f3822b3dac404db04156ad99acb | /test/test_util/test_ema_logging.py | 81e62e0470ff0510cc14c172068bcc83544d1863 | [
"BSD-3-Clause"
] | permissive | quaquel/EMAworkbench | 0e25b9caa86fb3c41376b14ad6f70911aec2a594 | 9d13fb6fc8e8e3fc8cc693102f85966c5876f9ac | refs/heads/master | 2023-08-10T08:23:48.007445 | 2023-07-18T10:54:43 | 2023-07-18T10:54:43 | 5,109,457 | 102 | 86 | BSD-3-Clause | 2023-09-12T06:51:17 | 2012-07-19T12:18:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,575 | py | test_ema_logging.py | """
Created on Jul 28, 2015
.. codeauthor:: jhkwakkel <j.h.kwakkel (at) tudelft (dot) nl>
"""
import logging
import unittest
from ema_workbench.util import ema_logging
def tearDownModule():
ema_logging._logger = None
ema_logger = logging.getLogger(ema_logging.LOGGER_NAME)
ema_logger.handlers = []
cla... |
fa5c11bcd919f3d9e6b81beb1ba91a157176d7a3 | 576764ad37667f8da2c63aaa1a9f96da211795a6 | /forte/data/readers/sst2_reader.py | 97c00890f46b65272dd9654bce70bcc3b3d5eff6 | [
"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 | 9,618 | py | sst2_reader.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 ... |
a8ef7f1aa659cc52218ae12cf586032cdf7c3fbc | a2b20597759990445081057d35d113434cfcf970 | /stubs/typeshed/typeshed/stubs/pywin32/win32com/mapi/emsabtags.pyi | d38198bb2755f22133a95de2c9d3669ce777f5ab | [
"MIT",
"Apache-2.0"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 41 | pyi | emsabtags.pyi | from win32comext.mapi.emsabtags import *
|
588ee72047245275a7507e5427ac0deb69c69f3e | a7c0cc71e6da4615eca2c3d75117dad5b8dce8d3 | /CTFd/__init__.py | f950fe68736bfd7425815272b4b0553fd8a4370d | [
"Apache-2.0"
] | permissive | CTFd/CTFd | 4b75207aeea3ed8d761cc6269c27a070693ab3ec | d8f0b9e602fca109cabe1895e847d39a46ce7429 | refs/heads/master | 2023-09-01T19:19:19.767862 | 2023-08-29T18:46:53 | 2023-08-29T18:46:53 | 28,681,142 | 4,593 | 2,273 | Apache-2.0 | 2023-09-13T18:24:37 | 2015-01-01T05:36:55 | Python | UTF-8 | Python | false | false | 11,714 | py | __init__.py | import datetime
import os
import sys
import weakref
from distutils.version import StrictVersion
import jinja2
from flask import Flask, Request
from flask_babel import Babel
from flask_migrate import upgrade
from jinja2 import FileSystemLoader
from jinja2.sandbox import SandboxedEnvironment
from werkzeug.middleware.pro... |
c45c2ae2b178ccc05f5645da47c371c23713e31a | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_directory_migration.py | 3230a0ecc666ffba2784a07527f81ee9967f03ab | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 8,625 | py | test_directory_migration.py | # Copyright (c) 2020 PaddlePaddle 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 app... |
e27520f1532b9871115b0ed5f62e3ccc2f33171a | da5bcb4a92a802dedf84a74dc2ee4c08cb744656 | /will/scripts/generate_will_project.py | 607570f238ec171e2115ce47509eb3a91b7c158e | [
"MIT"
] | permissive | skoczen/will | 21981ba1213a49b650d661feb59d69719918446c | 27a23ce47e3ec11b94f3355c2d2ee94c1958679c | refs/heads/master | 2023-08-16T00:03:47.974919 | 2021-04-13T10:31:26 | 2021-04-13T10:31:26 | 14,900,247 | 359 | 186 | MIT | 2023-01-15T17:34:57 | 2013-12-03T17:08:08 | Python | UTF-8 | Python | false | false | 7,429 | py | generate_will_project.py | #!/usr/bin/env python
import argparse
import os
import stat
import sys
from six.moves import input
from clint.textui import puts
from will.utils import print_head
SERVICE_BACKENDS = ('Slack', 'HipChat', 'Rocket.chat', 'Shell')
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
sys.path.append(PRO... |
558c40adc414e3d9bb4d4dfeebd3cb2fc84229f3 | 57bc404899f914eeef7ba298bf1e99883c864a26 | /trie/trie.py | ad45dd8be0e79d49d21a7b994c83ea6fa18b410d | [
"MIT"
] | permissive | priyankchheda/algorithms | 547f19193273ac6a424fe4ba5e1375cc02ea4f60 | 38a5de72db14ef2664489da9857b598d24c4e276 | refs/heads/master | 2023-08-17T17:10:10.044940 | 2022-04-16T13:52:37 | 2022-04-16T13:52:37 | 133,684,565 | 195 | 38 | MIT | 2023-08-16T10:26:48 | 2018-05-16T15:10:56 | C++ | UTF-8 | Python | false | false | 3,075 | py | trie.py | """ Trie is an efficient information reTrieval data structure. Using Trie,
search complexities can be brought to optimal limit (key length). If we
store keys in binary search tree, a well balanced BST will need time
proportional to M * log N, where M is maximum string length and N is
number of keys in t... |
5de91cae801439460225622d501094582f122068 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Skimage_numpy/source/skimage/io/collection.py | 4f3ee264700cefd29f9a7c9bb323d0d448432258 | [
"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 | 13,088 | py | collection.py | """Data structures to hold collections of images, with optional caching."""
from __future__ import with_statement
import os
from glob import glob
import re
from copy import copy
import numpy as np
import six
from PIL import Image
from ..external.tifffile import TiffFile
__all__ = ['MultiImage', 'ImageCollection',... |
e4711460a7f11cf7d39e3a1a833c1fdf622f55a5 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-hadoop-common/tests_multinode/python/pyunit_kmeans.py | e7e25c6930adeff144c076d1a0463642fed5c793 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,453 | py | pyunit_kmeans.py | import sys
import os
sys.path.insert(1, os.path.join("..", "..", "..", "h2o-py"))
from tests import pyunit_utils
import h2o
from h2o.estimators.kmeans import H2OKMeansEstimator
# Purpose: This tests k-means on a large dataset.
def hdfs_kmeans():
hdfs_name_node = pyunit_utils.hadoop_namenode()
hdfs_iris_file ... |
ee8c9939f17995f54aa11b7a428a23e8e0435364 | 14c1ab5e883b05541b71fa5182b64cd78c45a418 | /pyBN/learning/structure/_tests/test_pc.py | 8a0ebdb32c48d581c4465bcd02c3c9cc49ce9d09 | [
"MIT"
] | permissive | ncullen93/pyBN | e4e8bedf91655ae1dd525fb167156abcd9d53da2 | fe5c49d6656df6c516e7269dd7e8afc14522345b | refs/heads/master | 2023-08-18T15:00:24.498986 | 2023-08-16T00:15:12 | 2023-08-16T00:15:12 | 49,839,196 | 142 | 62 | null | 2016-11-17T14:57:28 | 2016-01-17T22:43:32 | Python | UTF-8 | Python | false | false | 936 | py | test_pc.py | """
********
UnitTest
PC
********
"""
__author__ = """Nicholas Cullen <ncullen.th@dartmouth.edu>"""
import unittest
import os
from os.path import dirname
import numpy as np
from pyBN.structure_learn.path_condition import pc
class PCTestCase(unittest.TestCase):
def setUp(self):
self.dpath = os.path.join(dirname... |
3d9313728c1862332dd05a646546537d9cccf0cc | 360328d098a74581d0822fba489dd15e0d4e7ab3 | /src/richie/plugins/lti_consumer/api.py | b3b8b6242e182a8cbe7c19a8657cfce0737686ca | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | openfun/richie | 0cef545486267bfb40e75e5fb2ce2a74f85a53ff | f2d46fc46b271eb3b4d565039a29c15ba15f027c | refs/heads/master | 2023-08-31T23:51:37.714179 | 2023-08-29T15:25:04 | 2023-08-29T15:48:39 | 111,388,461 | 238 | 96 | MIT | 2023-09-13T12:48:53 | 2017-11-20T09:23:40 | Python | UTF-8 | Python | false | false | 2,752 | py | api.py | """Declare API endpoints for LTI Consumer Plugin"""
from django.core.cache import caches
from django.core.cache.backends.base import InvalidCacheBackendError
from django.http import JsonResponse
from django.utils import translation
from rest_framework import viewsets
from rest_framework.decorators import action
from r... |
6d8c6a9062b79895f78535d07e7f241929bf988a | 3ca67d69abd4e74b7145b340cdda65532f90053b | /programmers/난이도별/level01.로또의_최고_순위와_최저_순위/6047198844.py | a4493013cd74affc00c61313c9a980f9e8c0f652 | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 192 | py | 6047198844.py | def solution(lottos, win_nums):
cnt = 0
for l in lottos:
cnt += l in win_nums
high = min(6,7-cnt-lottos.count(0))
low = min(6,7-cnt)
return [high,low] |
e4ea5cb715d7933dcd9a1586f6229362abaaa909 | 617f9a5c9ff8e710de7b43c031cdd97a671c68c3 | /tests/core/test_neuron.py | 4e1fbf73fa7730019bb417c833c2ce52685c3c5f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BlueBrain/NeuroM | e136fc4a36fe1b5d8e590179dc3d8a111d6e5282 | 34d202cfb95d32cd985a423b65349aa1b01957d6 | refs/heads/master | 2023-08-17T18:42:43.125992 | 2023-08-08T07:14:38 | 2023-08-08T07:14:38 | 34,906,350 | 106 | 75 | BSD-3-Clause | 2023-09-14T10:58:38 | 2015-05-01T14:21:43 | Python | UTF-8 | Python | false | false | 5,198 | py | test_neuron.py | # Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... |
6f34696b55975aaffd5c37c590dd1c7ca606420a | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /net-p2p/py-ed2k-tools/files/patch-temp__summary.py | a18da6eceb9647603ff7c35d56cd70f1a5b76dc6 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | Python | false | false | 4,245 | py | patch-temp__summary.py | --- temp_summary.py.orig 2003-05-06 11:53:14 UTC
+++ temp_summary.py
@@ -1,12 +1,9 @@
#!/usr/bin/python
from ed2k_metutils import *
import os
-import stat
+import unicodedata
-# I'm really surprised there's no easy way to get the terminal
-# width in python... :-/ I can't do external invocations to
-# stty, etc, ... |
548f985582458c5cb2faa18279b31dd315746ed4 | 78e9d3d12e96fd37817e510b7b272d0d08ec4053 | /scripts/data_generation/create_flow.py | 5eed2235935d51ce334fc995df6f34eb5796da57 | [] | no_license | ly015/intrinsic_flow | 15e3926ccc269d3f37d37ceb74d1a3b2ff41823c | 94ea8f0b6c2e9d6380a29055eaa5b0068e894a25 | refs/heads/master | 2022-01-31T05:58:35.091723 | 2022-01-17T03:58:21 | 2022-01-17T03:58:21 | 178,152,311 | 158 | 26 | null | 2022-01-17T03:58:22 | 2019-03-28T07:45:22 | Python | UTF-8 | Python | false | false | 9,482 | py | create_flow.py | from __future__ import division, print_function
import util.io as io
import numpy as np
import tqdm
from misc import flow_util
import imageio
import cv2
# Load definition of SMPL_faces
SMPL_Faces = np.load('scripts/3d/smpl_faces.npy')
def calc_correspondence_from_smpl_parallel():
from multiprocessing import Proc... |
db227d638971bd8cc263e5af2c8dff6b9c29e600 | 05643b9b4d20db912c3dbfbc191cadea3143016c | /instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/constants.py | b18f93364f31b23f4727bcd799697c495225be53 | [
"Apache-2.0"
] | permissive | open-telemetry/opentelemetry-python-contrib | 35566cd088aa0b23ca977109fcd435ee480784b9 | 0871dd455c0adfa125a2f258a0b55c47a5da5227 | refs/heads/main | 2023-08-26T07:30:40.212226 | 2023-08-21T16:42:12 | 2023-08-21T16:42:12 | 220,524,743 | 476 | 401 | Apache-2.0 | 2023-09-14T21:36:33 | 2019-11-08T18:23:43 | Python | UTF-8 | Python | false | false | 5,411 | py | constants.py | # Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... |
fab44f69f556280346df672490335a4f7692f46f | d1f15554df2d5c0f74ddbcba6e870359841f682b | /wagtail/snippets/tests/test_usage.py | 7f4f8322b8c346de5de8434a25e51d710acbba72 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | wagtail/wagtail | bd405f89b86e0c625fef0685fd6bfba41cf5cbfc | 06a7bc6124bf62675c09fbe0a4ed9bbac183e025 | refs/heads/main | 2023-09-04T06:22:51.601208 | 2023-09-01T15:22:00 | 2023-09-01T15:22:00 | 16,479,108 | 12,974 | 3,580 | BSD-3-Clause | 2023-09-14T10:45:04 | 2014-02-03T12:41:59 | Python | UTF-8 | Python | false | false | 8,018 | py | test_usage.py | from io import StringIO
from django.contrib.admin.utils import quote
from django.contrib.auth.models import Permission
from django.core import management
from django.test import TestCase
from django.urls import reverse
from wagtail.models import Page, ReferenceIndex
from wagtail.test.testapp.models import (
Adver... |
926fb0e2d80701bb10f57ac28098fb8eba0cd091 | 450201e3dac529d165a0bf96c0cd31b644d53323 | /mistral/tests/unit/policies/test_workflows.py | 2bfa094fc0e334c9a16fc598c94c3c812e40a22c | [
"Apache-2.0"
] | permissive | openstack/mistral | c840b971c89a054f4953831480abc4d266df307e | 7baff017d0cf01d19c44055ad201ca59131b9f94 | refs/heads/master | 2023-08-20T18:42:20.116390 | 2023-07-05T15:39:49 | 2023-07-05T15:39:49 | 13,968,255 | 214 | 117 | Apache-2.0 | 2021-01-28T06:06:45 | 2013-10-29T20:46:49 | Python | UTF-8 | Python | false | false | 9,299 | py | test_workflows.py | # Copyright 2016 NEC Corporation. All rights reserved.
# Copyright 2018 OVH SAS. 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/LICENS... |
4026c64fa491083476b0201e586713d7b0879994 | 67e5436d39a2aab5bfd2b9c5cff23ca934a85182 | /scripts/tflite_profile.py | 30e7fa54a8f3189d00ed073ab392ca5ee4f4f68f | [
"MIT"
] | permissive | autorope/donkeycar | d4991aa69d8b1334c6331640e532d8d796b2ac25 | 9f91ad1aaff054522b24c2c1e727d1a111e266f4 | refs/heads/main | 2023-08-17T20:25:19.085591 | 2023-07-05T19:35:50 | 2023-07-05T19:35:50 | 76,095,264 | 1,861 | 921 | MIT | 2023-08-01T23:06:30 | 2016-12-10T06:35:09 | Python | UTF-8 | Python | false | false | 1,174 | py | tflite_profile.py | '''
Usage:
tflite_test.py --model="mymodel.tflite"
Note:
may require tensorflow > 1.11 or
pip install tf-nightly
'''
import os
from docopt import docopt
import tensorflow as tf
import numpy as np
from donkeycar.utils import FPSTimer
args = docopt(__doc__)
in_model = os.path.expanduser(args['--model'])... |
230d8fd34884487d441e5812efee81417c2deb90 | 9d5ae8add5868d56af20f38f0bc1841d5ed3b4c2 | /powerapi/database/file_db.py | f8b9f0d3f4336d3b5118c4b7bf6464d3604b7197 | [
"BSD-3-Clause",
"Python-2.0",
"Apache-2.0"
] | permissive | powerapi-ng/powerapi | 5c6e30a48716f0c06449c489820991ed3ca2167d | be3f1852ad38894c2bc487bbb3a30508ed8d6b50 | refs/heads/master | 2023-08-16T12:14:16.940876 | 2023-08-16T11:25:51 | 2023-08-16T11:25:51 | 175,017,297 | 143 | 29 | BSD-3-Clause | 2023-09-12T12:00:45 | 2019-03-11T14:27:02 | Python | UTF-8 | Python | false | false | 4,627 | py | file_db.py | # Copyright (c) 2021, INRIA
# Copyright (c) 2021, University of Lille
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, t... |
09bd8308549b6e923ef117d8904118673391d7d0 | 08cdf212eebebdff17e888522b0c6bc837fd0b3a | /probe/modules/antivirus/eicar/eicar.py | 34860e910d9302c3cedaa495b6d2a7b9b3664ef7 | [
"Apache-2.0"
] | permissive | quarkslab/irma | 1f5b32c17195f709d3bb9ff7f7199aad4c76dfd3 | 4e3e2c0fa82e352a1a7a7fd02381a4d84bed9f09 | refs/heads/master | 2023-03-03T15:37:51.480982 | 2022-10-19T19:30:27 | 2022-10-19T19:30:27 | 26,581,177 | 267 | 81 | Apache-2.0 | 2023-03-01T23:09:39 | 2014-11-13T09:47:20 | JavaScript | UTF-8 | Python | false | false | 2,022 | py | eicar.py | #
# Copyright (c) 2013-2018 Quarkslab.
# This file is part of IRMA project.
#
# 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 in the top-level directory
# of this distribution and at:
#
# http:... |
0264b599f84dde155aeb3e8a0ef08afa8ddbcfa4 | 23d34d346cb5861b768a444bd8841157a558278b | /src/tracer/evaluate.py | b8cc2bbcce826b46ef9c288e0e5b2588471db663 | [
"MIT"
] | permissive | IAIK/AEPIC | de804451eb9a0f15f0a45956c9af52fbf8a41ab6 | 0b2d42e94cc39118b724b59d25bd2944a35fc391 | refs/heads/main | 2023-07-20T07:08:11.758790 | 2022-08-09T19:32:30 | 2022-08-09T19:32:30 | 501,202,090 | 108 | 13 | null | null | null | null | UTF-8 | Python | false | false | 4,638 | py | evaluate.py | import click
leakable_regs = ["rdi","r8","r9","r10","r11","r12","r13","r14","xmm0","xmm1","xmm6","xmm7","xmm8","xmm9"]
instruction_history = []
leakage_result = set()
def split_key(key,key_len):
key_parts = set()
#the full key or split
key_parts.add(key)
#8 byte / 128 byte
block_sizes = [16... |
52422d45734a3acc138d9167bffe9b2479921947 | d6aae799e18e907fb413b715200c7832252a87e5 | /language-modeling/BERT-finetuning/external/processors.py | 1f0058b94562004a270cfa9b592ca67138cef729 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"CC-BY-NC-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sony/nnabla-examples | 0d0bbd5df3028996e790bcf07248fdb0932697d1 | 41f71faa6efff7774a76bbd5af3198322a90a6ab | refs/heads/master | 2023-09-04T03:45:54.023899 | 2023-08-22T03:31:21 | 2023-08-22T03:31:21 | 109,625,584 | 308 | 108 | Apache-2.0 | 2023-08-22T03:31:23 | 2017-11-05T23:30:40 | Python | UTF-8 | Python | false | false | 21,318 | py | processors.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. 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/LICEN... |
42cb1b202b5c2888e97b612f7faf10cb292051f4 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /L1Trigger/RPCTrigger/python/RPCConeConfig_cff.py | 922cb0d49ed728ae5829bd1c3876e71674d60b12 | [
"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 | 322 | py | RPCConeConfig_cff.py | import FWCore.ParameterSet.Config as cms
RPCConeBuilder = cms.ESProducer("RPCConeBuilder",
towerBeg = cms.int32(0),
towerEnd = cms.int32(16)
)
rpcconesrc = cms.ESSource("EmptyESSource",
recordName = cms.string('L1RPCConeBuilderRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
... |
5cebe0e6c8442c2c3d8490013aa25782ff2be2a9 | 42a7b596cd3d8700631c3b83f6fc16e536b35ec1 | /ext_tests.py | 1fd8d8fd344114136db9f73e05bb5a96d74c4b03 | [
"BSD-3-Clause"
] | permissive | stefankoegl/python-json-patch | 1c7f9353b44c83f069101ff6e5cc1099225c4155 | 73c36f2c4776c008cd4e750f5240e06dfdc918fc | refs/heads/master | 2023-07-06T00:06:52.183696 | 2023-06-28T04:01:39 | 2023-06-28T04:01:39 | 1,915,437 | 309 | 84 | BSD-3-Clause | 2023-06-28T04:01:40 | 2011-06-18T12:03:47 | Python | UTF-8 | Python | false | false | 4,221 | py | ext_tests.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# python-json-patch - An implementation of the JSON Patch format
# https://github.com/stefankoegl/python-json-patch
#
# Copyright (c) 2011 Stefan Kögl <stefan@skoegl.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modif... |
7b44e5e3be04ad47ebe75916a39ed132597278f5 | 1991ea64acf35d1c3b5b50f542066a5885c08e36 | /config.py | b12e3c1d15951318c5ac86725320553d597e05c2 | [
"MIT"
] | permissive | hooram/ownphotos | 5ac13607c64e4ae09ce1f5a5860b57bd2ce5d924 | 180de5746468ec64b725723e03657dc21317f3a9 | refs/heads/dev | 2022-12-11T02:37:45.594234 | 2021-01-11T15:32:23 | 2021-01-11T15:32:23 | 97,455,875 | 2,756 | 269 | MIT | 2023-01-23T15:29:26 | 2017-07-17T08:56:54 | Jupyter Notebook | UTF-8 | Python | false | false | 898 | py | config.py | # add paths of the directories where your photos live.
# it will not look for photos recursively, so you might want to add subdirectories as well.
import os
image_dirs = [
# '/home/hooram/with_exif/'
'/home/hooram/Nextcloud/InstantUpload',
'/home/hooram/Nextcloud/Camera Uploads',
# '/home/hooram/Nextcl... |
a19a072651756f3ff1455ad64106d06488893e3a | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/event.py | 132904ae0b5a597b39000d9988010bc815d63a76 | [
"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,046 | py | event.py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class Event:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... |
f4dc5f564d0cd76958d5e45334d928e9efd31426 | aeef2494b283012ed619870c4275e7d015f4017a | /sdk/python/pulumi_gcp/networkmanagement/_inputs.py | b558d34c8b13d001a5c8ae1a9a67f58d907eff3f | [
"MPL-2.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-gcp | d4fd3f80c3df5290edaf33eb5eafe34e6699d0ff | 7deea0a50a4ee5ab7bd722a83eca01707e298f85 | refs/heads/master | 2023-08-31T07:12:45.921522 | 2023-08-31T06:16:27 | 2023-08-31T06:16:27 | 97,485,806 | 160 | 63 | Apache-2.0 | 2023-09-14T19:49:36 | 2017-07-17T14:28:37 | Java | UTF-8 | Python | false | false | 9,967 | 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... |
60ef030ecd42c442c453172656c351899eb193c6 | 99199db3f78a344e72b281c71c690518ae07375a | /octavia/db/models.py | 5cda8b5b312cd4595225cbcb622bc1f399b030bf | [
"Apache-2.0"
] | permissive | openstack/octavia | 3faf2afe2ade5bd3978bb3a0558d2eeefc648ba2 | 0426285a41464a5015494584f109eed35a0d44db | refs/heads/master | 2023-09-01T20:12:48.272344 | 2023-08-31T17:24:04 | 2023-08-31T17:24:04 | 21,018,188 | 147 | 180 | Apache-2.0 | 2021-03-30T12:34:30 | 2014-06-19T22:47:19 | Python | UTF-8 | Python | false | false | 36,160 | py | models.py | # Copyright 2014 Rackspace
# Copyright 2016 Blue Box, an IBM Company
# Copyright 2017 Walmart Stores 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://... |
13427a7a83d31177a02b61cf47dc1afdb5e2cba7 | 0032d988541e85c47b5034c20ecf88220dde5a95 | /openbook_posts/migrations/0067_merge_20191202_1731.py | a92e948e492991591f7763db378feed9ac4d2b58 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | OkunaOrg/okuna-api | eabd37fef9d2be59b590ed8d72bee084ac377997 | f87d8e80d2f182c01dbce68155ded0078ee707e4 | refs/heads/master | 2022-02-04T21:31:10.577601 | 2021-12-28T18:20:39 | 2021-12-28T18:20:39 | 151,052,951 | 185 | 92 | MIT | 2022-01-13T01:00:40 | 2018-10-01T07:44:46 | Python | UTF-8 | Python | false | false | 281 | py | 0067_merge_20191202_1731.py | # Generated by Django 2.2.5 on 2019-12-02 16:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('openbook_posts', '0066_auto_20191129_1630'),
('openbook_posts', '0066_trendingpost'),
]
operations = [
]
|
046a88ea42cccdff1c17544d26610304167da6ba | 6f36df6219f8e50374068bb4b3e1a5387c7a2f34 | /fipy/solvers/trilinos/preconditioners/multilevelSolverSmootherPreconditioner.py | 956e7b1b665a0992190c3e7229cf930270ec1e6a | [
"NIST-PD"
] | permissive | usnistgov/fipy | 0a3db715fea452ae710eea3999d9cd42dfe76fe7 | fdc17193bc293da7511be9021e6d4766757e1966 | refs/heads/master | 2023-08-31T21:59:36.611448 | 2023-06-27T16:28:58 | 2023-06-27T16:28:58 | 23,316,495 | 444 | 171 | NOASSERTION | 2023-09-06T19:21:19 | 2014-08-25T14:27:58 | Python | UTF-8 | Python | false | false | 1,157 | py | multilevelSolverSmootherPreconditioner.py | from __future__ import unicode_literals
__docformat__ = 'restructuredtext'
from PyTrilinos import ML
from fipy.solvers.trilinos.preconditioners.preconditioner import Preconditioner
__all__ = ["MultilevelSolverSmootherPreconditioner"]
from future.utils import text_to_native_str
__all__ = [text_to_native_str(n) for n ... |
cf60109a3b7d4831d054e1ed12d6c0a8e10ecadb | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/unit/states/test_x509.py | a1a5fa8b0669142cadb2d5081780cf6a8109a3e2 | [
"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 | 5,708 | py | test_x509.py | import tempfile
import pytest
import salt.utils.files
from salt.modules import x509 as x509_mod
from salt.states import x509
from tests.support.helpers import dedent
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.mock import MagicMock
from tests.support.unit import TestCase
try:
import... |
ed4ab12cb0eae8ad4d5a7b7400e6206514bc388f | dc66c0cf24c5f741b6288f3d73e6436752432dad | /Backend/item/models.py | 92a0ee2dcb712a456e5cf1f7ed4c22b9525cdcf4 | [
"MIT"
] | permissive | Linzecong/LPOJ | bdcf79f5e751419c0cff14c818512d5509fd849f | 2f7ce194f1d510d8d006c2a35fdaa272f20ef1f3 | refs/heads/master | 2023-01-20T15:42:12.865669 | 2022-01-05T15:05:55 | 2022-01-05T15:05:55 | 164,289,923 | 236 | 79 | MIT | 2023-01-14T00:55:14 | 2019-01-06T08:41:36 | Vue | UTF-8 | Python | false | false | 698 | py | models.py | # -*- coding: utf-8 -*-
from django.db import models
from user.models import User
import datetime
class Item(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.TextField(default="待补题",null=False)
detail = models.TextField(null=True,blank=True)
createtime = models.Dat... |
cde567a9c081b5761ee7567b5a20b72c27ed5280 | 952dc66c61966f099756cdb6c2d13b40352f63cc | /zerver/tests/test_subs.py | b6afee0d87d9cbd39c28b6200b79b72edde350a6 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | zulip/zulip | 5ae6aad35fd9f72996c0a2a9cdd674400966ebf6 | 965a25d91b6ee2db54038f5df855215fa25146b0 | refs/heads/main | 2023-08-28T23:43:00.971110 | 2023-08-28T16:47:09 | 2023-08-28T19:33:02 | 43,160,685 | 20,239 | 8,996 | Apache-2.0 | 2023-09-14T20:57:47 | 2015-09-25T16:37:25 | Python | UTF-8 | Python | false | false | 277,583 | py | test_subs.py | import hashlib
import random
from datetime import timedelta
from io import StringIO
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Set, Union
from unittest import mock
import orjson
from django.conf import settings
from django.core.exceptions import ValidationError
from django.http import HttpR... |
e28522236c69fbdbfcd8e9e78978548144833f48 | 568fa58296378fa129ab3349adf010daa44ed45b | /third_party/incubator-tvm/topi/python/topi/x86/bitserial_conv2d.py | 97d0dc0eefaa6c0a5bd0a427fbd116af29ad332a | [
"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 | 8,851 | py | bitserial_conv2d.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... |
75c6880ce8c7242ed239379d200263f1552a62c6 | bbfc9f05efefe29b6ce9832bb3506efb900c1c93 | /tencentcloud/iir/v20200417/models.py | 9f87875225dcdf373d17f78754c2e08efae9357f | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-python | a2fab235926b0a27e9cfdf55e085a8bb15b3f506 | 6baf00a5a56ba58b6a1123423e0a1422d17a0201 | refs/heads/master | 2023-09-04T10:52:28.060438 | 2023-09-01T03:09:16 | 2023-09-01T03:09:16 | 130,147,399 | 594 | 300 | Apache-2.0 | 2023-09-06T07:03:24 | 2018-04-19T02:23:12 | Python | UTF-8 | Python | false | false | 12,048 | py | models.py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... |
f7404e1805f3a203c997d0f418d079af2c1043b8 | 119b447b0289d828360be7c45288b70a651a7e12 | /malgan/detector.py | 8b278d1bb2d3ce301675e7d12ccec311966d85a2 | [
"MIT"
] | permissive | CyberForce/Pesidious | 446bbeb1b7a16443666b3257419931efb4e8ecbb | c36647d1b3ba86a9a4e6e1a0bda2a371d8875781 | refs/heads/master | 2022-12-18T11:09:20.253787 | 2020-10-01T19:47:12 | 2020-10-01T19:47:12 | 295,115,767 | 119 | 36 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | detector.py | # -*- coding: utf-8 -*-
from enum import Enum
from typing import Union
import numpy as np
import sklearn
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.neural_network import MLPClassifier
f... |
a1979fe6fc265f85ceda4d0b16f0c7eb37a907e2 | 40ca168bbb9c865a13c83ef479838981c5b7a1c0 | /packages/hagrid/hagrid/rand_sec.py | 8f7735820b3c4dec168d50d30dfdef5e5506be91 | [
"Apache-2.0",
"Python-2.0"
] | permissive | OpenMined/PySyft | 6907171bc35062d04c1b6320097c3bcafb65ae68 | 1833278212d89e66853f28a7ca365261550bbe4f | refs/heads/dev | 2023-09-05T05:50:48.773703 | 2023-09-05T04:00:44 | 2023-09-05T04:00:44 | 97,641,933 | 9,473 | 2,530 | Apache-2.0 | 2023-09-14T12:50:53 | 2017-07-18T20:41:16 | Python | UTF-8 | Python | false | false | 2,819 | py | rand_sec.py | # stdlib
from os import urandom
import string
import sys
from typing import List
from typing import Set
def generate_sec_random_password(
length: int,
special_chars: bool = True,
digits: bool = True,
lower_case: bool = True,
upper_case: bool = True,
) -> str:
"""Generates a random password of ... |
4da3f8084216312a09d1c62cd78f2f1d8a01e50a | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-lakeformation/huaweicloudsdklakeformation/v1/model/lake_formation_policy.py | cfd2f2151ecd91d7667a72da3b4ea35f28f79a38 | [
"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 | 14,168 | py | lake_formation_policy.py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class LakeFormationPolicy:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribut... |
b695bd0e3bee9e4fcebfd122305e2f7d34c4b58a | b86bfae60767eed63cf935609d934b0a5c98918e | /modules/imdb.py | 2b11d85b830d17d0807012594ef0089cf2bf70ca | [
"EFL-2.0"
] | permissive | myano/jenni | cabf44b54968e1320313cdad90a1a2d9f7c25569 | d2e9f86b4d0826f43806bf6baf134147500027db | refs/heads/master | 2021-08-16T10:48:20.006984 | 2020-07-23T13:22:19 | 2020-07-23T13:22:19 | 422,097 | 158 | 118 | NOASSERTION | 2023-01-07T14:35:48 | 2009-12-12T01:00:31 | Python | UTF-8 | Python | false | false | 3,029 | py | imdb.py | # -*- coding: utf8 -*-
'''
imdb.py - jenni Movie Information Module
Copyright 2014-2015, yano, yanovich.net
Copyright 2012, Elad Alfassa, <elad@fedoraproject.org>
Licensed under the Eiffel Forum License 2.
This module relies on omdbapi.com
More info:
* jenni: https://github.com/myano/jenni/
* Phenny: http://inamids... |
56244b510ab37cf655a7226644b7208e8d84f051 | c5f7019c52cd91a3d9505943b9d866539f2fb0bc | /synapse/lib/stormlib/basex.py | 10aeb11fc98ad81d173ade3204a3a384343642a1 | [
"Apache-2.0"
] | permissive | vertexproject/synapse | ce31699fcb10cb2c870d448915f4d4524247e2d0 | 1808dff78921b4bfdb451a12ee5d03427a5295b9 | refs/heads/master | 2023-09-03T23:48:26.584015 | 2023-08-31T20:34:35 | 2023-08-31T20:34:35 | 37,228,107 | 307 | 63 | Apache-2.0 | 2023-09-14T21:53:32 | 2015-06-10T23:29:41 | Python | UTF-8 | Python | false | false | 2,552 | py | basex.py | import synapse.exc as s_exc
import synapse.common as s_common
import synapse.lib.stormtypes as s_stormtypes
@s_stormtypes.registry.registerLib
class BaseXLib(s_stormtypes.Lib):
'''
A Storm library which implements helpers for encoding and decoding strings using an arbitrary charset.
'''
_storm_locals ... |
1154400557e4cc20546ff80e5abecbce2f9525e4 | 77fee94c58cd5b6305eef2f13d74b488db428c59 | /litex/soc/cores/uart.py | 723337897f04426b9d0d0d70c92263ca852facec | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | enjoy-digital/litex | de5919d649c1b884c47a5e0364c2a9a584ebd614 | 405296b7fd99764af21fffd94afa5075c22affa8 | refs/heads/master | 2023-08-31T23:52:33.895792 | 2023-08-31T17:34:55 | 2023-08-31T17:36:21 | 45,734,719 | 2,351 | 524 | NOASSERTION | 2023-09-14T21:26:26 | 2015-11-07T12:02:12 | C | UTF-8 | Python | false | false | 17,651 | py | uart.py | #
# This file is part of LiteX.
#
# Copyright (c) 2014 Yann Sionneau <ys@m-labs.hk>
# Copyright (c) 2015-2020 Florent Kermarrec <florent@enjoy-digital.fr>
# Copyright (c) 2015 Sebastien Bourdeauducq <sb@m-labs.hk>
# Copyright (c) 2018 Tim 'mithro' Ansell <me@mith.ro>
# SPDX-License-Identifier: BSD-2-Clause
from math i... |
95dd42a194a62af18efa40aebc7e89ddb6cf31e8 | aff73e17a2cebca97d53443821357811645d843e | /tests/test_plaintext_parser.py | adab1f5fa71c43e18a5a06d7ae7661de79afda3c | [
"Apache-2.0"
] | permissive | miso-belica/sumy | 8184c41018302b0a0a3ff80797768f4b7a0e65e4 | 5fdfae543b01359a3cd82b1edb7d5f6c1c89c782 | refs/heads/main | 2023-08-19T00:46:09.453121 | 2023-08-11T07:20:07 | 2023-08-11T07:20:07 | 8,313,091 | 3,352 | 599 | Apache-2.0 | 2023-08-11T07:16:24 | 2013-02-20T12:56:48 | Python | UTF-8 | Python | false | false | 1,934 | py | test_plaintext_parser.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from sumy.nlp.tokenizers import Tokenizer
from sumy.parsers.plaintext import PlaintextParser
def test_parse_plaintext():
parser = PlaintextParser.from_string("""
Ako sa máš? Ja dobre! A ty? No
... |
e513d008d320cdbeabee9552cdaf1f1f0bfec74e | 85373d45a83e4096affafa4f4e5b400787413e57 | /test/programytest/services/rest/newsapi/test_service.py | 0b9015666a625acbac553da21428323e3481a0f7 | [
"MIT"
] | permissive | keiffster/program-y | a02bb9d8278835547cc875f4f9cd668d5b1f44da | fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20 | refs/heads/master | 2023-08-23T13:55:39.255535 | 2022-12-13T09:51:57 | 2022-12-13T09:51:57 | 74,462,571 | 379 | 173 | NOASSERTION | 2023-05-23T00:51:21 | 2016-11-22T10:43:41 | Python | UTF-8 | Python | false | false | 4,595 | py | test_service.py | import unittest
from unittest.mock import patch
from unittest.mock import Mock
import os
from programy.services.rest.newsapi.service import NewsAPIService
from programy.services.config import ServiceConfiguration
from programy.services.config import ServiceRESTConfiguration
from programytest.services.testclient import ... |
ec4a0a3703753c314ccd4c935efeb816ed076eaf | a41e1498e3c080f47abd8e8e57157548df3ebbf1 | /pandas/tests/frame/test_logical_ops.py | 2cc3b67e7ac029d3f42256f700db7e75894c5e1a | [
"BSD-3-Clause"
] | permissive | pandas-dev/pandas | e7e639454a298bebc272622e66faa9829ea393bb | c7325d7e7e77ecb4a4e57b48bc25265277c75712 | refs/heads/main | 2023-09-01T12:42:07.927176 | 2023-09-01T11:14:10 | 2023-09-01T11:14:10 | 858,127 | 36,166 | 18,728 | BSD-3-Clause | 2023-09-14T21:18:41 | 2010-08-24T01:37:33 | Python | UTF-8 | Python | false | false | 7,042 | py | test_logical_ops.py | import operator
import re
import numpy as np
import pytest
from pandas import (
CategoricalIndex,
DataFrame,
Interval,
Series,
isnull,
)
import pandas._testing as tm
class TestDataFrameLogicalOperators:
# &, |, ^
@pytest.mark.parametrize(
"left, right, op, expected",
[
... |
009cbbcc20d45d39f73dd57a331ff7a53d827700 | 60ba5cc2f817471dd0ff84a15996b46b1dbfa6ba | /park/envs/spark_sim/__init__.py | 3533c53493507317545059aa04c34de0a434ec2b | [
"MIT"
] | permissive | park-project/park | dd15d27e5859fe421c878a90627716623892b6f9 | 08f8f7f0dea14e011af2d5ce2a72410084eb8713 | refs/heads/master | 2023-06-28T11:38:30.359938 | 2022-04-07T14:42:21 | 2022-04-07T14:42:21 | 184,142,889 | 216 | 55 | MIT | 2023-06-14T16:10:38 | 2019-04-29T20:55:25 | Python | UTF-8 | Python | false | false | 49 | py | __init__.py | from park.envs.spark_sim.spark import SparkSimEnv |
93bdc2d4fb3ddc35f8c6fbded579b2dc4806bbf3 | 13c0929950a663964c925625abc65421cf1b3c2f | /tests/test_api.py | 26e940d0fa068af1fdcb02e4243765bcbfe312e4 | [
"MIT"
] | permissive | allisson/python-simple-rest-client | ccb0c801d6d7ff15c830a250f31b69aae152d4de | 5a8fb5d8aea8e9436d74ed74e6c35164c8a3b6b3 | refs/heads/master | 2022-06-20T05:27:03.101557 | 2022-05-28T22:55:50 | 2022-05-28T22:55:50 | 85,091,859 | 174 | 55 | MIT | 2022-05-28T22:55:51 | 2017-03-15T15:50:24 | Python | UTF-8 | Python | false | false | 4,379 | py | test_api.py | import pytest
from simple_rest_client.api import API
from simple_rest_client.resource import Resource
def test_api_headers():
api = API(api_root_url="http://localhost:0/api/")
assert api.headers == {}
json_api = API(api_root_url="http://localhost:0/api/", headers={"Content-Type": "application/json"})
... |
d7e686c3ee83cfc1e3dfbb2438b3465ec238bbbe | ec8d9e1595ccc252a57d1769382bb98d604e40a9 | /pyrolite/__init__.py | 29a6453712f1497ac2c7b66f31fe6368ab6f0885 | [
"BSD-3-Clause",
"MIT"
] | permissive | morganjwilliams/pyrolite | 2a8e738e14099f72282a80acb7139d71eec71efc | ac7cd52029909738a41143b89be880e0da419266 | refs/heads/main | 2023-08-31T09:20:33.282184 | 2023-07-21T06:45:24 | 2023-07-21T06:45:24 | 137,172,322 | 113 | 37 | NOASSERTION | 2023-08-29T10:49:17 | 2018-06-13T06:31:12 | Python | UTF-8 | Python | false | false | 1,314 | py | __init__.py | """
pyrolite: A set of tools for getting the most from your geochemical data.
"""
from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
import importlib
import pkgutil
import matplotlib.style
from .util.log import Handle
from .util.plot.style import _export_mplstyle # this imp... |
42b1ce38bdf5cb05fb0d382612156129d4355817 | c8a0facd2ab0ae172b9745113c5a3372edb0034d | /tests/test_integration/test_examples/test_percolate.py | 30fcf972ba53ade36e4998f5a9f172e7d2176758 | [
"Apache-2.0"
] | permissive | elastic/elasticsearch-dsl-py | 1ba2390f8123ace1d53146fb42665d4cfdf6bf6f | 56832d816ac01c08aba89d84f35b3ca404f5cd7e | refs/heads/main | 2023-08-31T20:57:26.709632 | 2023-08-28T16:35:28 | 2023-08-28T16:35:28 | 17,446,726 | 3,702 | 951 | Apache-2.0 | 2023-09-08T05:34:51 | 2014-03-05T16:19:39 | Python | UTF-8 | Python | false | false | 1,159 | py | test_percolate.py | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use ... |
7156d7e505849dc82026d6e23df77ad64f0c62b9 | 2f24871ed5abc8b0ebd862a99dde4339bafbfad9 | /moveit_py/moveit/servo_client/devices/ps4_dualshock.pyi | bab5505ddcc2acaa73e5339e22ead4e86ed717f6 | [
"BSD-3-Clause"
] | permissive | ros-planning/moveit2 | b3c01ac1197a302d4ee834f9addfde754a2b07e9 | 47d92ef973680aea1badd6cc6080598f040a89f4 | refs/heads/main | 2023-09-04T08:32:28.333482 | 2023-08-24T15:44:29 | 2023-08-24T15:44:29 | 170,893,393 | 680 | 445 | BSD-3-Clause | 2023-09-14T17:23:51 | 2019-02-15T16:17:11 | C++ | UTF-8 | Python | false | false | 1,607 | pyi | ps4_dualshock.pyi | from rclpy.impl.rcutils_logger import RCUtilsLogger
from moveit.servo_client.teleop import TeleopDevice as TeleopDevice
from multiprocessing import Process as Process
from sensor_msgs.msg import Joy as Joy
from std_srvs.srv import Trigger as Trigger
class DualShockAxes:
LEFT_STICK_X: int
LEFT_STICK_Y: int
... |
538377d04d10adde72c52be909a342d849b77e62 | 057a475216e9beed41983481aafcaf109bbf58da | /tests/queries/0_stateless/02481_async_insert_dedup.python | 0e80a21bf4648509b5f181c50c57bd57fa8ce697 | [
"Apache-2.0",
"BSL-1.0"
] | permissive | ClickHouse/ClickHouse | fece5204263a5b4d693854b6039699265f1bb27f | 6649328db809d51a694c358571539bc5820464be | refs/heads/master | 2023-08-31T18:48:36.615225 | 2023-08-31T17:51:24 | 2023-08-31T17:51:24 | 60,246,359 | 23,878 | 5,449 | Apache-2.0 | 2023-09-14T20:10:52 | 2016-06-02T08:28:18 | C++ | UTF-8 | Python | false | false | 5,202 | python | 02481_async_insert_dedup.python | #!/usr/bin/env python3
import os
import sys
import random
import queue
import time
from threading import Thread
CURDIR = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(CURDIR, "helpers"))
from pure_http_client import ClickHouseClient
table_engine = sys.argv[1]
client = ClickHouseClient... |
39a5d5af2a9c726e3982e68d4d7f501f49d6ce36 | c5952aa93ddede4cbe8e027f8ac507ffdbca6124 | /CA1Dimension.pyde | ce14419d790b4f78454fd72a4fb3953116e66fdf | [] | no_license | hackingmath/Math-Adventures | 1cea476ee5aea807367670aefc062bc2530218ba | 327751c5db4526e858ab240b29b9cc55bb742586 | refs/heads/master | 2023-07-06T00:25:25.391354 | 2023-06-23T15:57:18 | 2023-06-23T15:57:18 | 125,400,295 | 114 | 51 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | pyde | CA1Dimension.pyde | width_of_grid = 151
#size of cell
sz = 600//101 + 1
class Cell:
def __init__(self,c,on):
self.c = c
self.on = on
self.ruleList = [0,0,0,1,1,1,1,0] #Rule 30
def checkNeighbors(self):
global cellList
if self.c == 0: #if the cell is in column 0
... |
43bc38c5f8ea9a0f9b0f9da59fb7fd19444a4185 | d6aae799e18e907fb413b715200c7832252a87e5 | /responsible_ai/kernel_shap/calculate.py | 41dffdb730e3b62a91d806d9ba8453714d824658 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"CC-BY-NC-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sony/nnabla-examples | 0d0bbd5df3028996e790bcf07248fdb0932697d1 | 41f71faa6efff7774a76bbd5af3198322a90a6ab | refs/heads/master | 2023-09-04T03:45:54.023899 | 2023-08-22T03:31:21 | 2023-08-22T03:31:21 | 109,625,584 | 308 | 108 | Apache-2.0 | 2023-08-22T03:31:23 | 2017-11-05T23:30:40 | Python | UTF-8 | Python | false | false | 10,119 | py | calculate.py | # Copyright 2021 Sony Group Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... |
235311ca403239c9d30d59a0388521a8988edc68 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /govern/data-quality/soda-core/soda/snowflake/soda/data_sources/snowflake_data_source.py | 1fbd41b95cae1733303ee6110e8ae32f25045c41 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | alldatacenter/alldata | 7bc7713c9f1d56ad6b8e59ea03206d1073b7e047 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | refs/heads/master | 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 | Apache-2.0 | 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null | UTF-8 | Python | false | false | 8,505 | py | snowflake_data_source.py | from __future__ import annotations
import logging
import re
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from snowflake import connector
from snowflake.connector.network import DEFAULT_SOCKET_CONNECT_TIMEOUT
from soda.common.logs import Logs
from so... |
9502085edbd9bcf1034225cb160a80f475064009 | a3e2d421f94a8adf2c41ff1d093b5a06de1448d6 | /server/pypi/packages/lz4/test.py | a1cd2b5d691473e7c2bb3190c341e0ba7abff624 | [
"MIT"
] | permissive | chaquo/chaquopy | 09ef057015a756ce9b862732477b2549562720b4 | e09bbe6ca5efd859d484b01e30131ccc944aa2b6 | refs/heads/master | 2023-08-31T22:09:22.230601 | 2023-08-31T13:07:57 | 2023-08-31T13:07:57 | 95,140,462 | 607 | 121 | MIT | 2023-09-13T19:17:29 | 2017-06-22T17:33:02 | Python | UTF-8 | Python | false | false | 388 | py | test.py | import unittest
class TestLz4(unittest.TestCase):
def test_basic(self):
import os
import lz4.frame
input_data = 20 * 128 * os.urandom(1024)
compressed = lz4.frame.compress(input_data)
self.assertLess(len(compressed), len(input_data))
decompressed = lz4.frame.decomp... |
a951508eb69768a89420b054e4f838d1073e20b3 | 29dfa1deefc72493d1b1eecf1a8df62e24599a77 | /tests/encryption/test_lib.py | a101b0601f87b0ad0fb3aa607054375413600969 | [
"Apache-2.0"
] | permissive | log2timeline/dfvfs | fd301eaf721a9945641a44ff722aec963158a6b3 | 28756d910e951a22c5f0b2bcf5184f055a19d544 | refs/heads/main | 2023-08-07T22:45:45.432668 | 2023-07-30T12:17:56 | 2023-07-30T12:17:56 | 23,820,144 | 197 | 65 | Apache-2.0 | 2023-07-30T12:17:58 | 2014-09-09T05:06:44 | Python | UTF-8 | Python | false | false | 218 | py | test_lib.py | # -*- coding: utf-8 -*-
"""Shared test cases."""
from tests import test_lib as shared_test_lib
class DecrypterTestCase(shared_test_lib.BaseTestCase):
"""The unit test case for decrypter object implementations."""
|
99d069678aa05cc40cf8760a1be09588982da098 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ppapi/native_client/tests/nacl_browser/inbrowser_test_runner/nacl.scons | 0641c89f580ad3aac359ff04cefb5807712f9f33 | [
"LicenseRef-scancode-khronos",
"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 | 2,309 | scons | nacl.scons | # -*- python -*-
# Copyright 2012 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import posixpath
Import('env')
env.ComponentLibrary('testrunner_browser', ['test_runner_ppapi.c'])
dest_copy = env.Replicate('$STAGING_DIR', 'test_... |
fbc0b172436f413733eab16826d38d240a64ae10 | 32c7914231074fba10220e4a79b0a1f41a1e2eae | /snntoolbox/datasets/aedat/ImportAedat.py | dc41a9ccb77cde52a7f252ce5f201f11d836796f | [
"MIT"
] | permissive | NeuromorphicProcessorProject/snn_toolbox | ea4ee4ddfe8a1436a5a297eb562384e302ff91db | 0255f753efa32f69593ac6bc25a95d5b09f8f1cb | refs/heads/master | 2023-01-21T06:54:23.166129 | 2023-01-13T10:01:01 | 2023-01-13T10:01:01 | 64,289,132 | 351 | 122 | MIT | 2022-08-12T22:00:26 | 2016-07-27T07:58:19 | Python | UTF-8 | Python | false | false | 601 | py | ImportAedat.py | # -*- coding: utf-8 -*-
"""
Import aedat file.
"""
from snntoolbox.datasets.aedat.ImportAedatHeaders import \
import_aedat_headers
from snntoolbox.datasets.aedat.ImportAedatDataVersion1or2 import \
import_aedat_dataversion1or2
def import_aedat(args):
"""
Parameters
----------
args :
Re... |
397246135a65077722ac6de6f71a322e4a52b84a | b4565ee9e5b2da09b845577a632c7bbec3118d79 | /rosbridge_library/src/rosbridge_library/internal/publishers.py | e4f674b70ddb511760494a884cb7a0d4a9092ecc | [
"BSD-3-Clause"
] | permissive | RobotWebTools/rosbridge_suite | 05ec59f9788651ca2f382bd8951c58ce30dd3ac4 | 7bbe58ba95b2bdf4003a2ee7c1bb76691ba6d405 | refs/heads/ros2 | 2023-08-31T11:28:16.618382 | 2023-04-17T22:23:59 | 2023-04-17T22:23:59 | 6,251,725 | 761 | 487 | BSD-3-Clause | 2023-09-14T01:10:13 | 2012-10-16T21:08:31 | Python | UTF-8 | Python | false | false | 12,881 | py | publishers.py | # Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# Copyright (c) 2014, Creativa 77 SRL
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribution... |
d6bba6eb034f5f733154768dc5148eb2fca5b091 | 091a6200be74bf6577c86f623665bcc24e16b02b | /PyPortal_Hackster/code.py | e2d2d730dfaf90e553461da9e7bd87e66d1dc88c | [
"MIT"
] | permissive | adafruit/Adafruit_Learning_System_Guides | b5f7bce40a16da64e7a79d4b39de032f2cca41d4 | 5eaa7a15a437c533b89f359a25983e24bb6b5438 | refs/heads/main | 2023-09-05T18:31:41.621956 | 2023-09-05T15:36:09 | 2023-09-05T15:36:09 | 105,065,494 | 937 | 937 | MIT | 2023-09-12T18:48:53 | 2017-09-27T20:22:44 | C | UTF-8 | Python | false | false | 1,848 | py | code.py | # SPDX-FileCopyrightText: 2019 Limor Fried for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import time
import board
from adafruit_pyportal import PyPortal
# Get wifi details and more from a secrets.py file
try:
from secrets import secrets
except ImportError:
print("WiFi secrets are kept in secrets.py... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.