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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e220e2ab2ce4ac5dd9e85403208620fa41df089a | bc6e87f8e9a3f6c35f8080718ac409801dab3b24 | /server/workers/tests/test_clustering.py | 358af7f0c99ee52bf7fafdb2bb4a494dbdde0647 | [
"MIT"
] | permissive | OpenKnowledgeMaps/Headstart | b7f56d8562d044e8d96a08f9f7ae0bc6de1076cd | 94dcc248e1892de7b603d5a4dad175f5d8a128db | refs/heads/master | 2023-08-31T20:06:34.485558 | 2023-08-25T17:34:03 | 2023-08-25T17:34:03 | 15,936,466 | 132 | 36 | MIT | 2023-08-25T17:34:05 | 2014-01-15T13:52:50 | JavaScript | UTF-8 | Python | false | false | 2,193 | py | test_clustering.py | import json
import pytest
import pandas as pd
import numpy as np
from .test_helpers import CASENAMES, CASEDATA, RESULTS, get_dataprocessing_result
@pytest.mark.parametrize("testcase", CASENAMES)
def test_clustering_2_items(testcase):
testcase = CASEDATA[testcase]
metadata = pd.DataFrame.from_records(json.load... |
5db23cb7cb8b4ee35952fcb12cf89f802122517a | ec8d9e1595ccc252a57d1769382bb98d604e40a9 | /test/comp/comp_impute.py | 899cf5365bf7c36a4f2175234e287179bed6782a | [
"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 | 2,128 | py | comp_impute.py | import unittest
import numpy as np
import pandas as pd
from pyrolite.comp.aggregate import np_cross_ratios
from pyrolite.comp.impute import EMCOMP, _little_sweep, _multisweep, _reg_sweep
from pyrolite.util.math import augmented_covariance_matrix
from pyrolite.util.synthetic import (
normal_frame,
normal_serie... |
3c99f1eba7f9a6d727dff12bfe819b9f3a2d2077 | 6a7005ca7e418a18cbfeec296129873aef6446a4 | /DecryptLogin/modules/utils/__init__.py | 58aacbc99bde08a10d1b8173c062b16e1f47c398 | [
"Apache-2.0"
] | permissive | CharlesPikachu/DecryptLogin | f0646d37e8604fb9c41dc74c17c0ea48cb5066ec | bb4228c0535ffd7060b7816cbd1da51ba8d95ab8 | refs/heads/master | 2023-05-22T15:21:59.038844 | 2022-08-29T08:59:05 | 2022-08-29T08:59:05 | 172,416,496 | 2,871 | 809 | Apache-2.0 | 2022-10-06T14:58:49 | 2019-02-25T01:57:20 | Python | UTF-8 | Python | false | false | 247 | py | __init__.py | '''initialize'''
from .misc import showImage, removeImage, saveImage
from .cookies import saveSessionCookies, loadSessionCookies
'''all'''
__all__ = [
'showImage', 'removeImage', 'saveImage',
'saveSessionCookies', 'loadSessionCookies',
] |
0855035d3fe4b403f0101822b93a66b92d28367b | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-dataplex/google/cloud/dataplex_v1/types/datascans.py | 792b14e7cd49e363b535293f45ef34855220221e | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 25,542 | py | datascans.py | # -*- coding: utf-8 -*-
# Copyright 2023 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... |
7517dd7fce1d6aa7d4a3ee7078eee961e099a642 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/pipelines/check_item_properties.py | 1e4dc4457a2127caf6882169cbc21ae9188368a1 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 4,678 | py | check_item_properties.py | import math
import re
from scrapy import Spider
from locations.hours import OpeningHours
from locations.items import get_lat_lon, set_lat_lon
def check_field(item, spider: Spider, param, allowed_types, match_regex=None):
if val := item.get(param):
if not isinstance(val, allowed_types):
spide... |
388b773a695ba7d66b72d07c28bbec030257946d | 44ddd25c6aa008cc0a814f9f49b2344c6a59aedb | /lib/coloraide/css/__init__.py | 441e5b8a7283eea45e2e07cd8430b50d2db77f9f | [
"MIT"
] | permissive | facelessuser/ColorHelper | eb757896fa6e4a9029090188fad789587dc2ed06 | ad4d779bff57a65b7c77cda0b79c10cf904eb817 | refs/heads/master | 2023-08-31T20:51:30.390633 | 2023-08-28T15:53:39 | 2023-08-28T15:53:39 | 31,641,842 | 279 | 41 | MIT | 2023-09-06T23:37:41 | 2015-03-04T06:27:11 | Python | UTF-8 | Python | false | false | 37 | py | __init__.py | """CSS parsing and serialization."""
|
ff3c7fa0a3d3cca6fc1d57d26f82a93799674343 | c6b9b9f2fbc6c62e7a86b02718954661af3c564f | /mmflow/core/hooks/__init__.py | b39b35ae43b9bc10b5ab8f6fdf47ad2286dab76e | [
"Apache-2.0"
] | permissive | open-mmlab/mmflow | a90ff072805ac79cbc0b277baded1e74d25cccf0 | 9fb1d2f1bb3de641ddcba0dd355064b6ed9419f4 | refs/heads/master | 2023-05-22T05:19:48.986601 | 2023-01-10T16:05:18 | 2023-01-10T16:05:18 | 428,493,460 | 808 | 110 | Apache-2.0 | 2023-09-05T13:19:38 | 2021-11-16T02:42:41 | Python | UTF-8 | Python | false | false | 237 | py | __init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .liteflownet_stage_loading import LiteFlowNetStageLoadHook
from .multistagelr_updater import MultiStageLrUpdaterHook
__all__ = ['MultiStageLrUpdaterHook', 'LiteFlowNetStageLoadHook']
|
32b04290d4912d4a92d644d6c37f24738333c27e | cd8a9ac708be8f559da1e9cadc1d5ad457226364 | /mods/GuessTheBomb.py | c88b9adbb9d8622fd9885acd29537c4603a5b616 | [
"Unlicense"
] | permissive | Mrmaxmeier/BombSquad-Community-Mod-Manager | 078d0c95f326979989b8a9338c89724a08bcf077 | aeba3f6858335aa08243c02ea29d4d4c807d43cc | refs/heads/master | 2023-01-25T05:38:15.945963 | 2023-01-22T11:20:19 | 2023-01-22T11:20:19 | 28,673,893 | 143 | 155 | Unlicense | 2020-04-10T10:43:37 | 2014-12-31T19:54:47 | Python | UTF-8 | Python | false | false | 5,362 | py | GuessTheBomb.py | #Made by Paolo Valerdi
import bs
import random
def bsGetAPIVersion():
return 4
def bsGetGames():
return [GuessTheBombGame]
def bsGetLevels():
return [bs.Level('Guess The Bomb',displayName='${GAME}',gameType=GuessTheBombGame,settings={},previewTexName='rampagePreview'),
bs.Level('Epic Guess Th... |
d96be33b7c3a9b75537f1b33c5e7b609696ec889 | e124b63c8542da816e03ef5177112fc7af4d91a8 | /flatdata-generator/tests/generators/py_expectations/structs/integers.py | 0fbf8f38d16e0aec68125362b8468284390688fd | [
"Apache-2.0"
] | permissive | heremaps/flatdata | c5395977ac16af5adfe4824ed99511cae5f691ef | 494f7731fa3cd6780d767fc5d218c783714acdee | refs/heads/master | 2023-09-02T21:11:53.973570 | 2023-08-30T09:34:02 | 2023-08-30T09:34:02 | 118,035,076 | 170 | 28 | Apache-2.0 | 2023-08-30T09:34:03 | 2018-01-18T20:34:58 | Python | UTF-8 | Python | false | false | 3,207 | py | integers.py | #############################################################################
# ATTENTION! #
# This code is automatically generated by flatdata generator. #
# Any modifications to this file will be lost upon next regeneration. #
########... |
3a04d94198483ae30bfbf9cb4b0e05cfd7ad446f | 5ef6c8d47864f471e26b9902d61f8c687e941f05 | /src/genie/libs/parser/iosxe/tests/ShowVersion/cli/equal/golden_output_c4507_expected.py | 5da400037fa3f207555569df93190b0f5d333266 | [
"Apache-2.0"
] | permissive | CiscoTestAutomation/genieparser | 169c196558f1c1a0f0d10650876096f993224917 | b531eff760b2e44cd69d7a2716db6f866907c239 | refs/heads/master | 2023-09-03T08:56:18.831340 | 2023-08-29T22:32:02 | 2023-08-29T22:32:02 | 131,621,824 | 247 | 409 | Apache-2.0 | 2023-08-29T22:32:04 | 2018-04-30T16:51:50 | Python | UTF-8 | Python | false | false | 1,538 | py | golden_output_c4507_expected.py | expected_output = {
"version": {
"chassis": "WS-C4507R+E",
"chassis_sn": "FXS1729E2TD",
"compiled_by": "prod_rel_team",
"compiled_date": "Tue 23-Oct-12 23:51",
"copyright_years": "1986-2012",
"curr_config_register": "0x2101",
"hostname": "switchname",
... |
1b9f5ce4c00ca79a69c0a00d0774e0b849fd808e | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/batchai/azure-mgmt-batchai/azure/mgmt/batchai/operations/_jobs_operations.py | 118e1bc26dc4b65ad75544f70915a8da898c74fa | [
"MIT",
"LicenseRef-scancode-generic-cla",
"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 | 44,822 | py | _jobs_operations.py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
ef82fad8e2aa3e9ec4e617658128287333e3bc6e | e145f05e919cad040c23587eadd11bed1e6bd5e8 | /test/functional/feature_on_chain_government_voting_scenarios.py | 0266ffbcc013390e30f9189a698277617b23986f | [
"MIT"
] | permissive | DeFiCh/ain | f819ea586a9c17f99f8f8ea32982554b7c4fb5e2 | 6908107c4a7ee0e30dabc4ea773820637b42bbfe | refs/heads/master | 2023-08-16T18:51:18.460486 | 2023-08-16T14:11:56 | 2023-08-16T14:11:56 | 228,198,960 | 435 | 146 | MIT | 2023-09-14T16:23:37 | 2019-12-15T14:37:57 | C++ | UTF-8 | Python | false | false | 15,484 | py | feature_on_chain_government_voting_scenarios.py | #!/usr/bin/env python3
# Copyright (c) 2014-2019 The Bitcoin Core developers
# Copyright (c) DeFi Blockchain Developers
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
"""Test OCG voting scenarios"""
from test_framework.test_frame... |
645c41b6ceb696495e07eb1bde25a2c123a87335 | 3225f903ab65e9e242f250a02b3b74fc7e34b098 | /targets/pipistrello/crg.py | daffd3eb9d17b75d978e2f1bee32591c19a1b0b6 | [
"MIT",
"BSD-2-Clause"
] | permissive | timvideos/litex-buildenv | 6f7657a0d2836f66bbc8ad29f89f1f975eda7832 | fafb0f1c645a0d36ff4947686b4d2d8e3433f686 | refs/heads/master | 2022-06-04T18:02:22.567089 | 2022-05-21T15:21:25 | 2022-05-21T15:21:25 | 115,785,208 | 217 | 88 | BSD-2-Clause | 2022-05-21T15:21:26 | 2017-12-30T08:50:22 | Python | UTF-8 | Python | false | false | 6,880 | py | crg.py | # Support for the Pipistrello - http://pipistrello.saanlima.com/
from fractions import Fraction
from migen import *
from migen.genlib.resetsync import AsyncResetSynchronizer
class _CRG(Module):
def __init__(self, platform, clk_freq):
# Clock domains for the system (soft CPU and related components run at... |
6e3324b89dd389b7929a0011aca8bd925f0cc770 | 52a677b94056d3397b4a499bc9185adb68a63f05 | /data/migrations/versions/d42c175b439a_backfill_state_id_and_make_it_unique.py | 1c2f5c6a7204ca7918540349bdc9cb4d1d0fa24b | [
"Apache-2.0"
] | permissive | quay/quay | 9b6fcff54efc0dbf7c6d91fa80676950555b6f1a | e400a0c22c5f89dd35d571654b13d262b1f6e3b3 | refs/heads/master | 2023-08-28T15:08:38.001842 | 2023-08-28T13:52:31 | 2023-08-28T13:52:31 | 220,517,730 | 2,363 | 322 | Apache-2.0 | 2023-09-14T17:43:48 | 2019-11-08T17:37:05 | Python | UTF-8 | Python | false | false | 1,075 | py | d42c175b439a_backfill_state_id_and_make_it_unique.py | """
Backfill state_id and make it unique.
Revision ID: d42c175b439a
Revises: 3e8cc74a1e7b
Create Date: 2017-01-18 15:11:01.635632
"""
# revision identifiers, used by Alembic.
revision = "d42c175b439a"
down_revision = "3e8cc74a1e7b"
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade(op, table... |
498ab35ba593fbc10c92e11427c3cea407fa16c0 | 8a8d68aed7901ef5c400d54c9ff289423780c009 | /pyppeteer/tracing.py | 3d9ff22f1f1c182441054aae59fa322cb90f6db7 | [
"Apache-2.0",
"MIT"
] | permissive | pyppeteer/pyppeteer | fef4207aa83b7754d07232897b7d88b2d40bd8da | 4e88a900bff77b63e62b88bed5afd5f78902db27 | refs/heads/dev | 2023-08-06T19:41:43.889422 | 2023-02-16T00:17:06 | 2023-02-16T00:17:06 | 237,223,760 | 3,112 | 332 | NOASSERTION | 2023-02-16T00:17:08 | 2020-01-30T13:54:40 | Python | UTF-8 | Python | false | false | 3,319 | py | tracing.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tracing module."""
from pathlib import Path
from typing import Any
from pyppeteer.connection import CDPSession
from pyppeteer.util import merge_dict
class Tracing(object):
"""Tracing class.
You can use :meth:`start` and :meth:`stop` to create a trace file ... |
e7dff3e7dbc52c57c57e41f1a1d531e9c2f600fd | 511144d69b15df3f4bad6dc2fbee2ab6adc457d4 | /action/main.py | c0af3930dbbe6f31745e941712e81df3ddb2cae3 | [
"MIT"
] | permissive | psf/black | 7345769d7932d474cb05ca62a73a940608728794 | 47676bf5939ae5c8e670d947917bc8af4732eab6 | refs/heads/main | 2023-09-02T12:44:37.458104 | 2023-08-26T13:44:17 | 2023-08-26T13:44:17 | 125,266,328 | 23,453 | 2,531 | MIT | 2023-09-13T07:40:43 | 2018-03-14T19:54:45 | Python | UTF-8 | Python | false | false | 2,521 | py | main.py | import os
import shlex
import shutil
import sys
from pathlib import Path
from subprocess import PIPE, STDOUT, run
ACTION_PATH = Path(os.environ["GITHUB_ACTION_PATH"])
ENV_PATH = ACTION_PATH / ".black-env"
ENV_BIN = ENV_PATH / ("Scripts" if sys.platform == "win32" else "bin")
OPTIONS = os.getenv("INPUT_OPTIONS", defaul... |
1dc74d4fc82ee464b2ae7eaaad9929ed0cc73c1f | 9ca55981d3245d87d45debce8e9825b60db43046 | /chemicals/reaction.py | 87cafe7a6a8525cb05e306a40775c16dd6d7e2d3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | CalebBell/chemicals | c6b1ebd409c32e0e1053c4f97668a8ebcc92b969 | 37e32a7c7f819e0cb8e2a8784f8448f68b9a4215 | refs/heads/master | 2023-07-25T23:34:17.754310 | 2023-07-25T02:00:14 | 2023-07-25T02:00:14 | 264,697,738 | 137 | 33 | MIT | 2022-06-05T18:21:02 | 2020-05-17T15:27:11 | Python | UTF-8 | Python | false | false | 41,468 | py | reaction.py | """Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, 2017, 2018, 2019, 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Copyright (C) 2020 Yoel Rene Cortes-Pena <yoelcortes@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
27889b512397efdffa9c012788340cb49035f665 | a8ca3225e24c8b093056ce6baa1db6ba3aea8f97 | /tutorials/_temporary/plot_inv_1_em1dtm_stitched_skytem.py | 7cdb188cbaa6549f59c2eb2ef577c1d7236a645d | [
"MIT"
] | permissive | simpeg/simpeg | 3e8779392d7b26fe576a7a665205068989d8f4d8 | ebde5856c318f7b4deb92d755b4fefe19012c48e | refs/heads/main | 2023-09-03T18:49:03.545965 | 2023-08-27T15:45:50 | 2023-08-27T15:45:50 | 14,727,320 | 437 | 268 | MIT | 2023-09-10T18:16:22 | 2013-11-26T19:46:36 | Python | UTF-8 | Python | false | false | 12,947 | py | plot_inv_1_em1dtm_stitched_skytem.py | """
Forward Simulation of Stitched SkyTEM Data
==========================================
"""
#####################################################
# Import Modules
# --------------
#
import numpy as np
import tarfile
import matplotlib as mpl
from matplotlib import pyplot as plt
from discretize import TensorMesh... |
5cdb18b7404b6ccfc8c6c5f9a28d646476b3182e | 7f0ed84404abb57c3bc062cd986b67c6a254d3f3 | /tests/common/test_flags.py | 48a37618624bd8b8a9ce2d863a665fe163a3ef75 | [
"BSD-3-Clause"
] | permissive | abhinavsingh/proxy.py | ad8eff50476815c4654cade3b6fe628e1ecea2eb | 30574fd0414005dfa8792a6e797023e862bdcf43 | refs/heads/develop | 2023-09-01T03:40:13.473734 | 2023-04-17T04:12:18 | 2023-04-17T04:12:18 | 12,228,178 | 2,691 | 657 | BSD-3-Clause | 2023-09-08T11:56:39 | 2013-08-19T21:33:51 | Python | UTF-8 | Python | false | false | 7,264 | py | test_flags.py | # -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE... |
0f68f35a836bd4df1e59c8edd903c990b1df17c9 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/SPC-Net/eval.py | 6280f8416ee4fc7a713d6f268bfbe4c3b4a9e41d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 3,568 | py | eval.py | # Copyright 2023 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
ac097faa2273f15e7caeb8a8870a4645444bd03f | aeef2494b283012ed619870c4275e7d015f4017a | /sdk/python/pulumi_gcp/compute/region_per_instance_config.py | 5b018f311378f91fbd4b2e54b7a3822e7c3dc84e | [
"BSD-3-Clause",
"MPL-2.0",
"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 | 35,431 | py | region_per_instance_config.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... |
28a252aef84561a1c2779b82a575ea6de3d1f466 | 952dc66c61966f099756cdb6c2d13b40352f63cc | /zerver/webhooks/slack/tests.py | 4948d477dbed1b233e28d4dd965c25de88f2296b | [
"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 | 2,486 | py | tests.py | from zerver.lib.test_classes import WebhookTestCase
class SlackWebhookTests(WebhookTestCase):
STREAM_NAME = "slack"
URL_TEMPLATE = "/api/v1/external/slack?stream={stream}&api_key={api_key}"
WEBHOOK_DIR_NAME = "slack"
def test_slack_channel_to_topic(self) -> None:
expected_topic = "channel: ge... |
72cb9f3fc1b271685538040563523f1ebbeee207 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/tree-sitter-languages/tree_sitter_languages/__init__.pyi | 59a083877290da5114682749af40ae2b16a666ab | [
"Apache-2.0",
"MIT"
] | 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 | 158 | pyi | __init__.pyi | from .core import get_language as get_language, get_parser as get_parser
__version__: str
__title__: str
__author__: str
__license__: str
__copyright__: str
|
66a5a50f0324e2c073f449d526c84988057a6ab4 | 7cc85a6fdc7eb4e096b67628d003942b59266d78 | /ptsemseg/loader/pascal_voc_loader.py | ae7736854a06530e79d9186959d46f38729d5f1b | [
"MIT"
] | permissive | zhechen/PLARD | c2275c756eebf30b37526714f537118f0399d857 | 44485803092e729661c696ab6c03f6f2fabc8701 | refs/heads/master | 2023-07-22T04:18:36.580898 | 2022-06-18T04:32:52 | 2022-06-18T04:32:52 | 230,184,349 | 151 | 49 | MIT | 2023-07-06T21:14:28 | 2019-12-26T02:56:10 | Python | UTF-8 | Python | false | false | 9,954 | py | pascal_voc_loader.py | import os
from os.path import join as pjoin
import collections
import json
import torch
import numpy as np
import scipy.misc as m
import scipy.io as io
import matplotlib.pyplot as plt
import glob
from tqdm import tqdm
from torch.utils import data
def get_data_path(name):
"""Extract path to data from config file.
... |
828e75e2b48ef1e7ee5110816ef14a93fd20a90c | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/mr_liquor_au.py | 20550b67139fa2ba6174830ab3f5166e67d13a6a | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 251 | py | mr_liquor_au.py | from locations.storefinders.metizsoft import MetizsoftSpider
class MrLiquorAUSpider(MetizsoftSpider):
name = "mr_liquor_au"
item_attributes = {"brand": "Mr Liquor", "brand_wikidata": "Q117822077"}
shopify_url = "mr-liquor.myshopify.com"
|
98febf9036f202848755e90b7a8b8552fd01869e | 67e7c0f06e8aef9579bf3761ff6af76e5eafb590 | /pipeline/models/header_model.py | c456b3782aca23da41b9336687380efe345835eb | [
"MIT"
] | permissive | epi052/recon-pipeline | d1c711f5fd7ceccc95eda13004287d030452fe90 | 4930f4064ca42c4b3669444b92dee355dd68b81e | refs/heads/main | 2023-02-23T06:02:26.055102 | 2023-01-27T00:20:30 | 2023-01-27T00:20:30 | 205,856,988 | 413 | 102 | MIT | 2023-02-13T16:35:28 | 2019-09-02T12:54:26 | Python | UTF-8 | Python | false | false | 969 | py | header_model.py | from sqlalchemy.orm import relationship
from sqlalchemy import Column, Integer, ForeignKey, String, UniqueConstraint, Table
from .base_model import Base
header_association_table = Table(
"header_association",
Base.metadata,
Column("header_id", Integer, ForeignKey("header.id")),
Column("endpoint_id", I... |
b878f6c037b323244aa2a28389deabd0868910a6 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /SimCalorimetry/HcalZeroSuppressionProducers/python/hcalNZS.py | 8c01c767bccc8555781ee77cdb37c017f211b6f2 | [
"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 | 192 | py | hcalNZS.py | import FWCore.ParameterSet.Config as cms
def customise_hcalNZS(process):
if hasattr(process,'simHcalDigis'):
process.simHcalDigis.markAndPass = cms.bool(True)
return process
|
21791182ed376e6f31dc62a54cc39fa070f38940 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_quantizer/vai_q_tensorflow2.x/tensorflow_model_optimization/python/examples/quantization/keras/vitis/mnist_cnn_ptq_mix_precision.py | 5151fa8159a1d4edd070958ea33fe6070a2eb93c | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 3,767 | py | mnist_cnn_ptq_mix_precision.py | # Copyright 2019 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
cb2cbbb99e440aae58d433228a5c061e11d1dc64 | 6d54a7b26d0eb82152a549a6a9dfde656687752c | /config/common/cmake/make_gn_args.py | c6282bc0f8b45195e172d991e27816975e282cda | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | project-chip/connectedhomeip | 81a123d675cf527773f70047d1ed1c43be5ffe6d | ea3970a7f11cd227ac55917edaa835a2a9bc4fc8 | refs/heads/master | 2023-09-01T11:43:37.546040 | 2023-09-01T08:01:32 | 2023-09-01T08:01:32 | 244,694,174 | 6,409 | 1,789 | Apache-2.0 | 2023-09-14T20:56:31 | 2020-03-03T17:05:10 | C++ | UTF-8 | Python | false | false | 3,084 | py | make_gn_args.py | #!/usr/bin/env python3
#
# Copyright (c) 2023 Project CHIP 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/lice... |
37397dfbaf9c9142e2a6114c3026a603ad3ac53e | 933b0eef6909e52fb086015e1f73e9507aad9c3f | /Graph_Algorithms/src/Kosaraju/StronglyConnected.py | 0fa29b4d3a34f84eb3d868990819f5ed98e86484 | [] | no_license | codezoned/ScriptsDump | c105641ee06b8bf148b9c2779b04eb1d0369a85f | df6fcc47f5a73c7a5c3522f985e23b89fe56117e | refs/heads/master | 2023-04-29T03:12:40.610817 | 2022-11-26T12:22:33 | 2022-11-26T12:22:33 | 141,881,901 | 157 | 221 | null | 2023-08-10T07:00:05 | 2018-07-22T09:17:56 | Jupyter Notebook | UTF-8 | Python | false | false | 3,693 | py | StronglyConnected.py | '''
Code to find the strongly connected components of a graph using Kosaraju's Algorithm
Time complexity: O(V + E)
'''
from collections import defaultdict
class Graph:
#Constructor that basically initiallises every new vertex in dict as an
#empty list
def __init__(self):
self.graph = default... |
8c52d3bb8ff4e1abafee98f19384e462e1c0939e | 27b86f422246a78704e0e84983b2630533a47db6 | /docs/source/tutorials/src/ocs/insert.py | 309088f88a8bd22589b03bd7007bc173c8b233f7 | [
"MIT"
] | permissive | mozman/ezdxf | 7512decd600896960660f0f580cab815bf0d7a51 | ba6ab0264dcb6833173042a37b1b5ae878d75113 | refs/heads/master | 2023-09-01T11:55:13.462105 | 2023-08-15T11:50:05 | 2023-08-15T12:00:04 | 79,697,117 | 750 | 194 | MIT | 2023-09-14T09:40:41 | 2017-01-22T05:55:55 | Python | UTF-8 | Python | false | false | 4,364 | py | insert.py | # Copyright (c) 2019-2020 Manfred Moitzi
# License: MIT License
import math
import ezdxf
from pathlib import Path
OUT_DIR = Path('~/Desktop/Outbox').expanduser()
from ezdxf.lldxf.const import MIRROR_X
from ezdxf.math import UCS, Vec3, Matrix44, Y_AXIS, X_AXIS, Z_AXIS
RED = 1
GREEN = 3
BLUE = 5
def setup_csys(blk, ... |
86d08d25e933d1c34edda0bb3432b99f4f522237 | 06afc066ffb460ada63dfa9e0e1201cd890c9058 | /test/python/test_so2.py | aeeac28c849a1d6c25a783f34060e8a506042133 | [
"MIT"
] | permissive | artivis/manif | 9be04fd896924eab4812aa33719e93ee480ff8ba | bb3f6758ae467b7f24def71861798d131f157032 | refs/heads/devel | 2023-08-20T03:18:29.379652 | 2023-07-17T21:00:39 | 2023-07-17T21:00:39 | 129,808,016 | 1,277 | 215 | MIT | 2023-07-24T15:41:58 | 2018-04-16T21:28:32 | C++ | UTF-8 | Python | false | false | 801 | py | test_so2.py | import numpy as np
import pytest
from manifpy import SO2, SO2Tangent
def test_constructor():
state = SO2(0.17)
assert 0.17 == state.angle()
state = SO2(1, 0)
assert 0 == state.angle()
delta = SO2Tangent(0.17)
assert 0.17 == delta.angle()
def test_accessors():
state = SO2.Identity()
... |
9577676d20c0b4f17333655d2b2e3875b333890c | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /python_modules/dagster/dagster/_grpc/__init__.py | 5aedcd53852c1e854e449af53323d60bb6ba6043 | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 2,060 | py | __init__.py | """Tools for accessing core Dagster APIs over a GRPC mechanism.
GRPC is intended to be used in all cases where host processes communicate with user processes, both
locally (over UDS on MacOS and Unix, and over a local port on Windows) and when communicating with
remote Dagster user proceses (e.g., containers).
The GR... |
638a1b7e03248dafab785b93c55659eb7b23b804 | 568fa58296378fa129ab3349adf010daa44ed45b | /tests/common/test_run/abs_run.py | 5110714166806b7f0118aca03303a03198579118 | [
"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 | 2,497 | py | abs_run.py | # Copyright 2019-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
9d3fb1fac7c369d1566933da2205959470282c7b | 4d829ecf98a554e52daf946db065bab3ec15677d | /explorations/kafka_router.py | 0cd2ad207d439b32e096e0126b5624952cdf3d2a | [
"MIT",
"Apache-2.0"
] | permissive | SuperCowPowers/zat | 5c6179542359b673c4f30f1705dca62c3bd2be4b | 1d83a44a4d171b1f99a48b6706da4f495c9f63f9 | refs/heads/main | 2023-08-31T17:17:19.706642 | 2023-04-03T00:20:42 | 2023-04-03T00:20:42 | 85,858,065 | 191 | 46 | MIT | 2023-04-03T00:20:43 | 2017-03-22T17:40:04 | Jupyter Notebook | UTF-8 | Python | false | false | 5,372 | py | kafka_router.py | """KafkaRouter: The class takes in N Kafka input topics and produces M Kafka output topics"""
import sys
from kafka import KafkaProducer, KafkaConsumer
from kafka.errors import NoBrokersAvailable
from collections import defaultdict
import json
from pprint import pprint
from datetime import datetime
# Local imports
fr... |
e2292c3e9eb54f7a099276c4c8acf4314f02e4c8 | e9869359c839c8c175ae7877bc35dcfdfe4058f8 | /kornia/augmentation/random_generator/_2d/probability.py | e342049e667fb208a045c29f7aadbe2713a157bb | [
"Apache-2.0"
] | permissive | kornia/kornia | 80f93eae6a70b8bc0c9784f92a842ab9a6ab54ae | 1e0f8baa7318c05b17ea6dbb48605691bca8972f | refs/heads/master | 2023-08-31T06:32:45.960859 | 2023-08-30T21:59:41 | 2023-08-30T21:59:41 | 145,693,916 | 7,351 | 833 | Apache-2.0 | 2023-09-12T21:59:29 | 2018-08-22T10:31:37 | Python | UTF-8 | Python | false | false | 2,964 | py | probability.py | from typing import Dict, Tuple
import torch
from torch.distributions import Bernoulli
from kornia.augmentation.random_generator.base import RandomGeneratorBase
from kornia.augmentation.utils import _adapted_sampling, _common_param_check
from kornia.core import Tensor, tensor
__all__ = ["ProbabilityGenerator"]
clas... |
2225617440b775847fbbb158db02a504603f09dc | 94c1805df5a09c39159d502f420d19ad54b567fc | /runtime/deps/gyp/test/win/winrt-target-platform-version/winrt-target-platform-version.gyp | dbcfac696288f94117baac976f3ce07cd6948d5f | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tmikov/jscomp | 9805a5a4d06520549c57380f0df4a1c0aa0dab56 | 83828441cb38ec96603a6a60be06977d4852940a | refs/heads/develop | 2021-01-19T02:56:35.102659 | 2016-04-12T06:19:30 | 2016-04-12T06:19:30 | 36,981,674 | 237 | 13 | Apache-2.0 | 2018-10-14T09:48:12 | 2015-06-06T13:49:26 | C | UTF-8 | Python | false | false | 1,367 | gyp | winrt-target-platform-version.gyp | # Copyright (c) 2015 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'enable_winrt_10_platversion_dll',
'type': 'shared_library',
'msvs_enable_winrt': 1,
'msvs_application... |
a527d45dfbcccd982494626e4238dd2e2d19490c | 38bd31e53bdc4d8ed8a06544931ad9c3db5b6f5b | /ava_evaluation/np_box_ops.py | 7cadc80f77097e5f73d987ac4b12a626ab4cf0f9 | [
"Apache-2.0"
] | permissive | facebookresearch/SlowFast | 1ee6f666d20e5adab8e86949649bcaf4bf6cd820 | 6092dad7be32bb1d6b71fe1bade258dc8b492fe3 | refs/heads/main | 2023-09-03T12:15:35.478138 | 2023-08-26T20:55:56 | 2023-08-26T20:55:56 | 203,465,734 | 6,221 | 1,325 | Apache-2.0 | 2023-09-12T23:51:28 | 2019-08-20T22:47:26 | Python | UTF-8 | Python | false | false | 3,565 | py | np_box_ops.py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
12dcf09d5aa625e997365129f9e0951726dd5454 | e04a5b20f946c5033f24d4dd8acda395a98747c5 | /deeplearning-image-cpu/python-runnables/download-models/runnable.py | 98b20c2af17ae767f6e04cd04a87e81b9bf8e278 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | dataiku/dataiku-contrib | 2a2f2fb420d7f2ab49b82d80659cc6f6ec1d8f61 | 9a9f189e8a544a81c205d8a8b3779d4517b88653 | refs/heads/master | 2023-09-04T03:33:58.625093 | 2023-04-26T08:17:34 | 2023-04-26T08:17:34 | 45,074,604 | 103 | 94 | Apache-2.0 | 2023-06-08T21:29:07 | 2015-10-27T22:41:00 | Python | UTF-8 | Python | false | false | 5,418 | py | runnable.py | from dataiku.runnables import Runnable
import dataiku
import urllib2, sys
import requests
import json
import os
import dl_image_toolbox_utils as utils
import pandas as pd
import constants
import time
# We deactivate GPU for this script, because all the methods only need to
# fetch information about model and do not m... |
638a708816a7c8c5adc0b87aab60b15fd7bcac8c | e62c8ee151671b999c6720ab8c2aa2f96c0d7f55 | /tests/unit/providers/singleton/test_delegated_singleton_py2_py3.py | 8a76ec0be0d71f1216bb3a87bee5678ab33b69f6 | [] | permissive | ets-labs/python-dependency-injector | 45645973456bb6494386ad12103d06e1f1be2cd8 | cc2304e46e054ae08dc12995428759fbfb51af10 | refs/heads/master | 2023-08-23T03:59:53.509743 | 2022-12-19T03:14:24 | 2022-12-19T03:14:24 | 28,774,758 | 3,217 | 273 | BSD-3-Clause | 2023-09-08T21:46:18 | 2015-01-04T13:23:05 | Python | UTF-8 | Python | false | false | 548 | py | test_delegated_singleton_py2_py3.py | """Delegated singleton provider tests."""
from dependency_injector import providers
from pytest import fixture
from .common import Example
PROVIDER_CLASSES = [
providers.DelegatedSingleton,
providers.DelegatedThreadLocalSingleton,
providers.DelegatedThreadSafeSingleton,
]
@fixture(params=PROVIDER_CLAS... |
c018be47ee42065c2291abbaecae2fac0f72a750 | 241a75b26be206c85d5321ba371b7221a7f9caea | /scripts/test/test_derp_cli.py | b4d6233a767e8b12f5ace4b678e09ccbc182afc6 | [
"BSD-3-Clause"
] | permissive | facebook/facebook360_dep | e9d44c50420e8402da6f16fb2387b6b35f927dfa | 5826244049ed45e5e38d27bbc0af826c2caee286 | refs/heads/main | 2023-09-01T21:03:08.734504 | 2023-04-07T20:30:07 | 2023-04-07T20:30:07 | 204,788,647 | 248 | 65 | NOASSERTION | 2023-04-27T10:31:15 | 2019-08-27T20:53:07 | HTML | UTF-8 | Python | false | false | 3,438 | py | test_derp_cli.py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
"""Unit test class for DerpCLI.
This class subclasses the DepTest class, which provides... |
2fcebdde0b7970fac995f55f6e0fff0936d370e6 | 6b1677e3d641ed89b834de5ff1cf070997b6cdba | /memcnn/models/tests/test_models.py | b6393806ea433644fb943fc3c7d9713763980311 | [
"MIT"
] | permissive | silvandeleemput/memcnn | e3c7639261eead441d84626c78c3d8b7fb2a9627 | a71169b32d4f8568b333d95a4303d8e05d1e1af5 | refs/heads/master | 2023-05-10T17:01:39.711636 | 2023-05-10T08:04:48 | 2023-05-10T08:08:13 | 122,979,177 | 251 | 29 | MIT | 2023-05-10T07:50:35 | 2018-02-26T14:11:31 | Python | UTF-8 | Python | false | false | 3,273 | py | test_models.py | import torch
import torch.nn
from memcnn import create_coupling, InvertibleModuleWrapper
class MultiplicationInverse(torch.nn.Module):
def __init__(self, factor=2):
super(MultiplicationInverse, self).__init__()
self.factor = torch.nn.Parameter(torch.ones(1) * factor)
def forward(self, x):
... |
07effbe0629f3cbeb50004800b89bfb3ff39e057 | 3d62372eb5e17bf135616de4f196c14a384adf36 | /Tests/test_Phylo_networkx.py | 829fb3f2daadd5ac1f45f8d318b19f88cd3d4ad6 | [
"BSD-3-Clause",
"LicenseRef-scancode-biopython"
] | permissive | biopython/biopython | 817c9a995a49528937bebefe99f3f5b9054f8947 | d416809344f1e345fbabbdaca4dd6dcf441e53bd | refs/heads/master | 2023-08-28T05:26:46.916988 | 2023-08-23T14:11:24 | 2023-08-23T14:11:24 | 151,541 | 3,669 | 1,939 | NOASSERTION | 2023-09-12T10:19:46 | 2009-03-15T21:09:53 | Python | UTF-8 | Python | false | false | 1,180 | py | test_Phylo_networkx.py | # Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Unit tests for Bio.Phylo functions with external dependencies."""
import unittest
... |
7b5dcffb018e4659c81d6d8a603659b732266731 | e03bce53de6f88c0e09f56e4fe11c36af0f1161f | /tests/unit/env_mgr/test_env_mgr.py | 4871a7a47e909cedf41b5939197d9c6741625a41 | [
"Apache-2.0"
] | permissive | onicagroup/runway | 20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f | 0763b06aee07d2cf3f037a49ca0cb81a048c5deb | refs/heads/master | 2023-08-30T22:35:54.113981 | 2023-08-29T14:13:35 | 2023-08-29T14:13:35 | 122,529,924 | 156 | 79 | Apache-2.0 | 2023-09-13T13:43:50 | 2018-02-22T20:12:55 | Python | UTF-8 | Python | false | false | 4,635 | py | test_env_mgr.py | """Test runway.env_mgr."""
# pylint: disable=unused-argument
# pyright: basic
from __future__ import annotations
import logging
from typing import TYPE_CHECKING, Optional
import pytest
from runway.env_mgr import EnvManager
if TYPE_CHECKING:
from pathlib import Path
from pytest import LogCaptureFixture, Mon... |
ea5f4b6351350c638b544d5bcdad8872be96ab1a | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /about__user_agent/get_random_win_UserAgent.py | 7126c8da8bd0d53188a3226b6fa0eaae59c91032 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 814 | py | get_random_win_UserAgent.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import random
class UserAgent:
@classmethod
def get_win_version(cls) -> float:
return 10.0
@classmethod
def get_chrome_version(cls) -> str:
a = random.randint(40, 69)
b = random.randint(2987, 3497)
... |
5b49dc06fde81274b892bce6897ab56a0776f385 | cb8f7d14f42dfae3be7ce3c84bcd11ac15ff1dab | /asciimol/app/config.py | 9296f1477c1e65a29e681b5609a3d72d7917ad37 | [
"BSD-2-Clause"
] | permissive | dewberryants/asciiMol | 9b435a363fd2af3a0c5b1446e43cf236c206e886 | 53e30aa813ed0b8999a334277af9663bb16bd6eb | refs/heads/master | 2023-09-05T00:06:46.868062 | 2023-05-24T12:15:33 | 2023-05-24T12:15:33 | 292,568,583 | 329 | 15 | BSD-2-Clause | 2023-03-03T08:51:04 | 2020-09-03T12:48:52 | Python | UTF-8 | Python | false | false | 2,196 | py | config.py | import argparse
import numpy as np
from asciimol.app import map_colors, map_radii
from asciimol.app.colors import init_curses_color_pairs
from asciimol.app.io import handle_io
class Config:
"""
The runtime configuration object. Contains currently opened file, as well as any other configurables.
"""
... |
59550de9e2f823296c38b0dfe32a5bcc2a0fd59c | 35b45b5225f911072287b7f0888f4ef4cc70f3d9 | /tests/test_writers.py | adfb8baae04543ff393ec67a8d012b86ee650e6c | [
"BSD-3-Clause"
] | permissive | heuer/segno | 54e9b583dbc33b016715bb13f97a9013a37cc9d4 | 11556378fa8949fa5ad6dddbf8cc5f4a667038af | refs/heads/master | 2023-06-21T02:01:45.620206 | 2023-05-02T22:09:31 | 2023-05-02T22:09:31 | 64,920,252 | 441 | 59 | BSD-3-Clause | 2023-06-15T05:00:05 | 2016-08-04T09:08:52 | Python | UTF-8 | Python | false | false | 2,741 | py | test_writers.py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 - 2022 -- Lars Heuer
# All rights reserved.
#
# License: BSD License
#
"""\
Tests against the ``writers`` module.
"""
from __future__ import absolute_import, unicode_literals
import os
import io
import tempfile
import pytest
import segno
from segno import consts, writers
... |
de531fb46630237ec229fc2c697c25f29258b1fc | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoLocalMuon/DTSegment/python/dt4DExtendedSegments_CombPatternReco4D_ParamDrift_cfi.py | a439ffc7455504ce3d3a13cbaa0b02736432f9f1 | [
"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 | 178 | py | dt4DExtendedSegments_CombPatternReco4D_ParamDrift_cfi.py | import FWCore.ParameterSet.Config as cms
from RecoLocalMuon.DTSegment.dt4DSegments_CombPatternReco4D_ParamDrift_cfi import *
dt4DSegments.recHits2DLabel= "dt2DExtendedSegments"
|
6ba9df01069dd56ac80e285dbb891f84a1d7c77e | a165b266e96c44bb27c6886ce88d88ba381aa20e | /agents/swarm/swarm_agent.py | 3eeb2253ef20cfcbd175c2194cbb5012f9ef5513 | [
"MIT"
] | permissive | SaltieRL/Saltie | ab616f261f480ebb8d10c32c0a37e046e8188d6f | a491ecfa5c77583ec370a0a378d27865dbd8da63 | refs/heads/master | 2021-06-25T06:35:02.232354 | 2019-01-26T16:50:43 | 2019-01-26T16:50:43 | 111,743,860 | 148 | 32 | MIT | 2019-01-26T16:50:44 | 2017-11-22T23:58:21 | Python | UTF-8 | Python | false | false | 2,341 | py | swarm_agent.py | import os
from rlbot.botmanager.helper_process_request import HelperProcessRequest
from rlbot.agents.base_agent import BaseAgent, BOT_CONFIG_AGENT_HEADER
from rlbot.parsing.custom_config import ConfigHeader, ConfigObject
from rlbot.utils.logging_utils import get_logger
from framework.utils import get_repo_directory
im... |
003ed9435c6e6e8cc4c59e56c51114c50322d88e | 14a42aa9e707f70312647fbf86adb96fce7a2f97 | /src/_pytest/pastebin.py | 22c7a622373f5561273b424d180f5195d808fab3 | [
"MIT"
] | permissive | pytest-dev/pytest | a0374d435f2b46e8a475b4b26085ab4f3d04aa67 | afb8d66e42a3449476cf9bf4526705b1e36ff5a5 | refs/heads/main | 2023-09-01T14:12:11.863580 | 2023-08-30T11:52:14 | 2023-08-30T11:52:14 | 37,489,525 | 11,423 | 3,125 | MIT | 2023-09-12T22:17:22 | 2015-06-15T20:28:27 | Python | UTF-8 | Python | false | false | 3,949 | py | pastebin.py | """Submit failure or test session information to a pastebin service."""
import tempfile
from io import StringIO
from typing import IO
from typing import Union
import pytest
from _pytest.config import Config
from _pytest.config import create_terminal_writer
from _pytest.config.argparsing import Parser
from _pytest.stas... |
c25eb02d3bfe9a75d5a2af5198c05fcf3a037e52 | f1c480ca385f60aa325a23b8c90cfe6bb98e34ec | /heat/nn/tests/test_data_parallel.py | 979c0dad3e6665e9ee7988bedcedbb47d2ff24ff | [
"MIT"
] | permissive | helmholtz-analytics/heat | 32d56f59a97b089741838df5aea9e4f2e5d90cc6 | c43a2401786a8aa93d10617aafecb8a28114d2e9 | refs/heads/main | 2023-09-03T12:11:38.716928 | 2023-08-29T11:32:46 | 2023-08-29T11:32:46 | 133,808,899 | 181 | 59 | MIT | 2023-09-13T11:36:12 | 2018-05-17T12:16:27 | Python | UTF-8 | Python | false | false | 7,170 | py | test_data_parallel.py | import heat as ht
import torch
import unittest
class TestDataParallel(unittest.TestCase):
def test_data_parallel(self):
import heat.nn.functional as F
with self.assertRaises(TypeError):
ht.utils.data.datatools.DataLoader("asdf")
class Model(ht.nn.Module):
def __in... |
0f70fcbcf53f855886a4aa185cbad49597b2e390 | 4091caecbc727e6d6ae0d827afce11c5979a84fd | /demos/gesture_recognition_demo/python/gesture_recognition_demo/visualizer.py | bd03f7231715199f2cb6950c0670816b0a159f78 | [
"Apache-2.0"
] | permissive | openvinotoolkit/open_model_zoo | fdb03dd40bfccb854e4ed4f7b9beaa90596963cd | 7929adbe91e9cfe8dc5dc1daad5ae7392f9719a0 | refs/heads/master | 2023-08-18T18:03:47.254427 | 2023-08-18T10:54:31 | 2023-08-18T10:54:31 | 153,097,694 | 1,712 | 730 | Apache-2.0 | 2023-09-11T11:31:20 | 2018-10-15T10:55:02 | Python | UTF-8 | Python | false | false | 3,548 | py | visualizer.py | """
Copyright (c) 2019-2023 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... |
7061d707f3ad76ff68718e27b44aa7d03294519d | 04e02c56f90d7ce4ada1fd36017facc90f5345a8 | /all/policies/soft_deterministic.py | 11f7ca2547355c1da83cb9004a33704e84958053 | [
"MIT"
] | permissive | cpnota/autonomous-learning-library | d34a317cb68b6360c450786add7053d02f69f19b | 8e68f0b21cd74bb5efc6d68fde45c26a0e26d6c2 | refs/heads/master | 2023-07-19T06:20:12.485433 | 2022-08-31T19:43:36 | 2022-08-31T19:43:36 | 156,611,625 | 647 | 74 | MIT | 2022-10-03T14:03:14 | 2018-11-07T21:39:56 | Python | UTF-8 | Python | false | false | 3,405 | py | soft_deterministic.py | import torch
from all.approximation import Approximation
from all.nn import RLNetwork
class SoftDeterministicPolicy(Approximation):
'''
A "soft" deterministic policy compatible with soft actor-critic (SAC).
Args:
model (torch.nn.Module): A Pytorch module representing the policy network.
... |
5555254c2e03ca5adc9ebd754bab9cb0de71bb5b | 9cc6f9d9eed9aceb5efa56e3b2f364900df11051 | /improver_tests/ensemble_copula_coupling/test_RebadgePercentilesAsRealizations.py | 79c00aa7745e28c46c2ba0385281b40fdad1e80b | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | metoppv/improver | 8553a4f8b93c88291bde0db8f5dfd7b577c04b92 | cd2c9019944345df1e703bf8f625db537ad9f559 | refs/heads/master | 2023-08-30T19:01:04.946698 | 2023-08-25T13:57:20 | 2023-08-25T13:57:20 | 85,334,761 | 101 | 88 | BSD-3-Clause | 2023-09-14T19:07:45 | 2017-03-17T16:51:29 | Python | UTF-8 | Python | false | false | 5,738 | py | test_RebadgePercentilesAsRealizations.py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... |
23d96d571bf1d9a8e37c04ab2e6011eb641579ef | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/export/exceptions.py | 9a5511d430c87b4d578ebe8f38548033e0b3b307 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 1,230 | py | exceptions.py | from django.utils.translation import gettext_lazy
from corehq.apps.export.const import MAX_CASE_TYPE_COUNT, MAX_APP_COUNT
class ExportAppException(Exception):
pass
class BadExportConfiguration(ExportAppException):
pass
class ExportFormValidationException(Exception):
pass
class ExportAsyncException(Ex... |
4cfe6dc4af80d6065efe6175cb67d87c12e9c752 | a8ca3225e24c8b093056ce6baa1db6ba3aea8f97 | /tests/meta/test_meta_sim.py | c0a0ccf6601d1bc41636fd111ec8979ee722e76a | [
"MIT"
] | permissive | simpeg/simpeg | 3e8779392d7b26fe576a7a665205068989d8f4d8 | ebde5856c318f7b4deb92d755b4fefe19012c48e | refs/heads/main | 2023-09-03T18:49:03.545965 | 2023-08-27T15:45:50 | 2023-08-27T15:45:50 | 14,727,320 | 437 | 268 | MIT | 2023-09-10T18:16:22 | 2013-11-26T19:46:36 | Python | UTF-8 | Python | false | false | 13,077 | py | test_meta_sim.py | import numpy as np
from SimPEG.potential_fields import gravity
from SimPEG.electromagnetics.static import resistivity as dc
from SimPEG import maps
from discretize import TensorMesh
import scipy.sparse as sp
import pytest
from SimPEG.meta import MetaSimulation, SumMetaSimulation, RepeatedSimulation
def test_multi_si... |
df1bf9e1f2960148feac0cae25dbbdfb646d1887 | 3982e6daf88e453c726f6b39a081fc37ce15a08a | /discovery-provider/src/queries/get_followees_for_user.py | e8746706423f0ee81d7c387d150f41dae9a2271b | [
"Apache-2.0"
] | permissive | AudiusProject/audius-protocol | 45808e11082608ad5b76a425d287cb6d94a6dab0 | 7cf1d8e378520460d24a7cc8c29e9927c0944cb3 | refs/heads/main | 2023-08-09T10:34:28.850436 | 2023-08-09T04:28:17 | 2023-08-09T04:28:17 | 201,821,771 | 531 | 108 | NOASSERTION | 2023-09-14T21:27:52 | 2019-08-11T22:31:43 | TypeScript | UTF-8 | Python | false | false | 1,256 | py | get_followees_for_user.py | from sqlalchemy.sql import text
from src.queries.get_unpopulated_users import get_unpopulated_users
from src.queries.query_helpers import populate_user_metadata
from src.utils.db_session import get_db_read_replica
sql = text(
"""
SELECT
followee_user_id
from
follows
left outer join aggregate_user on f... |
2c0680aafea96a74134d4002bdeeebfbad64783d | 67cc5db4593e2cdd109e589e13fb07074bcff5d9 | /tests/transformations/trivial_loop_elimination_test.py | 6f2769f9212438360e24e996a1aea17c05f60e8f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | spcl/dace | 39849b1488e8f59f880fc0e2572687556c51847d | c5ca99ad37e7ceef6da71026c3c8bb579f64117f | refs/heads/master | 2023-08-31T10:45:09.480018 | 2023-08-30T06:05:10 | 2023-08-30T06:05:10 | 172,703,996 | 402 | 114 | BSD-3-Clause | 2023-09-14T15:18:29 | 2019-02-26T12:05:50 | Python | UTF-8 | Python | false | false | 980 | py | trivial_loop_elimination_test.py | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
from dace.sdfg.nodes import MapEntry
import dace
from dace.transformation.interstate import TrivialLoopElimination
from dace.symbolic import pystr_to_symbolic
import unittest
import numpy as np
I = dace.symbol("I")
J = dace.symbol("J")
@dace... |
d62e125ff498d45bc8141b48d20a8fb476eb54cc | 6c8305ea1df9687df1c0d2b0ace56733516c6322 | /readthedocs/api/v2/permissions.py | 8bc30ecd4e20a10e530d8d13e9111dd39be3f3ed | [
"MIT"
] | permissive | readthedocs/readthedocs.org | 9806083aa744c2308267919480a692e1e003e45d | bf88ce6d1085d922322a5fadce63a22c5544c830 | refs/heads/main | 2023-09-05T20:22:34.281891 | 2023-09-05T12:41:52 | 2023-09-05T12:41:52 | 841,835 | 2,894 | 1,509 | MIT | 2023-09-14T20:36:00 | 2010-08-16T19:18:06 | Python | UTF-8 | Python | false | false | 2,653 | py | permissions.py | """Defines access permissions for the API."""
from rest_framework import permissions
from rest_framework_api_key.permissions import BaseHasAPIKey, KeyParser
from readthedocs.api.v2.models import BuildAPIKey
from readthedocs.builds.models import Version
class IsOwner(permissions.BasePermission):
"""Custom permi... |
6105f4b5da835e21b56c13f1cc743a24283dbf26 | 52c0949315583ba8898694cceacfaafaeab6f902 | /script/testing/oltpbench/__main__.py | ad951b263f1df27dffc0dbb90bf951ed8cfe6c8d | [
"MIT"
] | permissive | cmu-db/noisepage | 97093adcc9474419e063fdd97a5aa7a7ea6f3150 | 79276e68fe83322f1249e8a8be96bd63c583ae56 | refs/heads/master | 2023-08-29T05:51:04.628704 | 2021-11-05T14:12:08 | 2021-11-05T14:12:08 | 140,325,970 | 1,245 | 287 | MIT | 2022-11-08T02:06:48 | 2018-07-09T18:22:34 | C++ | UTF-8 | Python | false | false | 3,634 | py | __main__.py | #!/usr/bin/python3
import json
import logging
import os
import sys
import traceback
from ..util.constants import LOG, ErrorCode
from . import constants
from .test_case_oltp import TestCaseOLTPBench
from .test_oltpbench import TestOLTPBench
from .utils import parse_command_line_args
def generate_tests(args):
"""... |
2d90c975e0a648a7fc3f13d65b18c12156af617a | b51bd302a32f0cf0ce46ca10f4ccd4961d87868c | /timeseries-streaming/timeseries-python-applications/ml_pipeline_examples/sin_wave_example/inference/batch_inference.py | c5b917629d6c1401cfaa4c6372046efc16d1b416 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/dataflow-sample-applications | 8087e0658ab634538aa33cc025c61ae7fcd8b85b | beb6e20133939d7f7024c338ec2dc02e84e17475 | refs/heads/master | 2023-08-11T19:32:51.181127 | 2023-05-18T20:49:21 | 2023-05-18T20:49:21 | 278,225,471 | 118 | 62 | Apache-2.0 | 2023-05-16T23:57:13 | 2020-07-09T00:45:55 | Java | UTF-8 | Python | false | false | 3,530 | py | batch_inference.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 us... |
971370f6837ac510d91e867b8a0f2bf91dab8728 | f509ab9825c542e09b0c6591d86ef1f9feb540a6 | /pkgs/conf-pkg/src/genie/libs/conf/interface/iosxe/tests/test_interface.py | 90970cd6a5f6867a6c5e8898c466fe82c743e5c2 | [
"Apache-2.0"
] | permissive | CiscoTestAutomation/genielibs | 97f597117193aaa18028defeb69078ebb241173a | e42e51475cddcb10f5c7814d0fe892ac865742ba | refs/heads/master | 2023-08-11T16:39:41.959947 | 2023-07-27T17:58:42 | 2023-07-27T17:58:42 | 130,717,047 | 109 | 60 | Apache-2.0 | 2023-08-29T22:32:08 | 2018-04-23T15:21:56 | Python | UTF-8 | Python | false | false | 25,326 | py | test_interface.py | #!/usr/bin/env python
# python
import unittest
from unittest.mock import Mock
# Genie package
from genie.tests.conf import TestCase
from genie.conf import Genie
from genie.conf.base import Testbed, Device, Link, Interface
# xBU-shared genie pacakge
from genie.libs.conf.interface import TunnelTeInterface
from genie.l... |
539cfbe2478f36ca08b59022d6b6bba6e88d4484 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/clone-n-ary-tree.py | 2978a5c10e44f664c31d3b46a657f9fb258424e9 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 1,340 | py | clone-n-ary-tree.py | # Time: O(n)
# Space: O(h)
# Definition for a Node.
class Node(object):
def __init__(self, val=None, children=None):
self.val = val
self.children = children if children is not None else []
class Solution(object):
def cloneTree(self, root):
"""
:type root: Node
:rtype:... |
da178f04d05cf9d581c919ce73b77a4d4555330a | b8d80a23cb27af08a1c4d34b478c76228ae5fbb4 | /insights/parsers/hammer_task_list.py | 9a3c11bbde64a8cbc2759f6f391d27a06e7ac797 | [
"Apache-2.0"
] | permissive | RedHatInsights/insights-core | bb243e2bf8a52446fefb95ebe05478d6e35efe2e | b0ea07fc3f4dd8801b505fe70e9b36e628152c4a | refs/heads/master | 2023-09-04T21:15:40.456257 | 2023-09-04T10:46:56 | 2023-09-04T10:46:56 | 92,518,221 | 144 | 290 | Apache-2.0 | 2023-09-14T02:40:13 | 2017-05-26T14:23:11 | Python | UTF-8 | Python | false | false | 6,471 | py | hammer_task_list.py | """
HammerTaskList - command ``hammer --csv task list``
===================================================
This parser reads the task list of a Satellite server using hammer, in CSV
format. It relies on the root user running the command being able to do
authenticated commands, which currently relies on the Satellite... |
27c4476067fec3ce6b21ef10ec0209f10e347902 | 2d4cb3bca0f41054d91b551d8690473540bfc71a | /roboticstoolbox/examples/test.py | 1ef320ee8cb38425de31a25a335c2da1d0c2ea53 | [
"MIT"
] | permissive | petercorke/robotics-toolbox-python | a7175e4a9587b1aa530fed1750223a638f70b72a | 687d345d9994718d972a4b071dc061a3920d1733 | refs/heads/master | 2023-09-01T13:23:57.434048 | 2023-05-15T21:52:49 | 2023-05-15T21:52:49 | 33,467,565 | 1,535 | 407 | MIT | 2023-08-18T04:18:23 | 2015-04-06T05:05:25 | Python | UTF-8 | Python | false | false | 426 | py | test.py | import numpy as np
import roboticstoolbox as rtb
import spatialmath as sm
q0 = np.array(
[
-1.66441371,
-1.20998727,
1.04248366,
-2.10222463,
1.05097407,
1.41173279,
0.0053529,
]
)
tol = 1e-6
panda = rtb.models.Panda().ets()
Tep = panda.eval([0, -0.3, ... |
2d33e0a75c78a24bd13b9360490aad556849c83d | 501b0b4b6df1c9384661fbc5d8c73f0200e75308 | /test/test_parsing.py | cf33b1f71f0f4ba50b63b62d32a1e518713b9c95 | [
"MIT"
] | permissive | mathandy/svgpathtools | 80f4ef84ad82f2217573bc17c94c86ee41c4b909 | fcb648b9bb9591d925876d3b51649fa175b40524 | refs/heads/master | 2023-08-27T21:54:39.971142 | 2023-05-20T18:38:22 | 2023-05-20T18:38:22 | 62,691,990 | 475 | 144 | MIT | 2023-08-30T16:21:51 | 2016-07-06T04:51:28 | Python | UTF-8 | Python | false | false | 13,221 | py | test_parsing.py | # Note: This file was taken mostly as is from the svg.path module (v 2.0)
from __future__ import division, absolute_import, print_function
import unittest
from svgpathtools import Path, Line, QuadraticBezier, CubicBezier, Arc, parse_path
import svgpathtools
import numpy as np
def construct_rotation_tf(a, x, y):
... |
61415815f82b4155ae603e7c0ef3f240e3bbb98c | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /telemetry/third_party/modulegraph/modulegraph_tests/testpkg-edgedata/script_from_import.py | f48a98b78445f2486e5385f197b8de17860a28ef | [
"MIT",
"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 | 1,590 | py | script_from_import.py | from __future__ import absolute_import
from pkg import toplevel_existing
from pkg import toplevel_nonexisting
class MyClass:
from pkg import toplevel_class_existing
from pkg import toplevel_class_nonexisting
if a == b:
from pkg import toplevel_conditional_existing
from pkg import toplevel_conditional_... |
ac9d2353ff4aaadc2bae236bab5291512886f4e9 | f3806d9fb54773908cd9704121a543b114470aca | /angr/procedures/definitions/win32_credui.py | 96b7be46f4d957969a2ea6bc5e0d6a6806452c3b | [
"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 | 14,146 | py | win32_credui.py | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... |
4b098d7faaf595e6ee48e46ecb080da11eb1b083 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/StageSceneryVO.py | c31391694a82609446d1a0d8d17b9c34430a97cf | [
"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 | 2,292 | py | StageSceneryVO.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class StageSceneryVO(object):
def __init__(self):
self._icon = None
self._id = None
self._scenery_gltf_url = None
self._scenery_name = None
@property
def icon(s... |
b0c7ff231129d572b4418e11382d7b7b6600ca1d | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractSurrealskytranslationsWordpressCom.py | 6641f46181f9cd2d14abd0f8acbbc5ec245b429f | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 1,151 | py | feed_parse_extractSurrealskytranslationsWordpressCom.py | def extractSurrealskytranslationsWordpressCom(item):
'''
Parser for 'surrealskytranslations.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('what to do when i become a koi and fall... |
af0b72500ccecc49ab8c41d98c4ea6113f5dfda1 | d1c2d00078520cd556f60b7213c27856f8b3460d | /sdks/python/apache_beam/dataframe/convert_test.py | b00ce0e51fa8ba7c3fd2f9f0dfa078a433110e01 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf",
"Apache-2.0",
"Python-2.0"
] | permissive | apache/beam | ed11b9e043465c720659eac20ac71b5b171bfa88 | 6d5048e05087ea54abc889ce402ae2a0abb9252b | refs/heads/master | 2023-09-04T07:41:07.002653 | 2023-09-01T23:01:05 | 2023-09-01T23:01:05 | 50,904,245 | 7,061 | 4,522 | Apache-2.0 | 2023-09-14T21:43:38 | 2016-02-02T08:00:06 | Java | UTF-8 | Python | false | false | 7,488 | py | convert_test.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 us... |
df2527de3354b986aab15802798c080aae3f1f3c | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/BattleStrongholdsQueueMeta.py | 6f7a02cf5c600db1ab56ceaec79fee48bf41ad79 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 1,162 | py | BattleStrongholdsQueueMeta.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/BattleStrongholdsQueueMeta.py
from gui.Scaleform.framework.entities.View import View
class BattleStrongholdsQueueMeta(View):
def exitClick(self):
self._printOverrideError('exitClick')
... |
241dfc8e9d9ef2f8e3579a473f6b700baad6723a | fa3f6d4e9169fb95f828013d179d03accdff381b | /grr/server/grr_response_server/gui/api_plugins/stats_test.py | af9eebbc3b58fbf86fc46db776a59096407d507a | [
"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 | 3,619 | py | stats_test.py | #!/usr/bin/env python
from unittest import mock
from absl.testing import absltest
from grr_response_core.stats import default_stats_collector
from grr_response_core.stats import metrics
from grr_response_proto.api import stats_pb2
from grr_response_server.gui import admin_ui_metrics
from grr_response_server.gui impor... |
a7557eb138ae4e6cbbde02995f6ee2bbc6942067 | 610244a938791d3d05c749804725f4a9b3831a96 | /diagrams/onprem/ci.py | cdb253367d2166017af62e12fec556e1cd391201 | [
"MIT"
] | permissive | mingrammer/diagrams | 66b62ab484eca9cc439aee9b1cffedb1fcb9dba6 | b19b09761db6f0037fd76e527b9ce6918fbdfcfc | refs/heads/master | 2023-09-04T04:57:36.727192 | 2023-05-22T23:51:10 | 2023-05-22T23:51:10 | 237,791,077 | 31,257 | 2,119 | MIT | 2023-09-05T15:45:52 | 2020-02-02T15:23:24 | Python | UTF-8 | Python | false | false | 775 | py | ci.py | # This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _OnPrem
class _Ci(_OnPrem):
_type = "ci"
_icon_dir = "resources/onprem/ci"
class Circleci(_Ci):
_icon = "circleci.png"
class Concourseci(_Ci):
_icon = "concourseci.png"
class Droneci(_Ci):
_icon = "droneci.pn... |
1450d8f702a9794dc71942c750cbc0da9f503ea3 | ad4425b6ecd8fe75d521be0c01f8ff8cba6e8ed0 | /absl/tests/app_test_helper.py | 92f7be3ce06581c319b85ab1b665b7f1c48c16cf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abseil/abseil-py | 99430a2f48314c145e01be12f68581c9de94f5cb | e5f96d9056efc6d4169e51b379bc557e3462cdf7 | refs/heads/main | 2023-09-02T15:59:38.982733 | 2023-09-01T00:09:16 | 2023-09-01T00:09:46 | 104,132,246 | 2,280 | 277 | Apache-2.0 | 2023-09-14T20:05:59 | 2017-09-19T21:45:02 | Python | UTF-8 | Python | false | false | 4,660 | py | app_test_helper.py | # Copyright 2017 The Abseil 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 ... |
466e893423681387c697ec7f0b333f13614770f0 | 1b046f94e73603ca807225c3f32633f8712f93a6 | /tests/test_rii.py | c6a28bcbd10d9b5c7466bf80a40305e5efffff5d | [
"MIT"
] | permissive | matsui528/rii | 308e0695c9ba83354ffc14b725dd0d2b2f7b009c | 99910515d3a562d3050d9428c27e19476a47d8ba | refs/heads/main | 2022-09-04T09:31:57.304762 | 2022-08-06T03:33:45 | 2022-08-06T03:33:45 | 142,134,229 | 146 | 19 | MIT | 2022-08-06T03:33:46 | 2018-07-24T09:12:54 | C++ | UTF-8 | Python | false | false | 13,108 | py | test_rii.py | from .context import rii
import unittest
import numpy as np
import nanopq
class TestSuite(unittest.TestCase):
def setUp(self):
np.random.seed(123)
def test_construct(self):
M, Ks = 4, 20
N, D = 1000, 40
X = np.random.random((N, D)).astype(np.float32)
e = rii.Rii(fine_q... |
bcefae5dfa0fa4f496234778683ca63c4c1618ff | f00e34fb264447186ebdb8929ab5fdcd23619980 | /test/unit/console_tool/__init__.py | 677ed3dfd9661f76caaf78df739bc328991478ab | [
"MIT"
] | permissive | Backblaze/B2_Command_Line_Tool | f0afd86705248cfe03bded612450083d7c18f417 | 99b600719c7c83e4c476b2cc13ba08bd974091cb | refs/heads/master | 2023-08-29T01:54:52.367969 | 2023-08-15T20:19:44 | 2023-08-17T10:14:04 | 46,293,472 | 542 | 143 | NOASSERTION | 2023-09-11T21:22:10 | 2015-11-16T18:22:50 | Python | UTF-8 | Python | false | false | 344 | py | __init__.py | ######################################################################
#
# File: test/unit/console_tool/__init__.py
#
# Copyright 2023 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
"""Tests for the co... |
aa832524561235c298c73908c5f0cba645cf6af0 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /ai/feathr/feathr_project/feathr/registry/registry_utils.py | 027b0305be6af2a35b8f6fb10e4128788cc1244a | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT"
] | 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,305 | py | registry_utils.py | import inspect
from re import sub
from typing import List
from urllib.parse import urlparse
from feathr.constants import INPUT_CONTEXT
from feathr.definition.anchor import FeatureAnchor
from feathr.definition.dtype import FeatureType, str_to_value_type, value_type_to_str
from feathr.definition.feature import Feature
fr... |
c414fed6bb3510d9b7ffa3d86355d7d369f4f8fe | 450201e3dac529d165a0bf96c0cd31b644d53323 | /mistral/services/action_manager.py | 3f8ecf24794d48a56d7c2ea6b2f4b67ad7e53cbb | [
"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 | 1,379 | py | action_manager.py | # Copyright 2014 - Mirantis, Inc.
# Copyright 2014 - StackStorm, Inc.
# Copyright 2020 Nokia Software.
#
# 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.or... |
e32266f806bb9cc324c2b973554c330cf7fd55bd | 7162c7fa1433f8bacc666e611241b32232ef3792 | /tests/functional/__init__.py | 42627c2b683bdfac15c5f44281d6095451a29410 | [
"CC-BY-3.0",
"MIT"
] | permissive | econchick/interrogate | ff4e04e9a4a677a8dd694599e39705f80a5c3ad9 | 1e74611fc5296b0572b6bb11b480d43242c4ec49 | refs/heads/master | 2023-04-11T11:54:42.297583 | 2022-07-29T16:12:10 | 2022-07-29T16:12:10 | 258,385,030 | 497 | 49 | MIT | 2023-09-10T13:43:00 | 2020-04-24T02:33:25 | Python | UTF-8 | Python | false | false | 87 | py | __init__.py | # Copyright 2020 Lynn Root
"""Yay functional tests for the ``interrogate`` package!"""
|
ae6ecff06fb52e431c255da80fc907d47d21e46c | 35b6013c1943f37d1428afd2663c8aba0a02628d | /compute/client_library/snippets/tests/test_templates.py | 8a4321e77733f9cfe3feb43a7edeb7a2c07d6a0e | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 3,594 | py | test_templates.py | # Copyright 2021 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... |
8e6570d6980e926295090b75f4456f07f19c3b53 | 50927fa2c786a18436526345e4aca1490aa031dc | /core/src/main/python/wlsdeploy/util/variables.py | 0ef651a36218ec46a2bbd87976eaa338b376ac0a | [
"UPL-1.0",
"LicenseRef-scancode-other-copyleft",
"MIT",
"GPL-2.0-only",
"Classpath-exception-2.0",
"Apache-2.0",
"CDDL-1.1"
] | permissive | oracle/weblogic-deploy-tooling | c3646c297ac482fed921fb599182d557cf77d532 | 9fd74ae578a5b1353662facb0405e5672ecc5191 | refs/heads/main | 2023-09-01T08:40:12.305524 | 2023-08-26T13:26:37 | 2023-08-26T13:26:37 | 120,652,037 | 148 | 108 | UPL-1.0 | 2023-09-14T21:03:06 | 2018-02-07T18:08:30 | Python | UTF-8 | Python | false | false | 23,766 | py | variables.py | """
Copyright (c) 2017, 2023, Oracle Corporation and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
import os
import re
from java.lang import Boolean
from java.lang import System
from java.io import BufferedReader
from java.io import File
fr... |
8b3f9876da1d6e5653402ea9199b11e29134b1af | 6146e33102797407ede06ce2daa56c28fdfa2812 | /python/GafferImageTest/FormatQueryTest.py | 074ea7710c6546fd58fdc5728d959765dcc532c4 | [
"BSD-3-Clause"
] | permissive | GafferHQ/gaffer | e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64 | 59cab96598c59b90bee6d3fc1806492a5c03b4f1 | refs/heads/main | 2023-09-01T17:36:45.227956 | 2023-08-30T09:10:56 | 2023-08-30T09:10:56 | 9,043,124 | 707 | 144 | BSD-3-Clause | 2023-09-14T09:05:37 | 2013-03-27T00:04:53 | Python | UTF-8 | Python | false | false | 7,865 | py | FormatQueryTest.py | ##########################################################################
#
# Copyright (c) 2021, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... |
caa1172ca02ae0e41d9bc1be89485bd1f68ce3e6 | 94f23b6ee6a0cb96eb3a3e2d5a0900ab31d3e807 | /{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/commands.py | 0eb970e8c6661dd87873b896262785fbe57650fc | [
"MIT"
] | permissive | cookiecutter-flask/cookiecutter-flask | e08b1cde934db58b270dc0b6ff504996e2aa0f66 | 6be0173177fbf9210c463d9eaffbf4fdaed192d6 | refs/heads/master | 2023-08-30T17:35:13.734425 | 2023-08-29T03:54:22 | 2023-08-29T12:13:59 | 12,153,248 | 2,072 | 412 | MIT | 2023-09-13T20:52:59 | 2013-08-16T07:27:55 | Python | UTF-8 | Python | false | false | 1,964 | py | commands.py | # -*- coding: utf-8 -*-
"""Click commands."""
import os
from glob import glob
from subprocess import call
import click
HERE = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.join(HERE, os.pardir)
TEST_PATH = os.path.join(PROJECT_ROOT, "tests")
@click.command()
@click.option(
"-c/-C",
"--co... |
443ab2c32ab0f9b9f6166ae709f4652c4c8fea45 | 775e5461c46b26caa24393c0d9d6c09ed5ceab85 | /2LayerLSTM/lstmClassOld.py | 2473dded69b675738fc712875ee294c9b243764f | [
"Apache-2.0"
] | permissive | mike-bowles/hdDeepLearningStudy | d2154328b389671bdbbd8454a12e531c71248da0 | 1d4a9b2af5015b455c70952bc30a4cc3eeff963e | refs/heads/master | 2023-09-01T07:22:21.259949 | 2023-08-30T03:57:28 | 2023-08-30T03:57:28 | 53,914,628 | 306 | 104 | NOASSERTION | 2020-10-01T12:50:43 | 2016-03-15T04:29:02 | Python | UTF-8 | Python | false | false | 8,366 | py | lstmClassOld.py | import theano
import theano.tensor as T
import numpy as np
import random
import matplotlib.pyplot as plt
import cPickle as pickle
from math import sqrt
#from lstmClass import LstmLayer, recurrent_fn
'''Define lstm class for single layer lstm
The objective is to define in such a way as to facilitate construction of mul... |
2cb3fee5307d16adcbb03f6767aeaea0402b506d | 68073b5bbec051890bce2cdb0abbf1c7652002ed | /src/robotide/lib/robot/parsing/model.py | 0e8f22bfbe4da23c3502e6c3212ddadd0b1ae022 | [
"Apache-2.0"
] | permissive | robotframework/RIDE | 3b6dc9629e34b6f350e154e5f76d106fa48eaaa8 | ed4d650dbd806672401d4341fecc30274c4972c7 | refs/heads/master | 2023-09-05T15:59:01.151700 | 2023-09-02T22:39:16 | 2023-09-02T22:39:16 | 2,467,257 | 897 | 419 | Apache-2.0 | 2023-09-10T03:43:39 | 2011-09-27T11:53:40 | Python | UTF-8 | Python | false | false | 39,240 | py | model.py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... |
ea1113e9456cc97c6cd077d43b80452f3491bdd7 | 4e4b752c4dbecf0b0d9f7cb86f9f76bb0ffa5d32 | /opencensus/trace/span_data.py | 612b39f89d99c3b479c5e48af721e3624b63ffef | [
"Apache-2.0"
] | permissive | census-instrumentation/opencensus-python | ab6bcf12b16677d9ca7fc93a5f96c2946d138a0c | 3a2d8dfe1db4e0129dc691c35901a0d12127afc1 | refs/heads/master | 2023-09-02T13:53:19.757971 | 2023-03-16T22:10:07 | 2023-03-16T22:10:07 | 96,581,030 | 701 | 289 | Apache-2.0 | 2023-09-14T21:14:09 | 2017-07-07T22:28:28 | Python | UTF-8 | Python | false | false | 6,330 | py | span_data.py | # Copyright 2017, OpenCensus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... |
02d64f204f16bb2432cdf41cf394e90325046df4 | 9882a8d98429fe0f227b062b0e89da9b881e902c | /datasets/casia.py | beca7883ab334a55188d7d6efdd93d4c7c0a38d3 | [
"Apache-2.0"
] | permissive | grib0ed0v/face_recognition.pytorch | 87306a5b8c7ded2bf61ddaf2166bb868be8e72cc | 05cb9b30e8220445fcb27988926d88f330091c12 | refs/heads/develop | 2020-04-26T04:11:51.213924 | 2019-04-10T11:04:21 | 2019-04-10T11:04:21 | 173,293,569 | 170 | 23 | Apache-2.0 | 2019-04-10T11:04:22 | 2019-03-01T11:49:14 | Python | UTF-8 | Python | false | false | 2,348 | py | casia.py | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... |
c4f5632f46d8dc3898c8c8cdbb93b5f628f9214c | 52a677b94056d3397b4a499bc9185adb68a63f05 | /buildman/test_orchestrator.py | 39ac9bdcd3c6db49996f56716eae57bc9d314172 | [
"Apache-2.0"
] | permissive | quay/quay | 9b6fcff54efc0dbf7c6d91fa80676950555b6f1a | e400a0c22c5f89dd35d571654b13d262b1f6e3b3 | refs/heads/master | 2023-08-28T15:08:38.001842 | 2023-08-28T13:52:31 | 2023-08-28T13:52:31 | 220,517,730 | 2,363 | 322 | Apache-2.0 | 2023-09-14T17:43:48 | 2019-11-08T17:37:05 | Python | UTF-8 | Python | false | false | 5,558 | py | test_orchestrator.py | import time
from random import randrange
from test.fixtures import *
from unittest.mock import Mock, patch
import fakeredis
import pytest
from freezegun import freeze_time
from buildman.orchestrator import (
REDIS_EXPIRED_SUFFIX,
REDIS_EXPIRING_SUFFIX,
KeyChange,
KeyEvent,
MemoryOrchestrator,
... |
2faa6e6cec141eaaa98720aec04ca888c1e0592d | 1311696a180047135c825ffa283f9ac9750d4236 | /tests/publish/test_merge.py | 35cad25cfdbfac5edc7e0a3230e7b8723f4d2246 | [
"MIT"
] | permissive | Josverl/micropython-stubber | 71103afa842da02d5ad074b541d9bff7243ce23f | 68fe9113f4b4e611bb4c3d19f79c8ba0e7111f5e | refs/heads/main | 2023-08-31T00:51:22.200348 | 2023-05-31T07:48:54 | 2023-05-31T07:48:54 | 177,823,007 | 135 | 8 | NOASSERTION | 2023-09-11T21:25:19 | 2019-03-26T16:00:53 | Python | UTF-8 | Python | false | false | 2,358 | py | test_merge.py | from pathlib import Path
import pytest
from mock import MagicMock
from stubber.publish.merge_docstubs import merge_all_docstubs, copy_and_merge_docstubs
from .fakeconfig import FakeConfig
@pytest.mark.mocked
@pytest.mark.integration
def test_merge_all_docstubs_mocked(mocker, tmp_path, pytestconfig):
"""Test publ... |
e68c80fcc03bd3d3e261398f0dcacde0ea580704 | a6c84bfd01cf40a2ca32b538c02aa971a2abec88 | /src/triage/component/catwalk/feature_importances.py | 436afa8904fb2dbccb5951ba60fc8e0848ffac09 | [
"MIT"
] | permissive | dssg/triage | 01b480d103f1eba7e00822410a8ba462378c1f12 | 1b2049a9d10d8c6b70586e6fbc945ac4fa32fe68 | refs/heads/master | 2023-08-25T12:53:10.463078 | 2023-08-03T22:54:49 | 2023-08-03T22:54:49 | 71,394,134 | 177 | 64 | NOASSERTION | 2023-09-13T17:41:43 | 2016-10-19T19:55:46 | Jupyter Notebook | UTF-8 | Python | false | false | 2,487 | py | feature_importances.py | import verboselogs, logging
logger = verboselogs.VerboseLogger(__name__)
import numpy as np
import sklearn.linear_model
from sklearn.svm import SVC
from triage.component.catwalk.estimators.classifiers import ScaledLogisticRegression
def _ad_hoc_feature_importances(model):
"""
Get the "ad-hoc feature importa... |
dc52837e4caa86a48431babd27464a4aed1b41c0 | fad4aa5a174627b8930beb8f5f987dd62c88957e | /sky/skylet/providers/kubernetes/node_provider.py | b233462c2ac21c39c172290ee8a1bd02d6e68e33 | [
"Apache-2.0"
] | permissive | skypilot-org/skypilot | 603e29ecb3ce3b25d308f018fd402488ee352ef0 | e58f33f315ca08c6e057ab9a2d00cd27476529a1 | refs/heads/master | 2023-08-16T21:46:53.379586 | 2023-08-16T02:17:21 | 2023-08-16T02:17:21 | 395,140,743 | 3,416 | 220 | Apache-2.0 | 2023-09-14T21:20:44 | 2021-08-11T23:32:15 | Python | UTF-8 | Python | false | false | 13,618 | py | node_provider.py | import copy
import logging
import time
from typing import Dict
from urllib.parse import urlparse
from uuid import uuid4
from ray.autoscaler._private.command_runner import SSHCommandRunner
from ray.autoscaler.node_provider import NodeProvider
from ray.autoscaler.tags import NODE_KIND_HEAD
from ray.autoscaler.tags impor... |
cc5027167faf26f6cfef40343e390163583d4199 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Non_Linear_Finite_Element_Analysis_of_Solids_and_Structures_Borst/pyfem-1.0/pyfem/elements/Interface.py | 0a5cd9bb7b6b712c021e55db91290fd91396928b | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 6,048 | py | Interface.py | ############################################################################
# This Python file is part of PyFEM-1.0, released on Aug. 29, 2012. #
# The PyFEM code accompanies the book: #
# #
# 'No... |
75f3c0df9bf1d77f9843fa178e48f068bddb17e5 | 2d6323b8ccaf08a8929dba79fb9575c436977bd4 | /docassemble_webapp/docassemble/webapp/process_email.py | b85a1e712f2860b45823dca17c15e0654b94d370 | [
"MIT"
] | permissive | jhpyle/docassemble | f1c36e73d02807a7052b860dfceecdfa88e728c7 | 8726242cfbe3a15cad610dc2b518346be68ab142 | refs/heads/master | 2023-09-01T20:03:39.497473 | 2023-08-26T12:44:45 | 2023-08-26T12:44:45 | 34,148,903 | 691 | 300 | MIT | 2023-09-09T20:08:14 | 2015-04-18T02:09:32 | Python | UTF-8 | Python | false | false | 7,721 | py | process_email.py | import datetime
import email
import json
import mimetypes
import re
import sys
from email.utils import parseaddr, parsedate, getaddresses
from time import mktime
from sqlalchemy import select
import docassemble.base.config
docassemble.base.config.load()
import docassemble.webapp.worker # noqa: E402
import docassemble.... |
72ecde90cdac1a5fa966b8945d90a78df14125d2 | 50927fa2c786a18436526345e4aca1490aa031dc | /core/src/main/python/wlsdeploy/tool/discover/discoverer.py | a93443fdd7c72909dcb44b9f212ce4749c6d53d8 | [
"UPL-1.0",
"LicenseRef-scancode-other-copyleft",
"MIT",
"GPL-2.0-only",
"Classpath-exception-2.0",
"Apache-2.0",
"CDDL-1.1"
] | permissive | oracle/weblogic-deploy-tooling | c3646c297ac482fed921fb599182d557cf77d532 | 9fd74ae578a5b1353662facb0405e5672ecc5191 | refs/heads/main | 2023-09-01T08:40:12.305524 | 2023-08-26T13:26:37 | 2023-08-26T13:26:37 | 120,652,037 | 148 | 108 | UPL-1.0 | 2023-09-14T21:03:06 | 2018-02-07T18:08:30 | Python | UTF-8 | Python | false | false | 47,096 | py | discoverer.py | """
Copyright (c) 2017, 2022, Oracle Corporation and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
import os
from java.net import MalformedURLException
from java.net import URI
from java.net import URISyntaxException
from oracle.weblogic.de... |
f7916188e6252ec889ff0737625f8fa7cf276aef | 1df65ca19dd7cf303ba8c9481c0ed851197675ec | /src/tekore/_model/chapter/full.py | 5013c4338aff26b215c877422c452ea4f7af5b30 | [
"MIT"
] | permissive | felix-hilden/tekore | 068a178cdf66a94bf9a043f36f3e702c30f70849 | b04e43eca81ac39f8d5559d88317435b287fd290 | refs/heads/master | 2023-07-24T14:44:59.401888 | 2023-07-07T18:34:29 | 2023-07-07T18:34:29 | 201,959,999 | 180 | 30 | MIT | 2023-06-18T18:28:13 | 2019-08-12T15:41:18 | Python | UTF-8 | Python | false | false | 163 | py | full.py | from ..audiobook import SimpleAudiobook
from .base import Chapter
class FullChapter(Chapter):
"""Complete chapter object."""
audiobook: SimpleAudiobook
|
75ae393c6265c5b83f4ff9259a88346bfc653e5c | 5bf29ab4578ab2daaaff48cd5db2bbbe2840a5b0 | /collectors/PassiveTotal.py | 2573757e1879a5143dd44b71d93b252d1f2fccd7 | [
"BSD-3-Clause"
] | permissive | gfek/Lepus | f98b0e2f165650bd759613e1ca21f948bd45da86 | 28de99babcf9e71190075a20f7d7fee9c1e5dd91 | refs/heads/master | 2023-07-21T02:20:41.541182 | 2022-11-14T16:07:52 | 2022-11-14T16:07:52 | 130,077,053 | 335 | 41 | BSD-3-Clause | 2023-07-17T12:19:34 | 2018-04-18T14:42:24 | Python | UTF-8 | Python | false | false | 1,715 | py | PassiveTotal.py | import requests
from termcolor import colored
from configparser import RawConfigParser
def init(domain):
PT = []
print(colored("[*]-Searching PassiveTotal...", "yellow"))
parser = RawConfigParser()
parser.read("config.ini")
PT_KEY = parser.get("PassiveTotal", "PT_KEY")
PT_SECRET = parser.get("PassiveTotal", "... |
cd55e827b95b21e978cfde99c17d5a88222d625d | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/test/data/password_manager/form_classification_tests/signup_forms_test.py | fd3847824fb77f8fff4ddbce90cfe1d85f93e036 | [
"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 | 25,015 | py | signup_forms_test.py | # Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import time
import unittest
from form_classification_test import FormClassificationTest
"""Unittest class for testing signup forms.
The test methods were generated by the form a... |
cda735a979334774c7752eb151f6e3e9ee9d57d9 | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/pytests/functional/modules/test_saltutil.py | f9e72a9f73e6cb3471727ab1e3ca56de7fd4e9fb | [
"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 | 1,699 | py | test_saltutil.py | import pytest
import salt.config
import salt.loader
import salt.modules.saltutil
import salt.state
from tests.support.mock import patch
@pytest.fixture
def opts(salt_master_factory):
config_overrides = {"master_uri": "tcp://127.0.0.1:11111"}
factory = salt_master_factory.salt_minion_daemon(
"get-tops... |
7289f04c6c6707d0c7f842a37c762d45dfedcc83 | 2b7180b739df298195e35a71e20a4251f83b4813 | /dino/db/manager/broadcast.py | 6e5fffc1d8357718c9ecc4e7a702e24921b20e2b | [
"Apache-2.0"
] | permissive | thenetcircle/dino | 625f752046502a04ab9ec42b0a8c437d7123bcbb | f1f68954191f64cdec4b3914caf154300ccbf519 | refs/heads/master | 2023-08-10T09:59:07.064141 | 2023-08-03T07:56:19 | 2023-08-03T07:56:19 | 69,937,941 | 153 | 21 | Apache-2.0 | 2023-02-15T22:53:29 | 2016-10-04T05:40:09 | Python | UTF-8 | Python | false | false | 1,072 | py | broadcast.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.