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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e18338428c5691fbb73bceba9368eb984f92c950 | f312fcd24d94be8b32e2d1e50643b01c619aa23b | /tensorboard/backend/event_processing/directory_loader_test.py | 39db1d37c0a2e8127105afb4aa5794d702139e8a | [
"Apache-2.0"
] | permissive | tensorflow/tensorboard | bf316fc5d47f78ef980dd2106c99207892a508d5 | 5961c76dca0fb9bb40d146f5ce13834ac29d8ddb | refs/heads/master | 2023-09-03T23:59:03.264261 | 2023-08-30T22:24:07 | 2023-08-30T22:24:07 | 91,379,993 | 6,766 | 2,063 | Apache-2.0 | 2023-09-14T20:55:56 | 2017-05-15T20:08:07 | TypeScript | UTF-8 | Python | false | false | 10,711 | py | directory_loader_test.py | # Copyright 2019 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... |
bf939a8240b592f5771f1867b27867532d48a393 | dbf613469aa8c69ba013e016de82c942508b2485 | /ppb/__init__.py | a3eca9cc385285c215fcb6e82f6b9ed1c10b6a4a | [
"Artistic-2.0"
] | permissive | ppb/pursuedpybear | dcb96ae35d352a9165898872048c72c6224074b9 | d067c2f7d440389fc542638d79e3244281c6e737 | refs/heads/canon | 2022-11-22T11:57:27.406370 | 2022-02-08T02:12:45 | 2022-02-08T02:12:45 | 54,496,479 | 247 | 119 | Artistic-2.0 | 2022-11-12T22:36:20 | 2016-03-22T17:46:34 | Python | UTF-8 | Python | false | false | 5,598 | py | __init__.py | """
A python game framework.
PursuedPyBear is object oriented and event driven. Practically, this means that
most of your code will be organized into classes. Game objects in
:mod:`ppb` are :class:`Sprite` instances, which get contained in
:class:`Scenes <Scene>`. In turn, the :class:`GameEngine`
contains the scenes a... |
c81ce0458c3745596e1b31555458d63a54021601 | 6415c13547e6943f7b65337cbd2790c4e18723c8 | /netbox/core/forms/model_forms.py | 666a19e85b84cf944a466ca0958466433933d8dd | [
"Apache-2.0"
] | permissive | netbox-community/netbox | 287254a9698270d51f57b1297118e9f01536da5a | 506884bc4dc70299db3e2a7ad577dd7fd808065e | refs/heads/develop | 2023-08-24T09:11:46.685121 | 2023-08-23T18:44:14 | 2023-08-23T18:44:14 | 52,796,596 | 8,122 | 1,817 | Apache-2.0 | 2023-09-14T18:16:01 | 2016-02-29T14:15:46 | Python | UTF-8 | Python | false | false | 3,470 | py | model_forms.py | import copy
from django import forms
from core.forms.mixins import SyncedDataMixin
from core.models import *
from netbox.forms import NetBoxModelForm
from netbox.registry import registry
from utilities.forms import get_field_value
from utilities.forms.fields import CommentField
from utilities.forms.widgets import HTM... |
7ac1b7fa895a352af9307e71ae05716c4201b8bf | 8b93c6fe926241f6c95f981f7dae32414d820148 | /wrap/csllbc/csharp/script_tools/gen_errno_code.py | c2129f2e1ec92764bf537c3b9678c119d4cebd80 | [
"MIT"
] | permissive | lailongwei/llbc | e0873c7a34eea6a3fff260f78f1bdbf06520363b | 2b4ccb3387549f612a6df001f091680bfd9b3adb | refs/heads/master | 2023-08-15T08:22:03.602550 | 2023-08-04T07:31:58 | 2023-08-04T07:31:58 | 45,900,425 | 126 | 48 | MIT | 2023-09-11T13:59:49 | 2015-11-10T09:08:46 | C++ | UTF-8 | Python | false | false | 2,672 | py | gen_errno_code.py | # -*- coding: utf-8 -*-
"""
FILE gen_errno_code.py
AUTHOR Sherlock <445498529@qq.com>
DATE 2017/03/14
VERSION 1.0
BRIEF Auto generate C# errno code.
"""
import os
from os import path as op
import shutil
import re
import hashlib
# This script file path
SCRIPT_PATH = op.abspath(op.dirname(__file__))
# LLBC r... |
0c632c91812b5cc77df12ce8cdc45fdf4aec9440 | 39164ede111f154b31cbb61663ea837f16f8aa4f | /odps/df/backends/sqlalchemy/tests/test_engine.py | d19baf8c94df20fb8542ab8846764aba7113502e | [
"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 | 29,398 | py | test_engine.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-... |
8a98ad43a99f3ab81c1a2783b921ed05c254f856 | dcd772f567ef8a8a1173a9f437cd68f211fb9362 | /ravenframework/Models/PostProcessors/ValidationBase.py | 87948f36cee3302e03f32b1eb54481c23e6470e3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | idaholab/raven | 39cdce98ad916c638399232cdc01a9be00e200a2 | 2b16e7aa3325fe84cab2477947a951414c635381 | refs/heads/devel | 2023-08-31T08:40:16.653099 | 2023-08-29T16:21:51 | 2023-08-29T16:21:51 | 85,989,537 | 201 | 126 | Apache-2.0 | 2023-09-13T21:55:43 | 2017-03-23T19:29:27 | C++ | UTF-8 | Python | false | false | 10,133 | py | ValidationBase.py | # Copyright 2017 Battelle Energy Alliance, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... |
b17055afd64655cf5fbb2f544747ba6761cfc10e | 683ea88855eee3d09a8d9cc23aeda232b3257b66 | /doc/conf.py | 1a9fb0bb8c7c2076f251c7398c03eac1cdc81d92 | [
"MIT"
] | permissive | scott-griffiths/bitstring | edf63e8a7c9f2f318c1225d1ae8cd09a55d64730 | f7b16b4879f7b328321648b62174cce966714a39 | refs/heads/main | 2023-08-18T21:35:13.514898 | 2023-08-17T20:50:58 | 2023-08-17T20:50:58 | 33,791,767 | 400 | 86 | MIT | 2023-08-29T16:48:37 | 2015-04-11T20:49:04 | Python | UTF-8 | Python | false | false | 982 | py | conf.py | # Configuration file for the Sphinx documentation builder.
#
import os
import time
import datetime
year = datetime.datetime.utcfromtimestamp(
int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
).year
project = 'bitstring'
copyright = f'2006 - {year}, Scott Griffiths'
author = 'Scott Griffiths'
release = '4.1'... |
b2214a3a16f6d92bfe277477c565c959dca9e604 | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /toontown/coghq/DistributedCogKart.py | 0ab2b165fd85222947b9d5376a38794035b17017 | [
"BSD-3-Clause"
] | permissive | open-toontown/open-toontown | bbdeb1b7bf0fb2861eba2df5483738c0112090ca | 464c2d45f60551c31397bd03561582804e760b4a | refs/heads/develop | 2023-07-07T01:34:31.959657 | 2023-05-30T23:49:10 | 2023-05-30T23:49:10 | 219,221,570 | 143 | 104 | BSD-3-Clause | 2023-09-11T09:52:34 | 2019-11-02T22:24:38 | Python | UTF-8 | Python | false | false | 17,454 | py | DistributedCogKart.py | import math
from panda3d.core import CollisionSphere, CollisionNode, Vec3, Point3, deg2Rad
from direct.interval.IntervalGlobal import Sequence, Func, Parallel, ActorInterval, Wait, Parallel, LerpHprInterval, ProjectileInterval, LerpPosInterval
from direct.directnotify import DirectNotifyGlobal
from toontown.building im... |
5e42922ccf2eedd4e1f80ed1c1f3651caff0edbc | a133a7c64f6e08def0f936898466990d1fd1b31f | /atomate/vasp/analysis/linear_response.py | 41dde3a7cc231a0be9cf1407aeb00679456c9418 | [
"LicenseRef-scancode-hdf5",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | hackingmaterials/atomate | a6458f9323b8f14d7b4ebb6558fb578d50a3f1ed | f4060e55ae3a22289fde9516ff0e8e4ac1d22190 | refs/heads/main | 2023-08-07T21:53:24.701157 | 2023-07-25T22:28:06 | 2023-07-25T22:28:06 | 43,023,379 | 217 | 173 | NOASSERTION | 2023-08-25T22:09:48 | 2015-09-23T19:53:55 | Python | UTF-8 | Python | false | false | 17,723 | py | linear_response.py | import numpy as np
from pymatgen.analysis.magnetism import CollinearMagneticStructureAnalyzer
from atomate.utils.utils import get_logger
logger = get_logger(__name__)
def procure_response_dict(
struct_final,
num_perturb_sites,
incar_dict,
outcar_dict,
inv_block_dict,
response_dict,
pertu... |
41177822558b8e70ff7d705c161494a7dfaffa11 | 43c870b240a807db330a7abf53758c1fef924432 | /cloudkitty/orchestrator.py | 87391411a720b6c5ae5c7cb39c36b01e1a410d79 | [
"Apache-2.0"
] | permissive | openstack/cloudkitty | fb3cb83d8d89b27efe64768862f07781a2ef3b5a | 94630b97cd1fb4bdd9a638070ffbbe3625de8aa2 | refs/heads/master | 2023-08-31T15:10:44.524252 | 2023-08-23T16:27:35 | 2023-08-23T20:01:01 | 20,042,606 | 103 | 57 | Apache-2.0 | 2017-11-29T15:39:28 | 2014-05-22T00:52:38 | Python | UTF-8 | Python | false | false | 27,369 | py | orchestrator.py | # Copyright 2014 Objectif Libre
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... |
b87c8c7a96905f0a68077f62370c2c521bd41785 | 316e768ac2ba60fb393a8b914f5c761e077609d1 | /archivebox/core/migrations/0002_auto_20200625_1521.py | 4811282949cfded0214a3203456970bb8c0b83e1 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | ArchiveBox/ArchiveBox | 88fc98ac08800d9785d4333572627a7f354f3a43 | 73a5f74d3840284bceaabced9cf99575b8c15d54 | refs/heads/dev | 2023-09-03T15:31:13.265845 | 2023-08-31T22:17:45 | 2023-08-31T22:17:45 | 90,356,372 | 9,794 | 606 | MIT | 2023-09-04T05:04:41 | 2017-05-05T08:50:14 | Python | UTF-8 | Python | false | false | 402 | py | 0002_auto_20200625_1521.py | # Generated by Django 3.0.7 on 2020-06-25 15:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='snapshot',
name='timestamp',
... |
ac7519d5b162791b861a9425baf1f5274bf77c43 | d05ff6dda43729011b7d469b0a2bc02ed66b6342 | /frappe/patches/v10_0/modify_smallest_currency_fraction.py | b86642e5f6fc2e33f203622784a7e28dbcd7c883 | [
"MIT"
] | permissive | frappe/frappe | 520c14bed3810c3360629a81dcc33f0ebe21ac4d | dd8f314bf4a8a4739eebbfac741abc533ac58bc1 | refs/heads/develop | 2023-08-30T19:29:10.406706 | 2023-08-30T11:20:40 | 2023-08-30T11:20:40 | 1,864,194 | 5,955 | 3,735 | MIT | 2023-09-14T16:08:04 | 2011-06-08T08:14:16 | Python | UTF-8 | Python | false | false | 213 | py | modify_smallest_currency_fraction.py | # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
import frappe
def execute():
frappe.db.set_value("Currency", "USD", "smallest_currency_fraction_value", "0.01")
|
1aea58145e88f08bb2a1b11b618fa479c0ef87e0 | 7860d9fba242d9bdcb7c06c32ee4064e4a7fa2f1 | /litex_boards/platforms/qmtech_10cl006.py | c75d9781e5283dd6acdafdac7008cf149c642e11 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | litex-hub/litex-boards | ef1f200fd6d34c96621f4efa094ede874f4c34ab | b92c96b3a445fde31037f593a40fe621f85cb58c | refs/heads/master | 2023-09-03T15:09:11.198560 | 2023-08-30T15:22:11 | 2023-08-30T15:22:11 | 191,191,221 | 291 | 283 | BSD-2-Clause | 2023-09-03T20:32:58 | 2019-06-10T15:09:10 | Python | UTF-8 | Python | false | false | 5,476 | py | qmtech_10cl006.py | #
# This file is part of LiteX-Boards.
#
# Copyright (c) 2021 Hans Baier <hansfbaier@gmail.com>
# SPDX-License-Identifier: BSD-2-Clause
from litex.build.generic_platform import *
from litex.build.altera import AlteraPlatform
from litex.build.altera.programmer import USBBlaster
# IOs ----------------------------------... |
30d796046327b46c656b499ea9dbeae0292ff6f0 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/networkx/algorithms/sparsifiers.py | 8dbfc80cd21c50aa03b485eddf95e1736a55fe11 | [
"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 | 10,075 | py | sparsifiers.py | # Copyright (C) 2018
# Robert Gmyr <robert@gmyr.net>
# All rights reserved.
# BSD license.
"""Functions for computing sparsifiers of graphs."""
from __future__ import division
import math
import networkx as nx
from networkx.utils import not_implemented_for, py_random_state
__all__ = ['spanner']
@py_random_state(3)
@... |
50c76724b4067613ae6281bed3ec2af1a22183bd | ee8a7d7e502c1152cc80906c698b0a64b8f2c17a | /tests/utils/test_fs.py | 13d9b9098b4fb0e7357e7b9c9697cdbecb75af39 | [
"BSD-3-Clause"
] | permissive | datafolklabs/cement | 0623378caf560e02121f5ca4b53621d1a98b0af0 | b4e482aa4528c9dd9e999081a6c730180da1b108 | refs/heads/main | 2023-08-12T00:12:00.008601 | 2023-08-09T13:39:13 | 2023-08-09T13:39:13 | 398,515 | 944 | 125 | BSD-3-Clause | 2022-11-26T11:40:19 | 2009-12-05T04:04:12 | Python | UTF-8 | Python | false | false | 2,007 | py | test_fs.py |
import os
from pytest import raises
from cement.utils import fs
def test_abspath(tmp):
path = fs.abspath('.')
assert path.startswith('/')
def test_join(tmp, rando):
full_path = os.path.abspath(os.path.join(tmp.dir, rando))
assert fs.join(tmp.dir, rando) == full_path
def test_join_exists(tmp, rand... |
7039eb946f9b894833334a2f76f5ba34b4158ada | 2337351b228818e41be3002bd38f68f77c2aa074 | /core/timepattern.py | 511fc6253bbf96126f0a6ed2b636701fe1ad601b | [
"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 | 5,440 | py | timepattern.py | # ---------------------------------------------------------------------
# Time Patterns DSL compiler
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# Pyth... |
2cb88eaf45bed47c03daa7fccc4eaea29b6b9572 | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/python/tools/optimize_for_inference_test.py | f15c75c1556a51a9cccd58a86ed8a2d36f78dd67 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | Python | false | false | 16,380 | py | optimize_for_inference_test.py | # pylint: disable=g-bad-file-header
# Copyright 2015 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/LICENS... |
b1959cdd9c53aec546d6a875f343aeef321bc67f | b8bbdfc593b6d816e67a344f720f90ec05236778 | /airflow/providers/amazon/aws/triggers/rds.py | ebc80ba700a2c2164be8bb0f1d8e56d3ab26ffa5 | [
"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 | 10,084 | py | rds.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
6045af10cee975050042317348776ea1950cec4c | 9654e0c7628c2607f191438cdea1782309bb3c2a | /smartsim/entity/model.py | 1fd6b18612aeb15364bd090e5792d66b2abfc54e | [
"BSD-2-Clause"
] | permissive | CrayLabs/SmartSim | 85482706627378be01c6c4adf1ba28193c8439bb | f9e17f00ed1109fd09610111d54ac9cb82bccaa7 | refs/heads/develop | 2023-08-18T02:11:52.167416 | 2023-08-16T17:07:58 | 2023-08-16T17:07:58 | 311,268,879 | 177 | 33 | BSD-2-Clause | 2023-09-14T19:52:08 | 2020-11-09T08:19:12 | Python | UTF-8 | Python | false | false | 25,291 | py | model.py | # BSD 2-Clause License
#
# Copyright (c) 2021-2023, Hewlett Packard Enterprise
# All rights reserved.
#
# 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... |
1d70e64bebbb696b2cda054f4102b5d1aa35daab | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/TrilinosApplication/tests/test_trilinos_matrix.py | 7393cafc185ef90959cb87d519dfc495b1260890 | [
"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 | 702 | py | test_trilinos_matrix.py | import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics
import KratosMultiphysics.TrilinosApplication as KratosTrilinos
class TestTrilinosMatrix(KratosUnittest.TestCase):
def test_resize(self):
comm = KratosTrilinos.CreateEpetraCommunicator(KratosMultiphysics.DataCommunicator.... |
e9198c6f88837caded5b851a734aef5d34a8d252 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/SPPNet/eval.py | 7ea3ca84dc1f699a87b5e2a499ef19ffed561575 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 3,736 | py | eval.py | # Copyright 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 agreed to... |
1b12e2e4d392dbfc54fa528c60222fe919020d49 | 3eb3c4046b17e265930aaf89fa93f41896f243cb | /spynnaker/pyNN/spynnaker_external_device_plugin_manager.py | 064c63b4e120d9a416c60cdba4091fd08ed215bb | [
"Apache-2.0"
] | permissive | SpiNNakerManchester/sPyNNaker | b177613a114cfc7e7687ec36c1f72a2f07f66977 | 891cfb3046f66185fd8df52d270380fa94c32eab | refs/heads/master | 2023-09-01T11:28:21.252266 | 2023-08-17T08:07:43 | 2023-08-17T08:07:43 | 20,801,613 | 101 | 53 | Apache-2.0 | 2023-09-14T18:39:29 | 2014-06-13T11:07:19 | Python | UTF-8 | Python | false | false | 12,861 | py | spynnaker_external_device_plugin_manager.py | # Copyright (c) 2017 The University of Manchester
#
# 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 ... |
d28234b3261d54ba49cef50fa647c5201cabf719 | 60ba5cc2f817471dd0ff84a15996b46b1dbfa6ba | /park/utils/ordered_set.py | a7e4383bf7e7930e185a3eb1df2beedcdf2f8aa5 | [
"MIT"
] | permissive | park-project/park | dd15d27e5859fe421c878a90627716623892b6f9 | 08f8f7f0dea14e011af2d5ce2a72410084eb8713 | refs/heads/master | 2023-06-28T11:38:30.359938 | 2022-04-07T14:42:21 | 2022-04-07T14:42:21 | 184,142,889 | 216 | 55 | MIT | 2023-06-14T16:10:38 | 2019-04-29T20:55:25 | Python | UTF-8 | Python | false | false | 741 | py | ordered_set.py | from collections import OrderedDict
class OrderedSet(object):
def __init__(self, contents=()):
self.set = OrderedDict((c, None) for c in contents)
def __contains__(self, item):
return item in self.set
def __iter__(self):
return iter(self.set.keys())
def __len__(self):
... |
ac3ad65cbd64e8d2833523d033126cc032ae6fb7 | e061ab21018ac80573d03ef0c3cba8f448c4b7cc | /backend/tests/test_tree_manager_config.py | ae51775d96aa83fafd0ad434f6469794c4cb2d92 | [
"Apache-2.0"
] | permissive | LAION-AI/Open-Assistant | 8b82c24fac954da421d66c3e90fbae6776ae6280 | 8c0e1a31bea1542dd39716b1dbbecd46785d9d23 | refs/heads/main | 2023-08-25T23:33:38.114219 | 2023-08-22T21:04:33 | 2023-08-22T21:04:33 | 577,603,990 | 34,014 | 3,206 | Apache-2.0 | 2023-09-11T19:13:48 | 2022-12-13T05:24:17 | Python | UTF-8 | Python | false | false | 181 | py | test_tree_manager_config.py | from oasst_backend.config import TreeManagerConfiguration
def test_tree_manager_config():
"""
Just test that we can create a config
"""
TreeManagerConfiguration()
|
90065d70f6a2160d9b371b6f5646af47b8803798 | 64bac57486b832d8f322845bad0a27431fd6a686 | /tests/types/channel.py | 33cebcf098b2da8eb0dc114b5dde20e4c7ba48f2 | [] | no_license | b1naryth1ef/disco | 291161348705a723937e870809f84944913e2339 | 7a2e86a2a3dc58e207d2c6e9a686a3296d652864 | refs/heads/master | 2023-08-19T10:37:02.579582 | 2020-10-27T20:52:46 | 2020-10-27T20:52:46 | 64,710,850 | 342 | 169 | null | 2020-11-16T14:00:19 | 2016-08-02T00:29:23 | Python | UTF-8 | Python | false | false | 579 | py | channel.py | from disco.types.channel import Channel, ChannelType
def test_deprecated_nsfw_channel():
channel = Channel(
name='nsfw-testing',
type=ChannelType.GUILD_TEXT)
assert channel.is_nsfw
channel = Channel(
name='nsfw-testing',
type=ChannelType.GUILD_VOICE)
assert not channel... |
a3176bdfeeb9d054c08561e1a95a7f58b7e79191 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiCateringBizMovehomeSyncModel.py | f304d1a0b7c6a377688608a95dee454749c28093 | [
"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,138 | py | KoubeiCateringBizMovehomeSyncModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KcpLeadsInfo import KcpLeadsInfo
class KoubeiCateringBizMovehomeSyncModel(object):
def __init__(self):
self._leads_info_list = None
self._partner_id = None
... |
baabd781a51ace59a2560c6c7b6c1a571aaaa1af | 568fa58296378fa129ab3349adf010daa44ed45b | /third_party/incubator-tvm/tests/python/unittest/test_codegen_opencl.py | 71fc4f9a7f350c64ef49f3139453a13593c65a60 | [
"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 | 3,744 | py | test_codegen_opencl.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
f71b66762f2479ac77d16775c2cbe8d6d68a0b6d | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /tests/vm_impl/nn_ops_vm_impl.py | 3c262605451f73e679663c313347729edb9c9238 | [
"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 | 10,681 | py | nn_ops_vm_impl.py | # Copyright 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 agreed to... |
b293dbb0d1ed788464c874255b8ef7bb4acba220 | f324cd2cbebd303fd34cd2e26fe1a51c44202d55 | /vint/linting/policy/prohibit_invalid_map_call.py | 841e2d69d1d9a1bc5b88b9d1ddef9aa7d8da004b | [
"MIT"
] | permissive | Vimjas/vint | d71579154d177daf458ec68423a66055f90fa308 | e12091830f0ae7311066b9d1417951182fb32eb5 | refs/heads/master | 2023-09-02T07:31:31.299270 | 2022-10-24T13:06:33 | 2022-10-24T13:06:33 | 20,857,415 | 191 | 11 | MIT | 2022-10-24T13:10:00 | 2014-06-15T14:38:32 | Python | UTF-8 | Python | false | false | 877 | py | prohibit_invalid_map_call.py | from vint.ast.node_type import NodeType
from vint.linting.level import Level
from vint.linting.policy.abstract_policy import AbstractPolicy
from vint.linting.policy_registry import register_policy
@register_policy
class ProhibitInvalidMapCall(AbstractPolicy):
def __init__(self):
super(ProhibitInvalidMapCa... |
82f1b286fbba2300d751191f9c42908692cf48fd | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/py/py/_io/terminalwriter.py | 442ca2395e0a15e8cddf2da9565d02b2c807faaf | [
"Apache-2.0",
"MIT"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 14,714 | py | terminalwriter.py | """
Helper functions for writing to terminals and files.
"""
import sys, os, unicodedata
import py
py3k = sys.version_info[0] >= 3
py33 = sys.version_info >= (3, 3)
from py.builtin import text, bytes
win32_and_ctypes = False
colorama = None
if sys.platform == "win32":
try:
import colorama
except Im... |
21df02922e76b9bb18f2acb224ae93f097829660 | 854b94d7be92582bd191a7cb63143a95e5b5c337 | /hyfetch/distros/glaucus.py | 26447f33053782ece2c4c2dcd2407acd8f78b572 | [
"MIT"
] | permissive | hykilpikonna/hyfetch | 673c0c999d0f3f542349824495ad6004f450ebac | 98863df16d70b030696f4b94080d114396320f35 | refs/heads/master | 2023-08-17T10:41:10.289997 | 2023-08-17T03:37:23 | 2023-08-17T03:37:23 | 479,913,941 | 447 | 78 | MIT | 2023-09-14T14:39:18 | 2022-04-10T04:38:15 | Shell | UTF-8 | Python | false | false | 580 | py | glaucus.py | # This file is automatically generated. Please do not modify.
from . import AsciiArt
glaucus = AsciiArt(match=r'''"glaucus"*''', color='5', ascii=r"""
${c1} ,, ,d88P
,d8P ,ad8888*
,888P d88888* ,,ad8888P*
d d888P a88888P* ,ad8888888*
.d8 d8888: d888888* ,d... |
09311e18e7d4d6f6f8b03ed8a3e58350a34f15c7 | 827b0c8c48407a1c4a4f89bacd4afcbe1be1dc83 | /tests/unit/utils/test_populate.py | 8865076cf69580b39184d9392c09d985669aedd2 | [
"BSD-3-Clause",
"MIT"
] | permissive | flaskbb/flaskbb | 154ffa6476d094594c77f2fca28447b264b34779 | bc999f1b9baf129dc06126940880a01ac94ba405 | refs/heads/master | 2023-08-22T19:47:34.877376 | 2023-03-13T06:51:20 | 2023-03-13T06:51:20 | 12,751,570 | 1,443 | 448 | NOASSERTION | 2023-07-26T22:36:21 | 2013-09-11T08:39:17 | Python | UTF-8 | Python | false | false | 6,052 | py | test_populate.py | import pytest
from sqlalchemy.exc import OperationalError
from sqlalchemy_utils.functions import create_database, drop_database
from flaskbb.extensions import alembic, db
from flaskbb.utils.populate import delete_settings_from_fixture, \
create_settings_from_fixture, update_settings_from_fixture, \
create_defa... |
687b2ba8667fcf20d8ab43c60c3627d5ae3f8209 | bdfd36be0da37a335cabefd41db9df44c31f3b42 | /scripts/test_vistas_single_gpu.py | 466ff642687b497aa2dfb4bb22480094f8acf041 | [
"BSD-3-Clause",
"HPND",
"CC-BY-NC-SA-4.0"
] | permissive | mapillary/inplace_abn | 54435a7b688da075e37d36d4c2fc09df43a9983d | d7dd3e1f22164083734ad6ac42365a4cc99a5051 | refs/heads/main | 2023-08-19T19:46:05.503129 | 2023-01-03T10:31:21 | 2023-01-03T10:31:21 | 111,797,719 | 1,377 | 216 | BSD-3-Clause | 2023-07-17T08:13:53 | 2017-11-23T10:47:45 | Python | UTF-8 | Python | false | false | 10,677 | py | test_vistas_single_gpu.py | # Copyright (c) Facebook, Inc. and its affiliates.
import argparse
from functools import partial
from os import path
import models
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.nn.functional as functional
from dataset.dataset import SegmentationDataset, segmen... |
9f97c36955087957dd2342471e0de2f39e5a1886 | 5e601244fbf32ee5190fb5210a0cd334473a0abe | /projects/backupOps/FileSystem/clean-old-backups-with-given-directory.py | 41f543a2f6744cf135a1eff9e915504961ad6f1f | [] | no_license | DingGuodong/LinuxBashShellScriptForOps | 69ebe45cf3f92b741a078b9b78c2600328ce9b9e | b2ca1e4c870626dd078d447e2d1479b08602bdf6 | refs/heads/master | 2023-08-21T20:53:40.617397 | 2023-07-17T01:41:05 | 2023-07-17T01:41:05 | 57,015,255 | 453 | 343 | null | 2023-02-16T01:29:23 | 2016-04-25T05:55:28 | Python | UTF-8 | Python | false | false | 2,962 | py | clean-old-backups-with-given-directory.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created by PyCharm.
File Name: LinuxBashShellScriptForOps:clean-old-backups-with-given-directory.py
Version: 0.0.1
Author: Guodong
Author Email: dgdenterprise@gmail.com
URL: https://github.com/DingGuod... |
0e680eac96e231f8fe998fca2007965515ba463e | bca44c32b850c297d45136c54b93882a144e87d3 | /tests/integration/abi_router_test.py | 8f53db916c211498bf69fee999649840787dcf43 | [
"MIT"
] | permissive | algorand/pyteal | b7f541ee6484f6bac94bc528ffa429196d8cd79a | 670e637644630534883b4c2e6837ab34c56546b6 | refs/heads/master | 2023-06-11T04:37:33.645398 | 2023-06-06T20:18:01 | 2023-06-06T20:18:01 | 212,449,337 | 282 | 134 | MIT | 2023-06-06T18:15:23 | 2019-10-02T22:00:39 | Python | UTF-8 | Python | false | false | 18,022 | py | abi_router_test.py | import json
import re
from collections import defaultdict
from dataclasses import asdict
from pathlib import Path
import pytest
from graviton.abi_strategy import (
ABIArgsMod,
RandomABIStrategy,
RandomABIStrategyHalfSized,
)
from graviton.blackbox import DryRunEncoder
from graviton.invariant import DryRunP... |
a5c4d3b024ac01d48d1aef2ee75f160b82f44d91 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/glm/all/conanfile.py | b86499dcc4c3d22b03fd3343a895e81fce5ccd63 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 2,157 | py | conanfile.py | from conan import ConanFile
from conan.tools.files import copy, get, load, save
from conan.tools.layout import basic_layout
from conan.tools.scm import Version
import os
required_conan_version = ">=1.50.0"
class GlmConan(ConanFile):
name = "glm"
description = "OpenGL Mathematics (GLM)"
topics = ("glm", "... |
32222f79ef1bb75de54fb174b131ebb60ae81626 | 2dc24a356ebe7a362623780603379a5b35a65c2f | /terraform/stacks/bot/lambdas/python/slack_automation_bot/slack_bolt/authorization/authorize_result.py | 0a80a3d7a2301cfaaa205836ee86d5ffd05163d1 | [
"MIT"
] | permissive | cloud-sniper/cloud-sniper | cef08402f9109211c33909bdb3de07b16952e308 | 4b026da33695b25033c7667679f3cf552c4bf3b5 | refs/heads/master | 2023-06-24T20:46:02.377409 | 2023-04-14T14:48:45 | 2023-04-14T14:48:45 | 210,739,453 | 184 | 36 | MIT | 2023-04-14T14:48:46 | 2019-09-25T02:34:26 | Python | UTF-8 | Python | false | false | 2,457 | py | authorize_result.py | from typing import Optional
from slack_sdk.web import SlackResponse
class AuthorizeResult(dict):
enterprise_id: Optional[str]
team_id: Optional[str]
bot_id: Optional[str]
bot_user_id: Optional[str]
bot_token: Optional[str]
user_id: Optional[str]
user_token: Optional[str]
def __init__... |
f23a94616b251db5b40294705a1e9ba0202d5ab0 | a8ca3225e24c8b093056ce6baa1db6ba3aea8f97 | /tutorials/12-seismic/plot_fwd_1_tomography_2D.py | c5a1fdff7acfa6371bbd197103a5b6e73763cc47 | [
"MIT"
] | permissive | simpeg/simpeg | 3e8779392d7b26fe576a7a665205068989d8f4d8 | ebde5856c318f7b4deb92d755b4fefe19012c48e | refs/heads/main | 2023-09-03T18:49:03.545965 | 2023-08-27T15:45:50 | 2023-08-27T15:45:50 | 14,727,320 | 437 | 268 | MIT | 2023-09-10T18:16:22 | 2013-11-26T19:46:36 | Python | UTF-8 | Python | false | false | 5,673 | py | plot_fwd_1_tomography_2D.py | """
Forward Simulation for Straight Ray Tomography in 2D
====================================================
Here we module *SimPEG.seismic.straight_ray_tomography* to predict arrival
time data for a synthetic velocity/slowness model. In this tutorial, we focus on the following:
- How to define the survey
- ... |
9b5f47143deb98d37f88d255ba01197179517ea9 | 9b1eda0abdc5dea7c6e9695ff4e1098abe0a708b | /src/textual/drivers/headless_driver.py | 695a0c196b83e310f9df8b7bf9a2b02979edb2c4 | [
"MIT"
] | permissive | Textualize/textual | b8cf4b5d18069fccc7623b3116436f479e1ef446 | b74ac1e47fdd16133ca567390c99ea19de278c5a | refs/heads/main | 2023-08-30T21:40:21.563823 | 2023-08-30T10:18:27 | 2023-08-30T10:18:27 | 355,959,597 | 14,818 | 588 | MIT | 2023-09-14T20:22:02 | 2021-04-08T15:24:47 | Python | UTF-8 | Python | false | false | 1,871 | py | headless_driver.py | from __future__ import annotations
import asyncio
from .. import events
from ..driver import Driver
from ..geometry import Size
class HeadlessDriver(Driver):
"""A do-nothing driver for testing."""
@property
def is_headless(self) -> bool:
"""Is the driver running in 'headless' mode?"""
r... |
8819e39189bf7e8c9406d3e345989ebd952ac9c5 | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /tests/models/bark/test_modeling_bark.py | 6fc4cb58a639361b55a74f459d0949dae73af843 | [
"Apache-2.0"
] | permissive | huggingface/transformers | ccd52a0d7c59e5f13205f32fd96f55743ebc8814 | 4fa0aff21ee083d0197a898cdf17ff476fae2ac3 | refs/heads/main | 2023-09-05T19:47:38.981127 | 2023-09-05T19:21:33 | 2023-09-05T19:21:33 | 155,220,641 | 102,193 | 22,284 | Apache-2.0 | 2023-09-14T20:44:49 | 2018-10-29T13:56:00 | Python | UTF-8 | Python | false | false | 43,123 | py | test_modeling_bark.py | # coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. 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 r... |
9ad46b927649455ab65ebd5a2c64999c8b5705e9 | d0a8a516ec9465f18c2868295928c60084d9faf9 | /docs/extending/examples/get_instance/GetSeleniumLibraryInstance.py | 22c24443964d40856d68f3147a30fdb6ec1ba237 | [
"Apache-2.0"
] | permissive | robotframework/SeleniumLibrary | 2257589f4a38f4e570445933f1712c2ead734a9d | 79c7ef338820d9b54854b96be8a0c2b36d65d045 | refs/heads/master | 2023-08-30T19:35:13.032643 | 2023-08-25T22:43:04 | 2023-08-25T22:43:04 | 2,625,205 | 945 | 508 | Apache-2.0 | 2023-08-25T18:05:59 | 2011-10-22T08:01:34 | Python | UTF-8 | Python | false | false | 439 | py | GetSeleniumLibraryInstance.py | from robot.api import logger
from robot.libraries.BuiltIn import BuiltIn
def open_browser(host):
url = f"http://{host}.com/"
sl = BuiltIn().get_library_instance("SeleniumLibrary")
sl.open_browser(url, "chrome")
def get_browser_desired_capabilities():
logger.info("Getting currently open browser desir... |
b971dbedb7871e6df0e77a5714e2abd50ceeec61 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/codeInsight/smartEnter/methodParameterNoDecorators.py | feaf0907101e5f2fd4d3346d2eaf90d8df9e94e3 | [
"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 | 37 | py | methodParameterNoDecorators.py | class MyClass:
def method<caret> |
8c0267c7ef56ff69f57ed40df24e5588c035813a | 6960dfbe2e3373968c82ea70e77b68460dcb4ad7 | /simple_parsing/helpers/__init__.py | a971715108dd5ac0753c121a272af454ed52005b | [
"MIT"
] | permissive | lebrice/SimpleParsing | a19423a0814f5c8a6a9d1542c1200785f53a4b78 | 77e4ff514787d6a6eff13a735766e088e22e664e | refs/heads/master | 2023-08-16T13:55:36.456203 | 2023-08-10T13:45:49 | 2023-08-10T13:45:49 | 213,200,949 | 304 | 35 | MIT | 2023-08-14T20:36:44 | 2019-10-06T16:15:54 | Python | UTF-8 | Python | false | false | 491 | py | __init__.py | """ Collection of helper classes and functions to reduce boilerplate code. """
from .fields import *
from .flatten import FlattenedAccess
from .hparams import HyperParameters
from .partial import Partial, config_for
from .serialization import FrozenSerializable, Serializable, SimpleJsonEncoder, encode
try:
from .s... |
d8fc0be66df9b322dfffc8b883eda84717666a7a | 083312af3c596aad1a5123fb66bf73ca9907a928 | /sqlglot/dataframe/sql/group.py | ba27c170d80582e3d65d914f774cc2a2f754f6ae | [
"MIT"
] | permissive | tobymao/sqlglot | 8f7a6da463c765d39f75390cddafbd9a0b3076a9 | 32d8e5423a7d7e1b56805fd0020b4aac3ce15d84 | refs/heads/main | 2023-09-01T05:18:17.148809 | 2023-09-01T01:53:06 | 2023-09-01T01:53:17 | 347,277,349 | 3,617 | 365 | MIT | 2023-09-14T21:43:44 | 2021-03-13T05:01:56 | Python | UTF-8 | Python | false | false | 2,162 | py | group.py | from __future__ import annotations
import typing as t
from sqlglot.dataframe.sql import functions as F
from sqlglot.dataframe.sql.column import Column
from sqlglot.dataframe.sql.operations import Operation, operation
if t.TYPE_CHECKING:
from sqlglot.dataframe.sql.dataframe import DataFrame
class GroupedData:
... |
43debd58cd0ea6ce7012740db86698eda79cfb55 | b7d13929749d1f09383b27ab76bdafcc4c9c540c | /python/app/thirdparty/oneforall/common/tldextract.py | ce20ac27f9f2062077e50724a93b5b0f23df33fb | [
"GPL-3.0-only",
"Python-2.0",
"MIT"
] | permissive | taomujian/linbing | 664244dd31b241c01b532031dc52bb2cee6c4b77 | b6edb06fc4e53a90c756459d7c03f8b33692b42b | refs/heads/master | 2023-06-21T22:01:43.604719 | 2023-06-18T09:05:42 | 2023-06-18T09:05:42 | 243,150,459 | 545 | 127 | MIT | 2022-12-08T09:16:15 | 2020-02-26T02:32:06 | Python | UTF-8 | Python | false | false | 7,568 | py | tldextract.py | # -*- coding: utf-8 -*-
"""`tldextract` accurately separates the gTLD or ccTLD (generic or country code
top-level domain) from the registered domain and subdomains of a URL.
>>> import tldextract
>>> tldextract.extract('http://forums.news.cnn.com/')
ExtractResult(subdomain='forums.news', domain='cnn', suf... |
327fe2571bf327596a84716b40f80cbbe78960de | ef3bb3137a045795f23a0df161292a218d34c764 | /interpreter/minipy/reader.py | 87c8a4461afbcb5c9be7d35f6748e702f45ee9e6 | [] | no_license | zhao94254/fun | 23e1c0af7f6a121866ff30bcf513a34cc877235c | 491acf6a7d9594f91a8cd717a403d9e1e5d0f386 | refs/heads/master | 2021-07-01T22:28:21.221379 | 2019-03-11T14:15:24 | 2019-03-11T14:15:24 | 106,671,187 | 365 | 73 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | reader.py | #!/usr/bin/env python
# @Author : pengyun
# 解析输入
import string
from buffer import Buffer
from expr import *
SYMBOL_STARTS = set(string.ascii_lowercase + string.ascii_uppercase + '_')
SYMBOL_INNERS = SYMBOL_STARTS | set(string.digits)
NUMERAL = set(string.digits + '-.')
WHITESPACE = set(' \t\n\r')
DELIMITERS = set('... |
c3ff3575c993473c90738c37e4a535e363b45102 | dd5f0d6fd9090659d42809cd60c037dbb2a162d9 | /tests/data/expected/main/main_pattern_properties_field_constraints/output.py | 446ff3a2c2ab0c294e7222e053fbf5213e3c8535 | [
"MIT"
] | permissive | koxudaxi/datamodel-code-generator | 8f9185af200d26a27346115a89c3a6d330086dac | 73da2d846271c50790834cf676a57a384b5ffcdd | refs/heads/master | 2023-09-02T16:32:41.659791 | 2023-08-30T16:22:22 | 2023-08-30T16:22:22 | 189,179,081 | 1,800 | 245 | MIT | 2023-09-14T04:00:12 | 2019-05-29T08:01:32 | Python | UTF-8 | Python | false | false | 320 | py | output.py | # generated by datamodel-codegen:
# filename: pattern_properties.json
# timestamp: 2019-07-26T00:00:00+00:00
from __future__ import annotations
from typing import Dict, Optional
from pydantic import BaseModel
class Bar(BaseModel):
name: Optional[str] = None
class Foo(BaseModel):
bar: Dict[str, Bar]
|
696cbeac47b9575b4af2e9881b47deb47e1bcade | c5f7019c52cd91a3d9505943b9d866539f2fb0bc | /synapse/tests/test_lib_hive.py | 9400044e006cd61ba86a5aa0f0a75e461e06f460 | [
"Apache-2.0"
] | permissive | vertexproject/synapse | ce31699fcb10cb2c870d448915f4d4524247e2d0 | 1808dff78921b4bfdb451a12ee5d03427a5295b9 | refs/heads/master | 2023-09-03T23:48:26.584015 | 2023-08-31T20:34:35 | 2023-08-31T20:34:35 | 37,228,107 | 307 | 63 | Apache-2.0 | 2023-09-14T21:53:32 | 2015-06-10T23:29:41 | Python | UTF-8 | Python | false | false | 6,379 | py | test_lib_hive.py | import asyncio
import synapse.exc as s_exc
import synapse.common as s_common
import synapse.tests.utils as s_test
import synapse.lib.hive as s_hive
tree0 = {
'kids': {
'hehe': {'value': 'haha'},
'hoho': {'value': 'huhu', 'kids': {
'foo': {'value': 99},
}},
}
}
tree1 = {
... |
250b519f1372261524bdf6dd170c887290488659 | f4a2917e70be48528f0f4b40476eef6c39ab523d | /contrib/crowd_counting/crowdcounting/demo/app-start.py | 6d29f8ed537f531918629ec4766bad09c97e7451 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"Apache-2.0",
"MIT"
] | permissive | microsoft/computervision-recipes | d732e6c73d0cef6b7fb9f639d27540cce8df77fb | 679f1bf82b22b8c948f3703933557a2ba090739d | refs/heads/staging | 2023-09-04T09:22:55.209926 | 2022-10-31T17:12:47 | 2022-10-31T17:12:47 | 170,161,374 | 8,758 | 1,169 | MIT | 2023-02-09T18:47:36 | 2019-02-11T16:23:51 | Jupyter Notebook | UTF-8 | Python | false | false | 1,027 | py | app-start.py | import os
import sys
from crowdcounting import CrowdCountModelPose, CrowdCountModelMCNN, Router
from flask import Flask, Response, json, request
import numpy as np
import logging
import time
import argparse
# logging
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(10)
parser = argparse.ArgumentPars... |
2c220663d6265bd74496667fc8cfca2ee8405bcd | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/python/kernel_tests/sparse_ops/sparse_to_dense_op_py_test.py | af321792e36590ccdca01d2f60354f7bf98e9faf | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | Python | false | false | 8,342 | py | sparse_to_dense_op_py_test.py | # Copyright 2015 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... |
14f66d59dd0a9a8a62268915091b2e3191e80110 | 8eb7e2224cd81cd21fd5b0c4dd54abe85ba07e49 | /netmiko/adtran/__init__.py | 354eae20a6180fe9d22b07387856c4f61dd1ecee | [
"MIT"
] | permissive | ktbyers/netmiko | f8b980569fd863f0a7bfe28580366339c4bd31ec | 2e56b40ec639da130471c59dd1f3c93983471e41 | refs/heads/develop | 2023-08-30T20:33:05.554926 | 2023-08-29T21:50:45 | 2023-08-29T21:50:45 | 27,283,062 | 3,397 | 1,594 | MIT | 2023-09-04T03:04:31 | 2014-11-28T21:42:52 | Python | UTF-8 | Python | false | false | 107 | py | __init__.py | from netmiko.adtran.adtran import AdtranOSSSH, AdtranOSTelnet
__all__ = ["AdtranOSSSH", "AdtranOSTelnet"]
|
59d1f9f22546f580b286173fa3080ce5cc558036 | bdf0d4d3aac186af3ad0ad6ac9f380f9a0573fba | /aries_cloudagent/protocols/out_of_band/v1_0/handlers/tests/test_problem_report_handler.py | c8b69357cbb59d24370d268d41e7b77e5e8f2472 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0"
] | permissive | hyperledger/aries-cloudagent-python | f25d961e0717a4d703bf43df3e4b4bc8ec07b908 | 39cac36d8937ce84a9307ce100aaefb8bc05ec04 | refs/heads/main | 2023-09-01T15:37:05.353674 | 2023-08-31T14:13:06 | 2023-08-31T14:13:06 | 193,556,007 | 370 | 530 | Apache-2.0 | 2023-09-14T17:59:34 | 2019-06-24T18:12:14 | Python | UTF-8 | Python | false | false | 2,948 | py | test_problem_report_handler.py | """Test Problem Report Handler."""
import pytest
from asynctest import mock as async_mock
from ......connections.models.conn_record import ConnRecord
from ......core.profile import ProfileSession
from ......messaging.request_context import RequestContext
from ......messaging.responder import MockResponder
from ......... |
7b48e21783ef2da37e57c8f2fc23956e38e1c721 | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /tests/st/ops/gpu/test_nn_matmul.py | c8ea15b4b5595c7a3b20d2ccaecbde7838500ebe | [
"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 | 3,188 | py | test_nn_matmul.py | import numpy as np
import mindspore.context as context
import mindspore.nn as nn
from mindspore import Tensor
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
class Net(nn.Cell):
def __init__(self, transpose_x1, transpose_x2):
super(Net, self).__init__()
self.matmul = nn.MatMul(... |
ec5621b748b7887af52f975a6263892197bfb9d5 | 2bd7beb55c0120e4a94741710d3c8ff0a4bb8599 | /test_project/streamblocks/models.py | 99ea58607a3a7513e2341cb80ea144f59a80230d | [
"BSD-2-Clause"
] | permissive | raagin/django-streamfield | 9047598da3cf8b6fa0d61aa90e270dfacd6bfc41 | c6d45f0caae0a0603ea41862c61b237cb31604ab | refs/heads/master | 2023-07-28T07:50:08.751567 | 2023-07-04T09:41:09 | 2023-07-04T09:41:09 | 184,009,451 | 104 | 18 | NOASSERTION | 2023-03-29T11:55:54 | 2019-04-29T06:04:20 | Python | UTF-8 | Python | false | false | 852 | py | models.py | from django.db import models
class RichText(models.Model):
text = models.TextField(blank=True, null=True)
options = {
"gray_bgr": {
"label": "Block on gray background",
"type": "checkbox",
"default": False
}
}
class Meta:
# This will use ... |
5979df77dcb64cf61b385c8e5422068ac257de68 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenServicemarketCommodityExtendinfosAddModel.py | b8a4fe99da1216cd20888ff837f6f41cb897923c | [
"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,784 | py | AlipayOpenServicemarketCommodityExtendinfosAddModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.CommodityPublicExtInfos import CommodityPublicExtInfos
class AlipayOpenServicemarketCommodityExtendinfosAddModel(object):
def __init__(self):
self._commodity_ext_info... |
ed1036cea27c7f357885d68bfa18fd6c4cd89ee4 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/tests/unittest_py/op/test_beam_search_decode_op.py | 61f33e0aa0142c6433a457c2fa6054aacb7b76ac | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | Python | false | false | 3,539 | py | test_beam_search_decode_op.py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
86b1f6f39361ee48a49e62c943ce23f1fae79f66 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/nasm/all/conanfile.py | f570e673ace4db779762f6d24ab40bbf58655205 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 4,965 | py | conanfile.py | from conan import ConanFile
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import apply_conandata_patches, chdir, copy, export_conandata_patches, get, replace_in_file, rmdir
from conan.tools.gnu import Autotools, AutotoolsToolchain
from conan.tools.layout import basic_layout
from conan.tools.microso... |
3c6487e018dc23198738d2720651266e9eb33ab8 | 06113cbe5e7ee089617755ea16ff29863b4572ad | /airflow_code_editor/app_builder_view.py | 183c02f3b0a9a5b48ebdc55952cc0b5160562ba5 | [
"Apache-2.0"
] | permissive | andreax79/airflow-code-editor | 53e17cfafe4bcecb5125d7125a6848ed430f3f03 | 19067c2db89bc14d2b8f2d9b9eff30daabff860e | refs/heads/main | 2023-08-31T14:45:06.663022 | 2023-08-28T07:44:16 | 2023-08-28T07:46:35 | 200,844,662 | 322 | 52 | Apache-2.0 | 2023-07-25T06:26:47 | 2019-08-06T12:13:46 | JavaScript | UTF-8 | Python | false | false | 6,014 | py | app_builder_view.py | #!/usr/bin/env python
#
# Copyright 2019 Andrea Bonomi <andrea.bonomi@gmail.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/licenses/LICENSE-2.0
#... |
002d234ded066c254bb2464decf1c2c2cd0abe52 | e1c27be4a9242b31d4e950b31b5b50cd4279b520 | /crhelper/utils.pyi | e82c77b73f3281a40e204d0e4da92f125144f540 | [
"Apache-2.0"
] | permissive | aws-cloudformation/custom-resource-helper | 75c82fb100bcec2bafcc09aaa9053ef0cac0dbb8 | f2095c5d11e5d3060f6e210b76313cea5f97bc8e | refs/heads/main | 2022-12-24T08:35:00.237474 | 2022-06-07T02:23:12 | 2022-06-07T02:23:12 | 169,458,597 | 350 | 61 | Apache-2.0 | 2022-12-17T16:22:07 | 2019-02-06T18:53:12 | Python | UTF-8 | Python | false | false | 36 | pyi | utils.pyi | from typing import Any
logger: Any
|
7bb3f43454c38b59cb99ff45fe04941c282ac275 | 88b6d330080adb08d9599f32e6ef18433312c3b9 | /testsuite/style/util.py | 96a280708c7183a497798e4a1a1299c5e2b52d40 | [] | no_license | polserver/polserver | bf6dc55c9ee666674957b25db6bf8bd3a69519b8 | e6c93ad709abbe1f0d671ec4b090a93ee6064fc7 | refs/heads/master | 2023-08-30T23:56:11.655874 | 2023-08-30T10:42:59 | 2023-08-30T10:42:59 | 22,833,801 | 129 | 83 | null | 2023-09-07T14:59:14 | 2014-08-11T09:28:41 | C++ | UTF-8 | Python | false | false | 2,298 | py | util.py |
'''
Common utlities for testsuite
@author Bodom
'''
import os
import abc
import subprocess
class Skip():
''' Empty constant util class '''
pass
class SourceChecker(metaclass=abc.ABCMeta):
''' A generic script running checks over the whole source tree '''
# Folders to ignore, relative to root
IGNORE = ('.gi... |
f27c32c92a63eb7cceb001b96d172f100f9e2355 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow_Pandas_Numpy/source3.6/pandas/tseries/frequencies.py | 0cffd818202ed639076b24c9cf54c1fa42e921c2 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 8,384 | py | frequencies.py | # -*- coding: utf-8 -*-
from datetime import timedelta
from pandas.compat import zip
from pandas import compat
import re
import numpy as np
from pandas.core.dtypes.generic import ABCSeries
from pandas.core.dtypes.common import (
is_period_arraylike,
is_timedelta64_dtype,
is_datetime64_dtype)
from pandas.... |
5cb555a53154e734aff3570f4a8ad046f1a3017a | 9317a3ce2d972e65d4c08242606e10ad99c93c23 | /src/autogpt_plugins/planner/planner.py | b708085a8a9385c249938f8e363e100c86debceb | [
"MIT"
] | permissive | Significant-Gravitas/Auto-GPT-Plugins | c751b43fedf34a6e157e09c8b5cd5f9f4e3d17ac | 397589394138f9ed43660b1aa99d501a8bfff061 | refs/heads/master | 2023-08-24T12:28:02.320683 | 2023-06-29T07:09:16 | 2023-06-29T07:09:16 | 625,411,260 | 3,377 | 499 | MIT | 2023-09-01T18:31:29 | 2023-04-09T02:54:14 | Python | UTF-8 | Python | false | false | 4,416 | py | planner.py | import json
import os
def check_plan():
"""this function checks if the file plan.md exists, if it doesn't exist it gets created"""
current_working_directory = os.getcwd()
workdir = os.path.join(
current_working_directory, "autogpt", "auto_gpt_workspace", "plan.md"
)
file_name = workdir
... |
24c5f2de48b5ab2515068fb76dc4feaa57456eab | 6a63f3baf8a5a54bba1974acd3a4dc14f486eb88 | /pyexcel/plugins/parsers/django.py | 4a0459180d7d33c851864c8a33f6e069e98efec3 | [
"BSD-3-Clause"
] | permissive | pyexcel/pyexcel | 7ecda49447a7576119441a9a72fb5ecbd46f9ec0 | f1bf5fe0f9119b64c9a87ad57d9fc771cbc1a52d | refs/heads/dev | 2023-08-04T14:33:11.890759 | 2023-07-16T11:19:18 | 2023-07-16T11:19:18 | 23,225,199 | 1,190 | 182 | NOASSERTION | 2023-07-18T00:16:44 | 2014-08-22T12:52:20 | Python | UTF-8 | Python | false | false | 1,116 | py | django.py | """
pyexcel.plugin.parsers.django
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Export data into database datables
:copyright: (c) 2015-2022 by Onni Software Ltd.
:license: New BSD License
"""
from pyexcel_io import get_data, iget_data
from pyexcel_io.database import common as django
from pyexcel.parser i... |
2ac2f91749ce3c7aae9b9aeb0869a18b6fcd176b | b8bbdfc593b6d816e67a344f720f90ec05236778 | /airflow/api_connexion/endpoints/dag_run_endpoint.py | d56fd469638cabc253b23ced0176c67af70c060a | [
"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 | 17,301 | py | dag_run_endpoint.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
f727d771dc44cadf3af1a2630ce3b92f910d8269 | 5b6ba0f288b1e2ac236af846a9bf546a63228476 | /iotbx/mtz/extract_from_symmetry_lib.py | 1b61f0b91bc77df845b7b0139575b276bb70ff06 | [
"BSD-3-Clause-LBNL"
] | permissive | cctbx/cctbx_project | 5b547b416cadbdf95cca21dace9f54272a08d98a | 7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa | refs/heads/master | 2023-08-17T17:44:05.077010 | 2023-08-16T22:40:22 | 2023-08-16T22:40:22 | 39,508,026 | 206 | 131 | NOASSERTION | 2023-09-14T17:12:55 | 2015-07-22T13:36:27 | Python | UTF-8 | Python | false | false | 4,989 | py | extract_from_symmetry_lib.py | from __future__ import absolute_import, division, print_function
from cctbx import sgtbx
import libtbx.load_env
import os.path as op
from six.moves import range
if (libtbx.env.has_module("ccp4io")):
for _ in ["libccp4/data", "data"]:
ccp4io_lib_data = libtbx.env.under_dist(
module_name="ccp4io", path=_)
... |
c9c6664d202673d174f3f827c37c4d59b4ea3567 | e7efae2b83216d9621bd93390959d652de779c3d | /snmp/tests/test_e2e_core_profiles/test_profile_nec_univerge.py | bfa92de13ace55deec2540d726ad42fc59960b72 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-3-Clause-Modification",
"Unlicense",
"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 | 6,533 | py | test_profile_nec_univerge.py | # (C) Datadog, Inc. 2023-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import pytest
from datadog_checks.dev.utils import get_metadata_metrics
from .. import common
from ..test_e2e_core_metadata import assert_device_metadata
from .utils import (
assert_common_metrics,
... |
9ee84e9ec89683ba984799cc30c6ec44f090a57a | e90bf4b372da78ceec15282d060b48d18ba8d4e9 | /tests/dbus/udisks2/test_manager.py | 46f6dbbe397655f8c8c8338c9441c85a6a90b29c | [
"Apache-2.0"
] | permissive | home-assistant/supervisor | 67f2e1755ff5fbf7cf2084351e1c32c6995274e0 | 4838b280adafed0997f32e021274b531178386cd | refs/heads/main | 2023-08-31T22:51:25.949277 | 2023-08-31T08:01:42 | 2023-08-31T08:01:42 | 84,926,758 | 928 | 477 | Apache-2.0 | 2023-09-14T17:11:27 | 2017-03-14T08:54:15 | Python | UTF-8 | Python | false | false | 9,376 | py | test_manager.py | """Test UDisks2 Manager interface."""
from pathlib import Path
from awesomeversion import AwesomeVersion
from dbus_fast import Variant
from dbus_fast.aio.message_bus import MessageBus
import pytest
from supervisor.dbus.udisks2 import UDisks2
from supervisor.dbus.udisks2.const import PartitionTableType
from superviso... |
d5691f0dd9c3a31c3eb891f0cc35bce61ef15ba1 | a3f06e5c4947523e3a2a96e721239858c9fc3330 | /tests/upgrade-before.py | 6ab3bb85f2f7344443b5dbb56426d864e77c7e8e | [
"CC-BY-4.0",
"MIT"
] | permissive | SpriteLink/NIPAP | 61491d09e88f0a8101a089115cad794cf402f528 | 6b34b39c7c4ef59069f51adbb736050d214a2d99 | refs/heads/master | 2023-08-14T16:51:55.080168 | 2023-07-06T14:19:12 | 2023-07-06T14:19:12 | 2,087,868 | 469 | 166 | MIT | 2023-07-06T14:19:35 | 2011-07-22T09:14:49 | Python | UTF-8 | Python | false | false | 3,504 | py | upgrade-before.py | #!/usr/bin/env python
#
# This is run by Travis-CI before an upgrade to load some data into the
# database. After the upgrade is complete, the data is verified by
# upgrade-after.py to make sure that the upgrade of the database went smoothly.
#
import logging
import unittest
import sys
import os
MODULE_DIR = os.path.... |
e9a355b8476694b955ab1cf86e43376cde9ea10e | edc1134436a79ca883a0d25f3c8dfffc4235c514 | /pyro/contrib/epidemiology/util.py | 5c2a29bf4b1f7bb785ddf566f63a13bd1c5056d5 | [
"Apache-2.0"
] | permissive | pyro-ppl/pyro | 2283d8ca528fc090c724a3a6e0f344e505ebbf77 | 0e82cad30f75b892a07e6c9a5f9e24f2cb5d0d81 | refs/heads/dev | 2023-08-18T00:35:28.014919 | 2023-08-06T21:01:36 | 2023-08-06T21:01:36 | 94,506,832 | 3,647 | 606 | Apache-2.0 | 2023-09-14T13:52:14 | 2017-06-16T05:03:47 | Python | UTF-8 | Python | false | false | 10,990 | py | util.py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
import numpy
import torch
import pyro
import pyro.distributions as dist
import pyro.poutine as poutine
from pyro.distributions.util import broadcast_shape
from pyro.ops.special import safe_log
def clamp(tensor, *, min=None, max=None... |
27d9b458a05b562cd4f0c52e5b4e055200e55127 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py | 889fe0961259c68f63eeead08c9923120516fcae | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 16,885 | py | webrisk.py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
595ad59fa813607ceeb3207109d189862ec5cda6 | 7f4305b6a874ac16dcd6e5525ccae04e691e8cd7 | /collipa/libs/tornadomail/functional.py | 52d732de7c0ff638090d6b576ea1488b26252aff | [
"WTFPL"
] | permissive | yetone/collipa | f518402ed290fd552e8d6eb6cb565532c677e777 | 20a23a412585a2f66e2cdc7a2959bd7d3d933e6c | refs/heads/master | 2021-01-01T15:18:47.070618 | 2018-01-08T03:28:19 | 2018-01-08T03:28:19 | 11,044,594 | 101 | 46 | null | 2018-01-08T03:28:20 | 2013-06-29T03:33:53 | JavaScript | UTF-8 | Python | false | false | 14,205 | py | functional.py | # License for code in this file that was taken from Python 2.5.
# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
# --------------------------------------------
#
# 1. This LICENSE AGREEMENT is between the Python Software Foundation
# ("PSF"), and the Individual or Organization ("Licensee") accessing and
# otherwise usin... |
45a8a7d760ebba14fc2f17cca463c7f128103b14 | 62179a165ec620ba967dbc20016e890978fbff50 | /examples/tensorflow/classification/datasets/preprocessing/cifar.py | 94a1d7fd817a49b2a2a2261d98ba9c182572be95 | [
"Apache-2.0"
] | permissive | openvinotoolkit/nncf | 91fcf153a96f85da166aacb7a70ca4941e4ba4a4 | c027c8b43c4865d46b8de01d8350dd338ec5a874 | refs/heads/develop | 2023-08-24T11:25:05.704499 | 2023-08-23T14:44:05 | 2023-08-23T14:44:05 | 263,687,600 | 558 | 157 | Apache-2.0 | 2023-09-14T17:06:41 | 2020-05-13T16:41:05 | Python | UTF-8 | Python | false | false | 6,151 | py | cifar.py | # Copyright (c) 2023 Intel Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writ... |
3081f677d634679113392c191e1ac86aa1975255 | da1500e0d3040497614d5327d2461a22e934b4d8 | /third_party/web_platform_tests/tools/pywebsocket/src/mod_pywebsocket/_stream_hixie75.py | 94cf5b31ba0fc3c3a3477de82297a0c26da1c48c | [
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0",
"MIT"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | Python | false | false | 8,842 | py | _stream_hixie75.py | # Copyright 2011, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... |
f0b0c35520c7d87d21589642b5c38acb5e9c7a95 | c675ff5fcd3b13fa39352bb8cac11d75262659a8 | /tests/test_observable/test_publish.py | 469bf26b9b75e54a863a9198df8bef4e1d997c87 | [
"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 | 16,870 | py | test_publish.py | import unittest
import reactivex
from reactivex import ConnectableObservable, Observable
from reactivex import operators as ops
from reactivex.abc import ObserverBase
from reactivex.testing import ReactiveTest, TestScheduler
on_next = ReactiveTest.on_next
on_completed = ReactiveTest.on_completed
on_error = ReactiveTe... |
af93ff0841d7053ebcb62847e200d986201ec89e | 0c141972d779ec44c1f252194514ad9c464aef2e | /mail/components/im/components.conf | c3153690f72be7e138bcd93e30f378bfd6b0b0aa | [] | no_license | mozilla/releases-comm-central | 6a47ae14f6e24b4ff22998ca957078b7956b04e2 | d4838a15a8dbad6d5d9b7e6f486e43bf1511f87a | refs/heads/master | 2022-02-12T03:24:52.518381 | 2022-02-12T00:34:15 | 2022-02-12T00:34:15 | 4,578,344 | 137 | 101 | null | 2023-07-25T20:56:40 | 2012-06-06T21:42:18 | JavaScript | UTF-8 | Python | false | false | 748 | conf | components.conf | # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Classes = [
{
'cid': '{13... |
63c837c96e2f677a216feb78da70497bc861f386 | 7efabf599aaf53728a681639bc57cadc3abe6bde | /python/cugraph/cugraph/dask/link_analysis/pagerank.py | 2dfd25fa5224cefa97f86406e1ab25883cb37394 | [
"Apache-2.0"
] | permissive | rapidsai/cugraph | 49b5378271c72c155f55d916a3c1cc1fbe05ceca | cafded113c9545e5e7211cc965f53c00939307c0 | refs/heads/branch-23.10 | 2023-08-26T19:36:33.631587 | 2023-08-25T13:49:23 | 2023-08-25T13:49:23 | 157,752,451 | 1,403 | 310 | Apache-2.0 | 2023-09-13T17:01:25 | 2018-11-15T18:07:11 | Cuda | UTF-8 | Python | false | false | 16,345 | py | pagerank.py | # Copyright (c) 2019-2023, NVIDIA 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 agre... |
19f1fa8ef40979ad6061936afb8588d6aa1d887b | ccc00ce0041bd050a33880a84e68d6231610bfe5 | /elasticdl/python/ps/parameter_server.py | 85399b9c39b9c540399afa6928abb76cd401200c | [
"MIT"
] | permissive | sql-machine-learning/elasticdl | 009bfa5bcd0c2e8ffd032c559af5d3b0d13e2ed2 | 86cd6ff7e175939a4bcd7938e334c4865acacb6d | refs/heads/develop | 2023-08-31T06:13:50.904537 | 2023-08-15T10:39:31 | 2023-08-15T10:39:31 | 154,232,678 | 724 | 122 | MIT | 2023-08-15T10:39:33 | 2018-10-22T23:53:10 | Python | UTF-8 | Python | false | false | 6,423 | py | parameter_server.py | # Copyright 2020 The ElasticDL Authors. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... |
c23c6200bc7d4b725feb31cca246f2a23608cc37 | 93a116442c782730ef774688b8f41a8c4bdc2a59 | /lldbhelpers/break_here.py | 4cc21257d34c2a6be79d928341a582bd1928a5a2 | [
"MIT"
] | permissive | keith/dotfiles | 016dddc45d194bd3f2b3224b3d830c833b0c9175 | 7ca92029cd03905159fa6433de915666c340d491 | refs/heads/main | 2023-08-04T00:49:38.487154 | 2023-07-26T04:05:51 | 2023-07-26T04:05:51 | 5,795,829 | 226 | 29 | MIT | 2022-07-25T15:00:22 | 2012-09-13T14:26:33 | Shell | UTF-8 | Python | false | false | 174 | py | break_here.py | import lldb
@lldb.command()
def bhere(debugger, _ignored, context, result, _):
pc = exe_ctx.frame.GetPC()
debugger.HandleCommand("breakpoint set -a {}".format(pc))
|
06b8bf3982ba6113ea73b98e7888ababfae4b079 | cce6234bf89b91bfbe00abaf320e3ae45d7f8bc8 | /tests/test_utils.py | 13e2501f13139ca139ccb43bb03827d9b5be5504 | [
"MIT"
] | permissive | uuazed/numerapi | 334e2eb1ae08073998956fb0333d53fac5d6e54b | 9badfe023d5eaa557d4b01cae02698392a7828df | refs/heads/master | 2023-08-18T05:14:30.061420 | 2023-08-07T07:13:56 | 2023-08-07T07:13:56 | 114,936,786 | 175 | 77 | MIT | 2023-07-05T13:53:16 | 2017-12-20T22:25:23 | Python | UTF-8 | Python | false | false | 2,097 | py | test_utils.py | import pytest
import datetime
import os
from dateutil.tz import tzutc
import responses
import requests
import decimal
from numerapi import utils
def test_parse_datetime_string():
s = "2017-12-24T20:48:25.90349Z"
t = datetime.datetime(2017, 12, 24, 20, 48, 25, 903490, tzinfo=tzutc())
assert utils.parse_dat... |
6bc88e2aaf24394432ede81baf698d5e32338682 | 61b95ee2aefbcfbd6c4abf9511d976d0b9d0e100 | /faker/providers/address/pt_BR/__init__.py | 91ba030c0e778e9580822d747898ff69e520e856 | [
"MIT"
] | permissive | joke2k/faker | fed7472580ced2bce326fe4ea0c3d1c810853d5e | 33e36b1b6cc9c6f039fe387988853771bab60624 | refs/heads/master | 2023-09-04T00:43:33.599705 | 2023-08-31T16:15:04 | 2023-08-31T16:15:04 | 6,662,075 | 14,544 | 2,215 | MIT | 2023-09-11T16:06:14 | 2012-11-12T23:00:09 | Python | UTF-8 | Python | false | false | 23,003 | py | __init__.py | from typing import Tuple
from .. import Provider as AddressProvider
class Provider(AddressProvider):
city_suffixes = (
"do Sul",
"do Norte",
"de Minas",
"do Campo",
"Grande",
"da Serra",
"do Oeste",
"de Goiás",
"Paulista",
"da Mata",... |
004907ac5b11b148f06baf0d363869f1eec67493 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tools/mo/openvino/tools/mo/front/mxnet/activation.py | 8efd34633faaf309d30cb69428b3f029f84bba91 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 1,864 | py | activation.py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.ops.activation_ops import SoftPlus, Sigmoid, Tanh, ReLU, \
Asinh, Acosh, Atanh, SoftSign
from openvino.tools.mo.front.extractor import FrontExtractorOp
from openvino.tools.mo.front.mxnet.extractors.utils import... |
6ace4da478db23e4f466b6d42b378e8e56ef70c9 | 9f73d653197b5218f1a5a02e06cb7f56d858a572 | /scripts/download_dump.py | 9993e4ff2f377dbe302693ddcbeecbf023e5f3d7 | [
"MIT"
] | permissive | wikimedia/pywikibot | b32fbc2eb3d688f57668aed4dc488b4055196e8f | 5c01e6bfcd328bc6eae643e661f1a0ae57612808 | refs/heads/master | 2023-09-03T19:22:13.926740 | 2023-09-03T14:56:01 | 2023-09-03T14:59:45 | 10,798,864 | 432 | 166 | MIT | 2023-08-10T23:36:48 | 2013-06-19T16:18:45 | Python | UTF-8 | Python | false | false | 8,728 | py | download_dump.py | #!/usr/bin/env python3
"""
This bot downloads dump from dumps.wikimedia.org.
This script supports the following command line parameters:
-filename:# The name of the file (e.g. abstract.xml)
-storepath:# The stored file's path.
-dumpdate:# The dumpdate date of the dump (default to `latest`)
... |
87ce99706741faaa7972a3d79ed73fc3f07ac4aa | 90b974771cff3addd43ded8c62c3667c64045976 | /tensorflow_data_validation/skew/feature_skew_detector.py | 4b80f5e63303731f622a755ad426926bdb0d7a1f | [
"Apache-2.0"
] | permissive | tensorflow/data-validation | 84066c9c8db76d6b49bab0cec95113508d86dbdb | 606cd26b69f648e1f151c024d38baa6ab1d7d0c8 | refs/heads/master | 2023-09-01T11:54:32.797061 | 2023-08-21T19:21:20 | 2023-08-21T19:21:48 | 139,463,182 | 736 | 180 | Apache-2.0 | 2023-08-14T06:28:47 | 2018-07-02T15:47:02 | Python | UTF-8 | Python | false | false | 29,710 | py | feature_skew_detector.py | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
cd98995f07a9578619cba93d4fdd0ff7a5404f48 | 01b9d7d2da922589906d755e4c5d63799281d4c8 | /porcupine/pluginloader.py | deaccf938d42497f6b8cf8ef3da1c36d7647c2d4 | [
"MIT"
] | permissive | Akuli/porcupine | a2c3c0b3263a8b16649d5007f7c1d96cbec7dfc0 | 2f705481ef7bd9ed4516743ad3fd6469c5f2b276 | refs/heads/main | 2023-08-25T00:09:19.294259 | 2023-08-05T10:28:03 | 2023-08-05T10:28:03 | 81,675,927 | 131 | 59 | MIT | 2023-08-11T21:46:05 | 2017-02-11T19:17:09 | Python | UTF-8 | Python | false | false | 12,798 | py | pluginloader.py | """Loads plugins from ``porcupine.plugins``."""
# many things are wrapped in try/except here to allow writing Porcupine
# plugins using Porcupine, so Porcupine must run if the plugins are
# broken
from __future__ import annotations
import argparse
import dataclasses
import enum
import importlib.machinery
import loggin... |
9934dda70020d385f9cb8768a3835314c0f4174c | 2f1e3f24f2798507c9eb73185a955c9bfb735140 | /libreco/feature/multi_sparse.py | f411b2197aff9d8d1d9a72ffd68f946dd20c3c28 | [
"MIT"
] | permissive | massquantity/LibRecommender | e4f55b06b2208c794a3f97f7ff89413fa9beaffa | 8d5fbe9c177f5b91c2b6f19a155a83320dd0e20c | refs/heads/master | 2023-08-31T23:48:37.634663 | 2023-08-20T11:58:15 | 2023-08-20T11:58:15 | 174,493,761 | 251 | 55 | MIT | 2023-08-20T11:58:16 | 2019-03-08T07:58:27 | Python | UTF-8 | Python | false | false | 5,187 | py | multi_sparse.py | import itertools
import numpy as np
def get_multi_sparse_indices_matrix(
data, multi_sparse_col, multi_sparse_unique, is_train, is_ordered
):
"""Get all multi_sparse indices for all samples in data.
The function will consider each sub-feature of multi_sparse columns.
Parameters
----------
d... |
6ab4662b0c7c086493d22c24514f48922bc0193d | 267ec08897c53cab1c3781ba0b6d061cb4410e84 | /hypertools/_shared/helpers.py | 8197881ec92bb94ee566d293d856c38acce82bbe | [
"MIT"
] | permissive | ContextLab/hypertools | dd0fa798296b7b9b9d5f17a37086465ade6ca6a0 | 564c1d43da447da68ce3d76f51306725291630e0 | refs/heads/master | 2023-08-25T07:28:00.791443 | 2022-02-12T02:32:06 | 2022-02-12T02:32:06 | 69,400,415 | 1,768 | 189 | MIT | 2023-08-06T22:25:57 | 2016-09-27T21:31:25 | Python | UTF-8 | Python | false | false | 7,357 | py | helpers.py | #!/usr/bin/env python
"""
Helper functions
"""
##PACKAGES##
import functools
import sys
import numpy as np
import copy
from scipy.interpolate import PchipInterpolator as pchip
import seaborn as sns
import itertools
import pandas as pd
from matplotlib.lines import Line2D
np.seterr(divide='ignore', invalid='ignore')
... |
5487070bacf7edf108256956d4aa58128f210eb8 | af6484154df8451750cd9cbce0f62f549c100b55 | /models/vision/detection/awsdet/utils/keras/__init__.py | 2b84a75a3c8c404f00947131fd1f0bfe72e51216 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | aws-samples/deep-learning-models | 375cd60d45379a290c77dc91142999278d12e8ad | 0a852badc1004b9ae32a3a1c44bdec1ff9604329 | refs/heads/master | 2023-01-06T17:04:26.841548 | 2023-01-04T20:03:37 | 2023-01-04T20:03:37 | 141,620,532 | 141 | 80 | NOASSERTION | 2023-01-05T20:31:25 | 2018-07-19T19:07:10 | Python | UTF-8 | Python | false | false | 314 | py | __init__.py | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
from .backbone import get_base_model, get_outputs
from .freeze import *
from . import optimizers
__all__ = ['get_base_model', 'get_outputs', 'freeze_model_layers', 'optimizers']
|
e98f84a370437cdd1fa3a886af105ce98da3da24 | f2c773e7ccdd60caf5a7c062305cfcd14d11beec | /AR_Scripts_1.74/MoGraph/AR_MoSelectionMerge.py | 058ee6f950b91267070c9b1bf44b02d88545d667 | [] | no_license | aturtur/cinema4d-scripts | 4ccfbc3403326a79076d9bcf001189cd5427f46a | a87fc6c835db5d205f8428cc67ccd30fdd4b4d4b | refs/heads/master | 2023-07-03T13:34:58.735879 | 2023-06-19T09:57:22 | 2023-06-19T09:57:22 | 63,731,563 | 316 | 49 | null | 2022-04-24T02:31:17 | 2016-07-19T22:15:05 | Python | UTF-8 | Python | false | false | 3,461 | py | AR_MoSelectionMerge.py | """
AR_MoSelectionMerge
Author: Arttu Rautio (aturtur)
Website: http://aturtur.com/
Name-US: AR_MoSelectionMerge
Version: 1.0.1
Description-US: Merges selected MoGraph Selection Tag into one tag
Note: If you have nested MoGraph Generator, disable parent generators before running this script
Written for Maxon Cinema 4... |
c1bc4249ed16b382f90ea085215e3350fc1c2282 | 662117fa36c2745abf7a79e9b4c26ad2a7388c68 | /perception/hashers/__init__.py | 00f868b16be771ac0dc1d7383825f52205348420 | [
"Apache-2.0"
] | permissive | thorn-oss/perception | 1fb20fc76626c1d22f79e3ffeed49ca351d17e03 | ef58c1c2c61118d5128b247c14561d544ed09a59 | refs/heads/main | 2023-08-04T09:22:09.906837 | 2023-03-21T12:53:23 | 2023-03-21T12:53:23 | 219,032,163 | 155 | 15 | Apache-2.0 | 2023-07-25T19:39:48 | 2019-11-01T17:28:57 | Python | UTF-8 | Python | false | false | 642 | py | __init__.py | from .hasher import Hasher, ImageHasher, VideoHasher
from .image.average import AverageHash
from .image.phash import PHash, PHashU8, PHashF
from .image.wavelet import WaveletHash
from .image.opencv import MarrHildreth, BlockMean, ColorMoment
from .image.dhash import DHash
from .video.framewise import FramewiseHasher
fr... |
9c924068314ae6b105a2cffccfb0364cadc3a841 | 61004e474b7b2ad0071c16766f0f7874f04f9466 | /examples/dataproc-lifecycle-via-composer/include/generate_dag_files.py | e11bf798c978d02d301b7b0900bf87d89e971452 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/professional-services | eb79751efae765a8c691a745e520f44f51bd715c | 0f51121b945bd74c7f667e74e8861fceda87565c | refs/heads/main | 2023-09-05T02:57:33.328973 | 2023-08-30T14:40:30 | 2023-08-30T14:40:30 | 91,730,359 | 2,626 | 1,381 | Apache-2.0 | 2023-09-14T20:13:42 | 2017-05-18T19:29:27 | Python | UTF-8 | Python | false | false | 1,980 | py | generate_dag_files.py | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
7958f42b19587846afb6374ad363fcfca37922b9 | 362017d16a70ff497542f3a89ff5ef736e17361e | /model.py | edb0bc57a76c42f018dbe5624e2c6b5b2ee269be | [
"MIT"
] | permissive | seanie12/neural-question-generation | 2bac038af8deb6ff382d2a19aea31f0c3990ccb7 | 39ceaaa497eb3942451ccfb133ac26327717c0b6 | refs/heads/master | 2021-07-04T14:07:00.121611 | 2020-09-18T11:02:17 | 2020-09-18T11:02:17 | 179,623,388 | 135 | 36 | null | null | null | null | UTF-8 | Python | false | false | 9,159 | py | model.py | import config
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence
from torch_scatter import scatter_max
from data_utils import UNK_ID
INF = 1e12
class Encoder(nn.Module):
def __init__(self, embeddings, vocab_size, embedding_s... |
0c50c76aab4e8f03876a84a7a3ff37ab3527e8eb | 48e66c53cb340435369a0e6420bb30140f501505 | /Chapter08/ttk_combobox_info.py | 5f7a8fdd62e5607e021c16c5505f3864248ae3d3 | [
"MIT"
] | permissive | PacktPublishing/Python-GUI-Programming-with-Tkinter | d38278555408bf8c6dba3b12b4b963f987abf7ab | 217ff90413dc2813a1b29d5ade52e23a72efadf5 | refs/heads/master | 2023-07-25T15:05:12.357484 | 2023-01-30T10:23:35 | 2023-01-30T10:23:35 | 133,041,882 | 236 | 127 | MIT | 2023-07-10T14:26:58 | 2018-05-11T13:17:01 | Python | UTF-8 | Python | false | false | 1,282 | py | ttk_combobox_info.py | import tkinter as tk
from tkinter import ttk
from pprint import pprint
root = tk.Tk()
style = ttk.Style()
print('TTK Combobox\n')
cb = ttk.Combobox(root)
cb_stylename = cb.winfo_class()
print("Style name: ", cb_stylename)
print("Starting state:", cb.state())
cb.state(['active', 'invalid'])
print("New state:", cb.sta... |
eed60154af80fca0997b557d06b10c8386c5ab9b | 788cfa8d89ab6f8aacd84fb5587ae41aeef33e44 | /vgci/blockify.py | 55cdf86706b93470e0a2f7adada3553af32999e3 | [
"LicenseRef-scancode-boost-original",
"MIT",
"BSL-1.0"
] | permissive | vgteam/vg | 5064ca0996db9c54c9642cc4d63d2fef2cefcdb0 | e173d0a81c6aa0e5b93a863f19b73ee4200177dc | refs/heads/master | 2023-08-31T04:08:13.862938 | 2023-08-25T00:35:47 | 2023-08-25T00:35:47 | 24,727,800 | 886 | 202 | NOASSERTION | 2023-09-08T11:33:30 | 2014-10-02T16:54:27 | C++ | UTF-8 | Python | false | false | 651 | py | blockify.py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
blockify.py: make sure input and output FDs are in blocking mode before running a command.
"""
import os
import sys
import fcntl
# Check input
if len(sys.argv) < 2:
raise RuntimeError("A program to execute is required")
# Fix up standard file descriptors (0, 1, 2) ... |
9838a650997c8ee73d57bbb18a413945bd9c712e | 1dbbb05b30d27c6419b9f34eea3b9a47f92582a0 | /parlai/zoo/sensitive_topics_classifier/build.py | a6a2b1d26a2ac2b58cf78527c1eb1f0bb6e7cded | [
"MIT"
] | permissive | facebookresearch/ParlAI | 815334323d0ebef51bf9837336fe3eef6fe1655d | e1d899edfb92471552bae153f59ad30aa7fca468 | refs/heads/main | 2023-08-31T22:20:45.918129 | 2023-08-14T19:39:56 | 2023-08-14T19:39:56 | 89,266,735 | 10,943 | 2,395 | MIT | 2023-09-13T23:07:40 | 2017-04-24T17:10:44 | Python | UTF-8 | Python | false | false | 985 | py | build.py | #!/usr/bin/env python3
# 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.
"""
Pretrained Transformer-based classifier for classification of sensitive topics.
Example command: ``` parlai eval_mod... |
939aa48a828dfc785e18283f8957fa5dd780c2e0 | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/storage/blob_service_properties.py | 36ceeada45ce94a8192242e4958b62819e6dfba2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | Python | UTF-8 | Python | false | false | 25,570 | py | blob_service_properties.py | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . imp... |
2394d4f47c8a9077807fb6ec84ed46b74aefe23d | f167dffa2f767a0419aa82bf434852069a8baeb8 | /lib/youtube_dl/extractor/mlb.py | b69301d9775c641fc59b95e2315d67e8e4f6b2bc | [
"MIT"
] | permissive | firsttris/plugin.video.sendtokodi | d634490b55149adfdcb62c1af1eb77568b8da3f5 | 1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3 | refs/heads/master | 2023-08-18T10:10:39.544848 | 2023-08-15T17:06:44 | 2023-08-15T17:06:44 | 84,665,460 | 111 | 31 | MIT | 2022-11-11T08:05:21 | 2017-03-11T16:53:06 | Python | UTF-8 | Python | false | false | 9,355 | py | mlb.py | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
determine_ext,
int_or_none,
parse_duration,
parse_iso8601,
try_get,
)
class MLBBaseIE(InfoExtractor):
def _real_extract(self, url):
display_id = self._match_id(url)
video... |
59197a7b840db75cf779e2badb37ecd3702557f2 | 39d9c170b18aae1e55624002b4d3d1b9e0ae2b1e | /amulet_map_editor/programs/edit/api/events.py | ff68244de99005daa763f001b57346fe8b8a1efe | [] | no_license | Amulet-Team/Amulet-Map-Editor | 514fd8c46adfe7177b4241f8dc8fe1494cd25d85 | 52991d26cb11e93c5392427377489820ae762094 | refs/heads/0.10 | 2023-08-25T08:34:59.371594 | 2023-08-12T09:55:08 | 2023-08-12T09:55:08 | 222,710,374 | 1,514 | 162 | null | 2023-09-14T13:02:18 | 2019-11-19T14:06:28 | Python | UTF-8 | Python | false | false | 1,331 | py | events.py | import wx
from wx.lib import newevent
from amulet_map_editor.api.opengl.camera import (
CameraMovedEvent,
EVT_CAMERA_MOVED,
ProjectionChangedEvent,
EVT_PROJECTION_CHANGED,
SpeedChangedEvent,
EVT_SPEED_CHANGED,
)
from amulet_map_editor.api.opengl.events import (
PreDrawEvent,
EVT_PRE_DR... |
05625e541b6ad1e17c77c41ea18511f935b57f9d | 8a80f95f6b122257165cd0c1ce500b9be5d9cc4b | /data/dataset_blindsr.py | 3d16ae3418b45d3550f70c43cd56ac0491fe87b6 | [
"MIT"
] | permissive | cszn/KAIR | 841b0cd97241d5c7203cdf9496d98be6aec61145 | 047dc42c4649b8488653facaace592518da91a74 | refs/heads/master | 2023-06-24T21:23:19.056481 | 2023-06-10T20:04:14 | 2023-06-10T20:04:14 | 228,241,233 | 2,440 | 609 | MIT | 2023-08-31T08:50:15 | 2019-12-15T19:42:25 | Python | UTF-8 | Python | false | false | 3,952 | py | dataset_blindsr.py | import random
import numpy as np
import torch.utils.data as data
import utils.utils_image as util
import os
from utils import utils_blindsr as blindsr
class DatasetBlindSR(data.Dataset):
'''
# -----------------------------------------
# dataset for BSRGAN
# --------------------------------... |
dc5b6da4e56a278aaff5306e40080edcfa1316cb | 1679c239b02b7412ed3a62f01530a7519563f193 | /experiments/lending.py | 4c08fcd44cbc1b4f4eb3fb45ed7929a8f661fb7a | [
"Apache-2.0"
] | permissive | google/ml-fairness-gym | 8b8b4d223c3be91aeab74988ce1a42f996fe633a | 38eaf4514062892e0c3ce5d7cff4b4c1a7e49242 | refs/heads/master | 2023-08-31T12:24:32.720046 | 2022-02-04T16:10:44 | 2022-02-04T16:57:55 | 200,863,357 | 310 | 82 | Apache-2.0 | 2023-03-08T12:27:55 | 2019-08-06T14:03:17 | Python | UTF-8 | Python | false | false | 5,635 | py | lending.py | # coding=utf-8
# Copyright 2022 The ML Fairness Gym 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 applicab... |
476c98df14752b29cbf3bab01c8af0b604a6ea36 | 32ef8d7b826185e15fa28fe198f35fe1ebb2e0bc | /sendgrid/helpers/inbound/config.py | 06ca683cb60b650599f0eb14a6afd97d52f465ae | [
"MIT"
] | permissive | sendgrid/sendgrid-python | 2165eaa7c0b02bb69143f049252e1303c5752a2c | 2fe145956a1ee50355f5da8deab401e1e118c736 | refs/heads/main | 2023-08-30T18:42:42.884191 | 2023-04-17T08:48:43 | 2023-04-17T08:48:43 | 3,546,794 | 1,470 | 826 | MIT | 2023-08-22T23:45:51 | 2012-02-25T19:10:40 | Python | UTF-8 | Python | false | false | 2,133 | py | config.py | """Set up credentials (.env) and application variables (config.yml)"""
import os
import yaml
class Config(object):
"""All configuration for this app is loaded here"""
def __init__(self, **opts):
if os.environ.get('ENV') != 'prod': # We are not in Heroku
self.init_environment()
"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.