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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0b4d380dbaa29122cc0b7dbc0e89133f8f4d6840 | 7d5130ac931ef5c81ee83fdba777c97558286903 | /contrib/zeromq/test-server.py | d89b37ba207f41ee29bcda4a9358a3181867e8b6 | [
"Apache-2.0",
"MIT",
"FSFAP",
"LicenseRef-scancode-public-domain-disclaimer",
"BSD-3-Clause"
] | permissive | apache/thrift | 32766b7b1064cc94df32a0928def1577aff87cc7 | 4e4461a946df3a426e54023cc238417f2b14a070 | refs/heads/master | 2023-09-01T00:04:29.045060 | 2023-08-10T15:54:54 | 2023-08-14T20:31:22 | 310,611 | 9,715 | 4,271 | Apache-2.0 | 2023-09-04T11:34:05 | 2009-09-18T08:00:17 | C++ | UTF-8 | Python | false | false | 804 | py | test-server.py | #!/usr/bin/env python
import zmq
import TZmqServer
import storage.ttypes
import storage.Storage
class StorageHandler(storage.Storage.Iface):
def __init__(self):
self.value = 0
def incr(self, amount):
self.value += amount
def get(self):
return self.value
def main():
handler ... |
15a7cdcbfb1d4450cccb0a3e87235fa456a5a124 | afc3558e47ea4c82cb70190743472274eae7aeb1 | /configs/textrecog/_base_/datasets/cute80.py | 9d96e36f94dbc8c563fda1093988d9d6304d39ac | [
"Apache-2.0"
] | permissive | open-mmlab/mmocr | 86a77fb77ca80cede9c41a9a22080eeeaf364002 | 9551af6e5a2482e72a2af1e3b8597fd54b999d69 | refs/heads/main | 2023-08-03T14:06:11.075037 | 2023-07-26T02:32:14 | 2023-07-26T02:32:14 | 355,559,187 | 3,734 | 801 | Apache-2.0 | 2023-09-12T03:17:12 | 2021-04-07T13:40:21 | Python | UTF-8 | Python | false | false | 214 | py | cute80.py | cute80_textrecog_data_root = 'data/cute80'
cute80_textrecog_test = dict(
type='OCRDataset',
data_root=cute80_textrecog_data_root,
ann_file='textrecog_test.json',
test_mode=True,
pipeline=None)
|
aacb24309f06141331669f8e0fbbec0d6e886989 | 472c0ba1911619f8e2e1a68b4f956fad05be4e94 | /src/matlab2cpp/rules/_cx_vec.py | 80c66c92b225677ddaf741340ff88b27e74d1285 | [
"BSD-3-Clause"
] | permissive | jonathf/matlab2cpp | f8b9541cf79507ec764b04b8211e73c47a20c131 | b6e2cbaedb36c909952911adfe44fe26252a36a1 | refs/heads/master | 2022-08-08T21:28:23.028072 | 2022-07-15T19:58:01 | 2022-07-15T19:58:01 | 31,599,354 | 197 | 68 | BSD-3-Clause | 2022-07-15T19:58:02 | 2015-03-03T13:20:32 | Python | UTF-8 | Python | false | false | 109 | py | _cx_vec.py | from .assign import Assign
from .variables import *
from .vec import Get, Set
Declare = "cx_vec %(name)s ;"
|
1a2074815e8d9a5deaf17481d67f3c8f8556df18 | b490dedc900614dd6bf98aff649dd4d7368e0f8a | /__init__.py | 31c1cf63251034e18f6564b81d6d505ee5b3b83b | [
"MIT"
] | permissive | pandastrike/bayzee | 0787d7abaa7f9d1bb78fd2f9a9664aeb81b78418 | 76548b7cd7848bb2b9ca63daebf03057d672fa34 | refs/heads/master | 2021-01-19T01:55:05.271156 | 2016-08-02T13:18:54 | 2016-08-02T13:18:54 | 16,742,762 | 142 | 27 | null | null | null | null | UTF-8 | Python | false | false | 5,154 | py | __init__.py | import sys
import yaml
import os
import imp
import logging
from src import annotation_dispatcher, annotation_worker
from src import generation_dispatcher, generation_worker
from src import classification_dispatcher, classification_worker
__name__ = "bayzee"
def __loadConfig(configFilePath):
config = None
if not o... |
9791f4cf0d7344844bff06bb812d87919afb8c2d | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/keyvault/azure-keyvault-administration/samples/access_control_operations.py | d884c0767b4349b9a03e1b0d45b6f6685db8a1fa | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,688 | py | access_control_operations.py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import os
# ----------------------------------------------------------------------------------------------------------
# Prerequisites:
# 1. A managed HSM (https://docs... |
c32323585fe203d43de3b0b237604a6946ed7b04 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/meeting_credentials.py | cacc2272a2640c033e5c39ef0edcb60d884905a7 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,527 | py | meeting_credentials.py | import base64
import datetime
import json
import time
import six
import uuid
from hashlib import sha256
import hmac
from huaweicloudsdkcore.auth.credentials import Credentials
from huaweicloudsdkcore.exceptions.exceptions import SdkException, ApiValueError
from huaweicloudsdkcore.sdk_request import SdkRequest
from hu... |
915f5d9d954df05a433f1dc41e18126e638b45c5 | 7343ece3b82ac87a594865c4074623b45b0297b4 | /synapse/rest/consent/consent_resource.py | 25f9ea285bca9734b3afa548cc4d099da43c2c65 | [
"Apache-2.0"
] | permissive | matrix-org/synapse | a00111f83310783b78e2996557f8bbae4d9fb229 | d35bed8369514fe727b4fe1afb68f48cc8b2655a | refs/heads/develop | 2023-09-05T05:24:20.808942 | 2023-09-04T16:14:09 | 2023-09-04T16:14:09 | 22,844,864 | 12,215 | 2,869 | Apache-2.0 | 2023-09-14T15:20:48 | 2014-08-11T15:51:42 | Python | UTF-8 | Python | false | false | 7,733 | py | consent_resource.py | # Copyright 2018 New Vector 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 in writin... |
aaafdca805398b88d7855d745a382483fb607640 | 3cf8454257ce93926a39bd379a2f0f7a61a860e8 | /mtools/mplotqueries/mplotqueries.py | 7f3226aaac8a8c7a5bb59bcb64851233d118682c | [
"Apache-2.0"
] | permissive | rueckstiess/mtools | 12e6e73a06934bd49dc53623162fd70f6f676905 | 370e598527949077859dbe4a9fcfe0b9c9f2d1d2 | refs/heads/develop | 2023-08-25T02:16:05.206326 | 2023-05-02T04:49:18 | 2023-05-02T05:57:19 | 5,806,020 | 1,654 | 396 | Apache-2.0 | 2023-09-04T03:59:53 | 2012-09-14T07:28:16 | Python | UTF-8 | Python | false | false | 28,141 | py | mplotqueries.py | #!/usr/bin/env python3
import glob
import inspect
import os
import pickle
import sys
import uuid
from datetime import timedelta
from dateutil.tz import tzutc
from mtools import __version__
from mtools.util.cmdlinetool import LogFileTool
try:
import matplotlib
import matplotlib.pyplot as plt
from matplot... |
31044a5109120c883d856985765442b80508c73a | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /draw fractal/Fractal_tree/Fractal_tree__Qt_gui.py | 0389a994c17e6391a945e058f1cb0806311ca166 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 2,205 | py | Fractal_tree__Qt_gui.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
"""
Фрактальное дерево / Fractal tree
"""
import math
import io
from PIL import Image, ImageDraw
try:
from PyQt5.QtWidgets import (
QApplication,
QWidget,
QLabel,
QPushButton,
QVBoxLayout,
Q... |
0ac3733c0ca88fe1d725aa7dec798aa7e60d3861 | cf8182ecc88888719cfaff79751834500800151a | /applications/msplicer/plif.py | 5864151adaf2dca428081ee90b7a56610dba275b | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"DOC",
"GPL-3.0-only"
] | permissive | shogun-toolbox/shogun | 17beb82a04fbf1179d300c4fcd16ee68850ad994 | 9b8d856971af5a295dd6ad70623ae45647a6334c | refs/heads/develop | 2023-03-11T04:46:36.167073 | 2020-12-08T16:56:38 | 2020-12-08T16:56:38 | 1,555,094 | 2,938 | 1,246 | BSD-3-Clause | 2022-08-12T11:12:34 | 2011-04-01T10:44:32 | C++ | UTF-8 | Python | false | false | 8,209 | py | plif.py | # This software is distributed under BSD 3-clause license (see LICENSE file).
#
# Authors: Soeren Sonnenburg, Gunnar Raetsch
from numpy import array
from shogun import Plif
from shogun import PlifArray
from shogun import DynamicPlifArray
class plif:
def __init__(self, model):
min_exon_len=2
min_intron_len=30
m... |
f936c6a60bd9432d77a93e45c95a106770368ff6 | 6f797bae522927214b4c4065d88b92d6fff127e0 | /kur/sources/unzip_source.py | 4652f3a93acc0b4fb989b15b851d3a599f8e7a70 | [
"Apache-2.0",
"Python-2.0"
] | permissive | deepgram/kur | 5a3c6b5dba462327ccb134dcde53bf60ee4bf1fd | fd0c120e50815c1e5be64e5dde964dcd47234556 | refs/heads/master | 2023-08-17T11:38:47.613445 | 2020-11-04T19:09:50 | 2020-11-04T19:09:50 | 74,182,569 | 873 | 139 | Apache-2.0 | 2023-01-28T21:50:24 | 2016-11-19T02:42:09 | Python | UTF-8 | Python | false | false | 1,660 | py | unzip_source.py | """
Copyright 2017 Deepgram
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... |
b72459106fac3d30e1f7e1fd83f706e183c3db9f | 18ad3a6818cd9d8243e2fe41d65bc76530e6dbae | /torchreid/metrics/rank_cylib/setup.py | ce2aeb7376092aa53ee32671a133bb57ee5941a2 | [
"MIT"
] | permissive | KaiyangZhou/deep-person-reid | 55fe2fa0306847c5447d1c70fecd1f585758ae5e | 566a56a2cb255f59ba75aa817032621784df546a | refs/heads/master | 2023-09-02T21:55:37.749729 | 2023-02-08T02:52:17 | 2023-02-08T02:52:17 | 124,800,162 | 4,191 | 1,167 | MIT | 2023-05-23T11:41:21 | 2018-03-11T21:14:39 | Python | UTF-8 | Python | false | false | 521 | py | setup.py | import numpy as np
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
def numpy_include():
try:
numpy_include = np.get_include()
except AttributeError:
numpy_include = np.get_numpy_include()
return numpy_include
ext_modules = [
... |
1aa4332e5cea83d7ebacb86b0516298e443a3c1e | c913a2cbb1fbb0195580f3234912b8f4c7dcaac9 | /skew/resources/__init__.py | e586d1d5bf3e3a336e945d4bd1b52b52f0b72c94 | [
"Apache-2.0"
] | permissive | scopely-devops/skew | 5ea3eb72fdf7e0747f67e9f9e081837639d074e8 | dd6b6621d5737633d64631687418b3f29a1f6063 | refs/heads/develop | 2022-05-04T10:23:40.529926 | 2020-08-31T15:14:24 | 2020-08-31T15:14:24 | 20,736,773 | 197 | 75 | Apache-2.0 | 2023-03-13T03:45:10 | 2014-06-11T18:47:53 | Python | UTF-8 | Python | false | false | 4,564 | py | __init__.py | # Copyright (c) 2014 Scopely, Inc.
# Copyright (c) 2015 Mitch Garnaat
#
# 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 accompanyin... |
a6b8c545ffbf63e9b541c747a04cde33abac8c33 | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PaddlePaddle/LanguageModeling/BERT/run_squad.py | 48d2694a5913459a508b0a0012e8030fdd91c083 | [] | no_license | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 13,459 | py | run_squad.py | # Copyright (c) 2022 NVIDIA Corporation. 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 applic... |
3d316938ac872e43bec981709f797c994e83be60 | 9984f94093625ca66e9d6e0abe73eabe6ed5892c | /week04_[recap]_deep_learning/mnist.py | 70d61958e7c6daa201839f3b1240f9e8335cdd6e | [
"Unlicense"
] | permissive | yandexdataschool/Practical_RL | 1d8c0ed6db4780b423be7aa51b560b2ad1fbecef | c598c63c16dba57639013a90086735377a2562b1 | refs/heads/master | 2023-08-30T10:44:01.620442 | 2023-08-13T22:58:35 | 2023-08-13T22:58:35 | 79,821,807 | 5,932 | 1,902 | Unlicense | 2023-09-10T19:47:35 | 2017-01-23T16:18:00 | Jupyter Notebook | UTF-8 | Python | false | false | 2,505 | py | mnist.py | import sys
import os
import numpy as np
__doc__ = """taken from https://github.com/Lasagne/Lasagne/blob/master/examples/mnist.py"""
def load_dataset():
# We first define a download function, supporting both Python 2 and 3.
if sys.version_info[0] == 2:
from urllib import urlretrieve
else:
... |
bb683bf1fe55f8fb52b49017b8d6051a2ba5e84d | cbb1aca505b85ce8dd66df4580c7a35b89f513c6 | /index-tool/migrationtools/documentdb_index_tool.py | 77fc2edbe95945b1239114ded76ed4836c2664f5 | [
"Apache-2.0"
] | permissive | awslabs/amazon-documentdb-tools | 9de32bf065e66363e4d9dcbbd61147034a0e6e27 | 6983bb3032e526d58c322aaaf526dea95efdd167 | refs/heads/master | 2023-09-01T19:30:20.687312 | 2023-08-25T18:15:25 | 2023-08-25T18:15:25 | 178,303,050 | 106 | 56 | Apache-2.0 | 2023-09-13T13:57:51 | 2019-03-29T00:29:52 | Python | UTF-8 | Python | false | false | 28,439 | py | documentdb_index_tool.py | #!/bin/env python
"""
Copyright 2019 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.... |
ba8277318ef8235196d969dbc03b9dca498cee02 | b7127e230b0015e18036532e5fc20661f18e2fc8 | /02_Day_Variables_builtin_functions/variables.py | 78ba0e71e38b66e3c2d477d235f6e0f52c5540ac | [] | no_license | Asabeneh/30-Days-Of-Python | 4834036174cd1d1cc55ccd98629804b2c56076a7 | b78270feb360e3eeae46cd46938c97254f86d918 | refs/heads/master | 2023-09-03T22:14:08.086819 | 2023-07-08T22:59:30 | 2023-07-08T22:59:30 | 222,751,131 | 27,061 | 5,915 | null | 2023-09-12T22:50:10 | 2019-11-19T17:24:16 | Python | UTF-8 | Python | false | false | 1,021 | py | variables.py |
# Variables in Python
first_name = 'Asabeneh'
last_name = 'Yetayeh'
country = 'Finland'
city = 'Helsinki'
age = 250
is_married = True
skills = ['HTML', 'CSS', 'JS', 'React', 'Python']
person_info = {
'firstname':'Asabeneh',
'lastname':'Yetayeh',
'country':'Finland',
'city':'Helsinki'
}
# Printi... |
fd05c63ed635ca1b14ed599b56c3d2f6c958ec4d | e72db16e9747386afd01edd1dd36d9589a3f71ef | /src/test/obj_tx_add_range/TESTS.py | 9c8ce14f339a3f7177c5ea046d9e3ba8a938f577 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pmem/pmdk | 5e49feee8017574340db2a0f9b4e2eab99f8581c | ccadb16227bddea1bdcc518bd8f298d551b2baad | refs/heads/master | 2023-08-31T02:28:06.884934 | 2023-08-30T14:52:25 | 2023-08-30T14:52:25 | 23,637,153 | 1,017 | 402 | NOASSERTION | 2023-09-07T11:52:42 | 2014-09-03T20:55:23 | C | UTF-8 | Python | false | false | 1,182 | py | TESTS.py | #!../env.py
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2019-2020, Intel Corporation
"""unit tests for pmemobj_tx_add_range and pmemobj_tx_xadd_range"""
from os import path
import testframework as t
@t.require_valgrind_disabled('memcheck', 'pmemcheck')
class TEST0(t.Test):
test_type = t.Medium
def... |
644a3dbe5dc9c4bb1e26aea9b2b0fdeb983329d6 | cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a | /test/test_fluent_commands.py | c7df69f1cdecba7cf22c24f860b1ef4fcc4a78ab | [
"Apache-2.0",
"CC-BY-NC-4.0"
] | permissive | s3prl/s3prl | 52ec2ae4df5a61c786c122085603aa9c5e8c2681 | 76a9432b824f6ae3eae09a35a67782c4ed582832 | refs/heads/main | 2023-08-17T02:26:57.524087 | 2023-06-10T17:12:27 | 2023-06-10T17:12:27 | 196,905,457 | 1,549 | 398 | Apache-2.0 | 2023-09-14T13:07:05 | 2019-07-15T01:54:52 | Python | UTF-8 | Python | false | false | 373 | py | test_fluent_commands.py | import pytest
from dotenv import dotenv_values
from s3prl.dataio.corpus.fluent_speech_commands import FluentSpeechCommands
@pytest.mark.corpus
def test_fluent_commands():
config = dotenv_values()
dataset_root = config["FluentSpeechCommands"]
dataset = FluentSpeechCommands(dataset_root)
dataset.data_s... |
b1b9472a74845bb2eeded8d66ff74820b04e60cd | 7f3967e139e1ecb6c17b63d7f6ca907caea4928a | /examples/tenant_tutorial/customers/handlers.py | 90d68997baaf2242363b2453fab8182293dff08a | [
"MIT"
] | permissive | django-tenants/django-tenants | e1a274d6b74093b00f07bb1c5e6eb5c8849bc468 | bfba21005e2cbfcae5789f0b60bec49f864845a8 | refs/heads/master | 2023-08-28T13:10:46.712377 | 2023-08-14T08:15:18 | 2023-08-14T08:15:18 | 37,154,540 | 773 | 205 | MIT | 2023-09-12T11:45:41 | 2015-06-09T19:48:59 | Python | UTF-8 | Python | false | false | 1,069 | py | handlers.py | from django.dispatch import receiver
from django_tenants.migration_executors.base import run_migrations
from django_tenants.models import TenantMixin
from django_tenants.signals import schema_migrated, schema_needs_to_be_sync, post_schema_sync
@receiver(schema_migrated, sender=run_migrations)
def check_schema_migrat... |
d40fdda20a7a7b624116401fd96b16bd31d01aaf | dfa77374ba7f3f8bf7965e646527dedc622085d7 | /gcastle/castle/common/independence_tests.py | 9b285438dfbb9397f5cc4a58bb6b3c0a29c52927 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/trustworthyAI | 7aa72721df59c3c4f75b7b9a037c5b71fb1284a1 | 238cbc41865ddf629bb6ae92c2e1445be27f98b8 | refs/heads/master | 2023-08-28T13:36:10.929075 | 2023-08-15T12:51:46 | 2023-08-15T12:51:46 | 248,501,097 | 832 | 206 | Apache-2.0 | 2023-08-15T12:51:47 | 2020-03-19T12:46:47 | Python | UTF-8 | Python | false | false | 19,818 | py | independence_tests.py | # coding=utf-8
# Copyright (C) 2021. 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-2.0
#
# ... |
b4d405b4159b0035ef070fd664481fd3f2f9ceb3 | 080db1ae362de6823e7c78ab6071c82e347ce967 | /jina/serve/runtimes/head/request_handling.py | ecdb393f7b5c61982f715261dad4663c32389bbe | [
"Apache-2.0"
] | permissive | jina-ai/jina | c06898dc31dd3de1f917f30305e9460efedf97c3 | 23c7b8c78fc4ad67d16d83fc0c9f0eae9e935e71 | refs/heads/master | 2023-08-30T23:04:45.267920 | 2023-08-24T13:49:49 | 2023-08-24T13:49:49 | 240,315,046 | 20,687 | 2,460 | Apache-2.0 | 2023-09-14T12:30:45 | 2020-02-13T17:04:44 | Python | UTF-8 | Python | false | false | 24,557 | py | request_handling.py | import argparse
import asyncio
import json
import os
import threading
from collections import defaultdict
from typing import TYPE_CHECKING, AsyncIterator, Dict, List, Optional, Tuple, Any
import grpc
from jina.enums import PollingType
from jina.constants import __default_endpoint__
from jina.excepts import InternalNe... |
3ebfe8eabd03fa650505cfa75c4ce363eede60f4 | 0d7f11605de1c72e5927036c7fc200132e4e7abd | /experimental/dash/dash-recession-report-demo-master/report_nyt_255.py | cc82117c0221a3346c4cd0dea80ca160cffb8159 | [
"Apache-2.0"
] | permissive | timkpaine/lantern | 603c91604095d07b48645c5d11013ddf93631b44 | 7129fe3db104138d79ebf553ae9aedd9256c5c50 | refs/heads/main | 2023-08-26T14:07:03.898226 | 2022-11-22T01:33:39 | 2022-11-22T01:33:39 | 97,290,549 | 331 | 26 | Apache-2.0 | 2023-09-04T14:01:57 | 2017-07-15T03:49:10 | Python | UTF-8 | Python | false | false | 16,367 | py | report_nyt_255.py | # -*- coding: utf-8 -*-
import pandas as pd
import dash
from dash import Dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
import colorlover as cl
import numpy as np
from flask import Flask
from flask_cors import CORS
import os
df_jobs = pd.read_cs... |
ff716cb111bec53fe47a2dae0e99a83fa0118114 | afc3558e47ea4c82cb70190743472274eae7aeb1 | /configs/textrecog/satrn/_base_satrn_shallow.py | b041734dbe4d91f15746e042dc7f50a7f9af4f20 | [
"Apache-2.0"
] | permissive | open-mmlab/mmocr | 86a77fb77ca80cede9c41a9a22080eeeaf364002 | 9551af6e5a2482e72a2af1e3b8597fd54b999d69 | refs/heads/main | 2023-08-03T14:06:11.075037 | 2023-07-26T02:32:14 | 2023-07-26T02:32:14 | 355,559,187 | 3,734 | 801 | Apache-2.0 | 2023-09-12T03:17:12 | 2021-04-07T13:40:21 | Python | UTF-8 | Python | false | false | 3,618 | py | _base_satrn_shallow.py | dictionary = dict(
type='Dictionary',
dict_file='{{ fileDirname }}/../../../dicts/english_digits_symbols.txt',
with_padding=True,
with_unknown=True,
same_start_end=True,
with_start=True,
with_end=True)
model = dict(
type='SATRN',
backbone=dict(type='ShallowCNN', input_channels=3, hi... |
b254786e0548f41e016ff24f2d06945f28a075b3 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /ai/modelscope/modelscope/models/cv/text_driven_segmentation/lseg_blocks.py | 56d4a65de2363fe47c348619382b29e81f7e935e | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | alldatacenter/alldata | 7bc7713c9f1d56ad6b8e59ea03206d1073b7e047 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | refs/heads/master | 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 | Apache-2.0 | 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null | UTF-8 | Python | false | false | 7,587 | py | lseg_blocks.py | # Adapted from https://github.com/isl-org/lang-seg.
# Originally MIT License, Copyright (c) 2021 Intelligent Systems Lab Org.
import torch
import torch.nn as nn
from .lseg_vit import _make_pretrained_clip_vitl16_384, forward_vit
def _make_encoder(
backbone,
features,
use_pretrained=True,
groups=1,
... |
78d8071510c5c131950ac7af65fb0a6c7e32cc70 | 11b86fbfc2d1dff4ae44826fa16cf834d0f1d548 | /nbviewer/providers/github/tests/test_client.py | 80cb2ffb2b7f2d821237121fd429d47cd755a5b3 | [
"BSD-3-Clause"
] | permissive | jupyter/nbviewer | 1ee0b6d1699d31846ffe60716f2b9f515a1e62a2 | 51eff7b601038f83c8c36084d184140e0003502b | refs/heads/main | 2023-09-05T02:59:59.702210 | 2023-01-27T08:04:32 | 2023-01-27T08:04:32 | 5,303,123 | 1,994 | 559 | NOASSERTION | 2023-08-14T23:13:34 | 2012-08-05T11:42:33 | Python | UTF-8 | Python | false | false | 3,969 | py | test_client.py | # encoding: utf-8
import unittest.mock as mock
from tornado.httpclient import AsyncHTTPClient
from tornado.log import app_log
from tornado.testing import AsyncTestCase
from ....utils import quote
from ..client import AsyncGitHubClient
class GithubClientTest(AsyncTestCase):
"""Tests that the github API client ma... |
4563e9f0a6e040328979426b3fb68db525e63daf | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/formatter/spaceAfterStarredExcept.py | d3255ba9f3db5bfcaf5f1b70c80ddd72dfb9d1c8 | [
"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 | 99 | py | spaceAfterStarredExcept.py | try:
raise ExceptionGroup("asdf", [Exception("fdsa")])
except * Exception as ex:
pass |
8ac4eb9a06949c752aa5e6d95a189d31c339284b | cd9ac632c0cf2afac4042e110ac7abb729dd94c1 | /sent_feat_demo.py | 69d3863c04955f6842bee1080222d1bec02a7bc1 | [
"Apache-2.0"
] | permissive | albanie/collaborative-experts | 475b3dd7132b546529799774b0f08f960037bc4e | 7eb3b9d362ee313a78cd0a2793c3b6470f8e78f3 | refs/heads/master | 2023-02-22T04:03:59.978052 | 2022-09-23T11:13:11 | 2022-09-23T11:13:11 | 197,339,485 | 316 | 64 | Apache-2.0 | 2023-02-15T22:06:12 | 2019-07-17T07:36:18 | Python | UTF-8 | Python | false | false | 2,163 | py | sent_feat_demo.py | def sent_feat (text, feat_type):
if feat_type =='w2v':
import gensim
import numpy as np
model = gensim.models.KeyedVectors.load_word2vec_format('/scratch/shared/slow/yangl/w2v/GoogleNews-vectors-negative300.bin', binary=True)
final_feats=[]
for word in (text.split(' ')):... |
c883c1b2698aad47c92253ab95a1dd675ed06113 | 94c1805df5a09c39159d502f420d19ad54b567fc | /runtime/deps/gyp/test/additional-targets/gyptest-additional.py | 466283e55cb89363438d60cdcf535caca10da3fa | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | tmikov/jscomp | 9805a5a4d06520549c57380f0df4a1c0aa0dab56 | 83828441cb38ec96603a6a60be06977d4852940a | refs/heads/develop | 2021-01-19T02:56:35.102659 | 2016-04-12T06:19:30 | 2016-04-12T06:19:30 | 36,981,674 | 237 | 13 | Apache-2.0 | 2018-10-14T09:48:12 | 2015-06-06T13:49:26 | C | UTF-8 | Python | false | false | 1,723 | py | gyptest-additional.py | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies simple actions when using an explicit build target of 'all'.
"""
import TestGyp
test = TestGyp.TestGyp()
test.run_gyp('all.g... |
ddb7c4d0839c4103809abfc59443db7f988219b3 | 4091caecbc727e6d6ae0d827afce11c5979a84fd | /tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/lmdb.py | 9e64edeebe893455b0f1dd3e135265523f2fa1d7 | [
"Apache-2.0"
] | permissive | openvinotoolkit/open_model_zoo | fdb03dd40bfccb854e4ed4f7b9beaa90596963cd | 7929adbe91e9cfe8dc5dc1daad5ae7392f9719a0 | refs/heads/master | 2023-08-18T18:03:47.254427 | 2023-08-18T10:54:31 | 2023-08-18T10:54:31 | 153,097,694 | 1,712 | 730 | Apache-2.0 | 2023-09-11T11:31:20 | 2018-10-15T10:55:02 | Python | UTF-8 | Python | false | false | 3,516 | py | lmdb.py | """
Copyright (c) 2018-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 wri... |
ed52d07ad5e249240ea24f629ab64015bca5fc1a | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /programming_computer_vision_with_python/cvbook-contrib/ch06_spectral.py | f0a7d554476e87f31343558ae1f26e9f831657f5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,571 | py | ch06_spectral.py | import imtools
import pca
from PIL import Image
from pylab import *
from scipy.cluster.vq import *
# PCA on all images.
imlist = imtools.get_imlist('/Users/thakis/Downloads/data/a_thumbs')
imcount = len(imlist)
immatrix = array([array(Image.open(im)).flatten() for im in imlist], 'f')
V, S, immean = pca.pca(immatrix)
... |
e90aee8b1f61b7e34318e51208f2af3d617889f8 | 40e22af43c8e3424a2864a1d6a40fada13fc9e43 | /examples/simple_arm_example.py | a429095d673acdf0d151fab79cced2c3218c502c | [
"MIT"
] | permissive | neka-nat/kinpy | b916d74b98ae188cd89aee1aa19b0264ab31a1c2 | 93af2fb91f28b77b98bceaa9205c3d286e2a593d | refs/heads/master | 2023-03-16T02:01:16.734571 | 2023-03-04T15:27:26 | 2023-03-04T15:27:26 | 206,802,340 | 103 | 25 | MIT | 2022-05-13T05:08:55 | 2019-09-06T13:42:08 | Python | UTF-8 | Python | false | false | 345 | py | simple_arm_example.py | import numpy as np
import kinpy as kp
chain = kp.build_chain_from_sdf(open("simple_arm/model.sdf").read())
print(chain)
print(chain.get_joint_parameter_names())
ret = chain.forward_kinematics({"arm_elbow_pan_joint": np.pi / 2.0, "arm_wrist_lift_joint": -0.5})
print(ret)
viz = kp.Visualizer()
viz.add_robot(ret, chain.v... |
c5ea41b5a564a7ec07282da45eeebf6818e299ec | 3dc647cd07a7361ed401e40d2b7cce8c826c8f6c | /Lib/test/test_socket.py | 72b0f19275b5e853b4bc42835a3cf42e5ba79d61 | [
"Python-2.0",
"CC-BY-4.0",
"MIT"
] | permissive | RustPython/RustPython | 5ddce4a9848b9de8c041ffd2634f83c0105d3f39 | b864e5da1f18897fc884180b7093df5aa170024f | refs/heads/main | 2023-09-04T12:38:29.458699 | 2023-09-03T12:33:42 | 2023-09-03T12:33:42 | 135,201,145 | 15,815 | 1,302 | MIT | 2023-09-14T08:11:45 | 2018-05-28T19:27:01 | Rust | UTF-8 | Python | false | false | 253,695 | py | test_socket.py | import unittest
from test import support
from test.support import os_helper
from test.support import socket_helper
from test.support import threading_helper
import errno
import io
import itertools
import socket
import select
import tempfile
import time
import traceback
import queue
import sys
import os
import platform... |
16fb5f8cda68c6268b7640c49b46cc91b9ae7c4a | 733e80ec923208532de1ac15717518977490058f | /model_main.py | b4bfcf325eb59086cb0bf7965285c2507a4a089e | [
"MIT"
] | permissive | ambakick/Person-Detection-and-Tracking | aec2c02ca50a1eea21438aec053a323078fcf1bd | 39272caea30ab01faa3795156af76a08aaf1455f | refs/heads/master | 2022-12-09T21:21:53.235606 | 2022-12-07T14:49:36 | 2022-12-07T14:49:36 | 152,440,531 | 262 | 99 | MIT | 2021-08-03T10:48:26 | 2018-10-10T14:50:05 | Python | UTF-8 | Python | false | false | 3,312 | py | model_main.py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
32c8450a4242c89c6b64ba43086abc8ef93ed427 | 52a677b94056d3397b4a499bc9185adb68a63f05 | /buildtrigger/triggerutil.py | 8f316ab6626b5615b7ac43e809e04a4ab94e9e6c | [
"Apache-2.0"
] | permissive | quay/quay | 9b6fcff54efc0dbf7c6d91fa80676950555b6f1a | e400a0c22c5f89dd35d571654b13d262b1f6e3b3 | refs/heads/master | 2023-08-28T15:08:38.001842 | 2023-08-28T13:52:31 | 2023-08-28T13:52:31 | 220,517,730 | 2,363 | 322 | Apache-2.0 | 2023-09-14T17:43:48 | 2019-11-08T17:37:05 | Python | UTF-8 | Python | false | false | 3,315 | py | triggerutil.py | import io
import json
import logging
import re
class TriggerException(Exception):
pass
class TriggerAuthException(TriggerException):
pass
class InvalidPayloadException(TriggerException):
pass
class BuildArchiveException(TriggerException):
pass
class InvalidServiceException(TriggerException):
... |
7dbd970a5c259ff29772f26a364b2bb6d841206a | c675ff5fcd3b13fa39352bb8cac11d75262659a8 | /examples/timeflies/timeflies_gtk.py | ef9c7ea82ea99a90cbc5ef6c626b53b24b2c6fc4 | [
"MIT"
] | permissive | ReactiveX/RxPY | 469eb714996c205989e99899a6f1ab1ae2f42dd0 | af1663d35810fdcd4c25a3ed2e8f0d71b55c341d | refs/heads/master | 2023-08-14T19:27:40.086304 | 2023-01-08T10:02:08 | 2023-03-04T15:33:19 | 8,946,089 | 4,764 | 467 | MIT | 2023-09-05T02:53:16 | 2013-03-22T06:16:54 | Python | UTF-8 | Python | false | false | 1,672 | py | timeflies_gtk.py | import gi
from gi.repository import Gdk, GLib, Gtk
import reactivex
from reactivex import operators as ops
from reactivex.scheduler.mainloop import GtkScheduler
from reactivex.subject import Subject
gi.require_version("Gtk", "3.0")
class Window(Gtk.Window):
def __init__(self):
super().__init__()
... |
c233db0555680ed410d23bdafbd871c5e4e77163 | 99db817f7a40d0e101a6e013a731c2cd0a931b5a | /modules/popup/__init__.py | c6b468e8f9e64f53fc8b4524bbda74331ed2f7b5 | [
"MIT"
] | permissive | jisaacks/GitGutter | 3a6df94f4bd7ee1a6c3c7f17e716363d0a32eacc | 5246bcebbf7545e1d9ec68b7f2769252bc42afea | refs/heads/master | 2023-01-11T09:25:36.435352 | 2023-01-02T17:05:46 | 2023-01-02T17:05:46 | 7,064,308 | 1,903 | 197 | MIT | 2022-12-31T17:31:17 | 2012-12-08T05:29:00 | Python | UTF-8 | Python | false | false | 386 | py | __init__.py | """Diff Popup Module initialization.
Check dependencies and enable/disable diff popup.
Declare public API functions.
"""
try:
# mdpopups 2.0.0+ is required
import mdpopups
if mdpopups.version() < (2, 0, 0):
raise ImportError('mdpopups 2.0.0+ required.')
# public function
from .factory impo... |
64fc5723759b963eda05f7279f5f1dcb8dd18553 | 4feb5744ab5a26aeeb04573e4944d2bf4d1a6a2a | /tests/test_cmd_pdb_delete_childless_org.py | c6587c3b19e7e1e81d28fd7909673b98d4dbaf52 | [
"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 | 1,521 | py | test_cmd_pdb_delete_childless_org.py | import io
from datetime import timedelta
import pytest
import reversion
from django.conf import settings
from django.core.management import call_command
from django.db.transaction import commit
from django.utils import timezone
from reversion.models import Version
from peeringdb_server.models import Facility, Interne... |
16e6351922074e539ba6d9c03918b6563becbd96 | 725ac5a0bf72829be627bf8dc82fdc51ba0f94ae | /Text_Classification/How_to_finetune_bert_classification/experiment5_in_domain_re_pretrain/run_pretrain.py | c09c57327bb4afe18413bfe5b7b888fb26c5851d | [] | no_license | shawroad/NLP_pytorch_project | fa14b6e4a156229765e1d552901d0492d8e1def3 | 1272fed2dc8fef78a9ded0f1ae1644d613a3b57b | refs/heads/master | 2023-06-25T02:37:35.503251 | 2023-06-12T10:57:11 | 2023-06-12T10:57:11 | 229,694,655 | 530 | 104 | null | 2020-12-08T09:21:47 | 2019-12-23T06:54:29 | Python | UTF-8 | Python | false | false | 4,770 | py | run_pretrain.py | """
@file : run_pretrain.py
@author : xiaolu
@email : luxiaonlp@163.com
@time : 2021-08-05
"""
import argparse
import os
import torch
import torch.nn as nn
import random
import numpy as np
from data_loader import MyDataset
from torch.utils.data import TensorDataset, DataLoader
from transformers import AdamW, get_l... |
c50d96809bd48d69af088b8c978f95569fbaaf97 | 15eb68a30bd1bcd8c153ce3c8774e09ef3f4135d | /NightlyTests/tensorflow/non_eager/test_transformer_with_tokenizers.py | c539ec1cdc6379fefbc199412ebde9804e8e8147 | [
"BSD-3-Clause"
] | permissive | quic/aimet | 77a984af68fc3c46d98c707d18a14c95a3efdacf | 5a406e657082b6a4f6e4bf48f0e46e085cb1e351 | refs/heads/develop | 2023-08-21T12:51:10.500286 | 2023-08-18T18:35:39 | 2023-08-18T18:35:39 | 257,688,216 | 1,676 | 339 | NOASSERTION | 2023-09-08T06:59:39 | 2020-04-21T18:57:10 | Python | UTF-8 | Python | false | false | 11,487 | py | test_transformer_with_tokenizers.py | # =============================================================================
# @@-COPYRIGHT-START-@@
#
# Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condi... |
3477f54d0f0687d37c5263b343f38a570cfcd11d | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/tts/modules/radtts.py | b436e89ce78b8cc5ad219365f2ed8641cd6c257e | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 32,609 | py | radtts.py | # Copyright (c) 2022, NVIDIA CORPORATION. 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... |
cd12bad499a4e7c40f18ff5b70243e8fedd792de | bba20d50bcbaa6133417230a80fea993064b69c1 | /tools/localization_analysis/scripts/bag_and_parameter_sweep.py | 76b4d5d51eb829a298d75c40157259bc219f6cd6 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"MIT",
"MPL-2.0",
"MPL-1.0",
"LGPL-2.1-or-later",
"Apache-2.0",
"LGPL-2.1-only",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-generic-cla",
"GPL-3.0-only",
"LGPL-3.0-only",
"LicenseRef-scancode-pro... | permissive | nasa/astrobee | ecd2d941b5fb3dc72af9eb6ff0cb3e50b5281874 | ea41de975fd3ed5320cc474c061ad6305ae6b646 | refs/heads/master | 2023-08-28T08:21:00.219849 | 2023-04-04T21:56:03 | 2023-04-04T21:56:03 | 101,815,284 | 914 | 320 | Apache-2.0 | 2023-08-09T17:01:14 | 2017-08-29T23:16:13 | C++ | UTF-8 | Python | false | false | 5,659 | py | bag_and_parameter_sweep.py | #!/usr/bin/python
#
# Copyright (c) 2017, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
#
# All rights reserved.
#
# The Astrobee platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in comp... |
6d6335ae75d9d82a2c3998f0222afaca1facf61b | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/battle/shared/ribbons_aggregator.py | 70f6279bfbb45b3909531421b80fad40fa40b249 | [] | 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 | 39,883 | py | ribbons_aggregator.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/shared/ribbons_aggregator.py
from collections import defaultdict
import logging
import Event
import BattleReplay
from constants import ROLE_TYPE
from gui.Scaleform.genConsts.DAMAGE_SOURCE_TYPES import... |
28a84ee4d3637c27178052be6de69c43dcb19059 | b347bc4b850dee4a8a9a171b563a3f31230ce1c7 | /sktime/performance_metrics/forecasting/tests/__init__.py | 8f4e8e6d8591a6f50533ccbdac81528133f684f0 | [
"BSD-3-Clause"
] | permissive | sktime/sktime | 5963962df338c5931a2f9f1794d1203c50ddc27e | 70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f | refs/heads/main | 2023-08-22T18:20:08.022950 | 2023-08-22T15:24:39 | 2023-08-22T15:24:39 | 156,401,841 | 1,117 | 268 | BSD-3-Clause | 2023-09-14T20:44:21 | 2018-11-06T15:08:24 | Python | UTF-8 | Python | false | false | 51 | py | __init__.py | """Tests for sktime performance metrics module."""
|
32785b9be60bdee21453b4d47fd322664279fe1e | 0f2b08b31fab269c77d4b14240b8746a3ba17d5e | /onnxruntime/test/python/quantization/test_op_matmulfpq4.py | 170bb09a0fdeb3af5efa602ceba3e8cd15d94db5 | [
"MIT"
] | permissive | microsoft/onnxruntime | f75aa499496f4d0a07ab68ffa589d06f83b7db1d | 5e747071be882efd6b54d7a7421042e68dcd6aff | refs/heads/main | 2023-09-04T03:14:50.888927 | 2023-09-02T07:16:28 | 2023-09-02T07:16:28 | 156,939,672 | 9,912 | 2,451 | MIT | 2023-09-14T21:22:46 | 2018-11-10T02:22:53 | C++ | UTF-8 | Python | false | false | 5,711 | py | test_op_matmulfpq4.py | #!/usr/bin/env python
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------... |
724c82746f010872a2f14e4bbbd85de91d7a2c37 | c6e6c564cf03427de02e78f436bdf7483e13402f | /wemake_python_styleguide/compat/packaging.py | 385de8afc672725d2a6231f43bd06f92b2b77b5a | [
"MIT"
] | permissive | wemake-services/wemake-python-styleguide | 5a60ff468bf7877008c8ed34467da8bdbc2398f2 | 96e482514a60c12e99ee235337e678c9a4e484e3 | refs/heads/master | 2023-08-31T14:42:36.827760 | 2023-08-29T05:54:18 | 2023-08-29T05:54:18 | 124,593,057 | 2,427 | 572 | MIT | 2023-09-13T07:15:00 | 2018-03-09T21:04:25 | Python | UTF-8 | Python | false | false | 210 | py | packaging.py | from importlib import metadata as importlib_metadata
def get_version(distribution_name: str) -> str:
"""Our helper to get version of a package."""
return importlib_metadata.version(distribution_name)
|
e63722c560f8b6c18eccabe0514b9a8628a33872 | 66040b97481106cd596db1557b4de8250835f657 | /buffalo/algo/plsi.py | d198a6a42e36d6723edb79828920c388aea68b30 | [
"Apache-2.0",
"MPL-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kakao/buffalo | 1ac94cfc74be5e1b4889257c75f921d29caa4d92 | ee01d5bee1dffecf207c28df511c9724acce41d7 | refs/heads/dev | 2023-08-22T22:11:05.643603 | 2023-06-27T16:50:48 | 2023-06-27T16:50:48 | 204,726,945 | 615 | 140 | Apache-2.0 | 2023-09-14T04:44:48 | 2019-08-27T14:56:48 | Python | UTF-8 | Python | false | false | 8,110 | py | plsi.py | import json
import time
from typing import Callable, Dict, Optional
import numpy as np
import buffalo.data
from buffalo.algo._plsi import CyPLSI
from buffalo.algo.base import Algo, Serializable
from buffalo.algo.options import PLSIOption
from buffalo.data.base import Data
from buffalo.data.buffered_data import Buffer... |
419bd2d9e18c5bb17d853f3be28fd3e1c0c5b0c8 | be0b9d6dac8bd1fbd34af440ee7868d64a85c709 | /Models/exprsynth/seq2graphmodel.py | 7e39e40029e3c1740a215b796885a412bb456b36 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/graph-based-code-modelling | bc4cf0484bf69bf4416f056efb9c536f39e0cc40 | 5629502273f0ae1d3deea012d91f53fcc9c12c68 | refs/heads/master | 2023-09-02T03:18:26.003171 | 2022-11-28T19:10:38 | 2022-11-28T19:10:38 | 165,090,669 | 120 | 33 | MIT | 2022-12-08T04:05:02 | 2019-01-10T16:11:27 | C# | UTF-8 | Python | false | false | 19,044 | py | seq2graphmodel.py | import random
import numpy as np
from typing import Dict, Any, Tuple, Optional, List
import tensorflow as tf
from .contexttokenmodel import ContextTokenModel, _convert_and_pad_token_sequence
from .model import write_to_minibatch
from .nagdecoder import NAGDecoder
class Seq2GraphModel(ContextTokenModel):
@stati... |
309933b6b3899bb5a13dcfc09c0940784c9b6c9c | 00f950030a550cfd7e972794ee993d94a92d75be | /cm-mlops/script/get-generic-sys-util/customize.py | 5080aa67eab3dec676c34a92d2ede0d62edcf214 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | mlcommons/ck | 6261de6a99934cdd84c413de01d2ee4df6f9217a | e4306117546ea01f688afc7540c0ae2e1c007470 | refs/heads/master | 2023-09-01T23:26:28.195951 | 2023-09-01T17:26:00 | 2023-09-01T17:26:00 | 26,230,485 | 122 | 33 | Apache-2.0 | 2023-09-13T12:01:35 | 2014-11-05T17:14:43 | Python | UTF-8 | Python | false | false | 1,152 | py | customize.py | from cmind import utils
import os
def preprocess(i):
os_info = i['os_info']
env = i['env']
state = i['state']
pm = env.get('CM_HOST_OS_PACKAGE_MANAGER')
if not pm:
return {'return': 1, 'error': 'Package manager not detected for the given OS'}
util = env.get('CM_SYS_UTIL_NAME')
if... |
c57493d0ad0032a2eefb49faddcefd71188df345 | 6d54a7b26d0eb82152a549a6a9dfde656687752c | /examples/chip-tool/py_matter_chip_tool_adapter/matter_chip_tool_adapter/encoder.py | 7a3735e213e049315dfba04fc6c4a98d5d7e901a | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | project-chip/connectedhomeip | 81a123d675cf527773f70047d1ed1c43be5ffe6d | ea3970a7f11cd227ac55917edaa835a2a9bc4fc8 | refs/heads/master | 2023-09-01T11:43:37.546040 | 2023-09-01T08:01:32 | 2023-09-01T08:01:32 | 244,694,174 | 6,409 | 1,789 | Apache-2.0 | 2023-09-14T20:56:31 | 2020-03-03T17:05:10 | C++ | UTF-8 | Python | false | false | 17,255 | py | encoder.py | # Copyright (c) 2023 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... |
09482b82519f59fd17bfa85810dce43f8dc05ea0 | 3b40cde32fe928b75e41a5839fc33bf77a106677 | /xapian-maintainer-tools/perftest/app/LogAnalyse/parselog.py | a106ef7da2ae514b79f99b01b537a9b6b4bce0df | [] | no_license | xapian/xapian | 80ce790235939587ede7a69e078b3be3fb46b567 | 9971aa2451f816c01edc70936eee56664440255b | refs/heads/master | 2023-08-23T03:52:50.392666 | 2023-08-22T06:00:50 | 2023-08-22T06:00:50 | 735,981 | 687 | 289 | null | 2023-06-07T06:09:38 | 2010-06-23T15:51:03 | C++ | UTF-8 | Python | false | false | 5,197 | py | parselog.py | # Copyright (C) 2008 Lemur Consulting Ltd
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distribu... |
72199e5a9b9e95409cad3ac0c9213d53c50d2042 | 685dafbdf14d0bf4594bd2ed2e4d5e445158722b | /buildtools/check-example | 81afe2d4fa630e6cc6e5ae87e537614496b22000 | [
"MIT"
] | permissive | camptocamp/ngeo | 778f58f9040ef5f483a594e8ad9b0c489d56f4d5 | 94a7fb2c6fccc5d6093bddf5e11131a06ab01014 | refs/heads/master | 2023-08-30T23:02:22.367965 | 2023-08-29T14:06:12 | 2023-08-29T14:06:12 | 20,212,761 | 145 | 114 | MIT | 2023-09-14T07:13:20 | 2014-05-27T08:34:54 | JavaScript | UTF-8 | Python | false | false | 3,088 | check-example | #!/usr/bin/env python3
# The MIT License (MIT)
#
# Copyright (c) Camptocamp SA
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights ... | |
0f14b1e97fe186d34cf5e58fb50e655e84d6f1e6 | 05b0c763ab92086e69a8d00ae6465009c596f6bc | /tests/cpu/test_quantization_default_recipe.py | 0fbde8c5f75f151ab662c063bcffb59487408c1a | [
"Apache-2.0"
] | permissive | intel/intel-extension-for-pytorch | 60ce2af2ec3a1dacae0d0db13dd51a5b44512e61 | 7f9266789de7ca9d8bcf55606f3204f1a3640640 | refs/heads/master | 2023-09-01T09:13:16.866410 | 2023-08-31T08:00:37 | 2023-08-31T08:00:37 | 256,061,008 | 991 | 144 | Apache-2.0 | 2023-08-13T13:56:07 | 2020-04-15T23:35:29 | Python | UTF-8 | Python | false | false | 22,852 | py | test_quantization_default_recipe.py | import itertools
import tempfile
import torch
import torch.nn as nn
from torch.testing import FileCheck
from torch.ao.quantization import (
MinMaxObserver,
PerChannelMinMaxObserver,
QConfig,
QConfigMapping,
)
import copy
import intel_extension_for_pytorch as ipex
from test_ao_jit_llga_utils import JitL... |
d3f9289086667fe1eefe76f3a94203b87a21c786 | ebd9c249d446d809abc9a0f3e4593f34922a1b93 | /leetcode/688_knight_probability_in_chessboard.py | ff08081702dba5cbf100545ced83f7ed2a8e0db5 | [] | no_license | jaychsu/algorithm | ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d | 91892fd64281d96b8a9d5c0d57b938c314ae71be | refs/heads/master | 2023-05-11T00:40:39.237813 | 2022-09-14T07:43:12 | 2022-09-14T07:43:12 | 106,277,156 | 143 | 39 | null | 2022-09-14T07:43:13 | 2017-10-09T11:51:48 | Python | UTF-8 | Python | false | false | 2,265 | py | 688_knight_probability_in_chessboard.py | import collections
class Solution:
"""
DP:
1. init the first pos as 1
2. keep simulate the process and divide the probability
3. sum the values
"""
def knightProbability(self, n, k, r, c):
"""
:type n: int
:type k: int
:type r: int
:type c: int
... |
41b34d6d63fd85412a50644cb2dca81c5bc6bd91 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/find-the-divisibility-array-of-a-string.py | 1063908a959d6be750fa89c3c11a5bfeb7fd35d9 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 376 | py | find-the-divisibility-array-of-a-string.py | # Time: O(n)
# Space: O(1)
# prefix sum
class Solution(object):
def divisibilityArray(self, word, m):
"""
:type word: str
:type m: int
:rtype: List[int]
"""
result = []
curr = 0
for c in word:
curr = (curr*10+(ord(c)-ord('0')))%m
... |
c235ad4925e0538cc6db8c04188c0b10687b596d | 6c88b2cea38b2cead9e2402d46a8fc64949c53df | /sdk/python/lib/test/langhost/input_type_mismatch/__main__.py | d0112e179733296121c3d73e48ee51c70e0e784f | [
"Apache-2.0"
] | permissive | pulumi/pulumi | a9b36c32f0cdd445c22f9ca64ce26c9ae5147575 | 46e2753d02d46a1c077930eeccdfe6738f46c0d2 | refs/heads/master | 2023-08-19T10:25:49.849189 | 2023-08-16T04:59:07 | 2023-08-16T04:59:07 | 72,477,752 | 17,553 | 1,082 | Apache-2.0 | 2023-09-14T21:05:35 | 2016-10-31T21:02:47 | Go | UTF-8 | Python | false | false | 1,834 | py | __main__.py | # Copyright 2016-2021, Pulumi 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 t... |
22bab24759a36e4724958f3b0e2f0bf98bc7f24b | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/CoSimulationApplication/python_scripts/coupling_operations/elemental_data_to_nodal_data.py | 258309a0bbc2788a6adce0644d7d99a84a7d30f0 | [
"BSD-3-Clause"
] | permissive | KratosMultiphysics/Kratos | 82b902a2266625b25f17239b42da958611a4b9c5 | 366949ec4e3651702edc6ac3061d2988f10dd271 | refs/heads/master | 2023-08-30T20:31:37.818693 | 2023-08-30T18:01:01 | 2023-08-30T18:01:01 | 81,815,495 | 994 | 285 | NOASSERTION | 2023-09-14T13:22:43 | 2017-02-13T10:58:24 | C++ | UTF-8 | Python | false | false | 2,242 | py | elemental_data_to_nodal_data.py | # Importing the Kratos Library
import KratosMultiphysics as KM
# Importing the base class
from KratosMultiphysics.CoSimulationApplication.base_classes.co_simulation_coupling_operation import CoSimulationCouplingOperation
from KratosMultiphysics.CoSimulationApplication import ConversionUtilities
# CoSimulation imports... |
7db40238cd4f9dd5d684cbb7cda2bf5c115b5c81 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/ShiftManagement/Scripts/GetOnCallHoursPerUser/GetOnCallHoursPerUser.py | 524ed587168e90ece8fe1bdc44a345acae1b0d9b | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 2,378 | py | GetOnCallHoursPerUser.py | import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
import operator
from functools import reduce
from typing import Dict, List
from CommonServerUserPython import *
def count_hours_in_shift(shift: Dict) -> int:
from_day = shift.get('fromDay', 0)
to_day = shift.get('toDay... |
9dbce3b1c687138364800b52bc12f58814d1b7c0 | 09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce | /pennylane/templates/subroutines/qft.py | a0b547fa00e9e73069dcf0ac283e20afc03a7cfa | [
"Apache-2.0"
] | permissive | PennyLaneAI/pennylane | 458efd5d9457e90ada31ca2ef0fb6bb96a24e9a7 | 0843183ff15a013c2622af5e61fea431d18076d3 | refs/heads/master | 2023-09-03T17:00:43.105784 | 2023-09-01T16:15:07 | 2023-09-01T16:15:07 | 129,936,360 | 1,431 | 410 | Apache-2.0 | 2023-09-14T21:30:56 | 2018-04-17T16:45:42 | Python | UTF-8 | Python | false | false | 4,055 | py | qft.py | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... |
b7b56673db83f6cb837812e9d31a775dcd1ccbc3 | 5d8e6f8cd876da33e17bad2d20a166333b7e5aff | /eemeter/caltrack/quickstart.py | 08a0588fb57fa9b64afd235ef55c157536efc7ed | [
"Apache-2.0"
] | permissive | openeemeter/eemeter | 428a09674be4bed2e27d55ccbee155a4f512127f | b4c9247a147ad44074ca209f83fabef69dbe996c | refs/heads/master | 2023-09-06T06:15:07.277455 | 2023-09-01T18:39:21 | 2023-09-01T18:39:21 | 66,119,061 | 189 | 69 | Apache-2.0 | 2023-09-01T18:39:23 | 2016-08-19T23:54:36 | Python | UTF-8 | Python | false | false | 7,547 | py | quickstart.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2014-2023 OpenEEmeter contributors
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/LIC... |
72062ad6544fe263731ab6c5d44f6565055a5c85 | ef4bd152c448cc4304e292bfbe38c08f0e9ed685 | /src/torchmetrics/functional/classification/group_fairness.py | fc4259adf0bee12f273770fc460b7621612350bf | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | Lightning-AI/torchmetrics | 05aef74af7a167bdbf0f6f605454656a4031e26a | 66f1859c5fefffcb37de4f430a6fbf71fb6c8c6b | refs/heads/master | 2023-08-31T20:50:41.184700 | 2023-08-31T16:17:12 | 2023-08-31T16:17:12 | 323,721,661 | 295 | 59 | Apache-2.0 | 2023-09-14T14:58:53 | 2020-12-22T20:02:42 | Python | UTF-8 | Python | false | false | 16,886 | py | group_fairness.py | # Copyright The PyTorch Lightning team.
#
# 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... |
4bc602a6f00fa3d6e5604e0f4c79fe059fe1d4c6 | 9cc6f9d9eed9aceb5efa56e3b2f364900df11051 | /improver/precipitation_type/freezing_rain.py | d063a1429826d1ffdae80d64246d68794ce73f0d | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | metoppv/improver | 8553a4f8b93c88291bde0db8f5dfd7b577c04b92 | cd2c9019944345df1e703bf8f625db537ad9f559 | refs/heads/master | 2023-08-30T19:01:04.946698 | 2023-08-25T13:57:20 | 2023-08-25T13:57:20 | 85,334,761 | 101 | 88 | BSD-3-Clause | 2023-09-14T19:07:45 | 2017-03-17T16:51:29 | Python | UTF-8 | Python | false | false | 13,427 | py | freezing_rain.py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... |
c3997ca58ee43f16c12dc1f1ccc1dc37ad79ec4e | ea95ac78de5ede763f1b2220809239fa56fde63d | /MLP/tensorflow_version/main.py | 2d3a1a7a99861e3433c184d2bf4af5c3380d673a | [] | no_license | xianggebenben/dlADMM | 2204b3a6bd59483159703def17e08744da5ceb14 | 49e93efd3441c04cdaf594b63d563b51e4f8322b | refs/heads/master | 2023-05-01T19:20:12.983791 | 2023-04-12T12:07:24 | 2023-04-12T12:07:24 | 190,889,970 | 165 | 41 | null | null | null | null | UTF-8 | Python | false | false | 6,007 | py | main.py | import tensorflow as tf
import numpy as np
import sys
import time
if not sys.warnoptions:
import warnings
warnings.simplefilter("ignore")
from MLP.tensorflow_version.dlADMM import common
from MLP.tensorflow_version.dlADMM.input_data import mnist, fashion_mnist
# initialize the neural network
def Net(images,... |
99d8b18d9506ac8cd93fcce2707f14840ee7b9ac | 802f0c1dd855693f709da4024b50d6d4938c13ff | /examples/acados_python/zoRO_example/diff_drive/main.py | 53367b41b0a315072d86764681ad7de9b2a9cb4c | [
"BSD-2-Clause"
] | permissive | acados/acados | 9cd480da3462725506f06199838e3cdae007d0c8 | 64166a37859108ab74ce6bf7408501f9bd4a89da | refs/heads/master | 2023-08-16T13:03:44.298740 | 2023-08-15T13:07:48 | 2023-08-15T13:07:48 | 55,497,573 | 558 | 213 | NOASSERTION | 2023-09-01T09:01:33 | 2016-04-05T10:06:48 | C | UTF-8 | Python | false | false | 6,295 | py | main.py | # Copyright (c) The acados authors.
#
# This file is part of acados.
#
# The 2-Clause BSD License
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright not... |
20d3cf4c27da03ea3caf2cc4a7eedbd02b7f4cc9 | 08690eb8fc250e29d749d6baa694a16c03d3ad71 | /backend/tests.py | b008a4a33d5a198651b7acc4bac9cb58b76cff15 | [
"MIT"
] | permissive | NullFull/isnamyang | de1e0e16a45c120cefec4500afe6ab38d44ea2c0 | 20a21f233d8234365739ed8514dcac25c98e51e6 | refs/heads/main | 2023-07-19T23:41:29.073366 | 2023-05-08T06:06:54 | 2023-05-08T06:06:54 | 184,061,909 | 117 | 26 | MIT | 2023-09-06T15:16:45 | 2019-04-29T11:53:09 | JavaScript | UTF-8 | Python | false | false | 603 | py | tests.py | from django.http import JsonResponse
from django.test import TestCase
class ApiTest(TestCase):
def test_namyang(self):
response = self.client.get('/api/isnamyang?barcode=8801069173603')
self.assertEqual(type(response), JsonResponse)
self.assertEqual(response.status_code, 200)
dat... |
76dd540f6bd30f285ff1a40e5167e883ada0ad43 | 2337351b228818e41be3002bd38f68f77c2aa074 | /tests/test_forms.py | 6466eba77f11fbe1a12e2dd8be9f5e252333d2ac | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 955 | py | test_forms.py | # ----------------------------------------------------------------------
# noc.core.forms unittests
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Thi... |
b2b76ea86a99b045541024a01b3b809861136e43 | 9611d1b11fad9c12e434f689ad29b0be37d33382 | /src/python/zensols/zotsite/__init__.py | 48ae241ab146dc49f9bdfb3c73079b875f46660d | [
"MIT"
] | permissive | plandes/zotsite | 4afda7d5db5752e5afe7b24de0d09af342b0522f | d28a1efd0cec7444b9c701653cf4534156142b2c | refs/heads/master | 2023-09-01T17:16:10.835107 | 2023-08-23T16:40:26 | 2023-08-23T16:40:26 | 127,065,145 | 255 | 30 | NOASSERTION | 2022-09-03T20:43:58 | 2018-03-28T01:17:00 | Python | UTF-8 | Python | false | false | 230 | py | __init__.py | from .domain import *
from .db import *
from .itemmap import *
from .navvisitor import *
from .fscpvisitor import *
from .prunevisitor import *
from .betterbib import *
from .screate import *
from .app import *
from .cli import *
|
f41849b6a1234c5a17d4f3d1a1f97d246d370049 | 675a6ed1aa824ac801783471e634e538d11acc8d | /pre_request/filters/simple/regexp.py | db95679843b74149d0d2cd9037264fe6d368d73c | [
"MIT"
] | permissive | Eastwu5788/pre-request | 7ea50b3930252b5a0f99bf9588d0fdd8f4ae4562 | 42da2bf5edc6690983188e1ee013c810ef8985db | refs/heads/master | 2023-05-24T22:53:04.353491 | 2022-01-26T02:03:57 | 2022-01-26T02:03:57 | 100,257,925 | 102 | 9 | MIT | 2023-05-23T03:10:20 | 2017-08-14T10:56:59 | Python | UTF-8 | Python | false | false | 1,622 | py | regexp.py | # !/usr/local/python/bin/python
# -*- coding: utf-8 -*-
# (C) Wu Dong, 2019
# All rights reserved
# @Author: 'Wu Dong <wudong@eastwu.cn>'
# @Time: '2020-03-17 15:38'
# sys
import re
# project
from pre_request.exception import ParamsValueError
from pre_request.filters.base import BaseFilter
from pre_request.utils import... |
b43cbf0810d0747a77613569fbc4465902e57246 | 269dc089a13d4d27142729d3790356beb0059865 | /exploit_development/mutiny_new.py | 5ce5a835e1eeb11db4312c6923d5b469e8da1796 | [
"MIT"
] | permissive | The-Art-of-Hacking/h4cker | 6c869390b7ed4c59c3a7f171b622838f68f1f3ca | 2378ec7e2227bb7ca7567e7d0efacbc793e07b0d | refs/heads/master | 2023-08-23T16:24:16.563107 | 2023-08-23T04:42:54 | 2023-08-23T04:42:54 | 94,801,380 | 14,716 | 2,590 | MIT | 2023-09-08T00:19:52 | 2017-06-19T17:11:19 | Jupyter Notebook | UTF-8 | Python | false | false | 16,324 | py | mutiny_new.py | #!/usr/bin/env python
#------------------------------------------------------------------
# November 2014, created within ASIG
# Author James Spadaro (jaspadar)
# Co-Author Lilith Wyatt (liwyatt)
#------------------------------------------------------------------
# Copyright (c) 2014-2017 by Cisco Systems, Inc.
# All r... |
d03421874f5c36cc92cb86b073f28ce122d8a091 | 8019954a45ac669c162dfdff7dc8559dd45fa3e6 | /src/wagtailmarkdown/mdx/linkers/image.py | 7d5bc2e56e796f1d2dd034283f0f55759d64e730 | [
"Zlib"
] | permissive | torchbox/wagtail-markdown | e1ba6ddbddc6f8d6e9416b11961ed3cab5e608b4 | 4dfd0104356123b656548e310aae6e2429b41e12 | refs/heads/main | 2023-09-04T04:30:13.881965 | 2023-08-02T18:38:21 | 2023-08-02T18:38:21 | 42,451,079 | 184 | 82 | Zlib | 2023-08-08T06:07:52 | 2015-09-14T13:42:45 | Python | UTF-8 | Python | false | false | 1,790 | py | image.py | import contextlib
import xml.etree.ElementTree as etree
from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist
from wagtail.images import get_image_model
# TODO: Default spec and class should be configurable, because they're
# dependent on how the project is set up. Hard-coding of 'left',
# ... |
d0b5978978aefe842411a6c4fc3b4d6da0b4abb8 | 2f5cdf1e21345e7d3271aef35027f11c7df7bd1a | /episcanpy/count_matrix/_load_met_ct_mtx.py | 38f47f4486face3b3c25fce6fded0b88269f924b | [
"BSD-3-Clause"
] | permissive | colomemaria/epiScanpy | 8d6992d5e9797d574ccdfff92f028beede5143ed | 070a9467dce121345da19f1b3955e7fa1eabf19a | refs/heads/master | 2023-08-08T08:38:27.289808 | 2023-05-09T12:46:19 | 2023-05-09T12:46:19 | 170,289,801 | 127 | 37 | BSD-3-Clause | 2023-07-21T13:30:51 | 2019-02-12T09:28:15 | Python | UTF-8 | Python | false | false | 1,300 | py | _load_met_ct_mtx.py | import numpy as np
import anndata as ad
import pandas as pd
def load_met_noimput(matrix_file, path='', save=False):
"""
read the raw count matrix and convert it into an AnnData object.
write down the matrix as .h5ad (AnnData object) if save = True.
Return AnnData object
"""
matrix = []
cell... |
1c79c0c1eec8eba6f1b6fa7e29dd06dba416f8d3 | 5f1881006aaf4f3c2515f375ad29c15fd6612de2 | /poet/synthesize_math_corpus.py | 894e2a0b6f83d12894ea289d87098d6f332f0403 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | microsoft/ContextualSP | 4edb598d40f683f9a1143b92a9d24e1066d51ec4 | 4198ebce942f4afe7ddca6a96ab6f4464ade4518 | refs/heads/master | 2023-08-02T22:08:40.503853 | 2023-07-14T07:22:50 | 2023-07-14T07:22:50 | 255,534,819 | 332 | 70 | MIT | 2023-07-25T19:23:48 | 2020-04-14T07:01:54 | Python | UTF-8 | Python | false | false | 3,632 | py | synthesize_math_corpus.py | import random
from random import shuffle
import os
from tqdm import tqdm
def expand_numbers_in_text(text, delim=" ", ignore_chars=[","], reverse_num=False):
number_pattern = r"[-+]?[.]?[\d]+(,\d+)*[\.]?\d*(?:[eE][-+]?\d+)?%?"
num_char_spans = [(m.start(0), m.end(0)) for m in re.finditer(number_pattern, text)]... |
1ef61a92710aa000976c80ad7a0ce1155a306315 | 836a99b5092511e034b7a4c502bd26a63747045f | /integration_tests/test_double_battles.py | 0c8ba249f18fcc7b893049d03cb1de2441609813 | [
"MIT"
] | permissive | hsahovic/poke-env | b3991aef8593ba0dd7f4c28c58c0a2dddd794bb1 | 2677c8719526b877afe374dfd4c85bff7ce1b9bf | refs/heads/master | 2023-08-31T07:32:55.014080 | 2023-08-26T22:23:09 | 2023-08-26T22:23:09 | 200,867,511 | 228 | 116 | MIT | 2023-09-11T10:14:50 | 2019-08-06T14:26:18 | Python | UTF-8 | Python | false | false | 1,395 | py | test_double_battles.py | import asyncio
import pytest
from poke_env import AccountConfiguration, LocalhostServerConfiguration
from poke_env.player import RandomPlayer, cross_evaluate
async def simple_cross_evaluation(n_battles, format_, i=0):
player_1_configuration = AccountConfiguration("Player %d" % (i + 1), None)
player_2_config... |
7300dae50300a1f4f6c4239e5a7aa7d742c70b45 | 604b80c829d451cef8c9ea4ce8ff3af14776fceb | /hooks/python/configuring-your-server/server.py | 7bf4bc27f8776a90f62b0ed420b87cbf20c477b0 | [
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | github/platform-samples | 425b24975673a58200e3a43a7005345ce871f8c4 | 3beda8a6e260c4ea0dfc7e4cef1d37d3d49c202d | refs/heads/master | 2023-08-21T09:52:51.569989 | 2023-05-09T22:19:59 | 2023-05-09T22:19:59 | 8,445,877 | 2,039 | 1,860 | CC0-1.0 | 2023-08-24T02:46:24 | 2013-02-27T01:04:54 | Shell | UTF-8 | Python | false | false | 285 | py | server.py | from __future__ import print_function
from flask import Flask, request
app = Flask(__name__)
# Change ngrok listening port accordingly
# ./ngrok http 5000
@app.route("/payload", methods=['POST'])
def payload():
print('I got some JSON: {}'.format(request.json))
return 'ok'
|
7d7d7bc20ae926c9d78fec66645a4389bda913cc | 5e0f64162d53639183c8fcbe9b2ae13df699b4f6 | /textattack/constraints/semantics/sentence_encoders/__init__.py | 6cf05efdd47db5be9285073b20341495ccf3035f | [
"MIT"
] | permissive | QData/TextAttack | b0295d995609c9844164a0d76b90405b74b56e3c | 00adb8a55580f6dea5fd6952e93f095829e807dd | refs/heads/master | 2023-08-27T15:01:42.367433 | 2023-07-24T16:06:19 | 2023-07-24T16:06:19 | 215,173,055 | 2,581 | 377 | MIT | 2023-09-11T16:57:00 | 2019-10-15T00:51:44 | Python | UTF-8 | Python | false | false | 311 | py | __init__.py | """
Sentence Encoder
---------------------
"""
from .sentence_encoder import SentenceEncoder
from .bert import BERT
from .infer_sent import InferSent
from .thought_vector import ThoughtVector
from .universal_sentence_encoder import (
UniversalSentenceEncoder,
MultilingualUniversalSentenceEncoder,
)
|
764e8225f45edf00341a25f15170b73e9dc357ba | 19a253b2ce283f99de52921d2dc4158c8d10606c | /setup.py | 25d6894d45000ae602d9af4624ae9b593411b872 | [
"MIT"
] | permissive | shemesh999/oregami | 3e13b1417df8e9be513257a359ca04cbd1e7f163 | eee466005af08c816275e3269a83704c653a5312 | refs/heads/master | 2023-06-28T18:41:50.454083 | 2023-06-08T14:27:41 | 2023-06-08T14:27:41 | 247,684,529 | 184 | 24 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | setup.py | from setuptools import setup, find_packages
setup(
name='oregami',
version='1.0.0',
packages=find_packages(),
url='https://github.com/shemesh999/oregami',
license='MIT',
author='Matan Ziv',
description='IDA plugins and scripts for analyzing register usage frame',
install_requires=[
... |
8c3610292870378aac344a3d752c0c2d0797a6f0 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/cex.py | aab655bc3a8892bd1b4101733de44103f954ef38 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 1,913 | py | cex.py | import scrapy
from locations.hours import OpeningHours
from locations.items import Feature
class CeXSpider(scrapy.Spider):
name = "cex"
item_attributes = {"brand": "CeX", "brand_wikidata": "Q5055676", "country": "GB"}
allowed_domains = ["wss2.cex.uk.webuy.io"]
start_urls = ["https://wss2.cex.uk.webuy... |
9478c5eec672951879ecd0be09b915b523a733f3 | ff443629c167f318d071f62886581167c51690c4 | /contrib/seeds/makeseeds.py | af408c2df53abbf11225df867f59dccfb0f3b219 | [
"MIT"
] | permissive | bitcoin/bitcoin | a618b2555d9fe5a2b613e5fec0f4b1eca3b4d86f | 6f03c45f6bb5a6edaa3051968b6a1ca4f84d2ccb | refs/heads/master | 2023-09-05T00:16:48.295861 | 2023-09-02T17:43:00 | 2023-09-02T17:46:33 | 1,181,927 | 77,104 | 33,708 | MIT | 2023-09-14T20:47:31 | 2010-12-19T15:16:43 | C++ | UTF-8 | Python | false | false | 8,699 | py | makeseeds.py | #!/usr/bin/env python3
# Copyright (c) 2013-2022 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
import argparse
import collections
import ipaddress
imp... |
5c12bf16ac7290965cbe7deb9cda059835b5d13b | 68500830e4ad5449c74e13605c2a5fcee4541177 | /src/climate_learn/data/climate_dataset/stacked_climate_dataset.py | 511c2ac138d2bb16b1526a3da42a41f0d11e9410 | [
"MIT"
] | permissive | aditya-grover/climate-learn | affc781ff8875f20230e5cad3a1acd65cd95ffe4 | b199b45fbd895e254cedfb0d3572661f32bf1cff | refs/heads/main | 2023-08-19T10:45:55.027816 | 2023-07-31T23:15:30 | 2023-07-31T23:15:30 | 533,651,942 | 232 | 31 | MIT | 2023-09-04T17:05:48 | 2022-09-07T07:18:30 | Jupyter Notebook | UTF-8 | Python | false | false | 3,991 | py | stacked_climate_dataset.py | # Standard library
from typing import Any, Callable, Dict, Sequence, Tuple, Union
# Third party
import numpy as np
import torch
# Local application
from .args import StackedClimateDatasetArgs
from .climate_dataset import ClimateDataset
class StackedClimateDataset(ClimateDataset):
_args_class: Callable[..., Stac... |
98b9ec26ea48b27544317d92664f2d80ece798fb | df8f7d69bd58b729cb26035a51ef6f7b5b3a8972 | /setup.py | 843795fa2e0bfb6110799efc29e2f6d1ce212909 | [
"MIT"
] | permissive | datamade/parserator | ff2ee18f3fc68a38f35bac2cbdd9011d12e99a77 | 4dc69b0d115bf33e2d169ff40b05143257a5f481 | refs/heads/master | 2023-06-06T11:49:38.345672 | 2018-03-29T02:13:50 | 2018-03-29T02:13:50 | 25,285,581 | 828 | 102 | MIT | 2022-03-13T06:29:37 | 2014-10-16T03:54:11 | Python | UTF-8 | Python | false | false | 1,435 | py | setup.py | import sys
try:
from setuptools import setup
except ImportError :
raise ImportError("setuptools module required, please go to https://pypi.python.org/pypi/setuptools and follow the instructions for installing setuptools")
reqs = [
'future>=0.14.3',
'lxml>=3.7.3',
'python-crfsuite>=0.7',
'chard... |
cfd8ccb69d965ac2eb1d32d986415e67cd3ca67e | e7efae2b83216d9621bd93390959d652de779c3d | /yarn/datadog_checks/yarn/yarn.py | c09140c22ba55f171d8befc11871f011f4c6fea3 | [
"BSD-3-Clause",
"MIT",
"BSD-3-Clause-Modification",
"Unlicense",
"Apache-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 21,329 | py | yarn.py | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from requests.exceptions import ConnectionError, HTTPError, InvalidURL, SSLError, Timeout
from six import iteritems
from six.moves.urllib.parse import urljoin, urlsplit, urlunsplit
from datadog_checks.bas... |
9e84e0406daced6d8d413890595cf06052909ee9 | a41e1498e3c080f47abd8e8e57157548df3ebbf1 | /pandas/core/computation/eval.py | ce0c50a810ab16826fb67f995c0066afb74dc820 | [
"BSD-3-Clause"
] | permissive | pandas-dev/pandas | e7e639454a298bebc272622e66faa9829ea393bb | c7325d7e7e77ecb4a4e57b48bc25265277c75712 | refs/heads/main | 2023-09-01T12:42:07.927176 | 2023-09-01T11:14:10 | 2023-09-01T11:14:10 | 858,127 | 36,166 | 18,728 | BSD-3-Clause | 2023-09-14T21:18:41 | 2010-08-24T01:37:33 | Python | UTF-8 | Python | false | false | 14,253 | py | eval.py | """
Top level ``eval`` module.
"""
from __future__ import annotations
import tokenize
from typing import TYPE_CHECKING
import warnings
from pandas.util._exceptions import find_stack_level
from pandas.util._validators import validate_bool_kwarg
from pandas.core.dtypes.common import is_extension_array_dtype
from pand... |
0071e486e2b5a1dff7b22d1159c28c51c698b64b | 9f36ba9dcb16738b642ceb7f9e2664becb1145c1 | /python/gym_jiminy/rllib/setup.py | cb7c498b01265f26aced8cfbe3185f0fbe2e8cca | [
"MIT",
"BSL-1.0",
"MPL-2.0",
"BSD-2-Clause"
] | permissive | duburcqa/jiminy | 3ccefce8f66090080c4db448e8f23f1f01b01aef | a3b244f0bcb21abe605544d1f5c4a31419946efd | refs/heads/dev | 2023-08-18T21:24:44.411958 | 2023-08-18T15:45:04 | 2023-08-18T15:45:04 | 212,770,284 | 108 | 11 | MIT | 2023-09-13T20:59:38 | 2019-10-04T08:33:59 | Jupyter Notebook | UTF-8 | Python | false | false | 1,728 | py | setup.py | from importlib.metadata import version
from setuptools import setup, find_namespace_packages
gym_jiminy_version = version('gym-jiminy')
setup(
name="gym-jiminy-rllib",
version=gym_jiminy_version,
description=(
"Specialized Reinforcement learning toolbox based on Ray RLlib for "
"Gym Jimin... |
af95101d1369406c7144191f328abda078d1351f | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /tests/st/gnn/test_gat_model.py | 2732db3efd004b2e40dbdb476321594ee1029e95 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | Python | false | false | 1,586 | py | test_gat_model.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... |
05e9cb84bedcf7b4362e771b7890ac7bf324d766 | 1e777f4557b4b057208d48e99b76fe3106315a0b | /src/flair/runDS.py | f2166336189a5f079c47a21b2f9a65f825438e2a | [
"BSD-3-Clause"
] | permissive | BrooksLabUCSC/flair | 8cabf90b3538e5407d151bb31592fa9b2f27dc0a | f78d4797ae0cfc5b09735030ea62f1cc348e6e31 | refs/heads/master | 2023-08-31T23:43:05.673636 | 2023-08-28T21:44:31 | 2023-08-28T21:44:31 | 136,390,187 | 183 | 80 | NOASSERTION | 2023-09-13T20:10:43 | 2018-06-06T21:54:26 | Python | UTF-8 | Python | false | false | 10,607 | py | runDS.py | #!/usr/bin/env python3
########################################################################
# File: runDS.py
# executable: runDS.py
# Purpose:
#
#
# Author: Cameron M. Soulette + Alison Tang
# History: 01/31/2020 Created
#
########################################################################
import os
import... |
b9b6957c5d35f96a3737ca3db5b42b698274aa7f | 2212a32833776a5d5d2164d8efd11bd18bd3f768 | /tf_agents/networks/value_rnn_network.py | 348a76c9928bc1fbdb9ddd2b832a78c1ccf42891 | [
"Apache-2.0"
] | permissive | tensorflow/agents | f39805fb98ef9af712dcaff3ba49e1ac6d42804b | eca1093d3a047e538f17f6ab92ab4d8144284f23 | refs/heads/master | 2023-08-14T04:56:30.774797 | 2023-08-02T17:43:44 | 2023-08-02T17:44:09 | 157,936,206 | 2,755 | 848 | Apache-2.0 | 2023-07-26T02:35:32 | 2018-11-17T00:29:12 | Python | UTF-8 | Python | false | false | 5,372 | py | value_rnn_network.py | # coding=utf-8
# Copyright 2020 The TF-Agents 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 la... |
3bf7cdcfc9dc422fca07f9525eb57ac508134a60 | 34857fbadaf93531e90dbb5dd0619b6c53fb53d6 | /jedi_language_server/text_edit_utils.py | 1101c5cdeeded9c8f0d42177da25b8a69970c957 | [
"MIT"
] | permissive | pappasam/jedi-language-server | 8c386cddc1c3599d96b4ed8432024820ad4b7087 | 9a377c3aa9fc74cb9979e60cc318c051684ba8ac | refs/heads/main | 2023-08-11T13:34:47.259913 | 2023-07-31T22:05:26 | 2023-07-31T22:05:26 | 203,071,814 | 513 | 67 | MIT | 2023-07-31T23:46:55 | 2019-08-19T00:38:10 | Python | UTF-8 | Python | false | false | 5,253 | py | text_edit_utils.py | """Utility functions for converting to TextEdit.
This module is a bridge between `jedi.Refactoring` and
`pygls.types.TextEdit` types
"""
import ast
import difflib
from bisect import bisect_right
from typing import Iterator, List, NamedTuple, Union
from jedi.api.refactoring import ChangedFile, Refactoring
from lspro... |
b4fdb1a23bc6c5877f60c1e39b3c7de6aa0f0213 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayInsCooperationResourceUrlBatchqueryResponse.py | 0601b79054a39454d8c0d9583e49883c57a6e4d9 | [
"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,065 | py | AlipayInsCooperationResourceUrlBatchqueryResponse.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.ResourceRelatedItem import ResourceRelatedItem
class AlipayInsCooperationResourceUrlBatchqueryResponse(AlipayResponse):
def __init__(self):
super(AlipayI... |
c6d7d6304b4e5c66aec890d904735a1243e69304 | 7867e319f00994767fe748a107d927cf6f3181b8 | /src/pipx/commands/common.py | 33ece9fb2152c04faf6f81c2ecb6cfd81697624a | [
"MIT"
] | permissive | pypa/pipx | c34b687f7b88fe4e7f30971c05c466f6a0f45931 | 248fa37e7a0ea4a70a30a4352c0eb065137d3e15 | refs/heads/main | 2023-08-31T04:27:29.607704 | 2023-08-29T13:39:07 | 2023-08-29T13:39:07 | 151,871,286 | 3,264 | 190 | MIT | 2023-09-05T06:23:55 | 2018-10-06T18:47:46 | Python | UTF-8 | Python | false | false | 14,646 | py | common.py | import logging
import shlex
import shutil
import sys
import tempfile
import time
from pathlib import Path
from shutil import which
from tempfile import TemporaryDirectory
from typing import Dict, List, Optional, Set, Tuple
import userpath # type: ignore
from packaging.utils import canonicalize_name
from pipx import ... |
7b8fb02a8386f837bba0a154712ac92c9f85cbae | c618bbf2719431999b1007461df0865bab60c883 | /dali/test/python/test_video_pipeline.py | a7d17eaae313daa1f7e834345363fe94a1cede79 | [
"Apache-2.0"
] | permissive | NVIDIA/DALI | 3d0d061135d19e092647e6522046b2ff23d4ef03 | 92ebbe5c20e460050abd985acb590e6c27199517 | refs/heads/main | 2023-09-04T01:53:59.033608 | 2023-09-01T13:45:03 | 2023-09-01T13:45:03 | 135,768,037 | 4,851 | 648 | Apache-2.0 | 2023-09-12T18:00:22 | 2018-06-01T22:18:01 | C++ | UTF-8 | Python | false | false | 18,455 | py | test_video_pipeline.py | # Copyright (c) 2019-2022, NVIDIA CORPORATION & 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... |
789b822f6fb3b572f56466f3eac848d2f7bf648f | 6d58cdc52b4f882b498d44791ea41d89f2691445 | /nipyapi/registry/models/bundle_version_metadata.py | 25a2b5579df5fefb556141cc506dc05236e61830 | [
"Apache-2.0"
] | permissive | Chaffelson/nipyapi | 8cb47c1f13e9b3d53d4add8829c2efcee24349b6 | c687fb811486d7bcada099ac0785b55cfb30aea8 | refs/heads/main | 2022-12-02T15:39:27.685280 | 2022-12-01T12:39:10 | 2022-12-01T12:39:10 | 101,291,622 | 229 | 84 | NOASSERTION | 2023-08-27T15:55:31 | 2017-08-24T12:17:36 | Python | UTF-8 | Python | false | false | 14,971 | py | bundle_version_metadata.py | # coding: utf-8
"""
Apache NiFi Registry REST API
The REST API provides an interface to a registry with operations for saving, versioning, reading NiFi flows and components.
OpenAPI spec version: 1.19.0
Contact: dev@nifi.apache.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
... |
5efd70097fa8351c4dabb7907fe1bc6c24631002 | 391dfd77c1bb85c08b4ead451ecdab0858eb141f | /moderngl_window/geometry/attributes.py | 8abb627a285ea1481213605f82a90a9167cedeb3 | [
"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 | 2,305 | py | attributes.py | """
Follows the standard attributes from GLFT2.0
https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes
"""
class AttributeNames:
"""Standard buffer/attribute names.
This works as a lookup for buffer names when creating VAO instances.
This class can be used direct... |
a240a6747b04405d080727c07d6a8f3d263cd191 | 312a8fde11293cb142334a3860966ec1f75ac401 | /timesketch/api/v1/resources/analysis.py | 08c0fbebf8dcafce3671c68ca849de74c563b838 | [
"Apache-2.0"
] | permissive | google/timesketch | f0fd09062a8a24bac581d2d4286d095d667d2f10 | 24f471b58ca4a87cb053961b5f05c07a544ca7b8 | refs/heads/master | 2023-08-31T21:48:19.602686 | 2023-08-31T11:24:17 | 2023-08-31T11:24:17 | 21,009,909 | 2,263 | 647 | Apache-2.0 | 2023-09-14T14:08:07 | 2014-06-19T17:49:45 | Python | UTF-8 | Python | false | false | 11,259 | py | analysis.py | # Copyright 2020 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
fa1f55983953bd4155c13ba3f4e3964ed03c2093 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/tests/integration/storage_uri/test_storage_uri.py | 55dac1ad76a87660edacf2facdbb79c03482ebfa | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 2,355 | py | test_storage_uri.py | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights ... |
7c6c80fcb658c89442fd430b2ddb1003df4bd5f7 | ab0c7e6eb094ab93904cbd1d0fd13fbf3afccee0 | /tests/test_catlas.py | af0488240aee3e7e1a020605170d3edb484129a7 | [
"LicenseRef-scancode-biopython",
"BSD-3-Clause"
] | permissive | spacegraphcats/spacegraphcats | d48bc481ec7eadc23d299768336338bfe571297c | 08ba7c0db1f3d97de3ee03942b9d854f9c9035fd | refs/heads/latest | 2023-08-05T11:43:57.539681 | 2023-06-30T18:29:20 | 2023-06-30T18:29:20 | 58,208,221 | 107 | 17 | NOASSERTION | 2023-09-04T14:21:55 | 2016-05-06T13:12:20 | Standard ML | UTF-8 | Python | false | false | 1,723 | py | test_catlas.py | import sys
import os
import io
from spacegraphcats.search.catlas import CAtlas
thisdir = os.path.dirname(__file__)
def test_catlas_info():
from spacegraphcats.search.catlas_info import main as catlas_info_main
cdbg_prefix = os.path.join(thisdir, "test-data/catlas.dory_k21")
catlas_prefix = os.path.join(... |
c7a81814bdd164b083b6f2c6a0fb759b95a7acc9 | c64fb4456932789dffd87eb6d07c8a43003ae987 | /jarviscli/utilities/timedeltaUtilities.py | ca5fb7827d967aac2cbdca0b5a9facbcff2f3950 | [
"MIT"
] | permissive | sukeesh/Jarvis | 9fb7fc14ebefa27203ebf9af005e236a0a32a292 | 369a0e00b8a6fbd1132657cf2da39220ce84207e | refs/heads/master | 2023-08-09T12:25:38.009222 | 2023-07-02T20:17:48 | 2023-07-02T20:17:48 | 84,604,734 | 3,172 | 1,398 | MIT | 2023-09-13T16:37:44 | 2017-03-10T22:09:14 | Python | UTF-8 | Python | false | false | 1,133 | py | timedeltaUtilities.py | import datetime
class Timedelta_utilities:
def format_time_delta(t: datetime.timedelta) -> str:
"""
Function takes timedelta and puts it into textual format
"""
remaining_secs = t.seconds % 3600
time_dict = {
'days' : t.days,
'hours' : int(t.seconds... |
8828fb90ecf9526719f6a969620cffa9f16f53ba | 7a992de52ecb798a68601c464dafb7828d160d31 | /rplugin/python3/deoplete/source/vim.py | 018e1b0df3184f2584f9009e4dd60bbd93b389bc | [
"MIT"
] | permissive | Shougo/neco-vim | 9079a60d319fe9d7e6582588be23e72c07ac2fac | 1b95bedbeed0b4c81466d40b16bfb0c0ff16721d | refs/heads/master | 2023-08-18T14:14:39.671677 | 2023-08-15T01:28:25 | 2023-08-15T01:28:25 | 38,251,737 | 144 | 15 | NOASSERTION | 2021-08-19T03:50:22 | 2015-06-29T14:22:44 | Vim script | UTF-8 | Python | false | false | 936 | py | vim.py | #=============================================================================
# FILE: vim.py
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
# License: MIT license
#=============================================================================
from deoplete.base.source import Base
import deoplete.util
class... |
457920364b0040a5660d99b6d2dc9eae34279a11 | 52c0949315583ba8898694cceacfaafaeab6f902 | /build-support/tpl_bytecode_handlers_ir_compiler.py | 8872542e80fba236c1e5c7ac31d38f1fce628a33 | [
"MIT"
] | permissive | cmu-db/noisepage | 97093adcc9474419e063fdd97a5aa7a7ea6f3150 | 79276e68fe83322f1249e8a8be96bd63c583ae56 | refs/heads/master | 2023-08-29T05:51:04.628704 | 2021-11-05T14:12:08 | 2021-11-05T14:12:08 | 140,325,970 | 1,245 | 287 | MIT | 2022-11-08T02:06:48 | 2018-07-09T18:22:34 | C++ | UTF-8 | Python | false | false | 4,263 | py | tpl_bytecode_handlers_ir_compiler.py | #!/usr/bin/env python3
#
# tpl_bytecode_handlers_ir_compiler.py
# Compiles bytecode_handlers_ir.cpp with clang++.
#
# Usage:
#
# tpl_bytecode_handlers_ir_compiler.py LLVM_COMPILER CMAKE_BINARY_DIR BCH_CPP BCH_OUT
#
# where
# LLVM_COMPILER = The path to clang++ on the system.
# CMAKE_BIN... |
1e219345e695fd811615c5fd7f37438bfc5191cb | 14990fe6493928adb17f401895a25a66391f2cef | /customtkinter/windows/widgets/font/font_manager.py | b3ef369d7ec98e2f74fa3b5dd2f0c81e1ce357e4 | [
"MIT"
] | permissive | TomSchimansky/CustomTkinter | 3e9db4d9b7f2f8b2f8dda4c8a5b665b813e5d334 | d719950f80eb2768db96bd4cc627523e99603b1b | refs/heads/master | 2023-08-27T10:13:43.672181 | 2023-07-27T12:40:19 | 2023-07-27T12:40:19 | 344,554,014 | 8,506 | 1,069 | MIT | 2023-09-11T11:23:31 | 2021-03-04T17:24:00 | Python | UTF-8 | Python | false | false | 2,268 | py | font_manager.py | import sys
import os
import shutil
from typing import Union
class FontManager:
linux_font_path = "~/.fonts/"
@classmethod
def init_font_manager(cls):
# Linux
if sys.platform.startswith("linux"):
try:
if not os.path.isdir(os.path.expanduser(cls.linux_font_path)... |
cc248daf3e6577934334db91a3ca1dc00d98a2fa | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /ai/modelscope/modelscope/models/cv/skin_retouching/inpainting_model/gconv.py | 8b3eb2fcbd3dbe379bd5eef128d6323d1fa965bc | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | alldatacenter/alldata | 7bc7713c9f1d56ad6b8e59ea03206d1073b7e047 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | refs/heads/master | 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 | Apache-2.0 | 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null | UTF-8 | Python | false | false | 5,759 | py | gconv.py | # Copyright (c) Alibaba, Inc. and its affiliates.
import torch
import torch.nn as nn
class GatedConvBNActiv(nn.Module):
def __init__(self,
in_channels,
out_channels,
bn=True,
sample='none-3',
activ='relu',
bias=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.