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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3ecc64b4548302800ee0cd56b6198049a837958 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /govern/data-quality/soda-core/soda/core/tests/helpers/mock_sampler.py | 4e963b4831144da01c7e5d1c71a9aa195d401f46 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-free-unknown"
] | 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 | 641 | py | mock_sampler.py | from dataclasses import dataclass
from typing import Tuple
from soda.sampler.sample_context import SampleContext
from soda.sampler.sample_ref import SampleRef
from soda.sampler.soda_cloud_sampler import SodaCloudSampler
@dataclass
class Sample:
rows: Tuple[Tuple]
sample_ref: SampleRef
class MockSampler(Sod... |
4310506928ede163ae9658dc05b67cff8080aeb0 | c4a2ae65c06d53466e9db29430c5048ad9988c94 | /muddery/common/utils/crypto.py | 8d6c5165a956a276821ff7a1344fe16343d0d120 | [
"BSD-3-Clause"
] | permissive | muddery/muddery | ac5a0dcb16b034844d91360e8154c70daca4c9d0 | 5fa06b29bf800646dc4da5851fdf7a1f299f15a7 | refs/heads/master | 2023-03-08T22:01:09.434955 | 2023-01-20T14:06:14 | 2023-01-20T14:06:14 | 33,435,868 | 139 | 64 | NOASSERTION | 2022-11-05T14:45:11 | 2015-04-05T09:07:47 | Python | UTF-8 | Python | false | false | 1,362 | py | crypto.py |
from Crypto.PublicKey import RSA as CryptoRSA
from Crypto.Cipher import PKCS1_v1_5
class RSA(object):
"""
Deal with crypto.
"""
def __init__(self):
self.key = None
self.cipher = None
def generate_key(self, length=1024):
"""
Generate RSA's key.
:param lengt... |
5d5a5dfccb96bad025d3645ce9e9288ccd2ab947 | 6ca4c2a13d2418dca6970896b3ec4627272d907e | /cclib/progress/__init__.py | 8116c686a20117504233e9be240f9b4c3f142aff | [
"BSD-3-Clause"
] | permissive | cclib/cclib | c3aa466900a1e207fde215f732af6630f1cc8c34 | b8d42a163ce9bafd4b660e2a933f56a8cc54fd9b | refs/heads/master | 2023-08-09T09:28:52.453568 | 2023-08-08T14:31:31 | 2023-08-08T14:31:31 | 15,514,912 | 285 | 190 | BSD-3-Clause | 2023-09-13T16:15:26 | 2013-12-29T20:59:14 | Python | UTF-8 | Python | false | false | 460 | py | __init__.py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2023, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
import sys
from cclib.progress.textprogress import TextProgress
Progress = TextProgress
if 'PyQt4' in list(sys.modules.k... |
2f6163dd8942a46d957ea096abd9807ae8ce8c61 | 3e1f6dfde5c940f7acde208d098e56a54550945f | /dash_docs/chapters/external_resources/index.py | f4d38c107add21af0c8f0284b42713761374719b | [
"MIT"
] | permissive | plotly/dash-docs | a4d1b9e450aa19e811f8ae043fd56de330cce63a | f494e987701be1085ba9fb7b29bd875ee2146d5b | refs/heads/master | 2023-08-03T02:18:16.257115 | 2021-12-14T18:51:52 | 2021-12-14T18:51:52 | 84,095,619 | 396 | 210 | MIT | 2023-01-18T20:29:56 | 2017-03-06T16:30:08 | Python | UTF-8 | Python | false | false | 25,635 | py | index.py | # -*- coding: utf-8 -*-
import dash_core_components as dcc
import dash_html_components as html
from dash_docs import styles
from dash_docs.tools import load_example, read_file, relpath
from dash_docs import reusable_components as rc
examples = {
'local-css': load_example(
'chapters/external_resources/exam... |
c8bb4cb4cf34c329536b17cf19a3b0efe1ae0068 | 0d40af0c10fd47af5ea88675e5be3b7ee98cbcd8 | /third_party/rust/jsparagus/update_stencil.py | 7350bb76e3a4e29b231c7566f21f8d3614ed53ce | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LLVM-exception"
] | permissive | mozilla/gecko-dev | f02cdc9e61197c1d2a038cf1ad8cb5339e8cb62a | 304e9eaa3d7dbfab38d5b5401cbae227b20efe37 | refs/heads/master | 2023-09-01T20:40:41.588946 | 2023-09-01T11:38:17 | 2023-09-01T11:38:17 | 13,509,108 | 3,025 | 1,882 | NOASSERTION | 2023-09-05T04:11:13 | 2013-10-11T20:35:42 | null | UTF-8 | Python | false | false | 20,272 | py | update_stencil.py | #!/usr/bin/env python3
""" Extract stencil data/struct from C++ header.
"""
import argparse
import os
import re
import shutil
import subprocess
import sys
from textwrap import dedent
parser = argparse.ArgumentParser(description='Update stencil data/struct')
parser.add_argument('PATH_TO_MOZILLA_CENTRAL',
... |
5e42d7c65cfe5885be8581808f2c49f4dd230d19 | adb6806da2c82f80e82e34492e0cc81ec4675d0f | /warriors/ndmp_warrior.py | a3359cbd2b20e2f914e25cb61fd5eeeaf6324c37 | [
"MIT"
] | permissive | carlospolop/legion | b526325639b93d075d706a594225da67cfdb2105 | 3c08884d8577925b4191bf1982e57a0177e331cb | refs/heads/master | 2023-05-25T01:27:04.949707 | 2022-06-18T22:12:44 | 2022-06-18T22:12:44 | 190,890,658 | 699 | 158 | MIT | 2023-05-19T05:33:42 | 2019-06-08T13:24:39 | Python | UTF-8 | Python | false | false | 689 | py | ndmp_warrior.py | # -*- coding: utf-8 -*-
from warriors.warrior import Warrior
class Ndmp_warrior (Warrior):
def __init__(self, host, port, workdir, protocol, intensity, username, ulist, password, plist, notuse, extensions, path, reexec, ipv6, domain, interactive, verbose, executed, exec):
Warrior.__init__(self, host, por... |
f7f4861f108acf17154df1f0f4f7bfda4ab5bb5a | e7f2a8c466c14b9821e59740ed0407107e1254a4 | /rasa/shared/nlu/training_data/formats/rasa.py | cfefbde7b24eade0ea590fb50cc5c697a46e7c21 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"MIT"
] | permissive | RasaHQ/rasa | 4a31134308a9a4d8824fe7faef02526accdd0f19 | 50857610bdf0c26dc61f3203a6cbb4bcf193768c | refs/heads/main | 2023-08-28T01:53:56.981600 | 2023-08-25T10:20:49 | 2023-08-25T10:20:49 | 70,908,208 | 13,167 | 3,739 | Apache-2.0 | 2023-09-14T09:54:40 | 2016-10-14T12:27:49 | Python | UTF-8 | Python | false | false | 4,495 | py | rasa.py | import logging
from collections import defaultdict
from typing import Any, Dict, Text
from rasa.shared.constants import DOCS_URL_MIGRATION_GUIDE
from rasa.shared.nlu.constants import TEXT, INTENT, ENTITIES
from rasa.shared.nlu.training_data.formats.readerwriter import (
JsonTrainingDataReader,
TrainingDataWrit... |
0e9274557c15abfc4028ec61f6604c0561362ee6 | 7cec63f4dd6d944d834783b7f764460ba6a8a8cb | /gengine/app/alembic/versions/d4a70083f72e_add_user_language.py | 5359c0a42b4f6642cc339cb9368e2bdfc36191ae | [
"MIT",
"ZPL-2.1",
"Apache-2.0",
"BSD-3-Clause-Modification",
"LGPL-2.0-or-later"
] | permissive | ActiDoo/gamification-engine | a8e51e795fd9d36d228885e19f263d7ffcb979c6 | b82a900f2f4a43cea463853e36d6f8237c7f255e | refs/heads/master | 2023-08-30T14:28:57.095777 | 2022-02-11T11:10:15 | 2022-02-11T11:10:15 | 31,541,379 | 413 | 130 | MIT | 2023-02-15T22:54:16 | 2015-03-02T13:28:17 | Python | UTF-8 | Python | false | false | 1,211 | py | d4a70083f72e_add_user_language.py | """Add User Language
Revision ID: d4a70083f72e
Revises: 3512efb5496d
Create Date: 2016-07-22 14:04:43.900826
"""
# revision identifiers, used by Alembic.
revision = 'd4a70083f72e'
down_revision = '3512efb5496d'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
... |
99f05e0b310ae2cfdffa2b29685551a3c7e478d2 | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/engine/environment.py | 371b56e16209300150d700afe426734aa2ef325f | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 1,080 | py | environment.py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from dataclasses import dataclass
from pants.engine.engine_aware import EngineAwareParameter
LOCAL_ENVIRONMENT_MATCHER = "__local__"
@dataclass(froze... |
fded649dd5fc9d16b6cbddffc108dadd6a63d112 | e7e536df0263ae2a7ac44ef30f19110f891213a9 | /src/pretalx/submission/forms/submission.py | 1fe0b091f84e14ec74d42daf8a2aa4376ae4ccdc | [
"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 | 14,401 | py | submission.py | from django import forms
from django.db.models import Count
from django.utils.timezone import now
from django.utils.translation import gettext_lazy as _
from django_scopes.forms import SafeModelChoiceField
from pretalx.cfp.forms.cfp import CfPFormMixin
from pretalx.common.forms.fields import ImageField
from pretalx.co... |
638ea5fa418fa8b4e2801d434f229215863903fe | 76ea7ea9265a780256bfc82c47c855fb1f0294b9 | /core/linting.py | faeaa6301eeb7ee16236e7a9aa96b3607e416af3 | [
"MIT"
] | permissive | alexmojaki/futurecoder | 662c4100f67ee5c8feaeb6e675a7e86f5e79af36 | b28e8db029f15a11ff67f4dbec7b176ccbbd632b | refs/heads/master | 2023-06-25T05:46:45.743271 | 2023-06-02T15:02:18 | 2023-06-02T15:02:18 | 231,656,051 | 1,123 | 154 | MIT | 2023-06-02T15:02:19 | 2020-01-03T19:59:26 | Python | UTF-8 | Python | false | false | 3,049 | py | linting.py | import ast
from pyflakes import checker
from pyflakes.messages import UnusedImport, UnusedVariable, IsLiteral, RedefinedWhileUnused, ImportShadowedByLoopVar, \
ImportStarNotPermitted, MultiValueRepeatedKeyLiteral
from core import translation as t
MESSAGES = {
UnusedImport: """
**Unused import `{0}`**
You im... |
f81f2b5410f38708e35adbd7a90b89cbc93121dc | b8bbdfc593b6d816e67a344f720f90ec05236778 | /tests/core/test_logging_config.py | 0d8fbbed214ce17b75d2172e6ad7fb4267417fd5 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | apache/airflow | ed78db0a8bab7e096990e143926e52f518e288ab | 1b122c15030e99cef9d4ff26d3781a7a9d6949bc | refs/heads/main | 2023-09-01T08:37:34.556097 | 2023-09-01T06:49:05 | 2023-09-01T06:49:05 | 33,884,891 | 22,756 | 11,558 | Apache-2.0 | 2023-09-14T20:12:36 | 2015-04-13T18:04:58 | Python | UTF-8 | Python | false | false | 12,464 | py | test_logging_config.py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... |
52b83ee7448ea3f53c8bffccd1832fb025827819 | 6662fa24dfab8ace6c8a4852bc4e8b91e7abd9c4 | /Python/Examples/Macros/JointsPlayback.py | 9acf8cfeaef52d80a4aedbfb827c52d4a20ec7f6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | RoboDK/RoboDK-API | 7b71da015de3cabeaebf83e559bd3afb2aa189eb | 9fa5b7bcc30bf0aab70e4b46aff9a0e0f4f27fd3 | refs/heads/master | 2023-08-30T11:05:04.165912 | 2023-08-24T23:13:39 | 2023-08-24T23:13:39 | 123,698,891 | 206 | 115 | NOASSERTION | 2023-07-19T09:47:15 | 2018-03-03T14:24:09 | Python | UTF-8 | Python | false | false | 2,025 | py | JointsPlayback.py | # This macro will move the robot along a list of joints in a CSV file
# Tip: Use the macro MonitorJoints.py to record a CSV file that can be loaded by this script
TIME_MATCH = False
MEASURE_COLLISIONS = False
from robodk.robolink import * # API to communicate with RoboDK
from robodk.robomath import * # basic matrix... |
9990d50384d041ed3dd1d17c2675f96659894a92 | 0bcd128368e2de959ca648960ffd7944067fcf27 | /gn/checkdir.py | 3ad5819f5f63471611f567f458d2dbcf7374dfff | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google/skia | ac6e39179cd33cf0c8a46d29c1a70bf78b4d74ee | bf6b239838d3eb56562fffd0856f4047867ae771 | refs/heads/main | 2023-08-31T21:03:04.620734 | 2023-08-31T18:24:15 | 2023-08-31T20:20:26 | 15,773,229 | 8,064 | 1,487 | BSD-3-Clause | 2023-09-11T13:42:07 | 2014-01-09T17:09:57 | C++ | UTF-8 | Python | false | false | 276 | py | checkdir.py | #!/usr/bin/env python
#
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
import os
import sys
dirpath, = sys.argv[1:]
print(os.path.isdir(dirpath))
|
87661eda0a771b69c004d002fa9758520080b4a7 | c61a4403e4925fb9c80447c982ee7f597eaf4862 | /models/Oracle.py | 0ea46c8e885975915f8319c75b320f75c0ba88d9 | [
"MIT"
] | permissive | williamSYSU/TextGAN-PyTorch | f7c149fcc4032e73050acb8f6b0384ad054fd5ec | 7ff8909e92fe01160275a6d62a34ffdfcc018bca | refs/heads/master | 2023-07-20T13:33:17.573605 | 2023-02-02T02:54:25 | 2023-02-02T02:54:25 | 178,318,753 | 865 | 224 | MIT | 2023-07-06T13:04:26 | 2019-03-29T02:36:16 | Python | UTF-8 | Python | false | false | 752 | py | Oracle.py | # -*- coding: utf-8 -*-
# @Author : William
# @Project : TextGAN-william
# @FileName : Oracle.py
# @Time : Created at 2019-04-25
# @Blog : http://zhiweil.ml/
# @Description :
# Copyrights (C) 2018. All Rights Reserved.
from models.generator import LSTMGenerator
class Oracle(LSTMGener... |
45bf8cae5d56caa82817ca972f744b453402bb15 | c117e905ac5f1938da3c8e23845ad52cc922923a | /src/orion/algo/mofa/mofa.py | 6ef6a5a48b02880a65fd949c8f35963233d36bb4 | [
"BSD-3-Clause"
] | permissive | Epistimio/orion | 2850983dd7ac0a417d451d39b2dc7a652f1920c8 | 2944875eff03b86138d6780df4b1dd6dc8158ccb | refs/heads/develop | 2023-09-01T20:36:59.279966 | 2023-08-21T13:25:43 | 2023-08-21T13:25:43 | 102,697,867 | 218 | 41 | NOASSERTION | 2023-08-21T12:51:55 | 2017-09-07T06:05:21 | Python | UTF-8 | Python | false | false | 15,150 | py | mofa.py | """
:mod:`orion.algo.mofa.mofa` -- MOFA
============================================
MOdular FActorial Design (MOFA)
"""
from __future__ import annotations
# pylint: disable=attribute-defined-outside-init,invalid-name
import copy
import logging
from collections import defaultdict
from typing import Sequence
import ... |
10fc10c911f8a14ca8050cda2aa9c31de635a88c | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/runtime/queries/create_entity.py | c740987e64f199c2305bfdf005e34ede1f514c05 | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 817 | py | create_entity.py | from office365.runtime.queries.client_query import ClientQuery
class CreateEntityQuery(ClientQuery):
def __init__(self, parent_entity, parameters, return_type=None):
"""
Create entity query
:type return_type: office365.runtime.client_object.ClientObject
:type parameters: office365... |
d6161fcc3b344ed932d39a7b8d5c1eeb8193b300 | 3328540b01c313d58d98ef12ebb4a3c1f82f4bf3 | /sfm/ui/migrations/0020_auto_20180608_1144.py | b295f892ed9d9bf3578e1626833e04b363d2da97 | [
"MIT"
] | permissive | gwu-libraries/sfm-ui | 0f342cc8555813223c048bb26beaeee123a8a319 | d38886fb7e534973ea979caad2ab31b3904d651b | refs/heads/master | 2023-08-21T16:34:31.967005 | 2023-08-10T20:51:56 | 2023-08-10T20:51:56 | 39,789,776 | 144 | 32 | MIT | 2023-07-05T23:25:54 | 2015-07-27T18:03:43 | Python | UTF-8 | Python | false | false | 762 | py | 0020_auto_20180608_1144.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ui', '0019_auto_20180530_1831'),
]
operations = [
migrations.AddField(
model_name='collection',
name... |
2d04f295bbb72e37da8176b0eba55f180f27f4d5 | 6defeaa9e3eff61cd861c855ed2f65db2a457564 | /onmt/inputters/iterator.py | 6f2900c1b48438e282faf594cb7949f8470dcde8 | [
"MIT"
] | permissive | memray/OpenNMT-kpg-release | 50439d2a58d4499b3a4b1d1fdb586d266c4367e7 | d16bf09e21521a6854ff3c7fe6eb271412914960 | refs/heads/master | 2023-08-17T14:32:04.442881 | 2023-01-31T03:24:46 | 2023-01-31T03:24:46 | 213,238,221 | 222 | 34 | MIT | 2023-07-22T18:03:01 | 2019-10-06T20:23:17 | Jupyter Notebook | UTF-8 | Python | false | false | 5,764 | py | iterator.py | """Contains all methods relate to iteration."""
import torchtext.data
from onmt.utils.logging import logger
def batch_iter(data, batch_size, batch_size_fn=None, batch_size_multiple=1):
"""Yield elements from data in chunks of batch_size, where each chunk size
is a multiple of batch_size_multiple.
This i... |
aa7648390c4c9ddadf48f4bac54e812f5fb6ec5d | 28cf7b16dd29a5802d09b44b0186f6ae2c5ff0ed | /kuryr_kubernetes/cni/binding/base.py | b46b5e55fd4324117472c7250bba7f3179bdaa12 | [
"Apache-2.0"
] | permissive | openstack/kuryr-kubernetes | c292826abfb8aa0d3f8ef3b1007362162db16956 | 4993c7a4b2d7e4b053832bf39602f2573fad6266 | refs/heads/master | 2023-08-18T19:21:02.487908 | 2023-08-03T13:58:11 | 2023-08-03T13:58:11 | 58,626,548 | 169 | 78 | Apache-2.0 | 2022-04-13T02:27:52 | 2016-05-12T09:14:29 | Python | UTF-8 | Python | false | false | 6,107 | py | base.py | # Copyright (c) 2016 Mirantis, 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 requir... |
2b9d19baef855ef6b24d26bed71b34cab29cbf40 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /edgelm/fairseq/models/masked_lm.py | b5441eb1542aac90be2478f34fe0c6c434ce8e25 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 15,648 | py | masked_lm.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 logging
import torch
import torch.nn as nn
import torch.nn.functional as F
from fairseq import utils
from fairseq.models im... |
35955178a5b911a544469b2c96622b6f198c0fc5 | c7fda71ef70a7ffcc59ba648e164f5b7666d3fc8 | /test/swig/Neg.py | 727f30bd419cccd0ada6de6590f121586de3444d | [
"Apache-2.0"
] | permissive | ai-techsystems/deepC | 6c7df32ba61f2e85fc1eab5af4ef4f5c1368cf71 | 064a7cc04f96e20013ad7ae26a6abd6ef16ab77c | refs/heads/master | 2023-08-04T06:08:20.817613 | 2022-10-29T15:12:26 | 2022-10-29T15:12:26 | 193,276,319 | 343 | 69 | Apache-2.0 | 2021-08-19T19:39:50 | 2019-06-22T20:23:12 | C++ | UTF-8 | Python | false | false | 2,453 | py | Neg.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License") you may not us... |
84cedd6853cbb505b2fd63f4b55811ecc2c13ac1 | e9f8704efe416f28dfd868f8a3c4ecf876809af7 | /tests/test_scoring_method_consistency.py | cd6d22e0f718e58e9239f7edc61596e00e19edbd | [
"Apache-2.0"
] | permissive | matchms/matchms | 8ee1285f19bb0bbd340562cc7d702803972eba5c | a161325b2edfa35e2a6f3fb2de30e1de171ba676 | refs/heads/master | 2023-09-01T20:08:05.453420 | 2023-09-01T11:30:07 | 2023-09-01T11:30:07 | 265,598,917 | 140 | 55 | Apache-2.0 | 2023-09-12T08:48:10 | 2020-05-20T14:55:48 | Python | UTF-8 | Python | false | false | 4,322 | py | test_scoring_method_consistency.py | """Test if the available methods to compute scores give the same results.
Scoring functions can be called individually (`.pair()`) or with `.sparse_array()`
or `.matrix()`. The latter are optimized for bigger datasets but should yield
the same results.
Some scoring methods will be omitted because they would require ad... |
bb9fea4f810fe0fc04828999147b2ba7f8f9c752 | e7efae2b83216d9621bd93390959d652de779c3d | /datadog_checks_base/tests/base/test_constants.py | e4b97883ac8d86a7d46f9b7e07d8cba54fa53ba6 | [
"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"
] | 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 | 387 | py | test_constants.py | from datadog_checks.base import AgentCheck
from datadog_checks.base.constants import ServiceCheck
def test_service_check_constants():
# type: () -> None
assert ServiceCheck.OK == AgentCheck.OK == 0
assert ServiceCheck.WARNING == AgentCheck.WARNING == 1
assert ServiceCheck.CRITICAL == AgentCheck.CRITIC... |
3cf7d285955636bf4cc207eeed1379e9601d6d0a | f4aa1885d4121e131c2a580183c6312aeefa8147 | /ch08/myproject_virtualenv/src/django-myproject/myproject/apps/core/form_fields.py | ab5929c480ec601aa61d0846cac67e20a943bcb2 | [
"MIT"
] | permissive | PacktPublishing/Django-3-Web-Development-Cookbook-Fourth-Edition | 8f09d1ea9b13e8a66fc489fc09c9a5ee8f9968cf | 9371e0ea6f4dc61567bf28299cf57146519e274c | refs/heads/master | 2023-02-20T02:36:51.226985 | 2023-01-30T08:39:30 | 2023-01-30T08:39:30 | 201,903,680 | 189 | 117 | MIT | 2023-02-10T22:45:42 | 2019-08-12T09:54:54 | Python | UTF-8 | Python | false | false | 192 | py | form_fields.py | from django import forms
class MultipleChoiceTreeField(forms.ModelMultipleChoiceField):
widget = forms.CheckboxSelectMultiple
def label_from_instance(self, obj):
return obj
|
5e566bebf19eb98d4cb19c877594fe2680981f6c | 8e907b84175c08397b7ea0eea3c7aa5f90a58f28 | /aligulac/simul/formats/team.py | 87cd99832e32b25707625c73459fd585e680f963 | [] | no_license | TheBB/aligulac | 7e5c081b608278368563650307a521691211ef05 | 4b18637a6efb898821f15beac9947551aca2a424 | refs/heads/master | 2022-12-12T05:16:10.186091 | 2022-02-17T06:29:31 | 2022-04-20T11:24:29 | 7,734,890 | 212 | 31 | null | 2022-12-08T05:19:48 | 2013-01-21T15:38:48 | Python | UTF-8 | Python | false | false | 174 | py | team.py | from simul.formats.composite import Composite
class Team(Composite):
def __init__(self, schema_in, schema_out):
Composite.__init__(self, schema_in, schema_out)
|
6f73b89a49a4690cf338618cbbf9baf36f8fd091 | 7587ea7a28521716c73f56cada163e5a88bdfa65 | /designate/tests/unit/test_dnsutils.py | 3e83f1e85a018871afb0e4e273deb0000c4a7946 | [
"Apache-2.0"
] | permissive | openstack/designate | 4818dc8ed8e512dbe9f619419dd1db63c3f7af4d | 360433b38b449d1c53ab1357fdb0c4608c09efa5 | refs/heads/master | 2023-09-04T06:58:02.643828 | 2023-08-27T11:10:49 | 2023-08-27T11:10:49 | 21,305,972 | 156 | 118 | Apache-2.0 | 2019-12-16T09:37:37 | 2014-06-28T15:47:32 | Python | UTF-8 | Python | false | false | 9,158 | py | test_dnsutils.py | # Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# Author: Endre Karlson <endre.karlson@hpe.com>
#
# 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/lic... |
a9ae7db40d5dfe0db8a5b380b155cd97b0f46df2 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /5_map/经典题/哈希表统计/1224. 最大相等频率-有序集合维护有序的频率.py | 02abf9aa21c14e99a2251e34d4e48823cff8be46 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | 1224. 最大相等频率-有序集合维护有序的频率.py | """最大相等频率
找出最长的前缀 使得
从前缀中 恰好删除一个 元素后,剩下每个数字的出现次数都相同
https://leetcode.cn/problems/maximum-equal-frequency/solution/zui-da-xiang-deng-pin-lu-by-leetcode-sol-5y2m/
"""
# !求最长的前缀,使得移除一个元素之后,剩下所有元素freq相等
from typing import List
from collections import Counter
from sortedcontainers import SortedList
clas... |
f85860dea0697d6ce03a1d30df96ec7e444459e4 | 2f24871ed5abc8b0ebd862a99dde4339bafbfad9 | /moveit_py/moveit/core/planning_scene.pyi | a18ecb7b3bf0ef634d714094187593b9f86cb6f5 | [
"BSD-3-Clause"
] | permissive | ros-planning/moveit2 | b3c01ac1197a302d4ee834f9addfde754a2b07e9 | 47d92ef973680aea1badd6cc6080598f040a89f4 | refs/heads/main | 2023-09-04T08:32:28.333482 | 2023-08-24T15:44:29 | 2023-08-24T15:44:29 | 170,893,393 | 680 | 445 | BSD-3-Clause | 2023-09-14T17:23:51 | 2019-02-15T16:17:11 | C++ | UTF-8 | Python | false | false | 1,396 | pyi | planning_scene.pyi | from typing import Any
class PlanningScene:
current_state: Any
name: Any
def __init__(self, *args, **kwargs) -> None: ...
def apply_collision_object(self, *args, **kwargs) -> Any: ...
def check_collision(self, *args, **kwargs) -> Any: ...
def check_collision_unpadded(self, *args, **kwargs) -> A... |
4cc072e5b765a1e497a7129ff0a3af47af43c8d2 | 1e92cc7daabe240b374d73da462878e80814171b | /manila/tests/api/v1/test_share_metadata.py | 15f45c43b598ff172db87d8e8b89e48f9c24b68b | [
"Apache-2.0"
] | permissive | openstack/manila | e211281dd16128ac5685cd7b1a13a09d9e6456e1 | a93a844398a11a8a85f204782fb9456f7caccdbe | refs/heads/master | 2023-08-19T04:23:24.084637 | 2023-08-17T14:55:58 | 2023-08-17T14:55:58 | 24,245,238 | 178 | 141 | Apache-2.0 | 2023-08-03T10:43:19 | 2014-09-19T20:57:05 | Python | UTF-8 | Python | false | false | 18,937 | py | test_share_metadata.py | # Copyright 2011 OpenStack Foundation
# 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 requ... |
6e131255a5e2cf2d58e865f0a736daa9d308d1e1 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/bokeh-1.4.0-py3.7.egg/bokeh/models/transforms.py | 09ac98227d3026fbe9a08bb26a0967535a19f97d | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 13,400 | py | transforms.py | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... |
34ae3419e50bfe263fa9f236eb7eb6275579dca7 | d7fd46dfd8aab520c4958fa065367e168b6bfee7 | /examples/example_compiler_gym_service/demo_without_bazel_test.py | 6f6f838342e815de6c82973e7169acc4b6dc51bd | [
"MIT"
] | permissive | facebookresearch/CompilerGym | f04a79fbfdbaf8afd6920ec205db6f1b6003d073 | 9e0c0beb12da1e1ea82ae6ce920713ee28dda4c9 | refs/heads/development | 2023-08-31T09:17:48.967970 | 2023-03-10T19:29:56 | 2023-03-10T19:29:56 | 312,059,069 | 787 | 126 | MIT | 2023-03-10T19:29:58 | 2020-11-11T18:44:35 | Python | UTF-8 | Python | false | false | 398 | py | demo_without_bazel_test.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.
"""Smoke test for examples/example_compiler_gym_service/demo_without_bazel.py"""
from example_compiler_gym_service.demo_without_bazel import ma... |
e139fefe572bf87c3c9740bc8cf34cf0fc59f837 | cab30ecbc96d20fe7d84917837fec2cfab8e033e | /sudoku-solver/sudoku_solver/solver.py | 3136cb322d450dc2ef79b50b6a92ef2ed4954c1c | [
"MIT"
] | permissive | hastagAB/Awesome-Python-Scripts | db677d6bd804346f65aebf925d5abcc8eacbafff | 93dd7abb03d27cf3490d8b2514365260d67ab15b | refs/heads/master | 2023-08-08T02:41:39.850388 | 2023-07-17T05:57:15 | 2023-07-17T05:57:15 | 151,300,405 | 1,757 | 750 | MIT | 2023-09-12T20:23:26 | 2018-10-02T18:06:52 | Python | UTF-8 | Python | false | false | 1,283 | py | solver.py | def printsudoku(sudoku):
print("\n\n")
for i in range(len(sudoku)):
line = ""
if i == 3 or i == 6:
print("---------------------")
for j in range(len(sudoku[i])):
if j == 3 or j == 6:
line += "| "
line += str(sudoku[i][j])+" "
pr... |
0f89c3c4620e1e7d2b82116cb763d503f475c826 | cc573d2683c1c31619123b9838bca8f0bfd3fcd7 | /tools/scan-libs-dir.py | 60cbc10f6846f5c6386904b2ec90e49830dfd6a5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | nuta/resea | e8b2d4c3fdf686f61dd60c56b191a459a37dd4dd | ac85038e17257a3d671e80e188176cd51b3c28be | refs/heads/main | 2023-08-03T20:58:17.920917 | 2021-12-24T07:00:11 | 2021-12-24T07:00:39 | 161,713,949 | 310 | 24 | NOASSERTION | 2023-09-06T11:46:20 | 2018-12-14T01:12:15 | C | UTF-8 | Python | false | false | 1,248 | py | scan-libs-dir.py | #!/usr/bin/env python3
import argparse
import os
import sys
from pathlib import Path
from colorama import Fore, Style
def error(msg):
sys.exit(
f"{Fore.RED}{Style.BRIGHT}scan-libs-dir.py: {msg}{Style.RESET_ALL}")
def lib_dir_lint(lib_dir: Path):
lib_name = lib_dir.stem
makefile = open(lib_dir / ... |
872d81e2007c36c73eb70a32d03abd4d78b388fb | 75aff23f2ed633ab4bd8289d8f38bb6e3ec70628 | /tools/model-check/check/check.py | 6f53791d66304fb1d4bbeaa08f17ca5d684de03a | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle.js | 0e26fe023f4aa67605dff7d935f04ab626eea960 | 205c03c08702705a7bd2073506c953add39d95f5 | refs/heads/release/v2.2.5 | 2023-03-11T07:45:47.594493 | 2022-11-17T12:21:29 | 2022-11-17T12:21:29 | 250,154,445 | 882 | 142 | Apache-2.0 | 2023-01-10T07:52:33 | 2020-03-26T03:43:58 | JavaScript | UTF-8 | Python | false | false | 7,725 | py | check.py | import paddle.fluid as fluid
import paddle as paddle
import argparse
import traceback
import os
import numpy as np
global pcExceed
pcExceed = []
global wiseExceed
wiseExceed = []
global notSupportOps
notSupportOps = []
def excludeNegativeShape(shape):
varShape = list(shape)
varShapeExcludeNegativeOne = []
... |
3c61d714e441351aaa6bb909842b9d360910c73e | 10fe9643c97b2dd976329753b58ba7c72e837783 | /simba/ui/pop_ups/video_processing_pop_up.py | dd3e27675fdd882f7fcf7c40ece2ed0aaf17bfba | [
"GPL-3.0-only"
] | permissive | sgoldenlab/simba | 456bc6663222e6deec27f98e0549b64e13930846 | ab5162ba23d1970b2b97f329d1607feec5d4ef7c | refs/heads/master | 2023-08-31T20:11:27.839593 | 2023-08-31T00:41:15 | 2023-08-31T00:41:15 | 206,670,333 | 247 | 127 | MIT | 2023-05-21T15:54:20 | 2019-09-05T22:53:05 | Python | UTF-8 | Python | false | false | 46,941 | py | video_processing_pop_up.py | __author__ = "Simon Nilsson"
import glob
import os
import sys
from tkinter import *
from PIL import Image, ImageTk
import simba
from simba.labelling.extract_labelled_frames import AnnotationFrameExtractor
from simba.mixins.config_reader import ConfigReader
from simba.mixins.pop_up_mixin import PopUpMixin
from simba.... |
56d6f5f018a9ce97b6dd923e5cdd063fba90105e | e2e34d01afc5b6bc6923a721ef92e8ffa8884f86 | /azure_functions_worker/loader.py | 49782c98a80a54ae3fde3fc1d39d1585952b37fc | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-functions-python-worker | 094340eeb0c4728e3202749027f01ab75e908bd8 | d4bdf7edc544b6c15e541930f890da790b180ebd | refs/heads/dev | 2023-08-22T22:48:01.645722 | 2023-08-14T14:52:42 | 2023-08-14T14:52:42 | 117,730,503 | 329 | 122 | MIT | 2023-09-01T16:54:58 | 2018-01-16T19:23:54 | Python | UTF-8 | Python | false | false | 7,532 | py | loader.py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""Python functions loader."""
import importlib
import importlib.machinery
import importlib.util
import os
import os.path
import pathlib
import sys
import time
from datetime import timedelta
from os import PathLike, fspath
fro... |
ea6bd8353f26c08644206ea2659d087b9d79075e | 71fb04f723b46a1bf45295be239bcec25e07f98c | /keras_cv/models/legacy/__init__.py | 419ae34b318a9b97f6dafa7e5451fd2dc9cbffb2 | [
"Apache-2.0"
] | permissive | keras-team/keras-cv | 9bca4479474e853ec3a1c541b8be20fea2447a1a | e83f229f1b7b847cd712d5cd4810097d3e06d14e | refs/heads/master | 2023-08-31T10:22:08.406394 | 2023-08-30T20:24:57 | 2023-08-30T20:24:57 | 265,079,853 | 818 | 287 | NOASSERTION | 2023-09-12T16:49:01 | 2020-05-18T22:39:21 | Python | UTF-8 | Python | false | false | 3,392 | py | __init__.py | # Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... |
b6b7368d7152def4db72bc0e9c99877a87c3101f | 61c4b7973dc50c0c2481c745436ff39a8600ff1c | /2009/pyqtris/pyqtris_src/pyqtris.pyw | 8a90e4bc51a6c163eb8eba4e6518c64bd65d042a | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | eliben/code-for-blog | ff1a0b3a495db2c57bfeb431107767bb728b9417 | 94e36f22017424b5e372c5f362e0dde0f21b7fd3 | refs/heads/master | 2023-09-01T17:57:08.074883 | 2023-08-28T13:13:26 | 2023-08-28T13:13:26 | 23,960,698 | 1,482 | 1,019 | Unlicense | 2023-07-06T13:58:51 | 2014-09-12T12:59:05 | Python | UTF-8 | Python | false | false | 256 | pyw | pyqtris.pyw | """ A convenience startup file for the game.
"""
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from lib.tetrisgame import TetrisMainWindow
app = QApplication(sys.argv)
form = TetrisMainWindow()
form.show()
app.exec_()
|
fba7ff904e2d00e9d2eba030f776e282d2a087b4 | 3e1ae16ca94c652b5a05a9c150d85d5e909186b7 | /edward2/trace_test.py | 4737c9d2c81e13dbdcf5e5b90617181160ff2624 | [
"Apache-2.0"
] | permissive | google/edward2 | c2c75f2b7a72b96eb9cdef94756c47fc205e3110 | ccdb9bfb11fe713bc449f0e884b405f619f58059 | refs/heads/main | 2023-08-31T10:33:16.291114 | 2023-07-27T20:36:19 | 2023-07-27T20:37:25 | 201,102,332 | 710 | 96 | Apache-2.0 | 2023-09-11T20:41:55 | 2019-08-07T18:01:40 | Jupyter Notebook | UTF-8 | Python | false | false | 3,576 | py | trace_test.py | # coding=utf-8
# Copyright 2023 The Edward2 Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
e8db9f43cdff30aea640328118c18576ca323f32 | 77685b9285c5284817745f1f3535d43b669f49dd | /tests/utils/generate_msg_interface.py | 06f1678ae1deff13ef7155a20a211a284d083a1d | [
"MIT"
] | permissive | M0r13n/pyais | 86307edae1dd2719dac2561f3bf550983c120dbc | 13633baec383d024028e40592391ea7348dd3ff5 | refs/heads/master | 2023-08-03T10:48:08.275587 | 2023-07-30T08:28:14 | 2023-07-30T08:28:14 | 212,847,903 | 124 | 62 | MIT | 2023-09-09T08:54:11 | 2019-10-04T15:32:17 | Python | UTF-8 | Python | false | false | 674 | py | generate_msg_interface.py | from pyais.messages import MSG_CLASS
for typ, cls in MSG_CLASS.items():
if not cls.fields():
continue
print(cls.__name__, cls.__doc__)
print()
print("\tAttributes:")
for field in cls.fields():
print("\t\t*", f"`{field.name}`")
if field.name == 'radio':
print('\t... |
66250d8fa0a4ad1dcf0f6bfd61df218ab27ea094 | 2a271a3827527456aaee84c2bc6f365d5d083722 | /software/tests/test_textutils.py | ce4a793497a60f10c49f537814d44aad00c7b5a9 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | schemaorg/schemaorg | a003f55f639c4c0c6b34aac2615f01264f5fe615 | bd3df4106937863a6ae9351fcb4782b67a016357 | refs/heads/main | 2023-08-15T04:51:12.309628 | 2023-07-19T10:25:18 | 2023-07-19T10:25:18 | 16,394,957 | 5,326 | 969 | Apache-2.0 | 2023-08-23T14:27:50 | 2014-01-30T23:58:35 | HTML | UTF-8 | Python | false | false | 1,398 | py | test_textutils.py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import itertools
import os
import sys
import unittest
import tempfile
for path in [os.getcwd(), "software/util"]:
sys.path.insert(1, path) #Pickup libs from local directories
import textutils
class TestStripHtmlTags(unittest.TestCase):
"""Test for the `StripHtmlTag... |
cc74e92e2113ed8a0956e639937f2e9b35e53aba | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/search/_client_factory.py | 663f6b5ef4514ae51f6495afd6f4cf9ecfd2c783 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 1,160 | py | _client_factory.py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
f2fd073bf672d8adca92f2cd24276956deef9520 | d7f9fa7a67b1a7ebe4f25ef184463b973dec929d | /niconvert/libass/studio.py | 793adae999b33a3502d8621acb1f9931e7ea5d89 | [] | no_license | muzuiget/niconvert | 7e4918b560ee2a38d2004b838478d24274ad8793 | 95bfc63d4795b71d815c6f37835f1ed034efddf6 | refs/heads/master | 2022-09-22T19:24:49.466384 | 2022-08-15T02:51:00 | 2022-08-15T02:51:54 | 3,635,609 | 194 | 32 | null | 2013-05-29T13:04:25 | 2012-03-06T07:31:05 | Python | UTF-8 | Python | false | false | 1,159 | py | studio.py | from niconvert.libass.config import Config
from niconvert.libass.creater import Creater
class Studio:
''' 字幕工程类 '''
def __init__(self, args, danmakus):
self.config = Config(args)
self.danmakus = danmakus
def start_handle(self):
self.creater = self._creater()
self.keeped_co... |
c8083fa3e8ef8f586b7fcaed24572890280134d9 | 61673ab9a42f7151de7337608c442fa6247f13bb | /pygame/GUI- widgets-SGC/sgc3/widgets/_interface/text.py | 9ea0c53d8fc3674ea090117acb46afc43d18eab2 | [
"BSD-2-Clause",
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 11,628 | py | text.py | # Copyright 2010-2012 the SGC project developers.
# See the LICENSE file at the top-level directory of this distribution
# and at http://program.sambull.org/sgc/license.html.
import warnings
import pygame
from pygame.locals import *
from .._locals import *
class SelectableText:
_text = ""
_text_offset = _te... |
3945a80717c9e84d9cecc168768d7b49f77ad41c | 811f4cdb25e26f3b27640aaa2e2bca93e660d2d7 | /tests/pre_merge/models/components/test_blur.py | d9185a3a4bf55264722e81b3ee231e15a0f005a6 | [
"CC-BY-SA-4.0",
"CC-BY-SA-3.0",
"CC-BY-NC-SA-4.0",
"Python-2.0",
"Apache-2.0"
] | permissive | openvinotoolkit/anomalib | 4467dfc392398845e816387267cdf979ff76fe15 | 4abfa93dcfcb98771bc768b334c929ff9a02ce8b | refs/heads/main | 2023-09-03T16:49:05.019269 | 2023-08-28T14:22:19 | 2023-08-28T14:22:19 | 423,775,360 | 2,325 | 454 | Apache-2.0 | 2023-09-14T11:21:33 | 2021-11-02T09:11:38 | Python | UTF-8 | Python | false | false | 818 | py | test_blur.py | import pytest
import torch
from kornia.filters import GaussianBlur2d as korniaGaussianBlur2d
from anomalib.models.components import GaussianBlur2d
@pytest.mark.parametrize("sigma", [(4.0, 4.0), (1.9, 3.0), (2.0, 1.5)])
@pytest.mark.parametrize("channels", list(range(1, 6)))
@pytest.mark.parametrize("kernel_size", [(... |
c8ac9fcf40f9ae83c5cc849c9bdd28bdbdfe9187 | bea2e5924a62b76a767b3eb915abb3f95a225926 | /research/pate_2018/ICLR2018/utility_queries_answered.py | d8663ad90b0ff7f571aac53058f142ded709786f | [
"Apache-2.0",
"MIT"
] | permissive | tensorflow/privacy | 741ddc106e9b73384a1356bf915dc8f7f97ce768 | c92610e37aa340932ed2d963813e0890035a22bc | refs/heads/master | 2023-09-03T20:42:21.040653 | 2023-08-30T19:53:38 | 2023-08-30T19:54:08 | 162,747,292 | 1,881 | 493 | Apache-2.0 | 2023-09-14T19:55:15 | 2018-12-21T18:46:46 | Python | UTF-8 | Python | false | false | 3,309 | py | utility_queries_answered.py | # Copyright 2018 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... |
fd4cd1a033d7a549ee25460f750174e619d1f49b | 24021fe2eb98aca9bc35f5b017fa8c631581bb54 | /vulnerabilities/forms.py | 793936c724e318487b808d6372824e9c8f642235 | [
"Apache-2.0",
"CC-BY-SA-4.0",
"Python-2.0"
] | permissive | nexB/vulnerablecode | 0253160c1b04cd992899bf5b74ad76ac125a68ae | eec05bb0f796d743e408a1b402df8abfc8344669 | refs/heads/main | 2023-09-03T21:48:21.368810 | 2023-08-31T16:52:41 | 2023-08-31T16:52:41 | 91,780,998 | 371 | 181 | Apache-2.0 | 2023-09-11T19:24:24 | 2017-05-19T07:56:17 | Python | UTF-8 | Python | false | false | 2,578 | py | forms.py | #
# Copyright (c) nexB Inc. and others. All rights reserved.
# VulnerableCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/vulnerablecode for support or download.
# See https://aboutcode.org for mor... |
4e7b2d75e7903fb465f2fc40fdcfa40609bd3961 | 0351ff5888ba1bec6b8643ea0b4fb4aa2d805b53 | /biggraphite/cli/command_stats.py | f2e799b8956d103e0dde6858f47a7cda61c23eca | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | criteo/biggraphite | aa71ca2105df0da92d41c5894f191e4cc54f7a2e | 1f647ada6b3f2b2f3fb4e59d326f73a2c891fc30 | refs/heads/master | 2022-12-11T04:00:28.341918 | 2021-10-01T09:07:29 | 2021-10-01T09:07:29 | 57,889,412 | 129 | 43 | Apache-2.0 | 2022-11-04T19:39:42 | 2016-05-02T12:42:07 | Python | UTF-8 | Python | false | false | 13,270 | py | command_stats.py | #!/usr/bin/env python
# Copyright 2016 Criteo
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
5265378bc3d2ce2f0d91d3e11d7cb567fb5ad2e8 | 7f24023d365e013ec0924844c1a872edfb0c75b4 | /pyxb/bundles/opengis/gml_3_3/lr.py | e95eaacf016a17e3411820db055a8281e1ebeef0 | [
"Python-2.0",
"MIT",
"Apache-2.0"
] | permissive | pabigot/pyxb | cd42c024607572c6363682d389e9296caf3f2857 | 5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a | refs/heads/next | 2023-05-11T03:23:19.599756 | 2023-04-29T20:38:15 | 2023-04-29T20:45:13 | 20,547,850 | 130 | 63 | Apache-2.0 | 2021-08-19T16:52:18 | 2014-06-06T01:49:03 | Python | UTF-8 | Python | false | false | 50 | py | lr.py | from pyxb.bundles.opengis.gml_3_3.raw.lr import *
|
bf01019b175397d87725b5b3148af07c8ae81e96 | 568fa58296378fa129ab3349adf010daa44ed45b | /tests/common/test_run/ascend/lstm_rnn_ad_run.py | ed1873452122f499d78ff63adc35e0530d06c9b3 | [
"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 | 26,387 | py | lstm_rnn_ad_run.py | # Copyright 2019-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
e646dacc9bb2566ab3999a2487443ad2c33bab40 | 29f18e8ddde0379cef7fa00b1a50058be3cafa79 | /numba/tests/test_numconv.py | ac0217ed8f727f8dc214a22aa3015d4ba755aefe | [
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"BSD-2-Clause"
] | permissive | numba/numba | 9a8345ff5f7d57f0ffec40e39941ebf2684df0d1 | 46059957ad416e68476d1e5f32ccd59f7d5df2bb | refs/heads/main | 2023-08-09T22:29:38.170300 | 2023-08-07T15:00:27 | 2023-08-07T15:00:27 | 3,659,275 | 8,247 | 1,151 | BSD-2-Clause | 2023-09-13T14:43:48 | 2012-03-08T11:12:43 | Python | UTF-8 | Python | false | false | 1,075 | py | test_numconv.py | import itertools
import unittest
from numba.core.compiler import compile_isolated
from numba.core import types
def template(fromty, toty):
def closure(self):
def cast(x):
y = x
return y
cres = compile_isolated(cast, args=[fromty], return_type=toty)
self.assertAlmos... |
afc91c2776826b39edff0cde43bb7960ef216de9 | d110546d747d7e3865ce5742d5fca09f404623c0 | /salt/cli/daemons.py | ecc05c919ef986f95a576fff0d925af854590f61 | [
"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 | 20,765 | py | daemons.py | """
Make me some salt!
"""
import logging
import os
import warnings
import salt.utils.kinds as kinds
from salt.exceptions import SaltClientError, SaltSystemExit, get_error_message
from salt.utils import migrations
from salt.utils.platform import is_junos
from salt.utils.process import HAS_PSUTIL
# All salt related ... |
aefcc9d006823afcfaf1b8c2837a140b59540925 | 7cc36ad4bba0925fb7fd52bb7d9c1b158f848660 | /skf/chatbot_tools.py | 5bdf57955ab425a6c28b14092cb7fd531414b0fe | [
"Apache-2.0"
] | permissive | blabla1337/skf-flask | 274da82acf64a9630aa801d8b60a70da0529912e | 82d270ad59e267843f70992b2bb86658fa27baf6 | refs/heads/main | 2023-09-04T18:23:33.737113 | 2023-08-04T13:07:00 | 2023-08-04T13:07:00 | 29,755,111 | 847 | 410 | Apache-2.0 | 2023-07-27T10:00:16 | 2015-01-23T21:57:20 | HTML | UTF-8 | Python | false | false | 314 | py | chatbot_tools.py | from flask import Flask
from skf.api.chatbot.dataset_prepare import data
app = Flask(__name__)
def init_dataset():
"""Initializes the dataset needed for the chatbot."""
data.clean()
data.extract_from_api()
data.desc_sol_data()
data.entity_data()
data.intent_data()
data.code_entity()
|
bf22581b3e028d705f71e89143faa9c58e27e988 | 68cab239fc647184d8bd53651bb02303fcf3f26c | /samples/aloha/example5a.py | 57b7153c556d048aed078cc081df99a45fe5a269 | [] | no_license | omnetpp/omnetpp | 0c91b230bf937701de95f42f2383318ed39add07 | e42d35366ec3e354a528b17d0fe15ef1f0ac7b55 | refs/heads/master | 2023-08-19T22:10:18.311271 | 2023-08-18T09:18:23 | 2023-08-18T13:18:11 | 160,219,599 | 507 | 160 | null | 2023-09-05T18:48:09 | 2018-12-03T16:18:31 | C | UTF-8 | Python | false | false | 3,685 | py | example5a.py | from omnetpp.runtime import *
import math
import cppyy
import multiprocessing
import scipy.optimize
import itertools
import pandas as pd
import matplotlib.pyplot as plt
loadExtensionLibrary("aloha")
CodeFragments.executeAll(CodeFragments.STARTUP) # setup complete
nedLoader = cNedLoader()
nedLoader.__python_owns__ = F... |
40b840f24c5219621f60ccb0e5ec3729956da870 | 3f6075d481b133342e8d10eb5ff1cbf3f6e1bd2c | /generate.py | 605566513ae1805aaa1deae77763eeab22b35f32 | [
"MIT"
] | permissive | KinglittleQ/GST-Tacotron | 9f038cb648d56f7b1702d51d39148309560565fc | 58e3499e7d728e9de67afdbf72529d1b221ece1a | refs/heads/master | 2022-12-09T19:25:57.697645 | 2022-09-01T12:00:36 | 2022-09-01T12:00:36 | 134,970,863 | 332 | 82 | MIT | 2022-12-08T02:12:31 | 2018-05-26T15:01:39 | Python | UTF-8 | Python | false | false | 2,050 | py | generate.py | from utils import *
from Data import get_eval_data
from Hyperparameters import Hyperparameters as hp
import torch
from scipy.io.wavfile import write
from Network import *
from pypinyin import lazy_pinyin, Style
device = torch.device('cpu')
def synthesis(model, eval_text):
eval_text = _pinyin(eval_text)
mod... |
42919a3e3e553fae8223bc48f2efe28e5bd16542 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenMiniPluginuseconfigUpgradeModel.py | d4ed96cf3eb057e200089691a91aaaf52b9459fd | [
"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,586 | py | AlipayOpenMiniPluginuseconfigUpgradeModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniPluginuseconfigUpgradeModel(object):
def __init__(self):
self._bundle_id = None
self._plugin_dev_version = None
self._plugin_id = None
self._strategy... |
0660b8dc1a81b8e31c9a2d18bdc55b2c1ffbc6e6 | aaac623ec4dac241ffb49a47e775403b4467ef0f | /asm/jmon/loader.py | d24b34dd9e0aa256debfbf9b97c975b859cef6cb | [
"Apache-2.0"
] | permissive | jefftranter/6502 | 9dbed31872c9158696963d159e710f081b0e6279 | da2af08258e676abbece21bf22c6be8f06ef66a3 | refs/heads/master | 2023-08-18T10:58:38.333951 | 2023-08-13T01:11:28 | 2023-08-13T01:11:28 | 3,894,524 | 251 | 70 | null | 2020-08-13T22:31:56 | 2012-04-01T18:35:08 | Assembly | UTF-8 | Python | false | false | 1,378 | py | loader.py | #! /usr/bin/env python3
#
# Reads a binary file and outputs a series of Basic POKE statements to
# write the file to memory.
import sys
import argparse
# Parse command line options
parser = argparse.ArgumentParser()
parser.add_argument("filename", help="Binary file to use for data")
parser.add_argument("-l", "--loadA... |
d8537af1f04d0ee892076ca58b91ad8332ab1ee0 | 860c31e414c4c280b70ec0872042d715a2d56978 | /torch_ecg/model_configs/rnn.py | f48409e2d1f83d221307dbb788bb32b262e30cbb | [
"MIT"
] | permissive | DeepPSP/torch_ecg | 255e49ff436e13044a1f049141f982680e56970e | a40c65f4fefa83ba7d3d184072a4c05627b7e226 | refs/heads/master | 2023-09-01T06:47:17.153216 | 2023-08-31T18:00:47 | 2023-08-31T18:00:47 | 298,482,237 | 111 | 16 | MIT | 2023-08-21T11:25:07 | 2020-09-25T06:03:17 | Python | UTF-8 | Python | false | false | 532 | py | rnn.py | """
the modules that follows CNN feature extractor,
mainly RNN, but can also be attention
"""
from ..cfg import CFG
__all__ = [
"lstm",
"attention",
]
lstm = CFG()
lstm.bias = True
lstm.dropouts = 0.2
lstm.bidirectional = True
lstm.retseq = True
lstm.hidden_sizes = [12 * 16, 12 * 16]
attention = CFG()
# a... |
317a44339aea8bc495596e1a0ebea0fcc9268dac | fbbf5cd34356140ec78a19eaf897594ad276de2a | /src/beamngpy/sensors/ultrasonic.py | 9b343b3bcd28970846909796e2334654afad801c | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"Python-2.0"
] | permissive | BeamNG/BeamNGpy | f2b78ecf43ec06bd6272bd9a89b7c4334369af21 | 656b09c8b08e0a46a84561f52a6cc54b88710948 | refs/heads/master | 2023-09-04T11:09:59.548062 | 2023-07-06T08:05:16 | 2023-07-06T08:05:16 | 139,009,770 | 235 | 55 | MIT | 2023-08-22T08:16:55 | 2018-06-28T11:35:18 | Python | UTF-8 | Python | false | false | 15,211 | py | ultrasonic.py | from __future__ import annotations
from logging import DEBUG, getLogger
from typing import TYPE_CHECKING
from beamngpy.logging import LOGGER_ID, BNGError
from beamngpy.types import Float2, Float3, Int2, StrDict
from .communication_utils import send_sensor_request, set_sensor
if TYPE_CHECKING:
from beamngpy.beam... |
ac80b857e9af56e4bc888c92578968fb5a3d1d85 | e79cb86744b9cc5d46912f2f9acdb5ffd434f745 | /src/odb/test/unitTestsPython/TestGroup.py | 3c60eb0aa7e2aa6bf2dc1c1b06b700368d4addf9 | [
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | The-OpenROAD-Project/OpenROAD | 555cbb00ec250bb09b9e4f9a7d1454e7ac7a01ab | 1f6ccc9066e7df4509ed391d87b01eadb4b3b197 | refs/heads/master | 2023-08-31T05:35:25.363354 | 2023-08-31T05:04:27 | 2023-08-31T05:04:27 | 218,110,222 | 979 | 461 | BSD-3-Clause | 2023-09-14T21:51:36 | 2019-10-28T17:48:14 | Verilog | UTF-8 | Python | false | false | 2,401 | py | TestGroup.py | import opendbpy as odb
import helper
import odbUnitTest
##################
##
## This test is intended for testing swig wrap
##
##################
class TestModule(odbUnitTest.TestCase):
def setUp(self):
self.db, self.lib = helper.createSimpleDB()
self.block = helper.create1LevelBlock(sel... |
8875bcd4e19ef400c8833eabcfeec096b6cce813 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/__init___parts/GeometryInstance.py | 09b79613faa42c22da0a0818c4d4ebb7acfb1e77 | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 2,959 | py | GeometryInstance.py | class GeometryInstance(GeometryObject,IDisposable):
"""
An instance of another element (symbol),specially positioned by this
element.
"""
def Dispose(self):
""" Dispose(self: APIObject,A_0: bool) """
pass
def GetInstanceGeometry(self,transform=None):
"""
GetInstanceGeometry(self: GeometryInsta... |
b9780fa9349e0111df61d43b74a1bcd820f282e0 | 4427aa4ccc6790123f662fce6acb0d5d16c645a9 | /plextraktsync/plex/PlexLibrarySection.py | 2ac3ce4b49ae5fc12f2471989654c7e76efcea6c | [
"MIT"
] | permissive | Taxel/PlexTraktSync | 83a02bf0f8f6229e5474f0132e1ff43cbed8c522 | b536f3d6380c2bcc079bf4059071b9dc18789970 | refs/heads/main | 2023-08-31T13:29:57.715497 | 2023-08-30T16:27:56 | 2023-08-30T16:28:07 | 216,659,025 | 1,228 | 138 | MIT | 2023-09-14T21:31:02 | 2019-10-21T20:26:32 | Python | UTF-8 | Python | false | false | 2,474 | py | PlexLibrarySection.py | from __future__ import annotations
from typing import TYPE_CHECKING
from plexapi import X_PLEX_CONTAINER_SIZE
from plexapi.exceptions import NotFound
from plextraktsync.decorators.retry import retry
from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem
from rich.markup import escape
if TYPE_CHECKING:
f... |
c017743130772046505ccfe2c1551dec0f787bf5 | 300a5e74fda0966941faf72646e38f3be54d77b5 | /examples/binary-clock.py | 0e903a2dc728515617b183e5ae945e684de237e4 | [
"MIT"
] | permissive | pimoroni/scroll-phat | c79f5f38a07546e5c82ee6546d9d09d85e20af36 | 5a0a47f6e4faac649d89054135baa542889ff3fa | refs/heads/master | 2023-08-05T22:50:09.221052 | 2023-05-25T12:46:19 | 2023-05-25T12:46:19 | 46,125,454 | 119 | 76 | MIT | 2023-07-20T13:10:50 | 2015-11-13T14:08:48 | Python | UTF-8 | Python | false | false | 902 | py | binary-clock.py | #!/usr/bin/env python
# simple binary clock
# bcd for hours, minutes and seconds
# chart for time past the hour (one light per whole ten minutes)
import sys
import time
import scrollphat
print("""
Scroll pHAT - Binary Clock
Press Ctrl+C to exit!
""")
def string_to_bcd(digit):
bcd_digit = bin(int(digit))[2:... |
9ffdea5c13dfef18130ea060200c76fe4c9bc14d | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/periodicities/Minute/Cycle_Minute_200_T_24.py | 323687fd4a820a21aba35923187ca1cb7344bc04 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 82 | py | Cycle_Minute_200_T_24.py | import tests.periodicities.period_test as per
per.buildModel((24 , 'T' , 200));
|
a0cce5484d794f8736b015860193eaf6c3f62d05 | 689475bb04dab2677d5ec30fbbbddc480876579f | /mmrotate/models/dense_heads/rotated_fcos_head.py | 96b137ada6085e9a0ce08de915ee5988c8d20a74 | [
"Apache-2.0"
] | permissive | open-mmlab/mmrotate | 07e539936f59b0033d648dc805f0f7f6da8dc2eb | 9ea1aeeef2da8b2cd5161b72f4e33e1e8293dcb2 | refs/heads/main | 2023-08-31T21:23:33.304594 | 2023-07-02T07:24:56 | 2023-07-02T07:24:56 | 460,236,391 | 1,473 | 449 | Apache-2.0 | 2023-09-08T08:49:03 | 2022-02-17T01:19:05 | Python | UTF-8 | Python | false | false | 30,650 | py | rotated_fcos_head.py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from mmcv.cnn import Scale
from mmcv.runner import force_fp32
from mmdet.core import multi_apply, reduce_mean
from mmrotate.core import build_bbox_coder, multiclass_nms_rotated
from ..builder import ROTATED_HEADS, build_loss
from .rota... |
85bb963189f13b3dc265efd1ea2386f360b1965e | 197afb704bd7b181ab3fab7ba3e03c784301819b | /command.py | ca14d32b6df096353a576a2b8fd072492a519845 | [
"MIT"
] | permissive | azlux/botamusique | b11df24db5d970a6f6a75da7820c1507f6af295d | a3204ff7de698492696647c3ff701fdeafee4e37 | refs/heads/master | 2023-08-10T13:24:50.960381 | 2023-08-03T16:36:00 | 2023-08-03T16:36:00 | 76,294,881 | 309 | 106 | MIT | 2023-09-06T11:34:40 | 2016-12-12T20:57:19 | Python | UTF-8 | Python | false | false | 51,549 | py | command.py | # coding=utf-8
import logging
import secrets
import datetime
import json
import re
import pymumble_py3 as pymumble
from constants import tr_cli as tr
from constants import commands
import interface
import util
import variables as var
from pyradios import RadioBrowser
from database import SettingsDatabase, MusicDatabas... |
a73ce76574a7d370d90f5a90d2cbdf4e25298d25 | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /cpmpy/wedding_optimal_chart.py | 7b73a6ea5d2cc4cd2d3038627c3a1899593c17d3 | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 8,854 | py | wedding_optimal_chart.py | """
Finding an optimal wedding seating chart in cpmpy.
From
Meghan L. Bellows and J. D. Luc Peterson
'Finding an optimal seating chart for a wedding'
http://www.improbable.com/news/2012/Optimal-seating-chart.pdf
http://www.improbable.com/2012/02/12/finding-an-optimal-seating-chart-for-a-wedding
'''
Every year, millio... |
5ea3bae0196bb75d8e243ead5e267f210cf7da24 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/managednetworkfabric/azure-mgmt-managednetworkfabric/generated_samples/external_networks_update_maximum_set_gen.py | 323a0ed8ef097ee900067ce3b765667b23be4a6b | [
"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 | 4,597 | py | external_networks_update_maximum_set_gen.py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
add668db9f3a41fc14930942076b8d6b7b11f0d0 | 462b8a2326486dd41bf0d1ddbb19bbcee9532411 | /blender/arm/logicnode/canvas/LN_get_canvas_scale.py | 9e65ea39317b3175ef6172e65f52f9893f684882 | [
"Zlib",
"GPL-2.0-only"
] | permissive | armory3d/armory | b751fb23d6590f2ca421ace7cf7cbeaef91f472c | 511657981bd2716eddcee8dff26820d27f2bc610 | refs/heads/main | 2023-08-12T02:57:02.898742 | 2023-08-04T18:55:45 | 2023-08-04T18:55:45 | 45,202,654 | 3,077 | 530 | Zlib | 2023-09-12T11:24:38 | 2015-10-29T18:27:56 | Python | UTF-8 | Python | false | false | 522 | py | LN_get_canvas_scale.py | from arm.logicnode.arm_nodes import *
class CanvasGetScaleNode(ArmLogicTreeNode):
"""Returns the scale of the given UI element."""
bl_idname = 'LNCanvasGetScaleNode'
bl_label = 'Get Canvas Scale'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmNodeSocketAction', 'In')
... |
9a2468fa54eb016138bf98fe2c1d1e4f9e07c99c | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/battle_results/presenter/tooltips/__init__.py | d110c5f34cc73159d25d4aaf7a73f3f4986f51f0 | [] | 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 | 143 | py | __init__.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/battle_results/presenter/tooltips/__init__.py
pass
|
544897c836fc3723ef4c8876aaf8d5e3fa70f66c | ae1c7877f0d624ab0c9bae65ce8b0de0f9750683 | /13-Pyspider_Lagou/demo.py | 622cd2f88801cf8a088969a68c5ef3de80040276 | [] | no_license | Northxw/Python3_WebSpider | a38b723be440707cab40e50e7a3d7486254433b4 | 87cbae60f7a5b033851b0056dff741a3d5980d06 | refs/heads/master | 2022-05-01T04:02:13.123747 | 2022-04-08T03:43:00 | 2022-04-08T03:43:00 | 152,024,239 | 545 | 302 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | demo.py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Created on 2018-11-16 11:48:05
# Project: Lagou
from pyspider.libs.base_handler import *
import time
class Handler(BaseHandler):
crawl_config = {
'headers': {
'Host': 'www.lagou.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win... |
0ca9edf2e9843332b2e00a044f99551726ef9574 | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /paddleseg/models/losses/cross_entropy_loss.py | b1cfb3a6246980b504fe0c01b29dc4512a42d767 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 9,472 | py | cross_entropy_loss.py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... |
ba09209290da42ea7f3edf4d560e31d8436a62ab | cc5031b999f0a47b3cfeb446601ac658cb9cc91a | /nbgrader/plugins/export.py | 87ee9465b05f5140b7c3da1070709f6536d5eab0 | [
"BSD-3-Clause"
] | permissive | jupyter/nbgrader | 9b681894e6f725647bb742ab136e360defb70d38 | 6db380039dab377157620516ae49eafcf7537fc8 | refs/heads/main | 2023-09-03T21:37:20.701676 | 2023-09-01T20:14:29 | 2023-09-01T20:14:29 | 23,984,796 | 1,274 | 371 | BSD-3-Clause | 2023-09-12T14:04:25 | 2014-09-13T03:27:36 | Python | UTF-8 | Python | false | false | 4,603 | py | export.py | from traitlets import Unicode, List
from .base import BasePlugin
from ..api import MissingEntry, Gradebook
class ExportPlugin(BasePlugin):
"""Base class for export plugins."""
to = Unicode("", help="destination to export to").tag(config=True)
student = List(
[], help="list of students to export... |
205b0fc8728699b0efc0acf9972ba30bdb5fdcb0 | 6d59ea313964470a10e806d2e757be12a9d275a5 | /sklearn_bench/kmeans.py | b522a0e92f0269cfac09383191cd3837ce2bb935 | [
"Apache-2.0"
] | permissive | IntelPython/scikit-learn_bench | bacfee3c3342df1fb7b5a291535474c111cd2388 | 9445f394d415230e46d6eebdecda9698f26408cb | refs/heads/master | 2023-08-31T06:53:10.881604 | 2023-08-03T08:33:50 | 2023-08-03T08:33:50 | 151,195,504 | 102 | 55 | Apache-2.0 | 2023-08-03T08:33:52 | 2018-10-02T03:30:53 | Python | UTF-8 | Python | false | false | 4,094 | py | kmeans.py | # ===============================================================================
# Copyright 2020-2021 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.ap... |
9ae33bcdd00b82ffce8154e9ecb3ade2f6477649 | c117e905ac5f1938da3c8e23845ad52cc922923a | /tests/unittests/plotting/test_plotly_backend.py | 75792bbeb61be0538caaf82d811c04bedbc71c4a | [
"BSD-3-Clause"
] | permissive | Epistimio/orion | 2850983dd7ac0a417d451d39b2dc7a652f1920c8 | 2944875eff03b86138d6780df4b1dd6dc8158ccb | refs/heads/develop | 2023-09-01T20:36:59.279966 | 2023-08-21T13:25:43 | 2023-08-21T13:25:43 | 102,697,867 | 218 | 41 | NOASSERTION | 2023-08-21T12:51:55 | 2017-09-07T06:05:21 | Python | UTF-8 | Python | false | false | 49,301 | py | test_plotly_backend.py | """Collection of tests for :mod:`orion.plotting.backend_plotly`."""
import copy
import datetime
import numpy
import pandas
import plotly
import pytest
import orion.client
from orion.analysis.partial_dependency_utils import partial_dependency_grid
from orion.core.worker.experiment import Experiment
from orion.plotting... |
4be267d176276fe9d70cc5bba2798748afc34b87 | c62519e1a46c6a3ac8453e57ebb094652450bbde | /nnfusion/vgg11_nnfusion_v03/preprocess.py | 79afe63db64cc03ae68530fa50d0f16105625174 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | monkbai/DNN-decompiler | aa041f5cab2b66c8638d9cce7e1565992a33af64 | 691b74baf40893e5051590b0836cd0dc17c06e1e | refs/heads/master | 2023-08-23T22:30:51.976798 | 2023-03-21T09:07:23 | 2023-03-21T09:07:23 | 337,273,010 | 160 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | preprocess.py | #!/usr/bin/python3
import os
import re
import time
import struct
import subprocess
import logging
class cd:
def __init__(self, newPath):
self.newPath = os.path.expanduser(newPath)
def __enter__(self):
self.savedPath = os.getcwd()
os.chdir(self.newPath)
def __exit__(self, etype, v... |
022af91deecbad420714c27eb45fa279085b50fc | 75bee875a2d26ed71513f46a2acbb564dd9a1c44 | /app/modules/teams/models.py | 838ecf51d15ed9aa0c8c6967244bea7e73205f50 | [
"MIT"
] | permissive | frol/flask-restplus-server-example | d096aa1f4e3b6024ecb16af3d0769ccc20e7cff8 | 53a3a156cc9df414537860ed677bd0cc98dd2271 | refs/heads/master | 2023-08-28T14:27:34.047855 | 2023-06-21T14:30:54 | 2023-06-21T14:30:54 | 46,421,329 | 1,487 | 412 | MIT | 2023-06-21T14:30:55 | 2015-11-18T13:43:34 | Python | UTF-8 | Python | false | false | 2,336 | py | models.py | # encoding: utf-8
"""
Team database models
--------------------
"""
from sqlalchemy_utils import Timestamp
from app.extensions import db
class TeamMember(db.Model):
"""
Team-member database model.
"""
__tablename__ = 'team_member'
team_id = db.Column(db.Integer, db.ForeignKey('team.id'), primar... |
d33ec68237dd563d6fba70f30babb25be5abcb0a | dab10c721000fd9eb38676d6b2730f155eedd54e | /recirq/toric_code/optimizers.py | bff044a0314c9cdb4c6b9b8f60bd52aa9da512ed | [
"Apache-2.0"
] | permissive | quantumlib/ReCirq | f45e55e432f2e29fb8f2fe35a3d436a629219e86 | d021621a3837693ae9c5fdc5c05058de20fba314 | refs/heads/master | 2023-09-03T19:35:55.281836 | 2023-09-01T01:12:40 | 2023-09-01T01:12:40 | 246,951,354 | 260 | 116 | Apache-2.0 | 2023-09-09T00:41:35 | 2020-03-12T23:51:33 | Python | UTF-8 | Python | false | false | 18,802 | py | optimizers.py | # Copyright 2022 Google
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... |
f65326226277a0e16b44bd0306c88d3b02083920 | 479a9c76b19b84d6cde69305828031cd2531aa56 | /testing/post_run_and_track_procedure_test.py | 56ca16aadba84630774d1a273f533d39153d4960 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mldbai/mldb | d36801bd99dd3f82d7557cd0f438b0121f63f22c | 19bc4bc92a41ee8ad4eab0979dffd9c985d95758 | refs/heads/master | 2023-09-03T22:59:11.621839 | 2022-12-30T18:42:24 | 2022-12-30T18:42:24 | 47,634,692 | 701 | 107 | Apache-2.0 | 2023-02-10T23:08:05 | 2015-12-08T16:34:16 | C++ | UTF-8 | Python | false | false | 1,066 | py | post_run_and_track_procedure_test.py | #
# post_run_and_track_procedure_test.py
# Francois-Michel L'Heureux, 2016-10-18
# This file is part of MLDB. Copyright 2016 mldb.ai inc. All rights reserved.
#
from mldb import mldb, MldbUnitTest, ResponseException
class FakeLogger(object):
def __init__(self, mldb):
self.records = []
self.mldb =... |
62662890c1330c80c273cb96d9bd8c07393f2f72 | 7607429663127ad7429d0815006dbb6aba2f3fd0 | /veros/settings.py | 1e0139dc3b659f26e75a31ec63d366507f8c3b00 | [
"MIT"
] | permissive | team-ocean/veros | df0d0e467579a09a973f45bc1b267aca9609e93a | 416dbdac43b8ce80ce09171a3bd3fdb4814abae0 | refs/heads/main | 2023-08-05T03:39:31.640695 | 2023-08-03T08:00:37 | 2023-08-03T08:00:37 | 87,419,383 | 168 | 31 | MIT | 2023-09-14T04:50:21 | 2017-04-06T10:59:21 | Python | UTF-8 | Python | false | false | 9,013 | py | settings.py | from collections import namedtuple
Setting = namedtuple("setting", ("default", "type", "description"))
def optional(type_):
def wrapped(arg):
if arg is None:
return arg
return type_(arg)
return wrapped
PI = 3.14159265358979323846264338327950588
SETTINGS = {
"identifier": ... |
675b1c0ce1951222b89167e99bed8584bff433df | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/arcam_fmj/__init__.py | bc4814be06c84b7b7cac108682a2cd08e4d53704 | [
"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 | 41 | py | __init__.py | """Tests for the arcam_fmj component."""
|
a4c134a863b6564c9c0a7ff2591e672812d49845 | a14339c8d1d55a3f886f4d5e5c05763ed4425f02 | /tests/resources/module_without_license.txt | 4bfd9199cbf571b6cfdc9bcdd03b18220a21978a | [
"LicenseRef-scancode-unknown",
"Apache-2.0",
"MIT"
] | permissive | Lucas-C/pre-commit-hooks | 1b8ae51d880150c80ffa36c332efd5baf152aa8c | 762c66ea96843b54b936fc680162ea67f85ec2d7 | refs/heads/master | 2023-08-25T11:48:27.726280 | 2023-08-13T14:39:35 | 2023-08-13T14:39:35 | 34,903,976 | 101 | 54 | MIT | 2023-08-13T14:36:25 | 2015-05-01T13:26:10 | Python | UTF-8 | Python | false | false | 35 | txt | module_without_license.txt | import sys
sys.stdout.write("FOO")
|
db7f3e516a2c35653bad09762a9446c53b48edbd | 38bed8ec0229b2d42ebdb33e09930ba8ee6ba5b7 | /torchvision/models/vgg.py | 0a548570dd41fa87309e8aa4bdb373517f265060 | [
"BSD-3-Clause",
"CC-BY-NC-4.0"
] | permissive | pytorch/vision | 10443ac1eddf7a32ecb288fe8f58e28cab2a60a1 | 1f94320d8db8d102214a7dc02c22fa65ee9ac58a | refs/heads/main | 2023-09-06T03:48:02.303020 | 2023-09-04T18:25:36 | 2023-09-04T18:25:36 | 73,328,905 | 15,620 | 8,564 | BSD-3-Clause | 2023-09-14T17:52:49 | 2016-11-09T23:11:43 | Python | UTF-8 | Python | false | false | 19,225 | py | vgg.py | from functools import partial
from typing import Any, cast, Dict, List, Optional, Union
import torch
import torch.nn as nn
from ..transforms._presets import ImageClassification
from ..utils import _log_api_usage_once
from ._api import register_model, Weights, WeightsEnum
from ._meta import _IMAGENET_CATEGORIES
from .... |
1fb27875b032ed7a81900fa468d357ad70ce70c5 | 39164ede111f154b31cbb61663ea837f16f8aa4f | /odps/df/backends/optimize/tests/test_columnpruning.py | a01e33b1dff0b1de885e3cc6737d152dc2c500e1 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-odps-python-sdk | 217631252e6d52e75354a2a19faab5b9ff40e272 | c5b897f03759b1a9851505eea3858a96d628f105 | refs/heads/master | 2023-08-16T22:42:12.441717 | 2023-07-19T06:28:25 | 2023-07-19T06:28:25 | 45,234,875 | 437 | 116 | Apache-2.0 | 2023-08-03T06:45:34 | 2015-10-30T07:07:59 | Python | UTF-8 | Python | false | false | 18,621 | py | test_columnpruning.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2022 Alibaba Group Holding 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-... |
86b88f9d6cb726bb791291301993aec55e0a30e1 | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/utils/data/datapipes/map/combining.py | 4a4a785eff78e5eca2970799db6b9ba6604de25d | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 3,601 | py | combining.py | from torch.utils.data.datapipes._decorator import functional_datapipe
from torch.utils.data.datapipes.datapipe import MapDataPipe
from typing import Sized, Tuple, TypeVar
__all__ = ["ConcaterMapDataPipe", "ZipperMapDataPipe"]
T_co = TypeVar('T_co', covariant=True)
@functional_datapipe('concat')
class ConcaterMapDat... |
ac3b90515f37a7f3f92ea0a8692922933b71d53b | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /HeterogeneousCore/CUDATest/python/prod1CUDA_cfi.py | cf50287bcb15ea69f6b8cfd9d022102222be7eb0 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 210 | py | prod1CUDA_cfi.py | import FWCore.ParameterSet.Config as cms
from HeterogeneousCore.CUDATest.testCUDAProducerGPUFirst_cfi import testCUDAProducerGPUFirst as _testCUDAProducerGPUFirst
prod1CUDA = _testCUDAProducerGPUFirst.clone()
|
25feb81b52697947937ff6c48f14627a111b3469 | 639a07b6b03db652b349ef4d5ac58b7540a92dbc | /scripts/update_release.py | 9a56418c9e6a4c134302b9eefecf0c0511239837 | [
"MIT"
] | permissive | ETLCPP/etl | 9e4fbb5deaa47d8a319ee03acc55cbc092aa7906 | b38afd7fc98f50a00b207b184506049f05ab7120 | refs/heads/master | 2023-09-03T20:24:29.045132 | 2023-08-26T10:49:17 | 2023-08-26T10:49:17 | 25,298,630 | 1,774 | 376 | MIT | 2023-09-14T18:13:09 | 2014-10-16T11:12:24 | C++ | UTF-8 | Python | false | false | 7,022 | py | update_release.py |
import shutil
import os
# Get the current path of the script
script_dir = os.path.dirname(os.path.abspath(__file__))
# Get the root folder of the ETL
etl_dir = os.path.abspath(os.path.join(script_dir, os.pardir))
# Get the ETL repository folder
include_dir = os.path.join(etl_dir, 'include')
# Get the ETL heade... |
1af80e3ce852310e37a2ede172a121fd8f1b611e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/DatadigitalFincloudFinsaasBcmDigitalrmbSendResponse.py | 3c5224c9d0974fc8c82d8b99d41390ee5904b701 | [
"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 | 1,648 | py | DatadigitalFincloudFinsaasBcmDigitalrmbSendResponse.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class DatadigitalFincloudFinsaasBcmDigitalrmbSendResponse(AlipayResponse):
def __init__(self):
super(DatadigitalFincloudFinsaasBcmDigitalrmbSendResponse, self).__init__()
s... |
1bf9d2a0c842dd7210270ceef73ee8b4d936e770 | 85373d45a83e4096affafa4f4e5b400787413e57 | /test/programytest/security/linking/test_accountlinker_mocked.py | 95b31e2714db409908eef38fb1837b5b7a88b1ab | [
"MIT"
] | permissive | keiffster/program-y | a02bb9d8278835547cc875f4f9cd668d5b1f44da | fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20 | refs/heads/master | 2023-08-23T13:55:39.255535 | 2022-12-13T09:51:57 | 2022-12-13T09:51:57 | 74,462,571 | 379 | 173 | NOASSERTION | 2023-05-23T00:51:21 | 2016-11-22T10:43:41 | Python | UTF-8 | Python | false | false | 10,698 | py | test_accountlinker_mocked.py | from unittest.mock import patch
from programy.security.linking.accountlinker import BasicAccountLinkerService
from programytest.security.linking.accounlinker_asserts import AccountLinkerAsserts
class MockUser(object):
pass
class MockUserStore(object):
def __init__(self):
self.users = {}
def ad... |
b9122bb67c6954d26ef639d457019e49fab83ded | 993f18c21402d7a4ff21ddb7ff2ec6c80e466f20 | /onnx/compose.py | 82887ac7a1df181a63bb6c24b12bda55ccb896a3 | [
"Apache-2.0"
] | permissive | onnx/onnx | 10d3916803c7babff89ec0fa9045127bcccad376 | 8a475b34cb3875df311a46f57571646498f5bda7 | refs/heads/main | 2023-08-18T18:50:03.388353 | 2023-08-16T22:18:46 | 2023-08-16T22:18:46 | 102,692,863 | 16,164 | 4,150 | Apache-2.0 | 2023-09-14T17:10:38 | 2017-09-07T04:53:45 | Python | UTF-8 | Python | false | false | 26,337 | py | compose.py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=unidiomatic-typecheck
from typing import Dict, List, MutableMapping, Optional, Set, Tuple
from onnx import GraphProto, ModelProto, TensorProto, checker, helper, utils
def check_overlapping_names(
g1: GraphProto,... |
bcd2577255f674fac3861554f183bae2e2df7d4a | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_protobuf.py | c76a5fe67f24598142c7ec14f5883cb5334ff1a4 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 1,468 | py | test_protobuf.py | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... |
622eefc1cb206d52144a8f73776271b11f035664 | a960e38868b3a157179bb576ac78b0f144140ed8 | /MLPERF3.0/Habana/benchmarks/unet3d/implementations/PyTorch/runtime/distributed_utils.py | 1ae78793a70720bdaae2e51a43cfb3a132ebaa30 | [
"Apache-2.0"
] | permissive | HabanaAI/Model-References | d339b211adf8be9575ebb1e3bb6afd6cd04312e6 | 3ca77c4a5fb62c60372e8a2839b1fccc3c4e4212 | refs/heads/master | 2023-08-17T06:32:28.714253 | 2023-08-14T15:22:08 | 2023-08-14T15:22:08 | 288,377,272 | 108 | 53 | null | 2023-08-18T02:30:16 | 2020-08-18T06:45:50 | Python | UTF-8 | Python | false | false | 4,907 | py | distributed_utils.py | ###############################################################################
# Copyright (C) 2023 Habana Labs, Ltd. an Intel Company
###############################################################################
import os
import random
import torch
import torch.distributed as dist
import numpy as np
def get_dev... |
7598fb5911c6c8a5d7f3f36e9deb85decb02673b | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/quickdoc/HoverOverControlFlowUnion.py | 74ceb505df1b25688d682232336cbc34c73a0ed9 | [
"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 | 85 | py | HoverOverControlFlowUnion.py | def foo(c):
if c:
x = 'foo'
else:
x = 1
return <the_ref>x |
237f15578fd2a218e8e6679a6a6cc4386d935475 | 22c47b4602212c54b022fd74e2f6c2c879d9699d | /chemml/wrapper/pandas_pd/__init__.py | e0dbf3b3ea129ba960b156a3f0697d148d887d3c | [
"BSD-3-Clause"
] | permissive | hachmannlab/chemml | 3b3c295c5de8b5f9e8127b7e11aae62d6c3507ef | d511d91500f757de46162d2f8331e353a68de6a0 | refs/heads/master | 2023-06-08T22:21:07.063302 | 2023-05-25T22:49:41 | 2023-05-25T22:49:41 | 113,404,097 | 140 | 34 | BSD-3-Clause | 2023-05-25T22:49:42 | 2017-12-07T04:48:18 | Python | UTF-8 | Python | false | false | 169 | py | __init__.py | """
The tf directory contains ...
last modified date: Feb 21, 2016
"""
# from test import test
from chemml.wrapper.pandas_pd import pandas_wrapper as pdw
__all__ = []
|
9197a35fafbc224fc2a6af4cb9b79189e9a59eec | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/DEMApplication/tests/test_particle_creator_destructor.py | 8b40cbb1df0e492aea26e7ab0affacc59eb187fd | [
"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,848 | py | test_particle_creator_destructor.py | import KratosMultiphysics as Kratos
import KratosMultiphysics.DEMApplication as DEM
import KratosMultiphysics.KratosUnittest as KratosUnittest
class TestParticleCreatorDestructor(KratosUnittest.TestCase):
def setUp(self):
self.current_model = Kratos.Model()
self.spheres_model_part = self.current_m... |
560c04af79ec0d4b1fc428dc381cb081aaa80461 | ecaba173879f92f24e3c951866fda23c0a4fc426 | /perfkitbenchmarker/providers/openstack/flags.py | f9785502d2fe1b4496ff26072c5f28ededb50b79 | [
"Classpath-exception-2.0",
"BSD-3-Clause",
"AGPL-3.0-only",
"MIT",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | GoogleCloudPlatform/PerfKitBenchmarker | 2f4917fd796db4eb90822c557d8fa08a497fbd48 | d0699f32998898757b036704fba39e5471641f01 | refs/heads/master | 2023-09-02T08:14:54.110308 | 2023-09-01T20:28:01 | 2023-09-01T20:28:38 | 21,950,910 | 1,923 | 567 | Apache-2.0 | 2023-09-13T22:37:42 | 2014-07-17T17:23:26 | Python | UTF-8 | Python | false | false | 3,395 | py | flags.py | # Copyright 2015 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
d508c2915e45a76095b0947f3b75d61bf85f0437 | 3e1f6dfde5c940f7acde208d098e56a54550945f | /dash_docs/chapters/dash_bio/examples/forna-container.py | a433eeeb7e30361fb5e6f2cff64f9d5d41d5572d | [
"MIT"
] | permissive | plotly/dash-docs | a4d1b9e450aa19e811f8ae043fd56de330cce63a | f494e987701be1085ba9fb7b29bd875ee2146d5b | refs/heads/master | 2023-08-03T02:18:16.257115 | 2021-12-14T18:51:52 | 2021-12-14T18:51:52 | 84,095,619 | 396 | 210 | MIT | 2023-01-18T20:29:56 | 2017-03-06T16:30:08 | Python | UTF-8 | Python | false | false | 1,291 | py | forna-container.py | import dash
import dash_bio as dashbio
import dash_core_components as dcc
import dash_html_components as html
from dash.exceptions import PreventUpdate
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
sequences = {
'PDB_010... |
cf4fe82e01eaebbea1e6f96d9f69efb64e4a1ba8 | d01fa1b6668c66236405b799e39e529d1492af7c | /{{cookiecutter.project_slug}}/gallery/migrations/0002_auto_20181122_1651.py | ab9afe22a2b2d30fdc8a24ff5a13e1d7b254ef01 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | chrisdev/wagtail-cookiecutter-foundation | 426ffd974aa08ab10e4b0e44d5003476c597f2e4 | e7d56ee01eb5976588129d7bd4d5fc6dab2d794a | refs/heads/master | 2023-08-31T06:05:43.999253 | 2022-03-31T18:44:37 | 2022-03-31T18:44:37 | 33,870,540 | 189 | 72 | MIT | 2023-09-14T03:30:34 | 2015-04-13T13:36:50 | Python | UTF-8 | Python | false | false | 1,378 | py | 0002_auto_20181122_1651.py | # Generated by Django 2.1.3 on 2018-11-22 16:51
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0040_page_draft_title'),
('wagtailimages', '0021_image_file_hash'),
... |
bfbd0582d8bd37b4724e5aa017f72a601f6c5804 | a739c398b92581731a7b46cd152bfd0859d6329b | /custodian/nwchem/jobs.py | a07c5682d3f326bcc0a24c025e8d252bc730c73b | [
"MIT"
] | permissive | materialsproject/custodian | aaa4d8f15151d22836c1045e3dd029a94eb63c7b | e133fe0f2290ef3c1e96be25de0c13e6c3c33284 | refs/heads/master | 2023-08-16T12:52:35.767476 | 2023-08-15T01:56:38 | 2023-08-15T01:56:38 | 8,013,467 | 116 | 120 | MIT | 2023-09-10T18:46:45 | 2013-02-04T18:33:16 | Python | UTF-8 | Python | false | false | 2,168 | py | jobs.py | """This module implements basic kinds of jobs for Nwchem runs."""
import shutil
import subprocess
from monty.io import zopen
from monty.shutil import gzip_dir
from custodian.custodian import Job
__author__ = "Shyue Ping Ong"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "ongsp@ucsd.edu"
__status... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.