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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0e3c2da4c4a388401edbfd73f23d273acd23a6f | f3806d9fb54773908cd9704121a543b114470aca | /angr/procedures/java_util/iterator.py | 8cf0dd167570f6da9f6b04df7dfa7fc67f9725ab | [
"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 | 1,605 | py | iterator.py | import claripy
import logging
from ..java import JavaSimProcedure
from ...engines.soot.values import SimSootValue_ThisRef
from .collection import ELEMS, SIZE, INDEX
log = logging.getLogger(name=__name__)
class IteratorHasNext(JavaSimProcedure):
__provides__ = (("java.util.Iterator", "hasNext()"),)
def run(... |
eb25709a18f2180ff996f76e02185a9e04637d95 | 1664bc3e55c0e006c8bbf8671a2ba0043dc0203c | /mpf/devices/motor.py | b43f16b655567393ac0570de162915393c7e473e | [
"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 | 9,728 | py | motor.py | """Motor device."""
from mpf.core.device_monitor import DeviceMonitor
from mpf.core.events import event_handler
from mpf.core.system_wide_device import SystemWideDevice
@DeviceMonitor(_move_direction="move_direction", _target_position="target_position", _last_position="last_position")
class Motor(SystemWideDevice):
... |
a4fa14afb731861d087b8d1b41a5608334748717 | 7c8f7a4e4fe04d65d92853ec0d7c466e55379ab4 | /clients/python-client/parsr_client/__init__.py | f26ebf1276e5ee0b38eb7e73aa3b4e8f34139647 | [
"GPL-1.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-commercial-license",
"AGPL-3.0-or-later"
] | permissive | axa-group/Parsr | d04fae6ab0d8893f0de77423b9ddb8992b0689a9 | b1fc36fc91531704235438e844bbf6315e889f86 | refs/heads/master | 2023-08-10T19:15:32.639082 | 2022-12-06T12:02:02 | 2022-12-06T12:02:02 | 200,653,543 | 5,467 | 313 | Apache-2.0 | 2023-03-02T21:15:27 | 2019-08-05T12:43:53 | JavaScript | UTF-8 | Python | false | false | 98 | py | __init__.py | from .parsr_client import ParsrClient
from .parsr_output_interpreter import ParsrOutputInterpreter |
1808c2182e98fca1727d697aa7b6625820584edd | 271780e3b208b218d3a570b10244d3b22a283d43 | /scripts/attr_translations_to_db.py | 4b85a58da377d0665e7e3718da45bc968e30ade9 | [] | no_license | alexandersimoes/oec | d312b5ecec1d502f9d7ca4d15b5db228d7984718 | d8d392f8ddd81dcd04fb8cc41697de104fcdf233 | refs/heads/master | 2021-04-12T11:08:23.328023 | 2020-11-28T02:31:01 | 2020-11-28T02:31:01 | 3,593,949 | 135 | 44 | null | 2021-03-19T22:02:43 | 2012-03-01T16:59:42 | CSS | UTF-8 | Python | false | false | 4,791 | py | attr_translations_to_db.py | # -*- coding: utf-8 -*-
"""
Add HS/SITC product translations to DB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw data from this file -
https://docs.google.com/spreadsheets/d/1mPG5zgQmeh3vRsGQrIOq8hPONXNRGW1OC449ExAqMVs/
"""
import sys, MySQLdb, time, os, csv, argparse, click
''' Connect to DB '''
db = M... |
e3dbd59febbd8898002c015639eb5a2d971d6910 | 52a15d4fabf68bf23a23799312ae40465764908c | /installation/migrations/dbschema.external-authentication.py | 656909a205b8d2cc7263f50eec1ba552e37407eb | [
"MIT",
"Apache-2.0"
] | permissive | jensl/critic | 2071a1b0600051967323df48f4d3a5656a5d2bb8 | c2d962b909ff7ef2f09bccbeb636333920b3659e | refs/heads/stable/1 | 2022-05-28T03:51:15.108944 | 2018-03-27T18:47:46 | 2018-03-29T15:08:30 | 6,430,552 | 224 | 36 | NOASSERTION | 2023-05-29T15:38:00 | 2012-10-28T18:26:04 | Python | UTF-8 | Python | false | false | 1,904 | py | dbschema.external-authentication.py | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2014 the Critic contributors, Opera Software ASA
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LI... |
9d697ed1ae69e72d127db9a865b0bb53656b46b8 | c29eba01ce299ebb27b886a83e19e59add7e2f6b | /src/pytest_cases/fixture_parametrize_plus.py | 644ebefdbeccf995f507485c0fdf758ea205c951 | [
"BSD-3-Clause"
] | permissive | smarie/python-pytest-cases | e87516e73d5067d5c307c7fdb37cc5f1f97c417e | ab3b7190d728b18512141b9f5f3a1c3dfc7cedf2 | refs/heads/main | 2023-07-08T11:41:57.278697 | 2023-02-23T13:11:25 | 2023-02-23T13:11:25 | 138,296,136 | 286 | 40 | BSD-3-Clause | 2023-07-03T14:57:02 | 2018-06-22T11:42:19 | Python | UTF-8 | Python | false | false | 68,879 | py | fixture_parametrize_plus.py | # Authors: Sylvain MARIE <sylvain.marie@se.com>
# + All contributors to <https://github.com/smarie/python-pytest-cases>
#
# License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE>
from inspect import isgeneratorfunction
from warnings import warn
try: # python 3.3+
from... |
e273be23ae3b1e424344ed9cbdaa45a9fc37d854 | 2853845c003d03db22f67c3303fa1ec333180ae7 | /fedlearner/trainer/trainer_master.py | 51a97419464f5a6d6e11ec65808c9c8367d7b480 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | bytedance/fedlearner | fc1dd2ba2ec88092e83a32732eccea52451ce552 | 436e4959952c970917ee8f47b920f0a76cd4dd05 | refs/heads/master | 2023-08-14T23:01:02.875453 | 2023-05-23T03:44:03 | 2023-05-23T03:44:03 | 235,348,659 | 893 | 243 | Apache-2.0 | 2023-06-08T07:37:18 | 2020-01-21T13:26:35 | Python | UTF-8 | Python | false | false | 27,930 | py | trainer_master.py | # Copyright 2020 The FedLearner 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... |
b7b2e2c96667ee57bdd9b4f59f17602feffb2de3 | 1364c5dde278482607c17c9853c5dd65a18b729f | /plugins/modules/ntc_install_os.py | 3ec973d6e1901f0f1546f49926359e1d96238280 | [
"Apache-2.0"
] | permissive | networktocode/ntc-ansible | ac0bfd3645f6eaedba2c1138b0e6f2d3c80d7057 | dc577937614e68e6e9178097c08d775638d7fc6a | refs/heads/develop | 2023-08-25T18:50:09.885635 | 2023-04-13T14:40:19 | 2023-04-13T14:40:19 | 40,731,097 | 295 | 124 | NOASSERTION | 2023-08-11T20:41:01 | 2015-08-14T18:50:41 | Python | UTF-8 | Python | false | false | 14,644 | py | ntc_install_os.py | #!/usr/bin/python
# Copyright 2015 Jason Edelman <jason@networktocode.com>
# Network to Code, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... |
618e3e7ac67af7d115f0d62708d93c4337fe3861 | 6f9375e722264d863734c6f44e883c9d8799386d | /agent/temboardagent/plugins/dashboard/__init__.py | 224cd1f3a78b8a0de14ac90607dec577bef35854 | [
"PostgreSQL"
] | permissive | dalibo/temboard | 8e5fcf5604c5f234a5c1be7d75e871251d80e61e | d26cb848f4b064e05d5e422ecc001889f224bd74 | refs/heads/master | 2023-08-31T05:09:26.385396 | 2023-08-30T10:09:12 | 2023-08-30T10:09:12 | 68,793,814 | 400 | 56 | NOASSERTION | 2023-09-12T13:50:42 | 2016-09-21T07:57:13 | Python | UTF-8 | Python | false | false | 4,048 | py | __init__.py | import logging
import time
from bottle import Bottle, default_app
from ...toolkit import taskmanager
from ...toolkit.configuration import OptionSpec
from ...toolkit.utils import utcnow
from . import db
from . import metrics
bottle = Bottle()
logger = logging.getLogger(__name__)
workers = taskmanager.WorkerSet()
... |
309c682c0f226387acc88f3e9526268fca05baab | f3806d9fb54773908cd9704121a543b114470aca | /angr/procedures/java_util/scanner_nextline.py | 661664142c3de4117f80cfd9c4af5dcc46c19c4c | [
"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 | 797 | py | scanner_nextline.py | import logging
from claripy import StringS
from ...engines.soot.values import SimSootValue_StringRef
from ..java import JavaSimProcedure
l = logging.getLogger("angr.procedures.java.scanner.nextLine")
class ScannerNextLine(JavaSimProcedure):
__provides__ = (("java.util.Scanner", "nextLine()"),)
def run(sel... |
42f0aff0be619dfd9a8a2b83c3ae67380e6c5bfe | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/WithholdSignInfo.py | f59f0ba827e20545e5443d42e2b8ce08889ea8e5 | [
"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,005 | py | WithholdSignInfo.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class WithholdSignInfo(object):
def __init__(self):
self._agreement_no = None
self._agreement_status = None
self._sign_scene = None
self._sign_time = None
self._... |
8ddf2d6a7723f26e7b0aaa67d4d1eaae454e34e3 | 61673ab9a42f7151de7337608c442fa6247f13bb | /socket/http-server/main.py | 88ebedbf7f3874e29e27cbfc06cfe7e19f6f80f9 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 1,031 | py | main.py | import socket
HOST, PORT = '', 8888
listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
listen_socket.bind((HOST, PORT))
listen_socket.listen(1)
print(f'Serving HTTP on port {PORT} ...')
while True:
print ('1 - start')
client_... |
83011dc5da00cfc2e9525df490ac531a753dd819 | 276f30aeaebc76d259269a0c75bf3fdc4ee22dde | /Lane-Detection/dataset/voc_aug.py | 787293bde94449f4b4acdf569caa898286405b44 | [
"MIT"
] | permissive | Chenzhaowei13/Light-Condition-Style-Transfer | a8627f3d5328ad7c495a3357c49ef48b610d86d2 | fccc15551f1045939ff31d5d64d3af3bf10c677f | refs/heads/master | 2022-12-10T02:56:20.331999 | 2022-02-09T04:01:38 | 2022-02-09T04:01:38 | 237,132,823 | 148 | 34 | MIT | 2022-12-07T23:37:47 | 2020-01-30T03:38:46 | Python | UTF-8 | Python | false | false | 2,352 | py | voc_aug.py | import os
import numpy as np
import cv2
import torch
from torch.utils.data import Dataset
class VOCAugDataSet(Dataset):
def __init__(self, dataset_path='/home/chenzhaowei/data/CULane/list', data_list='train', transform=None):
with open(os.path.join(dataset_path, data_list + '.txt')) as f:
sel... |
0a083e6cb1002936c734f480b859ef1b36d0f295 | 5ed8fdfdb4516b6ff07f632005266e60d3b49389 | /telethon/sync.py | f647670a7eef875ec6e97ebf320ed8a9b69c7ec5 | [
"MIT"
] | permissive | LonamiWebs/Telethon | 8ad20584863a7a5c1480eb46df8f0bd910042ce8 | 128b7074881c95fcc748f312ee92d09d650fd2f9 | refs/heads/v1 | 2023-08-09T17:52:04.533344 | 2023-08-03T17:00:55 | 2023-08-03T17:01:10 | 66,641,037 | 8,789 | 1,756 | MIT | 2023-09-14T16:52:06 | 2016-08-26T10:59:24 | Python | UTF-8 | Python | false | false | 2,609 | py | sync.py | """
This magical module will rewrite all public methods in the public interface
of the library so they can run the loop on their own if it's not already
running. This rewrite may not be desirable if the end user always uses the
methods they way they should be ran, but it's incredibly useful for quick
scripts and the ru... |
eb0984bff1064816ad1e27fb2732e08baaf4de05 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/tests/registry/unittests/test_registry_schema.py | bb0d7843567d8eb778471a9a12923ff308563951 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-python-cwi",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
... | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,093 | py | test_registry_schema.py | from pathlib import Path
import pytest
import yaml
from marshmallow.exceptions import ValidationError
from azure.ai.ml._schema.registry import RegistrySchema
from azure.ai.ml.constants._common import BASE_PATH_CONTEXT_KEY, PublicNetworkAccess
from azure.ai.ml.constants._registry import AcrAccountSku, StorageAccountTy... |
bc084acd4bfbbaac22f9de28657d8963e4b53b92 | e39472e0c0d582a8fe90d1b236312c236f2ab332 | /src/pyze/cli/ac-history.py | 46219ee1d5893a57c890c707886f9974d6ec7f32 | [
"MIT"
] | permissive | jamesremuscat/pyze | 801015857c135eada6473743caa676ba27b990d5 | c359492287ce1a5462b8b3e7ddca11919bbf04a4 | refs/heads/develop | 2022-10-05T05:37:18.998067 | 2022-09-19T14:06:29 | 2022-09-19T14:06:29 | 198,670,990 | 113 | 40 | MIT | 2022-09-19T14:06:07 | 2019-07-24T16:21:00 | Python | UTF-8 | Python | false | false | 888 | py | ac-history.py | from .common import add_history_args, add_vehicle_args, get_vehicle
from datetime import datetime
from tabulate import tabulate
help_text = 'Show preconditioning history for your vehicle.'
def configure_parser(parser):
add_vehicle_args(parser)
add_history_args(parser)
def run(parsed_args):
v = get_veh... |
97448b917d1635fb55173471fb6de0f4fffc8da3 | 85373d45a83e4096affafa4f4e5b400787413e57 | /test/programytest/storage/test_utils.py | 90ca90630548bc95fc397c6c6ae61415b7c8bbc2 | [
"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 | 2,720 | py | test_utils.py | import datetime
import unittest
from programy.dialog.conversation import Conversation
from programy.dialog.question import Question
from programytest.client import TestClient
class StorageEngineTestUtils(unittest.TestCase):
def user_asserts(self, storage_engine):
user_store = storage_engine.user_store()
... |
f258c3662132520b0f72ce2cabc7f1a974b1f37c | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Microsoft/Win32/SafeHandles.py | d1741b3050dde385e045b73dbacde1ee7fe5130e | [
"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 | 18,674 | py | SafeHandles.py | # encoding: utf-8
# module Microsoft.Win32.SafeHandles calls itself SafeHandles
# from mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no import... |
a8cbc7f86e682f7d4d47ec3ce4ecfa7e1dca89cf | a40ad075eeadf753167a7e9be2bb41253bb443e9 | /lit_nlp/components/metrics_test.py | 7ce9abc1d432cd2a02d0f7a39c80a6c7c02bc6dc | [
"Apache-2.0"
] | permissive | PAIR-code/lit | 1cd55c5471bd24a8205174d3a40a2ec91ea56d27 | a41130960d6ccb92acf6ffc603377eaecce8a62b | refs/heads/main | 2023-09-05T15:35:22.731062 | 2022-12-02T19:48:37 | 2022-12-02T19:48:37 | 283,215,238 | 3,201 | 351 | Apache-2.0 | 2023-09-14T06:08:56 | 2020-07-28T13:07:26 | TypeScript | UTF-8 | Python | false | false | 26,071 | py | metrics_test.py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... |
1706fa2c7f90a9ef99bcc97062c9baf32fabdfe5 | 1efd2de8bf77ec00eb2fcaf5749278495946d920 | /src/tests/ftest/ior/hard.py | 1fa9d47de3087601b343222b124b9d98e5b8dda1 | [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
] | permissive | daos-stack/daos | 6f55bf3061fd830d5b8d28506e1295e2d3a27c38 | ed5eed5df43a68571afe123132a743824c02637a | refs/heads/master | 2023-08-31T21:43:37.606145 | 2023-08-31T16:38:00 | 2023-08-31T16:38:00 | 69,390,670 | 631 | 300 | NOASSERTION | 2023-09-14T18:55:15 | 2016-09-27T19:21:29 | C | UTF-8 | Python | false | false | 1,024 | py | hard.py | """
(C) Copyright 2018-2023 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
from ior_test_base import IorTestBase
class IorHardBasic(IorTestBase):
# pylint: disable=too-few-public-methods
"""Test class Description: Runs IOR Hard with different
EC OBject ... |
b8a8264bbc6db87a3d89328f19d2542fd4eabe20 | b18330180bc2dddf483e2eb81160934dcd818ef8 | /analysis/halContiguousRegionsTest.py | 6b15831d558d9836fe7d9806ed1904371f679afc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ComparativeGenomicsToolkit/hal | 3e5cc48c09bd0083d8d2eb849401ac5ed0bf8b06 | e9e70b6c4a46a82aacf36632e1761804595d7f66 | refs/heads/master | 2023-08-31T06:32:09.551768 | 2023-06-22T23:55:36 | 2023-06-22T23:55:36 | 3,778,244 | 110 | 42 | NOASSERTION | 2023-08-31T15:13:38 | 2012-03-20T17:58:31 | C++ | UTF-8 | Python | false | false | 6,477 | py | halContiguousRegionsTest.py | #!/usr/bin/env python3
import unittest
from hal.analysis.halContiguousRegions import ContiguousRegions
class ContiguousRegionsTestCase(unittest.TestCase):
def setUp(self):
self.contiguousRegions = ContiguousRegions('/dev/null', 'src',
'target', 100, '/tmp... |
0e8ccac5dc8825d0450eeae550fde713aa1d2d9a | f3806d9fb54773908cd9704121a543b114470aca | /angr/analyses/decompiler/structured_codegen/base.py | 32da2e8986482020f3e01236f3c4e431cd2f1091 | [
"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 | 3,845 | py | base.py | from typing import Dict, Optional, Set, Union
from sortedcontainers import SortedDict
from ....sim_variable import SimVariable
#
# Position Mapping Classes
#
class PositionMappingElement:
__slots__ = ("start", "length", "obj")
def __init__(self, start, length, obj):
self.start: int = start
... |
7530f80656c499ab47bb211d3a8bdd72918ff03c | 0032d988541e85c47b5034c20ecf88220dde5a95 | /openbook/storage_backends.py | 5f4d0ac2e81234b5d5e69c4b25cdac8c31e06edf | [
"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 | 1,402 | py | storage_backends.py | from botocore.config import Config
from django.conf import settings
from storages.backends.s3boto3 import S3Boto3Storage
class S3StaticStorage(S3Boto3Storage):
location = settings.AWS_STATIC_LOCATION
def __init__(self, *args, **kwargs):
self.config = Config(s3={'addressing_style': self.addressing_sty... |
aec7ab382dfda3758c52b33ebbb57e781075d721 | 0bcd128368e2de959ca648960ffd7944067fcf27 | /infra/bots/recipe_modules/gsutil/examples/full.py | 897321d7c5cd24859d53af582f58036afdea5516 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google/skia | ac6e39179cd33cf0c8a46d29c1a70bf78b4d74ee | bf6b239838d3eb56562fffd0856f4047867ae771 | refs/heads/main | 2023-08-31T21:03:04.620734 | 2023-08-31T18:24:15 | 2023-08-31T20:20:26 | 15,773,229 | 8,064 | 1,487 | BSD-3-Clause | 2023-09-11T13:42:07 | 2014-01-09T17:09:57 | C++ | UTF-8 | Python | false | false | 2,318 | py | full.py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Recipe which runs the Skia gsutils tests.
PYTHON_VERSION_COMPATIBILITY = "PY3"
DEPS = [
'gsutil',
'recipe_engine/path',
'recipe_engine/properties'... |
b04ef95558ff11d5c84ed10c002f77afe0f12df4 | 94ff01bc029a3bd6a554abf7c6e609d363e50484 | /sqlakeyset/constants.py | ecf2c8dd72fd326b2eff6dd96ec3cc97a02d96c9 | [
"Unlicense"
] | permissive | djrobstep/sqlakeyset | 7ec76b73131b0cd31472d04744a622e00b8bc34c | 6cd0d322f5bf26993777ed230cac2e4876f2a2f4 | refs/heads/master | 2023-08-09T04:01:20.737918 | 2023-08-04T11:41:39 | 2023-08-04T11:41:39 | 66,554,135 | 314 | 47 | Unlicense | 2023-08-04T11:41:41 | 2016-08-25T12:00:44 | Python | UTF-8 | Python | false | false | 37 | py | constants.py | ORDER_COL_PREFIX = "_sqlakeyset_oc_"
|
94f135a750ec9c19e521d7748a4ba18c97098bce | 5dc77586e3e0f9de1f032fd2ca68494d8e58928f | /great_expectations/datasource/fluent/spark_filesystem_datasource.pyi | 209f0edb82996657f40e272c8250aae1f7a9a3d5 | [
"Apache-2.0"
] | permissive | great-expectations/great_expectations | dd7c22e6277d6b08bee3ff38a015e6e8cd434df6 | b0290e2fd2aa05aec6d7d8871b91cb4478e9501d | refs/heads/develop | 2023-09-04T09:30:26.395518 | 2023-09-02T00:00:13 | 2023-09-02T00:00:13 | 103,071,520 | 8,931 | 1,535 | Apache-2.0 | 2023-09-14T19:57:16 | 2017-09-11T00:18:46 | Python | UTF-8 | Python | false | false | 31,665 | pyi | spark_filesystem_datasource.pyi | import pathlib
import re
from logging import Logger
from typing import ClassVar, Literal, Optional, Type, Union
from great_expectations.compatibility.pyspark import (
types as pyspark_types,
)
from great_expectations.datasource.fluent import BatchMetadata, _SparkFilePathDatasource
from great_expectations.datasourc... |
437cc8c07b08a6eeb867873989bb4ce1c33042c8 | 3f763cf893b09a3be562858613c928703ff349e4 | /client/verta/verta/_protos/public/uac/UserV2_pb2_grpc.py | 29b16143cee63287561319e8714201497051d3e8 | [
"Apache-2.0"
] | permissive | VertaAI/modeldb | 636e46fc025b01a514d599b10e228c8735503357 | ec9ac7712500adb13fd815dfd476ce9f536c6921 | refs/heads/main | 2023-08-31T00:45:37.220628 | 2023-08-30T18:45:13 | 2023-08-30T18:45:13 | 71,305,435 | 844 | 142 | Apache-2.0 | 2023-09-14T19:24:13 | 2016-10-19T01:07:26 | Java | UTF-8 | Python | false | false | 8,096 | py | UserV2_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from ..uac import UACService_pb2 as uac_dot_UACService__pb2
from ..uac import UserV2_pb2 as uac_dot_UserV2__pb2
class UserServiceV2Stub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, c... |
5416610f0b954df25c6b3cc00c183a8d9791a565 | f8dee139258b7d971bd1cfa16bd16e356537bbac | /Contents/Libraries/Shared/subliminal/exceptions.py | ed46be1a4da776cd286674a5c4eb438782901c0b | [
"MIT"
] | permissive | pannal/Sub-Zero.bundle | 79673016ae68d1f2e9886fd30b8763b73a8f6cf8 | 4ced7d8c8f9f5fb47d12410f87fa33d782e9f0f4 | refs/heads/master | 2023-07-27T23:04:32.925845 | 2023-07-09T13:07:38 | 2023-07-09T13:08:04 | 21,959,699 | 1,820 | 178 | NOASSERTION | 2022-11-28T03:23:13 | 2014-07-17T22:19:13 | Python | UTF-8 | Python | false | false | 807 | py | exceptions.py | # -*- coding: utf-8 -*-
class Error(Exception):
"""Base class for exceptions in subliminal."""
pass
class ProviderError(Error):
"""Exception raised by providers."""
pass
class ConfigurationError(ProviderError):
"""Exception raised by providers when badly configured."""
pass
class Authentic... |
f1f0c5fe028fd8af001e9fa29ceafe092ffeaeb5 | 2337351b228818e41be3002bd38f68f77c2aa074 | /services/discovery/jobs/box/suggestcli.py | 94605c720a0ce35c0a610295f27f7d578159ec19 | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 3,641 | py | suggestcli.py | # ---------------------------------------------------------------------
# Suggest SNMP check check
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC mo... |
7b6e6e1a59a0020072304fd1403e6f94820dedc0 | fb369693686cbd93799f68bcd0b4fdcf4c65d49a | /zavod/zavod/exporters/senzing.py | 3d53d842743cb66d7203593fbc102194a870bdfa | [
"MIT",
"CC-BY-NC-4.0"
] | permissive | opensanctions/opensanctions | 8a43c173bd9c1422b5ca3e2ec35bcac70f8f1573 | 229b59247e67ad0661abb0a6f7155a61042a32ea | refs/heads/main | 2023-09-03T23:59:34.785846 | 2023-09-03T08:46:14 | 2023-09-03T08:46:14 | 47,451,451 | 155 | 32 | MIT | 2023-09-14T05:46:11 | 2015-12-05T10:19:57 | Python | UTF-8 | Python | false | false | 880 | py | senzing.py | from nomenklatura.senzing import senzing_record
from typing import cast, Dict, Any
from zavod.entity import Entity
from zavod.exporters.common import Exporter
from zavod.util import write_json
class SenzingExporter(Exporter):
TITLE = "Senzing entity format"
FILE_NAME = "senzing.json"
MIME_TYPE = "applica... |
c8156cef65ad2ab7a965a60c807f120206dd0960 | 650de196d47005cc53c9d040ddc76c386fe1f533 | /flickr_api/upload.py | a6c965dd9652af6af7c8d382c71b5dda54825298 | [] | permissive | alexis-mignon/python-flickr-api | 66a1e6823d658450f013c005771571c0254a551c | f515d503d7dd0c208a15d77c06e15c60684fda38 | refs/heads/master | 2023-08-22T07:29:56.158289 | 2023-07-26T00:12:49 | 2023-07-26T00:12:49 | 3,848,466 | 294 | 98 | BSD-3-Clause | 2023-07-26T00:12:50 | 2012-03-27T20:58:41 | Python | UTF-8 | Python | false | false | 5,251 | py | upload.py | """
Upload API for Flickr.
It is separated since it requires different treatments than
the usual API.
Two functions are provided:
- upload
- replace (presently not working)
Author: Alexis Mignon (c)
email: alexis.mignon@gmail.com
Date: 06/08/2011
"""
from .flickrerrors import ... |
557db5d860dfadefe965df2b98b8f845974d7922 | 867364dc92d3236f5b42aa4fe82ee69d008d09e5 | /insomniac/session_state.py | 16112ff27db1e0f8eb2a6cd575573675eb8f796c | [
"MIT"
] | permissive | alexal1/Insomniac | 6acde5a6e4b4d50e4e0d4fb233fb2e0f98d52314 | 03e25aeaae5b38a0e47a4dfd705a3140ff2e8086 | refs/heads/master | 2023-09-03T16:56:23.546483 | 2022-09-03T14:21:08 | 2022-09-03T14:21:08 | 268,484,843 | 666 | 194 | MIT | 2022-03-01T23:12:28 | 2020-06-01T09:55:52 | Python | UTF-8 | Python | false | false | 6,535 | py | session_state.py | from abc import ABC
from insomniac.actions_types import LikeAction, InteractAction, FollowAction, GetProfileAction, ScrapeAction, \
UnfollowAction, RemoveMassFollowerAction, StoryWatchAction, CommentAction, DirectMessageAction, FilterAction, \
DirectMessageBackdateAction
from insomniac.storage import Storage, ... |
ad7e571737d9369af2966c2a893614cf2510ff95 | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/python/tpu/client/client.py | d86ba094536672f5bbba3fb321c8b8af640bc153 | [
"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 | 14,785 | py | client.py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
56e4cd7cba30172917f4ec6fe2d4899b80ada03e | 9eb4da8fe0eb56a0b0e4c4d660f52f52838c91da | /bumblebee_status/modules/core/nic.py | 09fe4876c69807041e6583dfd4c819c9ef1e2599 | [
"MIT"
] | permissive | tobi-wan-kenobi/bumblebee-status | bf53b44341f4d84c4684675af3dcb8c675579f23 | d03e6307f5e8c0b1c0451636ac9b1e84f3529a73 | refs/heads/main | 2023-08-31T11:52:12.140284 | 2023-07-21T12:18:17 | 2023-07-21T12:18:17 | 72,353,166 | 1,345 | 361 | MIT | 2023-09-13T19:25:17 | 2016-10-30T14:07:20 | Python | UTF-8 | Python | false | false | 6,688 | py | nic.py | # pylint: disable=C0111,R0903
"""Displays the name, IP address(es) and status of each available network interface.
Requires the following python module:
* netifaces
Requires the following executable:
* iw
* (until and including 2.0.5: iwgetid)
Parameters:
* nic.exclude: Comma-separated list of inter... |
0183615e172b955ed93dd329bacb64a11deeddad | fdb9bdc6c4ab2f14ba71e544493706d5e275899f | /fhir/resources/tests/test_immunization.py | 62ad32010ec9d813f137985fc4c0084efba5c123 | [
"BSD-3-Clause"
] | permissive | nazrulworld/fhir.resources | 6ae8aea8180c611b0c5050759c6dcdf63e4cb061 | 1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3 | refs/heads/main | 2023-08-30T18:27:27.277249 | 2023-07-03T19:57:06 | 2023-07-03T19:57:06 | 165,297,877 | 256 | 83 | NOASSERTION | 2023-08-24T15:34:05 | 2019-01-11T19:26:41 | Python | UTF-8 | Python | false | false | 19,172 | py | test_immunization.py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/Immunization
Release: R5
Version: 5.0.0
Build ID: 2aecd53
Last updated: 2023-03-26T15:21:02.749+11:00
"""
from pydantic.validators import bytes_validator # noqa: F401
from .. import fhirtypes # noqa: F401
from .. import immunization
def i... |
c1f8d008d757b877fc3f0967641c89dc3a7b9479 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /HLTrigger/Configuration/python/HLT_75e33/modules/hltElePixelHitTripletsClusterRemoverUnseeded_cfi.py | be35b5393cecd67d90cab48a8327285024fa2f94 | [
"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 | 312 | py | hltElePixelHitTripletsClusterRemoverUnseeded_cfi.py | import FWCore.ParameterSet.Config as cms
hltElePixelHitTripletsClusterRemoverUnseeded = cms.EDProducer("SeedClusterRemoverPhase2",
phase2OTClusters = cms.InputTag("siPhase2Clusters"),
pixelClusters = cms.InputTag("siPixelClusters"),
trajectories = cms.InputTag("hltElePixelSeedsTripletsUnseeded")
)
|
466644740b6388ceedc45ea15237dbb549d7d78b | 1742b6719b988e5519373002305e31d28b8bd691 | /sdk/python/pulumi_aws/autoscaling/tag.py | 64dab2c8490fccdf0fbb1647979ae4ec90d33a67 | [
"MPL-2.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-aws | 4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a | 42b0a0abdf6c14da248da22f8c4530af06e67b98 | refs/heads/master | 2023-08-03T23:08:34.520280 | 2023-08-01T18:09:58 | 2023-08-01T18:09:58 | 97,484,940 | 384 | 171 | Apache-2.0 | 2023-09-14T14:48:40 | 2017-07-17T14:20:33 | Java | UTF-8 | Python | false | false | 9,822 | py | tag.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... |
fb04329d141bcdd4d3ef877e21eb21a202262e5c | d41442e43c621465abac584fa4202e44876c097d | /benchmarks/src/submit/utils.py | cf77d6ee433d7847836d08e9bdf1214146542ef4 | [
"MIT"
] | permissive | It4innovations/hyperqueue | 90904ba415c3bee9b93d470e89c26c4129e2f60d | d7312e96194e2ebb3bef04f7744dc212953c146b | refs/heads/main | 2023-09-04T09:54:22.020632 | 2023-08-07T09:10:20 | 2023-08-08T11:46:13 | 349,152,473 | 171 | 18 | MIT | 2023-09-12T09:55:00 | 2021-03-18T16:57:34 | Rust | UTF-8 | Python | false | false | 566 | py | utils.py | from pathlib import Path
def generate_job_dir(workdir: Path) -> Path:
"""Tries to find a directory in `workdir` which name is an integer and return a large integer
padded. The returned name is padded by zeros."""
workdir.mkdir(parents=True, exist_ok=True)
ids = []
for item in workdir.iterdir():
... |
6f02a800934ac4976046d3d3cd537b1a3314b687 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/opusfile/all/conanfile.py | ec4750c742092bb38ca095f954368f08dce43273 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 7,602 | py | conanfile.py | from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import fix_apple_shared_install_name
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, replace_in_file, rm, rmdir
from conan.tools.g... |
4e34917d0dc80f05bf6187763687f8a35951550b | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tools/mo/unit_tests/mo/front/caffe/proposal_ext_test.py | 3452996b921619444599e7eaae51efdf5e552764 | [
"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 | 1,817 | py | proposal_ext_test.py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import unittest
from unittest.mock import patch
from openvino.tools.mo.front.caffe.proposal_ext import ProposalFrontExtractor
from openvino.tools.mo.ops.proposal import ProposalOp
from openvino.tools.mo.ops.op import Op
from unit_tests.... |
0c8ea3facb71c3df6e039e050c387c2eafd05a8b | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /orc8r/cloud/deploy/orc8r_deployer/docker/root/scripts/utils/common.py | af62838cd6f4154cda9d3cd57d19315a76147229 | [
"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,055 | py | common.py | """
Copyright 2021 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... |
9e32aef88522f28f5ce81bcfcfa855e8f4ecafcf | ae31542273a142210a1ff30fb76ed9d45d38eba9 | /gpMgmt/bin/gpcheckcat_modules/repair_missing_extraneous.py | 49eada7c55487a7f11f7030d05a82f2148bf4506 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"PostgreSQL",
"OpenSSL",
"LicenseRef-scancode-stream-benchmark",
"ISC",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-ssleay-windows",
"BSD-2-Clause",
"Python-2.0"
] | permissive | greenplum-db/gpdb | 8334837bceb2d5d51a684500793d11b190117c6a | 2c0f8f0fb24a2d7a7da114dc80f5f5a2712fca50 | refs/heads/main | 2023-08-22T02:03:03.806269 | 2023-08-21T22:59:53 | 2023-08-22T01:17:10 | 44,781,140 | 6,417 | 2,082 | Apache-2.0 | 2023-09-14T20:33:42 | 2015-10-23T00:25:17 | C | UTF-8 | Python | false | false | 2,990 | py | repair_missing_extraneous.py | #!/usr/bin/env python3
from gppylib.utils import escapeDoubleQuoteInSQLString
class RepairMissingExtraneous:
def __init__(self, catalog_table_obj, issues, pk_name):
self.catalog_table_obj = catalog_table_obj
catalog_name = self.catalog_table_obj.getTableName()
self._escaped_catalog_name =... |
2a8db5833f6dcdf784987cf5f709092a1764c29c | fa3f6d4e9169fb95f828013d179d03accdff381b | /grr/client/grr_response_client/client_utils.py | a5bc162d75f08abd2544fa12730336cb1b993188 | [
"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 | 4,729 | py | client_utils.py | #!/usr/bin/env python
"""Client utilities."""
import logging
import os
import sys
from typing import Text
from grr_response_core.lib.rdfvalues import client_fs as rdf_client_fs
from grr_response_core.lib.rdfvalues import paths as rdf_paths
from grr_response_core.lib.util import filesystem
# pylint: disable=g-import... |
f0c00f619309b52eeb31d4e8ad67702f584c1d52 | ce99bd11ca505967277f4689c621479c1987698e | /tools/ge-stats.py | e2737a0a143c29d182ab77868c2c956022fe61c2 | [] | no_license | n64decomp/007 | 5951258890f15431f273e1503674c5e0402c66e0 | c46751089ddc18b12ef7a45b6a3e03de2054c422 | refs/heads/master | 2022-11-08T23:34:54.021033 | 2022-10-29T14:41:01 | 2022-10-29T14:41:01 | 241,212,109 | 359 | 48 | null | 2020-11-21T23:30:31 | 2020-02-17T21:31:00 | C | UTF-8 | Python | false | false | 29,994 | py | ge-stats.py | import datetime
import errno
import functools
import getopt
import os
import re
import shlex
import socket
import subprocess
import sys
import time
"""
re-writing the original ge-stats py. - Ben Burns, Dec 18, 2021
The general approach is to scan for source files in the specified directories (*.s, *.c)... |
b7ea3ee01ef000f3a414034b05391a9e6b5ed6c3 | 6c37d1d2437a08e43b13d621d4a8da4da7135b3a | /yt_dlp/extractor/camwithher.py | a0b3749edfcf1bd2c795c256b4d2069bae640f75 | [
"Unlicense",
"GPL-2.0-or-later",
"MPL-2.0",
"BSD-3-Clause",
"GPL-3.0-or-later",
"LGPL-2.1-only",
"BSD-2-Clause",
"MIT"
] | permissive | yt-dlp/yt-dlp | be040bde10cc40258c879c75ab30215686352824 | d3d81cc98f554d0adb87d24bfd6fabaaa803944d | refs/heads/master | 2023-09-05T21:15:21.050538 | 2023-09-05T20:35:23 | 2023-09-05T20:35:23 | 307,260,205 | 52,742 | 5,376 | Unlicense | 2023-09-14T05:22:08 | 2020-10-26T04:22:55 | Python | UTF-8 | Python | false | false | 3,188 | py | camwithher.py | import re
from .common import InfoExtractor
from ..utils import (
int_or_none,
parse_duration,
unified_strdate,
)
class CamWithHerIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?camwithher\.tv/view_video\.php\?.*\bviewkey=(?P<id>\w+)'
_TESTS = [{
'url': 'http://camwithher.tv/view_vi... |
1603181fcc28fc23bc46c44112a80124f67d4deb | 66a9c25cf0c53e2c3029b423018b856103d709d4 | /sleekxmpp/plugins/xep_0202/stanza.py | b6ccc960163ebc4d171ff357a7c08008fe1f49b8 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | fritzy/SleekXMPP | 1b02d3e2b22efeb6bf3f8f487e6c0343b9b85baf | cc1d470397de768ffcc41d2ed5ac3118d19f09f5 | refs/heads/develop | 2020-05-22T04:14:58.568822 | 2020-02-18T22:54:57 | 2020-02-18T22:54:57 | 463,405 | 658 | 254 | NOASSERTION | 2023-06-27T20:05:54 | 2010-01-08T05:54:45 | Python | UTF-8 | Python | false | false | 3,689 | py | stanza.py | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import logging
import datetime as dt
from sleekxmpp.xmlstream import ElementBase
from sleekxmpp.plugins import xep_0082
from sleekxmpp.thirdpart... |
ccb84d677c8d515738221a64137603edbd382ad5 | 1270c0406445c3327b0ccaeff109048b23520c60 | /scan_to_paperless/process_utils.py | 22dc93b9cf94dab9f4d70370674ea1fce7213115 | [
"BSD-2-Clause"
] | permissive | sbrunner/scan-to-paperless | 740f22f25149afc5cc01d0e827f03311fb4bc27c | ecaf35426a812ec3ea5cb12e04596d09fdadb9d3 | refs/heads/test | 2023-08-31T13:23:16.032719 | 2023-08-30T17:36:56 | 2023-08-31T07:10:26 | 155,273,175 | 154 | 15 | BSD-2-Clause | 2023-09-14T17:58:51 | 2018-10-29T20:00:45 | Python | UTF-8 | Python | false | false | 12,373 | py | process_utils.py | """Utility functions and context used in the process."""
import logging
import math
import os
from typing import TYPE_CHECKING, Any, Callable, Optional, Union, cast
import cv2
import numpy as np
from PIL import Image
import scan_to_paperless
import scan_to_paperless.jupyter_utils
import scan_to_paperless.status
from... |
3cb02c6240674af8ebca5ddf57b5a4adccd28b23 | e7bf1ff05319acc59bba5af5890041bd82c3e197 | /mne/io/nirx/_localized_abbr.py | c12133ef994a363df352752ceb6ab466b2e20eb3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mne-tools/mne-python | 7e8d7e945dfbbee6432a4955cf050fa823f2d34b | f44636f00666b8eb869417960926d01690ff4f42 | refs/heads/main | 2023-09-04T03:05:37.402100 | 2023-09-03T14:15:18 | 2023-09-03T14:15:18 | 1,301,584 | 2,437 | 1,418 | BSD-3-Clause | 2023-09-14T19:23:38 | 2011-01-28T03:31:13 | Python | UTF-8 | Python | false | false | 3,950 | py | _localized_abbr.py | """Localizations for meas_date extraction."""
# Authors: Eric Larson <larson.eric.d@gmail.com>
#
# License: BSD-3-Clause
# This file was generated on 2021/01/31 on an Ubuntu system.
# When getting "unsupported locale setting" on Ubuntu (e.g., with localepurge),
# use "sudo locale-gen de_DE" etc. then "sudo update-loca... |
4ed982b6b03e21c50ed89858d1dd34d517aa8593 | 091a6200be74bf6577c86f623665bcc24e16b02b | /Matrix_Portal_Flow_Viewer/flow_runner.py | 50321430cc4512de10bef470fdafcc44cc875e1b | [
"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 | 989 | py | flow_runner.py | # SPDX-FileCopyrightText: 2020 Carter Nelson for Adafruit Industries
#
# SPDX-License-Identifier: MIT
#======
# NOTE: Run this on your PC, not the Matrix Portal.
#======
import sys
import numpy as np
from PIL import Image
from ecoulements import systeme
# load geometry
grid = np.where(np.asarray(Image.open(sys.argv[1... |
7c2f026f2fa651c1203c38ec109c737f9c1b5046 | ed6c9903832748003a9208112be9c3db184954dc | /doc/LectureNotes/_build/jupyter_execute/resamplingmethods.py | bf919c97544bdb61fe00b35c15f8310103d2ff19 | [
"CC0-1.0"
] | permissive | CompPhysics/ComputationalPhysics2 | ece24a2b16d7ed391c759765e228ddb484408757 | 73b364a3fc7df6e23e43876f1d5b6305a9f893cf | refs/heads/gh-pages | 2023-08-31T05:09:39.554926 | 2023-05-07T01:51:00 | 2023-05-07T01:51:00 | 28,933,001 | 128 | 65 | CC0-1.0 | 2022-03-03T21:50:27 | 2015-01-07T20:38:21 | null | UTF-8 | Python | false | false | 27,314 | py | resamplingmethods.py | #!/usr/bin/env python
# coding: utf-8
# # Resampling Techniques, Bootstrap and Blocking
#
#
#
# ## Why resampling methods ?
# **Statistical analysis.**
#
# * Our simulations can be treated as *computer experiments*. This is particularly the case for Monte Carlo methods
#
# * The results can be analysed wi... |
91b0bc69f69bf7cd77443d43d161c60d2fa11920 | 80f94bea418d7956df1ba19d4d6a1d7715a94ade | /lib/galaxy/datatypes/hdf5.py | 87e8a70d82d11d1529f64d2b27aa4a6efc00c5bc | [
"CC-BY-2.5",
"MIT",
"CC-BY-3.0",
"AFL-3.0"
] | permissive | galaxyproject/galaxy | 5748409eb6693b1611f289d164f85e20c3237495 | b9ae7a16ba0465995e880ae9701b7e87226b9bab | refs/heads/dev | 2023-08-28T22:35:51.248138 | 2023-08-26T08:02:33 | 2023-08-26T08:02:33 | 31,211,061 | 1,277 | 1,137 | NOASSERTION | 2023-09-14T19:39:01 | 2015-02-23T14:18:06 | Python | UTF-8 | Python | false | false | 2,671 | py | hdf5.py | """Composite datatype for the HDF5SummarizedExperiment R data object.
This datatype was created for use with the iSEE interactive tool.
"""
from typing import Optional
from galaxy.datatypes.data import Data
from galaxy.datatypes.metadata import MetadataElement
from galaxy.datatypes.protocols import (
HasExtraFile... |
40df4ed8b312eef982cea0f207525a6d1b25507f | f576f0ea3725d54bd2551883901b25b863fe6688 | /tools/azure-sdk-tools/tests/integration/conftest.py | a2aec165281921ca9d3c70ac7d369e53a6f82129 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 143 | py | conftest.py | import pytest
from devtools_testutils import test_proxy
@pytest.fixture(scope="session", autouse=True)
def start_proxy(test_proxy):
return
|
ec95d6bf801e10596716796670987c898f4f3266 | 5be3a03ca2d74e0263338af3cc91d2cf1b7f75d9 | /beautifulsoup/beautifuldemo.py | bc4595b1cdf364ba464c3cfb4051ea22ca7b2257 | [] | no_license | secondtonone1/python- | d969a1bbc5c8c2b27a0bb75f91159da6d1ce83f7 | 19a66d70c20293875ad29a868f42a9b3a5826422 | refs/heads/master | 2022-11-05T00:31:53.300764 | 2022-09-26T03:10:11 | 2022-09-26T03:10:11 | 98,652,204 | 177 | 154 | null | 2022-10-30T08:55:38 | 2017-07-28T13:29:05 | Python | UTF-8 | Python | false | false | 2,661 | py | beautifuldemo.py | #-*-coding:utf-8-*-
import requests
import re
import time
from lxml import etree
from bs4 import BeautifulSoup
if __name__ == "__main__":
#html = '''div id="sslct_menu" class="cl p_pop" style="display: none;">
#<span class="sslct_btn" onClick="extstyle('')" title="默认"><i></i></span></div>
#<ul id="myitem_... |
b0879469dc89212e7ee8840527677c7727525c0c | 0b7c3acec16b87843c963b3e1bbe0e6b61073b47 | /chatlog/base/constant.py | e6acc3f9b75e8fdae222de19225d73ec27023ba1 | [
"Apache-2.0"
] | permissive | DingHanyang/chatLog | 8ab3f2db41484d33f41573ce9f6ffaf99f2c7e7d | 2ac503faa3fd48019e5ddffbc5d37e54f8f30f25 | refs/heads/master | 2023-06-22T21:17:49.227116 | 2023-04-17T02:22:23 | 2023-04-17T02:22:23 | 94,080,895 | 149 | 36 | Apache-2.0 | 2023-06-11T14:29:13 | 2017-06-12T09:50:52 | Python | UTF-8 | Python | false | false | 316 | py | constant.py | # re
JUDGE_TIME_RE = '^(((20[0-3][0-9]-(0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|(20[0-3][0-9]-(0[2469]|11)-(0[1-9]|[12][' \
'0-9]|30))) (20|21|22|23|[0-9]|[0-1][0-9]):[0-5][0-9]:[0-5][0-9])'
JUDGE_ID_RE = '[(][1-9]\d{4,}[)]$|[<][A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}[>]$'
|
05f81d32b97994f25b7d5dcb48050e29c918c6bf | b4c904a288393ec372b3b9feb91960c102d201f3 | /aleph/model/mapping.py | 4d052ba9755fa7ac47833d8269d59f94c75e3d41 | [
"MIT"
] | permissive | alephdata/aleph | 31909b3e5678f4a72721a239d761aafb734ffcd4 | 0bcdac81768058cc4055b1aa1ad7069026569f5e | refs/heads/develop | 2023-09-05T07:28:01.863600 | 2023-09-04T18:19:22 | 2023-09-04T18:19:22 | 23,404,128 | 1,481 | 270 | MIT | 2023-09-13T12:56:37 | 2014-08-27T20:21:51 | JavaScript | UTF-8 | Python | false | false | 3,787 | py | mapping.py | import logging
from datetime import datetime
from normality import stringify
from sqlalchemy.dialects.postgresql import JSONB
from aleph.core import db
from aleph.model import Role, Collection
from aleph.model.entityset import EntitySet
from aleph.model.common import iso_text, DatedModel, Status
from aleph.model.commo... |
1f65708184bb80589abd9cb08d31d9f3349350d8 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/Structure/__init___parts/Hub.py | 1e7605848d728ab79a64922d336195cd6ed8e3d3 | [
"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,641 | py | Hub.py | class Hub(Element,IDisposable):
""" Represents a connection between two or more Autodesk Revit Elements. """
def Dispose(self):
""" Dispose(self: Element,A_0: bool) """
pass
def getBoundingBox(self,*args):
""" getBoundingBox(self: Element,view: View) -> BoundingBoxXYZ """
pass
def GetHubConnectorMan... |
ad706c8dff7a923bc8324b25b38ac217ba387942 | 6f797bae522927214b4c4065d88b92d6fff127e0 | /kur/backend/pytorch/modules.py | 9b168998e1286fe046ecee3b6a0d0176b93b9fd5 | [
"Apache-2.0",
"Python-2.0"
] | permissive | deepgram/kur | 5a3c6b5dba462327ccb134dcde53bf60ee4bf1fd | fd0c120e50815c1e5be64e5dde964dcd47234556 | refs/heads/master | 2023-08-17T11:38:47.613445 | 2020-11-04T19:09:50 | 2020-11-04T19:09:50 | 74,182,569 | 873 | 139 | Apache-2.0 | 2023-01-28T21:50:24 | 2016-11-19T02:42:09 | Python | UTF-8 | Python | false | false | 14,729 | py | modules.py | """
Copyright 2017 Deepgram
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
distri... |
14f67fa4ecdcd0b5d221e5e08e1390e83b2d9a31 | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /telemetry/telemetry/internal/forwarders/forwarder_utils_unittest.py | c33e9b27a48e4d691d66099f1c0c014218355b81 | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 829 | py | forwarder_utils_unittest.py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import absolute_import
import tempfile
import unittest
from telemetry import decorators
from telemetry.internal.forwarders import forwarder_... |
5d442c8f5c3b7a927e8b88c42f9efe7aad0ca94a | 7f67919b5f5e087e8a26eacd8d5d1c1f94224cc6 | /python/pyarmnn/examples/speech_recognition/run_audio_file.py | ddf6cb704c7457de1e45002fdd536d8c700e6e17 | [
"BSD-3-Clause",
"CC0-1.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ARM-software/armnn | 11f0b169291ade6a08cbef1e87b32000aeed4767 | 49f609d9e633f52fcdc98e6e06178e618597e87d | refs/heads/branches/armnn_23_05 | 2023-09-04T07:02:43.218253 | 2023-05-15T10:24:43 | 2023-05-15T16:08:53 | 124,536,178 | 1,053 | 329 | MIT | 2023-05-22T23:28:55 | 2018-03-09T12:11:48 | C++ | UTF-8 | Python | false | false | 3,375 | py | run_audio_file.py | # Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
# SPDX-License-Identifier: MIT
"""Automatic speech recognition with PyArmNN demo for processing audio clips to text."""
import sys
import os
import numpy as np
script_dir = os.path.dirname(__file__)
sys.path.insert(1, os.path.join(script_dir, '..', 'c... |
67f263eab91b426e225dbb5eb865e1181ee472ad | 503bfe863ae9e92bf940a5e8baa57c0de44f4da6 | /src/silx/math/medianfilter/test/test_medianfilter.py | 023e03c89babd326120f301aa445938ad65bc472 | [
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | silx-kit/silx | 58105c0ed9cd02c75543c0c67a027471ca87922b | 5e33cb69afd2a8b1cfe3183282acdd8b34c1a74f | refs/heads/main | 2023-08-24T14:33:49.732794 | 2023-07-25T07:44:02 | 2023-07-25T07:44:02 | 43,291,718 | 120 | 78 | MIT | 2023-09-14T13:07:11 | 2015-09-28T09:23:13 | Python | UTF-8 | Python | false | false | 28,518 | py | test_medianfilter.py | # ##########################################################################
# Copyright (C) 2017-2022 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Softwar... |
13bcba5b111d3b341b007e925a4db50f076a0d5d | 9e9e0985789b51210c7fe315ae98949de8b23469 | /tests/parser/functions/test_minmax_value.py | 033381f59f8e6b0456bf54f2bff1d09ab3f99f5c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | vyperlang/vyper | ea614230edccf3424aad746f66874e1f32c55c57 | 158099b9c1a49b5472293c1fb7a4baf3cd015eb5 | refs/heads/master | 2023-08-30T02:18:48.923346 | 2023-08-27T02:59:27 | 2023-08-27T02:59:27 | 73,461,676 | 2,359 | 469 | NOASSERTION | 2023-09-14T13:05:24 | 2016-11-11T08:56:41 | Python | UTF-8 | Python | false | false | 1,730 | py | test_minmax_value.py | import pytest
from vyper.exceptions import InvalidType, OverflowException
from vyper.semantics.types import DecimalT, IntegerT
from vyper.semantics.types.shortcuts import INT256_T, UINT256_T
@pytest.mark.parametrize("typ", sorted(IntegerT.all() + (DecimalT(),)))
@pytest.mark.parametrize("op", ("min_value", "max_valu... |
78799b5b60eebf72125c698cf23cffbcb8a75355 | 659e79c16e072e77481de388481e06be6b087247 | /openfda/spl/process_barcodes.py | 3a92938cfdb22990318d2243b70511929793c04f | [
"CC0-1.0"
] | permissive | FDA/openfda | 731e7903b3dadcf01bb604008bf55b3c120931a7 | 01a7357aeb69fc8245a591b24ac79bd39de49027 | refs/heads/master | 2023-08-05T15:23:59.843665 | 2022-05-17T15:53:08 | 2022-05-17T15:53:08 | 20,379,117 | 438 | 117 | CC0-1.0 | 2022-12-26T21:35:23 | 2014-06-01T14:43:10 | Python | UTF-8 | Python | false | false | 2,790 | py | process_barcodes.py | #!/usr/local/bin/python
from io import StringIO
import logging
import io
import xml.parsers.expat
from os.path import basename
import simplejson as json
import xmltodict
from openfda.common import strip_unicode
XML_ESCAPE_CHARS = {
'"': '"',
'\'': ''',
'<': '<',
'>': '>',
'&': '&'
}
BA... |
23604576ca4ee715caf815360fd108c184bbebd1 | ca35ba3894b46c7c851ac12ba4723d5b9714102b | /tests/test_templates.py | 3d05d64777f613046b5f24aeebda8e9513020080 | [
"MIT",
"0BSD"
] | permissive | pyscaffold/pyscaffold | 4ec2fd57938e3e9d159bd9289c6b41c2feecde91 | 14ff8554f25c83845687315c0a251048e76784ba | refs/heads/master | 2023-08-30T21:55:56.370277 | 2023-06-20T15:54:36 | 2023-06-20T15:54:36 | 18,357,535 | 1,479 | 159 | NOASSERTION | 2023-06-28T04:37:01 | 2014-04-02T07:01:57 | Python | UTF-8 | Python | false | false | 3,285 | py | test_templates.py | import sys
from configparser import ConfigParser
from pathlib import Path
import pytest
from pyscaffold import actions, api
from pyscaffold import dependencies as deps
from pyscaffold import info, templates
def test_get_template():
template = templates.get_template("setup_py")
content = template.safe_substi... |
aadb604d8fa9a0b01777c367eb31c7bbdbbb8ce7 | dec5a11d95f7b87da9985362dca4dc573a8bd805 | /tdda/constraints/examples/accounts_verify_1k.py | d6a1fd5e017d396f979d343cdc8d4ffb8ec37101 | [
"MIT"
] | permissive | tdda/tdda | 37d37e51c13362e65af07fe81708bb126fa568eb | 08e1ec6d7397f2b0f527ac59698180ba54e53814 | refs/heads/master | 2023-02-19T00:08:40.983473 | 2023-02-10T19:49:27 | 2023-02-10T19:49:27 | 58,143,323 | 275 | 34 | MIT | 2019-07-02T14:44:33 | 2016-05-05T16:00:57 | Python | UTF-8 | Python | false | false | 223 | py | accounts_verify_1k.py | # accounts_verify_1k.py
from __future__ import print_function
import pandas as pd
from tdda.constraints.pd.constraints import verify_df
df = pd.read_csv('testdata/accounts1k.csv')
print(verify_df(df, 'accounts1k.tdda'))
|
dd4dbc9be224245428f060a752f65168da6a26fb | 54292bb222c6525217458e92ddacfc4e2635b83e | /python/phonenumbers/data/region_AU.py | f608a4b46ab5a8e0b14ae049ed83a3e157b9511c | [
"Apache-2.0"
] | permissive | daviddrysdale/python-phonenumbers | 0d69b48033d1464c0a6c358274062f1db2ee8c4a | 2f06ef6db2ca83f3856fbb8019a0c665f5971b13 | refs/heads/dev | 2023-08-31T09:37:20.570690 | 2023-08-22T05:18:22 | 2023-08-22T05:18:22 | 1,643,611 | 2,944 | 406 | Apache-2.0 | 2023-08-08T06:49:07 | 2011-04-21T03:06:38 | Python | UTF-8 | Python | false | false | 4,187 | py | region_AU.py | """Auto-generated file, do not edit by hand. AU metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_AU = PhoneMetadata(id='AU', country_code=61, international_prefix='001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
general_desc=PhoneNumberDesc(national_number_p... |
8c846db5a27f25fd23349da82276a84c8b16d7f8 | d2621d10d6d0aa4fcecbb11c281e3dd680b985fc | /examples/image_classifier/resnet_18/model.py | e3d61bc5d5fa196b1ea4a1f1dc5664e93944801e | [
"Apache-2.0"
] | permissive | pytorch/serve | 7b562a4d6372e77ce28fc71a5b8d5455c6f02290 | 242895c6b4596c4119ec09d6139e627c5dd696b6 | refs/heads/master | 2023-08-31T05:24:10.950144 | 2023-08-31T02:49:22 | 2023-08-31T02:49:22 | 212,488,700 | 3,689 | 895 | Apache-2.0 | 2023-09-13T22:34:31 | 2019-10-03T03:17:43 | Java | UTF-8 | Python | false | false | 187 | py | model.py | from torchvision.models.resnet import ResNet, BasicBlock
class ImageClassifier(ResNet):
def __init__(self):
super(ImageClassifier, self).__init__(BasicBlock, [2, 2, 2, 2])
|
bcfc936974484b1e4539a1af6a4aa93d6777ce30 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/CommonScripts/Scripts/DeduplicateValuesbyKey/DeduplicateValuesbyKey_test.py | 91a1e1f446fa8d08eb794e55279d32f93858a84a | [
"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 | 1,776 | py | DeduplicateValuesbyKey_test.py |
import pytest
def test_generate_unique_values_from_objects():
from DeduplicateValuesbyKey import generate_unique_values_from_objects
objects = [
{
"key": "value1",
"value": "value1"
},
{
"key": "value1",
"value": "value2"
},
... |
c0a2de15ac5ad6d000cfeca19d1470f369271bb1 | 8c0b804f1cc8cbf2f8788727df22a2cc149f7b5c | /gala/dynamics/mockstream/mockstream_generator.py | 6b1bef07d06c12634176560434745c6ef1e16ad1 | [
"MIT"
] | permissive | adrn/gala | 579cc5a4ecb22df118e1c8a2322a46e935825054 | f62e1a6ae7a8466a4db5c8407471b524cf085637 | refs/heads/main | 2023-09-04T11:42:07.278388 | 2023-08-18T18:04:35 | 2023-08-18T18:04:35 | 17,577,779 | 115 | 89 | MIT | 2023-09-05T11:40:10 | 2014-03-10T00:56:18 | Python | UTF-8 | Python | false | false | 12,192 | py | mockstream_generator.py | # Third-party
import numpy as np
# This package
from .. import combine, PhaseSpacePosition
from ..nbody import DirectNBody
from ...potential import Hamiltonian, PotentialBase
from ...integrate.timespec import parse_time_specification
from ._mockstream import mockstream_dop853, mockstream_dop853_animate
from .core impo... |
378e888269b93596cc9f2411f6fdb37ac1aaf658 | 6c29f457a5e787309b344fec53c133845d8985e8 | /tests/optim/test_adam.py | 77523d633cf019af917d3757e2dd011a2e5ccde3 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | facebookresearch/fairscale | eb378e44cca951e242fb58f82522d9ba8e87d732 | 164cc0f3170b4a3951dd84dda29c3e1504ac4d6e | refs/heads/main | 2023-09-04T12:48:14.924836 | 2023-04-20T03:41:53 | 2023-04-20T03:41:53 | 277,899,703 | 2,553 | 257 | NOASSERTION | 2023-08-28T19:02:48 | 2020-07-07T19:02:01 | Python | UTF-8 | Python | false | false | 13,875 | py | test_adam.py | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
from copy import deepcopy
import functools
import pytest
import torch
try:
from fairscale.optim import Adam, GradSc... |
7340066260053edf022dafbbe2e0377e4f67bdfc | 119646d6e1f13582c577fd7b87c9654839a0b806 | /hubspot/marketing/events/api/attendance_subscriber_state_changes_api.py | 966c2a6902b719d6953d78a7e101cea1c691e8d3 | [] | permissive | HubSpot/hubspot-api-python | 446daaceeb3a6ce27edcd0414603c6d4bc07e327 | d51a64c413461c0b82d8a41743e752d878747ca1 | refs/heads/master | 2023-08-31T09:52:56.583803 | 2023-08-07T11:00:27 | 2023-08-07T11:00:27 | 248,865,684 | 227 | 98 | Apache-2.0 | 2023-09-14T15:25:19 | 2020-03-20T22:41:24 | Python | UTF-8 | Python | false | false | 19,731 | py | attendance_subscriber_state_changes_api.py | # coding: utf-8
"""
Marketing Events Extension
These APIs allow you to interact with HubSpot's Marketing Events Extension. It allows you to: * Create, Read or update Marketing Event information in HubSpot * Specify whether a HubSpot contact has registered, attended or cancelled a registration to a Marketing E... |
e06c311045cdb27639b3dc39d7065d3432ba299a | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/framework/docstr/inv.py | 65f27dd5af62c6e2c2ca4726407614dc278465a0 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 5,316 | py | inv.py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
525bd768aad10ba2065a553c0ef2568a987076d6 | f27e3fdc97290b1db6d3fa7039ad59e4f8b5a760 | /tensorflow/vision/mnist-dnn-rich.py | b2e117b38fe165286ad5311dd4290f9b22168823 | [] | no_license | comet-ml/comet-examples | 9c7bcea8b97986fb7987cbe0f4533f619e2a0939 | 9da5d4f296e633bb7e63b47dc2d3f7a0780c0a4e | refs/heads/master | 2023-08-19T03:32:51.864273 | 2023-08-09T09:30:34 | 2023-08-09T09:30:34 | 158,587,515 | 134 | 55 | null | 2023-09-13T16:58:41 | 2018-11-21T18:00:34 | Jupyter Notebook | UTF-8 | Python | false | false | 3,015 | py | mnist-dnn-rich.py | from __future__ import print_function
import logging
import utils
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
from comet_ml import Experiment
import tensorflow as tf
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Flatten, Den... |
c7b292f57472f0a076411f97cb73c3a342d38916 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow_Pandas_Numpy/source3.6/dateutil/tz/__init__.py | 5a2d9cd6e1f74a5553706ba5e916dc5c6a86267d | [
"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 | 551 | py | __init__.py | # -*- coding: utf-8 -*-
from .tz import *
from .tz import __doc__
#: Convenience constant providing a :class:`tzutc()` instance
#:
#: .. versionadded:: 2.7.0
UTC = tzutc()
__all__ = ["tzutc", "tzoffset", "tzlocal", "tzfile", "tzrange",
"tzstr", "tzical", "tzwin", "tzwinlocal", "gettz",
"enfold",... |
2d40b0fc291576b5c6cdd05d95fc4b495296bc5d | dd221d1ab80a49190a0c93277e2471debaa2db95 | /hanlp/components/parsers/biaffine/biaffine.py | 0d2212c923641c930df7c59f4c3f1f817c05deff | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | hankcs/HanLP | 29a22d4e240617e4dc67929c2f9760a822402cf7 | be2f04905a12990a527417bd47b79b851874a201 | refs/heads/doc-zh | 2023-08-18T12:48:43.533453 | 2020-02-15T17:19:28 | 2023-03-14T02:46:03 | 24,976,755 | 32,454 | 9,770 | Apache-2.0 | 2023-08-13T03:11:39 | 2014-10-09T06:36:16 | Python | UTF-8 | Python | false | false | 3,526 | py | biaffine.py | # MIT License
#
# Copyright (c) 2020 Yu Zhang
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, pub... |
a1f333e36a4caf2cf7d13df0448fc7a6702bf9b7 | 4a88c0b94fbff9f13f346b1856d7be467b5ed91a | /src/exo/pattern_match.py | 47a6b5e6336defbe6bf594d9c56f9344c4e7e91b | [
"MIT"
] | permissive | exo-lang/exo | d440562fa4d81d72cd82c255da27d0daf7493974 | a7cd77ee0f8d2bab5f3b003491fda33ac5482cb5 | refs/heads/master | 2023-08-31T20:20:27.328963 | 2023-08-07T16:01:18 | 2023-08-07T16:01:18 | 285,721,510 | 220 | 19 | MIT | 2023-09-14T00:20:05 | 2020-08-07T02:49:05 | Python | UTF-8 | Python | false | false | 13,419 | py | pattern_match.py | from __future__ import annotations
import inspect
import re
from typing import Optional, Iterable
import exo.pyparser as pyparser
from exo.LoopIR import LoopIR, PAST
# --------------------------------------------------------------------------- #
# ---------------------------------------------------------------------... |
0006fa9cfd613f4baa9757c5a8fd7e45a829fa8d | 767b09cdf51803d533ebb5906042ed1f92f91a7c | /allennlp_models/rc/dataset_readers/__init__.py | 6e227fc66c0dd353c6e35a224ae2f04a56def698 | [
"Apache-2.0"
] | permissive | allenai/allennlp-models | e93bb3b084e99e211d5ebb515b765de117e41970 | b1f372248c17ad12684d344955fbcd98e957e77e | refs/heads/main | 2023-09-05T01:57:37.434101 | 2022-11-24T00:06:05 | 2022-11-24T00:06:05 | 246,170,605 | 520 | 172 | Apache-2.0 | 2022-11-24T00:06:06 | 2020-03-10T00:22:21 | Python | UTF-8 | Python | false | false | 421 | py | __init__.py | from allennlp_models.rc.dataset_readers.drop import DropReader
from allennlp_models.rc.dataset_readers.qangaroo import QangarooReader
from allennlp_models.rc.dataset_readers.quac import QuACReader
from allennlp_models.rc.dataset_readers.squad import SquadReader
from allennlp_models.rc.dataset_readers.transformer_squad ... |
15d340b4fa68161687b70883517ebab3f4af84ef | 2337351b228818e41be3002bd38f68f77c2aa074 | /services/nbi/service.py | fb2571ac11b0f031d81388e2745af29a22f65d63 | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 803 | py | service.py | #!./bin/python
# ----------------------------------------------------------------------
# nbi service
# ----------------------------------------------------------------------
# Copyright (C) 2007-2023 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# N... |
5d404811bb5799c21265621e53cc2963d0b318b9 | 66040b97481106cd596db1557b4de8250835f657 | /buffalo/evaluate/base.py | 2a5146984cc5d300cf87ab880c7fc6c3b25eaed0 | [
"Apache-2.0",
"MPL-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kakao/buffalo | 1ac94cfc74be5e1b4889257c75f921d29caa4d92 | ee01d5bee1dffecf207c28df511c9724acce41d7 | refs/heads/dev | 2023-08-22T22:11:05.643603 | 2023-06-27T16:50:48 | 2023-06-27T16:50:48 | 204,726,945 | 615 | 140 | Apache-2.0 | 2023-09-14T04:44:48 | 2019-08-27T14:56:48 | Python | UTF-8 | Python | false | false | 5,060 | py | base.py | import numpy as np
from buffalo.parallel._core import quickselect
class Evaluable(object):
def __init__(self, *args, **kargs):
pass
def prepare_evaluation(self):
if not self.opt.validation or not self.data.has_group("vali"):
return
if hasattr(self.data, "vali_data") is Fa... |
5d23dfa253fa19fc9e5cb683c512da125dba65dc | b18cf6b2f861bfda619312fc2fcb6ea990d7c57e | /rivalcfg/mouse.py | f3a396b267f4dc6095292061159fc273110a6bd1 | [
"WTFPL"
] | permissive | flozz/rivalcfg | 8b45df8e04eefe32bfff460f4493d11ce5b77975 | 32800c58d8c067d7187611f6207a6bfe6b17ade0 | refs/heads/master | 2023-08-03T01:44:56.734014 | 2023-07-11T10:50:23 | 2023-07-11T10:50:23 | 54,918,040 | 741 | 103 | WTFPL | 2023-09-11T12:33:56 | 2016-03-28T19:30:28 | Python | UTF-8 | Python | false | false | 11,654 | py | mouse.py | import time
from . import usbhid
from . import devices
from . import handlers
from . import helpers
from . import mouse_settings
def get_mouse(vendor_id=0x1038, product_id=None):
"""Get a :class:`Mouse` instance to manipulate requested device.
:param int vendor_id: The vendor id of the device (optional, by ... |
d5091d43e50b138555ad4b2daed4f323badcc7b1 | 6c9e1a5139ca56b7a5df7d1e7cc7ce4f60e1c8af | /histomicstk/saliency/__init__.py | 6e6bda656139f806a57042efcae6f61d243ea0bf | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | DigitalSlideArchive/HistomicsTK | 251b016066144fbad3efb2065993d7981265ab04 | c03c852e72f1497d22535c6b7d5aba25c74e620d | refs/heads/master | 2023-08-31T02:32:13.773082 | 2023-08-30T20:40:45 | 2023-08-30T20:40:45 | 44,324,447 | 351 | 125 | Apache-2.0 | 2023-09-13T12:24:13 | 2015-10-15T14:49:21 | Python | UTF-8 | Python | false | false | 323 | py | __init__.py | """This module contains various tools to detect tissue.
Included functionality includes methods to detect tissue in a whole-slide image
(i.e. segment foreground from white space), as well as specific workflows
that detect artifacts, specific components (eg blood), and
highly-cellular regions within detected tissue.
"... |
ef0a9ad2609fcb0e7866c5b860382f87e42ca655 | 195131d9f486825f2077f4094c108154543a5acb | /tests/test_link.py | 232a53608465960eef813b9586c6e0dc1f74d69a | [
"MIT"
] | permissive | moshi4/pyGenomeViz | 7e18427b05d5aa64d67681c2a90d13c2da75bf34 | 2f9f96f8468fe1529ddffa73e0aede2302835595 | refs/heads/main | 2023-08-29T14:35:36.999230 | 2023-08-26T08:26:32 | 2023-08-26T08:26:32 | 494,371,930 | 158 | 11 | MIT | 2023-08-26T08:26:33 | 2022-05-20T07:52:33 | Python | UTF-8 | Python | false | false | 2,545 | py | test_link.py | import pytest
from pygenomeviz.link import Link
def test_is_inverted():
"""Test inverted check"""
# Case1. forward-forward
ff_link = Link("1", 1, 100, "2", 101, 200)
assert ff_link.is_inverted is False
# Case2. forward-reverse
fr_link = Link("1", 1, 100, "2", 200, 101)
assert fr_link.is_i... |
97c9f144c0d7ac13905b7c5d6f32514b34384651 | 8880226d2ca1c9448c44b3e9f21226a58e61ac93 | /awacs/memorydb.py | 510ee84842949f581f71f138cab52f8bffb7e901 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | cloudtools/awacs | 2f82958ccc7ba2177492c29c706a5737f19dd2d1 | c449a9637f01c26e73b827a9f8d5cc7715bbbea2 | refs/heads/main | 2023-08-31T00:58:28.636568 | 2023-08-28T05:13:01 | 2023-08-28T05:13:01 | 9,062,692 | 385 | 107 | BSD-2-Clause | 2023-08-13T23:21:39 | 2013-03-27T20:16:27 | Python | UTF-8 | Python | false | false | 2,508 | py | memorydb.py | # Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from typing import Optional
from .aws import Action as BaseAction
from .aws import BaseARN
service_name = "Amazon MemoryDB"
prefix = "memorydb"
class Action(BaseAction):
def __init__(self, action:... |
fc186b3e9c2aca8d42f4397c30a36f57b6696fc6 | 2c1dc7049d820d2b75811a6c0479bd34eb84ad87 | /test/integration/smoke/test_iso.py | c592b6bc6060280612da5fc9ec05e147e40809b8 | [
"GPL-2.0-only",
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown"
] | permissive | apache/cloudstack | 3775c9171022dfaf91d655bd166149e36f4caa41 | 819dd7b75c1b61ae444c45476f5834dbfb9094d0 | refs/heads/main | 2023-08-30T15:05:36.976909 | 2023-08-30T09:29:16 | 2023-08-30T09:29:16 | 9,759,448 | 1,468 | 1,232 | Apache-2.0 | 2023-09-14T16:57:46 | 2013-04-29T22:27:12 | Java | UTF-8 | Python | false | false | 25,960 | py | test_iso.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... |
eba3b3e70ddc92d86bec5ca46fcd7a9d606a6026 | af2082be2d5cbe39f41b82e84e22bbdf79b49639 | /tests/decorator/test_allow_headers.py | 6ad3a0074eacd16fc13a4e786a0b8d3b82549123 | [
"MIT"
] | permissive | corydolphin/flask-cors | 1e0cf851ae66f71cf60a025889f6096a551b4601 | dbabb27884f55d0328482ba92c51ca8397c58974 | refs/heads/main | 2023-08-27T08:37:14.485853 | 2023-07-29T16:50:30 | 2023-07-29T16:50:30 | 11,726,155 | 821 | 156 | MIT | 2023-08-27T22:10:49 | 2013-07-28T21:33:57 | Python | UTF-8 | Python | false | false | 4,323 | py | test_allow_headers.py | # -*- coding: utf-8 -*-
"""
test
~~~~
Flask-Cors tests module
"""
from ..base_test import FlaskCorsTestCase
from flask import Flask
from flask_cors import *
from flask_cors.core import *
class AllowHeadersTestCaseIntegration(FlaskCorsTestCase):
def setUp(self):
self.app = Flask(__name__)
... |
a319b01e4011ee748fa94ddd736ca626725ae710 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/account/_wait.py | ef7447fcce097294495be33ddde74b94b04d349f | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 12,289 | py | _wait.py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... |
bc0ba911b2c6de2865c081c68a557c5b4b31fb62 | 9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20 | /main/fribidi/template.py | 7ddacd176020cff1cb553e8dd1ab6ba408f583cc | [
"BSD-2-Clause"
] | permissive | chimera-linux/cports | fdae59dc25856942be3041e10e3533dbf8f883c3 | 714680161cd719dd047452c95fbb9b447bc23a86 | refs/heads/master | 2023-09-03T19:30:40.720670 | 2023-09-03T15:07:40 | 2023-09-03T15:07:40 | 374,000,317 | 118 | 37 | BSD-2-Clause | 2023-09-14T20:31:08 | 2021-06-05T02:07:34 | Python | UTF-8 | Python | false | false | 558 | py | template.py | pkgname = "fribidi"
pkgver = "1.0.13"
pkgrel = 0
build_style = "meson"
configure_args = ["-Ddocs=false"]
hostmakedepends = ["meson", "pkgconf"]
pkgdesc = "Free implementation of the Unicode Bidirectional Algorithm"
maintainer = "q66 <q66@chimera-linux.org>"
license = "LGPL-2.1-or-later"
url = "https://github.com/fribid... |
ef4107a48e1736d5cef5e4b04f5b27b88414f5e2 | 5ef6c8d47864f471e26b9902d61f8c687e941f05 | /src/genie/libs/parser/iosxe/tests/ShowTemplateServiceSourceUser/cli/equal/golden_output_1_expected.py | ec97976ceac68bf132c8dcaad6dbde621c187cf3 | [
"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 | 395 | py | golden_output_1_expected.py | expected_output = {
'template': {
'webauth-global-inactive': {
'description': 'NONE',
'vnid': 'NONE',
'mdns_policy': 'NONE!',
'inactivity_timer': '3600 sec'
},
'sdsdsds': {
'description': 'dsds sdsds',
'vlan': 5,
... |
205166fef569b17475d2777f35320a176377c9d8 | 3db6fdd04e30dd8c7c524a3436d5c1b413c47787 | /jsonschema2db.py | 71a792d5a7a914f46a73b6765c3b742f1eb8f416 | [
"MIT"
] | permissive | better/jsonschema2db | a6db89c92166b3604c74024284b876b28ff65f58 | fd1c83e45c728eed78cf06b7db8cb5f662b72159 | refs/heads/master | 2023-04-12T18:16:37.038808 | 2022-02-07T20:18:13 | 2022-02-07T20:18:13 | 100,424,905 | 275 | 61 | MIT | 2023-04-07T10:22:08 | 2017-08-15T22:37:42 | Python | UTF-8 | Python | false | false | 23,995 | py | jsonschema2db.py | import change_case
import csv
import datetime
import iso8601
import json
import os
import random
import sys
import tempfile
import warnings
class JSONSchemaToDatabase:
'''JSONSchemaToDatabase is the mother class for everything
:param schema: The JSON schema, as a native Python dict
:param database_flavor... |
6d0e4d46146f291d8aa9760a5abc9a0614c5a7aa | a29b8d6ae6642ef80d04ae99d721b703de06db69 | /maro/forecasting/__init__.py | 583f4de4e05019bbd7c4a464b6406135bcf81083 | [
"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 | 121 | py | __init__.py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from .moving_average import OneStepFixWindowMA
|
f4a7fa0114a0897069e338d8303a3653f15d1f95 | a69294c7d5ee75441759b66bc20cce727350bd59 | /ndb/django_middleware.py | fce0682f3626843d25ce04b73363d4ab673b8206 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/datastore-ndb-python | 58b57437e11104bfe924fca3de2ee28319f2976f | 59cb209ed95480025d26531fc91397575438d2fe | refs/heads/master | 2023-08-21T01:16:54.021744 | 2022-10-20T23:12:51 | 2022-10-20T23:12:51 | 37,215,291 | 127 | 56 | Apache-2.0 | 2022-10-20T23:12:53 | 2015-06-10T18:34:30 | Python | UTF-8 | Python | false | false | 2,192 | py | django_middleware.py | #
# Copyright 2008 The ndb 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 l... |
16e527638d82a544b7b7beee03ad1b686e6d6214 | e25d0450995854b66f9909f4e47634ee5d0d232b | /3rdparty/intx/test/fuzzer/decode.py | aa942d47189ea3a6fdc4d3eed1ce637edb56d284 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/eEVM | d846257ff7155c2c6c294aa6c58a14d4bc7398b8 | 05efed8658b4e10a21253df8408b1f9bdb6f1445 | refs/heads/main | 2023-08-27T01:15:59.048257 | 2023-07-10T13:19:39 | 2023-07-10T13:19:39 | 154,743,215 | 249 | 53 | MIT | 2023-07-10T13:19:41 | 2018-10-25T22:03:09 | C++ | UTF-8 | Python | false | false | 1,690 | py | decode.py | #!/usr/bin/env python3
import os
import sys
ops_filter = ()
ops = ('/', '*', '<<', '>>', '+', '-', 's/')
def err(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def decode_file(file):
with open(file, 'rb') as f:
print("Decoding {}".format(file))
decode_data(f.read())
def decode... |
b9866fc29d41223098d5584337a9ba6d9c3ee436 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /apache/httpd/test/conftest.py | a5c7c6bffb09fb9e1a11605f50291f3e7d0034c8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-zeusbench",
"BSD-3-Clause",
"RSA-MD",
"LicenseRef-scancode-rsa-1990",
"Beerware",
"LicenseRef-scancode-other-permissive",
"Spencer-94",
"metamail",
"LicenseRef-scancode-rsa-... | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 287 | py | conftest.py | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '.'))
from pyhttpd.env import HttpdTestEnv
def pytest_report_header(config, startdir):
env = HttpdTestEnv()
return f"[apache httpd: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]"
|
7e53d6f08f0597bbe8cb49fbd418fe59cba1bf8c | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/StandardVoucherOpenApiVO.py | 3ba53d21598c572756e28776c5d670e1e6f6e7ce | [
"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 | 22,065 | py | StandardVoucherOpenApiVO.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
from alipay.aop.api.domain.MultiCurr... |
369ff97fe8fbce3fc4c6d0bb1628c833b8ec5f2d | 10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8 | /tests/integration/testdata/invoke/cdk/assets/asset.ecc03cd9bbdad1c6d9750d997706058e2e6890371efe8dfe21b7b4e9faf5a2df/app.py | af9f93753402d919430220faa1c02f2df4ad4fc6 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | aws/aws-sam-cli | 6d4411aacf7f861e75e5cf4882a32858797a276d | b297ff015f2b69d7c74059c2d42ece1c29ea73ee | refs/heads/develop | 2023-08-30T23:28:36.179932 | 2023-08-30T21:58:26 | 2023-08-30T21:58:26 | 92,205,085 | 1,402 | 470 | Apache-2.0 | 2023-09-14T21:14:23 | 2017-05-23T18:16:23 | Python | UTF-8 | Python | false | false | 80 | py | app.py | def lambda_handler(event, context):
return "Hello from FunctionBundledAssets!" |
3e87b27c1fed708bdcc6cd394200380cc392ca88 | 6cd1a085c8113030f14a8c992ecd2b45db70c4e2 | /tests/fields/test_factory.py | f0da3838e639ee4d16be1c248d758d53c922fb7b | [
"MIT"
] | permissive | mhostetter/galois | a72e6339ac3bba2fda31e5c9f1228ebc85d5ebe7 | a140a468fa1f7619f94ad2551f9c14e684ee3a34 | refs/heads/master | 2023-07-27T17:02:04.925608 | 2023-05-09T19:39:50 | 2023-05-09T22:37:26 | 312,901,841 | 186 | 25 | MIT | 2023-09-10T14:56:32 | 2020-11-14T21:05:20 | Python | UTF-8 | Python | false | false | 6,468 | py | test_factory.py | """
A pytest module to test the class factory function :obj:`galois.GF`.
"""
import numpy as np
import pytest
import galois
@pytest.mark.parametrize("characteristic,degree", [(2, 1), (2, 8), (3, 1), (3, 5)])
def test_defaults(characteristic, degree):
GF = galois.GF(characteristic**degree)
assert issubclass(G... |
7f95429304344755808a5fad72b74b27e316366e | e9ee565cfff9e6b2a1ea6f73368f4a8948274795 | /src/pybel/testing/cases.py | 8ba4ce237d95dea074eb3bc95b0b49973ee18b14 | [
"MIT"
] | permissive | pybel/pybel | 7e79530b454e23ae48486a5c0e3207744b7fa139 | ed66f013a77f9cbc513892b0dad1025b8f68bb46 | refs/heads/master | 2022-08-26T18:41:25.724850 | 2022-02-11T12:22:35 | 2022-02-11T12:22:35 | 68,376,693 | 133 | 40 | MIT | 2022-02-11T12:11:24 | 2016-09-16T12:09:49 | Python | UTF-8 | Python | false | false | 2,723 | py | cases.py | # -*- coding: utf-8 -*-
"""Test cases for PyBEL testing."""
import logging
import os
import tempfile
import unittest
import pystow
from ..manager import Manager
__all__ = [
"TEST_CONNECTION",
"TemporaryCacheMixin",
"TemporaryCacheClsMixin",
"FleetingTemporaryCacheMixin",
]
logger = logging.getLogg... |
8ad4525a597f28745ca857b6ec9b150dd0bfdb7d | 0760fb4901a75766921a205b55686d6d6f049b30 | /python/ray/train/tensorflow/tensorflow_trainer.py | 6333707e106abd8522935ffacbc02fd581fd06f3 | [
"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 | 7,605 | py | tensorflow_trainer.py | from typing import Any, Callable, Optional, Dict, Union, TYPE_CHECKING
from ray.train import DataConfig
from ray.train.tensorflow.config import TensorflowConfig
from ray.train.trainer import GenDataset
from ray.train.data_parallel_trainer import DataParallelTrainer
from ray.train import Checkpoint, ScalingConfig, RunC... |
fe648c17e9626af829b18d1a2bc8cebaad3c9b91 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /HLTrigger/Configuration/python/HLT_75e33/modules/hltPhase2L3OIL3MuonCandidates_cfi.py | 27d13fe71e8c1276bfe9b8bd96e6e56d8437626c | [
"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 | 294 | py | hltPhase2L3OIL3MuonCandidates_cfi.py | import FWCore.ParameterSet.Config as cms
hltPhase2L3OIL3MuonCandidates = cms.EDProducer("L3MuonCandidateProducer",
InputLinksObjects = cms.InputTag("hltPhase2L3OIL3MuonsLinksCombination"),
InputObjects = cms.InputTag("hltPhase2L3OIL3Muons"),
MuonPtOption = cms.string('Tracker')
)
|
eda6e5996d22b9de34e24669637f1be8e1415819 | 34f1136066c529b94dd1016eaf6f7ba47141b06c | /pyroSAR/snap/data/collect_suffices.py | 1103086a74dc2dfb42cbc95c950ed00450565bc1 | [
"MIT"
] | permissive | johntruckenbrodt/pyroSAR | 1b2103052dff89f56770d90b2a3c6f3b4dc6ae35 | 27d366d41bb5d0b2153e1b7c2f25a3945127abe0 | refs/heads/main | 2023-08-31T08:30:17.954438 | 2023-08-21T09:48:20 | 2023-08-21T09:48:20 | 95,563,172 | 421 | 111 | MIT | 2023-09-12T08:09:18 | 2017-06-27T13:48:33 | Python | UTF-8 | Python | false | false | 3,902 | py | collect_suffices.py | ##############################################################
# SNAP source code scan for retrieving operator suffices
# Copyright (c) 2020-2021, the pyroSAR Developers.
# This file is part of the pyroSAR Project. It is subject to the
# license terms in the LICENSE.txt file found in the top-level
# directory of this... |
372de2edc96b4f09e51638b65f5c6a1a9976d98f | 490f57a6d8dfc6dde28c8caf553b1c1b18e7dfd3 | /nilmtk/legacy/disaggregate/__init__.py | 2fab018cda3d11ae0bac6b5e92977ba9bee81e57 | [
"Apache-2.0"
] | permissive | nilmtk/nilmtk | 280358b257f70e1e893ff4d21cc01c08e0ad17e0 | b2c514479cef478cab872cb635056da08d5352a1 | refs/heads/master | 2023-08-12T09:45:58.010261 | 2023-06-07T06:59:36 | 2023-06-07T06:59:36 | 14,891,877 | 769 | 549 | Apache-2.0 | 2023-06-07T06:59:37 | 2013-12-03T11:39:12 | Python | UTF-8 | Python | false | false | 212 | py | __init__.py | from .disaggregator import Disaggregator
from .combinatorial_optimisation import CombinatorialOptimisation
from .fhmm_exact import FHMM
from .hart_85 import Hart85
from .maximum_likelihood_estimation import MLE
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.