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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65f19364567ad1b3f441f85e6cba2b993cf71d25 | 9803232b04daa00eb4038be338b833907fd1625f | /blender_bindings/material_loader/shaders/source2_shaders/sky.py | d4ba8d8297c1dad708e42d8f3ccbb32cb909fa45 | [
"MIT"
] | permissive | REDxEYE/SourceIO | a0ff3cff37504afdb906e4ee20c1077a8daf2912 | 85661fe057cef1ad2a779a9d48e810ea214f4f07 | refs/heads/master | 2023-08-08T18:35:28.771447 | 2023-08-07T22:26:59 | 2023-08-07T22:26:59 | 170,197,673 | 409 | 53 | MIT | 2023-08-23T18:40:38 | 2019-02-11T20:33:55 | Python | UTF-8 | Python | false | false | 3,661 | py | sky.py | from pathlib import Path
import bpy
import numpy as np
from .....library.shared.content_providers.content_manager import \
ContentManager
from .....library.source2 import CompiledTextureResource
from .....library.source2.data_types.blocks.texture_data import VTexFormat
from .....library.utils.thirdparty.equilib.c... |
7f8ae6042590c28a0e6eebfddf708a77cd4fb890 | b1acd84bdd4cfb952081080bf6cfdf1dfdaadfbb | /tests/test_onnxfx.py | 23eb92c538a55b034af17a3dbd936ab93a0969cb | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | microsoft/onnxconverter-common | b5b03bccae1c6c40cdcfd8d2e9b18db7e3f0d61b | 8d2f85f0a7039a0b0defd6c7509cb905914a4d2f | refs/heads/master | 2023-08-31T14:19:50.159510 | 2023-08-22T04:06:15 | 2023-08-22T04:06:15 | 181,770,857 | 182 | 59 | MIT | 2023-08-22T04:23:04 | 2019-04-16T21:35:19 | Python | UTF-8 | Python | false | false | 3,333 | py | test_onnxfx.py | import unittest
import numpy as np
import onnxruntime as _ort
import packaging.version as pv
from onnxconverter_common.onnx_fx import Graph, OnnxOperatorBuilderX
from onnxconverter_common.onnx_fx import GraphFunctionType as _Ty
from onnxconverter_common.onnx_ex import get_maximum_opset_supported
from onnxconverter_comm... |
37fc88659d001aad4ef61194e434291406a22f86 | 6ffd23679939f59f0a09c9507a126ba056b239d7 | /imperative/python/megengine/data/dataset/__init__.py | ea80e8be3c80a105597c66b604d72ec847fdd39d | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | MegEngine/MegEngine | 74c1c9b6022c858962caf7f27e6f65220739999f | 66b79160d35b2710c00befede0c3fd729109e474 | refs/heads/master | 2023-08-23T20:01:32.476848 | 2023-08-01T07:12:01 | 2023-08-11T06:04:12 | 248,175,118 | 5,697 | 585 | Apache-2.0 | 2023-07-19T05:11:07 | 2020-03-18T08:21:58 | C++ | UTF-8 | Python | false | false | 124 | py | __init__.py | # -*- coding: utf-8 -*-
from .meta_dataset import ArrayDataset, ConcatDataset, Dataset, StreamDataset
from .vision import *
|
fb092d0af95dd53c7a3e61a63392c6b7467bc35c | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py | 2e12b0eb1ee8b491cb6fd3906c9cf5637b60055c | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | Python | false | false | 6,645 | py | mnist_train.py | # Copyright 2020 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... |
07985c28a5330514f5c73b1b089c7fcd460ee56a | 7d571b303508d302bf22e4fba3e19044af309fb8 | /batchflow/models/torch/blocks/transformer_blocks.py | 04b92965a58d45b784a5cd24fbd0bedc3293d438 | [
"Apache-2.0"
] | permissive | analysiscenter/batchflow | 0a62943836ff41c24274118c410af763750b490b | bcc2c723976cb5780d7b2876f2c2df74c186d343 | refs/heads/master | 2023-09-01T08:29:06.906776 | 2023-08-23T14:11:03 | 2023-08-23T14:11:03 | 84,835,419 | 110 | 42 | Apache-2.0 | 2023-09-08T10:25:34 | 2017-03-13T14:22:53 | Python | UTF-8 | Python | false | false | 3,035 | py | transformer_blocks.py | """ Transformer blocks from various NN architectures. """
from .core import Block
from ..utils import get_num_channels
class SegFormerBlock(Block):
""" SegFormer block: semantic segmentation block, based on transformer architectures.
Essentially, a sequence of efficient self attention and MLP block.
Enze... |
736a6fda0492c215ce582cc56496f4b01f347dd4 | f0b741f24ccf8bfe9bd1950425d83b6291d21b10 | /sdk/python/kfp/deprecated/cli/experiment.py | 543f66c584fdc6106e50cc7312fda41f4c76ddee | [
"Apache-2.0"
] | permissive | kubeflow/pipelines | e678342b8a325559dec0a6e1e484c525fdcc8ce8 | 3fb199658f68e7debf4906d9ce32a9a307e39243 | refs/heads/master | 2023-09-04T11:54:56.449867 | 2023-09-01T19:07:33 | 2023-09-01T19:12:27 | 133,100,880 | 3,434 | 1,675 | Apache-2.0 | 2023-09-14T20:19:06 | 2018-05-12T00:31:47 | Python | UTF-8 | Python | false | false | 4,548 | py | experiment.py | import click
import json
from typing import List
from kfp.deprecated.cli.output import print_output, OutputFormat
import kfp_server_api
from kfp_server_api.models.api_experiment import ApiExperiment
@click.group()
def experiment():
"""Manage experiment resources."""
@experiment.command()
@click.option('-d', '-... |
8c1d6066faf2b565c56456fec5d66d27725352f6 | 3a8678a73ff5caa3df02da97a0a0b49ab4482994 | /python/tests/catalog/test_base.py | 29e93d0c9d052b8d24599b08aa18c343baebb47e | [
"Apache-2.0"
] | permissive | apache/iceberg | b21a9c1bfbb328919f51cd257772dfd1bd86aaff | c9ce6a123b49c1c4e5bd950b388d69e6ff849b5d | refs/heads/master | 2023-09-03T15:54:18.098529 | 2023-09-03T12:37:39 | 2023-09-03T12:37:39 | 158,256,479 | 4,358 | 1,659 | Apache-2.0 | 2023-09-14T16:31:51 | 2018-11-19T16:26:46 | Java | UTF-8 | Python | false | false | 23,152 | py | test_base.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... |
831a9ef0cc4a1bc0f4a85c6e69c3fda17858fa2f | a64eeba4575eee849b459dab9c7000350ee636f1 | /mediapipe/model_maker/python/core/data/data_util_test.py | 8bed8ef7c601c88b7f1562eebc0c0e9f64b7dc59 | [
"Apache-2.0",
"dtoa"
] | permissive | google/mediapipe | 0b6b56aff8bacc7b680c205f0788f1b49dd33f5e | 007824594bf1d07c7c1467df03a43886f8a4b3ad | refs/heads/master | 2023-09-01T16:11:21.218234 | 2023-09-01T11:55:21 | 2023-09-01T11:57:34 | 191,820,100 | 23,940 | 5,164 | Apache-2.0 | 2023-09-14T09:01:36 | 2019-06-13T19:16:41 | C++ | UTF-8 | Python | false | false | 1,287 | py | data_util_test.py | # Copyright 2022 The MediaPipe 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 i... |
6c880ea49d6eda7fdf9376a0ea3b0fa080bb0183 | 9472c7d1608e318e46214f231773fbb3f33de0f1 | /kats/tests/models/test_var_model.py | f1466a304dafd6fc2ec9b5139d25a110d540632f | [
"MIT"
] | permissive | facebookresearch/Kats | 16eee984bc1c482bd709cb5d62c226d4ad85f216 | 00ab9a3db27218b4817eae2e05dc602e437f634f | refs/heads/main | 2023-08-30T23:33:12.654847 | 2023-08-25T16:02:04 | 2023-08-25T16:02:04 | 342,388,745 | 4,514 | 517 | MIT | 2023-09-14T15:28:43 | 2021-02-25T21:51:06 | Python | UTF-8 | Python | false | false | 4,846 | py | test_var_model.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 unittest
from unittest import TestCase
from unittest.mock import MagicMock, patch
import matplotlib.pyplot as plt
import pandas as p... |
d80701202d7feef537c6261f31349ca5c97577fd | da0413cec35467f9d92c0ff719130212be039ef5 | /core/roslib/test/test_roslib_names.py | 751d17b8ad6c1be9bd34b25c4a28eb7edd0b565e | [
"BSD-3-Clause"
] | permissive | ros/ros | dc7ed8f12227ac154c1d6dff58c2baa3ddf38ee6 | 93d8da32091b8b43702eab5d3202f4511dfeb7dc | refs/heads/noetic-devel | 2023-09-04T12:49:31.954556 | 2021-09-21T00:23:55 | 2021-09-21T00:23:55 | 7,789,923 | 2,619 | 820 | BSD-3-Clause | 2023-02-13T04:30:28 | 2013-01-24T03:44:36 | Python | UTF-8 | Python | false | false | 13,915 | py | test_roslib_names.py | # Software License Agreement (BSD License)
#
# Copyright (c) 2009, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above... |
8e93e3d4671a347bddee3d8cc39ede07504fddb0 | 5bd1490ada452d262819b51d240b519b7264dbd8 | /Chapter 10/ch10_10.py | 90b05b73907904eaae4e4aecf3e18ad9839d0f9a | [] | no_license | PacktPublishing/Mastering-Natural-Language-Processing-with-Python | 59feee3a1ac0751f97256af328c6957adaeb7111 | 61fb2091f8c2d42fa5f14cb02664b0f2ca9127a1 | refs/heads/master | 2022-11-05T20:29:52.245545 | 2022-10-28T07:52:43 | 2022-10-28T07:52:43 | 60,772,409 | 142 | 124 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | ch10_10.py | import nltk
from nltk.stem.lancaster import LancasterStemmer
stri=LancasterStemmer()
print(stri.stem('achievement'))
|
73493d0b7bad4abe3d681ade24910e3f7ece0cf4 | 5105403f2b75990654519438d8ceabcf80962ebf | /tests/codebase/test_python_execution_with_OO.py | 1bda05beff4e60932d1015cc60d0fbabd5f3f9aa | [
"BSD-3-Clause",
"0BSD",
"Unlicense",
"WTFPL",
"AFL-2.1",
"Apache-2.0",
"BSD-2-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 | 1,797 | py | test_python_execution_with_OO.py | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2023, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... |
2924e4c7c8777d33152f8f24504b6dcb32abcde7 | dcdca5501b18a675bb6190f3102dbefe0309e78c | /gym_donkeycar/core/sim_client.py | d4543735663a0daeaefe42c8adc30939ef398721 | [
"MIT"
] | permissive | tawnkramer/gym-donkeycar | bc8c462f6e8c3d44352ffc9f83c7002b00bb8c46 | de43ae14fc2b1fa79c06926bc5cad5009c400283 | refs/heads/master | 2023-08-18T23:08:00.925087 | 2023-04-25T01:21:00 | 2023-04-25T01:21:00 | 152,908,652 | 146 | 119 | NOASSERTION | 2023-09-08T11:55:37 | 2018-10-13T19:48:14 | Python | UTF-8 | Python | false | false | 1,717 | py | sim_client.py | """
author: Tawn Kramer
date: 9 Dec 2019
file: sim_client.py
notes: wraps a tcp socket client with a handler to talk to the unity donkey simulator
"""
import json
from typing import Any, Dict, Tuple
from gym_donkeycar.core.message import IMesgHandler
from .client import SDClient
class SimClient(SDClient):
"""
... |
69cdf31e16920607e2cf6a21d482b523efaddf37 | 01857ef455ea60eccaf03b5a9059ec83e9803c2e | /nicegui/ui.py | 8b48b918d1392d5468f9cc4423161ea8e058712d | [
"MIT"
] | permissive | zauberzeug/nicegui | f08312cc1f393deca79e0e84a2506d3a35efff16 | c61b1315f29d51e26cc1168207f5616b302f8df0 | refs/heads/main | 2023-08-18T18:09:30.937322 | 2023-08-18T15:04:00 | 2023-08-18T15:04:00 | 365,250,183 | 5,128 | 271 | MIT | 2023-09-14T01:50:56 | 2021-05-07T13:55:05 | Python | UTF-8 | Python | false | false | 5,572 | py | ui.py | __all__ = [
'element',
'aggrid',
'audio',
'avatar',
'badge',
'button',
'card',
'card_actions',
'card_section',
'carousel',
'carousel_slide',
'chart',
'chat_message',
'checkbox',
'color_input',
'color_picker',
'colors',
'column',
'dark_mode',
... |
707d3a8e8c356fe0d143ed31760185ba5f2119ca | 184bef1a322e2d3d80a167d21a4611f24190c3c6 | /dbdb/core/common/searchvector.py | 60bab4910c110f737e15321b4c258b9401e2d117 | [
"Apache-2.0"
] | permissive | cmu-db/dbdb.io | 4a5020ae7832915db9008ef3a717a1ca6ccfbeb4 | 49b30cad616e1dff2406a65d52fbc86bc51414fd | refs/heads/master | 2023-08-22T08:01:32.673909 | 2023-08-20T15:00:09 | 2023-08-20T15:00:09 | 19,864,037 | 395 | 34 | Apache-2.0 | 2023-07-26T17:16:21 | 2014-05-16T16:59:01 | Python | UTF-8 | Python | false | false | 728 | py | searchvector.py | from django.contrib.postgres.search import SearchConfig, SearchVectorField
from django.db.models import Func
from django.db.models.expressions import ExpressionList
class SearchVector(Func):
"""
Replacement of `django.contrib.postgres.search.SearchVector` that
works around limitations of the later with reg... |
6fff1ad10fc554589035eead530012ea7a728064 | baf824f8819f90928e11480d0eae89efb60341a1 | /lib/aia_doc/svd2doc.py | fd708b6cf9ff019582040ceb84c6e6fff1ae555e | [
"MIT"
] | permissive | RockySong/micropython-rocky | 549770723ba92cb311c468880ead0ffdd4fa8fe5 | 2d728f414bf8d041ca609e00448850759aade3cd | refs/heads/omv_initial_integrate | 2021-05-12T12:20:18.404341 | 2021-01-15T01:15:48 | 2021-01-15T01:15:48 | 117,408,452 | 198 | 90 | MIT | 2020-08-25T03:31:32 | 2018-01-14T06:40:36 | C | UTF-8 | Python | false | false | 14,680 | py | svd2doc.py | import argparse
import sys
import copy
import xml.etree.ElementTree as ET
def iter_clusters(ptag):
registers = ptag.find('registers')
if registers is None:
return []
else:
return registers.findall('cluster')
def iter_registers(ptag):
registers = ptag.find('registers')
if register... |
b7f20348d5e3a85150250c86c1940f92e5905582 | 3c41443364da8b44c74dce08ef94a1acd1b66b3e | /framework/auth/__init__.py | bd46acb9dd5bd47533f0fdcc39933697d09ab6ac | [
"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 | 7,986 | py | __init__.py | # -*- coding: utf-8 -*-
import uuid
from django.utils import timezone
from framework import bcrypt
from framework.auth import signals
from framework.auth.core import Auth
from framework.auth.core import get_user, generate_verification_key
from framework.auth.exceptions import DuplicateEmailError
from framework.auth.t... |
067ca9a36b980ba220d092407c705c9dbf41bd7e | 97e78e8f9b1510eae91f00ee6abb06b235f0f5dc | /acsconv/operators/conv2_5d.py | 2e1aa14107637e96991dd8782a09d90ec6074f98 | [
"Apache-2.0"
] | permissive | M3DV/ACSConv | 7fc5c01751b005be8cb39dea39258457c7cd3cb4 | 95dc860a77e309f010a3d8be1f675e77c7dfeda4 | refs/heads/master | 2023-08-16T23:48:37.571616 | 2023-08-08T01:39:38 | 2023-08-08T01:39:38 | 223,711,776 | 156 | 22 | Apache-2.0 | 2023-08-08T01:39:39 | 2019-11-24T08:06:30 | Python | UTF-8 | Python | false | false | 1,202 | py | conv2_5d.py | import torch.nn as nn
class Conv2_5d(nn.Conv3d):
"""
Decorater class for Conv2_5d, in which kernel size is (1, K, K) or (K, 1, K) or (K, K, 1).
Args:
unsqueeze_axis: optional, the default axis is -3, resulting in a kernel size of (1, K, K)
Other arguments are the same as torch.nn.Conv3d
... |
a7d0b2d9aae01d8c483cf3a9958a3fa9f0f6e008 | e993a7972529f60210d9dd6d7c4097c62c37bcdf | /sample/edit.py | 13457e3b8dcf80aebda4ea0cfe15c3efff268e09 | [
"MIT"
] | permissive | GuyTevet/motion-diffusion-model | 64756013105a80ea2a3180a73ac86519b361e53b | 8139dda55d90a58aa5a257ebf159b2ecfb78c632 | refs/heads/main | 2023-09-01T05:00:14.156745 | 2023-06-06T23:42:33 | 2023-06-06T23:42:33 | 543,082,997 | 2,302 | 265 | MIT | 2023-08-29T09:27:54 | 2022-09-29T11:24:35 | Python | UTF-8 | Python | false | false | 9,841 | py | edit.py | # This code is based on https://github.com/openai/guided-diffusion
"""
Generate a large batch of image samples from a model and save them as a large
numpy array. This can be used to produce samples for FID evaluation.
"""
from utils.fixseed import fixseed
import os
import numpy as np
import torch
from utils.parser_util... |
ddbbf541b9f7dcccca9805318d6905f12cbfa90e | 8488fa51bd937bc9403d636279ba03ee5b1bd4c0 | /trac/upgrades/db36.py | 8f6a94699d9e1f183659303bd20089c6333bd5f2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | edgewall/trac | e7ecd994121c6e30b39e98dc6ad9b9edf5be4559 | f7eba7b121c9ff227b062e9d032ff4d4582adc39 | refs/heads/trunk | 2023-08-17T00:13:12.555838 | 2023-07-02T15:13:51 | 2023-07-02T15:13:51 | 615,096 | 399 | 173 | NOASSERTION | 2023-03-07T13:46:40 | 2010-04-17T15:10:51 | Python | UTF-8 | Python | false | false | 1,037 | py | db36.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2023 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at https://trac.edgewall.org/wiki/TracLicense.
#
# This software cons... |
0780d0d6cd996aec892792fd516841438c35e557 | 660c4c4c14b29109a772b00169a0fd50108273fa | /matrixprofile/discover.py | 9f0466324971b891b660e1255d9ccaaf892efe98 | [
"Apache-2.0"
] | permissive | matrix-profile-foundation/matrixprofile | 80c3e026c11b39e6431b0e248cdd04f9eb482858 | 6fbd5fe2fd0e93162ef77c4da1b30188072dd404 | refs/heads/master | 2022-11-28T13:26:12.289263 | 2022-11-25T13:40:05 | 2022-11-25T13:40:05 | 198,119,545 | 345 | 77 | Apache-2.0 | 2023-08-17T17:40:45 | 2019-07-22T00:33:37 | Python | UTF-8 | Python | false | false | 428 | py | discover.py | from matrixprofile.algorithms.top_k_discords import top_k_discords as discords
from matrixprofile.algorithms.top_k_motifs import top_k_motifs as motifs
from matrixprofile.algorithms.snippets import snippets
from matrixprofile.algorithms.regimes import extract_regimes as regimes
from matrixprofile.algorithms.statistics ... |
c50659168a3246aa4284be8a590c942a0b50d558 | c5fd80ede07f0972a9b99d0c65a0df40e6d487fa | /pyocd/utility/sockets.py | 61d365da5c6ab8c6682d57b1db0fcfd54b4bb40d | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pyocd/pyOCD | 46330f3a10c9be381293d220cc025e0e347513ce | 9253740baf46ebf4eacbce6bf3369150c5fb8ee0 | refs/heads/main | 2023-08-18T07:56:54.205305 | 2023-08-13T19:11:01 | 2023-08-13T19:11:01 | 13,862,423 | 507 | 204 | Apache-2.0 | 2023-09-09T20:13:57 | 2013-10-25T14:10:05 | Python | UTF-8 | Python | false | false | 4,741 | py | sockets.py | # pyOCD debugger
# Copyright (c) 2006-2020 Arm Limited
# Copyright (c) 2021 Chris Reed
# 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
#
# http://www... |
0df61675ebd19a9ae2c421a12b35624bf5f955e3 | 58919431a7fb4da999b8584d5fa7ace5232b3e8a | /heudiconv/info.py | e76bc37f3a9d05b03724878b6d94b3770119040a | [
"Apache-2.0"
] | permissive | nipy/heudiconv | 1eb767cbf2bcf00b6d08d78584a9ee6b037cab2e | bf9b75b34ea002f73cc6cf54189e4de5efcb2a91 | refs/heads/master | 2023-08-08T01:00:14.261232 | 2023-07-25T19:55:56 | 2023-07-25T19:55:56 | 42,650,211 | 207 | 141 | NOASSERTION | 2023-09-11T13:52:41 | 2015-09-17T10:34:11 | Python | UTF-8 | Python | false | false | 1,524 | py | info.py | __author__ = "HeuDiConv team and contributors"
__url__ = "https://github.com/nipy/heudiconv"
__packagename__ = "heudiconv"
__description__ = "Heuristic DICOM Converter"
__license__ = "Apache 2.0"
__longdesc__ = """Convert DICOM dirs based on heuristic info - HeuDiConv
uses the dcmstack package and dcm2niix tool to conv... |
9fb653e42c293fe0fa8b6515232e5ba744487ebb | faa390890e17219fd763bd66e66bb6753c692b14 | /jacinle/__init__.py | 84d0c2baf87baadaf5d9c2634e6de2382d51751e | [
"MIT"
] | permissive | vacancy/Jacinle | 7170b1c798e4a903186abe74d28e4a7e034ec766 | 20021790fd32ef1ad40c67fba7582c6db54235da | refs/heads/master | 2023-07-20T03:54:46.693649 | 2023-07-12T21:00:10 | 2023-07-12T21:00:10 | 117,910,172 | 135 | 275 | MIT | 2023-01-18T17:41:33 | 2018-01-18T00:35:55 | Python | UTF-8 | Python | false | false | 8,379 | py | __init__.py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : __init__.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 01/18/2018
#
# This file is part of Jacinle.
# Distributed under terms of the MIT license.
"""The Jacinle library.
This main library contains a set of useful utility functions and c... |
2d4329d86c6643c39e81a45a21d6d11d61206965 | d139049fe87b8c209058bea3a885ea36e51b4895 | /naslib/predictors/trees/ngb.py | 78326b0e3bf70e8246b3b054ae6b5956c8be8ec5 | [
"Apache-2.0"
] | permissive | automl/NASLib | 4541086deb82137c4c47d54ee164d3b636123588 | dfa2e67e8bcb1222b0c5332580eb25f822198411 | refs/heads/Develop | 2023-08-08T01:46:57.115368 | 2023-07-21T12:15:23 | 2023-07-21T12:15:23 | 185,628,775 | 431 | 118 | Apache-2.0 | 2023-07-21T12:15:54 | 2019-05-08T15:03:37 | Python | UTF-8 | Python | false | false | 2,804 | py | ngb.py | import numpy as np
from functools import wraps
from ngboost import NGBRegressor
from ngboost.distns import Normal
from ngboost.scores import LogScore
from sklearn.tree import DecisionTreeRegressor
from naslib.predictors.trees import BaseTree
def parse_params(params, identifier="base"):
parsed_params = {}
fo... |
be7e30120a1af70fc5c81542c0996e9f9d418d09 | 368960cc5dc09284dff33129b2b8c31773705b81 | /docs/conf.py | fad2b42c4fd4dcc39d7109e1c4b3a1c5abb65da8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | collective/icalendar | 802f70ecaa325cc5a8ce65e0c41bfcbdccf0a97b | 8fb3353408df94d54b74a7e05586fd6c99eed7ef | refs/heads/master | 2023-09-01T08:50:59.574456 | 2023-08-31T06:05:59 | 2023-08-31T06:05:59 | 2,222,138 | 716 | 166 | NOASSERTION | 2023-09-06T17:54:06 | 2011-08-17T14:16:35 | Python | UTF-8 | Python | false | false | 1,061 | py | conf.py | # icalendar documentation build configuration file
import pkg_resources
import datetime
import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
html_them... |
4037f988ea4a83678a11c077fcdff572fa0ae138 | af101b467134e10270bb72d02f41f07daa7f57d8 | /configs/dim/dim_stage2-v16-pln_1xb1-1000k_comp1k.py | 4ad154c51152759901565f3f21cb825f5c4a78ac | [
"Apache-2.0"
] | permissive | open-mmlab/mmagic | 4d864853417db300de4dfe7e83ce380fd1557a23 | a382f143c0fd20d227e1e5524831ba26a568190d | refs/heads/main | 2023-08-31T14:40:24.936423 | 2023-08-30T05:05:56 | 2023-08-30T05:05:56 | 203,999,962 | 1,370 | 192 | Apache-2.0 | 2023-09-14T11:39:18 | 2019-08-23T13:04:29 | Jupyter Notebook | UTF-8 | Python | false | false | 505 | py | dim_stage2-v16-pln_1xb1-1000k_comp1k.py | _base_ = ['./dim_stage1-v16_1xb1-1000k_comp1k.py']
save_dir = './work_dirs/'
experiment_name = 'dim_stage2-v16-pln_1xb1-1000k_comp1k'
# model settings
model = dict(
refiner=dict(type='PlainRefiner'),
loss_refine=dict(type='CharbonnierLoss'),
train_cfg=dict(train_backbone=False, train_refiner=True),
tes... |
35000b7c7e288b150fdd94278cac056324ea9ebc | 2cfa0c5555d1720b3955bd08f0594d8e24b99f2d | /fastcore/script.py | cb545791747b2a7c8560f0dc705eba4e4e15d7ee | [
"Apache-2.0"
] | permissive | fastai/fastcore | 7aa8b4badec8e6ea00412f673abe8a7fcbd4781e | 1cb38a0d8d97091cd3365e669e39db64be40aaa2 | refs/heads/master | 2023-09-04T00:26:32.976525 | 2023-06-25T23:23:50 | 2023-06-25T23:23:50 | 225,460,599 | 877 | 319 | Apache-2.0 | 2023-06-25T23:23:51 | 2019-12-02T20:16:53 | Jupyter Notebook | UTF-8 | Python | false | false | 5,106 | py | script.py | # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/08_script.ipynb.
# %% auto 0
__all__ = ['SCRIPT_INFO', 'store_true', 'store_false', 'bool_arg', 'clean_type_str', 'Param', 'anno_parser', 'args_from_prog',
'call_parse']
# %% ../nbs/08_script.ipynb 13
import inspect,argparse,shutil
from functools import wr... |
8c41b0c401b2c14d35f425893656df41ab20b8a5 | 0e4860fecfdd34a3255003cc8c8df086c14083dd | /python/practise/learn-python/python_basic/none_and_range.py | 27be7cc420b77f20c94f3adcbe003ea24f3cb6e1 | [] | no_license | anzhihe/learning | 503ab9a58f280227011da5eaa4b14b46c678e6f3 | 66f7f801e1395207778484e1543ea26309d4b354 | refs/heads/master | 2023-08-08T11:42:11.983677 | 2023-07-29T09:19:47 | 2023-07-29T09:19:47 | 188,768,643 | 1,443 | 617 | null | 2023-08-24T02:10:34 | 2019-05-27T04:04:10 | Python | UTF-8 | Python | false | false | 2,383 | py | none_and_range.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@FileName: none_and_range.py
@Function: python None & range
@Author: Zhihe An
@Site: https://chegva.com
@Time: 2021/6/21
"""
"""一、对象None"""
"""
1、什么是对象None
对象None用于表示数据值的不存在
对象None是占据一定的内存空间的,它并不意味着"空"或"没有定义"
也就是说,None是"somet... |
84efa137fe5a5ba489f83451b22a3eb88b90e7b7 | f062af64ce156719203b79de9c2502b265af27de | /tensorflow_datasets/image/lsun.py | 38c3f56496fc0f935b369ac4efd352c72abfb694 | [
"Apache-2.0"
] | permissive | tensorflow/datasets | d0c58f3db7ce06347671558b9e5a41e12e6913ce | 41ae3cf1439711ed2f50f99caa0e6702082e6d37 | refs/heads/master | 2023-08-31T03:23:16.581638 | 2023-08-30T17:25:34 | 2023-08-30T17:29:38 | 148,221,325 | 4,224 | 1,738 | Apache-2.0 | 2023-09-14T14:04:22 | 2018-09-10T21:27:22 | Python | UTF-8 | Python | false | false | 5,334 | py | lsun.py | # coding=utf-8
# Copyright 2023 The TensorFlow Datasets 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 appl... |
6b6d9b9d4994fcaafae194d789603dc047395577 | e7efae2b83216d9621bd93390959d652de779c3d | /ddev/src/ddev/plugin/specs.py | 911af22354a5880a15291314b917df8bd6ae870a | [
"MIT",
"BSD-3-Clause",
"BSD-3-Clause-Modification",
"Unlicense",
"Apache-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"CC0-1.0"
] | permissive | DataDog/integrations-core | ee1886cc7655972b2791e6ab8a1c62ab35afdb47 | 406072e4294edff5b46b513f0cdf7c2c00fac9d2 | refs/heads/master | 2023-08-31T04:08:06.243593 | 2023-08-30T18:22:10 | 2023-08-30T18:22:10 | 47,203,045 | 852 | 1,548 | BSD-3-Clause | 2023-09-14T16:39:54 | 2015-12-01T16:41:45 | Python | UTF-8 | Python | false | false | 246 | py | specs.py | # (C) Datadog, Inc. 2022-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import pluggy
spec = pluggy.HookspecMarker('ddev')
@spec
def register_commands():
"""Register new commands with the CLI."""
|
4d527bcc964c1e083b3fc3ffd7c2d303b8a452fa | 67c0bc2b2292857fcc19b3c6e6da5570dc09749c | /chapter_2_collection/pyAudioAnalysis3/audacityAnnotation2WAVs.py.bak | d506d42df4beba69fc886be60e05e508deebbb10 | [
"Apache-2.0"
] | permissive | jim-schwoebel/voicebook | 9d28f638fa6a31cb8c4915f9871c07da261b3ea6 | 0e8eae0f01487f15589c0daa2cf7ca3c6f3b8ad3 | refs/heads/master | 2022-12-11T13:41:24.005431 | 2021-04-15T13:51:35 | 2021-04-15T13:51:35 | 137,778,789 | 363 | 84 | Apache-2.0 | 2022-12-08T03:58:01 | 2018-06-18T16:37:37 | Python | UTF-8 | Python | false | false | 2,585 | bak | audacityAnnotation2WAVs.py.bak | import glob, os
import audioBasicIO, sys, csv
import scipy.io.wavfile as wavfile
def annotation2files(wavFile, csvFile):
'''
Break an audio stream to segments of interest,
defined by a csv file
- wavFile: path to input wavfile
- csvFile: path to csvFile of segment l... |
b042e26c909417f280aa0d28d626644d5329814c | 091a6200be74bf6577c86f623665bcc24e16b02b | /Tilemap_Game_With_CircuitPython/tilegame_assets/__init__.py | 58d656b41fbf94d192804af366558325c26f00ca | [
"MIT"
] | permissive | adafruit/Adafruit_Learning_System_Guides | b5f7bce40a16da64e7a79d4b39de032f2cca41d4 | 5eaa7a15a437c533b89f359a25983e24bb6b5438 | refs/heads/main | 2023-09-05T18:31:41.621956 | 2023-09-05T15:36:09 | 2023-09-05T15:36:09 | 105,065,494 | 937 | 937 | MIT | 2023-09-12T18:48:53 | 2017-09-27T20:22:44 | C | UTF-8 | Python | false | false | 179 | py | __init__.py | # SPDX-FileCopyrightText: 2018 Limor Fried/ladyada for Adafruit Industries
# SPDX-FileCopyrightText: 2019 Brennen Bearnes for Adafruit Industries
#
# SPDX-License-Identifier: MIT
|
ec56330d7b96363a0de4bbd6eccd5b409c1c5c29 | e8cf6493fee2383f31e77d30c78e47e694dd298f | /tools/patch_codegen/typeinf_batch.py | 1b8612ac838ca06c57799c86dccb0a0c5b9ff88b | [
"BSD-3-Clause"
] | permissive | idapython/src | 30b5af8e819e2d86736cd63527dcda0e4696c680 | e1c108a7df4b5d80d14d8b0c14ae73b924bff6f4 | refs/heads/master | 2023-09-04T08:27:09.228901 | 2023-07-31T14:26:58 | 2023-07-31T14:26:58 | 32,229,857 | 1,371 | 298 | NOASSERTION | 2023-07-28T12:34:06 | 2015-03-14T20:09:27 | Python | UTF-8 | Python | false | false | 303 | py | typeinf_batch.py | {
"requires_idb" : [
".*",
"-is_type_.*",
"-get_base_type",
"-get_type_flags",
"-get_full_type",
"-is_typeid_last",
"-is_tah_byte",
"-is_sdacl_byte",
"-get_cc",
"-is_.*_cc",
"-convert_pt_flags_to_hti",
],
}
|
37bbb9f846506642e14a0157e2ce310698d289c4 | 391dfd77c1bb85c08b4ead451ecdab0858eb141f | /tests/test_windowconfig.py | 0829dd2c4b2927da3a63c12a21002ac07e9799c6 | [
"MIT"
] | permissive | moderngl/moderngl-window | 308682b5aa625dbb49ca554459bed9853a5e69c3 | 200f2b9ea8b350b0ac9bb6a2d24310c0d8227794 | refs/heads/master | 2023-05-28T00:33:49.924394 | 2023-05-18T11:06:26 | 2023-05-18T11:06:26 | 172,498,670 | 205 | 48 | MIT | 2023-09-01T17:45:51 | 2019-02-25T12:05:57 | Python | UTF-8 | Python | false | false | 6,409 | py | test_windowconfig.py | from pathlib import Path
import moderngl
from headless import WindowConfigTestCase
from moderngl_window import WindowConfig
from moderngl_window.scene import Scene
class WindowConfigTestCase(WindowConfigTestCase):
class TestConfig(WindowConfig):
window_size = (16, 32)
aspect_ratio = 1.0
g... |
6c72ba1607fdda71ca2d139da3e5dc26b7103ec7 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/returnValueFromInit/src/test17.py | 7c08df34b4a3751b28bac59b85542ce9bab8132f | [
"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 | 618 | py | test17.py | 'doc'
class X:
'should get a warning for returning value from __init__'
def __init__(self):
print 'howdy'
return 1
class Y:
'should get a warning for returning value from __init__'
def __init__(self, x):
if x == 0 :
return 0
if x == 1 :
return 53... |
815e9a978920d9b25e0ce9f6beadbb980a530a26 | 316e768ac2ba60fb393a8b914f5c761e077609d1 | /archivebox/config_stubs.py | 2c42e8089277bf212b5de1aee65d54aeb8c0e9ad | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | ArchiveBox/ArchiveBox | 88fc98ac08800d9785d4333572627a7f354f3a43 | 73a5f74d3840284bceaabced9cf99575b8c15d54 | refs/heads/dev | 2023-09-03T15:31:13.265845 | 2023-08-31T22:17:45 | 2023-08-31T22:17:45 | 90,356,372 | 9,794 | 606 | MIT | 2023-09-04T05:04:41 | 2017-05-05T08:50:14 | Python | UTF-8 | Python | false | false | 3,041 | py | config_stubs.py | from pathlib import Path
from typing import Optional, Dict, Union, Tuple, Callable, Pattern, Type, Any, List
from mypy_extensions import TypedDict
SimpleConfigValue = Union[str, bool, int, None, Pattern, Dict[str, Any]]
SimpleConfigValueDict = Dict[str, SimpleConfigValue]
SimpleConfigValueGetter = Callable[[], Simpl... |
ae1064948511eed1703b407747106a7702cdc7e8 | 7e5887a4db2c9937b61d54ac1d34f589558c74c7 | /ldapauthenticator/__init__.py | 99008a7d848d14dcaa6dba58f3ebfceecfa4e3b0 | [
"BSD-3-Clause"
] | permissive | jupyterhub/ldapauthenticator | 840823cb0a508b9f2674c9bd31d85b1a445e223f | 0760d6d849d950e8ee9175d97db0635f72356b59 | refs/heads/main | 2023-09-03T12:34:08.800500 | 2023-06-05T08:00:57 | 2023-06-05T08:00:57 | 49,804,028 | 198 | 170 | BSD-3-Clause | 2023-07-04T06:27:47 | 2016-01-17T05:11:49 | Python | UTF-8 | Python | false | false | 233 | py | __init__.py | from ldapauthenticator.ldapauthenticator import LDAPAuthenticator # noqa
# __version__ should be updated using tbump, based on configuration in
# pyproject.toml, according to instructions in RELEASE.md.
#
__version__ = "1.3.3.dev"
|
da5e0b57da8070a8cebea640744fb2841e9378c1 | 813f67f6815d0389589b719625c46b2265ca0f87 | /tests/test_middleware.py | b2a5384ac6347447779d1ef0f3e70ffeedd29896 | [
"Apache-2.0"
] | permissive | stephenhillier/starlette_exporter | c0916acb4c592617c31acbb3616a2f48c41aeb45 | 0de22e78233cf88e746b68db76945965d0bfbedf | refs/heads/master | 2023-08-16T17:29:50.915043 | 2023-08-06T13:50:36 | 2023-08-06T13:50:36 | 217,774,698 | 266 | 30 | Apache-2.0 | 2023-08-06T13:50:37 | 2019-10-26T22:04:25 | Python | UTF-8 | Python | false | false | 24,728 | py | test_middleware.py | import time
from http import HTTPStatus
import pytest
from prometheus_client import REGISTRY
from starlette.applications import Starlette
from starlette.background import BackgroundTask
from starlette.exceptions import HTTPException
from starlette.responses import JSONResponse, Response
from starlette.routing import M... |
b14d9c03018649b80abbca59748886a825708b8f | 2b7272f3cf9b38071d3e0b6588503e03dafed174 | /dff_rfcn/test.py | 28b413fed50dc7fb48dd18d9351baf949f0610e3 | [
"MIT"
] | permissive | BitconFeng/Deep-Feature-video | 5f55bea5e2810d896749c0a2eb7605d911b3b546 | fff73fbcd0e21d5db566d2b63c644e18b2732551 | refs/heads/master | 2021-10-09T08:41:13.697770 | 2018-12-15T09:20:00 | 2018-12-15T09:20:00 | 46,565,187 | 240 | 3 | MIT | 2020-02-26T17:42:18 | 2015-11-20T14:01:47 | Python | UTF-8 | Python | false | false | 2,276 | py | test.py | # --------------------------------------------------------
# Deep Feature Flow
# Copyright (c) 2017 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Modified by Yuwen Xiong
# --------------------------------------------------------
# Based on:
# MX-RCNN
# Copyright (c) 2016 by Contributors
# Licen... |
6f6af337df461d2f3222ebb7301ae10bf58fcce3 | b4b0181f8abf041e619607bc35b5b24771ebf0ea | /yapf/yapflib/reformatter.py | 319fc9cc04635528070efd80bd7884dffe02b729 | [
"Apache-2.0"
] | permissive | google/yapf | 2683a5a262cb3c46b8bafd637f3bcb40b34a7afa | cc9ae943495e1f67852ee897c397e9560feb78ed | refs/heads/main | 2023-09-04T03:42:58.877584 | 2023-09-01T22:40:13 | 2023-09-01T22:40:13 | 32,476,524 | 14,961 | 1,239 | Apache-2.0 | 2023-09-14T14:49:54 | 2015-03-18T18:22:31 | Python | UTF-8 | Python | false | false | 28,024 | py | reformatter.py | # Copyright 2015 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... |
78527e9af0df1b1f8d367a2eb6b267a2396b7ce3 | e7e536df0263ae2a7ac44ef30f19110f891213a9 | /src/pretalx/api/serializers/review.py | 8131b8f1a80a743e36851af0f01ef73267dee523 | [
"Apache-2.0"
] | permissive | pretalx/pretalx | b3b3808266f4810dfc8445dc1ed33ba398e7a9c2 | 269dce90a6fb1ce0064008c40ce5dd4dad61e2e3 | refs/heads/main | 2023-09-05T11:09:23.538325 | 2023-09-04T19:57:47 | 2023-09-04T19:57:47 | 83,081,285 | 563 | 195 | Apache-2.0 | 2023-09-13T19:12:28 | 2017-02-24T20:46:51 | Python | UTF-8 | Python | false | false | 1,060 | py | review.py | from rest_framework.serializers import (
ModelSerializer,
SerializerMethodField,
SlugRelatedField,
)
from pretalx.api.serializers.question import AnswerSerializer
from pretalx.submission.models import Answer, Review
class AnonymousReviewSerializer(ModelSerializer):
"""Does not include the user and an... |
e03f5d9e5ad77b96bb8c99722df199cc3318adef | 568fa58296378fa129ab3349adf010daa44ed45b | /tests/common/test_op/ascend/xdivy.py | 5a3b190ed18037dff78d223f00df46d054741ee7 | [
"Apache-2.0",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | mindspore-ai/akg | 37f471badc66de6a831f1f45ad84344f34d23ef2 | 99f33858d6972741748cbfc9ab0bf9600428fef7 | refs/heads/master | 2023-07-25T23:03:17.672665 | 2023-07-11T07:33:57 | 2023-07-11T07:33:57 | 274,077,856 | 319 | 36 | Apache-2.0 | 2021-12-30T13:43:08 | 2020-06-22T08:09:05 | Python | UTF-8 | Python | false | false | 4,184 | py | xdivy.py | # Copyright 2020-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
65705e988b12d719e853396ea4d1fa36c0ea91db | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-WebKit/PyObjCTest/test_domtreewalker.py | f1bdb485e75ab2523719f3b7e4493a023f51db5a | [
"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 | 200 | py | test_domtreewalker.py | from PyObjCTools.TestSupport import TestCase
import WebKit
class TestDOMTreeWalker(TestCase):
def testMethods(self):
self.assertResultIsBOOL(WebKit.DOMTreeWalker.expandEntityReferences)
|
3fc6c4f5c2298ab8f21bd655831319aae9cf7385 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/service_health_status.py | f05a4f400ccaf8614740806bafa44572eb399aa5 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 816 | py | service_health_status.py | from enum import Enum
class ServiceHealthStatus(str, Enum):
ServiceOperational = "serviceOperational",
Investigating = "investigating",
RestoringService = "restoringService",
VerifyingService = "verifyingService",
ServiceRestored = "serviceRestored",
PostIncidentReviewPublished = "postIncidentR... |
6591c5665da32216c38ed951bdcdf10c2b577f20 | 99833651e4a6a0bc1221d577d9fc43b8568abedd | /nltk_contrib/lpath/at_lite/tableio.py | 6a582ad1a7095122c8258d363b30dc42590d96aa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | nltk/nltk_contrib | 689e2683aa01b120c7473b9a4fc50bc49f014390 | 95d1806e2f4e89e960b76a685b1fba2eaa7d5142 | refs/heads/master | 2023-07-31T13:32:47.358897 | 2022-11-21T18:49:33 | 2022-11-21T18:49:33 | 2,530,774 | 145 | 127 | NOASSERTION | 2022-11-21T18:49:34 | 2011-10-07T05:59:13 | Python | UTF-8 | Python | false | false | 4,385 | py | tableio.py |
#
# ChangeLogs:
# $Log: tableio.py,v $
# Revision 1.9 2006/06/27 19:03:28 haejoong
# tdf reader now handles different formats of newline characters
#
# Revision 1.8 2006/04/12 14:55:24 haejoong
# fixes for error handling
#
# Revision 1.7 2006/01/26 15:46:46 haejoong
# *** empty log message ***
#
# Revision 1.6 ... |
e12276b67a2cecf75d584e541f6e9dc9f7aa8b69 | 65fb54d999e7c81dc0bbf89bfd3ac06c1b27df59 | /yacv/grammar.py | 77f6b3fe6c02ec235219a45b93873c722aebea8c | [
"MIT"
] | permissive | ashutoshbsathe/yacv | c474b9b0df7353ad5eba59b2d5e723929680513e | 763d6263620aece090ee546aed4729905e4e5430 | refs/heads/main | 2023-07-10T10:54:57.950482 | 2021-04-22T12:53:19 | 2021-04-22T12:53:19 | 338,791,868 | 132 | 8 | MIT | 2021-08-19T16:15:58 | 2021-02-14T11:40:15 | Python | UTF-8 | Python | false | false | 8,092 | py | grammar.py | import logging
from collections import OrderedDict
from pprint import pprint
from yacv.constants import *
from yacv.utils import YACVError
class Production(object):
def __init__(self, lhs=None, rhs=[]):
self.lhs = lhs
self.rhs = rhs
def __str__(self):
rhs = 'ϵ' if self.rhs[0] == YACV_E... |
ad8bdebfea36d100488a449e4e0dcc65bea72dc1 | 4feb5744ab5a26aeeb04573e4944d2bf4d1a6a2a | /peeringdb_server/migrations/0031_auto_20200404_0910.py | b9a3534050e25a136707fc53a8795d4014d94cf9 | [
"BSD-2-Clause"
] | permissive | peeringdb/peeringdb | cb79f809c4bb8cc5192180366df1f05d8fc0111f | 3f62b2d97c78ccf151fb1a5761637e28463b9541 | refs/heads/master | 2023-09-04T09:26:43.741086 | 2023-08-22T19:20:34 | 2023-08-22T19:20:34 | 60,563,174 | 311 | 121 | BSD-2-Clause | 2023-09-13T02:13:42 | 2016-06-06T21:49:25 | Python | UTF-8 | Python | false | false | 577 | py | 0031_auto_20200404_0910.py | # Generated by Django 2.2.9 on 2020-04-04 09:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("peeringdb_server", "0030_affiliation_request_status_add_canceled"),
]
operations = [
migrations.AlterField(
model_name="network",... |
e8bdbe41c530eb4b779a4d88a87318fe979890b1 | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/integration/modules/test_disk.py | 844817d7c22a689592da6b9b27465aeedf1fa15f | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | saltstack/salt | 354fc86a7be1f69514b3dd3b2edb9e6f66844c1d | 1ef90cbdc7203f97775edb7666db86a41eb9fc15 | refs/heads/master | 2023-07-19T20:56:20.210556 | 2023-06-29T23:12:28 | 2023-07-19T11:47:47 | 1,390,248 | 11,026 | 6,296 | Apache-2.0 | 2023-09-14T20:45:37 | 2011-02-20T20:16:56 | Python | UTF-8 | Python | false | false | 2,672 | py | test_disk.py | import os
import shutil
import pytest
import salt.utils.platform
from tests.support.case import ModuleCase
@pytest.mark.windows_whitelisted
@pytest.mark.skip_on_darwin(reason="No mtab on Darwin")
@pytest.mark.skip_on_freebsd
@pytest.mark.skip_on_windows(reason="No mtab on Windows")
@pytest.mark.destructive_test
cla... |
03e62d8e1661a280de4cf287d9b1dee4673e12b6 | dcc7dd6c65cb13d3619689b2c794b450e503b100 | /tests/console/commands/test_run.py | 53c5dbbb3d39238727a54fb65caecbb1fdd0e96f | [
"MIT"
] | permissive | python-poetry/poetry | 6b83f8db6a15b132fd252b68ed3bbee51b4e64f0 | 02448cf7f184dea204156f7dcb620a4f01a0068e | refs/heads/master | 2023-09-04T12:23:02.700442 | 2023-09-02T10:46:06 | 2023-09-02T10:46:06 | 123,303,402 | 20,127 | 2,081 | MIT | 2023-09-12T09:41:09 | 2018-02-28T15:23:47 | Python | UTF-8 | Python | false | false | 6,649 | py | test_run.py | from __future__ import annotations
import subprocess
from typing import TYPE_CHECKING
import pytest
from poetry.utils._compat import WINDOWS
if TYPE_CHECKING:
from cleo.testers.application_tester import ApplicationTester
from cleo.testers.command_tester import CommandTester
from pytest_mock import Moc... |
e76178691f1784fa47b1595152e45f224107ce0f | 7a6644b553316ece2498e4f8f629454e0b379d23 | /docs/source/manim_example_ext.py | 0feef36d69ce976eb20c11be1b21ac363ea38da5 | [
"MIT"
] | permissive | manim-kindergarten/manim | 9f17cac6c1c4db5db6e7f4edfe4885eee9ec1f5e | 99fe80a55cdc5c2fcc249b3645d7f1cd19852bcd | refs/heads/master | 2023-06-27T19:44:05.384032 | 2022-12-08T04:00:27 | 2022-12-08T04:00:27 | 245,434,121 | 130 | 27 | MIT | 2023-06-17T07:15:31 | 2020-03-06T14:00:57 | Python | UTF-8 | Python | false | false | 2,468 | py | manim_example_ext.py | from docutils import nodes
from docutils.parsers.rst import directives, Directive
import jinja2
import os
class skip_manim_node(nodes.Admonition, nodes.Element):
pass
def visit(self, node, name=""):
self.visit_admonition(node, name)
def depart(self, node):
self.depart_admonition(node)
class ManimEx... |
3393decaad23f4ce126b21ac9565fec0f3414a2a | cb560437b44771d9b7cba2043501a1f3d54f3d40 | /cyp/analysis/__init__.py | 9f1161c4e63f03c9dff07cf756f084626718fe19 | [
"MIT"
] | permissive | gabrieltseng/pycrop-yield-prediction | 88c0a9fec4de10a0338f8cc208d4686fbb7123ea | b4790dc2f87a73e8a0604e8c22466314090c5abf | refs/heads/master | 2022-02-02T14:30:59.868766 | 2022-01-17T15:32:54 | 2022-01-17T15:32:54 | 171,045,076 | 140 | 56 | MIT | 2022-01-17T15:32:54 | 2019-02-16T19:50:51 | Python | UTF-8 | Python | false | false | 46 | py | __init__.py | from .counties_plot import plot_county_errors
|
072a1ae5fbe63583e1bc7ab4372a5fe0af04e49e | a12b448f44beb4d521cb7e31677281f41df35f0b | /utils/code_generator/time_measurement/filter_schedules.py | 59515b7fbf0706c44e87e219a86faffdd4cfd675 | [
"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 | 6,063 | py | filter_schedules.py | import pickle
import json
from pathlib import Path
from multiprocessing import Pool
MAX_NB_ITERATORS = 4
nb_threads = 48
chunksize = 100
# Path to the programs folder
progs_path = Path("programs")
# Path where to store the list of filtered programs
# Each element of the list has the format (func_id, sched_id)
dst_... |
efdd6fd5542078b8f3ecbfea7e641421802ad5ab | c168fe819b446640957e5e310ef89fcfe28662b3 | /torchbenchmark/models/opacus_cifar10/__init__.py | f66a49dbc23d5f0a25fea2f59a2468a1b8b0f75e | [
"BSD-3-Clause"
] | permissive | pytorch/benchmark | 7b55e8d714de2ea873e03df43811aab3848485dd | df4da9bdff11a2f948d5bd4ac83da7922e6f44f4 | refs/heads/main | 2023-08-29T13:06:09.671728 | 2023-08-28T16:51:55 | 2023-08-28T16:51:55 | 92,541,759 | 685 | 220 | BSD-3-Clause | 2023-09-14T18:10:18 | 2017-05-26T19:21:12 | Python | UTF-8 | Python | false | false | 3,259 | py | __init__.py | import torch
import torch.optim as optim
import torch.nn as nn
import torch.utils.data as data
import torchvision.models as models
from opacus import PrivacyEngine
from opacus.validators.module_validator import ModuleValidator
from typing import Tuple
from ...util.model import BenchmarkModel
from torchbenchmark.tasks ... |
4c881a5005d45b91fd1b13d1c1e659f0a4faa439 | a3e9a59ace71575122d306dbfe4cfef762cf185d | /preprocess.py | fa9a9a1316656601cd2a3a632d35839bc57eb903 | [
"MIT"
] | permissive | fatchord/WaveRNN | cf5cfa790c44aa3d9bef9536ec47374532f39b92 | 83c08fdcd625be56244f4145f41500468974b144 | refs/heads/master | 2022-07-06T09:01:09.663457 | 2022-07-02T14:21:21 | 2022-07-02T14:21:21 | 125,524,069 | 2,149 | 604 | MIT | 2022-07-02T14:21:22 | 2018-03-16T14:03:52 | Python | UTF-8 | Python | false | false | 3,160 | py | preprocess.py | import glob
from utils.display import *
from utils.dsp import *
from utils import hparams as hp
from multiprocessing import Pool, cpu_count
from utils.paths import Paths
import pickle
import argparse
from utils.text.recipes import ljspeech
from utils.files import get_files
from pathlib import Path
# Helper functions ... |
c8256a572fe477cb7bf6e61180426393e14db929 | e6ffff4ae45863b33eee0e1e9b9c61f7401db0d3 | /elsapy/elsentity.py | 31c7877666e874765788be9e0f7e18cdf934f9d8 | [
"BSD-3-Clause"
] | permissive | ElsevierDev/elsapy | 1d0e19eba3e5fad11aa0464a9da453b8b4d6fdf6 | 08e231f561c3b0c90e1040b0bc61fef27ca804ec | refs/heads/master | 2022-11-30T08:09:44.294809 | 2022-11-09T18:48:45 | 2022-11-09T18:48:45 | 70,745,932 | 316 | 166 | BSD-3-Clause | 2022-11-09T18:48:46 | 2016-10-12T22:10:47 | Python | UTF-8 | Python | false | false | 3,481 | py | elsentity.py | """The (abstract) base entity module for elsapy. Used by elsprofile, elsdoc.
Additional resources:
* https://github.com/ElsevierDev/elsapy
* https://dev.elsevier.com
* https://api.elsevier.com"""
import requests, json, urllib
from abc import ABCMeta, abstractmethod
from . import log_util
log... |
d84824b1e5599fce1bdd9816c94b7cac5a695cd1 | 5130754859e274cd06f63260439e5203c2000a11 | /core/jobs/batch_jobs/suggestion_migration_jobs_test.py | 870b8c6049c05e0c00d10094995309890d48d32b | [
"Apache-2.0"
] | permissive | oppia/oppia | 8ebc9c7c7f2b336e9a79ce04533abe3956f48cbe | d16fdf23d790eafd63812bd7239532256e30a21d | refs/heads/develop | 2023-09-04T07:50:13.661276 | 2023-09-03T09:21:32 | 2023-09-03T09:21:32 | 40,687,563 | 6,172 | 4,666 | Apache-2.0 | 2023-09-14T18:25:11 | 2015-08-14T00:16:14 | Python | UTF-8 | Python | false | false | 25,059 | py | suggestion_migration_jobs_test.py | # coding: utf-8
#
# Copyright 2021 The Oppia 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 requi... |
ceebd985edc20c82801059d7772fa4ae765e7098 | bb021c074c95c4fb684cd543b288bc0b976df188 | /intake/interface/__init__.py | 580f0e1869128fab90306f694f44f6bf9431ab70 | [
"BSD-2-Clause"
] | permissive | intake/intake | 6c96d4bf32f125fbd5df322377ae2a98ac76be99 | 81b1567a2030adfb22b856b4f63cefe35de68983 | refs/heads/master | 2023-08-25T14:07:08.855001 | 2023-08-24T19:49:13 | 2023-08-24T19:49:13 | 100,307,970 | 774 | 116 | BSD-2-Clause | 2023-09-11T13:51:16 | 2017-08-14T20:44:22 | Python | UTF-8 | Python | false | false | 1,248 | py | __init__.py | # -----------------------------------------------------------------------------
# Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors
# All rights reserved.
#
# The full license is in the LICENSE file, distributed with this software.
# ----------------------------------------------------------------------... |
3e87f8e4f1d8c4f11f02bf68ac768d36e15c9408 | 8287c1677795d23856edefecaf5e878f348e99ba | /biostar/planet/models.py | e19a8e4ab14db84ce2c3581b5fb67d6a648e2c9f | [
"MIT"
] | permissive | ialbert/biostar-central | ba325593d6b3a9e2b1ebaddb6257b863b22eface | a051511350871dcd82bdf0b88ce5cda9fd9ef141 | refs/heads/master | 2023-08-30T06:07:44.892831 | 2023-07-24T15:43:02 | 2023-07-24T15:43:02 | 1,511,294 | 535 | 271 | MIT | 2023-02-15T18:49:10 | 2011-03-22T13:09:30 | Python | UTF-8 | Python | false | false | 3,185 | py | models.py | from django.db import models
from django.conf import settings
import os, logging, datetime
from urllib import request
import feedparser
from django.utils.timezone import utc
from biostar.accounts.models import User
import uuid
logger = logging.getLogger("engine")
MAX_TEXT_LEN = 10000
def now():
return datetime.d... |
d6be033778895e8fbffedd790476c08604205861 | 262af3a61864ba2aec01247075162a886551a439 | /thingsboard_gateway/connectors/mqtt/json_mqtt_uplink_converter.py | 212713b8d95369071e64c5c47f26b8d04152e1f5 | [
"Apache-2.0"
] | permissive | thingsboard/thingsboard-gateway | 1331e58013afd0872ce28120229237a886af4d0f | 0e3996bb29c60a784d990fbcdf0fcbb69a4a82ae | refs/heads/master | 2023-08-31T07:30:03.340388 | 2023-08-25T05:01:08 | 2023-08-25T05:01:08 | 78,083,065 | 1,484 | 836 | Apache-2.0 | 2023-09-12T07:50:51 | 2017-01-05T05:41:03 | Python | UTF-8 | Python | false | false | 7,401 | py | json_mqtt_uplink_converter.py | # Copyright 2022. ThingsBoard
#
# 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 ... |
58d821e76e46eadc201e036fd5276f5ee371b56f | 39241620c6271758ea97d92fa4cf9f45aa7d2510 | /src/python/aim/_ext/tracking/__init__.py | dd8d4a2764c86c351f220c7fb99bb6ac78302244 | [
"Apache-2.0"
] | permissive | aimhubio/aim | 4618e5ebdaf69d216cbe61c6187b005d443839a9 | 34e5c2c29abe9b26699760074adcadfe8fd4cfe0 | refs/heads/main | 2023-09-01T04:23:22.276343 | 2023-09-01T03:47:13 | 2023-09-01T03:47:13 | 189,640,071 | 4,091 | 276 | Apache-2.0 | 2023-09-14T15:27:03 | 2019-05-31T18:25:07 | Python | UTF-8 | Python | false | false | 4,755 | py | __init__.py | import logging
import os
import json
import sys
import uuid
import contextlib
import segment.analytics as sa # noqa
logger = logging.getLogger(__name__)
aim_profile_path = os.path.expanduser('~/.aim_profile')
class Analytics:
SEGMENT_WRITE_KEY = 'RrVqLHHD6WDXoFBkodO9KidodTtU92XO'
def __init__(self):
... |
6589a208dabea124ee6b867592ef987fba29a147 | 62179a165ec620ba967dbc20016e890978fbff50 | /tests/onnx/test_layer_attributes.py | 685507c7a18993aeba13d363d21620ac351261cf | [
"Apache-2.0"
] | permissive | openvinotoolkit/nncf | 91fcf153a96f85da166aacb7a70ca4941e4ba4a4 | c027c8b43c4865d46b8de01d8350dd338ec5a874 | refs/heads/develop | 2023-08-24T11:25:05.704499 | 2023-08-23T14:44:05 | 2023-08-23T14:44:05 | 263,687,600 | 558 | 157 | Apache-2.0 | 2023-09-14T17:06:41 | 2020-05-13T16:41:05 | Python | UTF-8 | Python | false | false | 4,363 | py | test_layer_attributes.py | # Copyright (c) 2023 Intel Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writ... |
72c05a6eb2ae8db90698f88172885cd32ccdbd9f | 83e7dc1281874779c46dfadcc15b2bb66d8e599c | /SConscript | d457d9a47de43c0b93aab4704490660219dbb580 | [
"MIT"
] | permissive | lvgl/lvgl | 7d51d6774d6ac71df7101fc7ded56fea4b70be01 | 5c984b4a5364b6455966eb3a860153806c51626f | refs/heads/master | 2023-08-30T22:39:20.283922 | 2023-08-30T19:55:29 | 2023-08-30T19:55:29 | 60,667,730 | 9,296 | 2,218 | MIT | 2023-09-14T17:59:34 | 2016-06-08T04:14:34 | C | UTF-8 | Python | false | false | 192 | SConscript | # RT-Thread building script for bridge
import os
from building import *
objs = []
cwd = GetCurrentDir()
objs = objs + SConscript(cwd + '/env_support/rt-thread/SConscript')
Return('objs')
| |
4eea4c6388a527f26ef72c89dfbd6414c6f33802 | e459a9608225b81bdb0a5b85cd19b7bd0f6df38e | /function_scheduling_distributed_framework/consumers/redis_consumer.py | a81e983cb79532155278eafa9ad44a3e06a95438 | [
"Apache-2.0"
] | permissive | ydf0509/distributed_framework | 722be4957df97bfece9ca5b43d81b4e3bb09ed8e | 1b1f32ed928fa44e0fb13fc738de90cb4339f408 | refs/heads/master | 2022-05-20T10:19:05.727086 | 2022-03-31T11:16:22 | 2022-03-31T11:16:22 | 201,225,545 | 359 | 90 | Apache-2.0 | 2021-05-08T16:50:53 | 2019-08-08T09:30:13 | Python | UTF-8 | Python | false | false | 2,592 | py | redis_consumer.py | # -*- coding: utf-8 -*-
# @Author : ydf
# @Time : 2019/8/8 0008 13:32
import json
# import time
from function_scheduling_distributed_framework.consumers.base_consumer import AbstractConsumer
from function_scheduling_distributed_framework.utils import RedisMixin
class RedisConsumer(AbstractConsumer, RedisMixin):
... |
3d1b00bb907d030f7add1c9666b414251d752f7c | 4e1dd6791505a154d92d6352e619c254e12ed574 | /wagtail_localize/migrations/0003_delete_translation_sources.py | bc4009a76fa0a7ed08f93824ad0a4a22e822af9a | [
"BSD-3-Clause"
] | permissive | wagtail/wagtail-localize | fba4b9db6c1b043a96d59178dede31dc117f9674 | 3f060bd061249815a8fbc79dc1c6e3e954ee3ecb | refs/heads/main | 2023-08-04T14:32:06.683373 | 2023-07-27T15:02:52 | 2023-07-27T15:02:52 | 179,706,908 | 183 | 72 | NOASSERTION | 2023-09-07T08:33:48 | 2019-04-05T15:21:14 | Python | UTF-8 | Python | false | false | 1,028 | py | 0003_delete_translation_sources.py | # Generated by Django 3.0.8 on 2020-08-05 09:04
from django.db import migrations
from django.db.models import OuterRef, Subquery
def delete_translation_sources(apps, schema_editor):
# Delete all but the latest source for each object
TranslatableObject = apps.get_model("wagtail_localize.TranslatableObject")
... |
0a8c555a7402c114e42ac6cbd8a415c76a9805d5 | 6fd2ab69501d71844a7329f62a3e62718fe9a9dd | /faiss/python/class_wrappers.py | 3beb66141c946ed1bdaf2549040abafab7869818 | [
"MIT"
] | permissive | facebookresearch/faiss | f6a7b9df838309e8a231653df2dc764ef43d355e | 9dc75d026d25b340771a7ef5d99b0f81a0dc5e34 | refs/heads/main | 2023-09-02T15:12:01.311542 | 2023-09-01T14:06:14 | 2023-09-01T14:06:14 | 81,227,005 | 24,723 | 3,437 | MIT | 2023-09-14T20:41:39 | 2017-02-07T16:07:05 | C++ | UTF-8 | Python | false | false | 39,537 | py | class_wrappers.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 inspect
import faiss
import numpy as np
from faiss.loader import (
DirectMap,
IDSelector,
IDSelectorArray,
IDSelector... |
488ece148f356b6605bb9ac2175e9e6581bcfa0a | 21e67cc6406a3c8063fae691a5f8b5c46bf5d53f | /tests/unit/test_client.py | 36ac9288f74353b0efa749069c62f63d3e2e960e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hetznercloud/hcloud-python | 6b524f4519fb933d65fbf039e7f78b251b493d10 | 982e35b47e36e24b140fcad84817a4b28dc09c2d | refs/heads/main | 2023-09-03T14:08:03.920174 | 2023-08-25T14:14:21 | 2023-08-25T14:14:21 | 162,585,627 | 221 | 49 | MIT | 2023-09-12T07:02:46 | 2018-12-20T13:48:22 | Python | UTF-8 | Python | false | false | 7,128 | py | test_client.py | from __future__ import annotations
import json
from unittest.mock import MagicMock
import pytest
import requests
from hcloud import APIException, Client
class TestHetznerClient:
@pytest.fixture()
def client(self):
Client._version = "0.0.0"
client = Client(token="project_token")
cli... |
59076009515369e36c552b93e3dfb10ad3065333 | c9fdae5bb4deecb3c95db7a1fb9b08f95ef9547b | /examples/map.py | e248d1b7a9d8fc93082615af84a3ba13c61c5b00 | [
"MIT"
] | permissive | meraki-analytics/cassiopeia | 2b6767116e076d883b426e6e0393ec814e8054a9 | 5002c578270ab5636ecff29357048ab02985418f | refs/heads/master | 2023-08-24T07:10:20.130880 | 2023-07-29T00:33:15 | 2023-07-29T00:33:15 | 35,975,234 | 548 | 207 | MIT | 2023-08-09T05:59:04 | 2015-05-20T21:28:16 | Python | UTF-8 | Python | false | false | 282 | py | map.py | import cassiopeia as cass
from cassiopeia import Map, Maps
def get_maps():
maps = cass.get_maps(region="NA")
for map in maps:
print(map.name, map.id)
map = Map(name="Summoner's Rift", region="NA")
print(map.id)
if __name__ == "__main__":
get_maps()
|
b38a610339e2bd88563d5c0a0b03742792ea8df2 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/cpuspeed/conftest.py | be5a87b8d132dd713a8f742991fc5e60befdfe25 | [
"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 | 2,068 | py | conftest.py | """Fixtures for CPU Speed integration tests."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from homeassistant.components.cpuspeed.const import DOMAIN
from homeassistant.core import HomeAssistant
from tests.common impor... |
e8731ff67e1f153a8b7d70fa0baae74fa92a0019 | 704976ea552111c6a5af9cd7cb62b9d9abaf3996 | /pypy/module/__pypy__/interp_builders.py | 75af127636d132c9795aba178a3ad9c58b9a9531 | [
"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 | 2,415 | py | interp_builders.py | from pypy.interpreter.baseobjspace import W_Root
from pypy.interpreter.error import oefmt
from pypy.interpreter.gateway import interp2app, unwrap_spec
from pypy.interpreter.typedef import TypeDef
from rpython.rlib.rstring import UnicodeBuilder, StringBuilder
from rpython.tool.sourcetools import func_with_new_name
def... |
41bed5d0719cd53622e30ba1d348147aa3a70ae3 | 05b85a5260e6a7b236693300208b35bde1ca73ee | /tests/test_auth_app/test_include_admin_routes.py | 0b57425447c49ac61c5a5c8774c922b1c04a59d0 | [
"MIT"
] | permissive | dmontagu/fastapi-auth | d05e3440ee829e57cc7cdac1a987ac51b4e87f3a | d0e86774f66bd43e80376de19bdf034eb228dc07 | refs/heads/master | 2023-02-16T20:41:35.883202 | 2019-12-18T03:10:51 | 2019-12-18T04:11:46 | 228,746,139 | 131 | 10 | MIT | 2023-02-14T21:35:22 | 2019-12-18T03:00:54 | Python | UTF-8 | Python | false | false | 297 | py | test_include_admin_routes.py | from tests.test_auth_app.build_app import get_test_app
def test_excluded() -> None:
app = get_test_app(include_admin_routes=False)
assert len(app.router.routes) == 9
def test_included() -> None:
app = get_test_app(include_admin_routes=True)
assert len(app.router.routes) == 13
|
eae5b883e17aad20df91761eb03b9ba9fadeb6dc | cb35df97989fcc46831a8adb8de3434b94fd2ecd | /tests/benchmarks/bm_mesh_io.py | 37155fae34691442d4f1acb0e47a1563f0746ba6 | [
"MIT",
"BSD-3-Clause"
] | permissive | facebookresearch/pytorch3d | 6d93b28c0f36a4b7efa0a8143726200c252d3502 | a3d99cab6bf5eb69be8d5eb48895da6edd859565 | refs/heads/main | 2023-09-01T16:26:58.756831 | 2023-08-26T20:55:56 | 2023-08-26T20:55:56 | 217,433,767 | 7,964 | 1,342 | NOASSERTION | 2023-08-25T10:00:26 | 2019-10-25T02:23:45 | Python | UTF-8 | Python | false | false | 2,621 | py | bm_mesh_io.py | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from itertools import product
from fvcore.common.benchmark import benchmark
from tests.test_io_obj import Test... |
5643164cf51476f88bc20610e186a6110a31c763 | 3dee0bd6d42e548ef15ad0f43c9f810f18455b70 | /bulkprovision/lambda_email.py | 344603606f3e0147c5e6c738dde332eca27b8285 | [
"Apache-2.0"
] | permissive | aws-samples/aws-service-catalog-reference-architectures | aa38e9ef9ad2fb7f4fdf09971ec490fa7e8e1647 | e57697a3dfa330fecb249f508467f2f97a061a16 | refs/heads/master | 2023-09-01T14:36:35.804458 | 2022-12-20T21:06:32 | 2022-12-20T21:06:32 | 125,886,663 | 424 | 238 | Apache-2.0 | 2023-08-24T13:31:13 | 2018-03-19T16:17:54 | JavaScript | UTF-8 | Python | false | false | 3,873 | py | lambda_email.py | import os
import json
import boto3
import logging
import time
logger = logging.getLogger()
#Ken Walsh 4-20-2020
#Reporting
s3client = boto3.client('s3')
dyclient = boto3.client('dynamodb')
ses_client = boto3.client('ses')
def lambda_handler(event,context):
_beg = "<html><head><title>Servic Catalog Bulk Deploy... |
738aef224aae3f2d625199376d53ca62d1e90bdd | 11bd2e7d6e686f3bcf5fe0f0e5da0a155aeb009f | /gcp_variant_transforms/transforms/combine_sample_ids_test.py | 85420a7ee0a3a147388812a0f72145db38b8a1cd | [
"Apache-2.0"
] | permissive | googlegenomics/gcp-variant-transforms | 723e08983b69e0767d28cd41d5650f9c10cda00a | 47844f7f1d2d40948674d127037eb666ae552beb | refs/heads/master | 2022-05-17T23:53:25.225569 | 2022-03-31T18:31:06 | 2022-03-31T18:31:06 | 110,025,283 | 131 | 66 | Apache-2.0 | 2022-03-29T12:06:10 | 2017-11-08T20:12:08 | Python | UTF-8 | Python | false | false | 4,272 | py | combine_sample_ids_test.py | # Copyright 2018 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... |
757a9f24da4ddfeff7e6898d2d82f9a7269f7d73 | 632f6f14abb1dbdf86aca1506b8012392bef2a41 | /tools/combine_images.py | 789f8df0bb675441700c13b7b4cfdc6e4beeac2a | [
"Apache-2.0"
] | permissive | ARMmbed/DAPLink | a34f7ce41d6bfc38d49283766a03280f52322f2a | 19f797fa6396b726250c57eb9be80245a5f877dd | refs/heads/main | 2023-08-23T20:37:22.744671 | 2023-06-29T19:36:00 | 2023-08-16T16:39:58 | 24,571,059 | 1,865 | 883 | Apache-2.0 | 2023-08-16T16:39:59 | 2014-09-28T21:38:24 | C | UTF-8 | Python | false | false | 3,696 | py | combine_images.py | #!/usr/bin/env python
#
# DAPLink Interface Firmware
# Copyright (c) 2009-2016, ARM Limited, 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 Li... |
6fc2558b006aa209ae460d3921eba10dea5fe197 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_0/_pkg0_0_0_1/_pkg0_0_0_1_0/_mod0_0_0_1_0_0.py | f6d90f0c9b03b02d9d0d2a209186524504868cc2 | [
"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 | 128 | py | _mod0_0_0_1_0_0.py | name0_0_0_1_0_0_0 = None
name0_0_0_1_0_0_1 = None
name0_0_0_1_0_0_2 = None
name0_0_0_1_0_0_3 = None
name0_0_0_1_0_0_4 = None |
42970b5418e408895c8dfed06cd61abd2ec543da | 9940f6579e010bb7c1fa13885c49bbaf6164723b | /lbry/wallet/bcd_data_stream.py | 1c04be0055d91d6336afb066cf642e0d0011ab96 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lbryio/lbry-sdk | feaf1143b178b496a9d81c99faf51fac60e6fed1 | eb5da9511e162ef1080cb34af2ee087383cfa94a | refs/heads/master | 2023-08-18T13:06:16.106204 | 2023-02-07T18:50:25 | 2023-04-03T17:34:36 | 41,103,286 | 5,272 | 291 | MIT | 2023-06-28T16:36:20 | 2015-08-20T15:24:10 | Python | UTF-8 | Python | false | false | 2,998 | py | bcd_data_stream.py | import struct
from io import BytesIO
class BCDataStream:
def __init__(self, data=None):
self.data = BytesIO(data)
def reset(self):
self.data.seek(0)
def get_bytes(self):
return self.data.getvalue()
def read(self, size):
return self.data.read(size)
def write(sel... |
29766d87003088aa23016f5bc90552db9da14368 | 753cd066a9bd26b6c37c8d53a86c7a9c659ec18c | /nlp/dolly/popxl/modelling/attention.py | 317ed015c31ff792194e42d3eaf7930e3ff33336 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | graphcore/examples | ac872015808ed2a913d4d7bf0d63202ce15ebbae | e2f834dd60e7939672c1795b4ac62e89ad0bca49 | refs/heads/master | 2023-08-05T02:08:12.341836 | 2023-07-27T11:13:10 | 2023-07-27T11:13:10 | 143,977,106 | 311 | 80 | MIT | 2023-09-11T16:42:56 | 2018-08-08T07:29:17 | Python | UTF-8 | Python | false | false | 7,066 | py | attention.py | # Copyright (c) 2023 Graphcore Ltd. All rights reserved.
import numpy as np
from typing import Dict
import math
import popxl
from popxl import ops, ReplicaGrouping
from popxl.utils import to_numpy
from typing import Optional
import popxl_addons as addons
from popxl_addons import NamedTensors
from popxl_addons.array_m... |
07715060331b52ac81b2002b012e997f444ef9d7 | 1fb7d21fdb9d0ee6f2a53e626f862d54dcccdbce | /utils/request.py | 46d76ddde2a4e24b1fe4ab41979991aaa3a63ea7 | [
"MIT"
] | permissive | xfgryujk/blivechat | 2b1db9de1047344e45051d680461d8ff61bdd99e | fe141bc8fda73e2a683c43181bc4043f9739bb1b | refs/heads/dev | 2023-09-04T10:21:50.371035 | 2023-09-03T14:53:15 | 2023-09-03T14:53:15 | 187,993,487 | 1,695 | 196 | MIT | 2023-09-11T11:07:26 | 2019-05-22T08:13:21 | JavaScript | UTF-8 | Python | false | false | 747 | py | request.py | # -*- coding: utf-8 -*-
import asyncio
from typing import *
import aiohttp
# 不带这堆头部有时候也能成功请求,但是带上后成功的概率更高
BILIBILI_COMMON_HEADERS = {
'Origin': 'https://www.bilibili.com',
'Referer': 'https://www.bilibili.com/',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko... |
f060d68711fda96ea1bd7bd8f15aef90586685cc | 15f0514701a78e12750f68ba09d68095172493ee | /Python3/1189.py | 46a8a971049cf43ac0d2c9b49c4a50fe7e603e72 | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | Python | false | false | 534 | py | 1189.py | __________________________________________________________________________________________________
sample 36 ms submission
class Solution:
def maxNumberOfBalloons(self, text: str) -> int:
counter = collections.Counter(text)
return min(counter["a"], counter["b"], counter["n"], min(counter["l"], count... |
cf24e6aff0114f60f0ac3f6ee5371ad290f4f7a4 | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /chromium/third_party/blink/web_tests/external/wpt/webdriver/tests/support/image.py | 2e7ad8c1309b2b4a1e02b424cbd74a610535a4ed | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0",
"MIT"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | Python | false | false | 299 | py | image.py | import math
import struct
from base64 import decodebytes
from tests.support.asserts import assert_png
def png_dimensions(screenshot):
assert_png(screenshot)
image = decodebytes(screenshot.encode())
width, height = struct.unpack(">LL", image[16:24])
return int(width), int(height)
|
90ac16233cbc8296be3021434053799785f3aecc | f509ab9825c542e09b0c6591d86ef1f9feb540a6 | /pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxr/interface/configure.py | 82e7270b631e6abf0c8f5a9df3fb439d421a0970 | [
"Apache-2.0"
] | permissive | CiscoTestAutomation/genielibs | 97f597117193aaa18028defeb69078ebb241173a | e42e51475cddcb10f5c7814d0fe892ac865742ba | refs/heads/master | 2023-08-11T16:39:41.959947 | 2023-07-27T17:58:42 | 2023-07-27T17:58:42 | 130,717,047 | 109 | 60 | Apache-2.0 | 2023-08-29T22:32:08 | 2018-04-23T15:21:56 | Python | UTF-8 | Python | false | false | 2,965 | py | configure.py | """Common configure functions for Interface"""
# Python
import logging
# Unicon
from unicon.core.errors import SubCommandFailure
log = logging.getLogger(__name__)
def configure_interface_point_to_point(device, process_id, interface):
""" Configure Interface point to point
Args:
device ('ob... |
34690e144734c4fc34140bf7bd80b21faabbf199 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayDataDataserviceAntdataassetsUploadjobCreateModel.py | 4c32a24b4150854ecfdfb69ee5941c2b5142028f | [
"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,069 | py | AlipayDataDataserviceAntdataassetsUploadjobCreateModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AntdataassetsOdpsColumn import AntdataassetsOdpsColumn
class AlipayDataDataserviceAntdataassetsUploadjobCreateModel(object):
def __init__(self):
self._guid = None
... |
3a35c20c005d07458058203ad21ba4d9e4f7265c | 9161d1421be019e0573bd123460fe69e7cce4cb9 | /mosqito/sq_metrics/loudness/loudness_zwtv/_third_octave_levels.py | 790edbb1a1f3d7925913fd517b1d514b8925be60 | [
"Apache-2.0",
"GPL-1.0-or-later"
] | permissive | Eomys/MoSQITo | dadbc9159bfef348b1b762a0c8bef8a7f3ed1ef0 | b6bf207ef4ac422fa075b5117bb186281b52b7c1 | refs/heads/master | 2023-08-03T13:02:07.943373 | 2022-12-23T15:31:36 | 2022-12-23T15:31:36 | 249,368,386 | 107 | 40 | Apache-2.0 | 2023-08-02T15:47:18 | 2020-03-23T07:56:37 | Jupyter Notebook | UTF-8 | Python | false | false | 9,549 | py | _third_octave_levels.py | # -*- coding: utf-8 -*-
"""
@date Created on Fri May 22 2020
@author martin_g for Eomys
"""
# Third party imports
import numpy as np
from scipy import signal
# Local application imports
from mosqito.sq_metrics.loudness.loudness_zwtv._square_and_smooth import (
_square_and_smooth,
)
def _third_octave_levels(sig,... |
047c7335d73e4c5815064f66c2a739fa124233a9 | 4658aa41017b2e6da830f1e879774e4a7296c314 | /holoviews/tests/util/test_help.py | 583bd1756fe507eaddee85bfdcf44a9e5e5e9a49 | [
"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 | 230 | py | test_help.py | import holoviews as hv
def test_help_pattern(capsys):
import holoviews.plotting.bokeh # noqa
hv.help(hv.Curve, pattern='border')
captured = capsys.readouterr()
assert '\x1b[43;1;30mborder\x1b[0m' in captured.out
|
24db45ae614a8532f8598232455bd41cea1b0469 | 47542e6b98c19592f44ce44297771c698d4987f7 | /ch09/09_12.py | 0fd6de775716186167aa6b90818281bcdd7fddac | [
"Apache-2.0"
] | permissive | sharebook-kr/book-cryptocurrency | 235b6998668265ec804451afddd245a52824f51a | 847ba97ba096c257b35f5e507cd33fa6a0724860 | refs/heads/master | 2022-12-14T05:24:52.765589 | 2022-11-30T01:35:08 | 2022-11-30T01:35:08 | 128,632,349 | 162 | 141 | Apache-2.0 | 2022-11-30T01:35:09 | 2018-04-08T11:05:17 | Python | UTF-8 | Python | false | false | 332 | py | 09_12.py | # korbit websocket connection
import websockets
import asyncio
async def korbit_ws_client():
uri = "wss://ws.korbit.co.kr/v1/user/push"
async with websockets.connect(uri) as websocket:
greeting = await websocket.recv()
print(greeting)
async def main():
await korbit_ws_client()
asyncio... |
c35a9f8348878dd82f775f6c5898c004fa755e54 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-ScreenSaver/Examples/SillyBallsSaver/setup.py | 04606b9d7fc35d6ce26bcc586fb5a3e86c341a6b | [
"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 | 378 | py | setup.py | """
Script for building the example.
Usage:
python3 setup.py py2app
"""
from setuptools import setup
plist = {"NSPrincipalClass": "SillyBalls"}
setup(
plugin=["SillyBalls.py"],
data_files=["English.lproj"],
options={"py2app": {"extension": ".saver", "plist": plist}},
setup_requires=["py2app", "py... |
17abc6dea2b28f927f76f52266e851dd01025f93 | 391dfd77c1bb85c08b4ead451ecdab0858eb141f | /moderngl_window/context/headless/keys.py | 1d5fbd08f5a82874b4e52be9c594c1996f63a887 | [
"MIT"
] | permissive | moderngl/moderngl-window | 308682b5aa625dbb49ca554459bed9853a5e69c3 | 200f2b9ea8b350b0ac9bb6a2d24310c0d8227794 | refs/heads/master | 2023-05-28T00:33:49.924394 | 2023-05-18T11:06:26 | 2023-05-18T11:06:26 | 172,498,670 | 205 | 48 | MIT | 2023-09-01T17:45:51 | 2019-02-25T12:05:57 | Python | UTF-8 | Python | false | false | 88 | py | keys.py | from moderngl_window.context.base import BaseKeys
class Keys(BaseKeys):
pass
|
40fd0766b16621e11c27d221b99fb66326216167 | e61e664d95af3b93150cda5b92695be6551d2a7c | /vega/algorithms/nas/modnas/core/__init__.py | 477f5ca64f6d8f307b69a94656242612ba76b0ea | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/vega | 44aaf8bb28b45f707ed6cd4e871ba70fc0c04846 | 12e37a1991eb6771a2999fe0a46ddda920c47948 | refs/heads/master | 2023-09-01T20:16:28.746745 | 2023-02-15T09:36:59 | 2023-02-15T09:36:59 | 273,667,533 | 850 | 184 | NOASSERTION | 2023-02-15T09:37:01 | 2020-06-20T08:20:06 | Python | UTF-8 | Python | false | false | 1,372 | py | __init__.py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. 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... |
3087920af33efb6e030b43b949281196f6d7ac7d | 2181883c8faac55bfc969a97d22d9b24a3e81ab3 | /com/win32com/test/testStreams.py | b43da524f3f006b823430657d0a3ddb8ba545514 | [
"PSF-2.0"
] | permissive | mhammond/pywin32 | 574bf121cfeac8c7a9d28f94ee0f2069a425e8ab | 2a7137f21965013020ef9e4f27565db6dea59003 | refs/heads/main | 2023-09-02T13:16:52.307262 | 2023-08-17T19:42:26 | 2023-08-17T19:42:26 | 108,187,130 | 4,757 | 907 | null | 2023-08-23T01:45:49 | 2017-10-24T21:44:27 | C++ | UTF-8 | Python | false | false | 4,213 | py | testStreams.py | import unittest
import pythoncom
import win32com.server.util
import win32com.test.util
class Persists:
_public_methods_ = [
"GetClassID",
"IsDirty",
"Load",
"Save",
"GetSizeMax",
"InitNew",
]
_com_interfaces_ = [pythoncom.IID_IPersistStreamInit]
def __... |
a5201bb34b3c1a3828602ad264b02f331097cbee | 820b6af9fd43b270749224bb278e5f714f655ac9 | /Filters/Points/Testing/Python/TestPointInterpolator2D2.py | dc2d2647bb2fff971d931609f5b606d63e45b07b | [
"BSD-3-Clause"
] | permissive | Kitware/VTK | 49dee7d4f83401efce8826f1759cd5d9caa281d1 | dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271 | refs/heads/master | 2023-09-01T10:21:57.496189 | 2023-09-01T08:20:15 | 2023-09-01T08:21:05 | 631,615 | 2,253 | 1,243 | NOASSERTION | 2023-09-14T07:53:03 | 2010-04-27T15:12:58 | C++ | UTF-8 | Python | false | false | 3,490 | py | TestPointInterpolator2D2.py | #!/usr/bin/env python
from vtkmodules.vtkCommonCore import (
vtkLookupTable,
vtkMath,
)
from vtkmodules.vtkCommonSystem import vtkTimerLog
from vtkmodules.vtkFiltersCore import vtkContourFilter
from vtkmodules.vtkFiltersPoints import (
vtkGaussianKernel,
vtkPointInterpolator2D,
)
from vtkmodules.vtkFilt... |
47e38367c5bf19b5ea429b40166c23add2f52e96 | cb8734b96e22532dce6380f1e9f621324b1fc076 | /menpo3d/io/input/mesh/base.py | 9617338ae09b2586fff7e46d7cc7b07b68126aa3 | [
"BSD-3-Clause"
] | permissive | menpo/menpo3d | 3168d3d23f9b3f0520ab0834dc3011dec5069b14 | 6650918e786ac98112387b97f5ecf8cc67025f9f | refs/heads/master | 2022-11-10T05:45:06.267175 | 2022-11-09T14:51:55 | 2022-11-09T14:51:55 | 24,769,446 | 168 | 53 | NOASSERTION | 2022-11-09T14:46:57 | 2014-10-03T18:38:31 | Python | UTF-8 | Python | false | false | 11,567 | py | base.py | import warnings
import json
import numpy as np
import menpo.io as mio
from menpo.shape import ColouredTriMesh, TexturedTriMesh, TriMesh, PointCloud
def _construct_shape_type(points, trilist, tcoords, texture, colour_per_vertex):
r"""
Construct the correct Shape subclass given the inputs. TexturedTriMesh
... |
8ee114919d023e649698183cfa04a0d6b35c0211 | d975a74c5efe4d9790566818c3ca43a70c6ce817 | /cvise/passes/line_markers.py | e08c42ac3d6273358e0ae0a694a450959da61fd3 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marxin/cvise | cd24ce051a90b709b5a8e919ff8db2805734981d | 594573e041cc2e906c1a81a4aca81ede93efee4a | refs/heads/master | 2023-08-31T13:24:35.500801 | 2023-08-20T13:16:15 | 2023-08-20T13:16:15 | 256,755,439 | 164 | 17 | NOASSERTION | 2023-09-14T14:41:58 | 2020-04-18T13:04:05 | C++ | UTF-8 | Python | false | false | 1,491 | py | line_markers.py | import os
import re
import shutil
import tempfile
from cvise.passes.abstract import AbstractPass, BinaryState, PassResult
class LineMarkersPass(AbstractPass):
line_regex = re.compile('^\\s*#\\s*[0-9]+')
def check_prerequisites(self):
return True
def __count_instances(self, test_case):
c... |
b9b940c27bf5d95e09ac17ae96eef306a349b826 | c2457b9e41bd8670801bb56919b9f081e2c1b03f | /py/kubeflow/kubeflow/cd/notebook_servers/notebook_server_jupyter_tensorflow_full_runner.py | 1a8395f8984cd7644e880adeaa030870ede54e97 | [
"Apache-2.0"
] | permissive | kubeflow/kubeflow | 54e8615bfab8364a598298510f414fa682ed77e3 | d1c40f916225ecb40826400595ea99096a2adbb7 | refs/heads/master | 2023-09-03T19:52:25.590966 | 2023-08-25T21:07:33 | 2023-08-25T21:07:33 | 112,647,343 | 10,983 | 2,282 | Apache-2.0 | 2023-09-12T23:24:22 | 2017-11-30T18:44:19 | TypeScript | UTF-8 | Python | false | false | 234 | py | notebook_server_jupyter_tensorflow_full_runner.py | # This file is only intended for development purposes
from kubeflow.kubeflow.cd import base_runner
base_runner.main(
component_name="notebook_servers.notebook_server_jupyter_tensorflow_full",
workflow_name="nb-j-tf-f-build")
|
da87e4bcdd0f564cab8c871271061ed80700317a | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/models/sql_management_client_enums.py | 90b01d122079dbf46632af8be5116589115d94ca | [
"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 | 13,625 | py | sql_management_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 ... |
48a1ed660adcbbce36718d4ab7c680d0163935d4 | 551990e68feda34d2a9173b05cc3a7259f4e8c9a | /direct/data/datasets_config.py | 2d4e4d324fd0e2e1a9f28b7b4a5fc4c0c7e77e37 | [
"Apache-2.0"
] | permissive | NKI-AI/direct | a5c1ca0cb75d709b62e94ff76aba361e188d2d59 | 2a4c29342bc52a404aae097bc2654fb4323e1ac8 | refs/heads/main | 2023-08-03T11:37:52.941124 | 2023-06-28T14:11:56 | 2023-06-28T14:11:56 | 269,966,010 | 151 | 35 | Apache-2.0 | 2023-06-28T14:11:58 | 2020-06-06T11:53:07 | Python | UTF-8 | Python | false | false | 3,419 | py | datasets_config.py | # coding=utf-8
# Copyright (c) DIRECT Contributors
"""Classes holding the typed configurations for the datasets."""
from dataclasses import dataclass
from typing import List, Optional, Tuple
from omegaconf import MISSING
from direct.common.subsample_config import MaskingConfig
from direct.config.defaults import Bas... |
916b3cf0ec218741e8827b003c2c3fdf04801d9e | 2d6323b8ccaf08a8929dba79fb9575c436977bd4 | /docassemble_webapp/docassemble/webapp/worker_tasks.py | 9fe9d2f81cda83c79787829c2d805a07aabb28e0 | [
"MIT"
] | permissive | jhpyle/docassemble | f1c36e73d02807a7052b860dfceecdfa88e728c7 | 8726242cfbe3a15cad610dc2b518346be68ab142 | refs/heads/master | 2023-09-01T20:03:39.497473 | 2023-08-26T12:44:45 | 2023-08-26T12:44:45 | 34,148,903 | 691 | 300 | MIT | 2023-09-09T20:08:14 | 2015-04-18T02:09:32 | Python | UTF-8 | Python | false | false | 84,270 | py | worker_tasks.py | import copy
import datetime
import json
import os
import re
import subprocess
import sys
import time
import traceback
from urllib.parse import quote
import httplib2
import iso8601
import oauth2client.client
from docassemble.base.logger import logmessage
from docassemble.base.config import daconfig, hostname
from docass... |
a3efbbd6d4e5fd0c62b517d129dcabdf1a24ad07 | a12b448f44beb4d521cb7e31677281f41df35f0b | /benchmarks/DNN/blocks/fusedresNet_inference/cpu/sparse/convert_dense_to_csr.py | fd21e678ab1d836f5bb11475ccd39da8f355c9a9 | [
"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 | 2,009 | py | convert_dense_to_csr.py | import numpy as np
# Blocking to set in order to generate a data where FIN is blocked (for blocked traversal)
############ PARAMETERS TO SET
dense_filename = "resnet_10.npy"
sparse_output_filename = "resnet_10.csr"
N = 224 # Input height and width
FIN_BL = 8
###############################
# The output file's format i... |
f1ac207b50eb38ab8297131b426acc0f9b8b9218 | 1ba293e5a7e675c07ea2fb0ef6393eeb482c12fb | /src/kwja/utils/dependency_parsing.py | 842c38ad9ceb77eaf19aee424e8dbd5eeb0acc53 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ku-nlp/kwja | b75ed5a19543dac0fed6db0de7efb0ee41f41edd | 53594c7808de1845ebf8d5afe7b5c81bfffa7ba1 | refs/heads/main | 2023-09-02T22:30:46.843141 | 2023-08-28T07:57:23 | 2023-08-28T07:57:23 | 496,122,031 | 111 | 5 | MIT | 2023-09-05T01:25:47 | 2022-05-25T07:12:43 | Python | UTF-8 | Python | false | false | 1,270 | py | dependency_parsing.py | from collections import defaultdict
from typing import Dict, Set
class DependencyManager:
def __init__(self) -> None:
self.directed_graph: Dict[int, Set[int]] = defaultdict(set)
self.root = False
def add_edge(self, source: int, target: int) -> None:
self.directed_graph[source].add(tar... |
f34f60e0b4e4b668b827250a382484c9dc049f83 | 41aacb6e11df413da7babb9471698464204d0132 | /allel/abc.py | c9192b312f5bdfc54b09c7fdba725fc32799bf56 | [
"MIT"
] | permissive | cggh/scikit-allel | 005e59e31aecb4663e2415f7c4f3f905bd338555 | 184392f2fa3a681c6d2863be2187dd5cccb7f08a | refs/heads/master | 2023-08-05T22:54:25.849812 | 2023-05-17T19:19:38 | 2023-05-17T19:19:38 | 29,883,079 | 265 | 57 | MIT | 2023-09-07T15:42:09 | 2015-01-26T21:42:44 | Jupyter Notebook | UTF-8 | Python | false | false | 14,839 | py | abc.py | # -*- coding: utf-8 -*-
# third-party imports
import numpy as np
class ArrayWrapper(object):
"""Abstract base class that delegates to a wrapped array-like object."""
def __init__(self, data):
if isinstance(data, ArrayWrapper):
# don't wrap a wrapper
data = data.values
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.