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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17a702fc175b8aeaee053a9656259c665d5a6891 | 8a33857e67de2bcdd6ab67dd69fa21debb3810fe | /bio_embeddings/extract/light_attention/light_attention_annotation_extractor.py | 5732ba0571c6289c9efc106e6ec67116b4aa2452 | [
"MIT"
] | permissive | sacdallago/bio_embeddings | 78c5f11e852c46bb98c78633f529f53457639c7a | efb9801f0de9b9d51d19b741088763a7d2d0c3a2 | refs/heads/develop | 2023-05-10T18:49:39.640162 | 2022-08-04T07:43:37 | 2022-08-04T07:43:37 | 180,608,802 | 383 | 60 | MIT | 2023-02-16T01:41:53 | 2019-04-10T15:17:42 | HTML | UTF-8 | Python | false | false | 4,054 | py | light_attention_annotation_extractor.py | import logging
from typing import Union
import numpy
import torch
from numpy import ndarray
from bio_embeddings.extract.annotations import Location, Membrane
from bio_embeddings.extract.basic import SubcellularLocalizationAndMembraneBoundness
from bio_embeddings.extract.light_attention.light_attention_model import Li... |
cd4dc7720288513c372e7e17bfa2756499e183ff | dd221d1ab80a49190a0c93277e2471debaa2db95 | /plugins/hanlp_demo/hanlp_demo/zh/tf/train/finetune_msra_ner_albert.py | 10031fd3b3cbac9ca854fc5de974bda812b8fb90 | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | hankcs/HanLP | 29a22d4e240617e4dc67929c2f9760a822402cf7 | be2f04905a12990a527417bd47b79b851874a201 | refs/heads/doc-zh | 2023-08-18T12:48:43.533453 | 2020-02-15T17:19:28 | 2023-03-14T02:46:03 | 24,976,755 | 32,454 | 9,770 | Apache-2.0 | 2023-08-13T03:11:39 | 2014-10-09T06:36:16 | Python | UTF-8 | Python | false | false | 872 | py | finetune_msra_ner_albert.py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2019-12-28 23:15
import hanlp
from hanlp.components.ner.ner_tf import TransformerNamedEntityRecognizerTF
from hanlp.datasets.ner.msra import MSRA_NER_CHAR_LEVEL_TRAIN, MSRA_NER_CHAR_LEVEL_DEV, MSRA_NER_CHAR_LEVEL_TEST
from tests import cdroot
cdroot()
recognizer = Transf... |
ff7624355590dfd4c7f262599a889b1579e270f5 | e7f2a8c466c14b9821e59740ed0407107e1254a4 | /rasa/core/channels/rocketchat.py | 3540e2d2e9d79e61489dcc7abdd94c6c0b60f657 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"MIT"
] | permissive | RasaHQ/rasa | 4a31134308a9a4d8824fe7faef02526accdd0f19 | 50857610bdf0c26dc61f3203a6cbb4bcf193768c | refs/heads/main | 2023-08-28T01:53:56.981600 | 2023-08-25T10:20:49 | 2023-08-25T10:20:49 | 70,908,208 | 13,167 | 3,739 | Apache-2.0 | 2023-09-14T09:54:40 | 2016-10-14T12:27:49 | Python | UTF-8 | Python | false | false | 5,999 | py | rocketchat.py | import logging
from sanic import Blueprint, response
from sanic.request import Request
from typing import Text, Dict, Any, List, Iterable, Optional, Callable, Awaitable
from rasa.core.channels.channel import UserMessage, OutputChannel, InputChannel
from sanic.response import HTTPResponse
logger = logging.getLogger(__... |
117cb16502e917fef3b6ece84d99bc3490f4e5a7 | d594f3926f6379ef7c382c608cb211f507240420 | /csunplugged/topics/management/commands/_CurriculumIntegrationsLoader.py | 478bbc73d698a21e0e6269c819ce858b534afd76 | [
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"OFL-1.1",
"LGPL-2.0-or-later",
"AGPL-3.0-only",
"CC-BY-4.0",
"Apache-2.0",
"BSD-3-Clause",
"CC-BY-SA-4.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | uccser/cs-unplugged | 0b9151f84dd490d5b90771a3706327a623d39edc | 363e281ff17cefdef0ec61078b1718eef2eaf71a | refs/heads/develop | 2023-08-25T08:45:29.833025 | 2023-08-22T02:58:35 | 2023-08-22T02:58:35 | 66,315,075 | 200 | 41 | MIT | 2023-09-14T02:15:40 | 2016-08-22T23:16:40 | Python | UTF-8 | Python | false | false | 5,435 | py | _CurriculumIntegrationsLoader.py | """Custom loader for loading curriculum integrations."""
from django.core.exceptions import ObjectDoesNotExist
from utils.TranslatableModelLoader import TranslatableModelLoader
from utils.errors.KeyNotFoundError import KeyNotFoundError
from utils.errors.MissingRequiredFieldError import MissingRequiredFieldError
from u... |
48f46a90e600d96a4621f15a64815ce79a97279d | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1639. Number of Ways to Form a Target String Given a Dictionary/1639-2.py | 88ab216cf1b791c79c7eacd7def14209b977f01d | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 920 | py | 1639-2.py | class Solution:
def numWays(self, words: List[str], target: str) -> int:
kMod = 1_000_000_007
wordLength = len(words[0])
# dp[i][j] := # of ways to form first i characters of target using j first characters in each word
dp = [[0] * (wordLength + 1) for _ in range(len(target) + 1)]
# counts[j] := c... |
733b32ea70122d99a5b6a2c42a36e4cc869e869c | bbfc9f05efefe29b6ce9832bb3506efb900c1c93 | /tencentcloud/teo/v20220901/errorcodes.py | c27e69da32f96f3bba573d646b5958633202cff4 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-python | a2fab235926b0a27e9cfdf55e085a8bb15b3f506 | 6baf00a5a56ba58b6a1123423e0a1422d17a0201 | refs/heads/master | 2023-09-04T10:52:28.060438 | 2023-09-01T03:09:16 | 2023-09-01T03:09:16 | 130,147,399 | 594 | 300 | Apache-2.0 | 2023-09-06T07:03:24 | 2018-04-19T02:23:12 | Python | UTF-8 | Python | false | false | 25,091 | py | errorcodes.py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... |
386967eb913a2db654bb26a4b474bc7714b4c8e0 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/AvatarInputHandler/steel_hunter_control_modes.py | ba06eadfbd9ef95ad376ff8b6315cdc1b64f8df9 | [] | 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 | 322 | py | steel_hunter_control_modes.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/AvatarInputHandler/steel_hunter_control_modes.py
from AvatarInputHandler.control_modes import PostMortemControlMode
class SHPostMortemControlMode(PostMortemControlMode):
def _isPostmortemDelayEnabled(self):
return Fals... |
e61ec310a4a210e46f8a3b59d954ef0629deef94 | 767b09cdf51803d533ebb5906042ed1f92f91a7c | /tests/classification/dataset_readers/boolq.py | b8e9469e172d3df83b0ff4fbcb92ec518262d652 | [
"Apache-2.0"
] | permissive | allenai/allennlp-models | e93bb3b084e99e211d5ebb515b765de117e41970 | b1f372248c17ad12684d344955fbcd98e957e77e | refs/heads/main | 2023-09-05T01:57:37.434101 | 2022-11-24T00:06:05 | 2022-11-24T00:06:05 | 246,170,605 | 520 | 172 | Apache-2.0 | 2022-11-24T00:06:06 | 2020-03-10T00:22:21 | Python | UTF-8 | Python | false | false | 2,448 | py | boolq.py | # -*- coding: utf-8 -*-
from allennlp.common.util import ensure_list
from allennlp.data.tokenizers import PretrainedTransformerTokenizer
from allennlp.data.token_indexers import PretrainedTransformerIndexer
from allennlp_models.classification import BoolQDatasetReader
from tests import FIXTURES_ROOT
class TestBoolqR... |
c75b10b547c6498a0965e60dc7aec121ebc1c39b | aee26a4c731a84481a499679c3d4cef9ec954aed | /tacker/db/migration/alembic_migrations/versions/12a57080b278_alter_devices.py | 153b8eb3487cc2db2886593060421662f38aa0ca | [
"Apache-2.0"
] | permissive | openstack/tacker | 6976cbee3afadfd9390849b56da2837feb93e912 | 9c7918f0b501cdeaffae40f585b76fc92b8e196e | refs/heads/master | 2023-09-04T01:22:43.106241 | 2023-08-31T00:06:42 | 2023-08-31T00:42:20 | 21,259,951 | 125 | 172 | Apache-2.0 | 2021-05-09T06:13:08 | 2014-06-27T01:11:56 | Python | UTF-8 | Python | false | false | 1,459 | py | 12a57080b278_alter_devices.py | # Copyright 2015 OpenStack 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
#
# Unless required by applicable law ... |
ddcf4852afa5182c8443f3db3a95652f08031132 | d689b3caab44773d1c27327c7635748b7510eef0 | /barbican/tests/api/controllers/test_secretmeta.py | 7b121f9f38db7d11fd7c76a90823fc9b6641b013 | [
"Apache-2.0"
] | permissive | openstack/barbican | e9d8cd8c7821fbd0cd42381358040540e010d885 | c8e3dc14e6225f1d400131434e8afec0aa410ae7 | refs/heads/master | 2023-09-04T03:08:34.120188 | 2023-08-28T08:06:46 | 2023-08-28T08:06:46 | 20,115,712 | 189 | 93 | Apache-2.0 | 2021-07-27T06:00:23 | 2014-05-23T22:15:27 | Python | UTF-8 | Python | false | false | 14,366 | py | test_secretmeta.py | # Copyright (c) 2017 IBM
#
# 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, softw... |
77f6072471621707fd57205aa285c36363bd8f48 | 2bb7bc07df02a17735c2cacc7b2ba0c6de77b63c | /tools/action_dag_diagram.py | 529e3918eccf4ea666dd977901b6c7c4fbfb8ef3 | [
"Apache-2.0"
] | permissive | Yelp/Tron | 2c30a301055a732c3b33a39e05dbdcfc84ac8e02 | 958a2e22a6ac733cba043bc4238f3bf2b8048f4b | refs/heads/master | 2023-08-29T11:35:11.716532 | 2023-08-21T19:27:45 | 2023-08-21T19:27:45 | 899,771 | 226 | 53 | NOASSERTION | 2023-08-21T19:26:45 | 2010-09-09T20:54:04 | Python | UTF-8 | Python | false | false | 2,007 | py | action_dag_diagram.py | """
Create a graphviz diagram from a Tron Job configuration.
Usage:
python tools/action_dag_diagram.py -c <config> -n <job_name>
This will create a file named <job_name>.dot
You can create a diagram using:
dot -Tpng -o <job_name>.png <job_name>.dot
"""
import optparse
from tron.config import manager
from... |
d2ad62f45cb8453d6a6cca629387a7035284fef4 | dacdebab897f9287f37a2e85c5705a926ddd36aa | /tests/test_module_no_prefixing_modified_paths/module2/Snakefile | c9befe28db83341c23039c6fa41bfcafb140892e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | snakemake/snakemake | 5d4528193d87786d7b372ca7653ece302ff46965 | 27b224ed12448df8aebc7d1ff8f25e3bf7622232 | refs/heads/main | 2023-09-02T08:37:04.323976 | 2023-08-11T10:02:34 | 2023-08-11T10:02:34 | 212,840,200 | 1,941 | 536 | MIT | 2023-09-11T09:51:44 | 2019-10-04T14:58:11 | HTML | UTF-8 | Python | false | false | 255 | Snakefile | rule b:
output:
"test.txt"
shell:
"echo test_b > {output}"
rule c:
input:
"test.txt"
output:
"test_final.txt"
shell:
"""
cp {input} {output};
echo test_c >> {output}
""" | |
1ba46f3ef78589b1d5f9a2baaeb041d5c87550bc | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/google_sheets/config_flow.py | 3805ee9d38b127d21d6def43abd98379101ecfe9 | [
"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 | 3,473 | py | config_flow.py | """Config flow for Google Sheets integration."""
from __future__ import annotations
from collections.abc import Mapping
import logging
from typing import Any
from google.oauth2.credentials import Credentials
from gspread import Client, GSpreadException
from homeassistant.config_entries import ConfigEntry
from homeas... |
0edd69abff9c95514a0a40f4774809441092d7f6 | 6946f9a3e9d57b00ea275b2303ced0dedcdba1d4 | /qf_lib/analysis/timeseries_analysis/timeseries_analysis.py | ba3a21f8a6d7f9729b59e593c93144e58606aef5 | [
"Apache-2.0"
] | permissive | quarkfin/qf-lib | 8eaf76e3db385295ff8845b3250ba64a6fcfc7a6 | f707e51bc2ff45f6e46dcdd24d59d83ce7dc4f94 | refs/heads/master | 2023-08-31T17:41:57.213680 | 2023-08-29T10:01:49 | 2023-08-29T10:01:49 | 202,696,503 | 379 | 51 | Apache-2.0 | 2023-09-05T06:11:35 | 2019-08-16T09:10:20 | Python | UTF-8 | Python | false | false | 15,764 | py | timeseries_analysis.py | # Copyright 2016-present CERN – European Organization for Nuclear Research
#
# 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... |
74f5fb090a7b6dbbc375f9be917f34954545cad6 | a12b448f44beb4d521cb7e31677281f41df35f0b | /benchmarks/DNN/blocks/Resize-Conv-ReLU-MaxPool/cpu/dense/resize_conv_relu_maxpool_tensorflow.py | f57ad7a50d511d59605fe7df82bdcce446dafbd0 | [
"MIT"
] | permissive | Tiramisu-Compiler/tiramisu | d45f65dd9c35f643b3531ec79df1203c7ea3371d | f13e480f0ddb142cec371b7d7431a41d8ca885ec | refs/heads/master | 2023-08-25T12:21:26.889736 | 2023-05-09T18:40:52 | 2023-05-09T18:40:52 | 58,378,976 | 906 | 168 | MIT | 2023-09-08T11:47:06 | 2016-05-09T13:33:51 | C++ | UTF-8 | Python | false | false | 1,694 | py | resize_conv_relu_maxpool_tensorflow.py | # For convenience, disable warnings of type FutureWarning
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import tensorflow as tf
import numpy as np
import time, sys
from tensorflow import nn
from tensorflow import image
IMG_WIDTH = 600
IMG_HEIGHT = 400
BATCH_SIZE = 32
N = 224
FIN = 3... |
7823448be0ce40a1150a84c6f5c23e05b1ae90f9 | 855b013907d33b7e1bb74f688e5314b0e9bae510 | /python-package/xlearn/base.py | 0d70de63b5856fe090c875e87432f6a3de5c3957 | [
"Apache-2.0"
] | permissive | aksnzhy/xlearn | 5b3f3aa29b31c7080a3e0835f073d34157878c44 | 4c240aa0aa63c1d105fb9aec583adc2ad2840368 | refs/heads/master | 2023-09-01T08:44:21.447056 | 2022-06-05T10:44:18 | 2022-06-05T10:44:18 | 93,925,242 | 3,261 | 624 | Apache-2.0 | 2023-08-28T05:18:27 | 2017-06-10T08:09:31 | C++ | UTF-8 | Python | false | false | 2,861 | py | base.py | # Copyright (c) 2018 by contributors. 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... |
f7d611da55ade1d400fccbd8dd84133ea87ee164 | 643410b6ed94f3b11fb7fcab1dcb9f9f9532a8bb | /tests/test_decorators.py | 8f0ab3582e5863f74aa7f557fb45b1d5b6b81546 | [
"MIT"
] | permissive | vintasoftware/django-role-permissions | 51158a4c550fbce93b088a2563d0dbc93cdd962b | e74613d78d188788ee4c5c84b99341648e06e78c | refs/heads/master | 2023-09-01T19:12:34.472365 | 2023-06-09T20:27:07 | 2023-06-09T20:27:07 | 13,388,701 | 666 | 130 | MIT | 2023-06-09T20:27:08 | 2013-10-07T16:13:02 | Python | UTF-8 | Python | false | false | 8,317 | py | test_decorators.py |
from django.views.generic import DetailView
from django.utils.decorators import method_decorator
from django.test import TestCase
from django.test.utils import override_settings
from django.contrib.auth import get_user_model
from django.test.client import RequestFactory
from django.core.exceptions import PermissionDen... |
49682921978414804af4a5926a86fc850c1b20ba | 5e9576c368e98927e2965bd2fb23bd35d9993d69 | /featuretools/primitives/standard/aggregation/__init__.py | b73744ecd5d3c90facd99ad406c359af7ffa17dc | [
"BSD-3-Clause"
] | permissive | alteryx/featuretools | c6e319e063e8e84e7684bf232376f95dc5272160 | c284c2d27a95b81e0bae913ac90df2b02c8f3b37 | refs/heads/main | 2023-08-25T12:21:33.945418 | 2023-08-23T16:30:25 | 2023-08-23T16:30:25 | 102,908,804 | 1,783 | 201 | BSD-3-Clause | 2023-09-07T18:53:19 | 2017-09-08T22:15:17 | Python | UTF-8 | Python | false | false | 5,915 | py | __init__.py | from featuretools.primitives.standard.aggregation.all_primitive import All
from featuretools.primitives.standard.aggregation.any_primitive import Any
from featuretools.primitives.standard.aggregation.avg_time_between import AvgTimeBetween
from featuretools.primitives.standard.aggregation.average_count_per_unique import... |
d9198b40f7cc5247fbdf78cd1562c9fa62dc7f7b | bbf0c3294b8aac4cbabf255c2904556144c85610 | /modoboa/core/commands/__init__.py | 2f73d5ae6619f5189193a44d4415ccde3351ad2b | [
"ISC"
] | permissive | modoboa/modoboa | 4a170fabcb15b892fe627795b02a02d4c16783d6 | df699aab0799ec1725b6b89be38e56285821c889 | refs/heads/master | 2023-08-30T12:58:51.313642 | 2023-08-29T13:22:14 | 2023-08-29T13:22:14 | 9,469,271 | 2,201 | 370 | ISC | 2023-09-13T12:47:28 | 2013-04-16T09:43:55 | Python | UTF-8 | Python | false | false | 3,123 | py | __init__.py | import argparse
import os
import sys
from django.conf import settings
from django.template import Context, Template
from django.utils.encoding import smart_str
class Command(object):
"""Base command class.
A valid administrative command must inherit from this class.
"""
help = "No help available." ... |
3ce028b5b97f83e7f4cedde2cbd92ec21eae03bc | f0519485bd889fedc1f01e3d3f5bf8681cac163e | /examples/panflute/deemph.py | 9023fcb7fc2f5ff20423a526cdb27bcd4b13accc | [
"BSD-3-Clause"
] | permissive | sergiocorreia/panflute | 55291ab38fcb63a162864faf6bf349e3e9aaaaa1 | dd8b03a3f5b1eca13faf54289dae3e50d5323ca0 | refs/heads/master | 2023-07-08T15:28:00.102303 | 2023-03-07T03:14:02 | 2023-03-07T03:14:02 | 55,024,750 | 470 | 74 | BSD-3-Clause | 2023-02-08T11:01:41 | 2016-03-30T02:07:47 | Python | UTF-8 | Python | false | false | 560 | py | deemph.py | #!/usr/bin/env python
"""
Pandoc filter that causes emphasized text to be displayed
in ALL CAPS.
"""
from panflute import toJSONFilter, Emph, Str
from caps import caps
def deemph(elem, doc):
if type(elem) == Emph:
# Make Str elements in Emph uppercase
elem.walk(caps)
# Append them to Em... |
497468b94f7232aee24f09acd589ea442de6a993 | 7d5691687676b900553628f9287b7cb9094dac9a | /3party/freetype/src/tools/docmaker/sources.py | 0cf21ce03f3f422da7dcb149705c9ebf2fc2c128 | [
"FTL",
"Apache-2.0"
] | permissive | mapsme/omim | bf3ea4f419a547b7c124107e344d7f565d707c12 | 1892903b63f2c85b16ed4966d21fe76aba06b9ba | refs/heads/master | 2023-02-20T16:31:08.733960 | 2021-04-27T13:57:41 | 2021-04-28T14:44:52 | 42,798,033 | 5,032 | 1,527 | Apache-2.0 | 2022-10-03T08:28:24 | 2015-09-20T02:57:13 | C++ | UTF-8 | Python | false | false | 12,976 | py | sources.py | #
# sources.py
#
# Convert source code comments to multi-line blocks (library file).
#
# Copyright 2002-2015 by
# David Turner.
#
# This file is part of the FreeType project, and may only be used,
# modified, and distributed under the terms of the FreeType project
# license, LICENSE.TXT. By continuing to use,... |
755ea918e03e5f15204100854537e13529df3fe6 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Pdf_docx_pptx_xlsx_epub_png/source/reportlab/graphics/samples/runall.py | e305a37f2e3e2a55a1002f325456a543cfe90c3d | [
"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 | 1,970 | py | runall.py | # runs all the GUIedit charts in this directory -
# makes a PDF sample for eaxh existing chart type
import sys
import glob
import inspect
import types
def moduleClasses(mod):
def P(obj, m=mod.__name__, CT=type):
return (type(obj)==CT and obj.__module__==m)
try:
return inspect.getmembers(mod, P)... |
30ec0e5afb4257df991451941ee4260e515c5dd2 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /9_排序和搜索/经典题/自定义比较函数/s.py | a51b272b5e5ab62cdf9bc8b4b7b22cc2580b06cd | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | s.py | # 默认空格分隔
print("as".split())
print(list("as"))
|
74d557475165af8d14a40ff29c8003803dcaa08f | e7614b7c1d0c8d133d5b56db665e6aab66fefe4f | /doc/includes/sqlite3/complete_statement.py | 2bb49d4f6ae8d144463c8fbf4dc5b03a31dd96f0 | [
"Zlib"
] | permissive | ghaering/pysqlite | f35c57ac1db4f5c77ea956926a50281bd9a93264 | 4f32165fc628a1dc10c9449b8f4e1ddb3cfe6222 | refs/heads/master | 2023-08-22T14:45:50.645199 | 2022-08-13T19:27:27 | 2022-08-15T06:43:58 | 13,468,979 | 380 | 113 | Zlib | 2022-08-15T06:43:59 | 2013-10-10T11:02:40 | C | UTF-8 | Python | false | false | 694 | py | complete_statement.py | # A minimal SQLite shell for experiments
from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect(":memory:")
con.isolation_level = None
cur = con.cursor()
buffer = ""
print "Enter your SQL commands to execute in SQLite."
print "Enter a blank line to exit."
while True:
line = raw_input()
if line == ""... |
a7371fa11a01d1e3590090099ef781d28a847d0c | 5e9576c368e98927e2965bd2fb23bd35d9993d69 | /featuretools/primitives/standard/transform/natural_language/median_word_length.py | 116c05c026b5c043c8a580f834744e0ed5ae9540 | [
"BSD-3-Clause"
] | permissive | alteryx/featuretools | c6e319e063e8e84e7684bf232376f95dc5272160 | c284c2d27a95b81e0bae913ac90df2b02c8f3b37 | refs/heads/main | 2023-08-25T12:21:33.945418 | 2023-08-23T16:30:25 | 2023-08-23T16:30:25 | 102,908,804 | 1,783 | 201 | BSD-3-Clause | 2023-09-07T18:53:19 | 2017-09-08T22:15:17 | Python | UTF-8 | Python | false | false | 1,664 | py | median_word_length.py | from numpy import median
from woodwork.column_schema import ColumnSchema
from woodwork.logical_types import Double, NaturalLanguage
from featuretools.primitives.base import TransformPrimitive
from featuretools.primitives.standard.transform.natural_language.constants import (
DELIMITERS,
)
class MedianWordLength(... |
59e47a2cb1db595c4fab46eea18b80d5ff191a6f | 951e203aa900efa834fc3ace5b083a3463811dc4 | /testproject/common/tests/test_views.py | 1f4b56f5cfcaafcae60309523daed31d695bcb88 | [
"BSD-2-Clause"
] | permissive | r4fek/django-cassandra-engine | 4428eb3a2f2adb60f9b85c3351d3874f2a289220 | 563348cba0f5c6be5600a2cdf2a41b3922ea3099 | refs/heads/master | 2023-08-13T08:29:59.075351 | 2023-02-02T20:59:27 | 2023-02-02T20:59:27 | 21,979,760 | 366 | 102 | BSD-2-Clause | 2023-02-02T21:00:16 | 2014-07-18T12:34:40 | Python | UTF-8 | Python | false | false | 2,332 | py | test_views.py | from datetime import datetime
from http import client
from django.urls import reverse
from common.models import CassandraThingMultiplePK
from django_cassandra_engine.test import TestCase as CassandraTestCase
from freezegun import freeze_time
@freeze_time("14-06-15 15:44:25")
def create_thing():
return Cassandra... |
8883159b1c3cc609d845defae5911f0b89a56f61 | c71b7a8a9dd7bf7c9496b1df2acc1e52a2a913d0 | /onadata/apps/logger/migrations/0001_initial.py | 94acea2a8cdb16fd1a6884c8bd878621cde3c990 | [
"BSD-2-Clause"
] | permissive | kobotoolbox/kobocat | a5c6fb6a9d3dabe71b5e3c082e4261c4475cbf7f | b8d93d4da649f323af111cf7247206554be7c8b1 | refs/heads/main | 2023-08-10T00:05:49.384348 | 2023-07-06T04:47:59 | 2023-07-06T04:47:59 | 14,497,749 | 101 | 135 | BSD-2-Clause | 2023-09-13T14:57:13 | 2013-11-18T16:16:32 | Python | UTF-8 | Python | false | false | 8,250 | py | 0001_initial.py | # coding: utf-8
import django.contrib.gis.db.models.fields
import jsonfield.fields
import taggit.managers
from django.conf import settings
from django.db import migrations, models
import onadata.apps.logger.models.attachment
import onadata.apps.logger.models.xform
class Migration(migrations.Migration):
dependen... |
7434a9c8f48e45433ce1b799cdfd3d5e41adc165 | cba7444a9b6c7e3f9b557ff81c5ab03a2c8c6d8e | /dftimewolf/lib/args_validator.py | db601743fa8b2149f5048c8989676a8f9db0292a | [
"Apache-2.0"
] | permissive | log2timeline/dftimewolf | e364e0eb213b6a8bb3648598c62fd622cc509755 | bcea85b1ce7a0feb2aa28b5be4fc6ae124e8ca3c | refs/heads/main | 2023-08-24T09:49:25.971929 | 2023-08-17T12:30:07 | 2023-08-17T12:30:07 | 64,484,320 | 248 | 81 | Apache-2.0 | 2023-09-13T07:05:50 | 2016-07-29T13:54:45 | Python | UTF-8 | Python | false | false | 21,144 | py | args_validator.py | """Validators for recipe arguments."""
import abc
import ipaddress
import re
from typing import Any, Dict, Union, Tuple
import datetime
from urllib.parse import urlparse
from dftimewolf.lib import errors
class AbstractValidator(abc.ABC):
"""Base class for validator objects."""
NAME: str = None # type: ignor... |
12e682b5ec5af543b6b276f83e4f29c84a2abd14 | 057a475216e9beed41983481aafcaf109bbf58da | /tests/integration/test_storage_s3/test_invalid_env_credentials.py | d91cb7d68f9d7d367d32ae520e2f20eec3fabd22 | [
"Apache-2.0"
] | permissive | ClickHouse/ClickHouse | fece5204263a5b4d693854b6039699265f1bb27f | 6649328db809d51a694c358571539bc5820464be | refs/heads/master | 2023-08-31T18:48:36.615225 | 2023-08-31T17:51:24 | 2023-08-31T17:51:24 | 60,246,359 | 23,878 | 5,449 | Apache-2.0 | 2023-09-14T20:10:52 | 2016-06-02T08:28:18 | C++ | UTF-8 | Python | false | false | 5,140 | py | test_invalid_env_credentials.py | import json
import os
import logging
import helpers.client
from helpers.mock_servers import start_mock_servers
import pytest
from helpers.cluster import ClickHouseCluster, ClickHouseInstance
MINIO_INTERNAL_PORT = 9001
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
# Creates S3 bucket for tests and allows... |
612b8cf301e1ff1d761df0444ef407a6f6201b17 | e90bf4b372da78ceec15282d060b48d18ba8d4e9 | /tests/resolution/evaluation/test_evaluate_dns_server.py | da9017a41f68426b6a298a823bf7981a2cb7d903 | [
"Apache-2.0"
] | permissive | home-assistant/supervisor | 67f2e1755ff5fbf7cf2084351e1c32c6995274e0 | 4838b280adafed0997f32e021274b531178386cd | refs/heads/main | 2023-08-31T22:51:25.949277 | 2023-08-31T08:01:42 | 2023-08-31T08:01:42 | 84,926,758 | 928 | 477 | Apache-2.0 | 2023-09-14T17:11:27 | 2017-03-14T08:54:15 | Python | UTF-8 | Python | false | false | 2,013 | py | test_evaluate_dns_server.py | """Test DNS server evaluation."""
from unittest.mock import patch
from supervisor.const import CoreState
from supervisor.coresys import CoreSys
from supervisor.resolution.const import ContextType, IssueType
from supervisor.resolution.evaluations.dns_server import EvaluateDNSServer
async def test_evaluation(coresys: ... |
830c35dff374f333161f26b7e0148993c6855bf1 | 1b8ee6219efec5384a1db806de2fa78451085997 | /casbin/enforcer.py | aab273331f63a3e6bf37b921db1d4cc0fe0b4ed9 | [
"Apache-2.0"
] | permissive | casbin/pycasbin | 1b0d49185bf692c20c662718159f563f6e768d7a | ded3c6e002d1e7c6366149583407532404ea97e5 | refs/heads/master | 2023-08-27T21:06:48.017169 | 2023-08-27T15:01:55 | 2023-08-27T15:01:55 | 149,631,013 | 1,189 | 213 | Apache-2.0 | 2023-09-07T07:09:28 | 2018-09-20T15:28:56 | Python | UTF-8 | Python | false | false | 10,184 | py | enforcer.py | # Copyright 2021 The casbin 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... |
1f3fef4eb90d2b04888ee573830ccadea106033d | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/networkx/algorithms/link_prediction.py | 0c2978709f8506ad8dda58b36c7d240ff5b9676c | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 16,605 | py | link_prediction.py | """
Link prediction algorithms.
"""
from __future__ import division
from math import log
import networkx as nx
from networkx.utils import not_implemented_for
__all__ = ['resource_allocation_index',
'jaccard_coefficient',
'adamic_adar_index',
'preferential_attachment',
'cn... |
c862e3f6da37ef306bdc0f2a8a242e05070ba886 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Alignment/CommonAlignmentProducer/python/ALCARECOTkAlCosmics_Output_cff.py | c83e3a65b75ebac9282075cd0cc4093b9544bdb3 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 1,326 | py | ALCARECOTkAlCosmics_Output_cff.py | # Author : Gero Flucke
# Date : July 19th, 2007
# last update: $Date: 2011/02/09 09:10:11 $ by $Author: cerminar $
import FWCore.ParameterSet.Config as cms
# AlCaReco for track based alignment using Cosmic muon events
OutALCARECOTkAlCosmics_noDrop = cms.PSet(
SelectEvents = cms.untracked.PSet(
... |
3225f94a6cfe660c9d618f6580c596b817f4dbf0 | 21ef758a6c8ae4d7eac85603353f0c895e4b2130 | /tests/unit/validation/test_dependencies.py | 3b59767f62b339deb9ef364ae6d5b9b1d47f5033 | [
"MIT"
] | permissive | wyfo/apischema | bafeb96641744d1013c36cfbddcc6087bdd9141e | 0fc919fa985f72bad628d411cabfde302eb21d20 | refs/heads/master | 2023-08-18T10:18:17.617581 | 2023-07-11T08:48:37 | 2023-07-11T08:48:37 | 201,204,205 | 221 | 20 | MIT | 2023-09-01T15:50:06 | 2019-08-08T07:33:15 | Python | UTF-8 | Python | false | false | 994 | py | test_dependencies.py | import pytest
from apischema.validation.dependencies import find_all_dependencies, find_dependencies
def a_equal_b(param):
assert param.a == param.b
@pytest.mark.parametrize("func, deps", [(a_equal_b, {"a", "b"}), (int, set())])
def test_find_dependencies(func, deps):
assert find_dependencies(func) == deps... |
20c9a679c74b9cbb402f126dc4a2a3c87830f9f4 | 29c88ae9d8ac5e498c28f747f54d265408011857 | /freight/providers/manager.py | 83d66a9d4dd03daea6bb1e8a00e27846fb2293d8 | [
"Apache-2.0"
] | permissive | getsentry/freight | 049878d4fdfc1ec7ba35caca094cd3f8c78f364a | 17a9c819504f25f1e01178a43018dd660be1e879 | refs/heads/master | 2023-08-22T06:01:00.378812 | 2023-02-03T03:07:48 | 2023-02-03T03:07:48 | 29,835,895 | 571 | 55 | Apache-2.0 | 2023-05-01T21:03:31 | 2015-01-25T23:17:09 | Python | UTF-8 | Python | false | false | 403 | py | manager.py | __all__ = ["ProviderManager"]
from freight.exceptions import InvalidProvider
class ProviderManager:
def __init__(self):
self.providers = {}
def add(self, name, cls):
self.providers[name] = cls
def get(self, name, **kwargs):
try:
cls = self.providers[name]
exc... |
fc733be27c1187ce52dcc55185faa8e837c1e73e | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/netappfiles-preview/azext_netappfiles_preview/vendored_sdks/models/capacity_pool.py | 953dec4c38d181ac23e334199ce59cf000f975f7 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 3,134 | py | capacity_pool.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 ... |
f9a531a4d3fc7f3e8afd4eb850e7f0b7e274b0d5 | 8e59a43de9d427865c5d67fef39e9a50e44f07ce | /ppocr/modeling/heads/table_master_head.py | 486f9cbea13c15b0f3a6d608789163f18f678914 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleOCR | af87db8a804b9a4f4eac8a0b2faf80d1dd71633a | 15963b0d242867a4cc4d76445626dc8965509b2f | refs/heads/release/2.7 | 2023-09-01T04:53:37.561932 | 2023-08-30T02:22:15 | 2023-08-30T02:22:15 | 262,296,122 | 34,195 | 7,338 | Apache-2.0 | 2023-09-14T06:08:11 | 2020-05-08T10:38:16 | Python | UTF-8 | Python | false | false | 10,257 | py | table_master_head.py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
a4bce91713e35e7a131d30584d350359cb1ba392 | 29bd0e9b5bdef7e2b4ff79edda3be258d5bde63c | /xonsh/xoreutils/yes.py | 6dad709cc00356ed49932943649abb58753e70bf | [
"BSD-2-Clause"
] | permissive | xonsh/xonsh | 4dec5e4c14a4a82f81277a89d8ab6091869fc29e | 60f0145ed893cb73bbfcf336c448238981010d41 | refs/heads/main | 2023-08-31T03:37:57.786839 | 2023-08-23T15:30:20 | 2023-08-23T15:30:20 | 29,620,400 | 6,374 | 684 | NOASSERTION | 2023-09-11T02:52:37 | 2015-01-21T22:05:27 | Python | UTF-8 | Python | false | false | 643 | py | yes.py | """An implementation of yes for xonsh."""
def yes(args, stdin, stdout, stderr):
"""A yes command."""
if "--help" in args:
print(YES_HELP, file=stdout)
return 0
to_print = ["y"] if len(args) == 0 else [str(i) for i in args]
while True:
print(*to_print, file=stdout)
return... |
825bda81cb8bdffb4b682aca718ccf0a66030fd8 | 29dfa1deefc72493d1b1eecf1a8df62e24599a77 | /dfvfs/file_io/compressed_stream_io.py | 7ada32829afa440dcc223953b5216ceb17066613 | [
"Apache-2.0"
] | permissive | log2timeline/dfvfs | fd301eaf721a9945641a44ff722aec963158a6b3 | 28756d910e951a22c5f0b2bcf5184f055a19d544 | refs/heads/main | 2023-08-07T22:45:45.432668 | 2023-07-30T12:17:56 | 2023-07-30T12:17:56 | 23,820,144 | 197 | 65 | Apache-2.0 | 2023-07-30T12:17:58 | 2014-09-09T05:06:44 | Python | UTF-8 | Python | false | false | 9,503 | py | compressed_stream_io.py | # -*- coding: utf-8 -*-
"""The compressed stream file-like object implementation."""
import os
from dfvfs.compression import manager as compression_manager
from dfvfs.file_io import file_io
from dfvfs.lib import errors
from dfvfs.resolver import resolver
class CompressedStream(file_io.FileIO):
"""File input/outpu... |
acca91865eecc25e93f586aa5764c2407d220b73 | 23652304566b1869ca65b95b116ee43d16e134f3 | /tests/common/factories/group_scope.py | 3bad93d1f4a04c655494ee26d9f161fe6ca5cf36 | [
"BSD-2-Clause",
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | hypothesis/h | 29399a26990856c336b05022e827541dd8aeedab | 232446d776fdb906d2fb253cf0a409c6813a08d6 | refs/heads/main | 2023-08-30T16:21:33.754658 | 2023-08-30T09:26:50 | 2023-08-30T09:40:48 | 3,910,945 | 2,558 | 452 | BSD-2-Clause | 2023-09-14T11:25:06 | 2012-04-02T19:56:59 | Python | UTF-8 | Python | false | false | 303 | py | group_scope.py | import factory
from h import models
from .base import ModelFactory
class GroupScope(ModelFactory):
class Meta:
model = models.GroupScope
sqlalchemy_session_persistence = "flush"
scope = factory.Faker("url")
group = factory.SubFactory("tests.common.factories.OpenGroup")
|
111729e2c2b78c711479220755e99d78cbcff717 | 704976ea552111c6a5af9cd7cb62b9d9abaf3996 | /rpython/jit/backend/llsupport/asmmemmgr.py | 6a3c1e05147e9013cfa9ce9efd6046da64f26f9b | [
"BSD-3-Clause"
] | permissive | mesalock-linux/mesapy | 4f02c5819ce7f2f6e249d34840f1aa097577645d | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | refs/heads/mesapy2.7 | 2023-08-16T21:33:02.239581 | 2019-08-13T10:29:43 | 2019-08-13T18:06:45 | 136,080,721 | 396 | 33 | NOASSERTION | 2020-04-01T03:05:18 | 2018-06-04T20:45:17 | Python | UTF-8 | Python | false | false | 13,596 | py | asmmemmgr.py | import sys
from rpython.rlib.rarithmetic import intmask, r_uint, LONG_BIT
from rpython.rlib.objectmodel import we_are_translated
from rpython.rlib import rmmap
from rpython.rlib.debug import debug_start, debug_print, debug_stop
from rpython.rlib.debug import have_debug_prints
from rpython.rtyper.lltypesystem import llt... |
6c900f284ac0dd5f37858dc67e0c4ac6214ae8c8 | fdb9bdc6c4ab2f14ba71e544493706d5e275899f | /fhir/resources/__init__.py | d3dd85ba10713c9e458062c87bd105ef8783b562 | [
"BSD-3-Clause"
] | permissive | nazrulworld/fhir.resources | 6ae8aea8180c611b0c5050759c6dcdf63e4cb061 | 1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3 | refs/heads/main | 2023-08-30T18:27:27.277249 | 2023-07-03T19:57:06 | 2023-07-03T19:57:06 | 165,297,877 | 256 | 83 | NOASSERTION | 2023-08-24T15:34:05 | 2019-01-11T19:26:41 | Python | UTF-8 | Python | false | false | 852 | py | __init__.py | # -*- coding: utf-8 -*-
from pathlib import Path
from typing import Any, Dict, Union
from fhir.resources.core.fhirabstractmodel import FHIRAbstractModel
from .fhirtypesvalidators import get_fhir_model_class
__version__ = "7.0.0"
__fhir_version__ = "5.0.0"
def construct_fhir_element(
element_type: str, data: Un... |
d5ed096636f6a2119c31f67a886dcb398f7d474b | ae1c7877f0d624ab0c9bae65ce8b0de0f9750683 | /23-GithubLogin/github/main.py | 5e6a1e12708c31517f3e59e0e2bd6db26c452271 | [] | no_license | Northxw/Python3_WebSpider | a38b723be440707cab40e50e7a3d7486254433b4 | 87cbae60f7a5b033851b0056dff741a3d5980d06 | refs/heads/master | 2022-05-01T04:02:13.123747 | 2022-04-08T03:43:00 | 2022-04-08T03:43:00 | 152,024,239 | 545 | 302 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | main.py | #coding:utf-8
from scrapy.cmdline import execute
execute('scrapy crawl logingit'.split()) |
1842fdbfab2ee1120dd5312b7e022f774a0f5dc3 | bbd69601912a3361d788efd03a47f9d4e3bac09e | /etg/gbsizer.py | a7da592bc0c1f178445f90997167aafac41cfb29 | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 7,605 | py | gbsizer.py | #---------------------------------------------------------------------------
# Name: etg/gbsizer.py
# Author: Robin Dunn
#
# Created: 06-Dec-2011
# Copyright: (c) 2011-2020 by Total Control Software
# License: wxWindows License
#---------------------------------------------------------------------... |
87ba441c044acd9275368dcd9d3570cc208d46b8 | 554cca2df87bec02315287dcd030dea7586972d7 | /data/__init__.py | b4acb20c1f729e2dba401fcb5f368e341043cf37 | [] | no_license | Zheng222/DMFN | 0c4f89f98aca65715062e35d519029fb1b4e436a | 35bee4f452607c3c82f76fc37af432eabd5c7ac4 | refs/heads/master | 2022-05-25T18:37:36.549559 | 2022-04-08T03:43:03 | 2022-04-08T03:43:03 | 198,465,348 | 243 | 28 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | __init__.py | import torch.utils.data
from data.dataset import ImageFilelist
def create_dataloader(dataset, dataset_opt):
return torch.utils.data.DataLoader(dataset,
batch_size=dataset_opt['batch_size'],
shuffle=dataset_opt['use_shuffle'],
... |
fe9b385bcf2604bbb1a3cbefbe4e8f19fb66fafb | 7a6aca7d300c0752f2a73730b743a1a7361e941b | /tensorflow_graphics/image/tests/matting_test.py | b0c3f17bdd2d2249d84d122706e4240ad6bba015 | [
"Apache-2.0"
] | permissive | tensorflow/graphics | ef0abe102398a58eb7c41b709393df3d0b0a2811 | 1b0203eb538f2b6a1013ec7736d0d548416f059a | refs/heads/master | 2023-09-03T20:41:25.992578 | 2023-08-08T21:16:36 | 2023-08-08T21:17:31 | 164,626,274 | 2,920 | 413 | Apache-2.0 | 2023-08-27T14:26:47 | 2019-01-08T10:39:44 | Python | UTF-8 | Python | false | false | 14,089 | py | matting_test.py | # Copyright 2020 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... |
b41d9700e9e483071ee2ecb9c74104a8e6434811 | 8d6651e0c4fa3f02014413c0b514500b466131ea | /examples/02_custom.py | 44bd66b30373ece3adf816b51d8f1424c755aa91 | [
"MIT"
] | permissive | explosion/spacy-streamlit | 7f828b7ea801a1010912e7ccb8e4c7aff4806119 | 715d463ff3e00097ee638f52aba971651bd74b38 | refs/heads/master | 2023-08-14T13:36:31.472922 | 2023-08-02T15:01:10 | 2023-08-02T15:01:10 | 274,382,739 | 718 | 122 | MIT | 2023-08-02T15:00:44 | 2020-06-23T11:00:08 | Python | UTF-8 | Python | false | false | 1,015 | py | 02_custom.py | """
Example using the components provided by spacy-streamlit in an existing app.
Prerequisites:
python -m spacy download en_core_web_sm
"""
import spacy_streamlit
import streamlit as st
DEFAULT_TEXT = """Google was founded in September 1998 by Larry Page and Sergey Brin while they were Ph.D. students at Stanford Univ... |
606a010230a810829e1208b57ea381ee85cdaac3 | a196beb85413c3d1174d9b962d88ea76ee2b443b | /dtformats/cpio.py | dfa8ccfe58ecaafee6121a9848fdaa7e0a39d45a | [
"Apache-2.0"
] | permissive | libyal/dtformats | 4c939a1671158e5968ffc8c7a2ebca187305e9fb | 55007dcac48efff42c497e739208ebfb88e4048d | refs/heads/main | 2023-08-03T04:09:45.900945 | 2023-07-31T04:47:50 | 2023-07-31T04:47:50 | 89,122,881 | 109 | 34 | Apache-2.0 | 2023-06-22T11:32:17 | 2017-04-23T06:47:27 | Python | UTF-8 | Python | false | false | 12,410 | py | cpio.py | # -*- coding: utf-8 -*-
"""Copy in and out (CPIO) archive format files."""
import os
from dtformats import data_format
from dtformats import data_range
from dtformats import errors
class CPIOArchiveFileEntry(data_range.DataRange):
"""CPIO archive file entry.
Attributes:
data_offset (int): offset of the dat... |
9955dd83abc33546d4d2021f837c7b3d6e986ca7 | 8ca98d2c7226f3fd7801665837a06758cbbf7903 | /doc/tutorials_src/grid_coordinates.py | 0835be5ba30fd0769af405879005956446a6593f | [
"BSD-3-Clause"
] | permissive | fatiando/verde | d30f70acb1aaf38ef0b1efaa8e651a9d8f874d60 | ec5509464bf1b4cb72b53a0e8e2c5d5ab4e87a1e | refs/heads/main | 2023-08-29T00:06:04.990472 | 2023-05-08T13:41:22 | 2023-05-08T13:41:22 | 131,073,898 | 532 | 79 | BSD-3-Clause | 2023-05-08T13:41:24 | 2018-04-25T23:21:08 | Python | UTF-8 | Python | false | false | 10,392 | py | grid_coordinates.py | # Copyright (c) 2017 The Verde Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
#
# This code is part of the Fatiando a Terra project (https://www.fatiando.org)
#
"""
.. _grid_coordinates:
Grid Coordinates
====================
Creating the coordinates for ... |
0ccf7a155708a78852bada3d76ca1e6c0e45f841 | 3c41443364da8b44c74dce08ef94a1acd1b66b3e | /tasks/utils.py | bf88a40ea8969a8060af750d604cd7b2da2fb0d5 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"AGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | CenterForOpenScience/osf.io | 71d9540be7989f7118a33e15bc4a6ce2d2492ac1 | a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e | refs/heads/develop | 2023-09-04T03:21:14.970917 | 2023-08-31T14:49:20 | 2023-08-31T14:49:20 | 10,199,599 | 683 | 390 | Apache-2.0 | 2023-09-14T17:07:52 | 2013-05-21T15:53:37 | Python | UTF-8 | Python | false | false | 854 | py | utils.py | import os
import sys
WHEELHOUSE_PATH = os.environ.get('WHEELHOUSE')
def get_bin_path():
"""Get parent path of current python binary.
"""
return os.path.dirname(sys.executable)
def bin_prefix(cmd):
"""Prefix command with current binary path.
"""
return os.path.join(get_bin_path(), cmd)
def ... |
64c9cb3834e701af72c59e4c057db1120d544b45 | c06278a7fb03a0282a756581cf54edb71c18d24e | /networkit/test/test_generators.py | 87e4347197681ac318a872896e83eb29f89beabf | [
"MIT"
] | permissive | networkit/networkit | 1f96c76cebedb1ae7f308dbe44caebdd101177f6 | 995eea5145db9e35374c0bac9d6347c623f5c7f9 | refs/heads/master | 2023-09-02T15:55:56.592856 | 2023-08-15T08:05:31 | 2023-08-15T08:05:31 | 80,919,805 | 505 | 172 | MIT | 2023-09-08T12:03:25 | 2017-02-04T13:04:42 | C++ | UTF-8 | Python | false | false | 8,356 | py | test_generators.py | #!/usr/bin/env python3
import unittest
import networkit as nk
class TestGraph(unittest.TestCase):
def setUp(self):
self.G = nk.readGraph("input/looptest1.gml", nk.Format.GML)
def testClusteredRandomGraphGenerator(self):
n, k = 100, 10
pIntra, pInter = 0.1, 0.05
... |
0630eea5ee6da8cac865d180d8f5dcaf868f9135 | 0529610da235bac1490c4f0b28a58258f05f116c | /contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/HIVE/package/scripts/hive_server_interactive.py | beb1220c72b0c8ba869a23cb252e9f24970e085e | [
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | apache/ambari | be1616f332615ef55fc1a47e84353f3e5a45732d | 23881f23577a65de396238998e8672d6c4c5a250 | refs/heads/trunk | 2023-08-31T23:01:31.954106 | 2023-08-28T06:29:01 | 2023-08-28T06:29:01 | 2,442,457 | 2,078 | 1,957 | Apache-2.0 | 2023-09-14T16:56:03 | 2011-09-23T07:00:08 | Java | UTF-8 | Python | false | false | 22,796 | py | hive_server_interactive.py | #!/usr/bin/env python
"""
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");... |
f558818ce2b0ad5cbf9fc82b673a564d5accc8fc | d1062421aed9448f583d1a084a073f12a5ac74e2 | /doc/Snakefile | 2ac215f6cfff9239a9a9f0834be59fb892ffcfd3 | [
"BSD-3-Clause"
] | permissive | sequana/sequana | 9d89cea55cf6987b832351ac35d34742620ce64a | 8717094493d1993debd079f324c540541dece70f | refs/heads/main | 2023-08-01T04:02:27.864027 | 2023-07-12T13:12:37 | 2023-07-12T13:12:37 | 53,329,678 | 155 | 41 | BSD-3-Clause | 2023-09-13T12:39:01 | 2016-03-07T14:00:07 | Jupyter Notebook | UTF-8 | Python | false | false | 531 | Snakefile | # Do not edit; line number are used in the doc
# Minimalist example to count number of reads in fastq files
from sequana import sequana_data
filename = sequana_data("Hm2_GTGAAA_L005_R1_001.fastq.gz", "data")
rule count:
input: filename
output: "count.txt"
run:
from sequana import FastQ
def ... | |
bdec5d571807773783f788d98d1b96b271db617b | 96255a58eef19fea6380601229538028e283e8d4 | /SLXOS/SLX_ifIndex_gen/setup.py | f7781a304c2f801ca8778f4cda82ccac56ba7f3a | [
"BSD-2-Clause"
] | permissive | extremenetworks/ExtremeScripting | 7b423490283757aab578cc0b273a695f2f8971a9 | 82b4503aca9896801773be300ab4b78c27bb0955 | refs/heads/master | 2023-08-07T02:39:48.523619 | 2023-07-13T16:20:43 | 2023-07-13T16:20:43 | 36,799,035 | 135 | 112 | null | 2023-09-07T17:33:20 | 2015-06-03T11:22:07 | HTML | UTF-8 | Python | false | false | 1,168 | py | setup.py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
module_list = ['SLX_BitMap', 'SLX_IntfTypeMap', 'SLX_TunnelTypeMap',
'SLXRSpeedMap', 'SLXSSpeedMap', 'SLX_PortData',
'SLX_PortMapping', 'IfIndex', 'SLX_IfIndex_Core',
'Slx9850_IfIndex', '... |
2512f80e00fa958da5def62d9342d9eed8b65371 | 9d37d7bb0014f5ec9942e370422df6ba0ff81552 | /amazon_transcribe/exceptions.py | b2d6bb864d9af98175f4898aaed421662364a81c | [
"Apache-2.0"
] | permissive | awslabs/amazon-transcribe-streaming-sdk | 79409fe54d500f7c323e454715d61315bd72a873 | 7eae6ca02aad56ce5865910cb9715ac77bc2adeb | refs/heads/develop | 2023-07-09T07:04:00.905852 | 2023-06-15T15:28:34 | 2023-06-15T15:28:34 | 280,005,595 | 104 | 38 | Apache-2.0 | 2023-07-04T01:50:03 | 2020-07-15T23:37:50 | Python | UTF-8 | Python | false | false | 2,267 | py | exceptions.py | # Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... |
b8ac42daa754d848a7308cd911f206256f5f1f49 | 4658aa41017b2e6da830f1e879774e4a7296c314 | /holoviews/plotting/bokeh/chart.py | 6165b17c129bdf94c3b507dcb1a8fe653d53999c | [
"BSD-3-Clause"
] | permissive | holoviz/holoviews | 3f133e572933c94cedad7bae6fb6d071152842fc | e3dee5443dad84b507734c0a3d2bba8ec44f5653 | refs/heads/main | 2023-09-03T05:08:42.682432 | 2023-08-28T20:40:36 | 2023-08-28T20:40:36 | 19,542,768 | 1,223 | 223 | BSD-3-Clause | 2023-09-14T18:15:53 | 2014-05-07T16:59:22 | Python | UTF-8 | Python | false | false | 41,679 | py | chart.py | from collections import defaultdict
import numpy as np
import param
from bokeh.models import (
CategoricalColorMapper, CustomJS, FactorRange, Range1d, Whisker
)
from bokeh.models.tools import BoxSelectTool
from bokeh.transform import jitter
from ...core.data import Dataset
from ...core.dimension import dimension... |
286422451c4bbb809541861cee6fcdcedca50bea | 376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb | /sysutils/openstack_init/files/openstack_init.py | 13c074e2dedd27ea66668f6e05f2fa9fe5cfa3d5 | [] | no_license | NetBSD/pkgsrc | a0732c023519650ef821ab89c23ab6ab59e25bdb | d042034ec4896cc5b47ed6f2e5b8802d9bc5c556 | refs/heads/trunk | 2023-09-01T07:40:12.138283 | 2023-09-01T05:25:19 | 2023-09-01T05:25:19 | 88,439,572 | 321 | 138 | null | 2023-07-12T22:34:14 | 2017-04-16T20:04:15 | null | UTF-8 | Python | false | false | 2,108 | py | openstack_init.py | #!/usr/pkg/bin/python2.7
import json
import base64
import subprocess
import tempfile
import os
import sys
def printf(format, *args):
sys.stdout.write(format % args)
disks = list()
config = dict()
# shut down /dev/stderr
os.close(2)
cmd = "/sbin/sysctl -n hw.disknames"
for disk in subprocess.check_output(cmd.sp... |
fd91ab3145b2f4b283ba23e741d678f97aecc3b0 | fb8d962a803ae1f6c20f80b458efd5ba17560b06 | /magnum/drivers/common/k8s_monitor.py | 45d51500a8ff8442571f4c4f10a6148d84c32a19 | [
"Apache-2.0"
] | permissive | openstack/magnum | 980c2151388b8acc60f3ca2818e41431ffa742f4 | eca79453c0097b0f63019821d3c2e9ecacebf784 | refs/heads/master | 2023-08-20T01:44:51.957778 | 2023-07-21T02:54:23 | 2023-07-25T09:00:40 | 26,314,357 | 345 | 282 | Apache-2.0 | 2022-11-03T11:36:24 | 2014-11-07T10:08:50 | Python | UTF-8 | Python | false | false | 9,102 | py | k8s_monitor.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
# di... |
f78a50b4a0edd18ce7e9444b5873040695e38672 | 7ee8fd072845645a3e4fde4e18a931be4b3bae08 | /mahjong/hand_calculating/yaku_list/shosangen.py | 7a9b3037ad6612f625192f83f9fd1726402c5afb | [
"MIT"
] | permissive | MahjongRepository/mahjong | ca1afa368a8598b2002ed3dd340d2c8f87666056 | a45b761dcdafe7f1398183b016e789bbf99d0288 | refs/heads/master | 2023-08-22T01:40:50.011431 | 2023-08-08T02:15:54 | 2023-08-08T02:15:54 | 104,195,098 | 327 | 45 | MIT | 2023-08-08T00:49:53 | 2017-09-20T09:31:47 | Python | UTF-8 | Python | false | false | 844 | py | shosangen.py | from mahjong.constants import CHUN, HAKU, HATSU
from mahjong.hand_calculating.yaku import Yaku
from mahjong.utils import is_pair, is_pon_or_kan
class Shosangen(Yaku):
"""
Hand with two dragon pon sets and one dragon pair
"""
def __init__(self, yaku_id=None):
super(Shosangen, self).__init__(ya... |
1e5d927f28f2d51462b077d6c5f70f7dc6285246 | 7b7c570b30d6d7a0e9b904c7cb378cfb0d0f0e07 | /examples/gluon/train.py | 1ccf78bf1ab7a11b1ebd6f483f4f8b9599b8702c | [
"Apache-2.0"
] | permissive | mlflow/mlflow | ca97bfbbf32f8e59f454e428f5e46eb3d34d062f | 37298ffafcd34002352d01d579d4524790544267 | refs/heads/master | 2023-09-01T13:15:53.902815 | 2023-09-01T09:00:42 | 2023-09-01T09:00:42 | 136,202,695 | 14,102 | 3,748 | Apache-2.0 | 2023-09-14T21:52:42 | 2018-06-05T16:05:58 | Python | UTF-8 | Python | false | false | 1,969 | py | train.py | from mxnet import gluon, init
from mxnet.gluon import Trainer
from mxnet.gluon.contrib import estimator
from mxnet.gluon.data.vision import datasets, transforms
from mxnet.gluon.loss import SoftmaxCrossEntropyLoss
from mxnet.gluon.nn import Conv2D, Dense, Flatten, HybridSequential, MaxPool2D
from mxnet.metric import Ac... |
bebc955652fa75ddc93a7cd31f3db32f40faa1d1 | 338daf420d0badbd62e560df34ae5f492beea4fa | /utils/utils_fit.py | f0aac7a17910f0e1c3c328864d435c37a2ff8fd0 | [
"MIT"
] | permissive | bubbliiiing/faster-rcnn-pytorch | b0059a918f621bf1fd4d168d0633a7fa1882e2bf | 6cf39bf75d95975210e9b6f94cad691b330fee90 | refs/heads/master | 2023-08-09T19:25:12.464754 | 2023-01-05T15:07:11 | 2023-01-05T15:07:11 | 259,023,310 | 1,300 | 360 | MIT | 2023-07-23T13:30:51 | 2020-04-26T12:20:32 | Python | UTF-8 | Python | false | false | 3,524 | py | utils_fit.py | import os
import torch
from tqdm import tqdm
from utils.utils import get_lr
def fit_one_epoch(model, train_util, loss_history, eval_callback, optimizer, epoch, epoch_step, epoch_step_val, gen, gen_val, Epoch, cuda, fp16, scaler, save_period, save_dir):
total_loss = 0
rpn_loc_loss = 0
rpn_cls_... |
27ca969d3a4f125f78325655dfe041f1c720eaa3 | ac4df7440dcce235ff9b58c0a64674e0136f7953 | /tests/test_datasets.py | 1d2a792a0a38c0adc6950fe98b6fafeb5123b584 | [
"MIT"
] | permissive | neurolib-dev/neurolib | b657c9586e3379ac9232edd0077d13f72b58e636 | bec8fbc5ffa7c3b45a266e21549cf392a6263136 | refs/heads/master | 2023-08-09T07:55:33.454522 | 2023-08-02T13:26:37 | 2023-08-02T13:26:37 | 236,208,651 | 363 | 85 | MIT | 2023-09-11T17:35:25 | 2020-01-25T18:05:36 | Python | UTF-8 | Python | false | false | 831 | py | test_datasets.py | import unittest
from neurolib.utils.loadData import Dataset
class TestDatasets(unittest.TestCase):
def test_dataset_gw(self):
ds = Dataset("gw", fcd=True)
self.assertTupleEqual(ds.Cmat.shape, (80, 80))
self.assertTupleEqual(ds.Dmat.shape, (80, 80))
self.assertTupleEqual(ds.FCs[0].... |
40100feffaa62f843a63fbd2d859a4c4cf131459 | 3be02c135319163df5740164322f96e3fbc336ac | /code/stable/projectile/projectile_c_p_nol_b_u_v_d/src/python/Control.py | b642d1d767e7eef78a9a2af06245682bce6b5e3c | [
"BSD-2-Clause"
] | permissive | JacquesCarette/Drasil | fdbcb231ea5fccf0485f4d22fa0e4b268a6fd14a | 582fc89bb78b53d7ad06a1940894718edb394dce | refs/heads/master | 2023-08-14T19:19:22.982991 | 2023-08-11T20:05:55 | 2023-08-11T20:05:55 | 23,760,783 | 141 | 38 | BSD-2-Clause | 2023-09-13T15:54:36 | 2014-09-07T13:44:04 | Haskell | UTF-8 | Python | false | false | 565 | py | Control.py | ## \file Control.py
# \author Samuel J. Crawford, Brooks MacLachlan, and W. Spencer Smith
# \brief Controls the flow of the program
import sys
import Calculations
import InputParameters
import OutputFormat
filename = sys.argv[1]
g = 9.8
epsilon = 2.0e-2
inParams = InputParameters.InputParameters(filename)
t_flight = ... |
acfcc960760410c0213f169ba22d15b509b4795f | 26c6d869abdc3a797dd3564165ff1744be58794c | /tests/test_basic_get_password.py | fdb0b0da72f59f6d090b167a12e4a30c761dbce1 | [
"MIT"
] | permissive | miguelgrinberg/Flask-HTTPAuth | 8b00a40d3e01fdb4839c30d999649cb17cf8d85d | 36fe7aa6cdce721a01e32c416593f8437c8ac386 | refs/heads/main | 2023-08-14T13:07:17.006849 | 2023-06-23T18:29:28 | 2023-06-23T18:29:28 | 10,136,908 | 1,237 | 267 | MIT | 2023-04-27T09:21:22 | 2013-05-18T05:10:52 | Python | UTF-8 | Python | false | false | 2,280 | py | test_basic_get_password.py | import unittest
import base64
from flask import Flask
from flask_httpauth import HTTPBasicAuth
class HTTPAuthTestCase(unittest.TestCase):
def setUp(self):
app = Flask(__name__)
app.config['SECRET_KEY'] = 'my secret'
basic_auth = HTTPBasicAuth()
@basic_auth.get_password
de... |
a118c7bb96c135951a51af4eccc9ab44e087cdf0 | 2d05050d0ada29f7680b4df20c10bb85b0530e45 | /tests/python/contrib/test_ethosu/test_identity_optimizer.py | 3ae58dfc81bade44b891f3e669fd7ee716caa138 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | apache/tvm | 87cb617f9a131fa44e1693303aaddf70e7a4c403 | d75083cd97ede706338ab413dbc964009456d01b | refs/heads/main | 2023-09-04T11:24:26.263032 | 2023-09-04T07:26:00 | 2023-09-04T07:26:00 | 70,746,484 | 4,575 | 1,903 | Apache-2.0 | 2023-09-14T19:06:33 | 2016-10-12T22:20:28 | Python | UTF-8 | Python | false | false | 13,935 | py | test_identity_optimizer.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
bc78b17da06847c52b8c63a2f5f5d39f4f27ebde | 6b7a9baea95dd80d0bf4a39e9bb1e994ed9bc106 | /tests/integration/test_gps.py | 6a97fbf75255becc4e85be5ff3a649dc960b4b2c | [
"MIT"
] | permissive | ronikobrosly/causal-curve | ab2f6d97981cb24e3d20c8fb4484fe60973be626 | a06fd687a5f746d1cdc5cdef18a65e73230a57d3 | refs/heads/main | 2023-04-06T17:48:44.958181 | 2022-04-20T13:03:10 | 2022-04-20T13:03:10 | 256,017,107 | 264 | 18 | MIT | 2021-04-25T23:58:09 | 2020-04-15T19:30:24 | Python | UTF-8 | Python | false | false | 1,770 | py | test_gps.py | """ Integration tests of the gps.py module """
import pandas as pd
from causal_curve import GPS_Regressor, GPS_Classifier
def test_full_continuous_gps_flow(continuous_dataset_fixture):
"""
Tests the full flow of the GPS tool when used with a continuous outcome
"""
gps = GPS_Regressor(
treat... |
0de5e0c419cf3396de8b98dbe79f382d95ad2d36 | 4d6935a26f211987f54b980fe174971e4a1366e8 | /ddparser/parser/nets/char_lstm.py | 660a87d54e92e394881cc65c4a50debb31afb62d | [
"MIT",
"Apache-2.0"
] | permissive | baidu/DDParser | 17e6d7c653172a93a30caa5aa52c01264067d41a | 144c09bd058cea53810a45789812aa50aa0f711c | refs/heads/master | 2023-08-29T00:02:21.543273 | 2023-02-05T03:05:09 | 2023-02-05T03:05:57 | 284,605,403 | 946 | 165 | Apache-2.0 | 2022-10-29T16:12:08 | 2020-08-03T04:45:58 | Python | UTF-8 | Python | false | false | 2,169 | py | char_lstm.py | # -*- coding: UTF-8 -*-
################################################################################
#
# Copyright (c) 2020 Baidu, 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... |
c6a7ce660f82730608c6088a8d7b79be21a34a41 | 39e876fe7f39b8b657db9d52a9958d76d398f416 | /overtrain.py | 8c48f8e0b4c41b3383951f2a8bd101330762037a | [
"MIT"
] | permissive | jhetherly/EnglishSpeechUpsampler | 3ee1ece219452a0a51158b0e7d60bcdd037f377e | 1265fa3ec68fa1e662b5d7f9c61ca730f9beee99 | refs/heads/master | 2020-05-20T18:58:08.737438 | 2017-04-30T07:08:54 | 2017-04-30T07:08:54 | 84,509,464 | 192 | 37 | null | null | null | null | UTF-8 | Python | false | false | 6,140 | py | overtrain.py | import numpy as np
import json
import librosa
from inputs import get_bit_rates_and_waveforms
from inputs import randomly_batch, next_batch
from inputs import read_file_pair, gather_all_files_by_tags
import tensorflow as tf
from models import deep_residual_network
from losses import mse
from optimizers import make_varia... |
14745da604a37d322fbbe3ca83034ea382d128a4 | 8cad6b10abb58efce2598ca9d3dfb6436ccb10d1 | /project_setup/scripts/ssm-param | f2653bda94ce419cbdac451e563d658eaf2aad42 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | cisagov/development-guide | fc7543cf89fdfdae9a997e4ddfbda255031c6bd8 | 84ebd4130d6630e85379bf2e24b09f69030edeb6 | refs/heads/develop | 2023-07-11T08:43:39.386788 | 2023-06-30T20:12:53 | 2023-06-30T20:12:53 | 192,416,330 | 174 | 46 | CC0-1.0 | 2023-09-13T01:35:09 | 2019-06-17T20:45:25 | Python | UTF-8 | Python | false | false | 4,115 | ssm-param | #!/usr/bin/env python
"""Manage SSM parameters across multiple regions.
The cp command can copy multiple files to a parameter path. Specify each file
followed by parameter that ends in a /.
Usage:
ssm-param cp [--log-level=LEVEL] [--overwrite] <file_or_param> <file_or_param>...
ssm-param rm <parameter_name>...
... | |
a9051ea7a6519d1502565ed3e69baeab21445e29 | bb6ce2f4fc53dc9d2fc7a701cd4683b23ecf30b2 | /tests/py/test_email.py | 75abc0589876a198f4242bd131a48cfc8a957555 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | liberapay/liberapay.com | 2640b9f830efaadd17009e3aed72eadd19c0f94e | a02eea631f89b17ac8179bdd37e5fa89ac54ede8 | refs/heads/master | 2023-08-31T10:44:04.235477 | 2023-08-27T07:29:47 | 2023-08-27T07:29:47 | 36,075,352 | 1,586 | 282 | null | 2023-09-03T09:23:26 | 2015-05-22T14:03:52 | Python | UTF-8 | Python | false | false | 27,416 | py | test_email.py | from datetime import timedelta
import json
from unittest.mock import MagicMock, patch
from liberapay.exceptions import (
BadEmailAddress, CannotRemovePrimaryEmail,
EmailAddressIsBlacklisted, EmailAlreadyTaken,
EmailDomainIsBlacklisted, EmailDomainUnresolvable, EmailNotVerified,
InvalidEmailDomain, NonE... |
b0782e6ebae305e39adeb759354660005c3255de | 089d4e17a12a9c39cb7028da2439b2634056fdb0 | /iroha/primitive_pb2.py | 7428365ad3b1d10b2c30acac97abca15622b4c80 | [
"Apache-2.0"
] | permissive | hyperledger/iroha-python | ece234799c199ab467bc817c57374b94efdf271a | ef5b23b9ea91f8b2bbc1008408187a34cecbb32e | refs/heads/main | 2023-09-01T00:32:47.484633 | 2023-05-02T12:10:36 | 2023-05-02T12:23:23 | 83,542,442 | 117 | 91 | Apache-2.0 | 2023-08-28T19:59:49 | 2017-03-01T10:29:10 | Python | UTF-8 | Python | false | true | 28,038 | py | primitive_pb2.py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: primitive.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as ... |
b21cbfc7191ce890e04b59a8edb75c349486efa1 | 6ff084d17f22cf3abc4f2cc3d881f4b8218e1c51 | /social_core/backends/pixelpin.py | b12af069bbfc9f73a5e38e15b42876dd15911768 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | python-social-auth/social-core | d21f72de07aec69a7f89bb17b61dec775d9e3967 | cf95380a177e9b8d1f3b4da03543fb2f0d248bf3 | refs/heads/master | 2023-08-24T19:48:00.840340 | 2023-08-01T00:59:35 | 2023-08-01T04:10:00 | 66,776,276 | 831 | 660 | BSD-3-Clause | 2023-09-14T18:41:40 | 2016-08-28T15:37:58 | Python | UTF-8 | Python | false | false | 1,256 | py | pixelpin.py | from .open_id_connect import OpenIdConnectAuth
class PixelPinOpenIDConnect(OpenIdConnectAuth):
"""PixelPin OpenID Connect authentication backend"""
name = "pixelpin-openidconnect"
ID_KEY = "sub"
AUTHORIZATION_URL = "https://login.pixelpin.io/connect/authorize"
ACCESS_TOKEN_URL = "https://login.pi... |
a23ad230f56fe9e97c69258391b584741b17648c | 8ce4f36e0d1ea49ca21c648f660eb6cc7839e565 | /mxfusion/components/distributions/wishart.py | 1f1ef575a4aad73792fe9e26df962755be5395b9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | amzn/MXFusion | 9f76783609303b555148be0dd7c5c48550e2b497 | af6223e9636b055d029d136dd7ae023b210b4560 | refs/heads/master | 2023-04-13T18:35:57.454425 | 2019-05-30T06:43:07 | 2019-05-30T06:43:07 | 143,047,851 | 109 | 38 | Apache-2.0 | 2023-04-10T09:52:55 | 2018-07-31T17:47:44 | Python | UTF-8 | Python | false | false | 8,232 | py | wishart.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in th... |
821bcd64bb107d364c37ddc33a87fde2b8da91e9 | fa89ef4a8eb06dc2015d7116637f230b6891eb8d | /refinery/units/crypto/cipher/rc6.py | 8830301a970f2ad08e0fce24c4e4f83659a76c51 | [
"BSD-3-Clause"
] | permissive | binref/refinery | f61878d9fddf616fee8edf226df22f6a35238940 | 4c7c3717ae45543b9d7bae60a4af4c00993cf719 | refs/heads/master | 2023-08-17T17:02:34.357138 | 2023-08-14T08:43:05 | 2023-08-14T08:43:05 | 228,019,736 | 439 | 48 | NOASSERTION | 2023-09-11T10:26:02 | 2019-12-14T12:32:06 | Python | UTF-8 | Python | false | false | 4,286 | py | rc6.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import List, Optional
from math import log2
from refinery.units.crypto.cipher import StandardBlockCipherUnit, Arg
from refinery.units.crypto.cipher.rc5 import rc5constants
from refinery.lib import chunks
from refinery.lib.crypto import (
rotr,
rotl,
... |
14c07817ab827b1a498f543e90f9acda9ea974d0 | 689a78e08c957abc02ea5f89fb657b1f78f88b6e | /det3d/datasets/builder.py | 9405d9f071c4a75cac46afb542c645c0799a0740 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tianweiy/CenterPoint | 2bb9a7def8d4bf87b66af2e3b671736eae6fa275 | d3a248fa56db2601860d576d5934d00fee9916eb | refs/heads/master | 2023-08-30T23:11:49.528882 | 2022-10-24T13:09:52 | 2022-10-24T13:09:52 | 274,006,091 | 1,692 | 476 | MIT | 2023-05-06T10:30:06 | 2020-06-22T00:32:05 | Python | UTF-8 | Python | false | false | 1,471 | py | builder.py | import copy
from det3d.utils import build_from_cfg
from .dataset_wrappers import ConcatDataset, RepeatDataset
from .registry import DATASETS
def _concat_dataset(cfg, default_args=None):
ann_files = cfg["ann_file"]
img_prefixes = cfg.get("img_prefix", None)
seg_prefixes = cfg.get("seg_prefixes", None)
... |
3f290a9354f0679d566af24505bf6879ecac4c12 | 8246092010e656920e7199f889f9cbf54b83a729 | /tests/grs/grs_block_test.py | b36cbd1206b2816bed593dbc55c8135a8d282c2a | [
"MIT"
] | permissive | richardkiss/pycoin | 5717411a11445773ac922c1d1c1b7dbe4835cd77 | b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0 | refs/heads/main | 2023-08-07T12:14:04.974934 | 2023-04-18T02:27:15 | 2023-04-18T02:27:15 | 10,917,677 | 1,306 | 489 | MIT | 2023-06-03T23:24:50 | 2013-06-24T19:17:52 | Python | UTF-8 | Python | false | false | 3,386 | py | grs_block_test.py | import io
import pytest
import unittest
from pycoin.encoding.hexbytes import h2b
from pycoin.symbols.grs import network as GroestlcoinMainnet
pytest.importorskip('groestlcoin_hash')
# Block 2000000
BLOCK_HASH = '00000000000434d5b8d1c3308df7b6e3fd773657dfb28f5dd2f70854ef94cc66'
class GroestlcoinBlockTestCase(unitt... |
a61147498f7d1430b377d5040a2f0340181eb931 | a02ccb5dff094fad8bcd691dda234d50ff768299 | /tools/Polygraphy/examples/dev/02_extending_polygraphy_run/extension_module/polygraphy_reshape_destroyer/backend/runner.py | b5c2ed7565872f2d281516c3d0b7a9168f08824f | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"ISC",
"BSD-2-Clause"
] | permissive | NVIDIA/TensorRT | 5520d5a6a5926a2b30dbdd2c5b2e4dfe6d1b429b | a167852705d74bcc619d8fad0af4b9e4d84472fc | refs/heads/release/8.6 | 2023-07-29T05:39:45.688091 | 2023-06-09T22:29:09 | 2023-06-09T23:04:18 | 184,657,328 | 8,026 | 2,096 | Apache-2.0 | 2023-09-13T17:30:16 | 2019-05-02T22:02:08 | C++ | UTF-8 | Python | false | false | 4,979 | py | runner.py | #
# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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... |
e18a6be22e8956b820c467af6a0206b74e57c102 | bded2c71dfcd377c2fa562a8b3e3c44a6b1f9ba0 | /removestar/__main__.py | c9d93e7dc0b3b0f79411d6fb976a37e17f708e55 | [
"MIT"
] | permissive | asmeurer/removestar | 8bbdb3232658112e85879c6d806ee89a3d46b321 | de4e11b2f06d8fa6703935417d6086c0a0bc7a58 | refs/heads/master | 2023-04-13T04:50:45.733058 | 2023-03-16T22:39:30 | 2023-03-16T22:39:30 | 197,666,949 | 158 | 11 | MIT | 2023-09-09T07:04:48 | 2019-07-18T22:54:43 | Python | UTF-8 | Python | false | false | 3,687 | py | __main__.py | #!/usr/bin/env python
"""
Tool to automatically replace "import *" imports with explicit imports
Requires pyflakes.
Usage:
$ removestar file.py # Shows diff but does not edit file.py
$ removestar -i file.py # Edits file.py in-place
$ removestar -i module/ # Modifies every Python file in module/ recursively
"""
fr... |
5615d6e6875597223f325a7d410bb7201c5a17e4 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /kosmos-2/fairseq/fairseq/options.py | 41e15a0a24ce7efb0fcba542830698c9db27995a | [
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 16,118 | py | options.py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
from pathlib import Path
from typing import Callable, List, Optional, Union
import torch
from fairseq import utils
from fairs... |
3e250984ee6d2d248d544bc07f90eac4c7c7c8fe | b1d552c085bd7cfdd5665a32b80a10e7d3a0efef | /graphene_sqlalchemy/fields.py | 6dbc134ff63836639caee661a190bf165de0f36f | [
"MIT"
] | permissive | graphql-python/graphene-sqlalchemy | ff5f98c9151d1a7d4f4bf50ee180a80b957659b0 | d0668cc82dfd349aa418dd6fc16d54e80162960a | refs/heads/master | 2023-08-09T23:01:29.913344 | 2023-05-14T19:49:03 | 2023-05-14T19:49:03 | 68,488,677 | 1,022 | 285 | MIT | 2023-07-28T11:37:52 | 2016-09-18T01:50:59 | Python | UTF-8 | Python | false | false | 9,898 | py | fields.py | import enum
import warnings
from functools import partial
from promise import Promise, is_thenable
from sqlalchemy.orm.query import Query
from graphene import NonNull
from graphene.relay import Connection, ConnectionField
from graphene.relay.connection import connection_adapter, page_info_adapter
from graphql_relay i... |
df7addc08f6ffe72c3075998fce36eee554b6a77 | dcd772f567ef8a8a1173a9f437cd68f211fb9362 | /tests/cluster_tests/FirstP/pbsdsh_custom/pbsdsh_mode.py | 6d977d0561ab9648049954961306cc1ceb5aefcb | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | idaholab/raven | 39cdce98ad916c638399232cdc01a9be00e200a2 | 2b16e7aa3325fe84cab2477947a951414c635381 | refs/heads/devel | 2023-08-31T08:40:16.653099 | 2023-08-29T16:21:51 | 2023-08-29T16:21:51 | 85,989,537 | 201 | 126 | Apache-2.0 | 2023-09-13T21:55:43 | 2017-03-23T19:29:27 | C++ | UTF-8 | Python | false | false | 4,816 | py | pbsdsh_mode.py | # Copyright 2017 Battelle Energy Alliance, 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 t... |
799d5d550c38cf8055c98e4fcedab3cdf9aca177 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/tensorflow/contrib/factorization/python/ops/kmeans.py | bfe338c9f9a7b761cfcd627b92f1682af97630c9 | [
"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 | 20,353 | py | kmeans.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... |
b6a700cb983a09e58b7aceffd31a71570ff35482 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /base/tracing/test/trace_processor/diff_tests/chrome/scroll_jank_gpu_check.py | f73a202efa4b0d72e4cc925cabc1cdcba6c05888 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 1,055 | py | scroll_jank_gpu_check.py | # Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Discarded events that do not get to GPU are invisible for UMA metric and
# therefore should be excluded in trace-based metric. This tests ensures that's
# the case.
from os imp... |
850ee270814839a0475ffa5d44994ffa3718a9b6 | e3ed3f09396bbce16a5ec571ea0ec26a4193ad2e | /artemis/plotting/test_fast.py | 8d6ac95b9d592df32c721ad88dd579c60eaf91c6 | [
"BSD-2-Clause-Views"
] | permissive | QUVA-Lab/artemis | ea8a3e05f6bf1249b5a027e3a06fe1dbbde271d4 | 84d3b1daf0de363cc823d99f978e2861ed400b5b | refs/heads/master | 2023-01-29T01:57:00.504531 | 2018-10-02T16:32:10 | 2018-10-02T16:32:10 | 57,375,178 | 241 | 33 | NOASSERTION | 2019-04-17T04:25:08 | 2016-04-29T09:58:50 | Python | UTF-8 | Python | false | false | 1,020 | py | test_fast.py | import pytest
from artemis.general.test_mode import set_test_mode
from artemis.plotting.fast import find_interval_extremes, fastplot, fastloglog
import matplotlib.pyplot as plt
import numpy as np
__author__ = 'peter'
@pytest.mark.skipif(True, reason='scipy.weave, which is required, does not reliablly install.')
def t... |
7d9bb077542d04172eee6086c1e33ded12c93813 | 6fe5c42adc0d55a9f792c5627a2da79be7910444 | /tests/unit/test_hide_utils.py | 6f03b1efad0cda5dd931ddb43a3c73db072e46fc | [
"MIT"
] | permissive | scanapi/scanapi | 31570a51b4ee8c5c40887073e4d8f221bbfa6299 | 1e419f29364585123cb1bc14c2d7ebd2c9b117b7 | refs/heads/main | 2023-09-03T13:12:47.521987 | 2023-07-24T09:01:22 | 2023-07-24T09:01:22 | 197,915,529 | 1,330 | 95 | MIT | 2023-09-11T03:44:07 | 2019-07-20T10:31:47 | Python | UTF-8 | Python | false | false | 5,992 | py | test_hide_utils.py | import requests
from pytest import fixture, mark
from scanapi.hide_utils import _hide, _override_info, hide_sensitive_info
@fixture
def response(requests_mock):
requests_mock.get("http://test.com", text="data")
return requests.get("http://test.com")
@mark.describe("hide utils")
@mark.describe("hide_sensiti... |
85fcbe3ab31add05a18e595ea40a595b68633ce6 | 05fe579c12f0013ce83a106083ddb66ace5e8f47 | /mindinsight/utils/command.py | 8e74c849547e837d1d43dfaf3c35605969ac01a0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | mindspore-ai/mindinsight | 59d3f47144ada9a12d2c82d9826ad5f5288aed78 | a774d893fb2f21dbc3edb5cd89f9e6eec274ebf1 | refs/heads/master | 2023-07-22T22:46:43.075617 | 2023-07-17T11:26:58 | 2023-07-17T11:26:58 | 250,692,948 | 224 | 24 | Apache-2.0 | 2020-12-29T12:22:51 | 2020-03-28T01:58:56 | Python | UTF-8 | Python | false | false | 4,255 | py | command.py | # Copyright 2020 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... |
45ae734e8dc3dbea2f03f2cd7ad507b97944da86 | 748626778e870ce6cdfd0c1f3b46d7f8a096b5a8 | /src/condor_tests/ornithology/io.py | 2b0823806306e95de80b37510219b6b55f6cacc5 | [
"Apache-2.0"
] | permissive | htcondor/htcondor | 1c8bab33379299f64e5274a7d525f3c64c64c47f | 3b67625b2f4d97bcc28f534340a6fd7ac518dc75 | refs/heads/main | 2023-08-31T03:17:53.070364 | 2023-08-31T00:18:04 | 2023-08-31T00:18:04 | 5,808,515 | 249 | 165 | Apache-2.0 | 2023-09-14T18:44:26 | 2012-09-14T11:35:15 | C++ | UTF-8 | Python | false | false | 1,484 | py | io.py | # Copyright 2019 HTCondor Team, Computer Sciences Department,
# University of Wisconsin-Madison, WI.
#
# 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/LICE... |
853efa675e5e54ced60886c3cc5a8a09cb72704d | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/pullup/instanceNotDeclaredInInit.after.py | 812bd9ce6364e5c41d1b2a1c1b4dc11ac49605c4 | [
"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 | 132 | py | instanceNotDeclaredInInit.after.py | class Parent(object):
def __init__(self):
self.foo = 12
class Child(Parent):
def foo(self):
self.foo = 12
|
7063bf7717f56a49d61d46a4a40d1a1524e3bbdd | d7fd46dfd8aab520c4958fa065367e168b6bfee7 | /compiler_gym/envs/gcc/datasets/chstone.py | 26c2756af838ca65006fa00072fa97d71d1da2e8 | [
"MIT"
] | permissive | facebookresearch/CompilerGym | f04a79fbfdbaf8afd6920ec205db6f1b6003d073 | 9e0c0beb12da1e1ea82ae6ce920713ee28dda4c9 | refs/heads/development | 2023-08-31T09:17:48.967970 | 2023-03-10T19:29:56 | 2023-03-10T19:29:56 | 312,059,069 | 787 | 126 | MIT | 2023-03-10T19:29:58 | 2020-11-11T18:44:35 | Python | UTF-8 | Python | false | false | 4,655 | py | chstone.py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
from pathlib import Path
from typing import Iterable
from compiler_gym.datasets import Benchmark, TarDatasetWithManifest
from compil... |
d26e64424d5b556ac3e7c289c80e76518669f280 | d51f530078404a24f1844b53b037bbfed238a784 | /python/example_code/aurora/test/test_get_started_aurora_integ.py | b2a550129ea7fa7deaa72a3f00d0e3d0ef5fbb66 | [
"Apache-2.0",
"MIT"
] | permissive | awsdocs/aws-doc-sdk-examples | fff85d1b4119fe3331174396a5723c7f054203eb | dec41fb589043ac9d8667aac36fb88a53c3abe50 | refs/heads/main | 2023-09-03T19:50:57.809260 | 2023-09-01T16:23:01 | 2023-09-01T16:23:01 | 66,023,605 | 8,240 | 6,037 | Apache-2.0 | 2023-09-14T16:52:02 | 2016-08-18T19:06:57 | Java | UTF-8 | Python | false | false | 844 | py | test_get_started_aurora_integ.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import time
import pytest
from aurora_wrapper import AuroraWrapper
import scenario_get_started_aurora
@pytest.fixture(autouse=True)
def mock_wait(monkeypatch):
monkeypatch.setattr(scenario_get_started_auro... |
1f597a792fc7b809650fe67a42b216ad16b250fb | 9dfa5b8c9448d748a611d7a908b7724bc2160953 | /packages/cardpay-reward-programs/cardpay_reward_programs/payment_tree.py | 5c20a957ae249f5b9d07b1e701b5207125618219 | [
"MIT"
] | permissive | cardstack/cardstack | 8bb5085e3299ce63ab5cf99c0b24511007526fc8 | 3f0e957ebf4b9caafbd2a9b89944c7d201406a3d | refs/heads/main | 2023-08-24T10:42:20.382920 | 2023-08-18T11:01:25 | 2023-08-18T11:01:25 | 79,036,909 | 364 | 64 | MIT | 2023-09-07T08:23:29 | 2017-01-15T14:15:10 | TypeScript | UTF-8 | Python | false | false | 5,256 | py | payment_tree.py | import json
from collections import defaultdict
from typing import Any, List, Mapping, TypedDict, Union
import pyarrow as pa
import pydash as py_
import sha3
from eth_abi import decode_abi, encode_abi
from eth_typing import ChecksumAddress
from eth_utils import add_0x_prefix
from merklelib import MerkleTree, beautify
... |
3f7bc173612225d1a46598e9d00f4217e979ecb7 | b04c5ad9a8019f2b936ce933293402c98eb25ba7 | /src/ontogpt/engines/generic_engine.py | bc2d0ea564407dadb805b4fc8fd1ab0fa689fa91 | [
"BSD-3-Clause"
] | permissive | monarch-initiative/ontogpt | ede671ced22e8b00d2f33bbe09a3595ed04e508c | 4849f4ce7c54f0394c263fdcad832f7a9eabd52b | refs/heads/main | 2023-08-31T07:20:06.912334 | 2023-08-25T21:20:17 | 2023-08-25T21:20:17 | 584,843,480 | 322 | 43 | BSD-3-Clause | 2023-09-14T20:06:46 | 2023-01-03T16:53:25 | Jupyter Notebook | UTF-8 | Python | false | false | 2,301 | py | generic_engine.py | """Synonym engine."""
import logging
from copy import deepcopy
from dataclasses import dataclass
from pathlib import Path
from typing import Iterator, List
from jinja2 import Template
from pydantic.v1 import BaseModel
from ontogpt.engines.knowledge_engine import KnowledgeEngine
from ontogpt.prompts.qa import GENERIC_... |
813d56a83d8324e5c0d1ab1326261dfd7f80e517 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/ir/self_params_transformer.py | 719bbeaee6882cee474f92d66711821cd52fe369 | [
"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,294 | py | self_params_transformer.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... |
ca06bb7817b0a7ed9a65450fd30d89578668962c | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-Quartz/Examples/PathDemo/PathDemoController.py | 808565cafa1c327f7af971671d6b9f6823bb0d89 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 798 | py | PathDemoController.py | import Cocoa
import objc
class PathDemoController(Cocoa.NSObject):
button = objc.ivar()
popup = objc.ivar()
window = objc.ivar()
demoView = objc.ivar()
def awakeFromNib(self):
# Add the title of your new demo to the END of this array.
titles = ["Rectangles", "Circles", "Bezier P... |
bb27000f1d1957a218e272abe5b6be053c4d49c1 | 1c82ebd0cf02a80b97c3d2200505ed470360619c | /dask_image/ndfilters/_generic.py | 829359529841ee0b7647b5d694709c97ec4f0cc8 | [
"BSD-3-Clause"
] | permissive | dask/dask-image | 4f248391852a1474c937ee5332d72adea227fc5b | 86b56a7726ced371a0a52faaf24e66fb68ca95f0 | refs/heads/main | 2023-08-08T12:13:09.645375 | 2023-08-08T00:21:46 | 2023-08-08T00:21:46 | 123,603,345 | 178 | 44 | BSD-3-Clause | 2023-09-11T02:38:25 | 2018-03-02T16:30:58 | Python | UTF-8 | Python | false | false | 1,416 | py | _generic.py | # -*- coding: utf-8 -*-
import numpy as np
import scipy.ndimage
from ..dispatch._dispatch_ndfilters import dispatch_generic_filter
from . import _utils
__all__ = [
"generic_filter",
]
@_utils._update_wrapper(scipy.ndimage.generic_filter)
def generic_filter(image,
function,
... |
0fa3f11321a8ce832f1e41f950b8b7850f7af5eb | 88a39b8ec20b386400bd8b1d5fc1d5ad3314681d | /codalab/worker/worker_monitoring.py | 8e9df8a93e7082db0821dbc40c6487dce6f866bd | [
"Apache-2.0"
] | permissive | codalab/codalab-worksheets | bb35681454a0d74903aaa7468e17303986793464 | 5be8cb3fa4b43c9e7e8f0a3b217644a7f0a39628 | refs/heads/master | 2023-08-18T10:16:01.766541 | 2023-08-06T20:02:30 | 2023-08-06T20:02:30 | 27,352,490 | 126 | 65 | NOASSERTION | 2023-09-14T14:54:07 | 2014-11-30T22:33:18 | Python | UTF-8 | Python | false | false | 3,823 | py | worker_monitoring.py | import logging
import os
from typing import Dict, Optional
import sentry_sdk
from sentry_sdk.profiler import start_profiling # type: ignore
from .worker_run_state import RunState
logger = logging.getLogger(__name__)
transaction_sample_rate = float(os.getenv('CODALAB_SENTRY_TRANSACTION_RATE') or 0)
profiles_sample_... |
3c4ed0b024753f3e7bf5b3b6eaf4817499c47a63 | e3cdfae1dd874479c928dad193b33a4e3b8a623e | /scripts/cvtstrings.py | 8e99761ae63707e06575692b0b8cbe35a49ef2f1 | [] | no_license | FireEmblemUniverse/fireemblem8u | 11493bf94844617b33254110ba006316defb3510 | b9ad9bcafd9d4ecb7fc13cc77a464e2a82ac8338 | refs/heads/master | 2023-09-05T23:39:53.791339 | 2023-09-04T17:31:47 | 2023-09-04T17:31:47 | 121,802,075 | 118 | 31 | null | 2023-09-11T13:08:37 | 2018-02-16T21:21:50 | Assembly | UTF-8 | Python | false | false | 2,228 | py | cvtstrings.py | import sys, re
from datetime import date
def read_sjis_string(f):
array = bytearray(b'')
while True:
byte = f.read(1)[0]
if byte == 0:
break
array.append(byte)
return array
def parse_string_locations(f):
names = {}
overwrites = {}
for line in f.readline... |
ed8529faadb4ef03b9bdb6ea1da0b3b9af81a9e1 | ebb7e495edc73921094cb50a52fee944067a23c7 | /nose2/plugins/doctests.py | 75fabfb89fa4cb9bee200cda90fb2955c2e32b78 | [
"BSD-2-Clause"
] | permissive | nose-devs/nose2 | 0685e19374916f294c11ebdc5df10856b2b0ac48 | 6f41b29a7328793c21e2155aa1149fd7e325844f | refs/heads/main | 2023-08-25T02:29:47.145785 | 2023-05-22T18:16:01 | 2023-05-22T18:16:01 | 2,980,827 | 727 | 135 | NOASSERTION | 2023-09-11T18:28:38 | 2011-12-14T15:33:15 | Python | UTF-8 | Python | false | false | 1,579 | py | doctests.py | """
Load tests from doctests.
This plugin implements :func:`handleFile` to load doctests from text files
and python modules.
To disable loading doctests from text files, configure an empty extensions list:
.. code-block :: ini
[doctest]
extensions =
"""
import doctest
import os
from nose2 import util
from nos... |
d3893f8ad9515385654609364bc41d74fb40877d | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /tools/usb_gadget/msos20_descriptors.py | 39d4d2acb83c6552955ea18794cab00bda33a3b0 | [
"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 | 3,385 | py | msos20_descriptors.py | # Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Microsoft OS 2.0 Descriptor generation utilities.
Classes to help generate Microsoft OS 2.0 descriptors.
Based on documentation here:
https://msdn.microsoft.com/en-us/library... |
61efd18c1e1e6aa9d52d0d428490de73843201eb | 7d232f51e2330a4f537c50ede9c6bc023d656fd4 | /test/cpp/naming/resolver_component_tests_runner.py | f6a32a646c4c752cfccb2cd2412643451119d539 | [
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0"
] | permissive | grpc/grpc | 6975af3ba6f07a6fe965b875a0c09abf18999a52 | e4d598ab64aa54f1da78c6ed6133b741742d11d4 | refs/heads/master | 2023-08-31T01:10:22.666618 | 2023-08-30T22:35:17 | 2023-08-30T22:35:17 | 27,729,880 | 42,330 | 13,022 | Apache-2.0 | 2023-09-14T21:54:19 | 2014-12-08T18:58:53 | C++ | UTF-8 | Python | false | false | 31,591 | py | resolver_component_tests_runner.py | #!/usr/bin/env python3
# Copyright 2015 gRPC 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.