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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e847237ba52e9ae5708ef5eac9d85b5ac9248ea7 | 854b94d7be92582bd191a7cb63143a95e5b5c337 | /hyfetch/distros/hyperbola.py | 8628a0710280318c469376d49fc057aef6e37f7e | [
"MIT"
] | permissive | hykilpikonna/hyfetch | 673c0c999d0f3f542349824495ad6004f450ebac | 98863df16d70b030696f4b94080d114396320f35 | refs/heads/master | 2023-08-17T10:41:10.289997 | 2023-08-17T03:37:23 | 2023-08-17T03:37:23 | 479,913,941 | 447 | 78 | MIT | 2023-09-14T14:39:18 | 2022-04-10T04:38:15 | Shell | UTF-8 | Python | false | false | 693 | py | hyperbola.py | # This file is automatically generated. Please do not modify.
from . import AsciiArt
hyperbola = AsciiArt(match=r'''"Hyperbola"*''', color='8', ascii=r"""
${c1} WW
KX W
WO0W NX0O
NOO0NW WNXK0OOKW
... |
0cf185c7526cf94e9088474db5e3870f9ce93f9c | 08cdf212eebebdff17e888522b0c6bc837fd0b3a | /brain/brain/models/sqlobjects.py | 446da2db434ddab5c5ccadf1ddd9a71a9d5e4adf | [
"Apache-2.0"
] | permissive | quarkslab/irma | 1f5b32c17195f709d3bb9ff7f7199aad4c76dfd3 | 4e3e2c0fa82e352a1a7a7fd02381a4d84bed9f09 | refs/heads/master | 2023-03-03T15:37:51.480982 | 2022-10-19T19:30:27 | 2022-10-19T19:30:27 | 26,581,177 | 267 | 81 | Apache-2.0 | 2023-03-01T23:09:39 | 2014-11-13T09:47:20 | JavaScript | UTF-8 | Python | false | false | 6,995 | py | sqlobjects.py | #
# Copyright (c) 2013-2018 Quarkslab.
# This file is part of IRMA project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the top-level directory
# of this distribution and at:
#
# http:... |
65e08d2eedd407cd4ead0de8c5bbf5e5adbce8f8 | 499f5402baed77d000c65f243b457c69dc3d2fe4 | /tests/in/test_measurable.py | ab044d102be79012b7e1df28de43a7c487c93ae6 | [
"MIT"
] | permissive | evereux/pycatia | 416189b34f3c60effea8a76258e36ffc5ae86e22 | 5f5726d5dc66265b3eba8a01910c4aeae424365d | refs/heads/master | 2023-08-21T10:03:41.660445 | 2023-08-09T16:21:10 | 2023-08-09T16:21:10 | 159,069,580 | 141 | 42 | MIT | 2023-08-09T11:15:27 | 2018-11-25T20:04:31 | Python | UTF-8 | Python | false | false | 17,519 | py | test_measurable.py | #! /usr/bin/python3.9
"""
This file is named test_measurable.py so these tests are run first. Otherwise the tests would fail for
test_document.py. I've no idea why at the moment.
"""
from pycatia import CATIADocHandler
from pycatia.enumeration.enumeration_types import cat_measurable_name
from pycatia.mec_mod_... |
156755252b1610643d07bbe85e86339dcd8868ab | 95a9386c323eaf2cd05d8f2e50c36863fb052ab7 | /tests/filters/transformations_test.py | 70b161ec1c26eac73009122ea81a8ac68de1fb4a | [
"MIT"
] | permissive | googlefonts/ufo2ft | a431ed54a895e654c1fff1d449959aef91ac3398 | b3895a96ca910c1764df016bfee4719448cfec4a | refs/heads/main | 2023-08-21T12:52:10.348076 | 2023-08-04T15:45:55 | 2023-08-04T15:45:55 | 29,605,985 | 106 | 28 | MIT | 2023-09-12T08:07:28 | 2015-01-21T19:00:19 | Python | UTF-8 | Python | false | false | 7,308 | py | transformations_test.py | from math import isclose
import pytest
from ufo2ft.filters.transformations import TransformationsFilter
@pytest.fixture(
params=[
{
"capHeight": 700,
"xHeight": 500,
"glyphs": [
{"name": "space", "width": 500},
{
"na... |
7f444bdef4cb250f358bd6c1913fb4410caabf8e | e1fa3d6dc2b47403c610f05f70cd2799cd4ee5c5 | /setup.py | a4720fa9045b20ff31f949b03ff4805f2cf2a406 | [
"MIT"
] | permissive | rcmalli/keras-vggface | 4d9f5fc3950c93cc598077954f06b421471520f8 | bee35376e76e35d00aeec503f2f242611a97b38a | refs/heads/master | 2023-07-17T03:15:28.339212 | 2023-04-16T18:21:16 | 2023-04-16T18:21:16 | 71,151,117 | 961 | 456 | MIT | 2023-04-16T18:35:05 | 2016-10-17T15:07:40 | Python | UTF-8 | Python | false | false | 766 | py | setup.py | from setuptools import setup, find_packages
exec(open('keras_vggface/version.py').read())
setup(
name='keras_vggface',
version=__version__,
description='VGGFace implementation with Keras framework',
url='https://github.com/rcmalli/keras-vggface',
author='Refik Can MALLI',
author_email="mallir@it... |
648bd77283c4f0324fa1bd98f063f2635ad4a680 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tools/pot/openvino/tools/pot/configs/templates/__init__.py | 6b0e0edda5b1c6f9cf245472d40337bf7d3c1409 | [
"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 | 77 | py | __init__.py | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
|
886df378a3822c9ce8c6d8049de29f10f535d64b | 0760fb4901a75766921a205b55686d6d6f049b30 | /python/ray/dag/vis_utils.py | 0f83257295a10b8c3507dd3ec77a861ada7cf814 | [
"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 | 3,021 | py | vis_utils.py | from ray.dag import DAGNode
import os
import tempfile
from ray.dag.utils import _DAGNodeNameGenerator
from ray.util.annotations import DeveloperAPI
@DeveloperAPI
def plot(dag: DAGNode, to_file=None):
if to_file is None:
tmp_file = tempfile.NamedTemporaryFile(suffix=".png")
to_file = tmp_file.nam... |
0f5d06e8fd2af8e83d88e06468fc645cec9fb6a2 | 8a85eb9b50864626cd2674f15b07df3d5dbe0b73 | /neo/core/imagesequence.py | 231a4a20463184ad653128f9711cf4e55e538a30 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | NeuralEnsemble/python-neo | 287d3457a44c45f4dcbee0e9f9a2a5d83142de69 | 354c8d9d5fbc4daad3547773d2f281f8c163d208 | refs/heads/master | 2023-09-06T03:29:34.835053 | 2023-09-01T09:17:14 | 2023-09-01T09:17:14 | 3,949,530 | 265 | 213 | BSD-3-Clause | 2023-09-14T19:09:24 | 2012-04-06T12:48:48 | Python | UTF-8 | Python | false | false | 10,208 | py | imagesequence.py | """
This module implements :class:`ImageSequence`, a 3D array.
:class:`ImageSequence` inherits from :class:`basesignal.BaseSignal` which
derives from :class:`BaseNeo`, and from :class:`quantities.Quantity`which
in turn inherits from :class:`numpy.array`.
Inheritance from :class:`numpy.array` is explained here:
http:/... |
f2cdd7c939c87b6daec6902938ccc8c6c893be85 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DQM/L1TMonitor/python/L1TRPCTPG_offline_cff.py | 4a4f26a88f5f777906145d188ef7ad59d34254f1 | [
"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 | 358 | py | L1TRPCTPG_offline_cff.py | import FWCore.ParameterSet.Config as cms
from DQM.L1TMonitor.L1TRPCTPG_cfi import *
from EventFilter.RPCRawToDigi.RPCSQLiteCabling_cfi import *
from EventFilter.RPCRawToDigi.rpcUnpacker_cfi import *
#l1trpctpg.rpctpgSource = cms.InputTag("rpcunpacker")
#l1trpctpg.rpctfSource = cms.InputTag("gtUnpack")
l1trpctpgpa... |
a3dc4690450da0761295b30ab7e76e5b5b8aec37 | 8ca4992e5c7f009147875549cee21c0efb7c03eb | /mmseg/core/evaluation/__init__.py | 20ae97e2a80b4f0109b8b4ff42e1fcb87cd7fd9d | [
"Apache-2.0"
] | permissive | JiayuZou2020/DiffBEV | 0ada3f505fc5106d8b0068c319f0b80ed366b673 | 527acdb82ac028061893d9d1bbe69e589efae2a0 | refs/heads/main | 2023-05-23T07:25:39.465813 | 2023-04-04T02:53:05 | 2023-04-04T02:53:05 | 613,895,691 | 181 | 8 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | __init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .class_names import get_classes, get_palette
from .eval_hooks import DistEvalHook, EvalHook
from .metrics import (eval_metrics, intersect_and_union, mean_dice,
mean_fscore, mean_iou, pre_eval_to_metrics)
__all__ = [
'EvalHook', 'Dist... |
c53508812e26d4d8a0506f55fd39a8fbe5fb5638 | 141c5ef07df60b1c9f726e4605b78a2a7c1243e9 | /tests/test_togglex.py | 17eed1101a16edb4ea755693fe51e537d1f574c0 | [
"MIT"
] | permissive | albertogeniola/MerossIot | cd8abaac236a7fb442bdf9613c7e6760123c8bd3 | de1c22696511eee106961da3f22d3030ed9c254c | refs/heads/0.4.X.X | 2023-09-01T11:11:09.793153 | 2023-04-01T15:15:50 | 2023-04-01T15:15:50 | 146,365,723 | 467 | 102 | MIT | 2023-09-11T06:42:13 | 2018-08-27T23:30:56 | Python | UTF-8 | Python | false | false | 6,954 | py | test_togglex.py | import os
from aiohttp import web
from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop
from meross_iot.controller.mixins.garage import GarageOpenerMixin
from meross_iot.controller.mixins.toggle import ToggleXMixin
from meross_iot.http_api import MerossHttpClient
from meross_iot.manager import MerossManag... |
cfa72fc8c6a8c089b91eb996016f98742651dab5 | e7795082c0131682803a09e929a86b2deddeab74 | /app/case/__init__.py | b822061bc3b529152976805e25bf778487d78217 | [
"MIT"
] | permissive | liwanlei/FXTest | 01de3ad55849b16c49d93b58d1aae21fd0fdafa0 | aeda58d01c14194290ca149d411c3a8596cca82d | refs/heads/master | 2023-04-01T15:45:26.668688 | 2023-03-19T05:19:54 | 2023-03-19T05:19:54 | 97,098,845 | 807 | 419 | MIT | 2022-04-23T06:52:16 | 2017-07-13T08:27:48 | Python | UTF-8 | Python | false | false | 139 | py | __init__.py | """
@author: lileilei
@file: __init__.py.py
@time: 2018/1/31 13:19
"""
from app.case.views import case
from app.case import views, urls
|
699c211ac11ed7ba92b9d5e402f905a638c272fb | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiMerchantDepartmentShopModifyModel.py | 56a237d912a1cdf2c9ce1215270d0f3256003bda | [
"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 | 4,413 | py | KoubeiMerchantDepartmentShopModifyModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.SimpleShopModel import SimpleShopModel
from alipay.aop.api.domain.SimpleShopModel import SimpleShopModel
class KoubeiMerchantDepartmentShopModifyModel(object):
def __init__(s... |
b0c11edc74cf58c9191cc4665e9ad976224be07d | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/sphere/azure-mgmt-sphere/azure/mgmt/sphere/models/_azure_sphere_mgmt_client_enums.py | 57c7a28044110f9ac29e75c7472fec668253247a | [
"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 | 5,270 | py | _azure_sphere_mgmt_client_enums.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 ... |
d0c24c87203f1f09b15f1c7a379d95791a8eefd5 | b12d39daea67c38209bc3e04a538379b7e9b59ef | /findpeaks/filters/lee_sigma.py | 2b8aa6abe907f4442d8db43a90cb8b16012513f1 | [
"MIT"
] | permissive | erdogant/findpeaks | 0e6c547c01a803c1f072c9b44bd301ca7a909d6f | b1735bbdcca8f176e0fd0b235b4cd014d1f8a2ea | refs/heads/master | 2023-08-29T18:32:23.956359 | 2023-08-11T18:16:29 | 2023-08-11T18:16:29 | 260,400,472 | 164 | 21 | NOASSERTION | 2023-08-11T18:16:31 | 2020-05-01T07:12:37 | Python | UTF-8 | Python | false | false | 16,543 | py | lee_sigma.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 2023: Caroline Goehner: <carolinesophie.goehner@eurac.edu> <carosophie.goehner@gmail.com>
# This part of the library was written at Eurac Research in the
# framework of the project ScaleAgData (SCALING ΑGRICULTURAL SENSOR
# DATA for an improved monitoring of agri-envir... |
a5864666c497c775b0f027183cc5409032410ea7 | 5ef6c8d47864f471e26b9902d61f8c687e941f05 | /src/genie/libs/parser/iosxe/tests/ShowCryptoPkiServerRequests/cli/equal/golden_output_csr8kv_subca_expected.py | 783ffa7c93be7fe6825273555e2b43beb4eb3c12 | [
"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 | 387 | py | golden_output_csr8kv_subca_expected.py | expected_output = {
'request': {
'subordinate_ca': {
'1': {
'state': 'granted',
'fingerprint': '744566E755B84AEE18A86DF715D8EE33',
'subject_name': 'hostname=pki-reg2.cisco.com,cn=R1'
... |
444661ebc478af366c8a5b453af3f2f04a7b77d0 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /neural-networks-and-deep-learning/src/old/deep_autoencoder.py | afafce524c5d1a62e1239f9005b96085e105761d | [
"MIT"
] | permissive | 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 | 4,702 | py | deep_autoencoder.py | """
deep_autoencoder
~~~~~~~~~~~~~~~~
A module which implements deep autoencoders.
"""
#### Libraries
# Standard library
import random
# My libraries
from backprop2 import Network, sigmoid_vec
# Third-party libraries
import numpy as np
def plot_helper(x):
import matplotlib
import mat... |
1205e50d5741e2b5c39b6331ed39c4896cee68b5 | 69d8d91954f6623f3674d52d734d589f72383628 | /horizon/browsers/breadcrumb.py | ea384aa396ab8d46600da7b1a6e2aea05bff61b3 | [
"Apache-2.0"
] | permissive | openstack/horizon | d031cebe126c06ad9717bbc52790b3d890e8661e | 7896fd8c77a6766a1156a520946efaf792b76ca5 | refs/heads/master | 2023-09-04T06:57:58.069907 | 2023-09-01T20:17:10 | 2023-09-01T20:17:10 | 2,665,166 | 1,060 | 1,175 | Apache-2.0 | 2023-08-07T02:33:44 | 2011-10-28T13:12:05 | Python | UTF-8 | Python | false | false | 1,736 | py | breadcrumb.py | # Copyright 2012 Nebula, 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 agree... |
349c593df86372a5e07f98dd855788d50c6491d0 | dee696adb52739dd7d4021878bcbade43b359b0c | /sonora/aio.py | 6ec4e9a0730e5b82427002966c3e7f9e36b75465 | [
"Apache-2.0"
] | permissive | public/sonora | bbd5f3440301799ed53a7c5659efcefbaf572d9a | f5c7b3dd1826cad5c1252455e14a27bdb17eb2b6 | refs/heads/master | 2023-08-21T05:53:23.711907 | 2023-08-18T16:56:54 | 2023-08-18T16:56:54 | 182,774,837 | 230 | 14 | Apache-2.0 | 2023-08-23T14:43:07 | 2019-04-22T11:54:12 | Python | UTF-8 | Python | false | false | 5,503 | py | aio.py | import asyncio
import io
import aiohttp
import grpc.experimental.aio
from sonora import protocol
import sonora.client
def insecure_web_channel(url):
return WebChannel(url)
class WebChannel:
def __init__(self, url):
if not url.startswith("http") and "://" not in url:
url = f"http://{url... |
78efa97d3168584172a4bb2567cf92c94878c5f1 | 7f24023d365e013ec0924844c1a872edfb0c75b4 | /tests/trac/test-issue-0073.py | 05673ba29db7188ac889d6612284b79cab5aedee | [
"Python-2.0",
"MIT",
"Apache-2.0"
] | permissive | pabigot/pyxb | cd42c024607572c6363682d389e9296caf3f2857 | 5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a | refs/heads/next | 2023-05-11T03:23:19.599756 | 2023-04-29T20:38:15 | 2023-04-29T20:45:13 | 20,547,850 | 130 | 63 | Apache-2.0 | 2021-08-19T16:52:18 | 2014-06-06T01:49:03 | Python | UTF-8 | Python | false | false | 1,700 | py | test-issue-0073.py | # -*- coding: utf-8 -*-
import logging
if __name__ == '__main__':
logging.basicConfig()
_log = logging.getLogger(__name__)
import pyxb.binding.generate
import pyxb.utils.domutils
from xml.dom import Node
import os.path
xsd='''<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSch... |
46246833437b0716571b0324c8d6976c8e41591e | 38d86234ef4ba4ed5ac3bf585bcff8615004d2a6 | /ssseg/modules/models/backbones/__init__.py | 2218a55da453e906834e8beac40d8703605879a8 | [
"Apache-2.0"
] | permissive | SegmentationBLWX/sssegmentation | e57e7a071b03214c55248c4b1e64c85796744bf1 | fe3d0dac83055b728fe3c5df964507fc7cc4948c | refs/heads/main | 2023-08-05T02:49:57.370911 | 2023-08-01T13:49:17 | 2023-08-01T13:49:17 | 306,540,019 | 725 | 97 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | __init__.py | '''initialize'''
from .builder import BuildBackbone
from .bricks import (
BuildDropout, BuildActivation, BuildNormalization, Scale, L2Norm, makedivisible, truncnormal,
FFN, MultiheadAttention, nchwtonlc, nlctonchw, PatchEmbed, PatchMerging, AdaptivePadding,
DynamicConv2d, AdptivePaddingConv2d, SqueezeExcit... |
15eab73ceb7ec6f2ca0b207a4c3784bf4ddecf52 | b26c41926fa3a7c2c061132d80e91a2750f2f468 | /tensorflow_probability/python/internal/test_combinations_test.py | 7903e7a52cbd85ee4be424abff335c43fb6de6c5 | [
"Apache-2.0"
] | permissive | tensorflow/probability | 22e679a4a883e408f8ef237cda56e3e3dfa42b17 | 42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5 | refs/heads/main | 2023-09-04T02:06:08.174935 | 2023-08-31T20:30:00 | 2023-08-31T20:31:33 | 108,053,674 | 4,055 | 1,269 | Apache-2.0 | 2023-09-13T21:49:49 | 2017-10-23T23:50:54 | Jupyter Notebook | UTF-8 | Python | false | false | 2,657 | py | test_combinations_test.py | # Copyright 2019 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
3c63d20be682825d91105a728f21ccec10e54cfb | c2634ebec1d4448e372d174f459c3cbc03fd1edc | /lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/fixtures/python/runner.py | 5df0f0d1bae49da0aaf01ea5b0e7f5591b0383c5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"SunPro",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | stdlib-js/stdlib | ede11aee78f08e4f78a0bb939cb0bc244850b55b | f10c6e7db1a2b15cdd2b6237dd0927466ebd7278 | refs/heads/develop | 2023-09-05T03:29:36.368208 | 2023-09-03T22:42:11 | 2023-09-03T22:42:11 | 54,614,238 | 4,163 | 230 | Apache-2.0 | 2023-09-13T21:26:07 | 2016-03-24T04:19:52 | JavaScript | UTF-8 | Python | false | false | 2,860 | py | runner.py | #!/usr/bin/env python
#
# @license Apache-2.0
#
# Copyright (c) 2018 The Stdlib 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
#
# ... |
396f3858dfe86ccf93ed43c6bd43f201ae507bdf | 9c54b9ea3e9fe208457bf64ad53eba8889f4b057 | /Problem008/Python/solution_1.py | 4bfcfda046297dd9978a11a3f9b3ab70a3131920 | [
"MIT"
] | permissive | DestructHub/ProjectEuler | e0d77c02f0646a85d09af64127e92ac907ebad2a | efba582f976cd59748566c19799d84984c77ea61 | refs/heads/master | 2022-12-21T13:08:00.128200 | 2021-10-06T12:47:48 | 2022-12-15T20:33:12 | 36,625,177 | 179 | 87 | MIT | 2022-12-15T20:33:14 | 2015-05-31T22:36:19 | Python | UTF-8 | Python | false | false | 1,831 | py | solution_1.py | #!/usr/bin/env python
# coding=utf-8
#
# Python Script
#
# Copyleft © Manoel Vilela
#
#
from functools import reduce
"""
Largest product in a series
Problem 8
The four adjacent digits in the 1000-digit number
that have the greatest product are 9 × 9 × 8 × 9 = 5832.
Find the thirteen adjacent digits in the 1000... |
1cc2b26745f5e4868475e77815925d5d3727369a | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayEbppInvoiceDetailOutputQueryModel.py | 7caea548575034a9bde0fd524a7c5425a7570b24 | [
"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,535 | py | AlipayEbppInvoiceDetailOutputQueryModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayEbppInvoiceDetailOutputQueryModel(object):
def __init__(self):
self._invoice_code = None
self._invoice_no = None
self._open_id = None
self._scene = None
... |
64ace9c7a7de540bc482b95bc338f7944b754fe1 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Python_Programming_in_OpenGL_Blank/PyRandQuat.py | dceffc2194e3aa0fdd34e7bf780ab9a0b8df2fc5 | [] | 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 | 4,856 | py | PyRandQuat.py | # pyRandQuat.py
# Dr. Blank's version
# of the Quaternion Julia Set
# with a Mandelbrot option
from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GLU import *
from math import *
from random import *
import sys
import psyco
psyco.full()
#define some globals
global vv
global aff
global wd
... |
f3cba9c44f01f7b1910a20f0ce4ced73e65da020 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /olap/ByConity/tests/testflows/rbac/tests/privileges/alter/alter_settings.py | d5a8b73534ee1a8d05c53efcc77be40c86a6987a | [
"Apache-2.0",
"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 | 8,692 | py | alter_settings.py | import json
from testflows.core import *
from testflows.asserts import error
from rbac.requirements import *
from rbac.helper.common import *
import rbac.helper.errors as errors
from rbac.helper.tables import table_types
aliases = {"ALTER SETTINGS", "ALTER SETTING", "ALTER MODIFY SETTING", "MODIFY SETTING", "ALL"}
... |
0f724b79ea93a7d38b183c7d607ada6cb64b605a | c35d9aca896346872edad0e03e189fed2fa58441 | /delorean/exceptions.py | 0e33a2a9ba85d2b64b8915cdd9ddc28449298659 | [
"MIT"
] | permissive | myusuf3/delorean | 67fd805f6954eb37df4308220987438ca4b6cbfa | c3b2020c06b56dbf5081a8fa33a30a6589fec593 | refs/heads/master | 2023-02-06T22:04:43.262136 | 2022-06-28T23:50:57 | 2022-06-28T23:50:57 | 2,420,190 | 1,384 | 122 | MIT | 2023-02-03T20:21:33 | 2011-09-20T03:46:19 | Python | UTF-8 | Python | false | false | 520 | py | exceptions.py | class DeloreanError(Exception):
"""
Base Delorean Exception class
"""
def __init__(self, msg):
self.msg = str(msg)
Exception.__init__(self, msg)
def __str__(self):
return self.msg
class DeloreanInvalidTimezone(DeloreanError):
"""
Exception that is raised when an i... |
2684ef6927074bf73d7e7e8eaeb3c90d1d485512 | 68b5cefc2b602aafd708a68006d3d6d33bc715c1 | /Athos/Networks/CheXpert/Util.py | 5a26bbb39aea07776126e371524b79b670cc49ce | [
"MIT"
] | permissive | mpc-msri/EzPC | 4d839d5741bf1e65df7e478492a047bde8e1f5a5 | c6e60b1bd2125b169ed3c17ee37fbe0e56c4b8ad | refs/heads/master | 2023-08-09T17:37:25.135926 | 2023-08-02T07:04:08 | 2023-08-02T07:04:08 | 170,995,719 | 327 | 111 | MIT | 2023-09-07T07:09:05 | 2019-02-16T11:23:32 | C++ | UTF-8 | Python | false | false | 8,717 | py | Util.py | """
Authors: Saksham Gupta.
Copyright:
Copyright (c) 2020 Microsoft Research
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, c... |
9bc3619c3dbdb0792fdbe27244a3ef3bd3d4a9f7 | 18c63c04feaed9d8cd5056a58ccde7baa1563e3a | /tests/test_mru.py | d11dba460a03e46859d8b6f1b7cb7f0572ab3a7b | [
"MIT"
] | permissive | tkem/cachetools | d2aaa4ca3ea22e29a5e25f434b090bec2fe66921 | 8b56caa87f2dc624f3ec453127559ab893616efa | refs/heads/master | 2023-08-11T22:39:28.854454 | 2023-05-27T20:35:28 | 2023-05-27T20:35:28 | 18,006,791 | 1,779 | 175 | MIT | 2023-08-30T10:15:06 | 2014-03-22T10:15:14 | Python | UTF-8 | Python | false | false | 1,253 | py | test_mru.py | import unittest
from cachetools import MRUCache
from . import CacheTestMixin
class MRUCacheTest(unittest.TestCase, CacheTestMixin):
Cache = MRUCache
def test_evict__writes_only(self):
cache = MRUCache(maxsize=2)
cache[1] = 1
cache[2] = 2
cache[3] = 3 # Evicts 1 because no... |
bb2d8b65e2257f2244b17fc5f8ac1f966f5dd824 | b7163b44b679e082fe97cf7fcd0c73b2fcdb38eb | /modules/dbnd/src/dbnd/tasks/doctor/system_logging.py | 942042ecb0886b35731804defe852dcb4d0462c9 | [
"Apache-2.0"
] | permissive | databand-ai/dbnd | 70c95d95e12bfb8ab471a6dce27691ed658cb92d | d59c99dcdcd280d7eec36a693dd80f8c8c831ea2 | refs/heads/develop | 2023-06-24T18:07:56.524526 | 2023-05-28T07:57:36 | 2023-05-28T07:57:36 | 231,361,064 | 257 | 33 | Apache-2.0 | 2023-08-06T08:30:28 | 2020-01-02T10:42:47 | Python | UTF-8 | Python | false | false | 2,727 | py | system_logging.py | # © Copyright Databand.ai, an IBM Company 2022
from __future__ import print_function
import logging
import sys
from dbnd._core.current import try_get_databand_context
from dbnd._core.task_build.dbnd_decorator import task
from dbnd.tasks.doctor.doctor_report_builder import DoctorStatusReportBuilder
logger = logging... |
bde927cf42bcfe6d450425c827971d1b399f2a25 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/mock_torch/__main__.py | 94c74c63d10977d99d1f9d1689ad69cff2a17228 | [
"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 | 1,632 | py | __main__.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... |
c9e034af82ba431a5460c656b9a35e9dc2809237 | aed152c93eb7a40780c1aa5a7a719dbef33c6aa6 | /tests/test_simplifiers_text.py | a2296a6ade1572c616b04e74a610a24368e878ab | [
"MIT"
] | permissive | alan-turing-institute/ReadabiliPy | d8bb16e9b8e177b092a3aa54f783dd39e668d317 | 8905cb9c22d2f813dabe86be5e9e4ea4e1f36df3 | refs/heads/master | 2023-08-31T05:31:03.074817 | 2023-08-18T10:03:48 | 2023-08-18T10:03:48 | 154,998,135 | 116 | 25 | MIT | 2023-05-15T10:44:32 | 2018-10-27T18:47:08 | HTML | UTF-8 | Python | false | false | 4,061 | py | test_simplifiers_text.py | from pytest import mark
from checks import check_exact_html_output
from readabilipy.simplifiers import normalise_text, normalise_unicode, normalise_whitespace, strip_control_characters, strip_html_whitespace
from readabilipy.simplifiers import text
def test_unicode_normalisation():
nfd_form = "Ame\u0301lie"
... |
eb6c257eb246b5b687fc3e7bbd6ec0cc9a541fd2 | 999f6b0dfdb387a8e4dfbbcda184582b26475a45 | /promgen/shortcuts.py | ef4c60555890aec97f03d2da57133083f0cfdd5c | [
"MIT",
"BSD-3-Clause"
] | permissive | line/promgen | 86fc6f69969ed4197caca41242206716d88335ef | b99f2ba1c8f41d676d43ae9a5f63f1e4fff9b664 | refs/heads/master | 2023-08-19T11:46:12.251750 | 2023-08-18T04:50:12 | 2023-08-18T04:50:12 | 64,717,629 | 1,049 | 169 | MIT | 2023-08-18T04:50:13 | 2016-08-02T02:35:13 | Python | UTF-8 | Python | false | false | 507 | py | shortcuts.py | # Copyright (c) 2017 LINE Corporation
# These sources are released under the terms of the MIT license: see LICENSE
from urllib.parse import urlunsplit
from django.conf import settings
from django.shortcuts import resolve_url
from promgen import models
def resolve_domain(*args, **kwargs):
return urlunsplit(
... |
87aa0b1831584446fa00b7d66052f416b05ef524 | e34810541899182d3a0835e02fa68389af63a805 | /test/test_lopf_multiinvest.py | e06f4a8e7187515c181b5db8d53a8025d5d670a1 | [
"MIT"
] | permissive | PyPSA/PyPSA | 483216289643ca496d66d316a22e000afa15706c | 38b710c73950d05164e7d6c9dd786065ee7cde44 | refs/heads/master | 2023-08-19T20:55:17.329666 | 2023-08-17T10:40:50 | 2023-08-17T10:40:50 | 49,414,256 | 891 | 399 | MIT | 2023-09-14T14:09:38 | 2016-01-11T09:04:18 | Python | UTF-8 | Python | false | false | 17,293 | py | test_lopf_multiinvest.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 2 10:21:16 2021.
@author: fabian
"""
import pandas as pd
import pytest
from conftest import optimize
from numpy.testing import assert_array_almost_equal as equal
from pandas import IndexSlice as idx
import pypsa
from pypsa.descriptors import get_... |
85265e6e916aabfac64a86e835fe34ce3668ea14 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/metric_learn/infer/sdk/main.py | b4fdde513b42ad4281049573892b6e464f3d98f4 | [
"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 | 4,598 | py | main.py | # Copyright 2022 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... |
6fc4688ec257779777a3e5beae11a9fbd5c2cc6e | 312a8fde11293cb142334a3860966ec1f75ac401 | /timesketch/lib/analyzers/authentication/utils_test.py | f89b054b1cc4ba0423eb75bc3894baf7b14fb791 | [
"Apache-2.0"
] | permissive | google/timesketch | f0fd09062a8a24bac581d2d4286d095d667d2f10 | 24f471b58ca4a87cb053961b5f05c07a544ca7b8 | refs/heads/master | 2023-08-31T21:48:19.602686 | 2023-08-31T11:24:17 | 2023-08-31T11:24:17 | 21,009,909 | 2,263 | 647 | Apache-2.0 | 2023-09-14T14:08:07 | 2014-06-19T17:49:45 | Python | UTF-8 | Python | false | false | 23,171 | py | utils_test.py | # Copyright 2023 Google Inc. 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 a... |
37e8ebff2a65c15a451e4c0a07f5e340a610805c | 9efca95a55cb4df52d895d42f1ec10331516a734 | /tools/c7n_tencentcloud/tests/test_tc_query.py | e05f1563342081fb5055359b6695a24cc6afb51a | [
"Apache-2.0"
] | permissive | cloud-custodian/cloud-custodian | 519e602abe00c642786441b64cc40857ef5bc9de | 27563cf4571040f923124e1acb2463f11e372225 | refs/heads/main | 2023-09-04T10:54:55.963703 | 2023-09-01T17:40:17 | 2023-09-01T17:40:17 | 52,837,350 | 3,327 | 1,096 | Apache-2.0 | 2023-09-14T14:03:30 | 2016-03-01T01:11:20 | Python | UTF-8 | Python | false | false | 3,190 | py | test_tc_query.py | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
import pytest
from c7n_tencentcloud.query import ResourceTypeInfo, ResourceQuery, QueryResourceManager
from c7n_tencentcloud.utils import PageMethod
class RegionInfo(ResourceTypeInfo):
"""RegionInfo"""
id = "InstanceId"
endpoi... |
67b976a40c68f4db8def28ff9947aeaaa83efc48 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/framework/docstr/arange.py | 1b5f3dc5a7a8feff77a4be986ea751d902427ed5 | [
"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 | 2,402 | py | arange.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... |
fe1e4dcb93483d89ec19f9f930364cd87faa7fd1 | cb4f118412a55c52d720bc79e4074606622920ac | /arcade/examples/particle_systems.py | 1cd658086e0f77e218c7aafdbb6586fac7e7af33 | [
"MIT"
] | permissive | pythonarcade/arcade | 3e536306f0c44f911de149b58958d8b609ffad4b | 908664efc256697d3098a347f63d217d97841782 | refs/heads/development | 2023-08-29T02:53:01.599145 | 2023-08-26T16:54:34 | 2023-08-26T16:54:34 | 49,003,082 | 786 | 215 | NOASSERTION | 2023-09-12T18:38:54 | 2016-01-04T14:46:52 | Python | UTF-8 | Python | false | false | 27,208 | py | particle_systems.py | """
Particle Systems
Demonstrate how to use the Emitter and Particle classes to create particle systems.
Demonstrate the different effects possible with Emitter's and Particle's by showing
a number of different emitters in sequence, with each example often varying just one
setting from the previous example.
If Pytho... |
a786e8a0adfe3b9f94e2dc49377956d24338df74 | 8e90a7759ec7143427823547e0fbff58e0343aaa | /docker_sdk_api/domain/exceptions/models_exception.py | 9e00c0cbd85688826a01ffcaf991df39755ff2df | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | BMW-InnovationLab/BMW-TensorFlow-Training-GUI | 646a6f86f26887e94351b4c572b7fe7f0842f75c | 06531dae14365986c86baf735fd149317f4bb67a | refs/heads/master | 2023-07-20T01:48:27.299962 | 2023-07-12T15:22:22 | 2023-07-12T15:22:22 | 227,429,492 | 1,030 | 198 | Apache-2.0 | 2023-05-22T17:40:23 | 2019-12-11T18:06:11 | Python | UTF-8 | Python | false | false | 260 | py | models_exception.py | from domain.exceptions.application_error import ApplicationError
class PathNotFound(ApplicationError):
def __init__(self, additional_message: str = '', path: str = ''):
super().__init__("Path Not Found ", additional_message + '{}'.format(path))
|
b780a8d218e2960df43d079e0f0d1587e69d4e8a | 5ff404b30db6a7c58016ef34198e483c8c32e46a | /diffeqpy/tests/test_dde.py | 0b4b1eaef45d4b0875d816a399f01462a13dd1aa | [
"MIT"
] | permissive | SciML/diffeqpy | 86cb33dd65e7e719648e90c1687b05619ea78e9d | d3741862e4d959d7cc17144cad2e6bc117101352 | refs/heads/master | 2023-08-28T02:21:18.953588 | 2022-01-13T02:41:29 | 2022-01-13T02:41:29 | 130,501,860 | 332 | 28 | MIT | 2023-09-12T18:07:16 | 2018-04-21T18:34:34 | Python | UTF-8 | Python | false | false | 540 | py | test_dde.py | from julia import Main
from .. import de
def test():
f = Main.eval("""
function f(du, u, h, p, t)
du[1] = 1.1/(1 + sqrt(10)*(h(p, t-20)[1])^(5/4)) - 10*u[1]/(1 + 40*u[2])
du[2] = 100*u[1]/(1 + 40*u[2]) - 2.43*u[2]
end""")
u0 = [1.05767027/3, 1.030713491/3]
h = Main.eval("""
funct... |
cc70e8dc53e4c174a49b33ea734355aa67767c6b | 0f4513aa510f62808af0d2cc5b3bb76f16df8807 | /learn/sym_train.py | 7afd8553b5323517cab33f9f22c09592f9c3b014 | [
"MIT"
] | permissive | chrisdonahue/ddc | a93bc81d69dd123d31c17c79aec31d588acc8786 | 812aa57f31d77a5fb91bc2eb5d1e7d8c03416235 | refs/heads/master | 2022-05-04T17:52:55.072679 | 2022-03-23T14:54:30 | 2022-03-23T14:54:30 | 92,370,461 | 205 | 45 | null | 2022-01-10T01:27:33 | 2017-05-25T06:04:01 | Python | UTF-8 | Python | false | false | 26,955 | py | sym_train.py | from collections import defaultdict
import cPickle as pickle
import os
import time
import numpy as np
import tensorflow as tf
from sym_net import SymNet
from util import *
# Data
tf.app.flags.DEFINE_string('train_txt_fp', '', 'Training dataset txt file with a list of pickled song files')
tf.app.flags.DEFINE_string('... |
3f42b46ce78fe0d322af45e9d169321a568f6fa0 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayEbppInvoiceMerchantEnterstatusQueryModel.py | b63611be5d5c86678e65fbff0cf36071d9e2eda7 | [
"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,007 | py | AlipayEbppInvoiceMerchantEnterstatusQueryModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayEbppInvoiceMerchantEnterstatusQueryModel(object):
def __init__(self):
self._m_short_name = None
self._process_id = None
self._product_code = None
@property
... |
af96ba3d5b91ba281ed3598e17fe76cf0e299d9f | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/HDF5Application/tests/test_line_output_process.py | 72b85f96498572e87b73e1099326fb6105ca0c82 | [
"BSD-3-Clause"
] | permissive | KratosMultiphysics/Kratos | 82b902a2266625b25f17239b42da958611a4b9c5 | 366949ec4e3651702edc6ac3061d2988f10dd271 | refs/heads/master | 2023-08-30T20:31:37.818693 | 2023-08-30T18:01:01 | 2023-08-30T18:01:01 | 81,815,495 | 994 | 285 | NOASSERTION | 2023-09-14T13:22:43 | 2017-02-13T10:58:24 | C++ | UTF-8 | Python | false | false | 4,687 | py | test_line_output_process.py | # Core imports
import KratosMultiphysics
import KratosMultiphysics.kratos_utilities as KratosUtils
from KratosMultiphysics import KratosUnittest as UnitTest
from KratosMultiphysics.testing.utilities import ReadModelPart
# HDF5 imports
from KratosMultiphysics.HDF5Application.line_output_process import Factory as LineOu... |
1b4f8ebe86887eecb924a3f46b9bfb0f1315f637 | 8cb9099bdba3ae9fbf725bc9db23e4f8f5a4d01a | /test/test_dma.py | 6a20eefc2d98d6251101a5a35b2ce4c052a3e023 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | enjoy-digital/litepcie | 83eb14b3049195376e5ebab59d4ff3f1d20cbe7c | 170855627bde8b917637907aa0efdacba5fe907f | refs/heads/master | 2023-09-04T23:38:33.936818 | 2023-08-25T09:36:26 | 2023-08-25T09:36:40 | 42,041,717 | 398 | 98 | NOASSERTION | 2023-07-28T17:26:31 | 2015-09-07T08:45:27 | Verilog | UTF-8 | Python | false | false | 10,364 | py | test_dma.py | #
# This file is part of LitePCIe.
#
# Copyright (c) 2015-2022 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
# In this high level test, LitePCIeEndpoint is connected to LitePCIeDMAReader and LitePCIeDMAWriter
# frontends with Reader's source connected to Writer's sink. Our Host m... |
7d462515d4960494c399284bed404002d5e62a56 | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/OptimizationApplication/python_scripts/controls/shape/explicit_vertex_morphing.py | bfe89e4418a656f02588e65cc2448a472911a3f7 | [
"BSD-3-Clause"
] | permissive | KratosMultiphysics/Kratos | 82b902a2266625b25f17239b42da958611a4b9c5 | 366949ec4e3651702edc6ac3061d2988f10dd271 | refs/heads/master | 2023-08-30T20:31:37.818693 | 2023-08-30T18:01:01 | 2023-08-30T18:01:01 | 81,815,495 | 994 | 285 | NOASSERTION | 2023-09-14T13:22:43 | 2017-02-13T10:58:24 | C++ | UTF-8 | Python | false | false | 2,711 | py | explicit_vertex_morphing.py | # ==============================================================================
# KratosOptimizationApplication
#
# License: BSD License
# license: OptimizationApplication/license.txt
#
# Main authors: Reza Najian Asl, https://github.com/RezaNajian
#
# ==================================... |
d76e20c42370840b0c75af17e225504e4eab86ea | 61ac704b86a83227e5a21666aab2d3b2c3bdddb0 | /tests/test_lemmatizers.py | 1f28775a41d021160d40599109589b7a568e8a30 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | markuskiller/textblob-de | 1d96a230f0ce45cf56f0cea01b08d94a4b7a5057 | 8479bde9d66cdb16eeec70b92bd3bfa63cb89ac3 | refs/heads/dev | 2021-07-16T16:56:48.147739 | 2021-07-01T13:50:03 | 2021-07-01T13:50:03 | 21,608,591 | 105 | 15 | MIT | 2021-03-04T10:05:58 | 2014-07-08T10:24:15 | Python | UTF-8 | Python | false | false | 997 | py | test_lemmatizers.py | # -*- coding: utf-8 -*-
"""Test cases for np extractors."""
from __future__ import unicode_literals
import unittest
from nose.tools import * # PEP8 asserts
from textblob_de import PatternParserLemmatizer, PatternTokenizer, NLTKPunktTokenizer
class TestPatternParserLemmatizer(unittest.TestCase):
def setUp(self)... |
8f911e8fd856cfdfb82cd936fa627c6e7f59985d | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /govern/data-security/ranger/ranger-tools/scripts/create_requests.py | a3335510f2c9cfae41b9e288531cbdbc8314c13b | [
"Apache-2.0",
"BSD-3-Clause",
"WTFPL",
"MIT",
"GPL-2.0-only"
] | 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 | 1,612 | py | create_requests.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 ... |
76e4d37c47d1b34722003082926ea787f317803d | c364fdae67ad5298d03d14d442ef890233c45724 | /pymel/util/__init__.pyi | 15d371996ce90cf378b0c0fa06d987f34d09715d | [
"BSD-3-Clause"
] | permissive | LumaPictures/pymel | 952b376b1bf4d2cc99c3f99c6c6b4dbc35edd065 | 5fbe189fc0e0e1fdf056be2dd2ae63d26ca33ed5 | refs/heads/master | 2023-08-30T01:17:01.855520 | 2023-04-12T15:48:35 | 2023-04-12T15:48:35 | 404,345 | 388 | 128 | NOASSERTION | 2023-09-02T00:00:17 | 2009-12-07T19:53:19 | Python | UTF-8 | Python | false | false | 1,804 | pyi | __init__.pyi | from collections import *
from .common import *
from .arrays import *
from .enum import *
from .path import *
from .decoration import *
from .shell import *
from .arguments import AddedKey as AddedKey, ChangedKey as ChangedKey, RemovedKey as RemovedKey, breadth as breadth, breadthArgs as breadthArgs, breadthIterArgs as... |
caacef2dbcad1c9c4a90c6d675b3a94b44106916 | f61be064cd8d1a5f721c80b3d0146ce081964f45 | /api/python/examples/nm.py | ed6260c021bbf2509796f92f4cd35f5aee5c6e13 | [
"Apache-2.0"
] | permissive | lief-project/LIEF | 415fe42c22c97a06b36f0ed385f19de16b7c09d2 | 1ecfbf1fd8c22de5252f4e8b1a2e83199941faf5 | refs/heads/master | 2023-08-29T05:54:58.862920 | 2023-08-27T19:33:23 | 2023-08-27T19:33:23 | 85,205,851 | 3,933 | 657 | Apache-2.0 | 2023-09-09T03:44:33 | 2017-03-16T14:34:53 | C++ | UTF-8 | Python | false | false | 848 | py | nm.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Description
# -----------
#
# This tool is a cross format Linux nm like. It prints all symbols
# present in the binary. For `PE` it will print symbols in the *symbol section*
# and for `ELF` it will print *static* symbols **AND** *dynamic* symbols.
#
# Example:
#
# >>> n... |
ec7b039dbf4d44298b828542f5c8e532caabeb9f | 4e4b752c4dbecf0b0d9f7cb86f9f76bb0ffa5d32 | /tests/unit/trace/test_attributes.py | 018cdc47cff8d38097dd0423999662e2dc0f850a | [
"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 | 3,082 | py | test_attributes.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... |
789cd4a87da4e64941ace53347c44602658dee0b | c6e6c564cf03427de02e78f436bdf7483e13402f | /tests/test_violations/test_implementation.py | e43b00bf80471ee1de876a8b5c30297c9f390df9 | [
"MIT"
] | permissive | wemake-services/wemake-python-styleguide | 5a60ff468bf7877008c8ed34467da8bdbc2398f2 | 96e482514a60c12e99ee235337e678c9a4e484e3 | refs/heads/master | 2023-08-31T14:42:36.827760 | 2023-08-29T05:54:18 | 2023-08-29T05:54:18 | 124,593,057 | 2,427 | 572 | MIT | 2023-09-13T07:15:00 | 2018-03-09T21:04:25 | Python | UTF-8 | Python | false | false | 1,048 | py | test_implementation.py | import ast
import re
import pytest
from wemake_python_styleguide.violations.base import ASTViolation
class NewViolation(ASTViolation):
"""
Yells at cloud.
Yay, I'm a docstring!
"""
code = 1
error_template = '{0}'
def test_visitor_returns_location():
"""Ensures that `BaseNodeVisitor` ... |
c12db7c857d67856acbe1bbe263e661caf2ad3b2 | 51ec37fc8b633e90f699d4372e1301cf30b9d960 | /angrmanagement/data/log.py | bf82e65d06b6739e7e22dd29053704031ab2c10b | [
"BSD-2-Clause"
] | permissive | angr/angr-management | b7deffdefd53a99336c8da2cd21bd17f1eb689d7 | f28bfb1c34313c74f99691d0b47de1d90ebfd4ec | refs/heads/master | 2023-09-02T11:53:13.869102 | 2023-08-31T23:38:12 | 2023-08-31T23:38:12 | 40,425,410 | 727 | 125 | BSD-2-Clause | 2023-09-11T22:09:39 | 2015-08-09T04:35:26 | Python | UTF-8 | Python | false | false | 2,873 | py | log.py | import atexit
import logging
from datetime import datetime
from logging.handlers import QueueHandler, QueueListener
from multiprocessing import Queue
from typing import Optional
from angr.utils.mp import Initializer
from angrmanagement.config import Conf
class LogTimeStamp:
"""
A Log timestamp with formatti... |
cef4bd8a2e3405bac722ea50fddba12b93166855 | 316a33474dbdc1dec5a0cfd663a870ff7449892d | /test/test_connection.py | bbedf550f75d1e487e4eb0e36695b6d0a74f1a3b | [
"MIT"
] | permissive | python-hyper/wsproto | df9c84a6ebae10b321f43438a379e0f40c4c1ccb | c0a107939d6c0fccdb55028b39b3db026319b65e | refs/heads/main | 2023-08-11T13:49:25.663894 | 2023-04-12T20:45:52 | 2023-04-12T20:45:52 | 65,805,167 | 228 | 46 | MIT | 2023-04-12T20:45:54 | 2016-08-16T09:10:18 | Python | UTF-8 | Python | false | false | 5,012 | py | test_connection.py | import pytest
from wsproto.connection import CLIENT, Connection, ConnectionState, SERVER
from wsproto.events import (
BytesMessage,
CloseConnection,
Ping,
Pong,
Request,
TextMessage,
)
from wsproto.frame_protocol import CloseReason
from wsproto.utilities import LocalProtocolError
@pytest.mark... |
23a20735f60fa77dda95f5085fdb60307946edfc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayEcoRenthouseBillOrderDownloadResponse.py | 0c41147f24adf12e582f86b1f744dfadc7baf93e | [
"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 | 772 | py | AlipayEcoRenthouseBillOrderDownloadResponse.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayEcoRenthouseBillOrderDownloadResponse(AlipayResponse):
def __init__(self):
super(AlipayEcoRenthouseBillOrderDownloadResponse, self).__init__()
self._status_valu... |
c7eac23a174e7d8340197b64d800ef2db76706b0 | a7957955624002dab86de5f081028a4eedefe816 | /lib/tracker/oceanplus.py | d5dd55e5a58e502413513832da29f16489923f84 | [
"MIT"
] | permissive | researchmm/TracKit | 2652366f0d9430cdc13598bf7997979e1a9eeb2d | e351e5bff8071aa14f333d5975a8f408a3e264c6 | refs/heads/master | 2023-09-04T03:37:53.098346 | 2023-08-07T23:50:10 | 2023-08-07T23:50:10 | 223,065,925 | 639 | 121 | MIT | 2021-09-02T13:07:46 | 2019-11-21T01:57:48 | Python | UTF-8 | Python | false | false | 17,824 | py | oceanplus.py | import os
import cv2
import yaml
import numpy as np
import torch
import torch.nn.functional as F
from os.path import join, exists
from utils.utils import load_yaml, im_to_torch, get_subwindow_tracking, make_scale_pyramid, python2round, get_subwindow_tracking_mask
class OceanPlus(object):
def __init__(self, info)... |
2ed0c1b79cfea0e285678f0650ac39cc509f58e2 | 12d3d7359d78a8d722daeda7e3a12625e667990d | /models/roadnet_model.py | babc41f7c0ccdb57374839acda0d2034af2591a1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | yhlleo/DeepSegmentor | 71fabfbc98ae2ef3b66dc9d3bf6050e32747191b | e23af48e7c155b04a9c40013fb5a6616e4102484 | refs/heads/master | 2023-04-12T13:31:57.678114 | 2023-03-17T02:43:56 | 2023-03-17T02:43:56 | 190,896,878 | 228 | 81 | NOASSERTION | 2021-04-06T06:50:51 | 2019-06-08T14:24:10 | Python | UTF-8 | Python | false | false | 5,801 | py | roadnet_model.py | # Author: Yahui Liu <yahui.liu@uintn.it>
import torch
import numpy as np
import itertools
from .base_model import BaseModel
import torch.nn.functional as F
from .roadnet_networks import define_roadnet
class RoadNetModel(BaseModel):
"""
This class implements the RoadNet model.
RoadNet paper: https://ieeexp... |
35ababe91767e3440884b6762d812a6252a063b6 | 5320b5faacc16e29c027d7acaef0a0a9efd03b13 | /tests/test_maps.py | 8db6298fcd6233d04bd27bb0870552b4b6d2af8f | [
"Apache-2.0"
] | permissive | googlemaps/google-maps-services-python | 87cce1903120db3f35605b772f51a0777f47b598 | 645e07de5a27c4c858b2c0673f0dd6f23ca62d28 | refs/heads/master | 2023-09-03T08:49:32.905689 | 2023-01-27T01:01:18 | 2023-01-27T01:01:18 | 22,978,655 | 4,410 | 1,525 | Apache-2.0 | 2023-08-27T16:27:14 | 2014-08-15T04:35:30 | Python | UTF-8 | Python | false | false | 4,138 | py | test_maps.py | #
# Copyright 2020 Google Inc. 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 ... |
f13686622beb1474093d7a1d2cd22196c80bd825 | f4aa1885d4121e131c2a580183c6312aeefa8147 | /ch03/myproject_virtualenv/src/django-myproject/myproject/apps/core/templatetags/utility_tags.py | fc2ed3057fcea5a1fe6c8a5e86d2c3dd7c58e634 | [
"MIT"
] | permissive | PacktPublishing/Django-3-Web-Development-Cookbook-Fourth-Edition | 8f09d1ea9b13e8a66fc489fc09c9a5ee8f9968cf | 9371e0ea6f4dc61567bf28299cf57146519e274c | refs/heads/master | 2023-02-20T02:36:51.226985 | 2023-01-30T08:39:30 | 2023-01-30T08:39:30 | 201,903,680 | 189 | 117 | MIT | 2023-02-10T22:45:42 | 2019-08-12T09:54:54 | Python | UTF-8 | Python | false | false | 1,575 | py | utility_tags.py | from urllib.parse import urlencode
from django import template
from django.utils.encoding import force_str
from django.utils.safestring import mark_safe
register = template.Library()
def construct_query_string(context, query_params):
# empty values will be removed
query_string = context["request"].path
... |
fe96b10aba94a82db507c65836855dbfec04abab | f0413b4a61eff16fd881632c046bb90e986b799c | /rsbook_code/utilities/example_graphs.py | c3b0717a611b9c91576e6629ab71f9c9c6014ca6 | [
"Apache-2.0"
] | permissive | krishauser/RoboticSystemsBook | 2bd21335003a24c826ee5caf2d2f34627ff075a9 | 431b36f0c80d553e936833f0276841e3f2de6e84 | refs/heads/master | 2023-08-31T13:36:21.680166 | 2023-08-28T22:10:54 | 2023-08-28T22:10:54 | 146,316,598 | 220 | 44 | Apache-2.0 | 2023-06-30T16:48:25 | 2018-08-27T15:23:53 | Jupyter Notebook | UTF-8 | Python | false | false | 5,912 | py | example_graphs.py | from __future__ import print_function,division
from .graph import AdjListGraph
import itertools
import sys
def grid_graph(M,N,diagonals=False):
"""Makes a grid graph of size (M,N). Vertices are indices (i,j).
If diagonals=True, then diagonal edges are added.
"""
G = AdjListGraph([],[])
for i... |
c5bff3275643d680f55d23208a52107e2be5651b | 96c1f13473cf224113185902edd4c9c01091e106 | /theseus/geometry/so3.py | 4f71bff710f8c5f42de930e2088dedf875a7696f | [
"MIT"
] | permissive | facebookresearch/theseus | f1e488eb5a25f5ba74a6995911bee958b5da4cf3 | 240e1206329d42fedd40399684d6e17e455c6645 | refs/heads/main | 2023-08-11T07:33:12.328520 | 2023-08-02T12:58:01 | 2023-08-02T12:58:01 | 429,570,359 | 1,410 | 105 | MIT | 2023-08-01T14:30:01 | 2021-11-18T20:28:27 | Python | UTF-8 | Python | false | false | 11,165 | py | so3.py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import warnings
from typing import List, Optional, Union, cast
import torch
import theseus.constants
from theseus.global_params import _TH... |
fe5ef946eb615394c41a1ad2e7eacd5dc319288b | d8a1f695f04f54260e7550de6fcad93103c7ef34 | /magi/agents/tdmpc/run_tdmpc.py | 7cdf00a5f136a62fbefea05f88a5e9a1cbfd2cd5 | [
"Apache-2.0"
] | permissive | ethanluoyc/magi | 6192f409cd2e3b5a0b31b8153c782e7c6079defb | eb86f7678d991a1700b594ec073162945ad9df71 | refs/heads/main | 2023-05-22T23:57:30.340397 | 2023-02-07T14:18:30 | 2023-02-07T14:18:57 | 356,384,964 | 108 | 4 | Apache-2.0 | 2023-02-07T13:31:30 | 2021-04-09T20:00:02 | Python | UTF-8 | Python | false | false | 4,556 | py | run_tdmpc.py | """Example running TD-MPC on dm_control.
Run this example with
```shell
python -m magi.agents.tdmpc.run_tdmpc \
--config magi/agents/tdmpc/configs/walker.py \
--config.task=walker-walk
```
See configs/ for configurations for other environments.
"""
import functools
import os
from absl import app
from absl impo... |
0c56cc1a9c1b31e947e26cefaec2c88c27e54341 | 5105403f2b75990654519438d8ceabcf80962ebf | /examples/models/gauges.py | e2dbca6ddd5bab9c5e8561f8ec1ab1d982433386 | [
"BSD-3-Clause"
] | permissive | bokeh/bokeh | ed1d81eb07d27d27c6710c9fec9114886047f528 | 310cb2cbeabc4c4b8180cbda566df16039737cdc | refs/heads/branch-3.3 | 2023-08-31T23:53:06.537061 | 2023-08-30T03:43:05 | 2023-08-30T03:43:05 | 3,834,332 | 17,174 | 5,251 | BSD-3-Clause | 2023-09-14T11:37:23 | 2012-03-26T15:40:01 | Python | UTF-8 | Python | false | false | 4,351 | py | gauges.py | from math import pi
from typing import Any, Literal
from bokeh.core.properties import expr, value
from bokeh.document import Document
from bokeh.embed import file_html
from bokeh.models import (Arc, Circle, ColumnDataSource, Plot,
PolarTransform, Range1d, Ray, Text)
from bokeh.util.browser im... |
ad01c2dc0611ba49b383a5fae307358cbec4c060 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow/source/tensorflow/contrib/integrate/python/ops/odes.py | b4a99867ed46897f60be3f230838c3f576d5455e | [
"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 | 24,150 | py | odes.py | # Copyright 2016 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... |
8c736ffd4a5a1d0da516f50e497ee45122c28cb3 | 290dbf0107d93ebc8d50790b267f9552c13d810f | /generator/data_file_parser.py | c0dbb9cb5f8970b5a48f0e353fa6d811df2a88af | [
"MIT"
] | permissive | codebox/homoglyph | a01cb0de3570b6ad8a0bdb8ff7a50e10374a4a51 | 0209d35fe8ad79348b520401da8affe8df188909 | refs/heads/master | 2022-09-30T13:17:52.559898 | 2022-09-07T09:45:54 | 2022-09-07T09:45:54 | 45,297,276 | 472 | 63 | MIT | 2022-09-07T10:20:25 | 2015-10-31T10:14:22 | JavaScript | UTF-8 | Python | false | false | 1,278 | py | data_file_parser.py | import os
import os.path
class DataFileLine:
def __init__(self, text):
self.text = text.strip()
self.parts = self.text.split(';', 2)
def has_data(self):
return (not self.text.startswith('#')) and len(self.parts) >= 2
def _get_char_from_code(self, code):
return chr(int(code... |
cd47c536a7c8cf928d0a53d8cc6ea63079d7cd76 | e2403814bd7ab3a3746e98bd8489cb188e790e65 | /donkey_gym/core/fps.py | 5b2348df79afa47590ccda1d7c3575da8442c4f4 | [
"MIT"
] | permissive | araffin/learning-to-drive-in-5-minutes | 1cd24206201ef7098a2b1a9428528e78d37c572a | 9f20079c0a0091cc13c9e788239a879388c2c50e | refs/heads/master | 2022-05-04T10:19:35.267107 | 2022-04-05T21:31:25 | 2022-04-05T21:31:25 | 157,005,049 | 306 | 101 | MIT | 2020-11-06T16:14:35 | 2018-11-10T17:34:16 | Python | UTF-8 | Python | false | false | 671 | py | fps.py | # Original author: Tawn Kramer
import time
class FPSTimer(object):
"""
Helper function to monitor the speed of the control.
:param verbose: (int)
"""
def __init__(self, verbose=0):
self.start_time = time.time()
self.iter = 0
self.verbose = verbose
def reset(self):
... |
d99bcda596de27088a3445311db16d3505bb4873 | 9468849850c7c2b2040835eb9496bfb716a98c21 | /cea/plots/base.py | 87a9b630037f4145022c31836d02c8c39f6addfe | [
"MIT"
] | permissive | architecture-building-systems/CityEnergyAnalyst | e6532c0c794538dbb665366ccf6d783e0d9d1345 | b84bcefdfdfc2bc0e009b5284b74391a957995ac | refs/heads/master | 2023-08-30T19:57:47.445797 | 2023-08-25T13:30:28 | 2023-08-25T13:30:28 | 49,491,341 | 166 | 60 | MIT | 2023-09-11T11:10:00 | 2016-01-12T10:02:17 | Python | UTF-8 | Python | false | false | 14,626 | py | base.py | """
Implements base classes to derive plot classes from. The code in py:mod:`cea.plots.categories` uses
py:class:`cea.plots.base.PlotBase` to figure out the list of plots in a category.
"""
import os
import re
import jinja2
import cea.config
import cea.inputlocator
from cea import MissingInputDataException
from c... |
098cd02f7a5825f954667f6ccbc69208338997a8 | 6afa4eec288b12a399672ffba35b8b163796499c | /NLP_ALL/text_classifier/sklearn/example_2.py | 2a0122f2857f31bd8362030d98d26e0322f2ff93 | [] | no_license | lhyxcxy/nlp | 4dbc03cba81fda55a60e305850fc5b8de77b6662 | 81fb273dc5859ba9f36984138a1ebe449fec7f35 | refs/heads/master | 2022-11-06T05:45:54.084726 | 2020-06-20T03:11:24 | 2020-06-20T03:11:24 | 84,399,969 | 211 | 76 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | example_2.py | # -*- coding: utf-8 -*-
import json
import codecs
import jieba
from sklearn.cluster import KMeans
import uuid
from jieba import analyse
from sklearn import feature_extraction
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
from collections import ... |
a90766cebcfa0ea369e08569dcdfd03bee0d77c6 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/uilogging/core/session.py | c85f5671f7b1f32461829c9e566b41e95c2eeada | [] | 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 | 5,596 | py | session.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/uilogging/core/session.py
import typing
import adisp
import async
from BWUtil import AsyncReturn
from gui.wgcg.uilogging.contexts import UILoggingSessionCtx
from helpers import dependency, time_utils
from helpers.log.adapters import... |
40a08d583fb2bdc4088b70932d782f8b1afd0e38 | 7f620e7902c0b9ccb1fcfd1427acd5936ea33814 | /mlrun/api/crud/notifications.py | 6245e524fe50de9dfecbb049aeed89498bd02282 | [
"Apache-2.0"
] | permissive | mlrun/mlrun | 2074c230070129ce3becb211b92c90b29a2ce850 | b5fe0c05ae7f5818a4a5a5a40245c851ff9b2c77 | refs/heads/development | 2023-09-06T00:09:21.546135 | 2023-09-05T19:38:13 | 2023-09-05T19:38:13 | 205,706,595 | 1,093 | 229 | Apache-2.0 | 2023-09-14T14:14:10 | 2019-09-01T16:59:19 | Python | UTF-8 | Python | false | false | 5,739 | py | notifications.py | # Copyright 2023 Iguazio
#
# 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, softwa... |
ab2c3e5edb15798fe895550773cae6ebaa8d81e8 | 3a50c0712e0a31b88d0a5e80a0c01dbefc6a6e75 | /thrift/compiler/test/fixtures/transitive-deps/gen-python/c/thrift_metadata.py | 77f68bf0f650a634a9f20df266c45af0fd1db71f | [
"Apache-2.0"
] | permissive | facebook/fbthrift | 3b7b94a533666c965ce69cfd6054041218b1ea6f | 53cf6f138a7648efe5aef9a263aabed3d282df91 | refs/heads/main | 2023-08-24T12:51:32.367985 | 2023-08-24T08:28:35 | 2023-08-24T08:28:35 | 11,131,631 | 2,347 | 666 | Apache-2.0 | 2023-09-01T01:44:39 | 2013-07-02T18:15:51 | C++ | UTF-8 | Python | false | false | 2,412 | py | thrift_metadata.py | #
# Autogenerated by Thrift
#
# DO NOT EDIT
# @generated
#
from __future__ import annotations
import apache.thrift.metadata.thrift_types as _fbthrift_metadata
# TODO (ffrancet): This general pattern can be optimized by using tuples and dicts
# instead of re-generating thrift structs
def _fbthrift_gen_metadata_stru... |
be8b1c8043971135dc5aa59023971b87b824042f | 80f94bea418d7956df1ba19d4d6a1d7715a94ade | /test/integration/test_configuration_decode.py | 92dc6b8e9a997bd8fe4aea3c24d24acaa6203d26 | [
"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 | 1,023 | py | test_configuration_decode.py | from galaxy_test.base.populators import LibraryPopulator
from galaxy_test.driver import integration_util
class TestConfigurationDecodeIntegration(integration_util.IntegrationTestCase):
def setUp(self):
super().setUp()
self.library_populator = LibraryPopulator(self.galaxy_interactor)
def test_... |
0e9142f13f2f8ede388632eb6296ce3519038b2a | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/fivem/test_config_flow.py | 121b416a1100ee56d26f1efc1251dbee7a28f0f0 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 4,205 | py | test_config_flow.py | """Test the FiveM config flow."""
from unittest.mock import patch
from fivem import FiveMServerOfflineError
from homeassistant import config_entries
from homeassistant.components.fivem.config_flow import DEFAULT_PORT
from homeassistant.components.fivem.const import DOMAIN
from homeassistant.const import CONF_HOST, CO... |
90bd5fb565a4d2b71c9e206c1d4bde9c78b060ee | 83b8b30ebb633eecd29ca0a7a20cc43a293c9333 | /extmod/uasyncio/funcs.py | 0ce48b015c1bd7816a5409260494598428cc8489 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | adafruit/circuitpython | 430ec895149d1eb814b505db39b4977a35ee88a7 | 506dca71b0cbb7af749bb51f86b01021db5483b3 | refs/heads/main | 2023-08-21T16:30:46.781068 | 2023-08-20T00:39:44 | 2023-08-20T00:39:44 | 66,166,069 | 3,806 | 1,560 | MIT | 2023-09-14T19:23:51 | 2016-08-20T20:10:40 | C | UTF-8 | Python | false | false | 2,207 | py | funcs.py | # MicroPython uasyncio module
# MIT license; Copyright (c) 2019-2020 Damien P. George
from . import core
async def wait_for(aw, timeout, sleep=core.sleep):
aw = core._promote_to_task(aw)
if timeout is None:
return await aw
def runner(waiter, aw):
nonlocal status, result
try:
... |
84c53afbee73e2c75c6d70f824a44840e80dabb2 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/diligentgraphics-spirv-tools/all/conanfile.py | 04f39fb2c75a43a2f268d73e8c0eb042cb210fc2 | [
"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 | 11,260 | py | conanfile.py | from conans import ConanFile, tools, CMake
from conans.errors import ConanInvalidConfiguration
import os
import textwrap
required_conan_version = ">=1.33.0"
class SpirvtoolsConan(ConanFile):
name = "diligentgraphics-spirv-tools"
homepage = "https://github.com/DiligentGraphics/SPIRV-Tools/"
description = ... |
3d2cf6c6dd2d764e06e86de5a51b436c73eace7a | 3ca67d69abd4e74b7145b340cdda65532f90053b | /programmers/난이도별/level03.가장_먼_노드/sangmandu.py | 988635988fcf93ba3382a288dc3517afacff9ec4 | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 876 | py | sangmandu.py | '''
https://programmers.co.kr/learn/courses/30/lessons/49189
가장 먼 노드
[풀이]
1에서 부터 bfs로 접근하고 이에 따라서 거리를 +1씩 부여하는 방법
시간초과 이슈에 대해서는 간선을 조사할 때 행렬이 아니라 딕셔너리로 조사
'''
from collections import defaultdict
def solution(n, edge):
board = defaultdict(list)
dist = [0, 0.5] + [0] * (n - 1)
for st, ed in edge:
boa... |
775503c1682b705dd3f829e046823ef2161aff8f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/ContactInfoVO.py | fc1b50f1e7a9e66639480d359c6c17922b168958 | [
"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,061 | py | ContactInfoVO.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class ContactInfoVO(object):
def __init__(self):
self._contact_name = None
self._encryption_content = None
self._phone_number = None
@property
def contact_name(self):
... |
6f2a976d7b37eaec0448e4999ca0f474f98b862b | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/eventlet-0.30.2/tests/thread_test.py | 44de95d660ad79a592925e8b589e37d976774c40 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 2,628 | py | thread_test.py | import gc
import weakref
import eventlet
from eventlet import corolocal
from eventlet import event
from eventlet import greenthread
from eventlet.green import thread
import six
from tests import LimitedTestCase
class Locals(LimitedTestCase):
def passthru(self, *args, **kw):
self.results.append((args, kw... |
5a2cb53056511c536699c2e8090b22d4cddb1452 | 807438e6974bf68762208ec24cf824dd0e5fabd6 | /docs/examples/compute/cloudsigma/get_account_balance.py | 292e35fc75645f17cb680926a5595aeff1e1f682 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | apache/libcloud | 019c5bd839dedd2423f9604936886eaff252e04b | abba8c1719a8bda6db8efde2d46fd1b423ae4304 | refs/heads/trunk | 2023-08-31T20:14:22.369970 | 2023-08-21T20:17:57 | 2023-08-21T20:17:57 | 419,555 | 1,644 | 968 | Apache-2.0 | 2023-09-13T19:34:44 | 2009-12-11T09:00:14 | Python | UTF-8 | Python | false | false | 373 | py | get_account_balance.py | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
cls = get_driver(Provider.CLOUDSIGMA)
driver = cls("username", "password", region="zrh", api_version="2.0")
balance = driver.ex_get_balance()
values = {"balance": balance["balance"], "currency": balance["currency"]}
print("... |
feb1542a2183e620d9a0ffca7180ac9602c22299 | abbc2d332bdfa036ac12438983e6d74cf4107e64 | /SiamFCpp/SiamFCpp-video_analyst/siamfcpp/model/backbone/backbone_impl/resnet.py | efa0c5d154b412eb52a4f3e9b9db88b2d4b453b3 | [] | permissive | HonglinChu/SiamTrackers | c494cff7543a433e8ec7dbf6d9439b1e7395b0c0 | 805208b5348346d35e64abcbe901a3829743e157 | refs/heads/master | 2023-08-29T06:50:59.532271 | 2023-03-06T09:13:53 | 2023-03-06T09:13:53 | 253,718,080 | 1,166 | 243 | Apache-2.0 | 2023-08-03T16:39:53 | 2020-04-07T07:24:00 | Python | UTF-8 | Python | false | false | 8,851 | py | resnet.py | # -*- coding: utf-8 -*
from loguru import logger
import torch
import torch.nn as nn
from siamfcpp.model.backbone.backbone_base import (TRACK_BACKBONES,
VOS_BACKBONES)
from siamfcpp.model.common_opr.common_block import conv_bn_relu, projector
from siamfcpp.model.... |
db081184933f224861b42efb0a85391691471637 | 9875d011bf7b478421a4a5a57c6b42c24c069903 | /examples/validation/core/33_outside_lib.py | 41ef84a117161d33598368c3723cb40fc47931cb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Kitware/trame | bc9a0d7d6a845050f4fb386d514bd7e9b7060a21 | 861b60718798cca2db292e65e6ad39106ba75ccd | refs/heads/master | 2023-08-20T22:42:57.129511 | 2023-08-18T04:25:32 | 2023-08-18T04:25:32 | 410,108,340 | 198 | 41 | NOASSERTION | 2023-09-14T15:29:10 | 2021-09-24T21:38:47 | Python | UTF-8 | Python | false | false | 2,269 | py | 33_outside_lib.py | from trame.app import get_server
from trame.ui.html import DivLayout
from trame.widgets import vuetify, html, helper
# From: https://quasar.dev/start/umd
module = dict(
scripts=[
"https://cdn.jsdelivr.net/npm/quasar@2.11.5/dist/quasar.umd.prod.js",
],
styles=[
"https://fonts.googleapis.com... |
84e74c7b3ac65cfe88ee4aeeef66e3d5313cefd8 | 8f344354a42d0f150eff315a44763038dad521de | /openchem/modules/encoders/openchem_encoder.py | 352c671a8d253c271b939554ddbf384ebacf4f2e | [
"MIT"
] | permissive | Mariewelt/OpenChem | 2fa3c2c6be3bcd9d471d08bba2d45e00f9ecc38d | f427076119683bf14152644fb7adf9b32f0cf7e2 | refs/heads/master | 2023-06-08T06:35:17.967266 | 2022-04-27T19:27:40 | 2022-04-27T19:27:40 | 140,360,685 | 638 | 114 | MIT | 2023-06-06T01:57:19 | 2018-07-10T01:27:33 | Python | UTF-8 | Python | false | false | 821 | py | openchem_encoder.py | import torch
from torch import nn
from openchem.utils.utils import check_params
class OpenChemEncoder(nn.Module):
"""Base class for embedding module"""
def __init__(self, params, use_cuda=None):
super(OpenChemEncoder, self).__init__()
check_params(params, self.get_required_params(), self.get_... |
6ca8202e141243b589bbbf4ef35c9d7067ee610e | 7ed2ef754060465709897be60ff14a0f4e2c9578 | /delfin/alert_manager/alert_processor.py | 13ca3ee80b57ed57811764af5b31d3d6b7016287 | [
"Apache-2.0"
] | permissive | sodafoundation/delfin | 967b7ff276c20ea546e07538c2b02a7920aaddf4 | 978eff481945203bfbc3d84123e151f836748428 | refs/heads/master | 2023-09-04T11:27:21.103714 | 2023-07-13T09:02:14 | 2023-07-13T09:02:14 | 254,367,182 | 220 | 336 | Apache-2.0 | 2023-09-13T07:04:15 | 2020-04-09T12:37:29 | Python | UTF-8 | Python | false | false | 4,579 | py | alert_processor.py | # Copyright 2020 The SODA 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 writin... |
02332ce35c8f455fd84f567e1d3b2b93ea6a71b9 | 6958f617af0c5a76304ceb1006c77bc70ca0e195 | /tests/python/test_indices.py | 025bc897eb4869dd3b418f037f989438fd104619 | [
"Apache-2.0"
] | permissive | taichi-dev/taichi | 3fae315a494f1c97392d5b931c939abbbfba1bdc | b30b511f55e3d0ebff765ee048d0aaa4ba9e7667 | refs/heads/master | 2023-09-02T13:28:18.208792 | 2023-08-23T23:22:43 | 2023-08-23T23:22:43 | 74,660,642 | 17,231 | 1,841 | Apache-2.0 | 2023-09-14T11:29:32 | 2016-11-24T10:00:05 | C++ | UTF-8 | Python | false | false | 1,979 | py | test_indices.py | import pytest
from taichi.lang.misc import get_host_arch_list
import taichi as ti
from tests import test_utils
@test_utils.test(arch=get_host_arch_list())
def test_indices():
a = ti.field(ti.f32, shape=(128, 32, 8))
b = ti.field(ti.f32)
ti.root.dense(ti.j, 32).dense(ti.i, 16).place(b)
mapping_a = a... |
3185b6522729d4498afa597be350c6d92ffbcc19 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-service-control/google/cloud/servicecontrol/__init__.py | 6b42fc5d3acafc643cede539cadc29594d66efa0 | [
"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 | 2,516 | py | __init__.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... |
d6db50ece21d570be2267a90433cf24fcd03e969 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DQM/HcalTasks/python/OfflineSourceSequence_pp.py | d929ad94d87d0889ec6c9e1539aa7d066d141c83 | [
"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 | 2,704 | py | OfflineSourceSequence_pp.py | import FWCore.ParameterSet.Config as cms
#-----------------
# HCAL DQM Offline Source Sequence Definition for pp
# To be used for Offline DQM importing
#-----------------
# import the tasks
from DQM.HcalTasks.DigiTask import digiTask
from DQM.HcalTasks.RawTask import rawTask
from DQM.HcalTasks.TPTask import tpT... |
6cecec7a1ebaa42246729c8480c1e30e27cc9136 | b8d217ac322a9caa20bf59e9372c9476de3969f5 | /skbuild/platform_specifics/abstract.py | 66f8e205bd71ec1b958995e3f215e5a64ca15487 | [
"MIT",
"BSD-2-Clause"
] | permissive | scikit-build/scikit-build | 8e8d112ab2fda9c2bec3b310392d63cff7b64cd1 | 676e110315a971abb856edbd6df0c74293e5ba2d | refs/heads/main | 2023-08-28T14:05:35.538095 | 2023-08-10T13:41:02 | 2023-08-10T13:41:02 | 21,749,516 | 422 | 134 | NOASSERTION | 2023-09-05T04:07:05 | 2014-07-11T20:00:17 | Python | UTF-8 | Python | false | false | 12,406 | py | abstract.py | """This module defines objects useful to discover which CMake generator is
supported on the current platform."""
from __future__ import annotations
import os
import shutil
import subprocess
import textwrap
from typing import Iterable, Mapping
from ..constants import CMAKE_DEFAULT_EXECUTABLE
from ..exceptions import... |
97a7d2af41c249d3bada8e7f9d193b93206cbe33 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/subscription/azure-mgmt-subscription/tests/test_mgmt_subscription.py | 51ef20a0e326a6049e18a92bc08299f887af3755 | [
"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 | 990 | py | test_mgmt_subscription.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.
#----------------------------------------------------------------------... |
3650888a71dab2389a3a88576faae212e9e94758 | 9efca95a55cb4df52d895d42f1ec10331516a734 | /tools/c7n_kube/tests/test_custom_resource.py | 98f76a81df1051d357d456d5d625917a1f489ece | [
"Apache-2.0"
] | permissive | cloud-custodian/cloud-custodian | 519e602abe00c642786441b64cc40857ef5bc9de | 27563cf4571040f923124e1acb2463f11e372225 | refs/heads/main | 2023-09-04T10:54:55.963703 | 2023-09-01T17:40:17 | 2023-09-01T17:40:17 | 52,837,350 | 3,327 | 1,096 | Apache-2.0 | 2023-09-14T14:03:30 | 2016-03-01T01:11:20 | Python | UTF-8 | Python | false | false | 2,354 | py | test_custom_resource.py | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
#
from c7n.exceptions import PolicyValidationError
from common_kube import KubeTest
class TestCustomResource(KubeTest):
def test_custom_cluster_resource_query(self):
factory = self.replay_flight_data()
policy = self.l... |
c68fae943809a395f8bfdc6410766fba5915bf4a | 6c8305ea1df9687df1c0d2b0ace56733516c6322 | /readthedocs/core/views/__init__.py | e4a4e3dba7d0d5b29def4fb2e6494dcb35fbb5c4 | [
"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 | 3,487 | py | __init__.py | """
Core views.
Including the main homepage, documentation and header rendering,
and server errors.
"""
import structlog
from django.conf import settings
from django.http import JsonResponse
from django.shortcuts import redirect, render
from django.urls import reverse
from django.views.generic import TemplateView, Vi... |
8c93dd7878fd70579a8f90e3b32c1f72e56dbf0f | 6bbbb8237c93f9b1f302010a65d6ecb6f286f23b | /websauna/system/core/loggingcapture.py | 4575a81f467523e6f9d1d11d1f0e07502c0d7334 | [
"MIT",
"Apache-2.0"
] | permissive | websauna/websauna | ea60d5a6aef59b3725bace0d188dacea72574e63 | a57de54fb8a3fae859f24f373f0292e1e4b3c344 | refs/heads/master | 2023-08-07T08:16:51.664340 | 2020-06-06T19:28:18 | 2020-06-06T19:28:18 | 49,773,298 | 294 | 74 | NOASSERTION | 2020-12-30T01:48:27 | 2016-01-16T12:55:54 | Python | UTF-8 | Python | false | false | 2,077 | py | loggingcapture.py | """Extra logging context."""
# Standard Library
import logging
# Pyramid
from pyramid.request import Request
# SQLAlchemy
import sqlalchemy
logger = logging.getLogger(__name__)
def is_good_sqlalchemy_object(obj):
"""Let's not cause exceptions in exception handler/logger."""
state = sqlalchemy.inspect(obj)... |
c5c4bd2d62f78e723e8d3fa5f48ab164b6ec6812 | 2a093824e198f9fd5758f38f388aea792867fc54 | /JEECMS/Hack JeeCMS Sign/hacksign.py | 82f3a13f72d06a3e03bb81217371eec3eae56928 | [] | no_license | coffeehb/tools | 00585a00311758dff821725926349cf696a70ace | e8841461cd0fc8392086f35ea4ed72de74a6ce85 | refs/heads/master | 2022-10-25T02:07:00.571576 | 2022-10-03T01:20:43 | 2022-10-03T01:20:43 | 58,847,026 | 307 | 172 | null | 2019-06-14T07:54:59 | 2016-05-15T06:12:53 | Python | UTF-8 | Python | false | false | 2,205 | py | hacksign.py | from burp import IBurpExtender
from burp import IHttpListener
from java.io import PrintWriter
import hashlib
import urllib
print "Hack Jeecms Sign By Nerd."
class BurpExtender(IBurpExtender, IHttpListener):
def registerExtenderCallbacks(self, callbacks):
self._callbacks = callbacks
self._helpers ... |
b0ad7a9cbfc983ad927438b0821a10dcf79c1e7c | ac632b18245ad0f21c40f7ffaf73f2248830e6b9 | /tests/test_yaspin.py | 6fa9dcdb947be3e38bf5030ace6fa5b68c763ff1 | [
"MIT"
] | permissive | pavdmyt/yaspin | bd44ea4366a95597d6400aa4b84693879c2344fd | 5eeecda895ec0b6fd5a7ca81bbbbd734fdba47c5 | refs/heads/master | 2023-08-29T11:18:41.546218 | 2023-08-19T16:22:49 | 2023-08-19T16:22:49 | 109,303,405 | 694 | 41 | MIT | 2023-09-05T12:33:01 | 2017-11-02T18:27:09 | Python | UTF-8 | Python | false | false | 1,209 | py | test_yaspin.py | """
tests.test_yaspin
~~~~~~~~~~~~~~~~~
Basic unittests.
"""
from collections import namedtuple
import pytest
from yaspin import Spinner, yaspin
from yaspin.core import default_spinner
@pytest.mark.parametrize(
"spinner, expected",
[
# None
(None, default_spinner),
# hasattr(spinne... |
598e556afebbfe2081beadccd754512e4b9ed7c4 | a902290fb3b911676358ae4d93f83061a6c2bd0f | /InvenTree/company/migrations/0007_remove_supplierpart_lead_time.py | 5f050d58136fe9ed531fbd449fde41b74121a8c6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | inventree/InvenTree | a15e54182c9bfafdf5348cc9a66da1004e23e760 | e88a8e99a5f0b201c67a95cba097c729f090d5e2 | refs/heads/master | 2023-09-03T19:32:35.438375 | 2023-08-30T00:25:40 | 2023-08-30T00:25:40 | 85,894,461 | 3,077 | 549 | MIT | 2023-09-14T14:21:01 | 2017-03-23T01:44:10 | Python | UTF-8 | Python | false | false | 346 | py | 0007_remove_supplierpart_lead_time.py | # Generated by Django 2.2.5 on 2019-09-12 12:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('company', '0006_supplierpricebreak_currency'),
]
operations = [
migrations.RemoveField(
model_name='supplierpart',
name='lea... |
8954f110a623158e9e61bf606ba480c7e6134c7a | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondTools/L1Trigger/python/L1TriggerKeyListRcdSource_cfi.py | c75feeae720bccfcf03fc3e270c6622eaef48592 | [
"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 | 226 | py | L1TriggerKeyListRcdSource_cfi.py | import FWCore.ParameterSet.Config as cms
L1TriggerKeyListRcdSource = cms.ESSource("EmptyESSource",
recordName = cms.string('L1TriggerKeyListRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
|
712ecfc2360f4ed24c858a27ce6b239f05d2af4f | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyAbstractClassInspection/overriddenAsField.py | 5d79ab73af50bb985f09bebe7765345c654a8da1 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 150 | py | overriddenAsField.py | import abc
class A(object):
__metaclass__ = abc.ABCMeta
@abc.abstractproperty
def foo(self):
pass
class C(A):
foo = 'bar' |
d2fafec4bbcb6742a9f33ff612373c961cbc96df | 9c268aa04ab8b359d11399f94a30c8f4fe171a0c | /lib/axis/tb/axis_ep.py | 33298ea354b5d768113e695b8ef9f9be14b053ef | [
"MIT"
] | permissive | alexforencich/verilog-ethernet | e41586b9214e66341f3eace03da2baa9c004da89 | b316c6764e083823f95f52b3f324fccee4f12fa0 | refs/heads/master | 2023-09-03T00:58:09.380285 | 2023-08-26T19:44:50 | 2023-08-26T19:44:50 | 26,883,874 | 1,690 | 530 | MIT | 2023-08-25T05:59:58 | 2014-11-19T22:04:53 | Verilog | UTF-8 | Python | false | false | 18,151 | py | axis_ep.py | """
Copyright (c) 2014-2018 Alex Forencich
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, publish, distr... |
9b5ef6e150455b41dbddd28cc26a246746e425d1 | 0b134572e3ac3903ebb44df6d4138cbab9d3327c | /app/grandchallenge/workspaces/tasks.py | 781861b5388538154d8826754421026e6f486274 | [
"Apache-2.0"
] | permissive | comic/grand-challenge.org | 660de3bafaf8f4560317f1dfd9ae9585ec272896 | dac25f93b395974b32ba2a8a5f9e19b84b49e09d | refs/heads/main | 2023-09-01T15:57:14.790244 | 2023-08-31T14:23:04 | 2023-08-31T14:23:04 | 4,557,968 | 135 | 53 | Apache-2.0 | 2023-09-14T13:41:03 | 2012-06-05T09:26:39 | Python | UTF-8 | Python | false | false | 8,757 | py | tasks.py | import requests
from celery import shared_task
from django.conf import settings
from grandchallenge.workspaces.models import (
WorkbenchToken,
Workspace,
WorkspaceKindChoices,
WorkspaceStatus,
WorkspaceTypeConfiguration,
)
@shared_task
def create_workspace_type_configuration(*, workspace_type_con... |
3e88a81a0f2e815460401828ac0e653058a3a6c6 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/common/Lib/bsddb/test/test_join.py | 2ba47849fdca26b710cc1c48836eb21ec9d1de67 | [] | 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 | 2,527 | py | test_join.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/bsddb/test/test_join.py
import os
import unittest
from test_all import db, dbshelve, test_support, verbose, get_new_environment_path, get_new_database_path
ProductIndex = [('apple', 'Convenience Store'),
('blueberry', "Farmer's... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.